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:
@@ -11,7 +11,7 @@
|
||||
* emitted only `sessionStart`. This PR wires four additional events —
|
||||
* `preToolUse`, `postToolUse`, `userPromptSubmitted`, `sessionEnd` — each a
|
||||
* static, deterministic advisory command (no node-runner invocation), so a
|
||||
* live install's hooks/gsd-session.json registers all five events.
|
||||
* live install's hooks/msd-session.json registers all five events.
|
||||
*
|
||||
* UPGRADE 2 — dispatch.background: Copilot's capability.json already
|
||||
* declares `dispatch.background: true`, which legitimately EXCEEDS the
|
||||
@@ -35,7 +35,7 @@ const {
|
||||
profileOf,
|
||||
negotiateHostCapabilities,
|
||||
PROFILE_BASELINES,
|
||||
} = require('../gsd-core/bin/lib/host-integration.cjs');
|
||||
} = require('../msd-core/bin/lib/host-integration.cjs');
|
||||
|
||||
const COPILOT_CAP = JSON.parse(
|
||||
fs.readFileSync(path.join(__dirname, '..', 'capabilities', 'copilot', 'capability.json'), 'utf8'),
|
||||
@@ -50,11 +50,11 @@ const COPILOT_AXES = COPILOT_CAP.runtime.hostIntegration;
|
||||
const NEWLY_WIRED_EVENTS = ['preToolUse', 'postToolUse', 'userPromptSubmitted', 'sessionEnd'];
|
||||
const ALL_EXPECTED_EVENTS = ['sessionStart', ...NEWLY_WIRED_EVENTS];
|
||||
|
||||
test('copilot --global: hooks/gsd-session.json wires sessionStart plus all 4 newly-added events (UPGRADE 1)', (t) => {
|
||||
test('copilot --global: hooks/msd-session.json wires sessionStart plus all 4 newly-added events (UPGRADE 1)', (t) => {
|
||||
const { configDir, root } = runMinimalInstall({ runtime: 'copilot', scope: 'global' });
|
||||
t.after(() => cleanup(root));
|
||||
|
||||
const hookPath = path.join(configDir, 'hooks', 'gsd-session.json');
|
||||
const hookPath = path.join(configDir, 'hooks', 'msd-session.json');
|
||||
assert.ok(fs.existsSync(hookPath), `${hookPath} must exist`);
|
||||
const parsed = JSON.parse(fs.readFileSync(hookPath, 'utf8'));
|
||||
|
||||
@@ -79,7 +79,7 @@ test('each newly-wired event emits a distinct static advisory (no shared boilerp
|
||||
const { configDir, root } = runMinimalInstall({ runtime: 'copilot', scope: 'global' });
|
||||
t.after(() => cleanup(root));
|
||||
|
||||
const hookPath = path.join(configDir, 'hooks', 'gsd-session.json');
|
||||
const hookPath = path.join(configDir, 'hooks', 'msd-session.json');
|
||||
const parsed = JSON.parse(fs.readFileSync(hookPath, 'utf8'));
|
||||
|
||||
const bashBodies = new Set();
|
||||
@@ -87,7 +87,7 @@ test('each newly-wired event emits a distinct static advisory (no shared boilerp
|
||||
const entry = parsed.hooks[eventName][0];
|
||||
assert.ok(entry.bash.includes('"additionalContext"'),
|
||||
`${eventName} bash body must emit the additionalContext JSON envelope`);
|
||||
assert.ok(!/hooks\/gsd-[\w-]+\.(js|cjs|sh)/.test(entry.bash),
|
||||
assert.ok(!/hooks\/msd-[\w-]+\.(js|cjs|sh)/.test(entry.bash),
|
||||
`${eventName} bash body must not reference an external hook script (cannot dangle)`);
|
||||
bashBodies.add(entry.bash);
|
||||
}
|
||||
@@ -99,12 +99,12 @@ test('a runtime whose hook config omits the new events does NOT get them (descri
|
||||
const { configDir, root } = runMinimalInstall({ runtime: 'claude', scope: 'global' });
|
||||
t.after(() => cleanup(root));
|
||||
|
||||
// Claude uses settings.json, not hooks/gsd-session.json — the Copilot
|
||||
// Claude uses settings.json, not hooks/msd-session.json — the Copilot
|
||||
// multi-event bus additions are self-contained to buildCopilotHookConfig
|
||||
// and must not leak into another runtime's hook surface.
|
||||
const copilotHookPath = path.join(configDir, 'hooks', 'gsd-session.json');
|
||||
const copilotHookPath = path.join(configDir, 'hooks', 'msd-session.json');
|
||||
assert.ok(!fs.existsSync(copilotHookPath),
|
||||
'claude must not have a Copilot-style hooks/gsd-session.json file');
|
||||
'claude must not have a Copilot-style hooks/msd-session.json file');
|
||||
});
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user