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 @@
/**
* Regression test for #2116 — commands/gsd/surface.md had unresolvable bare
* `require('gsd-core/...')` specifiers and a wrong-package reinstall hint
* (`npm i -g gsd-core` instead of `@opengsd/gsd-core`).
* Regression test for #2116 — commands/msd/surface.md had unresolvable bare
* `require('msd-core/...')` specifiers and a wrong-package reinstall hint
* (`npm i -g msd-core` instead of `@golem15/msd-core`).
*
* This test asserts the doc uses resolvable paths (derived from runtimeConfigDir)
* and the correct scoped package name in the reinstall hint.
@@ -13,28 +13,28 @@ const assert = require('node:assert/strict');
const fs = require('fs');
const path = require('path');
const SURFACE_MD = path.join(__dirname, '..', 'commands', 'gsd', 'surface.md');
const SURFACE_MD = path.join(__dirname, '..', 'commands', 'msd', 'surface.md');
describe('#2116 regression: surface.md resolvable require + correct package', () => {
const content = fs.readFileSync(SURFACE_MD, 'utf-8');
test('no bare require("gsd-core/...") specifiers', () => {
test('no bare require("msd-core/...") specifiers', () => {
assert.ok(
!content.match(/require\s*\(\s*['"]gsd-core\//),
'surface.md should not use bare require(\'gsd-core/...\') — use runtimeConfigDir-derived path (#2116)'
!content.match(/require\s*\(\s*['"]msd-core\//),
'surface.md should not use bare require(\'msd-core/...\') — use runtimeConfigDir-derived path (#2116)'
);
});
test('reinstall hint uses scoped package name', () => {
assert.ok(
content.includes('@opengsd/gsd-core'),
'surface.md reinstall hint should reference @opengsd/gsd-core, not bare gsd-core (#2116)'
content.includes('@golem15/msd-core'),
'surface.md reinstall hint should reference @golem15/msd-core, not bare msd-core (#2116)'
);
});
test('require examples use runtimeConfigDir-derived paths', () => {
assert.ok(
content.includes("require(runtimeConfigDir + '/gsd-core/bin/lib/capability-registry.cjs')"),
content.includes("require(runtimeConfigDir + '/msd-core/bin/lib/capability-registry.cjs')"),
'surface.md require examples should derive the path from runtimeConfigDir (#2116)'
);
});