gm-cc 2.0.60 → 2.0.62
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/README.md +3 -32
- package/hooks/pre-tool-use-hook.js +2 -2
- package/package.json +1 -1
- package/plugin.json +1 -1
|
@@ -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.62",
|
|
8
8
|
"metadata": {
|
|
9
9
|
"description": "State machine agent with hooks, skills, and automated git enforcement"
|
|
10
10
|
},
|
package/README.md
CHANGED
|
@@ -22,8 +22,7 @@ This installation method is best for:
|
|
|
22
22
|
For development or project-specific customization, install gm-cc directly into your project:
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
|
-
|
|
26
|
-
npm install gm-cc && npx gm install
|
|
25
|
+
bun x gm-cc@latest
|
|
27
26
|
```
|
|
28
27
|
|
|
29
28
|
This installation method is ideal when you need to:
|
|
@@ -32,29 +31,9 @@ This installation method is ideal when you need to:
|
|
|
32
31
|
- Use the latest development version
|
|
33
32
|
- Configure platform-specific behavior per project
|
|
34
33
|
|
|
35
|
-
#### Installation Command Breakdown
|
|
36
|
-
|
|
37
|
-
The `npm install gm-cc && npx gm install` command performs two steps:
|
|
38
|
-
|
|
39
|
-
1. **`npm install gm-cc`** - Downloads the gm-cc package and stores it in your project's `node_modules/` directory
|
|
40
|
-
2. **`npx gm install`** - Runs the gm installer that copies configuration files into your Claude Code plugin directory
|
|
41
|
-
|
|
42
|
-
**Expected output:**
|
|
43
|
-
```
|
|
44
|
-
$ npm install gm-cc
|
|
45
|
-
added 1 package in 1.2s
|
|
46
|
-
|
|
47
|
-
$ npx gm install
|
|
48
|
-
Installing gm-cc...
|
|
49
|
-
✓ Created .claude/ directory
|
|
50
|
-
✓ Copied agents/gm.md
|
|
51
|
-
✓ Copied hooks to .claude/hooks/
|
|
52
|
-
✓ Created .mcp.json for MCP integration
|
|
53
|
-
```
|
|
54
|
-
|
|
55
34
|
#### Installed File Structure (Project-Specific)
|
|
56
35
|
|
|
57
|
-
After running `
|
|
36
|
+
After running `bun x gm-cc@latest`, your project will have:
|
|
58
37
|
|
|
59
38
|
```
|
|
60
39
|
.claude/
|
|
@@ -151,16 +130,8 @@ npm install -g gm-cc@latest
|
|
|
151
130
|
### Project-Specific Installation
|
|
152
131
|
|
|
153
132
|
```bash
|
|
154
|
-
# Update the package
|
|
155
|
-
npm update gm-cc
|
|
156
|
-
|
|
157
133
|
# Re-run the installer to update .claude/ directory
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
# Or manually copy updated files
|
|
161
|
-
cp -r node_modules/gm-cc/agents/* .claude/agents/
|
|
162
|
-
cp -r node_modules/gm-cc/hooks/* .claude/hooks/
|
|
163
|
-
cp node_modules/gm-cc/.mcp.json .claude/.mcp.json
|
|
134
|
+
bun x gm-cc@latest
|
|
164
135
|
```
|
|
165
136
|
|
|
166
137
|
## Features
|
|
@@ -57,9 +57,9 @@ const run = () => {
|
|
|
57
57
|
|
|
58
58
|
if (tool_name === 'Bash') {
|
|
59
59
|
const command = (tool_input?.command || '').trim();
|
|
60
|
-
const allowed = /^(git |gh |npm |npx |bun |node |python |python3 |ruby |go |deno |tsx |ts-node |docker |sudo systemctl|systemctl )/.test(command);
|
|
60
|
+
const allowed = /^(git |gh |npm |npx |bun |node |python |python3 |ruby |go |deno |tsx |ts-node |docker |sudo systemctl|systemctl |pm2 )/.test(command);
|
|
61
61
|
if (!allowed) {
|
|
62
|
-
return { block: true, reason: 'Bash only allows: git, node, python, bun, npx, ruby, go, deno, docker, npm, systemctl. Write all logic as code and execute it via Bash (e.g. node -e "...", python -c "...", bun -e "..."). Use Read/Write/Edit for file ops. Use code-search skill for exploration.' };
|
|
62
|
+
return { block: true, reason: 'Bash only allows: git, node, python, bun, npx, ruby, go, deno, docker, npm, systemctl, pm2. Write all logic as code and execute it via Bash (e.g. node -e "...", python -c "...", bun -e "..."). Use Read/Write/Edit for file ops. Use code-search skill for exploration.' };
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
package/package.json
CHANGED