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:
@@ -21,7 +21,7 @@ const {
|
||||
REVIEWER_LANES,
|
||||
DOCS_PARITY_VIOLATION,
|
||||
checkReviewerDocsParity,
|
||||
} = require('../gsd-core/bin/lib/review-lane-descriptor.cjs');
|
||||
} = require('../msd-core/bin/lib/review-lane-descriptor.cjs');
|
||||
|
||||
const ROOT = path.join(__dirname, '..');
|
||||
|
||||
@@ -43,7 +43,7 @@ function bracketAll(flags) {
|
||||
/** A COMMANDS.md-shaped fixture: table cell listing flags, no signature line. */
|
||||
function commandsDoc(flags) {
|
||||
return [
|
||||
'### `/gsd-review`',
|
||||
'### `/msd-review`',
|
||||
'',
|
||||
`Reviewer flags: ${backtickAll(flags)}`,
|
||||
'',
|
||||
@@ -53,7 +53,7 @@ function commandsDoc(flags) {
|
||||
/** A FEATURES.md-shaped fixture: signature line + Purpose line naming every title. */
|
||||
function featuresDoc({ sigFlags = ALL_FLAGS, titles = ALL_TITLES, blanksBetween = 1 } = {}) {
|
||||
const lines = [
|
||||
`**Command:** \`/gsd-review --phase N ${bracketAll(sigFlags)} [--all]\``,
|
||||
`**Command:** \`/msd-review --phase N ${bracketAll(sigFlags)} [--all]\``,
|
||||
];
|
||||
for (let i = 0; i < blanksBetween; i += 1) lines.push('');
|
||||
lines.push(`**Purpose:** Invoke ${titles.join(', ')} to independently review phase plans.`);
|
||||
@@ -88,7 +88,7 @@ describe('reviewer docs parity — flag arm', () => {
|
||||
});
|
||||
|
||||
test('a section with no flags at all reports every lane', () => {
|
||||
const doc = ['### `/gsd-review`', '', 'Some prose with no flags.', ''].join('\n');
|
||||
const doc = ['### `/msd-review`', '', 'Some prose with no flags.', ''].join('\n');
|
||||
const r = checkReviewerDocsParity({ descriptor: REVIEWER_LANES, docs: { d: doc } });
|
||||
assert.strictEqual(r.violations.length, ALL_FLAGS.length);
|
||||
assert.ok(r.violations.every((v) => v.reason === DOCS_PARITY_VIOLATION.DOC_FLAG_MISSING));
|
||||
@@ -117,7 +117,7 @@ describe('reviewer docs parity — flag arm', () => {
|
||||
test('bracketed flags satisfy the gate too', () => {
|
||||
const rest = ALL_FLAGS.filter((f) => f !== '--codex');
|
||||
const doc = [
|
||||
'### `/gsd-review`',
|
||||
'### `/msd-review`',
|
||||
'',
|
||||
`Reviewer flags: [--codex] ${backtickAll(rest)}`,
|
||||
'',
|
||||
@@ -132,7 +132,7 @@ describe('reviewer docs parity — signature arm', () => {
|
||||
const doc = [
|
||||
backtickAll(ALL_FLAGS),
|
||||
'',
|
||||
'**Command:** `/gsd-review --phase N [--codex] [--all]`',
|
||||
'**Command:** `/msd-review --phase N [--codex] [--all]`',
|
||||
'',
|
||||
`**Purpose:** ${ALL_TITLES.join(', ')}.`,
|
||||
].join('\n');
|
||||
@@ -154,7 +154,7 @@ describe('reviewer docs parity — signature arm', () => {
|
||||
const doc = [
|
||||
backtickAll(ALL_FLAGS),
|
||||
'',
|
||||
`**Command:** \`/gsd-review --phase N ${bracketAll(ALL_FLAGS)} [--acme] [--all]\``,
|
||||
`**Command:** \`/msd-review --phase N ${bracketAll(ALL_FLAGS)} [--acme] [--all]\``,
|
||||
'',
|
||||
`**Purpose:** ${ALL_TITLES.join(', ')}.`,
|
||||
].join('\n');
|
||||
@@ -169,7 +169,7 @@ describe('reviewer docs parity — signature arm', () => {
|
||||
const doc = [
|
||||
backtickAll(ALL_FLAGS),
|
||||
'',
|
||||
`**Command:** \`/gsd-review --phase N ${bracketAll(ALL_FLAGS)} [--all]\``,
|
||||
`**Command:** \`/msd-review --phase N ${bracketAll(ALL_FLAGS)} [--all]\``,
|
||||
'',
|
||||
`**Purpose:** ${ALL_TITLES.join(', ')}.`,
|
||||
].join('\n');
|
||||
@@ -183,7 +183,7 @@ describe('reviewer docs parity — signature arm', () => {
|
||||
const doc = [
|
||||
'| Command | Description |',
|
||||
'| --- | --- |',
|
||||
`| /gsd-review | ${backtickAll(ALL_FLAGS)} |`,
|
||||
`| /msd-review | ${backtickAll(ALL_FLAGS)} |`,
|
||||
'',
|
||||
].join('\n');
|
||||
const r = checkReviewerDocsParity({ descriptor: REVIEWER_LANES, docs: { d: doc } });
|
||||
@@ -231,7 +231,7 @@ describe('reviewer docs parity — title arm', () => {
|
||||
const doc = [
|
||||
backtickAll(ALL_FLAGS),
|
||||
'',
|
||||
`**Command:** \`/gsd-review --phase N ${bracketAll(ALL_FLAGS)} [--all]\``,
|
||||
`**Command:** \`/msd-review --phase N ${bracketAll(ALL_FLAGS)} [--all]\``,
|
||||
].join('\n');
|
||||
const r = checkReviewerDocsParity({ descriptor: REVIEWER_LANES, docs: { d: doc } });
|
||||
assert.ok(!r.violations.some((v) => v.reason === DOCS_PARITY_VIOLATION.DOC_TITLE_MISSING));
|
||||
@@ -249,7 +249,7 @@ describe('reviewer docs parity — table row arm', () => {
|
||||
(l) => `| ${l.flags.map((f) => `\`${f}\``).join(' / ')} | ${l.reviewsSection} review |`,
|
||||
);
|
||||
const doc = [
|
||||
'### `/gsd-review`',
|
||||
'### `/msd-review`',
|
||||
'',
|
||||
'| Flag | Description | Notes |',
|
||||
'| --- | --- | --- |',
|
||||
@@ -273,7 +273,7 @@ describe('reviewer docs parity — table row arm', () => {
|
||||
(l) => `| ${l.flags.map((f) => `\`${f}\``).join(' / ')} | ${l.reviewsSection} review |`,
|
||||
);
|
||||
const doc = [
|
||||
'### `/gsd-review`',
|
||||
'### `/msd-review`',
|
||||
'',
|
||||
'| Flag | Description |',
|
||||
'| --- | --- |',
|
||||
@@ -289,7 +289,7 @@ describe('reviewer docs parity — table row arm', () => {
|
||||
|
||||
test('aForwardingRowAloneDoesNotSatisfyTheTableArm', () => {
|
||||
const doc = [
|
||||
'### `/gsd-review`',
|
||||
'### `/msd-review`',
|
||||
'',
|
||||
'| Flag | Description | Notes |',
|
||||
'| --- | --- | --- |',
|
||||
@@ -359,12 +359,12 @@ describe('reviewer docs parity — not-corruption (must NOT fire)', () => {
|
||||
test('a flag outside the section does not satisfy the gate', () => {
|
||||
const rest = ALL_FLAGS.filter((f) => f !== '--codex');
|
||||
const doc = [
|
||||
'### `/gsd-review`',
|
||||
'### `/msd-review`',
|
||||
'',
|
||||
`Reviewer flags: ${backtickAll(rest)}`,
|
||||
'',
|
||||
'```bash',
|
||||
'/gsd-plan-review-convergence 3 --codex',
|
||||
'/msd-plan-review-convergence 3 --codex',
|
||||
'```',
|
||||
'',
|
||||
].join('\n');
|
||||
@@ -387,7 +387,7 @@ describe('reviewer docs parity — not-corruption (must NOT fire)', () => {
|
||||
|
||||
test('translated descriptions do not fail', () => {
|
||||
const doc = [
|
||||
'### `/gsd-review`',
|
||||
'### `/msd-review`',
|
||||
'',
|
||||
`Invoca CLIs de IA externas: ${backtickAll(ALL_FLAGS)}`,
|
||||
'',
|
||||
@@ -418,7 +418,7 @@ describe('reviewer docs parity — HTML comment stripping (CodeQL js/incomplete-
|
||||
// the row reads as documented. Regressed exactly here: verified against the pre-fix
|
||||
// single-pass implementation, only `TABLE_ROW_MISSING` fired and `DOC_FLAG_MISSING` did not.
|
||||
const joinLine = '<!-<!--DUMMY-->-| `--kimi-code` | d |-->';
|
||||
const doc = ['### `/gsd-review`', '', ...NON_KIMI_ROWS, '', joinLine, ''].join('\n');
|
||||
const doc = ['### `/msd-review`', '', ...NON_KIMI_ROWS, '', joinLine, ''].join('\n');
|
||||
const r = checkReviewerDocsParity({ descriptor: REVIEWER_LANES, docs: { d: doc } });
|
||||
const kimi = r.violations.filter((v) => v.subject === '--kimi-code');
|
||||
assert.ok(
|
||||
@@ -430,7 +430,7 @@ describe('reviewer docs parity — HTML comment stripping (CodeQL js/incomplete-
|
||||
|
||||
test('anUnterminatedCommentOpenerSwallowsTheRestOfTheDocument', () => {
|
||||
const doc = [
|
||||
'### `/gsd-review`',
|
||||
'### `/msd-review`',
|
||||
'',
|
||||
...NON_KIMI_ROWS,
|
||||
'',
|
||||
@@ -447,7 +447,7 @@ describe('reviewer docs parity — HTML comment stripping (CodeQL js/incomplete-
|
||||
// Pins that the fix does not over-strip: prose AFTER a comment's real close is real prose
|
||||
// again, not swallowed along with the comment.
|
||||
const doc = [
|
||||
'### `/gsd-review`',
|
||||
'### `/msd-review`',
|
||||
'',
|
||||
...NON_KIMI_ROWS,
|
||||
'',
|
||||
@@ -464,7 +464,7 @@ describe('reviewer docs parity — HTML comment stripping (CodeQL js/incomplete-
|
||||
|
||||
test('multipleIndependentCommentsOnOneLineAreAllStripped', () => {
|
||||
const line = 'A <!-- first --> B <!-- | `--kimi-code` | d | -->';
|
||||
const doc = ['### `/gsd-review`', '', ...NON_KIMI_ROWS, '', line, ''].join('\n');
|
||||
const doc = ['### `/msd-review`', '', ...NON_KIMI_ROWS, '', line, ''].join('\n');
|
||||
const r = checkReviewerDocsParity({ descriptor: REVIEWER_LANES, docs: { d: doc } });
|
||||
const kimi = r.violations.filter((v) => v.subject === '--kimi-code');
|
||||
assert.ok(kimi.length > 0, 'both independent comment spans on one line must be stripped');
|
||||
@@ -630,7 +630,7 @@ describe('reviewer docs parity — independence and properties', () => {
|
||||
flags: ['--' + 'a'.repeat(200000)],
|
||||
reviewsSection: 'T'.repeat(200000),
|
||||
};
|
||||
const doc = '/gsd-review some prose mentioning the command.';
|
||||
const doc = '/msd-review some prose mentioning the command.';
|
||||
let result;
|
||||
assert.doesNotThrow(() => {
|
||||
result = checkReviewerDocsParity({ descriptor: [pathologicalLane], docs: { d: doc } });
|
||||
@@ -690,14 +690,14 @@ describe('reviewer docs parity — the shipped repo', () => {
|
||||
);
|
||||
assert.strictEqual(r.ok, true);
|
||||
// Bounded, not merely `.includes(...)`: an unbounded skipped set is exactly how a doc
|
||||
// silently drops out of coverage — if a real shipped doc lost its `/gsd-review` marker
|
||||
// silently drops out of coverage — if a real shipped doc lost its `/msd-review` marker
|
||||
// (accidentally or via a bad edit), `checkReviewerDocsParity` would add it to `skipped`
|
||||
// instead of gating it, and an `.includes()`-only assertion would still pass green with
|
||||
// that doc no longer checked at all. Asserting the exact set closes that gap.
|
||||
assert.deepStrictEqual(
|
||||
r.skipped.slice().sort(),
|
||||
['docs/pt-BR/FEATURES.md'].sort(),
|
||||
'the skipped set must be EXACTLY this one known stub (a 77-line doc with no /gsd-review ' +
|
||||
'the skipped set must be EXACTLY this one known stub (a 77-line doc with no /msd-review ' +
|
||||
'section) — any other entry means a real doc silently dropped out of coverage',
|
||||
);
|
||||
});
|
||||
@@ -725,7 +725,7 @@ describe('review-lane flags — emitted shape', () => {
|
||||
const { runNode } = require('./helpers/process-seam.cjs');
|
||||
const { toLegacyResult } = require('./helpers/git-fixture.cjs');
|
||||
const { PROBE_TIMEOUT_MS } = require('./helpers/timeouts.cjs');
|
||||
const TOOLS = path.join(__dirname, '..', 'gsd-core', 'bin', 'gsd-tools.cjs');
|
||||
const TOOLS = path.join(__dirname, '..', 'msd-core', 'bin', 'msd-tools.cjs');
|
||||
const runFlags = (args = []) => {
|
||||
const r = runNode([TOOLS, 'review-lane', 'flags', ...args], { timeoutMs: PROBE_TIMEOUT_MS });
|
||||
return toLegacyResult(r);
|
||||
|
||||
Reference in New Issue
Block a user