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,8 +5,8 @@
|
||||
* `plan-document.cjs`, and `planning-command-router.cjs` (#2790).
|
||||
*
|
||||
* Root cause this file exists to fix: `tests/planning-inspect.test.cjs` is
|
||||
* INTEGRATION-shaped — it spawns a `gsd-tools` child process per case via
|
||||
* `runGsdTools`. Stryker's command runner treats a `node --test <file>`
|
||||
* INTEGRATION-shaped — it spawns a `msd-tools` child process per case via
|
||||
* `runMsdTools`. Stryker's command runner treats a `node --test <file>`
|
||||
* invocation as ONE test costing whatever the slowest case costs (measured in
|
||||
* CI: ~20s), and re-runs that whole file once per mutant. 640 mutants x 20s
|
||||
* cannot finish inside a 15-minute shard cap — CI evidence: two shards were
|
||||
@@ -15,7 +15,7 @@
|
||||
* repoints those three modules' shards at; the integration suite keeps
|
||||
* running unmodified in the normal (non-mutation) test job.
|
||||
*
|
||||
* NEVER spawn a child process here — no `runGsdTools`, `spawnSync`,
|
||||
* NEVER spawn a child process here — no `runMsdTools`, `spawnSync`,
|
||||
* `execFileSync`, or CLI invocation of any kind. Every case below requires
|
||||
* the BUILT `.cjs` artifacts directly and calls their exports in-process.
|
||||
* `plan-document.cjs` needs no filesystem at all (pure `(content) -> object`
|
||||
@@ -42,14 +42,14 @@ const {
|
||||
parsePlanDocument,
|
||||
planIdFromFile,
|
||||
TASK_KIND,
|
||||
} = require('../gsd-core/bin/lib/plan-document.cjs');
|
||||
} = require('../msd-core/bin/lib/plan-document.cjs');
|
||||
|
||||
const {
|
||||
routePlanningCommand,
|
||||
PLANNING_SUBCOMMANDS,
|
||||
} = require('../gsd-core/bin/lib/planning-command-router.cjs');
|
||||
} = require('../msd-core/bin/lib/planning-command-router.cjs');
|
||||
|
||||
const planningInspectLib = require('../gsd-core/bin/lib/planning-inspect.cjs');
|
||||
const planningInspectLib = require('../msd-core/bin/lib/planning-inspect.cjs');
|
||||
const {
|
||||
buildPlanningInspect,
|
||||
INSPECT_DIAGNOSTIC,
|
||||
@@ -388,7 +388,7 @@ describe('planning-command-router', () => {
|
||||
assert.strictEqual(error.calls[0].reason, 'usage');
|
||||
assert.strictEqual(
|
||||
error.calls[0].message,
|
||||
'planning inspect takes no arguments; got positional argument: extra. Usage: gsd-tools query planning inspect',
|
||||
'planning inspect takes no arguments; got positional argument: extra. Usage: msd-tools query planning inspect',
|
||||
);
|
||||
assert.deepStrictEqual(mod.calls, []);
|
||||
});
|
||||
@@ -401,7 +401,7 @@ describe('planning-command-router', () => {
|
||||
assert.strictEqual(error.calls[0].reason, 'usage');
|
||||
assert.strictEqual(
|
||||
error.calls[0].message,
|
||||
'planning inspect takes no arguments; got flag: --nope. Usage: gsd-tools query planning inspect',
|
||||
'planning inspect takes no arguments; got flag: --nope. Usage: msd-tools query planning inspect',
|
||||
);
|
||||
assert.deepStrictEqual(mod.calls, []);
|
||||
});
|
||||
@@ -450,7 +450,7 @@ describe('planning-inspect — planning root absent', () => {
|
||||
describe('planning-inspect — healthy two-phase project', () => {
|
||||
function buildHealthy(cwd) {
|
||||
writeFile(cwd, '.planning/STATE.md', frontmatterDoc(
|
||||
["gsd_state_version: '1.0'", 'status: planning', 'milestone: v1.0'],
|
||||
["msd_state_version: '1.0'", 'status: planning', 'milestone: v1.0'],
|
||||
['## Current Position', '', 'Plan: 1-01-PLAN.md', ''],
|
||||
));
|
||||
writeFile(cwd, '.planning/ROADMAP.md', [
|
||||
@@ -546,7 +546,7 @@ describe('planning-inspect — healthy two-phase project', () => {
|
||||
|
||||
describe('planning-inspect — task provenance/agreement variety, checkpoint, orphan dirs, requirement diagnostics', () => {
|
||||
function build(cwd) {
|
||||
writeFile(cwd, '.planning/STATE.md', frontmatterDoc(["gsd_state_version: '1.0'", 'status: planning', 'milestone: v1.0'], []));
|
||||
writeFile(cwd, '.planning/STATE.md', frontmatterDoc(["msd_state_version: '1.0'", 'status: planning', 'milestone: v1.0'], []));
|
||||
writeFile(cwd, '.planning/ROADMAP.md', [
|
||||
'## v1.0 Current 🚧', '', '## Phases', '',
|
||||
'- [x] **Phase 1: Foo** - stub', '',
|
||||
@@ -644,7 +644,7 @@ describe('planning-inspect — task provenance/agreement variety, checkpoint, or
|
||||
|
||||
describe('planning-inspect — percent withheld, unreadable plan/summary, completion-unknown requirement', () => {
|
||||
function build(cwd) {
|
||||
writeFile(cwd, '.planning/STATE.md', frontmatterDoc(["gsd_state_version: '1.0'", 'status: planning', 'milestone: v1.0'], []));
|
||||
writeFile(cwd, '.planning/STATE.md', frontmatterDoc(["msd_state_version: '1.0'", 'status: planning', 'milestone: v1.0'], []));
|
||||
writeFile(cwd, '.planning/ROADMAP.md', [
|
||||
'## v1.0 Current 🚧', '', '## Phases', '',
|
||||
'- [x] **Phase 1: Foo** - stub',
|
||||
@@ -717,7 +717,7 @@ describe('planning-inspect — UAT unreadable, UAT items, requirements unreadabl
|
||||
test('a directory-in-file-position UAT document is UAT_UNREADABLE and degrades phase scope', (t) => {
|
||||
const cwd = mkCwd();
|
||||
t.after(() => cleanup(cwd));
|
||||
writeFile(cwd, '.planning/STATE.md', frontmatterDoc(["gsd_state_version: '1.0'", 'status: planning', 'milestone: v1.0'], []));
|
||||
writeFile(cwd, '.planning/STATE.md', frontmatterDoc(["msd_state_version: '1.0'", 'status: planning', 'milestone: v1.0'], []));
|
||||
writeFile(cwd, '.planning/ROADMAP.md', [
|
||||
'## v1.0 Current 🚧', '', '## Phases', '', '- [ ] **Phase 1: Foo** - stub', '',
|
||||
'### Phase 1: Foo', '', 'Ship the foo module.', '',
|
||||
@@ -736,7 +736,7 @@ describe('planning-inspect — UAT unreadable, UAT items, requirements unreadabl
|
||||
test('a pending UAT test item is surfaced verbatim in phases[].uat.unresolved', (t) => {
|
||||
const cwd = mkCwd();
|
||||
t.after(() => cleanup(cwd));
|
||||
writeFile(cwd, '.planning/STATE.md', frontmatterDoc(["gsd_state_version: '1.0'", 'status: planning', 'milestone: v1.0'], []));
|
||||
writeFile(cwd, '.planning/STATE.md', frontmatterDoc(["msd_state_version: '1.0'", 'status: planning', 'milestone: v1.0'], []));
|
||||
writeFile(cwd, '.planning/ROADMAP.md', [
|
||||
'## v1.0 Current 🚧', '', '## Phases', '', '- [ ] **Phase 1: Foo** - stub', '',
|
||||
'### Phase 1: Foo', '', 'Ship the foo module.', '',
|
||||
@@ -763,7 +763,7 @@ describe('planning-inspect — UAT unreadable, UAT items, requirements unreadabl
|
||||
test('REQUIREMENTS.md as a directory-in-file-position is unreadable, not absent, and yields zero rows', (t) => {
|
||||
const cwd = mkCwd();
|
||||
t.after(() => cleanup(cwd));
|
||||
writeFile(cwd, '.planning/STATE.md', frontmatterDoc(["gsd_state_version: '1.0'", 'status: planning', 'milestone: v1.0'], []));
|
||||
writeFile(cwd, '.planning/STATE.md', frontmatterDoc(["msd_state_version: '1.0'", 'status: planning', 'milestone: v1.0'], []));
|
||||
writeFile(cwd, '.planning/ROADMAP.md', ['## v1.0 Current 🚧', '', '## Phases', ''].join('\n'));
|
||||
fs.mkdirSync(path.join(cwd, '.planning/REQUIREMENTS.md'), { recursive: true });
|
||||
|
||||
@@ -776,7 +776,7 @@ describe('planning-inspect — UAT unreadable, UAT items, requirements unreadabl
|
||||
test('a plan file symlinked outside the planning root degrades to unreadable, never leaking the escaped content', (t) => {
|
||||
const cwd = mkCwd();
|
||||
t.after(() => cleanup(cwd));
|
||||
writeFile(cwd, '.planning/STATE.md', frontmatterDoc(["gsd_state_version: '1.0'", 'status: planning', 'milestone: v1.0'], []));
|
||||
writeFile(cwd, '.planning/STATE.md', frontmatterDoc(["msd_state_version: '1.0'", 'status: planning', 'milestone: v1.0'], []));
|
||||
writeFile(cwd, '.planning/ROADMAP.md', [
|
||||
'## v1.0 Current 🚧', '', '## Phases', '', '- [ ] **Phase 1: Foo** - stub', '',
|
||||
'### Phase 1: Foo', '', 'Ship the foo module.', '',
|
||||
|
||||
Reference in New Issue
Block a user