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

@@ -3,7 +3,7 @@
/**
* VS Code Language Model Tools test — #2103 UPGRADE 1.
*
* Proves the GSD extension's Language Model Tools are keystone-WIRED:
* Proves the MSD extension's Language Model Tools are keystone-WIRED:
* 1. contributes.languageModelTools is present in package.json and its
* `name` entries match the runtime registration names (extension.js's
* LM_TOOLS / browser.js's LM_TOOL_NAMES) exactly — a mismatch here would
@@ -11,7 +11,7 @@
* 2. registerLanguageModelTools() calls vscode.lm.registerTool for every
* manifest entry (mock vscode.lm — no real VS Code host available in CI).
* 3. A registered tool's invoke() dispatches through the SAME shared
* dispatchGsdCommand as gsd.invoke (desktop) and returns REAL output —
* dispatchMsdCommand as msd.invoke (desktop) and returns REAL output —
* the "user can invoke X" proof, matching the reachability-test pattern.
* 4. The desktop and web entries register the identical tool NAME set (only
* the invoke() behavior differs — real dispatch vs. honest web-mode message).
@@ -99,7 +99,7 @@ test('REACHABILITY (desktop): registerLanguageModelTools registers every manifes
assert.deepEqual(mock.registered.map((r) => r.name).sort(), extension.LM_TOOLS.map((t) => t.name).sort());
});
test('REACHABILITY (desktop): gsd_progress tool.invoke() dispatches through the hub and returns REAL output', async () => {
test('REACHABILITY (desktop): msd_progress tool.invoke() dispatches through the hub and returns REAL output', async () => {
const dir = createTempDir();
try {
// #3217 (ADR-3180 §7.6 rule 4): a free-form ROADMAP.md (no version
@@ -113,8 +113,8 @@ test('REACHABILITY (desktop): gsd_progress tool.invoke() dispatches through the
// dir through the mock's workspace so dispatch actually runs against it.
const mock = mockVscodeLm(dir);
extension.registerLanguageModelTools(mock, { subscriptions: [] });
const progressTool = mock.registered.find((r) => r.name === 'gsd_progress');
assert.ok(progressTool, 'gsd_progress must be registered');
const progressTool = mock.registered.find((r) => r.name === 'msd_progress');
assert.ok(progressTool, 'msd_progress must be registered');
const result = await progressTool.impl.invoke({ input: {} }, {});
assert.ok(result instanceof FakeToolResult, 'invoke must return a LanguageModelToolResult');
assert.ok(Array.isArray(result.parts) && result.parts.length === 1);
@@ -126,7 +126,7 @@ test('REACHABILITY (desktop): gsd_progress tool.invoke() dispatches through the
}
});
test('REACHABILITY (desktop): gsd_plan_phase tool.invoke() forwards the "phase" input through dispatch (real, not UnknownCommand)', async () => {
test('REACHABILITY (desktop): msd_plan_phase tool.invoke() forwards the "phase" input through dispatch (real, not UnknownCommand)', async () => {
const dir = createTempDir();
try {
// The LM tool's invoke() resolves cwd via vscode.workspace.workspaceFolders
@@ -134,11 +134,11 @@ test('REACHABILITY (desktop): gsd_plan_phase tool.invoke() forwards the "phase"
// dir through the mock's workspace so dispatch actually runs against it.
const mock = mockVscodeLm(dir);
extension.registerLanguageModelTools(mock, { subscriptions: [] });
const planPhaseTool = mock.registered.find((r) => r.name === 'gsd_plan_phase');
const planPhaseTool = mock.registered.find((r) => r.name === 'msd_plan_phase');
assert.ok(planPhaseTool);
const result = await planPhaseTool.impl.invoke({ input: { phase: 'nonexistent-phase-8675309' } }, {});
const parsed = JSON.parse(result.parts[0].text);
// Real dispatch reaches gsd-tools.cjs and returns a structured "phase not
// Real dispatch reaches msd-tools.cjs and returns a structured "phase not
// found" response (proves the engine was reached) — not the manifest's
// own family/subcommand rejected as unknown.
assert.equal(parsed.phase, 'nonexistent-phase-8675309');
@@ -148,7 +148,7 @@ test('REACHABILITY (desktop): gsd_plan_phase tool.invoke() forwards the "phase"
}
});
test('gsd_workstreams tool.invoke() dispatches through the hub and returns REAL output', async () => {
test('msd_workstreams tool.invoke() dispatches through the hub and returns REAL output', async () => {
const dir = createTempDir();
try {
// The LM tool's invoke() resolves cwd via vscode.workspace.workspaceFolders
@@ -156,7 +156,7 @@ test('gsd_workstreams tool.invoke() dispatches through the hub and returns REAL
// dir through the mock's workspace so dispatch actually runs against it.
const mock = mockVscodeLm(dir);
extension.registerLanguageModelTools(mock, { subscriptions: [] });
const wsTool = mock.registered.find((r) => r.name === 'gsd_workstreams');
const wsTool = mock.registered.find((r) => r.name === 'msd_workstreams');
const result = await wsTool.impl.invoke({ input: {} }, {});
const parsed = JSON.parse(result.parts[0].text);
assert.ok('workstreams' in parsed || 'mode' in parsed, 'expected a real workstream list response shape');
@@ -176,7 +176,7 @@ test('WEB MODE: browser.js registerLanguageModelTools registers the same names b
const mock = mockVscodeLm();
const count = browser.registerLanguageModelTools(mock, { subscriptions: [] });
assert.equal(count, browser.LM_TOOL_NAMES.length);
const progressTool = mock.registered.find((r) => r.name === 'gsd_progress');
const progressTool = mock.registered.find((r) => r.name === 'msd_progress');
const result = await progressTool.impl.invoke({ input: {} }, {});
assert.match(result.parts[0].text, /web mode/i);
assert.match(result.parts[0].text, /MCP server/);