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:
@@ -1,34 +1,34 @@
|
||||
/**
|
||||
* GSD Quick Research Flag Tests
|
||||
* MSD Quick Research Flag Tests
|
||||
*
|
||||
* Validates the --research flag for /gsd-quick:
|
||||
* Validates the --research flag for /msd-quick:
|
||||
* - Command frontmatter advertises --research
|
||||
* - Workflow includes research step (Step 4.75)
|
||||
* - Research artifacts work within quick task directories
|
||||
* - Workflow spawns gsd-phase-researcher for research
|
||||
* - Workflow spawns msd-phase-researcher for research
|
||||
*/
|
||||
|
||||
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, absPlanningPath } = require('./helpers.cjs');
|
||||
const { runMsdTools, createTempProject, cleanup, absPlanningPath } = require('./helpers.cjs');
|
||||
|
||||
const COMMANDS_DIR = path.join(__dirname, '..', 'commands', 'gsd');
|
||||
const WORKFLOWS_DIR = path.join(__dirname, '..', 'gsd-core', 'workflows');
|
||||
const COMMANDS_DIR = path.join(__dirname, '..', 'commands', 'msd');
|
||||
const WORKFLOWS_DIR = path.join(__dirname, '..', 'msd-core', 'workflows');
|
||||
const REPO_ROOT_FOR_SECTIONS = path.join(__dirname, '..');
|
||||
|
||||
/**
|
||||
* #2994 fragmentization moved Steps 4.5/4.75/5.5/5.6/6.5 out of quick.md into
|
||||
* gsd-core/workflows/quick/steps/*.md behind section markers. Position-based
|
||||
* msd-core/workflows/quick/steps/*.md behind section markers. Position-based
|
||||
* slicing here (`indexOf('Step 4.75')` .. `indexOf('Step 5:')`, etc.) needs
|
||||
* those step headings back at their original logical position, not appended
|
||||
* at the end — so expand each `<!-- gsd:section id="X" ... -->...
|
||||
* <!-- /gsd:section -->` marker IN PLACE with its step file's content.
|
||||
* at the end — so expand each `<!-- msd:section id="X" ... -->...
|
||||
* <!-- /msd:section -->` marker IN PLACE with its step file's content.
|
||||
*/
|
||||
function expandWorkflowSections(workflowPath) {
|
||||
const raw = fs.readFileSync(workflowPath, 'utf8');
|
||||
const markerRe = /<!-- gsd:section id="[\w-]+" when="[^"]*" -->[\s\S]*?<!-- \/gsd:section -->/g;
|
||||
const markerRe = /<!-- msd:section id="[\w-]+" when="[^"]*" -->[\s\S]*?<!-- \/msd:section -->/g;
|
||||
return raw.replace(markerRe, (block) => {
|
||||
const pathMatch = block.match(/`([^`]+\.md)`/);
|
||||
if (!pathMatch) return block;
|
||||
@@ -47,7 +47,7 @@ describe('quick command: --research in frontmatter', () => {
|
||||
let content;
|
||||
|
||||
test('quick.md exists', () => {
|
||||
assert.ok(fs.existsSync(commandPath), 'commands/gsd/quick.md should exist');
|
||||
assert.ok(fs.existsSync(commandPath), 'commands/msd/quick.md should exist');
|
||||
});
|
||||
|
||||
test('argument-hint includes --research', () => {
|
||||
@@ -140,11 +140,11 @@ describe('quick workflow: research step', () => {
|
||||
assert.deepStrictEqual(
|
||||
{
|
||||
hostSkillBinding: content.includes(
|
||||
'AGENT_SKILLS_RESEARCHER=$(gsd_run query agent-skills gsd-phase-researcher)'
|
||||
'AGENT_SKILLS_RESEARCHER=$(msd_run query agent-skills msd-phase-researcher)'
|
||||
),
|
||||
modelParsed: parseList.includes('researcher_model'),
|
||||
researcherPersona: researchAgent.includes('${AGENT_SKILLS_RESEARCHER}'),
|
||||
researcherSubagent: researchAgent.includes('subagent_type="gsd-phase-researcher"'),
|
||||
researcherSubagent: researchAgent.includes('subagent_type="msd-phase-researcher"'),
|
||||
researcherModel: researchAgent.includes('model="{researcher_model}"'),
|
||||
plannerPersona: researchAgent.includes('${AGENT_SKILLS_PLANNER}'),
|
||||
plannerModel: researchAgent.includes('model="{planner_model}"'),
|
||||
@@ -257,7 +257,7 @@ describe('quick task: research file in task directory', () => {
|
||||
});
|
||||
|
||||
test('init quick returns valid task_dir for research file placement', () => {
|
||||
const result = runGsdTools('init quick "Add caching layer"', tmpDir);
|
||||
const result = runMsdTools('init quick "Add caching layer"', tmpDir);
|
||||
assert.ok(result.success, `Command failed: ${result.error}`);
|
||||
|
||||
const output = JSON.parse(result.output);
|
||||
@@ -288,7 +288,7 @@ describe('quick task: research file in task directory', () => {
|
||||
'# Research\n\nFindings for test task.\n'
|
||||
);
|
||||
|
||||
const result = runGsdTools(
|
||||
const result = runMsdTools(
|
||||
'verify-path-exists .planning/quick/1-test-task/1-RESEARCH.md',
|
||||
tmpDir
|
||||
);
|
||||
@@ -303,7 +303,7 @@ describe('quick task: research file in task directory', () => {
|
||||
const quickTaskDir = path.join(tmpDir, '.planning', 'quick', '1-test-task');
|
||||
fs.mkdirSync(quickTaskDir, { recursive: true });
|
||||
|
||||
const result = runGsdTools(
|
||||
const result = runMsdTools(
|
||||
'verify-path-exists .planning/quick/1-test-task/1-RESEARCH.md',
|
||||
tmpDir
|
||||
);
|
||||
@@ -330,7 +330,7 @@ describe('quick task: research file in task directory', () => {
|
||||
}
|
||||
|
||||
for (const artifact of artifacts) {
|
||||
const result = runGsdTools(
|
||||
const result = runMsdTools(
|
||||
`verify-path-exists .planning/quick/1-add-caching/${artifact}`,
|
||||
tmpDir
|
||||
);
|
||||
@@ -413,7 +413,7 @@ describe('#3894 quick.md research-before-questions ordering', () => {
|
||||
});
|
||||
|
||||
test('both step sections remain section-manifest gated (no structural regression)', () => {
|
||||
assert.ok(/gsd:section id="discussion-phase"/.test(QUICK), 'discussion-phase section marker intact');
|
||||
assert.ok(/gsd:section id="research-phase"/.test(QUICK), 'research-phase section marker intact');
|
||||
assert.ok(/msd:section id="discussion-phase"/.test(QUICK), 'discussion-phase section marker intact');
|
||||
assert.ok(/msd:section id="research-phase"/.test(QUICK), 'research-phase section marker intact');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user