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

@@ -18,7 +18,7 @@
* the single-set result (idempotency).
* 7. Setting the key preserves every other pre-existing key/value in
* .planning/config.json (ordering/preservation).
* 8. VALID_CONFIG_KEYS (gsd-core/bin/lib/config-schema.cjs) has
* 8. VALID_CONFIG_KEYS (msd-core/bin/lib/config-schema.cjs) has
* 'workflow.compact_content'.
* 9. config-new-project omitting compact_content from its workflow object
* still materializes workflow.compact_content === false in
@@ -34,14 +34,14 @@ const { describe, test, beforeEach, afterEach } = require('node:test');
const assert = require('node:assert/strict');
const fs = require('fs');
const path = require('path');
const { runGsdTools, createTempProject, cleanup } = require('./helpers.cjs');
const { runMsdTools, createTempProject, cleanup } = require('./helpers.cjs');
describe('workflow.compact_content config (#4139)', () => {
let tmpDir;
beforeEach(() => {
tmpDir = createTempProject();
runGsdTools('config-ensure-section', tmpDir);
runMsdTools('config-ensure-section', tmpDir);
});
afterEach(() => { cleanup(tmpDir); });
@@ -50,27 +50,27 @@ describe('workflow.compact_content config (#4139)', () => {
}
test('config-set workflow.compact_content true → persisted as boolean true', () => {
const r = runGsdTools(['config-set', 'workflow.compact_content', 'true'], tmpDir);
const r = runMsdTools(['config-set', 'workflow.compact_content', 'true'], tmpDir);
assert.ok(r.success, r.error);
const config = readConfig();
assert.strictEqual(config.workflow.compact_content, true);
});
test('config-set workflow.compact_content false → persisted as boolean false', () => {
const r = runGsdTools(['config-set', 'workflow.compact_content', 'false'], tmpDir);
const r = runMsdTools(['config-set', 'workflow.compact_content', 'false'], tmpDir);
assert.ok(r.success, r.error);
const config = readConfig();
assert.strictEqual(config.workflow.compact_content, false);
});
test('config-set workflow.compact_content banana → rejected', () => {
const r = runGsdTools(['config-set', 'workflow.compact_content', 'banana'], tmpDir);
const r = runMsdTools(['config-set', 'workflow.compact_content', 'banana'], tmpDir);
assert.ok(!r.success, 'non-boolean value must be rejected');
assert.match(r.error || r.output, /boolean|true|false/i);
});
test('config-set workflow.compact_content "" → rejected', () => {
const r = runGsdTools(['config-set', 'workflow.compact_content', ''], tmpDir);
const r = runMsdTools(['config-set', 'workflow.compact_content', ''], tmpDir);
assert.ok(!r.success, 'empty value must be rejected');
});
@@ -82,17 +82,17 @@ describe('workflow.compact_content config (#4139)', () => {
// default "false" rather than exiting non-zero. The workflow-side
// `... --raw 2>/dev/null || echo "false"` fallback still resolves to the
// same string either way, so gate hooks are unaffected by this change.
const r = runGsdTools(['config-get', 'workflow.compact_content', '--raw'], tmpDir);
const r = runMsdTools(['config-get', 'workflow.compact_content', '--raw'], tmpDir);
assert.ok(r.success, 'config-get on the materialized default must exit zero');
assert.strictEqual(r.output.trim(), 'false');
});
test('setting true twice is idempotent — identical config.json content', () => {
const first = runGsdTools(['config-set', 'workflow.compact_content', 'true'], tmpDir);
const first = runMsdTools(['config-set', 'workflow.compact_content', 'true'], tmpDir);
assert.ok(first.success, first.error);
const afterFirst = fs.readFileSync(path.join(tmpDir, '.planning', 'config.json'), 'utf-8');
const second = runGsdTools(['config-set', 'workflow.compact_content', 'true'], tmpDir);
const second = runMsdTools(['config-set', 'workflow.compact_content', 'true'], tmpDir);
assert.ok(second.success, second.error);
const afterSecond = fs.readFileSync(path.join(tmpDir, '.planning', 'config.json'), 'utf-8');
@@ -106,7 +106,7 @@ describe('workflow.compact_content config (#4139)', () => {
before.mode = 'yolo';
fs.writeFileSync(cfgPath, JSON.stringify(before, null, 2));
const r = runGsdTools(['config-set', 'workflow.compact_content', 'true'], tmpDir);
const r = runMsdTools(['config-set', 'workflow.compact_content', 'true'], tmpDir);
assert.ok(r.success, r.error);
const after = readConfig();
@@ -116,12 +116,12 @@ describe('workflow.compact_content config (#4139)', () => {
});
test('VALID_CONFIG_KEYS has workflow.compact_content', () => {
const { VALID_CONFIG_KEYS } = require('../gsd-core/bin/lib/config-schema.cjs');
const { VALID_CONFIG_KEYS } = require('../msd-core/bin/lib/config-schema.cjs');
assert.strictEqual(VALID_CONFIG_KEYS.has('workflow.compact_content'), true);
});
test('config-set workflow.compact_content 42 → rejected, message names the key', () => {
const r = runGsdTools(['config-set', 'workflow.compact_content', '42'], tmpDir);
const r = runMsdTools(['config-set', 'workflow.compact_content', '42'], tmpDir);
assert.ok(!r.success, 'numeric value must be rejected');
assert.match(r.error || r.output, /workflow\.compact_content/);
});
@@ -134,7 +134,7 @@ describe('workflow.compact_content config (#4139)', () => {
// context-key coverage in tests/config.test.cjs ("config-set <key> null —
// unset/clear (#2046)"). So `null` exits zero and removes the key rather
// than being rejected like `42`/`banana`/`""`.
const r = runGsdTools(['config-set', 'workflow.compact_content', 'null'], tmpDir);
const r = runMsdTools(['config-set', 'workflow.compact_content', 'null'], tmpDir);
assert.ok(r.success, `unset must succeed: ${r.error}`);
const config = readConfig();
assert.ok(
@@ -144,7 +144,7 @@ describe('workflow.compact_content config (#4139)', () => {
});
test('config-defaults.manifest.json carries workflow.compact_content', () => {
const manifest = require('../gsd-core/bin/shared/config-defaults.manifest.json');
const manifest = require('../msd-core/bin/shared/config-defaults.manifest.json');
assert.strictEqual(manifest.workflow.compact_content, false);
});
});
@@ -167,8 +167,8 @@ describe('workflow.compact_content absent-key resolution (#4139, D-03)', () => {
JSON.stringify({ version: '1.0', mode: 'interactive', workflow: { research: true } }, null, 2),
);
const manifest = require('../gsd-core/bin/shared/config-defaults.manifest.json');
const r = runGsdTools(['config-get', 'workflow.compact_content', '--raw'], tmpDir);
const manifest = require('../msd-core/bin/shared/config-defaults.manifest.json');
const r = runMsdTools(['config-get', 'workflow.compact_content', '--raw'], tmpDir);
assert.strictEqual(r.exitCode, 0, r.error || r.output);
assert.strictEqual(r.output.trim(), String(manifest.workflow.compact_content));
});
@@ -197,7 +197,7 @@ describe('workflow.compact_content via config-new-project (#4139, CONF-01)', ()
model_profile: 'adaptive',
workflow: { research: true, plan_check: true, verifier: true, nyquist_validation: false },
});
const r = runGsdTools(['config-new-project', choices], tmpDir, { HOME: tmpDir, USERPROFILE: tmpDir });
const r = runMsdTools(['config-new-project', choices], tmpDir, { HOME: tmpDir, USERPROFILE: tmpDir });
assert.ok(r.success, r.error);
const config = readConfig();
assert.strictEqual(config.workflow.compact_content, false);
@@ -212,7 +212,7 @@ describe('workflow.compact_content via config-new-project (#4139, CONF-01)', ()
model_profile: 'adaptive',
workflow: { research: true, plan_check: true, verifier: true, nyquist_validation: false, compact_content: true },
});
const r = runGsdTools(['config-new-project', choices], tmpDir, { HOME: tmpDir, USERPROFILE: tmpDir });
const r = runMsdTools(['config-new-project', choices], tmpDir, { HOME: tmpDir, USERPROFILE: tmpDir });
assert.ok(r.success, r.error);
const config = readConfig();
assert.strictEqual(config.workflow.compact_content, true);
@@ -227,7 +227,7 @@ describe('workflow.compact_content via config-new-project (#4139, CONF-01)', ()
model_profile: 'adaptive',
workflow: { research: true, plan_check: true, verifier: true, nyquist_validation: false, compact_content: false },
});
const r = runGsdTools(['config-new-project', choices], tmpDir, { HOME: tmpDir, USERPROFILE: tmpDir });
const r = runMsdTools(['config-new-project', choices], tmpDir, { HOME: tmpDir, USERPROFILE: tmpDir });
assert.ok(r.success, r.error);
const config = readConfig();
assert.strictEqual(config.workflow.compact_content, false);
@@ -243,10 +243,10 @@ describe('workflow.compact_content via config-new-project (#4139, CONF-01)', ()
model_profile: 'adaptive',
workflow: { research: true, plan_check: true, verifier: true, nyquist_validation: false, compact_content: true },
});
const setup = runGsdTools(['config-new-project', choices], tmpDir, { HOME: tmpDir, USERPROFILE: tmpDir });
const setup = runMsdTools(['config-new-project', choices], tmpDir, { HOME: tmpDir, USERPROFILE: tmpDir });
assert.ok(setup.success, setup.error);
const r = runGsdTools(['config-get', 'workflow.compact_content', '--raw'], tmpDir);
const r = runMsdTools(['config-get', 'workflow.compact_content', '--raw'], tmpDir);
assert.ok(r.success, 'config-get must exit zero once config-new-project has materialized the key');
assert.strictEqual(r.output.trim(), 'true');
});
@@ -255,7 +255,7 @@ describe('workflow.compact_content via config-new-project (#4139, CONF-01)', ()
// ─── D-06: doc-row shape assertions for both config reference tables ─────────
describe('workflow.compact_content documentation rows (#4139, D-06)', () => {
const { splitTableRow } = require('../gsd-core/bin/lib/markdown-table.cjs');
const { splitTableRow } = require('../msd-core/bin/lib/markdown-table.cjs');
const KEY_CELL = '`workflow.compact_content`';
function findRow(filePath) {
@@ -277,7 +277,7 @@ describe('workflow.compact_content documentation rows (#4139, D-06)', () => {
});
test('planning-config.md documents workflow.compact_content as a 5-cell boolean row', () => {
const cells = findRow('gsd-core/references/planning-config.md');
const cells = findRow('msd-core/references/planning-config.md');
assert.ok(cells, 'workflow.compact_content row not found in planning-config.md');
assert.strictEqual(cells.length, 5);
assert.strictEqual(cells[1], 'boolean');
@@ -287,7 +287,7 @@ describe('workflow.compact_content documentation rows (#4139, D-06)', () => {
});
test('both doc rows sit under the Workflow section they belong to', () => {
const planningConfigPath = path.join(__dirname, '..', 'gsd-core/references/planning-config.md');
const planningConfigPath = path.join(__dirname, '..', 'msd-core/references/planning-config.md');
const planningConfigContent = fs.readFileSync(planningConfigPath, 'utf-8');
const keyIdx = planningConfigContent.indexOf('`workflow.compact_content`');
const fieldRefIdx = planningConfigContent.indexOf('## Complete Field Reference');