gm-codex 2.0.26 → 2.0.28
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/hooks/pre-tool-use-hook.js +0 -5
- package/package.json +1 -1
- package/plugin.json +1 -1
|
@@ -5,7 +5,6 @@ const path = require('path');
|
|
|
5
5
|
|
|
6
6
|
const isGemini = process.env.GEMINI_PROJECT_DIR !== undefined;
|
|
7
7
|
|
|
8
|
-
const shellTools = ['Bash', 'run_shell_command'];
|
|
9
8
|
const writeTools = ['Write', 'write_file'];
|
|
10
9
|
const searchTools = ['Glob', 'Grep', 'glob', 'search_file_content', 'Search', 'search'];
|
|
11
10
|
const forbiddenTools = ['find', 'Find'];
|
|
@@ -22,10 +21,6 @@ const run = () => {
|
|
|
22
21
|
return { block: true, reason: 'Use gm:code-search or plugin:gm:dev for semantic codebase search instead of filesystem find' };
|
|
23
22
|
}
|
|
24
23
|
|
|
25
|
-
if (shellTools.includes(tool_name)) {
|
|
26
|
-
return { block: true, reason: 'Use dev execute instead for all command execution' };
|
|
27
|
-
}
|
|
28
|
-
|
|
29
24
|
if (writeTools.includes(tool_name)) {
|
|
30
25
|
const file_path = tool_input?.file_path || '';
|
|
31
26
|
const ext = path.extname(file_path);
|
package/package.json
CHANGED