From 566c281b56923dc1aa1ed91aa50f6692b38a4d97 Mon Sep 17 00:00:00 2001 From: Kjell Tore Guttormsen Date: Sat, 18 Jul 2026 09:24:45 +0200 Subject: [PATCH] chore(llm-security): remove leftover debug probe from tests/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit probe-rm.mjs was self-labelled "Temporary probe — delete after debugging". It is not a test (no node:test harness, no assertions — it prints exit codes), it ran against a hardcoded absolute path into the INSTALLED marketplace copy rather than this repo, and it exercised the rm-block cases that are now covered properly by tests/hooks/pre-bash-destructive.test.mjs. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01TcQyMTQfyrsAapaCMPxTtQ --- tests/hooks/probe-rm.mjs | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 tests/hooks/probe-rm.mjs diff --git a/tests/hooks/probe-rm.mjs b/tests/hooks/probe-rm.mjs deleted file mode 100644 index 291b6c0..0000000 --- a/tests/hooks/probe-rm.mjs +++ /dev/null @@ -1,20 +0,0 @@ -// Temporary probe — delete after debugging -import { execFile } from 'node:child_process'; -const SCRIPT = '/Users/ktg/.claude/plugins/marketplaces/plugin-marketplace/plugins/llm-security/hooks/scripts/pre-bash-destructive.mjs'; -async function test(cmd) { - return new Promise(resolve => { - const child = execFile('node', [SCRIPT], {timeout:5000}, (err, stdout, stderr) => { - resolve({ code: child.exitCode, cmd, line: (stderr || '').split('\n')[0] }); - }); - child.stdin.end(JSON.stringify({ tool_name: 'Bash', tool_input: { command: cmd } })); - }); -} -const cmds = [ - 'rm -f -r /home', - 'rm -rf /etc', - 'rm --force -r $HOME', -]; -for (const c of cmds) { - const r = await test(c); - console.log('exit=' + r.code, JSON.stringify(c), r.line); -}