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

@@ -1,7 +1,7 @@
'use strict';
/**
* Tests for `gsd-tools migrate-config` subcommand (#3536).
* Tests for `msd-tools migrate-config` subcommand (#3536).
*
* Covers the three acceptance-criteria cases:
* 1. No-op when config is already canonical (migrated: false)
@@ -43,7 +43,7 @@ describe('migrate-config — no-op on already-canonical config', () => {
});
test('returns migrated: false when no legacy keys present', () => {
tmpDir = createTempProject('gsd-migrate-noop-');
tmpDir = createTempProject('msd-migrate-noop-');
const configPath = path.join(tmpDir, '.planning', 'config.json');
fs.writeFileSync(
configPath,
@@ -81,7 +81,7 @@ describe('migrate-config — migrates legacy branching_strategy', () => {
});
test('returns migrated: true and normalizations for top-level branching_strategy', () => {
tmpDir = createTempProject('gsd-migrate-bs-');
tmpDir = createTempProject('msd-migrate-bs-');
const configPath = path.join(tmpDir, '.planning', 'config.json');
fs.writeFileSync(
configPath,
@@ -135,7 +135,7 @@ describe('migrate-config — idempotent (running twice produces no-op)', () => {
});
test('second run is a no-op after first run migrated the config', () => {
tmpDir = createTempProject('gsd-migrate-idem-');
tmpDir = createTempProject('msd-migrate-idem-');
const configPath = path.join(tmpDir, '.planning', 'config.json');
fs.writeFileSync(
configPath,
@@ -172,7 +172,7 @@ describe('migrate-config — idempotent (running twice produces no-op)', () => {
const { test } = require('node:test');
const assert = require('node:assert/strict');
const configuration = require('../gsd-core/bin/lib/configuration.cjs');
const configuration = require('../msd-core/bin/lib/configuration.cjs');
test('mergeDefaults clones defaults without JSON serialization fragility (#321)', () => {
const sentinelKey = '__bug321_bigint_sentinel__';
@@ -218,12 +218,12 @@ test('mergeDefaults clones defaults without JSON serialization fragility (#321)'
const __path3760 = require('node:path');
const __fc3760 = require('./helpers/fast-check-setup.cjs');
const { cleanup: __cleanup3760 } = require('./helpers.cjs');
const __configuration3760 = require('../gsd-core/bin/lib/configuration.cjs');
const __configuration3760 = require('../msd-core/bin/lib/configuration.cjs');
const {
UNUSABLE_REASON: __REASON3760,
_resetUnusableInputWarningsForTests: __resetWarn3760,
_unusableInputEmissionCountForTests: __emissions3760,
} = require('../gsd-core/bin/lib/unusable-input.cjs');
} = require('../msd-core/bin/lib/unusable-input.cjs');
const { normalizeLegacyKeys: __normalize3760, migrateOnDisk: __migrate3760 } = __configuration3760;
@@ -248,7 +248,7 @@ test('mergeDefaults clones defaults without JSON serialization fragility (#321)'
/** A temp project carrying `.planning/config.json` with exactly `text`. */
function __project3760(text) {
const dir = __fs3760.mkdtempSync(__path3760.join(__os3760.tmpdir(), 'gsd-3760-'));
const dir = __fs3760.mkdtempSync(__path3760.join(__os3760.tmpdir(), 'msd-3760-'));
__fs3760.mkdirSync(__path3760.join(dir, '.planning'), { recursive: true });
__fs3760.writeFileSync(__path3760.join(dir, '.planning', 'config.json'), text, 'utf-8');
return dir;
@@ -611,10 +611,10 @@ test('mergeDefaults clones defaults without JSON serialization fragility (#321)'
});
}
// ─── #3749: migrate-config must be project-aware under GSD_PROJECT ──────────
describe('migrate-config — GSD_PROJECT scoping (#3749)', () => {
// ─── #3749: migrate-config must be project-aware under MSD_PROJECT ──────────
describe('migrate-config — MSD_PROJECT scoping (#3749)', () => {
test('migrates the SCOPED config.json, never the root one', (t) => {
const tmpDir = createTempProject('gsd-3749-migrate-');
const tmpDir = createTempProject('msd-3749-migrate-');
t.after(() => cleanup(tmpDir));
fs.mkdirSync(path.join(tmpDir, '.planning', 'second-product'), { recursive: true });
// Root carries the legacy key; the scoped config is canonical.
@@ -629,7 +629,7 @@ describe('migrate-config — GSD_PROJECT scoping (#3749)', () => {
// writes NOTHING (issue #3749 expectation: "reports that the scoped config
// has no legacy keys and writes nothing"). Either way the root file must
// not be touched.
const r = runMigrateConfig(tmpDir, [], { GSD_PROJECT: 'second-product' });
const r = runMigrateConfig(tmpDir, [], { MSD_PROJECT: 'second-product' });
assert.equal(r.status, 0, `stderr: ${r.stderr}`);
const root = JSON.parse(fs.readFileSync(path.join(tmpDir, '.planning', 'config.json'), 'utf8'));
@@ -638,7 +638,7 @@ describe('migrate-config — GSD_PROJECT scoping (#3749)', () => {
});
test('a scoped config WITH legacy keys is the migration target', (t) => {
const tmpDir = createTempProject('gsd-3749-migrate2-');
const tmpDir = createTempProject('msd-3749-migrate2-');
t.after(() => cleanup(tmpDir));
fs.mkdirSync(path.join(tmpDir, '.planning', 'second-product'), { recursive: true });
fs.writeFileSync(
@@ -648,7 +648,7 @@ describe('migrate-config — GSD_PROJECT scoping (#3749)', () => {
const scopedPath = path.join(tmpDir, '.planning', 'second-product', 'config.json');
fs.writeFileSync(scopedPath, JSON.stringify({ depth: 'quick' }));
const r = runMigrateConfig(tmpDir, [], { GSD_PROJECT: 'second-product' });
const r = runMigrateConfig(tmpDir, [], { MSD_PROJECT: 'second-product' });
assert.equal(r.status, 0, `stderr: ${r.stderr}`);
const parsed = JSON.parse(r.stdout);