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

@@ -2,21 +2,21 @@
/**
* Build a hermetic "cold tree" install fixture for #3582 — a copy of hooks/
* plus gsd-core/bin/ensure-runtime-build.cjs with the compiled
* gsd-core/bin/lib/*.cjs directory and tsconfig.build.json deliberately
* plus msd-core/bin/ensure-runtime-build.cjs with the compiled
* msd-core/bin/lib/*.cjs directory and tsconfig.build.json deliberately
* ABSENT, mirroring a raw plugin-marketplace / git-clone install that never
* ran `npm run build:lib`.
*
* Deliberately NOT `tests/helpers/copy-script-fixture.cjs`'s
* `copyScriptWithDeps`: that helper walks the require graph and copies every
* dependency it finds — including gsd-core/bin/lib/*.cjs, which exist in
* dependency it finds — including msd-core/bin/lib/*.cjs, which exist in
* THIS repo's already-built tree — so it would faithfully reproduce a WARM
* tree, the opposite of what a cold-tree test needs. This helper copies only
* hooks/ and the seam module itself, and never touches gsd-core/bin/lib/ or
* hooks/ and the seam module itself, and never touches msd-core/bin/lib/ or
* tsconfig.build.json — so `ensureRuntimeBuild()` inside the fixture
* deterministically throws `RuntimeBuildError` ("tsconfig.build.json not
* found") the first time any fixture hook reaches it, without ever deleting
* or touching the real repo's gsd-core/bin/lib/.
* or touching the real repo's msd-core/bin/lib/.
*/
const fs = require('node:fs');
@@ -39,7 +39,7 @@ function shouldCopyHookEntry(name) {
/**
* @param {object} [opts]
* @param {string} [opts.repoRoot] TEST-ONLY: source tree root to copy hooks/
* and gsd-core/bin/ensure-runtime-build.cjs from, in place of the real
* and msd-core/bin/ensure-runtime-build.cjs from, in place of the real
* REPO_ROOT. Lets a test point this fixture at a hermetic fake tree instead
* of mutating the live repo's hooks/ directory (which other test files may
* be concurrently reading). Defaults to REPO_ROOT.
@@ -47,7 +47,7 @@ function shouldCopyHookEntry(name) {
*/
function buildColdInstallTree(opts = {}) {
const repoRoot = opts.repoRoot || REPO_ROOT;
const dir = fs.mkdtempSync(path.join(require('node:os').tmpdir(), 'gsd-cold-tree-'));
const dir = fs.mkdtempSync(path.join(require('node:os').tmpdir(), 'msd-cold-tree-'));
// hooks/ — entire directory (top-level hook scripts + hooks/lib/*.js +
// managed-hooks-registry.cjs + hooks.json). hooks/dist/ (gitignored,
@@ -86,14 +86,14 @@ function buildColdInstallTree(opts = {}) {
});
}
// gsd-core/bin/ensure-runtime-build.cjs — the seam itself. Deliberately
// NOT gsd-core/bin/lib/ (absent — isBuilt() reads false) and NOT
// msd-core/bin/ensure-runtime-build.cjs — the seam itself. Deliberately
// NOT msd-core/bin/lib/ (absent — isBuilt() reads false) and NOT
// tsconfig.build.json at the fixture root (absent — ensureRuntimeBuild's
// "cannot auto-build" branch fires deterministically).
fs.mkdirSync(path.join(dir, 'gsd-core', 'bin'), { recursive: true });
fs.mkdirSync(path.join(dir, 'msd-core', 'bin'), { recursive: true });
fs.copyFileSync(
path.join(repoRoot, 'gsd-core', 'bin', 'ensure-runtime-build.cjs'),
path.join(dir, 'gsd-core', 'bin', 'ensure-runtime-build.cjs'),
path.join(repoRoot, 'msd-core', 'bin', 'ensure-runtime-build.cjs'),
path.join(dir, 'msd-core', 'bin', 'ensure-runtime-build.cjs'),
);
function cleanup() {