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

@@ -10,7 +10,7 @@
* `compatVersions`, `integrity`, `provenance` when present.
*
* Every native capabilities/<id>/capability.json must carry a valid `version`
* and `engines.gsd` (the conformance / parity requirement: the build fails when
* and `engines.msd` (the conformance / parity requirement: the build fails when
* a native manifest lacks a version).
*
* These are behavioral tests against the exported validator + generator
@@ -51,7 +51,7 @@ function featureCap(overrides) {
description: 'A demo capability.',
tier: 'standard',
requires: [],
engines: { gsd: '>=1.6.0' },
engines: { msd: '>=1.6.0' },
runtimeCompat: { supported: ['*'], unsupported: [] },
skills: [],
agents: [],
@@ -73,7 +73,7 @@ function runtimeCap(overrides) {
description: 'A demo runtime.',
tier: 'standard',
requires: [],
engines: { gsd: '>=1.6.0' },
engines: { msd: '>=1.6.0' },
runtime: {
configHome: { kind: 'dot-home', name: '.demo', env: [] },
localConfigDir: '.demo',
@@ -196,22 +196,22 @@ describe('engines is optional but shape-validated when present', () => {
});
test('engines must be an object', () => {
for (const bad of ['>=1.6.0', 123, ['gsd'], null]) {
for (const bad of ['>=1.6.0', 123, ['msd'], null]) {
const errors = validateCapability(featureCap({ engines: bad }), 'demo');
assert.ok(errors.some((e) => e.includes('engines')), `expected engines=${JSON.stringify(bad)} rejected`);
}
});
test('engines.gsd must be a non-empty range string', () => {
test('engines.msd must be a non-empty range string', () => {
for (const bad of ['', ' ', 123, {}, 'not a range!!', '>=1.0.0; rm -rf', 'abcx', '()x']) {
const errors = validateCapability(featureCap({ engines: { gsd: bad } }), 'demo');
assert.ok(errors.some((e) => e.includes('engines')), `expected engines.gsd=${JSON.stringify(bad)} rejected`);
const errors = validateCapability(featureCap({ engines: { msd: bad } }), 'demo');
assert.ok(errors.some((e) => e.includes('engines')), `expected engines.msd=${JSON.stringify(bad)} rejected`);
}
});
test('valid engines.gsd ranges pass', () => {
test('valid engines.msd ranges pass', () => {
for (const ok of ['>=1.6.0', '>=1.6.0 <3.0.0', '^1.0.0', '~1.2.0', '1.x', '*', '>=1.6.0 || >=2.0.0']) {
const errors = validateCapability(featureCap({ engines: { gsd: ok } }), 'demo');
const errors = validateCapability(featureCap({ engines: { msd: ok } }), 'demo');
assert.deepEqual(errors, [], `expected range "${ok}" to pass, got: ${JSON.stringify(errors)}`);
}
});
@@ -250,14 +250,14 @@ describe('optional ecosystem envelope fields are shape-validated', () => {
describe('generated registry preserves version + engines', () => {
test('buildRegistry carries version and engines onto the capability object', (t) => {
const capDir = makeTempCapDir({ demo: featureCap({ id: 'demo', version: '2.5.0', engines: { gsd: '>=1.6.0 <2.0.0' } }) });
const capDir = makeTempCapDir({ demo: featureCap({ id: 'demo', version: '2.5.0', engines: { msd: '>=1.6.0 <2.0.0' } }) });
t.after(() => helpers.cleanup(capDir));
const { capMap, errors } = loadAndValidate(new Set(), capDir);
assert.deepEqual(errors, [], `loadAndValidate errors: ${JSON.stringify(errors)}`);
const registry = buildRegistry(capMap);
assert.equal(registry.capabilities.demo.version, '2.5.0');
assert.equal(registry.capabilities.demo.engines.gsd, '>=1.6.0 <2.0.0');
assert.equal(registry.capabilities.demo.engines.msd, '>=1.6.0 <2.0.0');
});
test('loadAndValidate rejects a capability dir whose manifest lacks a version', (t) => {
@@ -275,7 +275,7 @@ describe('generated registry preserves version + engines', () => {
// ─── Native manifest conformance (the ADR-1244 parity requirement) ────────────
describe('every native capability.json carries a valid version + engines.gsd', () => {
describe('every native capability.json carries a valid version + engines.msd', () => {
const ids = fs
.readdirSync(CAPABILITIES_DIR, { withFileTypes: true })
.filter((d) => d.isDirectory())
@@ -292,10 +292,10 @@ describe('every native capability.json carries a valid version + engines.gsd', (
assert.ok(SEMVER.test(cap.version), `${id}: version "${cap.version}" must be semver`);
});
test(`capabilities/${id}/capability.json declares engines.gsd`, () => {
test(`capabilities/${id}/capability.json declares engines.msd`, () => {
const cap = JSON.parse(fs.readFileSync(path.join(CAPABILITIES_DIR, id, 'capability.json'), 'utf8'));
assert.ok(cap.engines && typeof cap.engines.gsd === 'string' && cap.engines.gsd.length > 0,
`${id}: engines.gsd must be a non-empty string`);
assert.ok(cap.engines && typeof cap.engines.msd === 'string' && cap.engines.msd.length > 0,
`${id}: engines.msd must be a non-empty string`);
});
test(`capabilities/${id}/capability.json passes validateCapability`, () => {