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:
@@ -5,7 +5,7 @@
|
||||
// runtime loads — testing text content tests the deployed contract.
|
||||
|
||||
/**
|
||||
* Tests for /gsd-edit-phase (#2617)
|
||||
* Tests for /msd-edit-phase (#2617)
|
||||
*
|
||||
* Covers:
|
||||
* - Command file and workflow file existence
|
||||
@@ -23,24 +23,24 @@ const { describe, test } = require('node:test');
|
||||
const assert = require('node:assert/strict');
|
||||
const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
const { splitTableRow } = require('../gsd-core/bin/lib/markdown-table.cjs');
|
||||
const { splitTableRow } = require('../msd-core/bin/lib/markdown-table.cjs');
|
||||
|
||||
const ROOT = path.resolve(__dirname, '..');
|
||||
|
||||
// #2790: edit-phase.md was consolidated into phase.md as the --edit flag.
|
||||
// The COMMAND_PATH here now points to the consolidated command.
|
||||
const COMMAND_PATH = path.join(ROOT, 'commands', 'gsd', 'phase.md');
|
||||
const WORKFLOW_PATH = path.join(ROOT, 'gsd-core', 'workflows', 'edit-phase.md');
|
||||
const COMMAND_PATH = path.join(ROOT, 'commands', 'msd', 'phase.md');
|
||||
const WORKFLOW_PATH = path.join(ROOT, 'msd-core', 'workflows', 'edit-phase.md');
|
||||
|
||||
// ─── File existence ──────────────────────────────────────────────────────────
|
||||
|
||||
describe('edit-phase: file existence', () => {
|
||||
test('commands/gsd/phase.md exists (absorbed edit-phase in #2790)', () => {
|
||||
assert.ok(fs.existsSync(COMMAND_PATH), 'commands/gsd/phase.md should exist (consolidates edit-phase)');
|
||||
test('commands/msd/phase.md exists (absorbed edit-phase in #2790)', () => {
|
||||
assert.ok(fs.existsSync(COMMAND_PATH), 'commands/msd/phase.md should exist (consolidates edit-phase)');
|
||||
});
|
||||
|
||||
test('gsd-core/workflows/edit-phase.md exists', () => {
|
||||
assert.ok(fs.existsSync(WORKFLOW_PATH), 'gsd-core/workflows/edit-phase.md should exist');
|
||||
test('msd-core/workflows/edit-phase.md exists', () => {
|
||||
assert.ok(fs.existsSync(WORKFLOW_PATH), 'msd-core/workflows/edit-phase.md should exist');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -49,7 +49,7 @@ describe('edit-phase: file existence', () => {
|
||||
describe('edit-phase: command file structure', () => {
|
||||
test('consolidated phase.md has correct name frontmatter (#2790)', () => {
|
||||
const content = fs.readFileSync(COMMAND_PATH, 'utf-8');
|
||||
assert.ok(/^name:\s*gsd:phase/m.test(content), 'name should be gsd:phase (consolidated)');
|
||||
assert.ok(/^name:\s*msd:phase/m.test(content), 'name should be msd:phase (consolidated)');
|
||||
});
|
||||
|
||||
test('command file has description frontmatter', () => {
|
||||
@@ -375,8 +375,8 @@ describe('edit-phase workflow: STATE.md roadmap evolution', () => {
|
||||
// ─── Docs registration ────────────────────────────────────────────────────────
|
||||
|
||||
describe('edit-phase: documentation registration', () => {
|
||||
test('INVENTORY.md routes edit-phase workflow through consolidated /gsd-phase --edit (#2790)', () => {
|
||||
// #2790 absorbed /gsd-edit-phase into /gsd-phase as the --edit flag. The
|
||||
test('INVENTORY.md routes edit-phase workflow through consolidated /msd-phase --edit (#2790)', () => {
|
||||
// #2790 absorbed /msd-edit-phase into /msd-phase as the --edit flag. The
|
||||
// workflow file (edit-phase.md) survives, but its "Invoked by" column must
|
||||
// point at the consolidated command surface, not the deleted standalone.
|
||||
const inventory = fs.readFileSync(
|
||||
@@ -384,7 +384,7 @@ describe('edit-phase: documentation registration', () => {
|
||||
'utf-8'
|
||||
);
|
||||
// Locate the edit-phase.md row in the Workflows table and assert the
|
||||
// "Invoked by" column documents /gsd-phase --edit (not the deleted form).
|
||||
// "Invoked by" column documents /msd-phase --edit (not the deleted form).
|
||||
const row = inventory
|
||||
.split(/\r?\n/)
|
||||
.map((line) => (line.trim().startsWith('|') ? splitTableRow(line) : null))
|
||||
@@ -392,12 +392,12 @@ describe('edit-phase: documentation registration', () => {
|
||||
assert.ok(row, 'docs/INVENTORY.md must contain an edit-phase.md workflow row');
|
||||
const invokedBy = row[2];
|
||||
assert.ok(
|
||||
/\/gsd-phase\s+--edit/.test(invokedBy),
|
||||
`edit-phase.md row must list "/gsd-phase --edit" as caller; got: "${invokedBy}"`
|
||||
/\/msd-phase\s+--edit/.test(invokedBy),
|
||||
`edit-phase.md row must list "/msd-phase --edit" as caller; got: "${invokedBy}"`
|
||||
);
|
||||
assert.ok(
|
||||
!/\/gsd-edit-phase\b/.test(invokedBy),
|
||||
`edit-phase.md row must not still cite the deleted /gsd-edit-phase command; got: "${invokedBy}"`
|
||||
!/\/msd-edit-phase\b/.test(invokedBy),
|
||||
`edit-phase.md row must not still cite the deleted /msd-edit-phase command; got: "${invokedBy}"`
|
||||
);
|
||||
});
|
||||
|
||||
@@ -412,15 +412,15 @@ describe('edit-phase: documentation registration', () => {
|
||||
);
|
||||
});
|
||||
|
||||
test('INVENTORY-MANIFEST.json contains /gsd-phase in commands (#2790: edit-phase absorbed into phase.md)', () => {
|
||||
// #2790: /gsd-edit-phase was absorbed into /gsd-phase as the --edit flag.
|
||||
// The manifest now records /gsd-phase instead of /gsd-edit-phase.
|
||||
test('INVENTORY-MANIFEST.json contains /msd-phase in commands (#2790: edit-phase absorbed into phase.md)', () => {
|
||||
// #2790: /msd-edit-phase was absorbed into /msd-phase as the --edit flag.
|
||||
// The manifest now records /msd-phase instead of /msd-edit-phase.
|
||||
const manifest = JSON.parse(
|
||||
fs.readFileSync(path.join(ROOT, 'docs', 'INVENTORY-MANIFEST.json'), 'utf-8')
|
||||
);
|
||||
assert.ok(
|
||||
manifest.families.commands.includes('/gsd-phase'),
|
||||
'INVENTORY-MANIFEST.json must list /gsd-phase in commands (absorbed /gsd-edit-phase via #2790)'
|
||||
manifest.families.commands.includes('/msd-phase'),
|
||||
'INVENTORY-MANIFEST.json must list /msd-phase in commands (absorbed /msd-edit-phase via #2790)'
|
||||
);
|
||||
});
|
||||
|
||||
@@ -434,14 +434,14 @@ describe('edit-phase: documentation registration', () => {
|
||||
);
|
||||
});
|
||||
|
||||
test('docs/COMMANDS.md documents /gsd-phase (absorbed /gsd-edit-phase via --edit flag, #2790)', () => {
|
||||
test('docs/COMMANDS.md documents /msd-phase (absorbed /msd-edit-phase via --edit flag, #2790)', () => {
|
||||
const commands = fs.readFileSync(
|
||||
path.join(ROOT, 'docs', 'COMMANDS.md'),
|
||||
'utf-8'
|
||||
);
|
||||
assert.ok(
|
||||
commands.includes('/gsd-phase'),
|
||||
'docs/COMMANDS.md must document /gsd-phase (which absorbed /gsd-edit-phase via --edit flag in #2790)'
|
||||
commands.includes('/msd-phase'),
|
||||
'docs/COMMANDS.md must document /msd-phase (which absorbed /msd-edit-phase via --edit flag in #2790)'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user