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

@@ -9,9 +9,9 @@ const assert = require('node:assert/strict');
const fs = require('node:fs');
const path = require('node:path');
const fc = require('./helpers/fast-check-setup.cjs');
const { runGsdTools, createTempProject, cleanup } = require('./helpers.cjs');
const { sliceCurrentPositionSection } = require('../gsd-core/bin/lib/state-transition.cjs');
const { stateExtractField } = require('../gsd-core/bin/lib/state-document.cjs');
const { runMsdTools, createTempProject, cleanup } = require('./helpers.cjs');
const { sliceCurrentPositionSection } = require('../msd-core/bin/lib/state-transition.cjs');
const { stateExtractField } = require('../msd-core/bin/lib/state-document.cjs');
function writeStateMd(tmpDir, content) {
fs.writeFileSync(path.join(tmpDir, '.planning', 'STATE.md'), content);
@@ -55,7 +55,7 @@ describe('state prune (#1970)', () => {
'',
].join('\n'));
const result = runGsdTools('state prune --keep-recent 3', tmpDir);
const result = runMsdTools('state prune --keep-recent 3', tmpDir);
assert.ok(result.success, `Command failed: ${result.error}`);
const output = JSON.parse(result.output);
@@ -89,7 +89,7 @@ describe('state prune (#1970)', () => {
].join('\n');
writeStateMd(tmpDir, originalContent);
const result = runGsdTools('state prune --keep-recent 3 --dry-run', tmpDir);
const result = runMsdTools('state prune --keep-recent 3 --dry-run', tmpDir);
assert.ok(result.success, `Command failed: ${result.error}`);
const output = JSON.parse(result.output);
@@ -119,7 +119,7 @@ describe('state prune (#1970)', () => {
'',
].join('\n'));
const result = runGsdTools('state prune --keep-recent 3', tmpDir);
const result = runMsdTools('state prune --keep-recent 3', tmpDir);
assert.ok(result.success, `Command failed: ${result.error}`);
const output = JSON.parse(result.output);
@@ -146,7 +146,7 @@ describe('state prune (#1970)', () => {
'',
].join('\n'));
const result = runGsdTools('state prune --keep-recent 3', tmpDir);
const result = runMsdTools('state prune --keep-recent 3', tmpDir);
assert.ok(result.success, `Command failed: ${result.error}`);
const output = JSON.parse(result.output);
@@ -173,7 +173,7 @@ describe('state prune (#1970)', () => {
'',
].join('\n'));
const result = runGsdTools('state prune --keep-recent 3', tmpDir);
const result = runMsdTools('state prune --keep-recent 3', tmpDir);
assert.ok(result.success, `Command failed: ${result.error}`);
const output = JSON.parse(result.output);
@@ -211,7 +211,7 @@ describe('state prune (#1970)', () => {
'',
].join('\n'));
const result = runGsdTools('state prune --keep-recent 3 --dry-run', tmpDir);
const result = runMsdTools('state prune --keep-recent 3 --dry-run', tmpDir);
assert.ok(result.success, `Command failed: ${result.error}`);
const output = JSON.parse(result.output);
@@ -242,7 +242,7 @@ describe('state prune (#1970)', () => {
'',
].join('\n'));
const result = runGsdTools('state prune --keep-recent 3', tmpDir);
const result = runMsdTools('state prune --keep-recent 3', tmpDir);
assert.ok(result.success, `Command failed: ${result.error}`);
const newState = readStateMd(tmpDir);
@@ -268,7 +268,7 @@ describe('state prune (#1970)', () => {
'',
].join('\n'));
const result = runGsdTools('state prune --keep-recent 3', tmpDir);
const result = runMsdTools('state prune --keep-recent 3', tmpDir);
assert.ok(result.success, `Command failed: ${result.error}`);
const newState = readStateMd(tmpDir);
@@ -298,12 +298,12 @@ describe('#1776: prune reads the current phase only from ## Current Position', (
test('a stray | Phase | N | table does not override the canonical (frontmatter) phase', () => {
writeStateMd(tmpDir, [
'---',
'gsd_state_version: 1.0',
'msd_state_version: 1.0',
'current_phase: 12',
'status: executing',
'---',
'',
'# GSD State',
'# MSD State',
'',
'## Verification History',
'',
@@ -320,7 +320,7 @@ describe('#1776: prune reads the current phase only from ## Current Position', (
'',
].join('\n'));
const result = runGsdTools('state prune --keep-recent 3', tmpDir);
const result = runMsdTools('state prune --keep-recent 3', tmpDir);
assert.ok(result.success, `Command failed: ${result.error}`);
const out = JSON.parse(result.output);
@@ -334,7 +334,7 @@ describe('#1776: prune reads the current phase only from ## Current Position', (
// stray table) is unchanged: prune still engages off the real phase.
test('template-conformant Current Position (no stray table) still prunes', () => {
writeStateMd(tmpDir, [
'# GSD State',
'# MSD State',
'',
'## Current Position',
'',
@@ -347,7 +347,7 @@ describe('#1776: prune reads the current phase only from ## Current Position', (
'',
].join('\n'));
const result = runGsdTools('state prune --keep-recent 3', tmpDir);
const result = runMsdTools('state prune --keep-recent 3', tmpDir);
assert.ok(result.success, `Command failed: ${result.error}`);
const out = JSON.parse(result.output);
assert.strictEqual(out.cutoff_phase, 7);
@@ -367,7 +367,7 @@ describe('#1776: prune reads the current phase only from ## Current Position', (
(stray, before) => {
const table = ['## History', '', '| Field | Value |', '| --- | --- |', `| Phase | ${stray} |`, ''];
const position = ['## Current Position', '', '**Status:** Executing', '']; // deliberately no `Phase:` line
const body = ['# GSD State', '', ...(before ? [...table, ...position] : [...position, ...table])].join('\n');
const body = ['# MSD State', '', ...(before ? [...table, ...position] : [...position, ...table])].join('\n');
const section = sliceCurrentPositionSection(body);
// Slice must exist and must NOT see the out-of-section table cell.
return section !== null && stateExtractField(section, 'Phase') === null;
@@ -397,7 +397,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');
function writeStateMd(tmpDir, content) {
fs.writeFileSync(path.join(tmpDir, '.planning', 'STATE.md'), content);
@@ -429,7 +429,7 @@ describe('#1760: state prune engages on template-conformant STATE.md (Phase: X o
'',
].join('\n'));
const result = runGsdTools('state prune --keep-recent 3 --dry-run', tmpDir);
const result = runMsdTools('state prune --keep-recent 3 --dry-run', tmpDir);
assert.ok(result.success, `Command failed: ${result.error}`);
const out = JSON.parse(result.output);
@@ -455,7 +455,7 @@ describe('#1760: state prune engages on template-conformant STATE.md (Phase: X o
'',
].join('\n'));
const result = runGsdTools('state prune --keep-recent 3 --dry-run', tmpDir);
const result = runMsdTools('state prune --keep-recent 3 --dry-run', tmpDir);
assert.ok(result.success, `Command failed: ${result.error}`);
const out = JSON.parse(result.output);
assert.strictEqual(out.cutoff_phase, 7);