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:
@@ -18,12 +18,12 @@ const CORE_SUBSTRATE_TERMS = [
|
||||
'Edge Probe Module',
|
||||
];
|
||||
|
||||
const registry = require('../gsd-core/bin/lib/capability-registry.cjs');
|
||||
const { isCentralConfigKey } = require('../gsd-core/bin/lib/config-schema.cjs');
|
||||
const { escapeRegex: escapeRegExp } = require('../gsd-core/bin/lib/pattern.cjs');
|
||||
const registry = require('../msd-core/bin/lib/capability-registry.cjs');
|
||||
const { isCentralConfigKey } = require('../msd-core/bin/lib/config-schema.cjs');
|
||||
const { escapeRegex: escapeRegExp } = require('../msd-core/bin/lib/pattern.cjs');
|
||||
|
||||
/**
|
||||
* A single gsd-tools.cjs `check <query> --raw` CLI subcommand spawn, no
|
||||
* A single msd-tools.cjs `check <query> --raw` CLI subcommand spawn, no
|
||||
* fan-out, doing real registry lookup and gate-predicate evaluation work
|
||||
* through the full CLI dispatch path -- "the real dispatch form used by
|
||||
* the host loop." Coincides numerically with tests/helpers/timeouts.cjs's
|
||||
@@ -154,7 +154,7 @@ describe('ADR-857 Phase 6 capstone conformance (#1139)', () => {
|
||||
assert.deepEqual(
|
||||
orphaned, [],
|
||||
`ADR-857 phase 6 is NOT complete: capability hooks declare these extension points ` +
|
||||
`but no host-loop workflow calls \`gsd_run loop render-hooks <point>\`, so the hooks ` +
|
||||
`but no host-loop workflow calls \`msd_run loop render-hooks <point>\`, so the hooks ` +
|
||||
`can never fire: ${orphaned.join(', ')}. Wire each call site (#1167/#1169).`,
|
||||
);
|
||||
});
|
||||
@@ -239,7 +239,7 @@ describe('ADR-857 Phase 6 capstone conformance (#1139)', () => {
|
||||
const PRE_PHASE6 = { 'plan-phase.md': 98300, 'execute-phase.md': 93600 };
|
||||
const notShrunk = [];
|
||||
for (const [file, frozen] of Object.entries(PRE_PHASE6)) {
|
||||
const now = lfByteCount(path.join(ROOT, 'gsd-core', 'workflows', file));
|
||||
const now = lfByteCount(path.join(ROOT, 'msd-core', 'workflows', file));
|
||||
if (now >= frozen) notShrunk.push(`${file}: ${now} bytes (must be < pre-phase-6 ${frozen})`);
|
||||
}
|
||||
assert.deepEqual(
|
||||
@@ -250,9 +250,9 @@ describe('ADR-857 Phase 6 capstone conformance (#1139)', () => {
|
||||
});
|
||||
|
||||
describe('ADR-857 phase 6 — capabilities must not bake install paths into the registry', () => {
|
||||
// Matches GSD install paths that LEAK when copied verbatim to non-Claude runtimes.
|
||||
// Matches MSD install paths that LEAK when copied verbatim to non-Claude runtimes.
|
||||
// (~/.claude/projects is a legit runtime feature and is intentionally NOT matched.)
|
||||
const LEAK = /\.claude[/\\](?:gsd-core|commands|agents|hooks)\b/;
|
||||
const LEAK = /\.claude[/\\](?:msd-core|commands|agents|hooks)\b/;
|
||||
|
||||
test('no capability source (capability.json or fragment) embeds a ~/.claude install path', () => {
|
||||
const capsDir = path.join(__dirname, '..', 'capabilities');
|
||||
@@ -278,7 +278,7 @@ describe('ADR-857 phase 6 — capabilities must not bake install paths into the
|
||||
});
|
||||
|
||||
test('generated capability-registry.cjs contains no ~/.claude install path', () => {
|
||||
const reg = fs.readFileSync(path.join(__dirname, '..', 'gsd-core', 'bin', 'lib', 'capability-registry.cjs'), 'utf8');
|
||||
const reg = fs.readFileSync(path.join(__dirname, '..', 'msd-core', 'bin', 'lib', 'capability-registry.cjs'), 'utf8');
|
||||
// allow-test-rule: source-text-is-the-product (#3464)
|
||||
const leakLines = reg.split(/\r?\n/).map((l, i) => [i + 1, l]).filter(([, l]) => LEAK.test(l)).map(([n]) => n);
|
||||
assert.deepEqual(leakLines, [],
|
||||
@@ -297,7 +297,7 @@ describe('ADR-857 phase 6 — capabilities must not bake install paths into the
|
||||
// into == "planner" (or iterate contributions), AND must NOT rely solely
|
||||
// on a single capId == "tdd" injection as the only planner contribution
|
||||
// delivery mechanism.
|
||||
const planPhase = readRepoFile('gsd-core/workflows/plan-phase.md');
|
||||
const planPhase = readRepoFile('msd-core/workflows/plan-phase.md');
|
||||
|
||||
// The file must contain a generic reference to into == "planner" contribution injection.
|
||||
assert.match(
|
||||
@@ -339,7 +339,7 @@ describe('ADR-857 phase 6 — capabilities must not bake install paths into the
|
||||
// Markdown, not a source path, so local/no-source-grep does not apply).
|
||||
|
||||
test('the verify:pre produced-artefact seam is conditional, and the pre-existing derivation paths are not nested inside it (#3866)', () => {
|
||||
const wf = readRepoFile('gsd-core/workflows/verify-work.md');
|
||||
const wf = readRepoFile('msd-core/workflows/verify-work.md');
|
||||
|
||||
const seamIdx = wf.indexOf('Verify:pre produced-artefact seam');
|
||||
assert.ok(seamIdx > 0, 'verify-work.md must carry the verify:pre produced-artefact seam');
|
||||
@@ -376,7 +376,7 @@ describe('ADR-857 phase 6 — capabilities must not bake install paths into the
|
||||
});
|
||||
|
||||
test('the verify:pre produced-artefact seam validates manifest-supplied artefact names in-context (#3866)', () => {
|
||||
const wf = readRepoFile('gsd-core/workflows/verify-work.md');
|
||||
const wf = readRepoFile('msd-core/workflows/verify-work.md');
|
||||
const seamIdx = wf.indexOf('Verify:pre produced-artefact seam');
|
||||
assert.ok(seamIdx > 0, 'verify-work.md must carry the verify:pre produced-artefact seam');
|
||||
const seam = wf.slice(seamIdx, legacyEnd(wf, seamIdx));
|
||||
@@ -425,7 +425,7 @@ describe('ADR-857 phase 6 — capabilities must not bake install paths into the
|
||||
}
|
||||
assert.ok(queries.size > 0, 'Registry must declare at least one gate check.query');
|
||||
|
||||
const gsdTools = path.join(ROOT, 'gsd-core', 'bin', 'gsd-tools.cjs');
|
||||
const msdTools = path.join(ROOT, 'msd-core', 'bin', 'msd-tools.cjs');
|
||||
const failures = [];
|
||||
|
||||
for (const query of [...queries].sort()) {
|
||||
@@ -436,7 +436,7 @@ describe('ADR-857 phase 6 — capabilities must not bake install paths into the
|
||||
// no real project state exists.
|
||||
rawOut = execFileSync(
|
||||
process.execPath,
|
||||
[gsdTools, 'check', query, '1', '--raw'],
|
||||
[msdTools, 'check', query, '1', '--raw'],
|
||||
{ cwd: tmpDir, encoding: 'utf-8', timeout: GATE_CHECK_CLI_TIMEOUT_MS },
|
||||
);
|
||||
const parsed = JSON.parse(rawOut.trim());
|
||||
@@ -452,7 +452,7 @@ describe('ADR-857 phase 6 — capabilities must not bake install paths into the
|
||||
try {
|
||||
rawOut = execFileSync(
|
||||
process.execPath,
|
||||
[gsdTools, 'check', query, tmpDir, '--raw'],
|
||||
[msdTools, 'check', query, tmpDir, '--raw'],
|
||||
{ cwd: tmpDir, encoding: 'utf-8', timeout: GATE_CHECK_CLI_TIMEOUT_MS },
|
||||
);
|
||||
const parsed = JSON.parse(rawOut.trim());
|
||||
|
||||
Reference in New Issue
Block a user