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

@@ -6,7 +6,7 @@
'use strict';
process.env.GSD_TEST_MODE = '1';
process.env.MSD_TEST_MODE = '1';
const { describe, test, before, after } = require('node:test');
const assert = require('node:assert/strict');
@@ -16,20 +16,20 @@ const os = require('node:os');
const {
installRuntimeArtifacts,
} = require('../gsd-core/bin/lib/install-engine.cjs');
} = require('../msd-core/bin/lib/install-engine.cjs');
const {
resolveRuntimeArtifactLayout,
} = require('../gsd-core/bin/lib/runtime-artifact-layout.cjs');
} = require('../msd-core/bin/lib/runtime-artifact-layout.cjs');
const { cleanup } = require('./helpers.cjs');
const {
loadSkillsManifest,
resolveProfile,
} = require('../gsd-core/bin/lib/install-profiles.cjs');
} = require('../msd-core/bin/lib/install-profiles.cjs');
const { COMMANDS_GSD, ROUTER_STEMS, routerChildren } = require('./helpers/nested-layout.cjs');
const { COMMANDS_MSD, ROUTER_STEMS, routerChildren } = require('./helpers/nested-layout.cjs');
// ---------------------------------------------------------------------------
// Runtime parity decision matrix (#69)
@@ -38,11 +38,11 @@ const { COMMANDS_GSD, ROUTER_STEMS, routerChildren } = require('./helpers/nested
const NEST = [
// Claude reverted to flat (#924: nested layout breaks Skill-tool discovery on Claude Code).
// Only the 5 runtimes below keep the nested layout.
{ runtime: 'cline', scope: 'global', skillsSub: 'skills', prefix: 'gsd-' },
{ runtime: 'qwen', scope: 'global', skillsSub: 'skills', prefix: 'gsd-' },
{ runtime: 'hermes', scope: 'global', skillsSub: 'skills/gsd', prefix: 'gsd-' }, // #947: restored canonical prefix
{ runtime: 'augment', scope: 'global', skillsSub: 'skills', prefix: 'gsd-' },
{ runtime: 'trae', scope: 'global', skillsSub: 'skills', prefix: 'gsd-' },
{ runtime: 'cline', scope: 'global', skillsSub: 'skills', prefix: 'msd-' },
{ runtime: 'qwen', scope: 'global', skillsSub: 'skills', prefix: 'msd-' },
{ runtime: 'hermes', scope: 'global', skillsSub: 'skills/msd', prefix: 'msd-' }, // #947: restored canonical prefix
{ runtime: 'augment', scope: 'global', skillsSub: 'skills', prefix: 'msd-' },
{ runtime: 'trae', scope: 'global', skillsSub: 'skills', prefix: 'msd-' },
];
const FLAT = [
@@ -90,7 +90,7 @@ function withSandboxedHome(tmpDir, fn) {
* tmpDir for the install call so codex never writes to the real ~/.agents/skills.
*/
function runInstall(runtime, scope, resolved) {
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), `gsd-nest-test-${runtime}-`));
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), `msd-nest-test-${runtime}-`));
withSandboxedHome(tmpDir, () => installRuntimeArtifacts(runtime, tmpDir, scope, resolved));
return tmpDir;
}
@@ -112,7 +112,7 @@ function resolveSkillsDir(runtime, tmpDir, scope) {
}
// Resolve the full profile once (shared by all installs)
const MANIFEST = loadSkillsManifest(COMMANDS_GSD);
const MANIFEST = loadSkillsManifest(COMMANDS_MSD);
const RESOLVED_FULL = resolveProfile({ modes: ['full'], manifest: MANIFEST });
// ---------------------------------------------------------------------------
@@ -168,15 +168,15 @@ for (const { runtime, scope, skillsSub, prefix } of NEST) {
);
}
// Total GSD-owned top-level entries must be EXACTLY 6 (only the routers).
// All nested runtimes (incl. Hermes after #947) use prefix='gsd-'.
const gsdTopLevelCount = prefix !== ''
// Total MSD-owned top-level entries must be EXACTLY 6 (only the routers).
// All nested runtimes (incl. Hermes after #947) use prefix='msd-'.
const msdTopLevelCount = prefix !== ''
? topLevel.filter((n) => n.startsWith(prefix)).length
: topLevel.filter((n) => fs.statSync(path.join(skillsDir, n)).isDirectory()).length;
assert.strictEqual(
gsdTopLevelCount,
msdTopLevelCount,
6,
`Expected exactly 6 total GSD-owned top-level skill dirs for ${runtime} (only routers), got ${gsdTopLevelCount}: [${topLevel.join(', ')}]`,
`Expected exactly 6 total MSD-owned top-level skill dirs for ${runtime} (only routers), got ${msdTopLevelCount}: [${topLevel.join(', ')}]`,
);
});
@@ -274,13 +274,13 @@ for (const { runtime, scope, skillsSub, prefix } of NEST) {
}
// ---------------------------------------------------------------------------
// claude extra: total top-level gsd- count must be >= 60 (FLAT, #924)
// claude extra: total top-level msd- count must be >= 60 (FLAT, #924)
//
// Pre-#924 (nested) this block asserted exactly 6 (only routers).
// Post-#924 (flat) Claude has all concrete skills at the top level.
// ---------------------------------------------------------------------------
describe('claude: total top-level gsd- entries >= 60 (flat layout, #924)', () => {
describe('claude: total top-level msd- entries >= 60 (flat layout, #924)', () => {
let tmpDir;
before(() => {
@@ -293,14 +293,14 @@ describe('claude: total top-level gsd- entries >= 60 (flat layout, #924)', () =>
}
});
test('claude: >= 60 gsd-* top-level skill entries (concrete flat layout, not nested)', () => {
test('claude: >= 60 msd-* top-level skill entries (concrete flat layout, not nested)', () => {
const skillsDir = path.join(tmpDir, 'skills');
assert.ok(fs.existsSync(skillsDir), 'skills/ dir must exist');
const topLevel = fs.readdirSync(skillsDir).filter((n) => n.startsWith('gsd-'));
const topLevel = fs.readdirSync(skillsDir).filter((n) => n.startsWith('msd-'));
assert.ok(
topLevel.length >= 60,
`Expected >= 60 gsd-* top-level entries under claude/skills (flat layout after #924 fix). ` +
`Expected >= 60 msd-* top-level entries under claude/skills (flat layout after #924 fix). ` +
`Got ${topLevel.length}: [${topLevel.slice(0, 10).join(', ')}${topLevel.length > 10 ? ', …' : ''}]`,
);
});
@@ -329,16 +329,16 @@ for (const { runtime, scope } of FLAT) {
assert.ok(fs.existsSync(skillsDir), `skillsDir must exist: ${skillsDir}`);
const topLevel = fs.readdirSync(skillsDir);
const gsdEntries = topLevel.filter((n) => n.startsWith('gsd-'));
const msdEntries = topLevel.filter((n) => n.startsWith('msd-'));
// For flat runtimes, there should be many more than 6 top-level gsd- entries
// For flat runtimes, there should be many more than 6 top-level msd- entries
assert.ok(
gsdEntries.length >= 60,
`Flat runtime ${runtime} must have >= 60 gsd-* top-level entries (concrete skills), got ${gsdEntries.length}`,
msdEntries.length >= 60,
`Flat runtime ${runtime} must have >= 60 msd-* top-level entries (concrete skills), got ${msdEntries.length}`,
);
// No router dir should contain a skills/ subdirectory (nesting must not have been applied)
const routerDirsPresent = topLevel.filter((n) => n.startsWith('gsd-ns-'));
const routerDirsPresent = topLevel.filter((n) => n.startsWith('msd-ns-'));
for (const rd of routerDirsPresent) {
const nestedSkillsDir = path.join(skillsDir, rd, 'skills');
assert.ok(