gm-cc 2.0.328 → 2.0.331
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/.claude-plugin/marketplace.json +1 -1
- package/bin/plugkit +11 -0
- package/bin/plugkit-darwin-arm64 +0 -0
- package/bin/plugkit-darwin-x64 +0 -0
- package/bin/plugkit-linux-arm64 +0 -0
- package/bin/plugkit-linux-x64 +0 -0
- package/bin/plugkit-win32-arm64.exe +0 -0
- package/bin/plugkit-win32-x64.exe +0 -0
- package/bin/plugkit.exe +0 -0
- package/bin/plugkit.js +22 -0
- package/hooks/hooks.json +5 -10
- package/package.json +2 -1
- package/plugin.json +1 -1
- package/scripts/run-hook.sh +12 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"name": "AnEntrypoint"
|
|
5
5
|
},
|
|
6
6
|
"description": "State machine agent with hooks, skills, and automated git enforcement",
|
|
7
|
-
"version": "2.0.
|
|
7
|
+
"version": "2.0.331",
|
|
8
8
|
"metadata": {
|
|
9
9
|
"description": "State machine agent with hooks, skills, and automated git enforcement"
|
|
10
10
|
},
|
package/bin/plugkit
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/bin/plugkit.exe
ADDED
|
Binary file
|
package/bin/plugkit.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
const { spawnSync } = require('child_process');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const os = require('os');
|
|
6
|
+
|
|
7
|
+
const dir = __dirname;
|
|
8
|
+
const platform = os.platform();
|
|
9
|
+
const arch = os.arch();
|
|
10
|
+
|
|
11
|
+
let bin;
|
|
12
|
+
if (platform === 'win32') {
|
|
13
|
+
bin = path.join(dir, arch === 'arm64' ? 'plugkit-win32-arm64.exe' : 'plugkit-win32-x64.exe');
|
|
14
|
+
if (!require('fs').existsSync(bin)) bin = path.join(dir, 'plugkit.exe');
|
|
15
|
+
} else if (platform === 'darwin') {
|
|
16
|
+
bin = path.join(dir, arch === 'arm64' ? 'plugkit-darwin-arm64' : 'plugkit-darwin-x64');
|
|
17
|
+
} else {
|
|
18
|
+
bin = path.join(dir, arch === 'arm64' || arch === 'aarch64' ? 'plugkit-linux-arm64' : 'plugkit-linux-x64');
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const result = spawnSync(bin, process.argv.slice(2), { stdio: 'inherit' });
|
|
22
|
+
process.exit(result.status ?? 1);
|
package/hooks/hooks.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"hooks": [
|
|
8
8
|
{
|
|
9
9
|
"type": "command",
|
|
10
|
-
"command": "${CLAUDE_PLUGIN_ROOT}/bin/plugkit hook pre-tool-use",
|
|
10
|
+
"command": "node ${CLAUDE_PLUGIN_ROOT}/bin/plugkit.js hook pre-tool-use",
|
|
11
11
|
"timeout": 3600
|
|
12
12
|
}
|
|
13
13
|
]
|
|
@@ -19,12 +19,7 @@
|
|
|
19
19
|
"hooks": [
|
|
20
20
|
{
|
|
21
21
|
"type": "command",
|
|
22
|
-
"command": "
|
|
23
|
-
"timeout": 60000
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"type": "command",
|
|
27
|
-
"command": "${CLAUDE_PLUGIN_ROOT}/bin/plugkit hook session-start",
|
|
22
|
+
"command": "node ${CLAUDE_PLUGIN_ROOT}/bin/plugkit.js hook session-start",
|
|
28
23
|
"timeout": 180000
|
|
29
24
|
}
|
|
30
25
|
]
|
|
@@ -36,7 +31,7 @@
|
|
|
36
31
|
"hooks": [
|
|
37
32
|
{
|
|
38
33
|
"type": "command",
|
|
39
|
-
"command": "${CLAUDE_PLUGIN_ROOT}/bin/plugkit hook prompt-submit",
|
|
34
|
+
"command": "node ${CLAUDE_PLUGIN_ROOT}/bin/plugkit.js hook prompt-submit",
|
|
40
35
|
"timeout": 60000
|
|
41
36
|
}
|
|
42
37
|
]
|
|
@@ -48,12 +43,12 @@
|
|
|
48
43
|
"hooks": [
|
|
49
44
|
{
|
|
50
45
|
"type": "command",
|
|
51
|
-
"command": "${CLAUDE_PLUGIN_ROOT}/bin/plugkit hook stop",
|
|
46
|
+
"command": "node ${CLAUDE_PLUGIN_ROOT}/bin/plugkit.js hook stop",
|
|
52
47
|
"timeout": 300000
|
|
53
48
|
},
|
|
54
49
|
{
|
|
55
50
|
"type": "command",
|
|
56
|
-
"command": "${CLAUDE_PLUGIN_ROOT}/bin/plugkit hook stop-git",
|
|
51
|
+
"command": "node ${CLAUDE_PLUGIN_ROOT}/bin/plugkit.js hook stop-git",
|
|
57
52
|
"timeout": 60000
|
|
58
53
|
}
|
|
59
54
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-cc",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.331",
|
|
4
4
|
"description": "State machine agent with hooks, skills, and automated git enforcement",
|
|
5
5
|
"author": "AnEntrypoint",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
"agents/",
|
|
27
|
+
"bin/",
|
|
27
28
|
"hooks/",
|
|
28
29
|
"scripts/",
|
|
29
30
|
"skills/",
|
package/plugin.json
CHANGED
|
@@ -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"
|