gm-oc 2.0.328 → 2.0.329

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/hooks.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "hooks": [
8
8
  {
9
9
  "type": "command",
10
- "command": "${OC_PLUGIN_ROOT}/bin/plugkit hook pre-tool-use",
10
+ "command": "sh ${OC_PLUGIN_ROOT}/scripts/run-hook.sh pre-tool-use",
11
11
  "timeout": 3600
12
12
  }
13
13
  ]
@@ -24,7 +24,7 @@
24
24
  },
25
25
  {
26
26
  "type": "command",
27
- "command": "${OC_PLUGIN_ROOT}/bin/plugkit hook session-start",
27
+ "command": "sh ${OC_PLUGIN_ROOT}/scripts/run-hook.sh session-start",
28
28
  "timeout": 180000
29
29
  }
30
30
  ]
@@ -36,7 +36,7 @@
36
36
  "hooks": [
37
37
  {
38
38
  "type": "command",
39
- "command": "${OC_PLUGIN_ROOT}/bin/plugkit hook prompt-submit",
39
+ "command": "sh ${OC_PLUGIN_ROOT}/scripts/run-hook.sh prompt-submit",
40
40
  "timeout": 60000
41
41
  }
42
42
  ]
@@ -48,12 +48,12 @@
48
48
  "hooks": [
49
49
  {
50
50
  "type": "command",
51
- "command": "${OC_PLUGIN_ROOT}/bin/plugkit hook stop",
51
+ "command": "sh ${OC_PLUGIN_ROOT}/scripts/run-hook.sh stop",
52
52
  "timeout": 300000
53
53
  },
54
54
  {
55
55
  "type": "command",
56
- "command": "${OC_PLUGIN_ROOT}/bin/plugkit hook stop-git",
56
+ "command": "sh ${OC_PLUGIN_ROOT}/scripts/run-hook.sh stop-git",
57
57
  "timeout": 60000
58
58
  }
59
59
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-oc",
3
- "version": "2.0.328",
3
+ "version": "2.0.329",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
@@ -0,0 +1,12 @@
1
+ #!/bin/sh
2
+ PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT}}"
3
+ [ -z "$PLUGIN_ROOT" ] && exit 0
4
+ PLUGKIT="$PLUGIN_ROOT/bin/plugkit"
5
+ [ -f "$PLUGIN_ROOT/bin/plugkit.exe" ] && PLUGKIT="$PLUGIN_ROOT/bin/plugkit.exe"
6
+ if [ ! -f "$PLUGKIT" ]; then
7
+ sh "$PLUGIN_ROOT/scripts/bootstrap.sh"
8
+ PLUGKIT="$PLUGIN_ROOT/bin/plugkit"
9
+ [ -f "$PLUGIN_ROOT/bin/plugkit.exe" ] && PLUGKIT="$PLUGIN_ROOT/bin/plugkit.exe"
10
+ fi
11
+ [ ! -f "$PLUGKIT" ] && exit 0
12
+ "$PLUGKIT" hook "$1"