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:
@@ -2,7 +2,7 @@
|
||||
* Characterization tests for code-review-flags module.
|
||||
*
|
||||
* These assertions lock the flag-parsing and workflow-dispatch behaviour
|
||||
* used by the /gsd:code-review command. Covers both exports and every quirk
|
||||
* used by the /msd:code-review command. Covers both exports and every quirk
|
||||
* documented in the hand-written .cjs (ADR-457 build-at-publish migration).
|
||||
*/
|
||||
const { describe, test } = require('node:test');
|
||||
@@ -10,7 +10,7 @@ const assert = require('node:assert/strict');
|
||||
const {
|
||||
parseCodeReviewFlags,
|
||||
resolveCodeReviewWorkflow,
|
||||
} = require('../gsd-core/bin/lib/code-review-flags.cjs');
|
||||
} = require('../msd-core/bin/lib/code-review-flags.cjs');
|
||||
|
||||
describe('parseCodeReviewFlags', () => {
|
||||
test('no flags → all defaults', () => {
|
||||
@@ -121,7 +121,7 @@ describe('resolveCodeReviewWorkflow', () => {
|
||||
// are IR-level (not raw-text-match) per CONTRIBUTING.md L554.
|
||||
|
||||
/**
|
||||
* Regression tests for #3727 — /gsd-code-review N --fix silently no-ops.
|
||||
* Regression tests for #3727 — /msd-code-review N --fix silently no-ops.
|
||||
*
|
||||
* Root cause: code-review.md `initialize` step parses only --depth and
|
||||
* --files flags. --fix, --all, and --auto are never parsed, so no dispatch
|
||||
@@ -140,8 +140,8 @@ const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
|
||||
const ROOT = path.resolve(__dirname, '..');
|
||||
const FLAGS_LIB = path.join(ROOT, 'gsd-core', 'bin', 'lib', 'code-review-flags.cjs');
|
||||
const WORKFLOW_PATH = path.join(ROOT, 'gsd-core', 'workflows', 'code-review.md');
|
||||
const FLAGS_LIB = path.join(ROOT, 'msd-core', 'bin', 'lib', 'code-review-flags.cjs');
|
||||
const WORKFLOW_PATH = path.join(ROOT, 'msd-core', 'workflows', 'code-review.md');
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Stage 2 seam: typed IR from parseCodeReviewFlags and resolveCodeReviewWorkflow
|
||||
@@ -152,7 +152,7 @@ const WORKFLOW_PATH = path.join(ROOT, 'gsd-core', 'workflows', 'code-review.md')
|
||||
const { parseCodeReviewFlags, resolveCodeReviewWorkflow } = require(FLAGS_LIB);
|
||||
|
||||
describe('#3727 — parseCodeReviewFlags: typed IR for code-review argv', () => {
|
||||
test('code-review workflow parses --fix flag and dispatches gsd-code-fixer', () => {
|
||||
test('code-review workflow parses --fix flag and dispatches msd-code-fixer', () => {
|
||||
// This is the invariant being violated: --fix must be captured into the IR
|
||||
// and must route to the fixer workflow, not be silently dropped.
|
||||
const flags = parseCodeReviewFlags(['2', '--fix']);
|
||||
@@ -236,11 +236,11 @@ describe('#3727 — parseCodeReviewFlags: typed IR for code-review argv', () =>
|
||||
describe('#3727 — code-review.md structural dispatch contract', () => {
|
||||
const src = fs.readFileSync(WORKFLOW_PATH, 'utf8');
|
||||
// #2994: dispatch_fix moved wholly into a marker-gated step file
|
||||
// (gsd-core/workflows/code-review/steps/dispatch-fix.md, when="flag:--fix")
|
||||
// — the host now carries only the gsd:section marker + read-or-skip stub.
|
||||
// (msd-core/workflows/code-review/steps/dispatch-fix.md, when="flag:--fix")
|
||||
// — the host now carries only the msd:section marker + read-or-skip stub.
|
||||
const DISPATCH_FIX_STEP_PATH = path.join(
|
||||
ROOT,
|
||||
'gsd-core',
|
||||
'msd-core',
|
||||
'workflows',
|
||||
'code-review',
|
||||
'steps',
|
||||
@@ -261,8 +261,8 @@ describe('#3727 — code-review.md structural dispatch contract', () => {
|
||||
|
||||
test('workflow gates a dispatch-fix section (flag:--fix) whose step file has the dispatch_fix step', () => {
|
||||
assert.ok(
|
||||
src.includes('<!-- gsd:section id="dispatch-fix" when="flag:--fix" -->') &&
|
||||
src.includes('gsd-core/workflows/code-review/steps/dispatch-fix.md'),
|
||||
src.includes('<!-- msd:section id="dispatch-fix" when="flag:--fix" -->') &&
|
||||
src.includes('msd-core/workflows/code-review/steps/dispatch-fix.md'),
|
||||
'code-review.md must gate a dispatch-fix section pointing at dispatch-fix.md (missing = --fix is silently no-op)'
|
||||
);
|
||||
assert.ok(
|
||||
@@ -278,12 +278,12 @@ describe('#3727 — code-review.md structural dispatch contract', () => {
|
||||
);
|
||||
});
|
||||
|
||||
test('dispatch_fix step references gsd-code-fixer agent (via code-review-fix.md chain)', () => {
|
||||
test('dispatch_fix step references msd-code-fixer agent (via code-review-fix.md chain)', () => {
|
||||
// The dispatch step must show that fixing will occur, either directly or
|
||||
// by loading code-review-fix.md (which in turn spawns gsd-code-fixer).
|
||||
// by loading code-review-fix.md (which in turn spawns msd-code-fixer).
|
||||
assert.ok(
|
||||
dispatchFixSrc.includes('gsd-code-fixer') || dispatchFixSrc.includes('code-review-fix.md'),
|
||||
'dispatch_fix step must reference gsd-code-fixer agent or code-review-fix.md workflow'
|
||||
dispatchFixSrc.includes('msd-code-fixer') || dispatchFixSrc.includes('code-review-fix.md'),
|
||||
'dispatch_fix step must reference msd-code-fixer agent or code-review-fix.md workflow'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user