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:
@@ -4,10 +4,10 @@
|
||||
// Per CONTRIBUTING.md exception matrix.
|
||||
|
||||
/**
|
||||
* /gsd-ultraplan-phase [BETA] Tests
|
||||
* /msd-ultraplan-phase [BETA] Tests
|
||||
*
|
||||
* Structural assertions for the ultraplan-phase command and workflow files.
|
||||
* This command offloads GSD plan phase to Claude Code's ultraplan cloud infrastructure.
|
||||
* This command offloads MSD plan phase to Claude Code's ultraplan cloud infrastructure.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
@@ -17,18 +17,18 @@ const assert = require('node:assert/strict');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const CMD_PATH = path.join(__dirname, '..', 'commands', 'gsd', 'ultraplan-phase.md');
|
||||
const WF_PATH = path.join(__dirname, '..', 'gsd-core', 'workflows', 'ultraplan-phase.md');
|
||||
const CMD_PATH = path.join(__dirname, '..', 'commands', 'msd', 'ultraplan-phase.md');
|
||||
const WF_PATH = path.join(__dirname, '..', 'msd-core', 'workflows', 'ultraplan-phase.md');
|
||||
|
||||
// ─── File Existence ────────────────────────────────────────────────────────────
|
||||
|
||||
describe('ultraplan-phase file existence', () => {
|
||||
test('command file exists', () => {
|
||||
assert.ok(fs.existsSync(CMD_PATH), 'commands/gsd/ultraplan-phase.md should exist');
|
||||
assert.ok(fs.existsSync(CMD_PATH), 'commands/msd/ultraplan-phase.md should exist');
|
||||
});
|
||||
|
||||
test('workflow file exists', () => {
|
||||
assert.ok(fs.existsSync(WF_PATH), 'gsd-core/workflows/ultraplan-phase.md should exist');
|
||||
assert.ok(fs.existsSync(WF_PATH), 'msd-core/workflows/ultraplan-phase.md should exist');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -38,7 +38,7 @@ describe('ultraplan-phase command frontmatter', () => {
|
||||
const content = fs.readFileSync(CMD_PATH, 'utf-8');
|
||||
|
||||
test('has correct name field', () => {
|
||||
assert.match(content, /^name:\s*gsd:ultraplan-phase$/m);
|
||||
assert.match(content, /^name:\s*msd:ultraplan-phase$/m);
|
||||
});
|
||||
|
||||
test('description marks feature as BETA', () => {
|
||||
@@ -57,7 +57,7 @@ describe('ultraplan-phase command references', () => {
|
||||
|
||||
test('references the ultraplan-phase workflow', () => {
|
||||
assert.ok(
|
||||
content.includes('@~/.claude/gsd-core/workflows/ultraplan-phase.md'),
|
||||
content.includes('@~/.claude/msd-core/workflows/ultraplan-phase.md'),
|
||||
'command should reference ultraplan-phase workflow'
|
||||
);
|
||||
});
|
||||
@@ -97,10 +97,10 @@ describe('ultraplan-phase workflow runtime gate', () => {
|
||||
);
|
||||
});
|
||||
|
||||
test('error message references /gsd-plan-phase as local alternative', () => {
|
||||
test('error message references /msd-plan-phase as local alternative', () => {
|
||||
assert.ok(
|
||||
content.includes('gsd:plan-phase') || content.includes('gsd-plan-phase'),
|
||||
'error message should direct users to /gsd-plan-phase as the local alternative'
|
||||
content.includes('msd:plan-phase') || content.includes('msd-plan-phase'),
|
||||
'error message should direct users to /msd-plan-phase as the local alternative'
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -110,18 +110,18 @@ describe('ultraplan-phase workflow runtime gate', () => {
|
||||
describe('ultraplan-phase workflow initialization', () => {
|
||||
const content = fs.readFileSync(WF_PATH, 'utf-8');
|
||||
|
||||
test('loads GSD phase context via gsd-sdk query init.plan-phase', () => {
|
||||
// After #3797 architectural fix, callsites use gsd_run
|
||||
test('loads MSD phase context via msd-sdk query init.plan-phase', () => {
|
||||
// After #3797 architectural fix, callsites use msd_run
|
||||
assert.ok(
|
||||
content.includes('gsd_run query init.plan-phase'),
|
||||
'workflow must load phase context via gsd_run query init.plan-phase',
|
||||
content.includes('msd_run query init.plan-phase'),
|
||||
'workflow must load phase context via msd_run query init.plan-phase',
|
||||
);
|
||||
});
|
||||
|
||||
test('handles missing .planning directory', () => {
|
||||
assert.ok(
|
||||
content.includes('gsd-new-project') || content.includes('/gsd-new-project') || content.includes('gsd:new-project'),
|
||||
'workflow should direct user to /gsd-new-project when .planning is missing'
|
||||
content.includes('msd-new-project') || content.includes('/msd-new-project') || content.includes('msd:new-project'),
|
||||
'workflow should direct user to /msd-new-project when .planning is missing'
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -169,20 +169,20 @@ describe('ultraplan-phase workflow return path', () => {
|
||||
assert.ok(content.includes('Cancel'), 'workflow must instruct user to choose Cancel to save the plan to a file');
|
||||
});
|
||||
|
||||
test('directs user to run /gsd-import --from after ultraplan completes', () => {
|
||||
assert.ok(content.includes('gsd-import') || content.includes('gsd:import'), 'workflow must direct user to run /gsd:import --from with the saved file path');
|
||||
test('directs user to run /msd-import --from after ultraplan completes', () => {
|
||||
assert.ok(content.includes('msd-import') || content.includes('msd:import'), 'workflow must direct user to run /msd:import --from with the saved file path');
|
||||
});
|
||||
|
||||
test('mentions the --from flag for gsd-import', () => {
|
||||
assert.ok(content.includes('--from'), 'workflow should reference /gsd-import --from <file-path>');
|
||||
test('mentions the --from flag for msd-import', () => {
|
||||
assert.ok(content.includes('--from'), 'workflow should reference /msd-import --from <file-path>');
|
||||
});
|
||||
|
||||
test('return-path instructions appear before the /ultraplan trigger', () => {
|
||||
const ultraplanTriggerIndex = content.indexOf('/ultraplan');
|
||||
const importIndex = content.indexOf('gsd-import');
|
||||
const importIndex = content.indexOf('msd-import');
|
||||
assert.ok(
|
||||
importIndex < ultraplanTriggerIndex,
|
||||
'return-path instructions (gsd-import) must appear before /ultraplan trigger so they are visible in scroll-back'
|
||||
'return-path instructions (msd-import) must appear before /ultraplan trigger so they are visible in scroll-back'
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -195,7 +195,7 @@ describe('ultraplan-phase workflow isolation', () => {
|
||||
test('does NOT directly write PLAN.md files', () => {
|
||||
assert.ok(
|
||||
!content.includes('write PLAN.md') && !content.includes('Write(\'.planning'),
|
||||
'workflow must NOT directly write PLAN.md — delegates to /gsd-import --from'
|
||||
'workflow must NOT directly write PLAN.md — delegates to /msd-import --from'
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user