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:
@@ -6,7 +6,7 @@ const { test, describe, beforeEach, afterEach } = require('node:test');
|
||||
const assert = require('node:assert/strict');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const { runGsdTools, createTempProject, cleanup } = require('./helpers.cjs');
|
||||
const { runMsdTools, createTempProject, cleanup } = require('./helpers.cjs');
|
||||
|
||||
const ROADMAP_WITH_MODE = `# Roadmap
|
||||
|
||||
@@ -32,7 +32,7 @@ describe('roadmap parser — mode field', () => {
|
||||
|
||||
test('roadmap.get-phase returns mode="mvp" when **Mode:** mvp present', () => {
|
||||
fs.writeFileSync(path.join(tmpDir, '.planning', 'ROADMAP.md'), ROADMAP_WITH_MODE);
|
||||
const result = runGsdTools('roadmap get-phase 1', tmpDir);
|
||||
const result = runMsdTools('roadmap get-phase 1', tmpDir);
|
||||
assert.ok(result.success, `Command failed: ${result.error}`);
|
||||
const out = JSON.parse(result.output);
|
||||
assert.strictEqual(out.found, true);
|
||||
@@ -41,7 +41,7 @@ describe('roadmap parser — mode field', () => {
|
||||
|
||||
test('roadmap.get-phase returns mode=null when **Mode:** absent', () => {
|
||||
fs.writeFileSync(path.join(tmpDir, '.planning', 'ROADMAP.md'), ROADMAP_WITH_MODE);
|
||||
const result = runGsdTools('roadmap get-phase 2', tmpDir);
|
||||
const result = runMsdTools('roadmap get-phase 2', tmpDir);
|
||||
assert.ok(result.success, `Command failed: ${result.error}`);
|
||||
const out = JSON.parse(result.output);
|
||||
assert.strictEqual(out.found, true);
|
||||
@@ -50,7 +50,7 @@ describe('roadmap parser — mode field', () => {
|
||||
|
||||
test('roadmap.analyze surfaces mode per phase', () => {
|
||||
fs.writeFileSync(path.join(tmpDir, '.planning', 'ROADMAP.md'), ROADMAP_WITH_MODE);
|
||||
const result = runGsdTools('roadmap analyze', tmpDir);
|
||||
const result = runMsdTools('roadmap analyze', tmpDir);
|
||||
assert.ok(result.success, `Command failed: ${result.error}`);
|
||||
const out = JSON.parse(result.output);
|
||||
const p1 = out.phases.find(p => p.number === '1');
|
||||
@@ -62,7 +62,7 @@ describe('roadmap parser — mode field', () => {
|
||||
test('mode field is case-insensitive and trimmed', () => {
|
||||
const variant = ROADMAP_WITH_MODE.replace('**Mode:** mvp', '**mode**: MVP ');
|
||||
fs.writeFileSync(path.join(tmpDir, '.planning', 'ROADMAP.md'), variant);
|
||||
const result = runGsdTools('roadmap get-phase 1', tmpDir);
|
||||
const result = runMsdTools('roadmap get-phase 1', tmpDir);
|
||||
const out = JSON.parse(result.output);
|
||||
assert.strictEqual(out.mode, 'mvp');
|
||||
});
|
||||
@@ -70,7 +70,7 @@ describe('roadmap parser — mode field', () => {
|
||||
test('unrecognized mode value is preserved verbatim (forward-compat)', () => {
|
||||
const variant = ROADMAP_WITH_MODE.replace('**Mode:** mvp', '**Mode:** experimental');
|
||||
fs.writeFileSync(path.join(tmpDir, '.planning', 'ROADMAP.md'), variant);
|
||||
const result = runGsdTools('roadmap get-phase 1', tmpDir);
|
||||
const result = runMsdTools('roadmap get-phase 1', tmpDir);
|
||||
const out = JSON.parse(result.output);
|
||||
assert.strictEqual(out.mode, 'experimental');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user