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:
@@ -1,12 +1,12 @@
|
||||
// Migrated to typed-IR (#2974): the gsd-session-state.sh and
|
||||
// gsd-phase-boundary.sh hooks now emit Claude Code SessionStart/PostToolUse
|
||||
// Migrated to typed-IR (#2974): the msd-session-state.sh and
|
||||
// msd-phase-boundary.sh hooks now emit Claude Code SessionStart/PostToolUse
|
||||
// JSON envelopes ({ hookSpecificOutput: { hookEventName, additionalContext,
|
||||
// state_present, config_mode | planning_modified, file_path } }) instead of
|
||||
// plain text. gsd-validate-commit.sh already emitted JSON ({ decision,
|
||||
// plain text. msd-validate-commit.sh already emitted JSON ({ decision,
|
||||
// reason }). Tests parse the JSON and assert on typed fields.
|
||||
|
||||
/**
|
||||
* GSD Tools Tests - Community Hooks (opt-in)
|
||||
* MSD Tools Tests - Community Hooks (opt-in)
|
||||
*
|
||||
* Tests for feat/hooks-opt-in-1473d:
|
||||
* - Hook file existence and permissions
|
||||
@@ -57,7 +57,7 @@ function spawnHook(hookPath, options) {
|
||||
|
||||
// ─── Helpers ────────────────────────────────────────────────────────────────
|
||||
|
||||
function createTempProject(prefix = 'gsd-hook-test-') {
|
||||
function createTempProject(prefix = 'msd-hook-test-') {
|
||||
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), prefix));
|
||||
fs.mkdirSync(path.join(tmpDir, '.planning', 'phases'), { recursive: true });
|
||||
return tmpDir;
|
||||
@@ -93,37 +93,37 @@ function writeMinimalStateMd(tmpDir, content) {
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
describe('hook file validation', () => {
|
||||
test('gsd-session-state.sh exists', () => {
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-session-state.sh');
|
||||
assert.ok(fs.existsSync(hookPath), 'gsd-session-state.sh should exist');
|
||||
test('msd-session-state.sh exists', () => {
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-session-state.sh');
|
||||
assert.ok(fs.existsSync(hookPath), 'msd-session-state.sh should exist');
|
||||
});
|
||||
|
||||
test('gsd-validate-commit.sh exists', () => {
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-validate-commit.sh');
|
||||
assert.ok(fs.existsSync(hookPath), 'gsd-validate-commit.sh should exist');
|
||||
test('msd-validate-commit.sh exists', () => {
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-validate-commit.sh');
|
||||
assert.ok(fs.existsSync(hookPath), 'msd-validate-commit.sh should exist');
|
||||
});
|
||||
|
||||
test('gsd-phase-boundary.sh exists', () => {
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-phase-boundary.sh');
|
||||
assert.ok(fs.existsSync(hookPath), 'gsd-phase-boundary.sh should exist');
|
||||
test('msd-phase-boundary.sh exists', () => {
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-phase-boundary.sh');
|
||||
assert.ok(fs.existsSync(hookPath), 'msd-phase-boundary.sh should exist');
|
||||
});
|
||||
|
||||
test('gsd-session-state.sh is executable', { skip: isWindows ? 'Windows has no POSIX file permissions' : false }, () => {
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-session-state.sh');
|
||||
test('msd-session-state.sh is executable', { skip: isWindows ? 'Windows has no POSIX file permissions' : false }, () => {
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-session-state.sh');
|
||||
const stat = fs.statSync(hookPath);
|
||||
assert.ok((stat.mode & 0o111) !== 0, 'gsd-session-state.sh should be executable');
|
||||
assert.ok((stat.mode & 0o111) !== 0, 'msd-session-state.sh should be executable');
|
||||
});
|
||||
|
||||
test('gsd-validate-commit.sh is executable', { skip: isWindows ? 'Windows has no POSIX file permissions' : false }, () => {
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-validate-commit.sh');
|
||||
test('msd-validate-commit.sh is executable', { skip: isWindows ? 'Windows has no POSIX file permissions' : false }, () => {
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-validate-commit.sh');
|
||||
const stat = fs.statSync(hookPath);
|
||||
assert.ok((stat.mode & 0o111) !== 0, 'gsd-validate-commit.sh should be executable');
|
||||
assert.ok((stat.mode & 0o111) !== 0, 'msd-validate-commit.sh should be executable');
|
||||
});
|
||||
|
||||
test('gsd-phase-boundary.sh is executable', { skip: isWindows ? 'Windows has no POSIX file permissions' : false }, () => {
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-phase-boundary.sh');
|
||||
test('msd-phase-boundary.sh is executable', { skip: isWindows ? 'Windows has no POSIX file permissions' : false }, () => {
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-phase-boundary.sh');
|
||||
const stat = fs.statSync(hookPath);
|
||||
assert.ok((stat.mode & 0o111) !== 0, 'gsd-phase-boundary.sh should be executable');
|
||||
assert.ok((stat.mode & 0o111) !== 0, 'msd-phase-boundary.sh should be executable');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -134,50 +134,50 @@ describe('hook file validation', () => {
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
// Typed import — no source-grep needed (#455)
|
||||
const { GSD_UNINSTALL_HOOKS } = require(
|
||||
const { MSD_UNINSTALL_HOOKS } = require(
|
||||
path.join(__dirname, '..', 'bin', 'install.js')
|
||||
);
|
||||
const { buildHookCommand } = require(
|
||||
path.join(__dirname, '..', 'gsd-core', 'bin', 'lib', 'runtime-hooks-surface.cjs')
|
||||
path.join(__dirname, '..', 'msd-core', 'bin', 'lib', 'runtime-hooks-surface.cjs')
|
||||
);
|
||||
|
||||
describe('installer hook registration', () => {
|
||||
test('GSD_UNINSTALL_HOOKS includes all 3 opt-in bash hooks', () => {
|
||||
assert.ok(Array.isArray(GSD_UNINSTALL_HOOKS), 'GSD_UNINSTALL_HOOKS must be an array');
|
||||
test('MSD_UNINSTALL_HOOKS includes all 3 opt-in bash hooks', () => {
|
||||
assert.ok(Array.isArray(MSD_UNINSTALL_HOOKS), 'MSD_UNINSTALL_HOOKS must be an array');
|
||||
assert.ok(
|
||||
GSD_UNINSTALL_HOOKS.includes('gsd-validate-commit.sh'),
|
||||
'GSD_UNINSTALL_HOOKS must include gsd-validate-commit.sh'
|
||||
MSD_UNINSTALL_HOOKS.includes('msd-validate-commit.sh'),
|
||||
'MSD_UNINSTALL_HOOKS must include msd-validate-commit.sh'
|
||||
);
|
||||
assert.ok(
|
||||
GSD_UNINSTALL_HOOKS.includes('gsd-session-state.sh'),
|
||||
'GSD_UNINSTALL_HOOKS must include gsd-session-state.sh'
|
||||
MSD_UNINSTALL_HOOKS.includes('msd-session-state.sh'),
|
||||
'MSD_UNINSTALL_HOOKS must include msd-session-state.sh'
|
||||
);
|
||||
assert.ok(
|
||||
GSD_UNINSTALL_HOOKS.includes('gsd-phase-boundary.sh'),
|
||||
'GSD_UNINSTALL_HOOKS must include gsd-phase-boundary.sh'
|
||||
MSD_UNINSTALL_HOOKS.includes('msd-phase-boundary.sh'),
|
||||
'MSD_UNINSTALL_HOOKS must include msd-phase-boundary.sh'
|
||||
);
|
||||
});
|
||||
|
||||
test('GSD_UNINSTALL_HOOKS includes all core JS hooks', () => {
|
||||
test('MSD_UNINSTALL_HOOKS includes all core JS hooks', () => {
|
||||
const requiredJsHooks = [
|
||||
'gsd-statusline.js',
|
||||
'gsd-check-update.js',
|
||||
'gsd-context-monitor.js',
|
||||
'msd-statusline.js',
|
||||
'msd-check-update.js',
|
||||
'msd-context-monitor.js',
|
||||
];
|
||||
for (const hook of requiredJsHooks) {
|
||||
assert.ok(
|
||||
GSD_UNINSTALL_HOOKS.includes(hook),
|
||||
`GSD_UNINSTALL_HOOKS must include ${hook}`
|
||||
MSD_UNINSTALL_HOOKS.includes(hook),
|
||||
`MSD_UNINSTALL_HOOKS must include ${hook}`
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
test('buildHookCommand generates a command string for gsd-validate-commit.sh', () => {
|
||||
test('buildHookCommand generates a command string for msd-validate-commit.sh', () => {
|
||||
// buildHookCommand(configDir, hookName, opts) returns a non-null string command
|
||||
// or null when the platform cannot run the hook. On non-Windows unix, .sh hooks
|
||||
// always produce a command string.
|
||||
const tmpConfigDir = os.tmpdir();
|
||||
const cmd = buildHookCommand(tmpConfigDir, 'gsd-validate-commit.sh', { platform: 'linux' });
|
||||
const cmd = buildHookCommand(tmpConfigDir, 'msd-validate-commit.sh', { platform: 'linux' });
|
||||
// On Linux, .sh hooks should always resolve to a non-null string
|
||||
assert.ok(
|
||||
cmd === null || (typeof cmd === 'string' && cmd.length > 0),
|
||||
@@ -185,7 +185,7 @@ describe('installer hook registration', () => {
|
||||
);
|
||||
if (cmd !== null) {
|
||||
assert.ok(
|
||||
cmd.includes('gsd-validate-commit.sh'),
|
||||
cmd.includes('msd-validate-commit.sh'),
|
||||
`buildHookCommand result must reference the hook filename, got: ${cmd}`
|
||||
);
|
||||
}
|
||||
@@ -209,7 +209,7 @@ describe('opt-in gating behavior', { skip: isWindows ? 'bash hooks require unix
|
||||
|
||||
test('validate-commit is a no-op when hooks.community is false', () => {
|
||||
writeConfigWithHooks(tmpDir, false);
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-validate-commit.sh');
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-validate-commit.sh');
|
||||
const input = JSON.stringify({
|
||||
tool_input: { command: 'git commit -m "WIP save"' }
|
||||
});
|
||||
@@ -226,9 +226,9 @@ describe('opt-in gating behavior', { skip: isWindows ? 'bash hooks require unix
|
||||
|
||||
test('validate-commit is a no-op when config.json is absent', (t) => {
|
||||
// No config.json at all
|
||||
const bareDir = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-hook-bare-'));
|
||||
const bareDir = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-hook-bare-'));
|
||||
t.after(() => { cleanup(bareDir); });
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-validate-commit.sh');
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-validate-commit.sh');
|
||||
const input = JSON.stringify({
|
||||
tool_input: { command: 'git commit -m "WIP save"' }
|
||||
});
|
||||
@@ -245,7 +245,7 @@ describe('opt-in gating behavior', { skip: isWindows ? 'bash hooks require unix
|
||||
test('session-state is a no-op when hooks.community is false', () => {
|
||||
writeConfigWithHooks(tmpDir, false);
|
||||
writeMinimalStateMd(tmpDir);
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-session-state.sh');
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-session-state.sh');
|
||||
|
||||
const result = spawnHook(hookPath, {
|
||||
input: '',
|
||||
@@ -263,7 +263,7 @@ describe('opt-in gating behavior', { skip: isWindows ? 'bash hooks require unix
|
||||
|
||||
test('phase-boundary is a no-op when hooks.community is false', () => {
|
||||
writeConfigWithHooks(tmpDir, false);
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-phase-boundary.sh');
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-phase-boundary.sh');
|
||||
const input = JSON.stringify({
|
||||
tool_input: { file_path: '.planning/STATE.md' }
|
||||
});
|
||||
@@ -298,7 +298,7 @@ describe('hook execution when enabled', { skip: isWindows ? 'bash hooks require
|
||||
});
|
||||
|
||||
test('validate-commit allows valid conventional commit', () => {
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-validate-commit.sh');
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-validate-commit.sh');
|
||||
const input = JSON.stringify({
|
||||
tool_input: { command: 'git commit -m "fix(core): add locking mechanism"' }
|
||||
});
|
||||
@@ -313,7 +313,7 @@ describe('hook execution when enabled', { skip: isWindows ? 'bash hooks require
|
||||
});
|
||||
|
||||
test('validate-commit blocks non-conventional commit', () => {
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-validate-commit.sh');
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-validate-commit.sh');
|
||||
const input = JSON.stringify({
|
||||
tool_input: { command: 'git commit -m "WIP save"' }
|
||||
});
|
||||
@@ -351,7 +351,7 @@ describe('hook execution when enabled', { skip: isWindows ? 'bash hooks require
|
||||
// commit was blocked regardless of its message.
|
||||
const heredoc = (body, open = "<<'EOF'", close = 'EOF') =>
|
||||
`git commit -m "$(cat ${open}\n${body}\n${close}\n)"`;
|
||||
const runHookCmd = (command) => spawnHook(path.join(HOOKS_DIR, 'gsd-validate-commit.sh'), {
|
||||
const runHookCmd = (command) => spawnHook(path.join(HOOKS_DIR, 'msd-validate-commit.sh'), {
|
||||
input: JSON.stringify({ tool_input: { command } }),
|
||||
encoding: 'utf-8',
|
||||
cwd: tmpDir,
|
||||
@@ -519,7 +519,7 @@ describe('hook execution when enabled', { skip: isWindows ? 'bash hooks require
|
||||
})();
|
||||
|
||||
const underBash = (bashPath, command) => runHook(
|
||||
path.join(HOOKS_DIR, 'gsd-validate-commit.sh'), [],
|
||||
path.join(HOOKS_DIR, 'msd-validate-commit.sh'), [],
|
||||
{
|
||||
interpreter: bashPath,
|
||||
env: hookEnv,
|
||||
@@ -1281,7 +1281,7 @@ EOF
|
||||
// machine anyway, since the round-8 classes were.
|
||||
const bashes = ['/bin/bash', '/opt/homebrew/bin/bash'].filter((b) => fs.existsSync(b));
|
||||
assert.ok(bashes.length >= 1, 'at least one bash must exist');
|
||||
const run = (bash, command) => spawnHook(path.join(HOOKS_DIR, 'gsd-validate-commit.sh'), {
|
||||
const run = (bash, command) => spawnHook(path.join(HOOKS_DIR, 'msd-validate-commit.sh'), {
|
||||
input: JSON.stringify({ tool_input: { command } }), encoding: 'utf-8', cwd: tmpDir, interpreter: bash,
|
||||
});
|
||||
for (const bash of bashes) {
|
||||
@@ -1369,7 +1369,7 @@ EOF
|
||||
// (`${VAR%%$'\n'*}`, a pure parameter expansion with zero subprocesses and
|
||||
// therefore zero pipe/race surface) must be present, and the vulnerable
|
||||
// pipe pattern must be gone.
|
||||
const hookSrc = fs.readFileSync(path.join(HOOKS_DIR, 'gsd-validate-commit.sh'), 'utf8');
|
||||
const hookSrc = fs.readFileSync(path.join(HOOKS_DIR, 'msd-validate-commit.sh'), 'utf8');
|
||||
// Regexes require the `$(...)` command-substitution wrapper so this only
|
||||
// matches the actual dangerous CODE pattern, never the explanatory prose
|
||||
// comments left at the fix site (which quote the bare pipeline, without
|
||||
@@ -1449,7 +1449,7 @@ EOF
|
||||
});
|
||||
|
||||
test('validate-commit allows non-commit commands', () => {
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-validate-commit.sh');
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-validate-commit.sh');
|
||||
const input = JSON.stringify({
|
||||
tool_input: { command: 'git push origin main' }
|
||||
});
|
||||
@@ -1465,7 +1465,7 @@ EOF
|
||||
|
||||
test('session-state outputs state info when enabled', () => {
|
||||
writeMinimalStateMd(tmpDir);
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-session-state.sh');
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-session-state.sh');
|
||||
|
||||
const result = spawnHook(hookPath, {
|
||||
input: '',
|
||||
@@ -1485,11 +1485,11 @@ EOF
|
||||
|
||||
test('session-state exits 0 without .planning/ (in enabled project)', (t) => {
|
||||
// Create a dir with config but no STATE.md
|
||||
const noStateDir = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-hook-nostate-'));
|
||||
const noStateDir = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-hook-nostate-'));
|
||||
t.after(() => { cleanup(noStateDir); });
|
||||
fs.mkdirSync(path.join(noStateDir, '.planning'), { recursive: true });
|
||||
writeConfigWithHooks(noStateDir, true);
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-session-state.sh');
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-session-state.sh');
|
||||
|
||||
const result = spawnHook(hookPath, {
|
||||
input: '',
|
||||
@@ -1506,7 +1506,7 @@ EOF
|
||||
});
|
||||
|
||||
test('phase-boundary detects .planning/ writes when enabled', () => {
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-phase-boundary.sh');
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-phase-boundary.sh');
|
||||
const input = JSON.stringify({
|
||||
tool_input: { file_path: '.planning/STATE.md' }
|
||||
});
|
||||
@@ -1533,7 +1533,7 @@ EOF
|
||||
// write.py + replace.py). Pre-fix, the hook read '' on Kimi payloads and
|
||||
// .planning/ writes were silently undetected.
|
||||
test('phase-boundary detects .planning/ writes from Kimi tool_input.path (#2304)', () => {
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-phase-boundary.sh');
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-phase-boundary.sh');
|
||||
const input = JSON.stringify({
|
||||
tool_name: 'kimi_cli.tools.file:WriteFile',
|
||||
tool_input: { path: '.planning/STATE.md', content: 'x' }
|
||||
@@ -1559,7 +1559,7 @@ EOF
|
||||
// never touched. Mirrors the #2595 JS-guard fix: `path` wins, `file_path` is the
|
||||
// fallback (Claude emits `file_path` and no `path`, so the fallback must remain).
|
||||
test('phase-boundary prefers Kimi tool_input.path when both fields are present (#2752)', () => {
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-phase-boundary.sh');
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-phase-boundary.sh');
|
||||
// Suppression repro: a real .planning/ write WITH a decoy non-empty file_path.
|
||||
const suppressionInput = JSON.stringify({
|
||||
tool_name: 'kimi_cli.tools.file:StrReplaceFile',
|
||||
@@ -1599,7 +1599,7 @@ EOF
|
||||
});
|
||||
|
||||
test('phase-boundary negative control: Kimi path outside .planning/ stays silent (#2304)', () => {
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-phase-boundary.sh');
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-phase-boundary.sh');
|
||||
const input = JSON.stringify({
|
||||
tool_name: 'kimi_cli.tools.file:StrReplaceFile',
|
||||
tool_input: { path: 'src/index.ts', edit: { old: 'a', new: 'b' } }
|
||||
@@ -1634,7 +1634,7 @@ describe('hook security tests', { skip: isWindows ? 'bash hooks require unix she
|
||||
});
|
||||
|
||||
test('validate-commit blocks message with shell metacharacters', () => {
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-validate-commit.sh');
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-validate-commit.sh');
|
||||
const input = JSON.stringify({
|
||||
tool_input: { command: 'git commit -m "$(rm -rf /)"' }
|
||||
});
|
||||
@@ -1651,7 +1651,7 @@ describe('hook security tests', { skip: isWindows ? 'bash hooks require unix she
|
||||
});
|
||||
|
||||
test('validate-commit blocks message with backtick injection', () => {
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-validate-commit.sh');
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-validate-commit.sh');
|
||||
const input = JSON.stringify({
|
||||
tool_input: { command: 'git commit -m "`whoami`"' }
|
||||
});
|
||||
@@ -1668,7 +1668,7 @@ describe('hook security tests', { skip: isWindows ? 'bash hooks require unix she
|
||||
});
|
||||
|
||||
test('validate-commit allows commit with scope containing special chars', () => {
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-validate-commit.sh');
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-validate-commit.sh');
|
||||
const input = JSON.stringify({
|
||||
tool_input: { command: 'git commit -m "fix(api/v2): handle edge case"' }
|
||||
});
|
||||
@@ -1683,7 +1683,7 @@ describe('hook security tests', { skip: isWindows ? 'bash hooks require unix she
|
||||
});
|
||||
|
||||
test('phase-boundary handles malformed JSON input gracefully', () => {
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-phase-boundary.sh');
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-phase-boundary.sh');
|
||||
const input = 'not json at all';
|
||||
|
||||
const result = spawnHook(hookPath, {
|
||||
@@ -1702,7 +1702,7 @@ describe('hook security tests', { skip: isWindows ? 'bash hooks require unix she
|
||||
'{ broken json'
|
||||
);
|
||||
|
||||
const hookPath = path.join(HOOKS_DIR, 'gsd-validate-commit.sh');
|
||||
const hookPath = path.join(HOOKS_DIR, 'msd-validate-commit.sh');
|
||||
const input = JSON.stringify({
|
||||
tool_input: { command: 'git commit -m "WIP save"' }
|
||||
});
|
||||
@@ -1727,7 +1727,7 @@ describe('validate-commit: a large -m message is validated in bounded time (#449
|
||||
beforeEach(() => { tmpDir = createTempProject(); writeConfigWithHooks(tmpDir, true); });
|
||||
afterEach(() => { cleanup(tmpDir); });
|
||||
|
||||
const HOOK = path.join(HOOKS_DIR, 'gsd-validate-commit.sh');
|
||||
const HOOK = path.join(HOOKS_DIR, 'msd-validate-commit.sh');
|
||||
|
||||
// Local, not in tests/helpers/timeouts.cjs: that module is for shared norms
|
||||
// and says a call site with a differing bound keeps its own constant and
|
||||
|
||||
Reference in New Issue
Block a user