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:
@@ -11,10 +11,10 @@
|
||||
* 3. No automatic migration happens when a free-form roadmap is loaded.
|
||||
* 4. isDirInMilestone still works for old-style dirs ('02-setup') against
|
||||
* ROADMAP entries 'Phase 2:'.
|
||||
* 5. isDirInMilestone works for new-style dirs ('GSD-02-01-setup') against
|
||||
* 5. isDirInMilestone works for new-style dirs ('MSD-02-01-setup') against
|
||||
* ROADMAP entries 'Phase 2-01:'.
|
||||
* 6. Heading regex matches both '### Phase 2-01: Setup' and
|
||||
* '### [GSD] Phase 2-01: Setup'.
|
||||
* '### [MSD] Phase 2-01: Setup'.
|
||||
*
|
||||
* Tests 1-3 exercise new/regression behavior.
|
||||
* Tests 4-6 exercise existing/new behavior.
|
||||
@@ -28,7 +28,7 @@ const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
|
||||
const { createTempProject, cleanup, captureConsole } = require('./helpers.cjs');
|
||||
const { getMilestonePhaseFilter } = require('../gsd-core/bin/lib/roadmap-parser.cjs');
|
||||
const { getMilestonePhaseFilter } = require('../msd-core/bin/lib/roadmap-parser.cjs');
|
||||
|
||||
// ─── helpers ─────────────────────────────────────────────────────────────────
|
||||
|
||||
@@ -166,22 +166,22 @@ describe('backwards-compat: legacy Phase N roadmap entries', () => {
|
||||
assert.strictEqual(filter('03-other'), false, 'unlisted dir must not match');
|
||||
});
|
||||
|
||||
// ── test 5: new-style dirs ('GSD-02-01-setup') match 'Phase 2-01:' ───────
|
||||
// ── test 5: new-style dirs ('MSD-02-01-setup') match 'Phase 2-01:' ───────
|
||||
|
||||
test('isDirInMilestone: new-style dir "GSD-02-01-setup" matches ROADMAP "Phase 2-01:"', () => {
|
||||
test('isDirInMilestone: new-style dir "MSD-02-01-setup" matches ROADMAP "Phase 2-01:"', () => {
|
||||
writeRoadmap(tmpDir, [
|
||||
'## Roadmap v1.0: Current',
|
||||
'',
|
||||
'### Phase 2-01: Setup',
|
||||
'**Goal:** setup',
|
||||
].join('\n'));
|
||||
writeConfig(tmpDir, { project_code: 'GSD' });
|
||||
writeConfig(tmpDir, { project_code: 'MSD' });
|
||||
|
||||
const filter = getMilestonePhaseFilter(tmpDir);
|
||||
assert.strictEqual(
|
||||
filter('GSD-02-01-setup'),
|
||||
filter('MSD-02-01-setup'),
|
||||
true,
|
||||
'"GSD-02-01-setup" must match "Phase 2-01:"'
|
||||
'"MSD-02-01-setup" must match "Phase 2-01:"'
|
||||
);
|
||||
assert.strictEqual(
|
||||
filter('02-01-setup'),
|
||||
@@ -190,11 +190,11 @@ describe('backwards-compat: legacy Phase N roadmap entries', () => {
|
||||
);
|
||||
});
|
||||
|
||||
// ── test 6: heading regex matches both plain and [GSD]-prefixed headings ──
|
||||
// ── test 6: heading regex matches both plain and [MSD]-prefixed headings ──
|
||||
|
||||
test('phase heading regex matches "### Phase 2-01: Setup" and "### [GSD] Phase 2-01: Setup"', () => {
|
||||
test('phase heading regex matches "### Phase 2-01: Setup" and "### [MSD] Phase 2-01: Setup"', () => {
|
||||
const plain = '### Phase 2-01: Setup';
|
||||
const bracketed = '### [GSD] Phase 2-01: Setup';
|
||||
const bracketed = '### [MSD] Phase 2-01: Setup';
|
||||
|
||||
// Both heading variants must be captured by the phasePattern used internally.
|
||||
// We exercise this via getMilestonePhaseFilter with a roadmap containing each form.
|
||||
@@ -215,7 +215,7 @@ describe('backwards-compat: legacy Phase N roadmap entries', () => {
|
||||
assert.strictEqual(
|
||||
filterBracketed('02-01-setup'),
|
||||
true,
|
||||
'"### [GSD] Phase 2-01:" must also be matched by the heading regex'
|
||||
'"### [MSD] Phase 2-01:" must also be matched by the heading regex'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user