gm-gc 2.0.1065 → 2.0.1067
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/cli.js +1 -1
- package/gemini-extension.json +8 -2
- package/install.js +0 -2
- package/package.json +4 -2
- package/hooks/hooks.json +0 -58
- package/hooks/hooks.spec.json +0 -52
package/cli.js
CHANGED
|
@@ -14,7 +14,7 @@ console.log(isUpgrade ? 'Upgrading gm-gc...' : 'Installing gm-gc...');
|
|
|
14
14
|
try {
|
|
15
15
|
fs.mkdirSync(destDir, { recursive: true });
|
|
16
16
|
|
|
17
|
-
const filesToCopy = [["agents","agents"],["hooks","hooks"],["skills","skills"],["scripts","scripts"],["bin","bin"],[".mcp.json",".mcp.json"],["gemini-extension.json","gemini-extension.json"],["README.md","README.md"],["GEMINI.md","GEMINI.md"],["AGENTS.md","AGENTS.md"],["prompts","prompts"]];
|
|
17
|
+
const filesToCopy = [["agents","agents"],["hooks","hooks"],["skills","skills"],["scripts","scripts"],["bin","bin"],["lang","lang"],[".mcp.json",".mcp.json"],["gemini-extension.json","gemini-extension.json"],["README.md","README.md"],["GEMINI.md","GEMINI.md"],["AGENTS.md","AGENTS.md"],["prompts","prompts"],["LICENSE","LICENSE"]];
|
|
18
18
|
|
|
19
19
|
function copyRecursive(src, dst) {
|
|
20
20
|
if (!fs.existsSync(src)) return;
|
package/gemini-extension.json
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1067",
|
|
4
4
|
"description": "State machine agent with hooks, skills, and automated git enforcement",
|
|
5
|
-
"author":
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "AnEntrypoint",
|
|
7
|
+
"url": "https://github.com/AnEntrypoint"
|
|
8
|
+
},
|
|
6
9
|
"homepage": "https://github.com/AnEntrypoint/gm",
|
|
10
|
+
"hooks": "./hooks/hooks.json",
|
|
11
|
+
"skills": "./skills",
|
|
12
|
+
"mcpServers": {},
|
|
7
13
|
"contextFileName": "GEMINI.md"
|
|
8
14
|
}
|
package/install.js
CHANGED
|
@@ -44,8 +44,6 @@ function safeCopyDirectory(src, dst) {
|
|
|
44
44
|
process.stderr.write(`[gm-gc-install] destination: ${geminiDir}\n`);
|
|
45
45
|
const agentsOk = safeCopyDirectory(path.join(sourceDir, 'agents'), path.join(geminiDir, 'agents'));
|
|
46
46
|
process.stderr.write(`[gm-gc-install] agents: ${agentsOk ? 'ok' : 'failed'}\n`);
|
|
47
|
-
const hooksOk = safeCopyDirectory(path.join(sourceDir, 'hooks'), path.join(geminiDir, 'hooks'));
|
|
48
|
-
process.stderr.write(`[gm-gc-install] hooks: ${hooksOk ? 'ok' : 'failed'}\n`);
|
|
49
47
|
const skillsOk = safeCopyDirectory(path.join(sourceDir, 'skills'), path.join(geminiDir, 'skills'));
|
|
50
48
|
process.stderr.write(`[gm-gc-install] skills: ${skillsOk ? 'ok' : 'failed'}\n`);
|
|
51
49
|
const scriptsOk = safeCopyDirectory(path.join(sourceDir, 'scripts'), path.join(geminiDir, 'scripts'));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-gc",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1067",
|
|
4
4
|
"description": "State machine agent with hooks, skills, and automated git enforcement",
|
|
5
5
|
"author": "AnEntrypoint",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,11 +29,13 @@
|
|
|
29
29
|
"scripts/",
|
|
30
30
|
"skills/",
|
|
31
31
|
"prompts/",
|
|
32
|
+
"lang/",
|
|
32
33
|
".github/",
|
|
33
34
|
"README.md",
|
|
34
35
|
"GEMINI.md",
|
|
35
36
|
".mcp.json",
|
|
36
37
|
"gemini-extension.json",
|
|
37
|
-
"cli.js"
|
|
38
|
+
"cli.js",
|
|
39
|
+
"install.js"
|
|
38
40
|
]
|
|
39
41
|
}
|
package/hooks/hooks.json
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"description": "Hooks for gm Gemini CLI extension",
|
|
3
|
-
"hooks": {
|
|
4
|
-
"BeforeTool": [
|
|
5
|
-
{
|
|
6
|
-
"matcher": "*",
|
|
7
|
-
"hooks": [
|
|
8
|
-
{
|
|
9
|
-
"type": "command",
|
|
10
|
-
"command": "node ${extensionPath}/bin/plugkit.js hook pre-tool-use",
|
|
11
|
-
"timeout": 3600
|
|
12
|
-
}
|
|
13
|
-
]
|
|
14
|
-
}
|
|
15
|
-
],
|
|
16
|
-
"SessionStart": [
|
|
17
|
-
{
|
|
18
|
-
"matcher": "*",
|
|
19
|
-
"hooks": [
|
|
20
|
-
{
|
|
21
|
-
"type": "command",
|
|
22
|
-
"command": "node ${extensionPath}/bin/plugkit.js hook session-start",
|
|
23
|
-
"timeout": 180000
|
|
24
|
-
}
|
|
25
|
-
]
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
|
-
"BeforeAgent": [
|
|
29
|
-
{
|
|
30
|
-
"matcher": "*",
|
|
31
|
-
"hooks": [
|
|
32
|
-
{
|
|
33
|
-
"type": "command",
|
|
34
|
-
"command": "node ${extensionPath}/bin/plugkit.js hook prompt-submit",
|
|
35
|
-
"timeout": 60000
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
}
|
|
39
|
-
],
|
|
40
|
-
"SessionEnd": [
|
|
41
|
-
{
|
|
42
|
-
"matcher": "*",
|
|
43
|
-
"hooks": [
|
|
44
|
-
{
|
|
45
|
-
"type": "command",
|
|
46
|
-
"command": "node ${extensionPath}/bin/plugkit.js hook stop",
|
|
47
|
-
"timeout": 300000
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"type": "command",
|
|
51
|
-
"command": "node ${extensionPath}/bin/plugkit.js hook stop-git",
|
|
52
|
-
"timeout": 60000
|
|
53
|
-
}
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
}
|
package/hooks/hooks.spec.json
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": 1,
|
|
3
|
-
"description": "Hook spec for gm Gemini CLI extension",
|
|
4
|
-
"envVar": "extensionPath",
|
|
5
|
-
"events": [
|
|
6
|
-
{
|
|
7
|
-
"eventKey": "BeforeTool",
|
|
8
|
-
"commands": [
|
|
9
|
-
{
|
|
10
|
-
"kind": "plugkit",
|
|
11
|
-
"subcommand": "pre-tool-use",
|
|
12
|
-
"timeout": 3600
|
|
13
|
-
}
|
|
14
|
-
]
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"eventKey": "SessionStart",
|
|
18
|
-
"commands": [
|
|
19
|
-
{
|
|
20
|
-
"kind": "plugkit",
|
|
21
|
-
"subcommand": "session-start",
|
|
22
|
-
"timeout": 180000
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"eventKey": "BeforeAgent",
|
|
28
|
-
"commands": [
|
|
29
|
-
{
|
|
30
|
-
"kind": "plugkit",
|
|
31
|
-
"subcommand": "prompt-submit",
|
|
32
|
-
"timeout": 60000
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"eventKey": "SessionEnd",
|
|
38
|
-
"commands": [
|
|
39
|
-
{
|
|
40
|
-
"kind": "plugkit",
|
|
41
|
-
"subcommand": "stop",
|
|
42
|
-
"timeout": 300000
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"kind": "plugkit",
|
|
46
|
-
"subcommand": "stop-git",
|
|
47
|
-
"timeout": 60000
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
]
|
|
52
|
-
}
|