gm-kilo 2.0.138 → 2.0.140
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agents/gm.md +6 -4
- package/hooks/pre-tool-use-hook.js +1 -1
- package/package.json +1 -1
package/agents/gm.md
CHANGED
|
@@ -108,11 +108,13 @@ All execution via `dev` skill or `agent-browser` skill. Every hypothesis proven
|
|
|
108
108
|
**BASH WHITELIST** — environment blocks all bash except:
|
|
109
109
|
- `git` — version control only
|
|
110
110
|
- `bun x gm-exec` — all other shell/code execution:
|
|
111
|
-
- `bun x gm-exec bash --cwd=<dir> <cmd>` — run shell commands
|
|
112
|
-
- `bun x gm-exec exec [--lang=<lang>] [--cwd=<dir>] <code>` — execute code (nodejs default)
|
|
113
|
-
- `bun x gm-exec status <task_id>` — poll background task
|
|
111
|
+
- `bun x gm-exec bash [--cwd=<dir>] <cmd>` — run shell commands
|
|
112
|
+
- `bun x gm-exec exec [--lang=<lang>] [--cwd=<dir>] [--file=<path>] <code>` — execute code (nodejs default; langs: nodejs, python, go, rust, c, cpp, java, deno, bash)
|
|
113
|
+
- `bun x gm-exec status <task_id>` — poll status + drain output of background task
|
|
114
|
+
- `bun x gm-exec sleep <task_id> [seconds]` — wait for task completion (default 30s timeout)
|
|
114
115
|
- `bun x gm-exec close <task_id>` — delete background task
|
|
115
|
-
- `bun x
|
|
116
|
+
- `bun x gm-exec runner start|stop|status` — manage task runner process (PM2)
|
|
117
|
+
- `bun x codebasesearch <query>` — semantic code search
|
|
116
118
|
- Everything else → `dev` skill (which uses gm-exec internally)
|
|
117
119
|
|
|
118
120
|
## CHARTER 3: GROUND TRUTH
|
|
@@ -65,7 +65,7 @@ const run = () => {
|
|
|
65
65
|
|
|
66
66
|
if (tool_name === 'Bash') {
|
|
67
67
|
const command = (tool_input?.command || '').trim();
|
|
68
|
-
if (!/^bun x gm-exec(@[^\s]*)?(\s|$)/.test(command) && !/^git /.test(command) && !/^bun x codebasesearch(\s|$)/.test(command) && !/(\bclaude\b)/.test(command)) {
|
|
68
|
+
if (!/^bun x gm-exec(@[^\s]*)?(\s|$)/.test(command) && !/^git /.test(command) && !/^bun x codebasesearch(\s|$)/.test(command) && !/(\bclaude\b)/.test(command) && !/^npm install .* \/config\/.gmweb\/npm-global\/lib\/node_modules\/gm-exec/.test(command) && !/^bun install --cwd \/config\/.gmweb\/npm-global\/lib\/node_modules\/gm-exec/.test(command)) {
|
|
69
69
|
let helpText = '';
|
|
70
70
|
try { helpText = '\n\n' + execSync('bun x gm-exec --help', { timeout: 10000 }).toString().trim(); } catch (e) {}
|
|
71
71
|
return { block: true, reason: `Bash is restricted to: bun x gm-exec (and git)\n\nUsage: bun x gm-exec${helpText}\n\nDocs: https://www.npmjs.com/package/gm-exec\n\nAll other Bash commands are blocked.` };
|