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

@@ -30,12 +30,12 @@ const { runNode } = require('./helpers/process-seam.cjs');
const { PROBE_TIMEOUT_MS } = require('./helpers/timeouts.cjs');
const ROOT = path.join(__dirname, '..');
const GSD_TOOLS = path.join(ROOT, 'gsd-core', 'bin', 'gsd-tools.cjs');
const MSD_TOOLS = path.join(ROOT, 'msd-core', 'bin', 'msd-tools.cjs');
const {
cmdWorktreeWorkerRecord,
cmdWorktreeWorkerStatus,
cmdWorktreeWorkerComplete,
} = require('../gsd-core/bin/lib/worktree-safety.cjs');
} = require('../msd-core/bin/lib/worktree-safety.cjs');
describe('#4624 worktree worker lifecycle records', () => {
let dir;
@@ -175,18 +175,18 @@ describe('#4624 worktree worker lifecycle records', () => {
assert.equal(run('status', []).exitCode, 2);
});
test('end-to-end through the gsd-tools CLI router: record → status(dead pid) → complete', () => {
const record = runNode([GSD_TOOLS, 'query', 'worktree', 'worker-record',
test('end-to-end through the msd-tools CLI router: record → status(dead pid) → complete', () => {
const record = runNode([MSD_TOOLS, 'query', 'worktree', 'worker-record',
'--path', wtPath, '--pid', String(process.pid), '--plan', '3', '--summary-path', summaryPath],
{ timeoutMs: PROBE_TIMEOUT_MS });
assert.equal(record.exitCode, 0, `record failed: ${record.stderr}`);
const deadPid = 2147483646; // max int32 — ESRCH on every platform, never a real pid
runNode([GSD_TOOLS, 'query', 'worktree', 'worker-record',
runNode([MSD_TOOLS, 'query', 'worktree', 'worker-record',
'--path', path.join(dir, 'agent-p4-1700000001'), '--pid', String(deadPid),
'--plan', '4', '--summary-path', summaryPath], { timeoutMs: PROBE_TIMEOUT_MS });
const status = runNode([GSD_TOOLS, 'query', 'worktree', 'worker-status', '--root', dir],
const status = runNode([MSD_TOOLS, 'query', 'worktree', 'worker-status', '--root', dir],
{ timeoutMs: PROBE_TIMEOUT_MS });
assert.equal(status.exitCode, 0);
const workers = JSON.parse(status.stdout).workers;
@@ -195,7 +195,7 @@ describe('#4624 worktree worker lifecycle records', () => {
assert.equal(self.needsReconciliation, false, 'self pid is alive');
assert.equal(gone.needsReconciliation, true, 'dead-pid worker needs reconciliation');
const complete = runNode([GSD_TOOLS, 'query', 'worktree', 'worker-complete',
const complete = runNode([MSD_TOOLS, 'query', 'worktree', 'worker-complete',
'--path', wtPath, '--exit-code', '0'], { timeoutMs: PROBE_TIMEOUT_MS });
assert.equal(complete.exitCode, 0);
});