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,14 +2,14 @@
'use strict';
/**
* Single source for GSD's published-package coordinates (issue #498).
* Single source for MSD's published-package coordinates (issue #498).
*
* `deriveIdentity(pkg)` is the pure core: it turns a parsed package.json into
* the coordinate record every consumer needs. The generated runtime module
* `gsd-core/bin/lib/package-identity.cjs` bakes those values at build
* `msd-core/bin/lib/package-identity.cjs` bakes those values at build
* time, because the installed tree carries no package.json with a `.name` —
* the only ones GSD stages are synthetic `{"type":"commonjs"}` markers, which
* since #2544 live inside GSD's own directories (`hooks/`, and the native
* the only ones MSD stages are synthetic `{"type":"commonjs"}` markers, which
* since #2544 live inside MSD's own directories (`hooks/`, and the native
* plugin dir) rather than at the config root — so a runtime
* `require('package.json').name` resolves to `undefined` (the #378 bug this
* seam retires). Baking from package.json reconciles #378 (renames survive)
@@ -53,7 +53,7 @@ function deriveIdentity(pkg = {}) {
? `https://raw.githubusercontent.com/${repoSlug}/main/CHANGELOG.md`
: '';
const cacheSlug = slugifyPackageName(packageName);
const updateCacheFileName = cacheSlug ? `gsd-update-check-${cacheSlug}.json` : 'gsd-update-check.json';
const updateCacheFileName = cacheSlug ? `msd-update-check-${cacheSlug}.json` : 'msd-update-check.json';
return { packageName, binName, repoSlug, repoUrl, changelogRawUrl, cacheSlug, updateCacheFileName };
}
@@ -72,7 +72,7 @@ function formatManualInstall({ packageName, binName, scope, runtime } = {}) {
const GENERATED_HEADER =
'// @generated by scripts/generate-package-identity.cjs from package.json — DO NOT EDIT.\n' +
'// Single source for GSD package coordinates (issue #498). Regenerate with:\n' +
'// Single source for MSD package coordinates (issue #498). Regenerate with:\n' +
'// node scripts/generate-package-identity.cjs\n';
/**
@@ -119,7 +119,7 @@ function main() {
const args = process.argv.slice(2);
const check = args.includes('--check');
const pkg = require(path.join(__dirname, '..', 'package.json'));
const out = path.join(__dirname, '..', 'gsd-core', 'bin', 'lib', 'package-identity.cjs');
const out = path.join(__dirname, '..', 'msd-core', 'bin', 'lib', 'package-identity.cjs');
const rendered = render(deriveIdentity(pkg));
if (check) {
// Compare normalized content so a CRLF checkout (Windows, no .gitattributes