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

@@ -404,25 +404,25 @@ function collectFindings(reportObject) {
* returns `null` for empty/nullish input; a fragment-filename skeleton needs a
* string, so `?? ''` preserves this function's prior never-null contract.
*
* `gsd-core/bin/lib/core-utils.cjs` is required LAZILY, here, rather than at
* `msd-core/bin/lib/core-utils.cjs` is required LAZILY, here, rather than at
* module load — it is `src/core-utils.cts`'s gitignored `build:lib` output,
* so a top-level `require` made this ENTIRE script (including `--help`, which
* never calls `slugify`) hard-fail `MODULE_NOT_FOUND` on a fresh clone before
* any build ran. Deferring the require to the one call site that actually
* needs it means every other code path (in particular `--help`) still works
* with `gsd-core/bin/lib/` absent, and a genuinely missing build only surfaces
* with `msd-core/bin/lib/` absent, and a genuinely missing build only surfaces
* as an error when a NEW smell finding is rendered (the only caller of this
* function).
*/
function slugify(value) {
let generateSlugInternal;
try {
({ generateSlugInternal } = require('../gsd-core/bin/lib/core-utils.cjs'));
({ generateSlugInternal } = require('../msd-core/bin/lib/core-utils.cjs'));
} catch (err) {
if (err && err.code === 'MODULE_NOT_FOUND') {
throw new ExitError(
1,
'qa-smell-ratchet: gsd-core/bin/lib/core-utils.cjs is missing — run `npm run build:lib` first.',
'qa-smell-ratchet: msd-core/bin/lib/core-utils.cjs is missing — run `npm run build:lib` first.',
);
}
throw err;