refactor: hard-fork GSD -> MSD (Make Software Done)

Mechanical rename produced by scripts/msd-rename.cjs: gsd/Gsd/GSD -> msd/Msd/MSD
across contents and paths, upstream package/repo coordinates -> @golem15/msd-core
and golem15com/msd-core. Deep links into upstream history, sibling upstream
packages, the GSD-2 import feature, CHANGELOG.md and .changeset/ are kept as-is.

Hand edits on top: MSD block-letter banner and logos, LICENSE copyright line,
package/plugin identity, regenerated lockfile, install-tree fixtures, derived
registries and benchmark baseline; migration checksum baseline re-locked
(MSD keeps its own install state, so no install had applied the old sums);
sort-order and regex-escaped expectations in tests adjusted.
This commit is contained in:
Jakub Zych
2026-10-06 01:47:40 +02:00
parent fe069b2a56
commit a9a7a328e6
2763 changed files with 78465 additions and 78434 deletions

View File

@@ -5,11 +5,11 @@
* TDD tests for installer migration 006:
* 2026-07-20-pi-extension-cjs-to-js (#2470)
*
* #2470 renamed pi's installed native extension from `extensions/gsd.cjs` to
* `extensions/gsd.js`, because pi's own auto-discovery filter
* #2470 renamed pi's installed native extension from `extensions/msd.cjs` to
* `extensions/msd.js`, because pi's own auto-discovery filter
* (`isExtensionFile()` in @earendil-works/pi-coding-agent) accepts only `.ts`
* and `.js` and silently skips everything else. Installs made before that fix
* still carry the stale, permanently-inert `extensions/gsd.cjs`; the installer
* still carry the stale, permanently-inert `extensions/msd.cjs`; the installer
* writes the new `.js` alongside it and would otherwise orphan the old file
* forever (it drops out of the manifest, so uninstall never removes it).
*
@@ -20,7 +20,7 @@
* 3. stale file managed-pristine -> remove-managed
* 4. stale file managed-modified -> backup-and-remove (never silent delete)
* 5. stale file unknown -> NO action (never remove unowned files)
* 6. the replacement gsd.js and neighbouring user files are never touched
* 6. the replacement msd.js and neighbouring user files are never touched
* 7. runtime scoping: pi only
*/
@@ -30,18 +30,18 @@ const fs = require('node:fs');
const os = require('node:os');
const path = require('node:path');
const migration = require('../gsd-core/bin/lib/installer-migrations/006-pi-extension-cjs-to-js.cjs');
const migration = require('../msd-core/bin/lib/installer-migrations/006-pi-extension-cjs-to-js.cjs');
const {
classifyArtifact: realClassifyArtifact,
readInstallManifest,
} = require('../gsd-core/bin/lib/installer-migrations.cjs');
} = require('../msd-core/bin/lib/installer-migrations.cjs');
const STALE_REL = 'extensions/gsd.cjs';
const CURRENT_REL = 'extensions/gsd.js';
const STALE_REL = 'extensions/msd.cjs';
const CURRENT_REL = 'extensions/msd.js';
function createTempDir() {
return fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-migration-006-test-'));
return fs.mkdtempSync(path.join(os.tmpdir(), 'msd-migration-006-test-'));
}
function cleanup(dir) {
@@ -57,7 +57,7 @@ function writeFile(root, relPath, content) {
function writeManifest(root, files) {
fs.writeFileSync(
path.join(root, 'gsd-file-manifest.json'),
path.join(root, 'msd-file-manifest.json'),
JSON.stringify(
{
version: '1.7.0',
@@ -178,7 +178,7 @@ describe('migration 006 plan()', () => {
assert.ok(actions[0].ownershipEvidence);
});
test('emits NO action for an unknown (non-manifest) gsd.cjs — never remove unowned files', (t) => {
test('emits NO action for an unknown (non-manifest) msd.cjs — never remove unowned files', (t) => {
const dir = createTempDir();
t.after(() => cleanup(dir));