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,6 +1,6 @@
// docs-guard-exempt: docs/registries/ paths are synthetic fixtures written under a tmpdir, never the shipped docs/ tree.
'use strict';
process.env.GSD_TEST_MODE = '1';
process.env.MSD_TEST_MODE = '1';
const { test, describe } = require('node:test');
const assert = require('node:assert/strict');
@@ -25,12 +25,12 @@ function validCapabilityEntry() {
name: 'My Capability',
type: 'capability',
repo: 'octocat/my-capability',
description: 'Does a useful thing for GSD users.',
description: 'Does a useful thing for MSD users.',
author: 'Octocat',
license: 'MIT',
enginesGsd: '>=1.6.0 <3.0.0',
install: 'gsd capability install https://github.com/octocat/my-capability.git#v1.0.0',
uninstall: 'gsd capability remove my-capability',
enginesMsd: '>=1.6.0 <3.0.0',
install: 'msd capability install https://github.com/octocat/my-capability.git#v1.0.0',
uninstall: 'msd capability remove my-capability',
interactions: {
loopExtensionPoints: ['execute:pre'],
hookKinds: ['step'],
@@ -50,10 +50,10 @@ function validEosEntry() {
name: 'My Host Plugin',
type: 'eos',
repo: 'octocat/my-host-plugin',
description: 'Embeds GSD as an orchestration engine in My Host.',
description: 'Embeds MSD as an orchestration engine in My Host.',
author: 'Octocat',
license: 'MIT',
enginesGsd: '>=1.6.0 <3.0.0',
enginesMsd: '>=1.6.0 <3.0.0',
install: 'See the My Host plugin marketplace listing.',
uninstall: 'Uninstall via the My Host plugin manager.',
protocolVersion: 1,
@@ -81,12 +81,12 @@ function validReviewerEntry() {
name: 'My Reviewer',
type: 'reviewer',
repo: 'octocat/my-reviewer',
description: 'Reviews GSD PRs for a specific concern.',
description: 'Reviews MSD PRs for a specific concern.',
author: 'Octocat',
license: 'MIT',
enginesGsd: '>=1.6.0 <3.0.0',
install: 'gsd capability install https://github.com/octocat/my-reviewer.git#v1.0.0',
uninstall: 'gsd capability remove my-reviewer',
enginesMsd: '>=1.6.0 <3.0.0',
install: 'msd capability install https://github.com/octocat/my-reviewer.git#v1.0.0',
uninstall: 'msd capability remove my-reviewer',
interactions: {
slug: 'my-reviewer',
flags: ['--my-reviewer'],
@@ -102,7 +102,7 @@ function validReviewerEntry() {
}
function withFixture(entries, fn) {
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-gen-registry-'));
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-gen-registry-'));
try {
const registriesDir = path.join(tmp, 'docs', 'registries');
fs.mkdirSync(registriesDir, { recursive: true });
@@ -117,7 +117,7 @@ function withFixture(entries, fn) {
// by the reviewer-catalog cases below (#2904), which need capabilities.json
// AND reviewers.json present simultaneously.
function withReviewerFixture(capabilityEntries, reviewerEntries, fn) {
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-gen-registry-reviewer-'));
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-gen-registry-reviewer-'));
try {
const registriesDir = path.join(tmp, 'docs', 'registries');
fs.mkdirSync(registriesDir, { recursive: true });
@@ -181,7 +181,7 @@ describe('gen-registry CLI (subprocess)', () => {
describe('gen-registry CLI (subprocess): F3 — missing capabilities.json is an error, not a silent pass', () => {
test('--check exits non-zero when docs/registries/ exists but capabilities.json is absent', () => {
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-gen-registry-nocaps-'));
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-gen-registry-nocaps-'));
try {
fs.mkdirSync(path.join(tmp, 'docs', 'registries'), { recursive: true });
// Deliberately do NOT write capabilities.json — only eos.json is optional.
@@ -194,7 +194,7 @@ describe('gen-registry CLI (subprocess): F3 — missing capabilities.json is an
});
test('default mode (no flag) also hard-errors when capabilities.json is absent', () => {
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-gen-registry-nocaps-'));
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-gen-registry-nocaps-'));
try {
fs.mkdirSync(path.join(tmp, 'docs', 'registries'), { recursive: true });
const result = runGen(tmp, []);
@@ -226,11 +226,11 @@ describe('gen-registry: renderMarkdown (direct, via registry-schema)', () => {
// { type:'reviewer', jsonFile:'reviewers.json', mdFile:'reviewer-registry.md',
// optional:true } entry — every case below is FAILING-FIRST against the
// unmodified script. See
// .gsd/phase/feat-2904-enh-registries-add-a-reviewer-entry-type/50-test-matrix.md.
// .msd/phase/feat-2904-enh-registries-add-a-reviewer-entry-type/50-test-matrix.md.
describe('gen-registry CLI (subprocess): reviewer catalog', () => {
test('--write emits all three catalogs when all sources exist', () => {
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-gen-registry-all3-'));
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-gen-registry-all3-'));
try {
const registriesDir = path.join(tmp, 'docs', 'registries');
fs.mkdirSync(registriesDir, { recursive: true });
@@ -318,7 +318,7 @@ describe('gen-registry CLI (subprocess): reviewer catalog', () => {
});
test('malformed reviewers.json fails cleanly', () => {
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-gen-registry-badjson-'));
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-gen-registry-badjson-'));
try {
const registriesDir = path.join(tmp, 'docs', 'registries');
fs.mkdirSync(registriesDir, { recursive: true });