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

@@ -36,7 +36,7 @@ const {
resolveRuntimeArtifactLayout,
resolveRuntimeArtifactLayoutFromRegistry,
} = require(
path.join(ROOT, 'gsd-core', 'bin', 'lib', 'runtime-artifact-layout.cjs'),
path.join(ROOT, 'msd-core', 'bin', 'lib', 'runtime-artifact-layout.cjs'),
);
const FAKE_DIR = '/tmp/fake-config-dir-dd';
@@ -51,18 +51,18 @@ const GOLDEN = {
// ── claude ──────────────────────────────────────────────────────────────────
// #2875 Part 2 (the agents-descriptor migration): claude/global gains an
// `agents` kind. This is NOT new on-disk behavior — a `claude --global`
// install always wrote `<configDir>/agents/gsd-*.md` via the now-deleted
// install always wrote `<configDir>/agents/msd-*.md` via the now-deleted
// inline agent-staging loop in bin/install.js (claude was never in
// `_DESCRIPTOR_AGENTS_RUNTIMES`, and that loop ran unconditionally,
// independent of `_isSkillsRuntime`/scope). The descriptor previously never
// modeled that write; it now does, matching what was always materialized.
'claude/global': [
{ kind: 'skills', destSubpath: 'skills', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
'claude/local': [
{ kind: 'commands', destSubpath: 'commands', prefix: 'gsd-' }, // #1367: flat gsd-<cmd>.md
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'commands', destSubpath: 'commands', prefix: 'msd-' }, // #1367: flat msd-<cmd>.md
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
// ── cursor ───────────────────────────────────────────────────────────────────
@@ -71,87 +71,87 @@ const GOLDEN = {
// ADR-1235 step 1 (#1763): agents kind added.
// #2644: commands are deliberately retired so Cursor exposes a single skills surface.
'cursor/global': [
{ kind: 'skills', destSubpath: 'skills', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
'cursor/local': [
{ kind: 'skills', destSubpath: 'skills', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
// ── codex ────────────────────────────────────────────────────────────────────
// Old switch: no scope branch → local == global. 5b backfill restores this.
// #2875 Part 2: agents kind added (the inline loop wrote codex agents too —
// codex was never in `_DESCRIPTOR_AGENTS_RUNTIMES`; the config.toml
// [agents.gsd-*] strip on a full→minimal downgrade is a SEPARATE, still
// [agents.msd-*] strip on a full→minimal downgrade is a SEPARATE, still
// hand-rolled write this migration deliberately does not touch).
'codex/global': [
{ kind: 'skills', destSubpath: 'skills', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
'codex/local': [
{ kind: 'skills', destSubpath: 'skills', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
// ── copilot ──────────────────────────────────────────────────────────────────
// Old switch: no scope branch → local == global. 5b backfill restores this.
// #1575: agents kind added (copilot cutover — .agent.md rename handled by _copyStaged).
'copilot/global': [
{ kind: 'skills', destSubpath: 'skills', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
'copilot/local': [
{ kind: 'skills', destSubpath: 'skills', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
// ── antigravity ──────────────────────────────────────────────────────────────
// Old switch: no scope branch → local == global. 5b backfill restores this.
// #1575: agents kind added (antigravity cutover — scope-aware converter).
'antigravity/global': [
{ kind: 'skills', destSubpath: 'skills', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
'antigravity/local': [
{ kind: 'skills', destSubpath: 'skills', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
// ── windsurf ─────────────────────────────────────────────────────────────────
// ADR-1235 step 1 (#1763): agents kind added to both scopes.
'windsurf/global': [
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
'windsurf/local': [
{ kind: 'commands', destSubpath: 'workflows', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'commands', destSubpath: 'workflows', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
// ── augment ──────────────────────────────────────────────────────────────────
// Old switch: no scope branch → local == global. 5b backfill restores this.
// ADR-1235 step 1 (#1763): agents kind added.
'augment/global': [
{ kind: 'commands', destSubpath: 'commands', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'commands', destSubpath: 'commands', prefix: 'msd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
'augment/local': [
{ kind: 'commands', destSubpath: 'commands', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'commands', destSubpath: 'commands', prefix: 'msd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
// ── trae ─────────────────────────────────────────────────────────────────────
// Old switch: no scope branch → local == global. 5b backfill restores this.
// ADR-1235 step 1 (#1763): agents kind added.
'trae/global': [
{ kind: 'skills', destSubpath: 'skills', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
'trae/local': [
{ kind: 'skills', destSubpath: 'skills', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
// ── qwen ─────────────────────────────────────────────────────────────────────
@@ -159,12 +159,12 @@ const GOLDEN = {
// ADR-1239 / #2092 Phase B Upgrade 1: agents kind added (native
// .qwen/agents/*.md subagent projection).
'qwen/global': [
{ kind: 'skills', destSubpath: 'skills', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
'qwen/local': [
{ kind: 'skills', destSubpath: 'skills', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
// ── hermes ───────────────────────────────────────────────────────────────────
@@ -172,26 +172,26 @@ const GOLDEN = {
// #2875 Part 2: agents kind added (the inline loop wrote hermes agents too,
// via a new named branding converter — convertClaudeAgentToHermesAgent).
'hermes/global': [
{ kind: 'skills', destSubpath: 'skills/gsd', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills/msd', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
'hermes/local': [
{ kind: 'skills', destSubpath: 'skills/gsd', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills/msd', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
// ── codebuddy ────────────────────────────────────────────────────────────────
// Old switch: no scope branch → local == global. 5b backfill restores this.
// ADR-1235 step 1 (#1763): agents kind added.
'codebuddy/global': [
{ kind: 'commands', destSubpath: 'commands', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'commands', destSubpath: 'commands', prefix: 'msd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
'codebuddy/local': [
{ kind: 'commands', destSubpath: 'commands', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'commands', destSubpath: 'commands', prefix: 'msd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
// ── cline ────────────────────────────────────────────────────────────────────
@@ -210,18 +210,18 @@ const GOLDEN = {
// .clinerules, never materialized as skill files
// (hostBehaviors.localCommandsViaRules).
'cline/global': [
{ kind: 'skills', destSubpath: 'skills', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
'cline/local': [
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
// ── kimi ─────────────────────────────────────────────────────────────────────
// Old switch: scope='global' → [skills, kimi-agents]; scope='local' → []. Matches descriptor.
'kimi/global': [
{ kind: 'skills', destSubpath: 'skills', prefix: 'gsd-' },
{ kind: 'kimi-agents', destSubpath: 'agents', prefix: 'gsd' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'msd-' },
{ kind: 'kimi-agents', destSubpath: 'agents', prefix: 'msd' },
],
'kimi/local': [],
@@ -229,21 +229,21 @@ const GOLDEN = {
// Old switch: no scope branch → local == global. 5b backfill restores this.
// #2329: destSubpath corrected from singular 'command' to plural 'commands' —
// OpenCode discovers slash commands from commands/ (plural); the singular
// command/ dir GSD previously wrote to is not scanned by OpenCode 1.17.13,
// so none of the ~71 /gsd-* commands ever appeared in the OpenCode TUI.
// command/ dir MSD previously wrote to is not scanned by OpenCode 1.17.13,
// so none of the ~71 /msd-* commands ever appeared in the OpenCode TUI.
// #2875 Part 2: agents kind added (the inline loop wrote opencode agents
// too — opencode's agents materialization previously went through the
// separate installOpencodeFamilySkills-adjacent inline loop, not through
// this layout at all; installAgentsKindStandalone now covers it).
'opencode/global': [
{ kind: 'commands', destSubpath: 'commands', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'commands', destSubpath: 'commands', prefix: 'msd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
'opencode/local': [
{ kind: 'commands', destSubpath: 'commands', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'commands', destSubpath: 'commands', prefix: 'msd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
// ── kilo ─────────────────────────────────────────────────────────────────────
@@ -252,14 +252,14 @@ const GOLDEN = {
// install shape, same install-engine.cts installOpencodeFamilyArtifacts /
// installAgentsKindStandalone coverage).
'kilo/global': [
{ kind: 'commands', destSubpath: 'command', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'commands', destSubpath: 'command', prefix: 'msd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
'kilo/local': [
{ kind: 'commands', destSubpath: 'command', prefix: 'gsd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'gsd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'gsd-' },
{ kind: 'commands', destSubpath: 'command', prefix: 'msd-' },
{ kind: 'skills', destSubpath: 'skills', prefix: 'msd-' },
{ kind: 'agents', destSubpath: 'agents', prefix: 'msd-' },
],
};
@@ -368,7 +368,7 @@ describe('resolveRuntimeArtifactLayout — descriptor-only future runtime', () =
{
kind: 'commands',
destSubpath: 'commands',
prefix: 'gsd-',
prefix: 'msd-',
nesting: 'flat',
recursive: false,
converter: null,
@@ -394,7 +394,7 @@ describe('resolveRuntimeArtifactLayout — descriptor-only future runtime', () =
assert.strictEqual(layout.kinds.length, 1);
assert.strictEqual(layout.kinds[0].kind, 'commands');
assert.strictEqual(layout.kinds[0].destSubpath, 'commands');
assert.strictEqual(layout.kinds[0].prefix, 'gsd-');
assert.strictEqual(layout.kinds[0].prefix, 'msd-');
assert.strictEqual(typeof layout.kinds[0].stage, 'function');
});
});
@@ -444,7 +444,7 @@ describe('resolveRuntimeArtifactLayout — multi-kind runtimes non-vacuous (desc
assert.strictEqual(layout.kinds[0].kind, 'skills');
assert.strictEqual(layout.kinds[1].kind, 'kimi-agents');
assert.strictEqual(layout.kinds[1].destSubpath, 'agents');
assert.strictEqual(layout.kinds[1].prefix, 'gsd');
assert.strictEqual(layout.kinds[1].prefix, 'msd');
});
test('codebuddy global returns commands then skills then agents', () => {