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:
@@ -2,14 +2,14 @@
|
||||
|
||||
/**
|
||||
* Failing-first protocol-surface tests for the MCP served catalog — issue
|
||||
* #3072 (epic #1671 Phase B), `.gsd/phase/feat-3072-mcp-served-catalog/
|
||||
* #3072 (epic #1671 Phase B), `.msd/phase/feat-3072-mcp-served-catalog/
|
||||
* 40-design.md`.
|
||||
*
|
||||
* Covers 50-test-matrix.md rows 1-3 and 31-36: `resources`/`prompts`
|
||||
* capability advertisement, tool-surface independence, and the
|
||||
* `prompts/list` / `prompts/get` JSON-RPC surface — all exercised through
|
||||
* `handleMessage` (`src/mcp-server.cts`, compiled to
|
||||
* `gsd-core/bin/lib/mcp-server.cjs`), mirroring `tests/gsd-mcp-server.test.cjs`'s
|
||||
* `msd-core/bin/lib/mcp-server.cjs`), mirroring `tests/msd-mcp-server.test.cjs`'s
|
||||
* own structure and require path.
|
||||
*
|
||||
* `handleMessage` does not yet route `resources/*`/`prompts/*` at all — every
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
const { describe, test } = require('node:test');
|
||||
const assert = require('node:assert/strict');
|
||||
const { handleMessage } = require('../gsd-core/bin/lib/mcp-server.cjs');
|
||||
const { handleMessage } = require('../msd-core/bin/lib/mcp-server.cjs');
|
||||
|
||||
const METHOD_NOT_FOUND = -32601;
|
||||
const INVALID_PARAMS = -32602;
|
||||
@@ -52,7 +52,7 @@ describe('initialize / capabilities', () => {
|
||||
const res = handleMessage({ jsonrpc: '2.0', id: 1, method: 'tools/list' });
|
||||
assert.ok(res.result, 'tools/list must succeed');
|
||||
const names = res.result.tools.map((tool) => tool.name).sort();
|
||||
assert.deepEqual(names, ['gsd_invoke_command', 'gsd_read_state', 'gsd_write_state']);
|
||||
assert.deepEqual(names, ['msd_invoke_command', 'msd_read_state', 'msd_write_state']);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -63,7 +63,7 @@ describe('prompts — protocol surface', () => {
|
||||
const res = handleMessage({ jsonrpc: '2.0', id: 1, method: 'prompts/list' });
|
||||
assert.equal(res.error, undefined, 'prompts/list must not error');
|
||||
assert.ok(res.result && Array.isArray(res.result.prompts), 'result.prompts must be an array');
|
||||
assert.equal(res.result.prompts.length, 72, 'must list all 72 commands/gsd/*.md as prompts');
|
||||
assert.equal(res.result.prompts.length, 72, 'must list all 72 commands/msd/*.md as prompts');
|
||||
for (const p of res.result.prompts) {
|
||||
assert.equal(typeof p.name, 'string');
|
||||
assert.equal(p.name.includes('/'), false, 'name must be the bare command, not a path');
|
||||
|
||||
Reference in New Issue
Block a user