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

@@ -3,12 +3,12 @@
/**
* Tests for `src/pattern.cts` — the pattern-construction seam (#3212 Phase 1, #3412).
*
* Design: .gsd/phase/chore-3412-pattern-seam/40-design.md
* Test matrix: .gsd/phase/chore-3412-pattern-seam/50-test-matrix.md
* Design: .msd/phase/chore-3412-pattern-seam/40-design.md
* Test matrix: .msd/phase/chore-3412-pattern-seam/50-test-matrix.md
* ADR: docs/adr/3212-lexical-seam-consolidation.md §1, §2, §7
*
* TDD RED: `src/pattern.cts` does not exist yet — this file's
* `require('../gsd-core/bin/lib/pattern.cjs')` throws MODULE_NOT_FOUND until
* `require('../msd-core/bin/lib/pattern.cjs')` throws MODULE_NOT_FOUND until
* the implementing phase adds it. That is the intended starting state (mirrors
* tests/planning-snapshot.test.cjs's RED convention).
*
@@ -21,17 +21,17 @@ const assert = require('node:assert/strict');
// Seeded fast-check convention: require the shared setup helper (NOT
// 'fast-check' directly) so numRuns/seed are configured globally before any
// fc.assert() call — mirrors tests/frontmatter.property.test.cjs and every
// other *.property.test.cjs file. seed: 42, overridable via GSD_FC_SEED.
// other *.property.test.cjs file. seed: 42, overridable via MSD_FC_SEED.
const fc = require('./helpers/fast-check-setup.cjs');
const { escapeRegex, literalPattern, compileUserPattern, MAX_USER_PATTERN_LEN } = require('../gsd-core/bin/lib/pattern.cjs');
const { escapeRegex, literalPattern, compileUserPattern, MAX_USER_PATTERN_LEN } = require('../msd-core/bin/lib/pattern.cjs');
/**
* A single `node -e` inline probe script testing RegExp.escape fallback
* semantics -- one subprocess, no fan-out. Coincides numerically with
* tests/helpers/timeouts.cjs's GSD_TOOLS_CLI_MODERATE_TIMEOUT_MS but
* tests/helpers/timeouts.cjs's MSD_TOOLS_CLI_MODERATE_TIMEOUT_MS but
* describes a different operation (an inline node -e probe, not a
* gsd-tools.cjs CLI subcommand spawn) -- kept local.
* msd-tools.cjs CLI subcommand spawn) -- kept local.
*/
const REGEXP_ESCAPE_PROBE_TIMEOUT_MS = 30_000;
@@ -215,7 +215,7 @@ describe('migration equivalence (row-9 sweep)', () => {
// ─── Section 4: #3498 — Node-22 fallback (no RegExp.escape) ─────────────────
describe('escapeRegex without RegExp.escape (#3498 Node-22 fallback)', () => {
// `RegExp.escape` is ES2026 (first shipped in Node 24). The gsd-test matrix
// `RegExp.escape` is ES2026 (first shipped in Node 24). The msd-test matrix
// runs a linux-node22 lane and the BUILD consumes this module
// (scripts/gen-loop-host-contract.cjs), so the seam must work when the
// builtin is absent. Simulated in a child process: neuter RegExp.escape
@@ -224,7 +224,7 @@ describe('escapeRegex without RegExp.escape (#3498 Node-22 fallback)', () => {
// between builtin and fallback; match behavior must not).
const { runNode, OUTCOME } = require('./helpers/process-seam.cjs');
const path = require('node:path');
const LIB = path.join(__dirname, '..', 'gsd-core', 'bin', 'lib', 'pattern.cjs');
const LIB = path.join(__dirname, '..', 'msd-core', 'bin', 'lib', 'pattern.cjs');
const PROBE = [
"RegExp.escape = undefined;",