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:
@@ -3,7 +3,7 @@
|
||||
* state-command-cutover.test.cjs — ADR-2346 (epic #2345) P1 equivalence tests.
|
||||
*
|
||||
* Verifies that `state`, after cutover from the hardcoded `case 'state':` arm
|
||||
* in gsd-tools.cjs to the host dispatch table (dispatchHostCommand, consulted
|
||||
* in msd-tools.cjs to the host dispatch table (dispatchHostCommand, consulted
|
||||
* in runCommand's `default` case), behaves identically to the old inline case.
|
||||
*
|
||||
* Dispatch path after cutover:
|
||||
@@ -23,13 +23,13 @@ const assert = require('node:assert/strict');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const { runGsdTools, createTempProject, cleanup } = require('./helpers.cjs');
|
||||
const { runMsdTools, createTempProject, cleanup } = require('./helpers.cjs');
|
||||
|
||||
// gsd-tools.cjs is hand-authored (committed, not generated) — safe to require.
|
||||
// msd-tools.cjs is hand-authored (committed, not generated) — safe to require.
|
||||
const {
|
||||
dispatchHostCommand,
|
||||
HOST_COMMAND_ROUTERS,
|
||||
} = require('../gsd-core/bin/gsd-tools.cjs');
|
||||
} = require('../msd-core/bin/msd-tools.cjs');
|
||||
|
||||
// ─── helpers ─────────────────────────────────────────────────────────────────
|
||||
|
||||
@@ -114,7 +114,7 @@ describe('dispatchHostCommand: unit', async () => {
|
||||
});
|
||||
});
|
||||
|
||||
// ─── 2 + 3. DISPATCH + BEHAVIOR — end-to-end via runGsdTools ─────────────────
|
||||
// ─── 2 + 3. DISPATCH + BEHAVIOR — end-to-end via runMsdTools ─────────────────
|
||||
|
||||
describe('state cutover: end-to-end dispatch via the host table', async () => {
|
||||
let tmpDir;
|
||||
@@ -134,7 +134,7 @@ describe('state cutover: end-to-end dispatch via the host table', async () => {
|
||||
'# Project State\n\n## Current Position\n\nPhase: 1 of 1 (Test)\n',
|
||||
);
|
||||
|
||||
const result = runGsdTools(['--cwd=' + tmpDir, 'state', 'load'], process.cwd());
|
||||
const result = runMsdTools(['--cwd=' + tmpDir, 'state', 'load'], process.cwd());
|
||||
assert.strictEqual(
|
||||
result.success,
|
||||
true,
|
||||
@@ -143,7 +143,7 @@ describe('state cutover: end-to-end dispatch via the host table', async () => {
|
||||
});
|
||||
|
||||
test('unknown state subcommand surfaces the canonical unknown-subcommand error (non-zero exit)', async () => {
|
||||
const result = runGsdTools(['--cwd=' + tmpDir, 'state', 'totally-not-a-subcommand'], process.cwd());
|
||||
const result = runMsdTools(['--cwd=' + tmpDir, 'state', 'totally-not-a-subcommand'], process.cwd());
|
||||
assert.strictEqual(result.success, false, 'unknown subcommand must exit non-zero');
|
||||
assert.ok(
|
||||
result.error.length > 0,
|
||||
|
||||
Reference in New Issue
Block a user