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

@@ -19,7 +19,7 @@ const {
resolveStorePath,
putResearch,
getResearch,
} = require('../gsd-core/bin/lib/research-store.cjs');
} = require('../msd-core/bin/lib/research-store.cjs');
// ---------------------------------------------------------------------------
// Cycle 2: researchKey deterministic + sensitive
@@ -74,8 +74,8 @@ describe('research-store: getResearch missing key', () => {
let tmpHome;
beforeEach(() => {
tmpCwd = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-rs-cwd-'));
tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-rs-home-'));
tmpCwd = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-rs-cwd-'));
tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-rs-home-'));
});
afterEach(() => {
@@ -109,8 +109,8 @@ describe('research-store: getResearch corrupt file', () => {
let tmpHome;
beforeEach(() => {
tmpCwd = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-rs-cwd-'));
tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-rs-home-'));
tmpCwd = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-rs-cwd-'));
tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-rs-home-'));
});
afterEach(() => {
@@ -177,8 +177,8 @@ describe('research-store: staleness boundary (clock seam)', () => {
let tmpHome;
beforeEach(() => {
tmpCwd = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-rs-cwd-'));
tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-rs-home-'));
tmpCwd = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-rs-cwd-'));
tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-rs-home-'));
});
afterEach(() => {
@@ -230,9 +230,9 @@ describe('research-store: resolveStorePath tiers', () => {
const FAKE_HOME = '/fake/home';
const FAKE_CWD = '/fake/cwd';
test("source 'curated' → under injected homeDir/.gsd/research-cache", () => {
test("source 'curated' → under injected homeDir/.msd/research-cache", () => {
const p = resolveStorePath(FAKE_CWD, 'curated', { homeDir: FAKE_HOME });
assert.equal(p, path.join(FAKE_HOME, '.gsd', 'research-cache'));
assert.equal(p, path.join(FAKE_HOME, '.msd', 'research-cache'));
});
test("source 'web' (project) → under cwd/.planning/research/.cache", () => {
@@ -268,8 +268,8 @@ describe('research-store: I1 regression — source is the tier axis', () => {
let tmpHome;
beforeEach(() => {
tmpCwd = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-rs-i1-cwd-'));
tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-rs-i1-home-'));
tmpCwd = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-rs-i1-cwd-'));
tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-rs-i1-home-'));
});
afterEach(() => {
@@ -287,10 +287,10 @@ describe('research-store: I1 regression — source is the tier axis', () => {
);
const projectFile = path.join(tmpCwd, '.planning', 'research', '.cache', `${key}.json`);
const userFile = path.join(tmpHome, '.gsd', 'research-cache', `${key}.json`);
const userFile = path.join(tmpHome, '.msd', 'research-cache', `${key}.json`);
assert.ok(fs.existsSync(projectFile), 'file should exist in project dir (.planning/research/.cache)');
assert.ok(!fs.existsSync(userFile), 'file should NOT exist in user dir (~/.gsd/research-cache)');
assert.ok(!fs.existsSync(userFile), 'file should NOT exist in user dir (~/.msd/research-cache)');
});
test('source:curated + kind:web → file in USER dir, NOT project dir', () => {
@@ -303,9 +303,9 @@ describe('research-store: I1 regression — source is the tier axis', () => {
);
const projectFile = path.join(tmpCwd, '.planning', 'research', '.cache', `${key}.json`);
const userFile = path.join(tmpHome, '.gsd', 'research-cache', `${key}.json`);
const userFile = path.join(tmpHome, '.msd', 'research-cache', `${key}.json`);
assert.ok(fs.existsSync(userFile), 'file should exist in user dir (~/.gsd/research-cache)');
assert.ok(fs.existsSync(userFile), 'file should exist in user dir (~/.msd/research-cache)');
assert.ok(!fs.existsSync(projectFile), 'file should NOT exist in project dir');
});
});
@@ -321,8 +321,8 @@ describe('research-store: W4a regression — prefer fresh over stale across tier
let tmpHome;
beforeEach(() => {
tmpCwd = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-rs-w4-cwd-'));
tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-rs-w4-home-'));
tmpCwd = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-rs-w4-cwd-'));
tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-rs-w4-home-'));
});
afterEach(() => {
@@ -336,7 +336,7 @@ describe('research-store: W4a regression — prefer fresh over stale across tier
const key = researchKey({ ecosystem: 'npm', library: 'react', version: '18.0.0', query: 'hooks' });
// Seed a STALE curated entry directly into user tier directory
const userDir = path.join(tmpHome, '.gsd', 'research-cache');
const userDir = path.join(tmpHome, '.msd', 'research-cache');
fs.mkdirSync(userDir, { recursive: true });
const staleEntry = {
content: 'stale curated content',
@@ -385,8 +385,8 @@ describe('research-store: W4b regression — blank version caps TTL', () => {
let tmpHome;
beforeEach(() => {
tmpCwd = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-rs-w4b-cwd-'));
tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-rs-w4b-home-'));
tmpCwd = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-rs-w4b-cwd-'));
tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-rs-w4b-home-'));
});
afterEach(() => {
@@ -426,8 +426,8 @@ describe('research-store: tracer bullet round-trip', () => {
let tmpHome;
beforeEach(() => {
tmpCwd = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-rs-cwd-'));
tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-rs-home-'));
tmpCwd = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-rs-cwd-'));
tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-rs-home-'));
});
afterEach(() => {
@@ -464,7 +464,7 @@ describe('research-store: tracer bullet round-trip', () => {
// ---------------------------------------------------------------------------
describe('research-store: isValidResearchKey exported', () => {
const { isValidResearchKey } = require('../gsd-core/bin/lib/research-store.cjs');
const { isValidResearchKey } = require('../msd-core/bin/lib/research-store.cjs');
test('isValidResearchKey is exported', () => {
assert.equal(typeof isValidResearchKey, 'function', 'isValidResearchKey must be exported');
@@ -499,8 +499,8 @@ describe('research-store: putResearch rejects traversal key', () => {
let tmpHome;
beforeEach(() => {
tmpCwd = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-rs-trav-cwd-'));
tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-rs-trav-home-'));
tmpCwd = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-rs-trav-cwd-'));
tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-rs-trav-home-'));
});
afterEach(() => {
@@ -542,8 +542,8 @@ describe('research-store: getResearch rejects traversal key', () => {
let tmpHome;
beforeEach(() => {
tmpCwd = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-rs-trav2-cwd-'));
tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-rs-trav2-home-'));
tmpCwd = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-rs-trav2-cwd-'));
tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-rs-trav2-home-'));
});
afterEach(() => {
@@ -574,8 +574,8 @@ describe('research-store: getResearch rejects malformed cache metadata', () => {
let tmpHome;
beforeEach(() => {
tmpCwd = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-rs-malformed-cwd-'));
tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-rs-malformed-home-'));
tmpCwd = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-rs-malformed-cwd-'));
tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-rs-malformed-home-'));
});
afterEach(() => {