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 @@
'use strict';
process.env.GSD_TEST_MODE = '1';
process.env.MSD_TEST_MODE = '1';
// Issue #498: the drift-guard lint. Every GSD package/repo coordinate that
// Issue #498: the drift-guard lint. Every MSD package/repo coordinate that
// appears as a literal anywhere in the runtime/code surface must equal the
// value the Package Identity seam derives from package.json. This is what
// makes a repoint a one-line change: rename package.json, regenerate the seam,
@@ -32,7 +32,7 @@ describe('Issue #498: findCoordinateDrift (pure)', () => {
assert.equal(v[0].kind, 'package');
});
test('a different package (@opengsd/gsd-sdk) is NOT a gsd-core coordinate', () => {
test('a different package (@opengsd/gsd-sdk) is NOT a msd-core coordinate', () => {
assert.deepEqual(findCoordinateDrift("require('@opengsd/gsd-sdk')", SEAM), []);
});
@@ -62,7 +62,7 @@ describe('Issue #498: the live repo passes the drift lint', () => {
assert.deepEqual(
violations,
[],
'stale GSD coordinate literal(s) found:\n' +
'stale MSD coordinate literal(s) found:\n' +
violations.map((d) => ` ${d.file}:${d.line} ${d.kind} '${d.found}' != '${d.expected}'`).join('\n'),
);
});
@@ -85,9 +85,9 @@ const assert = require('node:assert/strict');
const fs = require('node:fs');
const path = require('node:path');
const WORKFLOWS_DIR = path.join(__dirname, '..', 'gsd-core', 'workflows');
const WORKFLOWS_DIR = path.join(__dirname, '..', 'msd-core', 'workflows');
const LEGACY_HINT = 'npx get-shit-done-cc@latest --claude --local';
const CURRENT_HINT = 'npx -y @opengsd/gsd-core@latest --claude --local';
const CURRENT_HINT = 'npx -y @golem15/msd-core@latest --claude --local';
function findMarkdownFiles(dir) {
const out = [];
@@ -134,10 +134,10 @@ test('bug #170: workflow fallback hints do not reference get-shit-done-cc', () =
// Issue #498: single Package Identity seam.
// The package coordinates (npm name, bin name, repo slug, changelog URL) are
// DERIVED from package.json, not re-typed. deriveIdentity is the pure core;
// the generated runtime module gsd-core/bin/lib/package-identity.cjs
// the generated runtime module msd-core/bin/lib/package-identity.cjs
// bakes those values at build time so it survives the install layout, where no
// package.json carries a .name — the only ones GSD stages are synthetic
// {"type":"commonjs"} markers, and since #2544 those live in GSD's own
// package.json carries a .name — the only ones MSD stages are synthetic
// {"type":"commonjs"} markers, and since #2544 those live in MSD's own
// directories (hooks/, the native plugin dir) rather than the config root.
const { test, describe } = require('node:test');
@@ -148,7 +148,7 @@ const ROOT = path.join(__dirname, '..');
const { deriveIdentity, formatManualInstall, slugifyPackageName } = require(
path.join(ROOT, 'scripts', 'generate-package-identity.cjs'),
);
const GENERATED = path.join(ROOT, 'gsd-core', 'bin', 'lib', 'package-identity.cjs');
const GENERATED = path.join(ROOT, 'msd-core', 'bin', 'lib', 'package-identity.cjs');
describe('Issue #498: deriveIdentity (pure, package.json -> coordinates)', () => {
const FAKE_PKG = {
@@ -180,30 +180,30 @@ describe('Issue #498: deriveIdentity (pure, package.json -> coordinates)', () =>
);
});
test('derives the real GSD coordinates from the repo package.json', () => {
test('derives the real MSD coordinates from the repo package.json', () => {
const real = require(path.join(ROOT, 'package.json'));
const id = deriveIdentity(real);
assert.equal(id.packageName, '@opengsd/gsd-core');
assert.equal(id.binName, 'gsd-core');
assert.equal(id.repoSlug, 'open-gsd/gsd-core');
assert.equal(id.packageName, '@golem15/msd-core');
assert.equal(id.binName, 'msd-core');
assert.equal(id.repoSlug, 'golem15com/msd-core');
});
test('deriveIdentity returns cacheSlug for @opengsd/gsd-core', () => {
test('deriveIdentity returns cacheSlug for @golem15/msd-core', () => {
const real = require(path.join(ROOT, 'package.json'));
const id = deriveIdentity(real);
assert.equal(id.cacheSlug, 'opengsd-gsd-core');
assert.equal(id.cacheSlug, 'golem15-msd-core');
});
test('deriveIdentity returns updateCacheFileName for @opengsd/gsd-core', () => {
test('deriveIdentity returns updateCacheFileName for @golem15/msd-core', () => {
const real = require(path.join(ROOT, 'package.json'));
const id = deriveIdentity(real);
assert.equal(id.updateCacheFileName, 'gsd-update-check-opengsd-gsd-core.json');
assert.equal(id.updateCacheFileName, 'msd-update-check-golem15-msd-core.json');
});
});
describe('Issue #498: slugifyPackageName (pure helper for cache filename)', () => {
test('slugifyPackageName strips leading @, replaces / with -, for @opengsd/gsd-core', () => {
assert.equal(slugifyPackageName('@opengsd/gsd-core'), 'opengsd-gsd-core');
test('slugifyPackageName strips leading @, replaces / with -, for @golem15/msd-core', () => {
assert.equal(slugifyPackageName('@golem15/msd-core'), 'golem15-msd-core');
});
test('slugifyPackageName returns empty string for empty input', () => {
@@ -230,7 +230,7 @@ describe('Issue #498: formatManualInstall (the npx fallback command)', () => {
const id = deriveIdentity(require(path.join(ROOT, 'package.json')));
assert.equal(
formatManualInstall({ packageName: id.packageName, binName: id.binName, scope: 'global', runtime: 'claude' }),
'npx -y --package=@opengsd/gsd-core@latest -- gsd-core --claude --global',
'npx -y --package=@golem15/msd-core@latest -- msd-core --claude --global',
);
});
});
@@ -239,30 +239,30 @@ describe('Issue #498: generated runtime module (baked)', () => {
// The committed-generated-file freshness guard moved to
// `npm run lint:generated-sync` (generate-package-identity.cjs --check), where
// it runs against the committed file in both local and CI lint lanes instead
// of being masked by gsd-test's `npm run build` leg regenerating the artifact.
// of being masked by msd-test's `npm run build` leg regenerating the artifact.
test('requiring the generated module exposes the real coordinates', () => {
const id = require(GENERATED);
assert.equal(id.packageName, '@opengsd/gsd-core');
assert.equal(id.binName, 'gsd-core');
assert.equal(id.repoSlug, 'open-gsd/gsd-core');
assert.equal(id.packageName, '@golem15/msd-core');
assert.equal(id.binName, 'msd-core');
assert.equal(id.repoSlug, 'golem15com/msd-core');
});
test('generated module exports cacheSlug matching @opengsd/gsd-core', () => {
test('generated module exports cacheSlug matching @golem15/msd-core', () => {
const id = require(GENERATED);
assert.equal(id.cacheSlug, 'opengsd-gsd-core');
assert.equal(id.cacheSlug, 'golem15-msd-core');
});
test('generated module exports updateCacheFileName matching @opengsd/gsd-core', () => {
test('generated module exports updateCacheFileName matching @golem15/msd-core', () => {
const id = require(GENERATED);
assert.equal(id.updateCacheFileName, 'gsd-update-check-opengsd-gsd-core.json');
assert.equal(id.updateCacheFileName, 'msd-update-check-golem15-msd-core.json');
});
test('generated manualInstallCommand closes over the baked coordinates', () => {
const id = require(GENERATED);
assert.equal(
id.manualInstallCommand({ scope: 'global', runtime: 'claude' }),
'npx -y --package=@opengsd/gsd-core@latest -- gsd-core --claude --global',
'npx -y --package=@golem15/msd-core@latest -- msd-core --claude --global',
);
});
});