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

@@ -23,20 +23,20 @@ const isWindows = process.platform === 'win32';
const PROJECTION_PATH = path.join(
__dirname,
'..',
'gsd-core',
'msd-core',
'bin',
'lib',
'shell-command-projection.cjs',
);
function loadInstaller() {
process.env.GSD_TEST_MODE = '1';
process.env.MSD_TEST_MODE = '1';
delete require.cache[require.resolve(INSTALL_PATH)];
return require(INSTALL_PATH);
}
function createTempHome() {
return fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-home-'));
return fs.mkdtempSync(path.join(os.tmpdir(), 'msd-home-'));
}
function cleanup(dir) {
@@ -649,10 +649,10 @@ describe('decodeFishUniversalValue: round-trip properties (#323)', () => {
/**
* Regression tests for #3509 — CLI breaks when repo path contains spaces
*
* Root cause: test code embedded space-containing paths into runGsdTools()
* Root cause: test code embedded space-containing paths into runMsdTools()
* string args; the helper's whitespace tokenizer truncated paths at the first
* space. All calls that carry dynamic paths must use the array form of
* runGsdTools() so execFileSync receives the full path as a single argv slot.
* runMsdTools() so execFileSync receives the full path as a single argv slot.
*
* These tests create a tmpdir whose prefix intentionally contains a space so
* they remain red on a broken codebase regardless of the host machine's
@@ -664,7 +664,7 @@ const assert = require('node:assert/strict');
const fs = require('fs');
const path = require('path');
const os = require('os');
const { runGsdTools, cleanup } = require('./helpers.cjs');
const { runMsdTools, cleanup } = require('./helpers.cjs');
// Create a tmpdir whose name always contains a space — this is the invariant
// that was violated on /Volumes/Mini Me/... machines.
@@ -690,7 +690,7 @@ describe('bug-3509: --cwd= survives spaces in path', () => {
test('--cwd= array form passes full path with spaces to dispatcher', () => {
// Array form: path is a single argv slot, never split on whitespace
const result = runGsdTools(['--cwd=' + tmpDir, 'state', 'load'], process.cwd());
const result = runMsdTools(['--cwd=' + tmpDir, 'state', 'load'], process.cwd());
assert.ok(result.success, `--cwd= with spaced path should succeed, got: ${result.error}`);
});
});
@@ -710,18 +710,18 @@ describe('bug-3509: frontmatter get/set/merge/validate survive spaces in file pa
afterEach(() => cleanup(tmpDir));
test('frontmatter get returns parsed fields when file path contains spaces', () => {
const result = runGsdTools(['frontmatter', 'get', tmpFile]);
const result = runMsdTools(['frontmatter', 'get', tmpFile]);
assert.ok(result.success, `Command failed: ${result.error}`);
const parsed = JSON.parse(result.output);
assert.strictEqual(parsed.phase, '01', 'phase field should be "01"');
});
test('frontmatter set works when file path contains spaces', () => {
const setResult = runGsdTools(['frontmatter', 'set', tmpFile, '--field', 'phase', '--value', '02']);
const setResult = runMsdTools(['frontmatter', 'set', tmpFile, '--field', 'phase', '--value', '02']);
assert.ok(setResult.success, `set failed: ${setResult.error}`);
// Verify behaviorally — round-trip via frontmatter get rather than reading the file
// and grepping (which trips lint-no-source-grep even on tmp files).
const getResult = runGsdTools(['frontmatter', 'get', tmpFile]);
const getResult = runMsdTools(['frontmatter', 'get', tmpFile]);
assert.ok(getResult.success, `get failed: ${getResult.error}`);
const parsed = JSON.parse(getResult.output);
assert.strictEqual(parsed.phase, '02', 'field should be updated to "02"');
@@ -729,7 +729,7 @@ describe('bug-3509: frontmatter get/set/merge/validate survive spaces in file pa
test('frontmatter validate works when file path contains spaces', () => {
// Plan frontmatter schema — file path contains a space; must reach validation, not fail on path
const result = runGsdTools(['frontmatter', 'validate', tmpFile, '--schema', 'plan']);
const result = runMsdTools(['frontmatter', 'validate', tmpFile, '--schema', 'plan']);
// Should succeed (exit 0) and return structured JSON with valid/missing, not a path-split error
assert.ok(result.success, `Command should exit 0, got: ${result.error}`);
const out = JSON.parse(result.output);
@@ -753,7 +753,7 @@ describe('bug-3509: verify-path-exists survives absolute paths with spaces', ()
const absFile = path.join(tmpDir, 'abs-test.txt');
fs.writeFileSync(absFile, 'content');
const result = runGsdTools(['verify-path-exists', absFile], tmpDir);
const result = runMsdTools(['verify-path-exists', absFile], tmpDir);
assert.ok(result.success, `Command failed: ${result.error}`);
const output = JSON.parse(result.output);
assert.strictEqual(output.exists, true, 'file should be found');
@@ -776,7 +776,7 @@ describe('bug-3509: scan-sessions --path survives spaces in path', () => {
const sessionsDir = path.join(tmpDir, 'projects');
fs.mkdirSync(sessionsDir, { recursive: true });
const result = runGsdTools(['scan-sessions', '--path', sessionsDir, '--raw'], tmpDir);
const result = runMsdTools(['scan-sessions', '--path', sessionsDir, '--raw'], tmpDir);
assert.ok(result.success, `Failed: ${result.error}`);
const out = JSON.parse(result.output);
assert.ok(Array.isArray(out), 'should return an array');