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,16 +1,16 @@
'use strict';
/**
* Governance tests for the gsd-core repository root layout.
* Governance tests for the msd-core repository root layout.
*
* Invariant: the repository root must not contain ad-hoc AI instruction files
* (such as AGENTS.md) that would become an untracked source of truth running
* in parallel with the canonical CONTEXT.md and docs/adr/ records.
*
* Context: bin/install.js (local Copilot install path, issue #786) writes an
* AGENTS.md to process.cwd() when `gsd install copilot` is run inside a repo
* AGENTS.md to process.cwd() when `msd install copilot` is run inside a repo
* checkout. If that file is ever committed, editors and AI tools that auto-load
* repo-root instruction files will silently pick up GSD's installer-generated
* repo-root instruction files will silently pick up MSD's installer-generated
* stub rather than the authoritative documentation. This test ensures that
* artefact never lands in source control.
*/
@@ -28,7 +28,7 @@ const ROOT = path.resolve(__dirname, '..');
test('repo-layout: root AGENTS.md is not git-tracked — no ad-hoc AI instruction file committed alongside CONTEXT.md', () => {
// The installer legitimately writes AGENTS.md to process.cwd() when
// `gsd install copilot` runs inside a repo checkout (issue #786). The file
// `msd install copilot` runs inside a repo checkout (issue #786). The file
// may exist on disk — that's expected after a local install. What must NOT
// happen is committing it to git, where editors and AI tools would silently
// pick up the installer-generated stub instead of CONTEXT.md.
@@ -41,7 +41,7 @@ test('repo-layout: root AGENTS.md is not git-tracked — no ad-hoc AI instructio
false,
[
'root AGENTS.md must not be git-tracked.',
'This file is written by `gsd install copilot` (bin/install.js, local Copilot path, issue #786)',
'This file is written by `msd install copilot` (bin/install.js, local Copilot path, issue #786)',
'when the installer runs inside a repo checkout — its presence on disk is fine,',
'but it must never be committed.',
'The repository source of truth for architecture and contributor guidance is',
@@ -57,7 +57,7 @@ test('repo-layout: installer writes AGENTS.md for a LOCAL Copilot install (cwd),
// pointed at an isolated temp dir, and asserts AGENTS.md is actually written
// there. This directly observes the file-output side effect the guard
// controls, rather than parsing install.js's lexical structure.
const localRoot = createTempDir('gsd-repo-layout-copilot-local-');
const localRoot = createTempDir('msd-repo-layout-copilot-local-');
try {
const result = runNode(
[INSTALL_SCRIPT, '--copilot', '--local'],
@@ -85,8 +85,8 @@ test('repo-layout: installer does NOT write AGENTS.md for a GLOBAL Copilot insta
// global --config-dir are isolated temp dirs distinct from this checkout,
// so even if the guard under test were broken, this run cannot pollute the
// real repository root.
const globalCwd = createTempDir('gsd-repo-layout-copilot-global-cwd-');
const globalConfigDir = createTempDir('gsd-repo-layout-copilot-global-config-');
const globalCwd = createTempDir('msd-repo-layout-copilot-global-cwd-');
const globalConfigDir = createTempDir('msd-repo-layout-copilot-global-config-');
try {
const result = runNode(
[INSTALL_SCRIPT, '--copilot', '--global', '--config-dir', globalConfigDir],
@@ -135,19 +135,19 @@ function readPackageJson() {
test('enhancement #191: sdk package artifacts are removed from repository layout', () => {
const sdkDir = path.join(ROOT, 'sdk');
const shimPath = path.join(ROOT, 'bin', 'gsd-sdk.js');
const shimPath = path.join(ROOT, 'bin', 'msd-sdk.js');
assert.equal(fs.existsSync(sdkDir), false, 'sdk/ directory must be deleted');
assert.equal(fs.existsSync(shimPath), false, 'bin/gsd-sdk.js must be deleted');
assert.equal(fs.existsSync(shimPath), false, 'bin/msd-sdk.js must be deleted');
});
test('enhancement #191: published package no longer exposes gsd-sdk artifacts', () => {
test('enhancement #191: published package no longer exposes msd-sdk artifacts', () => {
const pkg = readPackageJson();
assert.equal(Object.prototype.hasOwnProperty.call(pkg.bin || {}, 'gsd-sdk'), false,
'package.json bin must not expose gsd-sdk');
assert.equal(pkg.bin && pkg.bin['gsd-tools'], 'gsd-core/bin/gsd-tools.cjs',
'package.json bin.gsd-tools must point to gsd-core/bin/gsd-tools.cjs');
assert.equal(Object.prototype.hasOwnProperty.call(pkg.bin || {}, 'msd-sdk'), false,
'package.json bin must not expose msd-sdk');
assert.equal(pkg.bin && pkg.bin['msd-tools'], 'msd-core/bin/msd-tools.cjs',
'package.json bin.msd-tools must point to msd-core/bin/msd-tools.cjs');
const publishedFiles = Array.isArray(pkg.files) ? pkg.files : [];
const hasSdkPublishedPaths = publishedFiles.some((entry) => String(entry).startsWith('sdk'));
@@ -155,7 +155,7 @@ test('enhancement #191: published package no longer exposes gsd-sdk artifacts',
'package.json files must not include sdk artifacts');
});
test('enhancement #191: installer does not maintain gsd-sdk shim compatibility path', () => {
test('enhancement #191: installer does not maintain msd-sdk shim compatibility path', () => {
// allow-test-rule: structural-regression-guard (#3545) — asserting the
// ABSENCE of a retired flag/function reference from install.js is a source
// structure fact (dead-code regression), not something observable by