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:
Jakub Zych
2026-10-06 01:47:40 +02:00
parent fe069b2a56
commit a9a7a328e6
2763 changed files with 78465 additions and 78434 deletions

View File

@@ -6,7 +6,7 @@
* W021 fires when a phase ID's integer prefix doesn't match its enclosing
* milestone section (e.g. phase '1-01' listed under ## v2.0 is a mismatch).
*
* Also covers: `gsd-tools roadmap validate` subcommand shape.
* Also covers: `msd-tools roadmap validate` subcommand shape.
*
* These features do NOT exist yet — this file is written TDD-first.
*/
@@ -16,7 +16,7 @@ const assert = require('node:assert/strict');
const fs = require('node:fs');
const path = require('node:path');
const { runGsdTools, createTempProject, cleanup } = require('./helpers.cjs');
const { runMsdTools, createTempProject, cleanup } = require('./helpers.cjs');
// ---------------------------------------------------------------------------
// Fixture builder
@@ -28,7 +28,7 @@ const { runGsdTools, createTempProject, cleanup } = require('./helpers.cjs');
*
* @param {string} tmpDir - Temp project root returned by createTempProject().
* @param {Array<{version: string, label: string, phases: Array<{id: string, name: string}>}>} milestones
* Each milestone maps to a `## [GSD] vX.Y — Label` section; each phase maps
* Each milestone maps to a `## [MSD] vX.Y — Label` section; each phase maps
* to a `### Phase <id>: <name>` heading inside that section.
* @param {object} [opts]
* @param {string|null} [opts.conventionValue] - Value for the `phase_id_convention`
@@ -54,7 +54,7 @@ function buildRoadmap(tmpDir, milestones, opts = {}) {
const phaseBlocks = phases
.map(({ id, name }) => `### Phase ${id}: ${name}\n**Goal:** Placeholder goal\n`)
.join('\n');
return `## [GSD] ${version} — ${label}\n\n${phaseBlocks}`;
return `## [MSD] ${version} — ${label}\n\n${phaseBlocks}`;
})
.join('\n\n');
@@ -88,7 +88,7 @@ describe('W021 — milestone-prefixed phase ID convention', () => {
},
]);
const result = runGsdTools(['roadmap', 'validate'], tmpDir);
const result = runMsdTools(['roadmap', 'validate'], tmpDir);
// #2978: validate now exits non-zero on any warning (per its documented contract).
assert.strictEqual(result.success, false, `roadmap validate must exit non-zero on W021 warnings: ${result.error}`);
@@ -113,7 +113,7 @@ describe('W021 — milestone-prefixed phase ID convention', () => {
},
]);
const result = runGsdTools(['roadmap', 'validate'], tmpDir);
const result = runMsdTools(['roadmap', 'validate'], tmpDir);
assert.ok(result.success, `roadmap validate failed: ${result.error}`);
const out = JSON.parse(result.output);
@@ -134,7 +134,7 @@ describe('W021 — milestone-prefixed phase ID convention', () => {
},
]);
const result = runGsdTools(['roadmap', 'validate'], tmpDir);
const result = runMsdTools(['roadmap', 'validate'], tmpDir);
assert.ok(result.success, `roadmap validate failed: ${result.error}`);
const out = JSON.parse(result.output);
@@ -151,7 +151,7 @@ describe('W021 — milestone-prefixed phase ID convention', () => {
},
]);
const result = runGsdTools(['roadmap', 'validate'], tmpDir);
const result = runMsdTools(['roadmap', 'validate'], tmpDir);
assert.ok(result.success, `roadmap validate failed: ${result.error}`);
const out = JSON.parse(result.output);
@@ -175,7 +175,7 @@ describe('W021 — milestone-prefixed phase ID convention', () => {
{ conventionValue: null }
);
const result = runGsdTools(['roadmap', 'validate'], tmpDir);
const result = runMsdTools(['roadmap', 'validate'], tmpDir);
assert.ok(result.success, `roadmap validate failed: ${result.error}`);
const out = JSON.parse(result.output);
@@ -185,7 +185,7 @@ describe('W021 — milestone-prefixed phase ID convention', () => {
// ── 5. `roadmap validate` returns JSON with warnings array ───────────────
test("'gsd-tools roadmap validate' subcommand returns JSON with warnings array", () => {
test("'msd-tools roadmap validate' subcommand returns JSON with warnings array", () => {
buildRoadmap(tmpDir, [
{
version: 'v1.0',
@@ -194,7 +194,7 @@ describe('W021 — milestone-prefixed phase ID convention', () => {
},
]);
const result = runGsdTools(['roadmap', 'validate'], tmpDir);
const result = runMsdTools(['roadmap', 'validate'], tmpDir);
assert.ok(result.success, `roadmap validate should succeed: ${result.error}`);
let out;
@@ -219,7 +219,7 @@ describe('W021 — milestone-prefixed phase ID convention', () => {
},
]);
const result = runGsdTools(['roadmap', 'validate'], tmpDir);
const result = runMsdTools(['roadmap', 'validate'], tmpDir);
// #2978: validate now exits non-zero on any warning (per its documented contract).
assert.strictEqual(result.success, false, `roadmap validate must exit non-zero on W021 warnings: ${result.error}`);
@@ -227,7 +227,7 @@ describe('W021 — milestone-prefixed phase ID convention', () => {
const w021 = (out.warnings || []).filter(w => w.code === 'W021');
assert.ok(w021.length > 0, 'W021 warning expected');
const migrationCmd = 'gsd-tools roadmap upgrade --convention milestone-prefixed';
const migrationCmd = 'msd-tools roadmap upgrade --convention milestone-prefixed';
const hasMigration = w021.some(w => typeof w.message === 'string' && w.message.includes(migrationCmd));
assert.ok(
hasMigration,