gm-kilo 2.0.910 → 2.0.912

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/gm-kilo.mjs CHANGED
@@ -199,7 +199,7 @@ export async function GmPlugin({ directory }) {
199
199
  throw new Error('Cannot create test/doc files. Use .prd for task notes, AGENTS.md for permanent notes.');
200
200
  }
201
201
  }
202
- if (input.tool !== 'bash' && input.tool !== 'Bash' && input.tool !== 'shell' && input.tool !== 'Shell') return;
202
+ if (input.tool !== 'bash' && input.tool !== 'Bash' && input.tool !== 'shell' && input.tool !== 'Shell' && input.tool !== 'spawn/exec') return;
203
203
  const cmd = (output.args && output.args.command) || '';
204
204
  if (!cmd) return;
205
205
  if (/^\s*git(?:\s|$)/.test(cmd)) return;
package/hooks/hooks.json CHANGED
@@ -1,6 +1,18 @@
1
1
  {
2
2
  "description": "Hooks for gm Kilo CLI extension",
3
3
  "hooks": {
4
+ "tool.execute.before": [
5
+ {
6
+ "matcher": "*",
7
+ "hooks": [
8
+ {
9
+ "type": "command",
10
+ "command": "node ${KILO_PLUGIN_ROOT}/bin/plugkit.js hook pre-tool-use",
11
+ "timeout": 3600
12
+ }
13
+ ]
14
+ }
15
+ ],
4
16
  "message.updated": [
5
17
  {
6
18
  "matcher": "*",
@@ -4,6 +4,16 @@
4
4
  "envVar": "KILO_PLUGIN_ROOT",
5
5
  "plugkitInvoker": "node",
6
6
  "events": [
7
+ {
8
+ "eventKey": "tool.execute.before",
9
+ "commands": [
10
+ {
11
+ "kind": "plugkit",
12
+ "subcommand": "pre-tool-use",
13
+ "timeout": 3600
14
+ }
15
+ ]
16
+ },
7
17
  {
8
18
  "eventKey": "message.updated",
9
19
  "commands": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-kilo",
3
- "version": "2.0.910",
3
+ "version": "2.0.912",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",