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:
@@ -9,15 +9,15 @@
|
||||
* #3576 — dead-citation gate for the shipped trees.
|
||||
*
|
||||
* A backticked bare `references/<name>.md` cite resolves from NO install location:
|
||||
* agents install to ~/.claude/agents/, workflows to ~/.claude/gsd-core/workflows/,
|
||||
* agents install to ~/.claude/agents/, workflows to ~/.claude/msd-core/workflows/,
|
||||
* references to a sibling of workflows — a bare relative `references/` path is dead
|
||||
* from every one of them. The canonical form (what every <required_reading> block
|
||||
* and @~/ include already uses) is `gsd-core/references/<file>.md`.
|
||||
* and @~/ include already uses) is `msd-core/references/<file>.md`.
|
||||
*
|
||||
* #3206 fixed one file; PR #3435 swept agents/gsd-verifier.md and stopped at its
|
||||
* #3206 fixed one file; PR #3435 swept agents/msd-verifier.md and stopped at its
|
||||
* scope. This gate ends the class (epic #3473's B6 shape; #3518's drift guard is
|
||||
* the precedent). Scope: the runtime-loaded trees the issue prescribes — agents/,
|
||||
* gsd-core/{workflows,references,templates,contexts}, commands/, capabilities/.
|
||||
* msd-core/{workflows,references,templates,contexts}, commands/, capabilities/.
|
||||
* docs/ (incl. translations) is deliberately OUT: human-facing, per-locale drift,
|
||||
* ranked lower severity by the issue — the recorded remainder.
|
||||
*
|
||||
@@ -34,10 +34,10 @@ const REPO_ROOT = path.join(__dirname, '..');
|
||||
|
||||
const SCAN_ROOTS = [
|
||||
'agents',
|
||||
'gsd-core/workflows',
|
||||
'gsd-core/references',
|
||||
'gsd-core/templates',
|
||||
'gsd-core/contexts',
|
||||
'msd-core/workflows',
|
||||
'msd-core/references',
|
||||
'msd-core/templates',
|
||||
'msd-core/contexts',
|
||||
'commands',
|
||||
'capabilities',
|
||||
];
|
||||
@@ -75,9 +75,9 @@ function findBareCites(text) {
|
||||
return offenders;
|
||||
}
|
||||
|
||||
/** Canonical `gsd-core/references/<name>` cites (backticked) — targets must exist. */
|
||||
/** Canonical `msd-core/references/<name>` cites (backticked) — targets must exist. */
|
||||
function findCanonicalCites(text) {
|
||||
const re = /`gsd-core\/references\/([a-z0-9-]*\.md)`/g;
|
||||
const re = /`msd-core\/references\/([a-z0-9-]*\.md)`/g;
|
||||
const found = [];
|
||||
let m;
|
||||
while ((m = re.exec(text)) !== null) found.push(m[1]);
|
||||
@@ -91,14 +91,14 @@ describe('#3576 gate: shipped reference citations resolve', () => {
|
||||
// allow-test-rule: source-text-is-the-product (#3576) — shipped text is the runtime contract
|
||||
const text = fs.readFileSync(abs, 'utf-8');
|
||||
for (const cite of findBareCites(text)) {
|
||||
offenders.push(`${rel}: \`${cite}\` — bare cite resolves from no install location; use \`gsd-core/${cite}\``);
|
||||
offenders.push(`${rel}: \`${cite}\` — bare cite resolves from no install location; use \`msd-core/${cite}\``);
|
||||
}
|
||||
}
|
||||
assert.deepEqual(
|
||||
offenders,
|
||||
[],
|
||||
'Bare `references/<name>.md` cites are dead pointers at runtime (#3576). '
|
||||
+ 'Rewrite to the canonical `gsd-core/references/<file>.md` form:\n'
|
||||
+ 'Rewrite to the canonical `msd-core/references/<file>.md` form:\n'
|
||||
+ offenders.join('\n'),
|
||||
);
|
||||
});
|
||||
@@ -109,8 +109,8 @@ describe('#3576 gate: shipped reference citations resolve', () => {
|
||||
// allow-test-rule: source-text-is-the-product (#3576) — shipped text is the runtime contract
|
||||
const text = fs.readFileSync(abs, 'utf-8');
|
||||
for (const name of findCanonicalCites(text)) {
|
||||
if (!fs.existsSync(path.join(REPO_ROOT, 'gsd-core', 'references', name))) {
|
||||
missing.push(`${rel}: \`gsd-core/references/${name}\` — target does not exist`);
|
||||
if (!fs.existsSync(path.join(REPO_ROOT, 'msd-core', 'references', name))) {
|
||||
missing.push(`${rel}: \`msd-core/references/${name}\` — target does not exist`);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -118,15 +118,15 @@ describe('#3576 gate: shipped reference citations resolve', () => {
|
||||
});
|
||||
|
||||
test('#3576 gate unit: @~/ token stripped per-token, never line-skipped; relative and canonical forms pass', () => {
|
||||
const includePlusBare = 'Read @~/gsd-core/references/tdd.md and `references/tdd.md` too';
|
||||
const includePlusBare = 'Read @~/msd-core/references/tdd.md and `references/tdd.md` too';
|
||||
assert.deepEqual(
|
||||
findBareCites(includePlusBare),
|
||||
['references/tdd.md'],
|
||||
'a bare cite sharing a line with an @~/ include must still be flagged (the issue-named trap)',
|
||||
);
|
||||
assert.deepEqual(findBareCites('see `../references/mvp-concepts.md`'), [], 'genuinely relative href is not a bare cite');
|
||||
assert.deepEqual(findBareCites('see `gsd-core/references/tdd.md`'), [], 'canonical cite is not a bare cite');
|
||||
assert.deepEqual(findBareCites('see `msd-core/references/tdd.md`'), [], 'canonical cite is not a bare cite');
|
||||
assert.deepEqual(findBareCites('the references/ directory'), [], 'non-backticked prose mention is not a cite');
|
||||
assert.deepEqual(findBareCites('Read @~/gsd-core/references/tdd.md now'), [], 'a lone @~/ include line is clean after stripping');
|
||||
assert.deepEqual(findBareCites('Read @~/msd-core/references/tdd.md now'), [], 'a lone @~/ include line is clean after stripping');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user