gm-gc 2.0.57 → 2.0.59
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 -6
- package/gemini-extension.json +1 -1
- package/hooks/pre-tool-use-hook.js +2 -2
- package/package.json +1 -1
package/agents/gm.md
CHANGED
|
@@ -90,12 +90,12 @@ All execution via Bash tool or `agent-browser` skill. Every hypothesis proven by
|
|
|
90
90
|
|
|
91
91
|
**CODESEARCH EFFICIENCY TIP**: Multiple semantic queries cost <$0.01 total and take <1 second each. Use `code-search` skill liberally — it's designed for this. Try:"What does this function do?" → "Where is error handling implemented?" → "Show database connection setup" → each returns ranked file locations.
|
|
92
92
|
|
|
93
|
-
**BASH WHITELIST** (
|
|
94
|
-
- `
|
|
95
|
-
-
|
|
96
|
-
- `
|
|
97
|
-
-
|
|
98
|
-
- Everything else
|
|
93
|
+
**BASH WHITELIST** — Bash allows ONLY these prefixes (hook enforces this):
|
|
94
|
+
- Code interpreters: `node`, `python`, `python3`, `bun`, `npx`, `ruby`, `go`, `deno`, `tsx`, `ts-node`
|
|
95
|
+
- Package/version tools: `npm`, `npx`
|
|
96
|
+
- VCS: `git`, `gh`
|
|
97
|
+
- Containers/services: `docker`, `systemctl`, `sudo systemctl`
|
|
98
|
+
- **Everything else is blocked.** Do NOT use shell builtins (ls, cat, grep, find, echo, cp, mv, rm, sed, awk). Instead: write logic as inline code and run it — `node -e "..."`, `python -c "..."`, `bun -e "..."`. Use Read/Write/Edit for file ops. Use code-search skill for exploration.
|
|
99
99
|
|
|
100
100
|
**CODE EXECUTION PATTERNS** (use Bash tool):
|
|
101
101
|
|
package/gemini-extension.json
CHANGED
|
@@ -57,9 +57,9 @@ const run = () => {
|
|
|
57
57
|
|
|
58
58
|
if (tool_name === 'Bash') {
|
|
59
59
|
const command = (tool_input?.command || '').trim();
|
|
60
|
-
const allowed = /^(git |gh |npm
|
|
60
|
+
const allowed = /^(git |gh |npm |npx |bun |node |python |python3 |ruby |go |deno |tsx |ts-node |docker |sudo systemctl|systemctl )/.test(command);
|
|
61
61
|
if (!allowed) {
|
|
62
|
-
return { block: true, reason: 'Bash
|
|
62
|
+
return { block: true, reason: 'Bash only allows: git, node, python, bun, npx, ruby, go, deno, docker, npm, systemctl. Write all logic as code and execute it via Bash (e.g. node -e "...", python -c "...", bun -e "..."). Use Read/Write/Edit for file ops. Use code-search skill for exploration.' };
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|