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:
@@ -18,7 +18,7 @@ const assert = require('node:assert/strict');
|
||||
const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
|
||||
const { createTempProject, cleanup, runGsdTools } = require('./helpers.cjs');
|
||||
const { createTempProject, cleanup, runMsdTools } = require('./helpers.cjs');
|
||||
|
||||
const TWO_ENTRY_BODY = [
|
||||
'## Current Position',
|
||||
@@ -38,7 +38,7 @@ const TWO_ENTRY_BODY = [
|
||||
function writeState(tmpDir, positionBody) {
|
||||
const content = [
|
||||
'---',
|
||||
'gsd_state_version: 1.0',
|
||||
'msd_state_version: 1.0',
|
||||
'current_phase: 03',
|
||||
'status: executing',
|
||||
'progress:',
|
||||
@@ -51,12 +51,12 @@ function writeState(tmpDir, positionBody) {
|
||||
}
|
||||
|
||||
function runAdvance(cwd) {
|
||||
return runGsdTools(['state', 'advance-plan'], cwd);
|
||||
return runMsdTools(['state', 'advance-plan'], cwd);
|
||||
}
|
||||
|
||||
describe('#3807: advance-plan refuses an ambiguous multi-entry Current Position', () => {
|
||||
test('#3807: two Phase: entries under Current Position → ambiguous error, no mutation', (t) => {
|
||||
const tmpDir = createTempProject('gsd-3807-amb-');
|
||||
const tmpDir = createTempProject('msd-3807-amb-');
|
||||
t.after(() => cleanup(tmpDir));
|
||||
writeState(tmpDir, TWO_ENTRY_BODY);
|
||||
const before = fs.readFileSync(path.join(tmpDir, '.planning', 'STATE.md'), 'utf8');
|
||||
@@ -79,7 +79,7 @@ describe('#3807: advance-plan refuses an ambiguous multi-entry Current Position'
|
||||
});
|
||||
|
||||
test('#3807 control: a single-entry section advances exactly as before', (t) => {
|
||||
const tmpDir = createTempProject('gsd-3807-ctl-');
|
||||
const tmpDir = createTempProject('msd-3807-ctl-');
|
||||
t.after(() => cleanup(tmpDir));
|
||||
writeState(tmpDir, [
|
||||
'## Current Position',
|
||||
@@ -122,7 +122,7 @@ describe('#3807: advance-plan refuses an ambiguous multi-entry Current Position'
|
||||
];
|
||||
|
||||
test('#3784 x #3807: the hybrid `Current Plan: N of M` shape does not bypass the refusal', (t) => {
|
||||
const tmpDir = createTempProject('gsd-3807-hybrid-amb-');
|
||||
const tmpDir = createTempProject('msd-3807-hybrid-amb-');
|
||||
t.after(() => cleanup(tmpDir));
|
||||
writeState(tmpDir, [
|
||||
'## Current Position',
|
||||
@@ -148,7 +148,7 @@ describe('#3807: advance-plan refuses an ambiguous multi-entry Current Position'
|
||||
});
|
||||
|
||||
test('#3784 x #3807 control: a single-entry hybrid section still advances, padding intact', (t) => {
|
||||
const tmpDir = createTempProject('gsd-3807-hybrid-ctl-');
|
||||
const tmpDir = createTempProject('msd-3807-hybrid-ctl-');
|
||||
t.after(() => cleanup(tmpDir));
|
||||
writeState(tmpDir, [
|
||||
'## Current Position',
|
||||
|
||||
Reference in New Issue
Block a user