gm-copilot-cli 2.0.108 → 2.0.110

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/.mcp.json CHANGED
@@ -1,3 +1,4 @@
1
1
  {
2
- "$schema": "https://schemas.modelcontextprotocol.io/0.1.0/mcp.json"
2
+ "$schema": "https://schemas.modelcontextprotocol.io/0.1.0/mcp.json",
3
+ "mcpServers": {}
3
4
  }
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: gm
3
- version: 2.0.108
3
+ version: 2.0.110
4
4
  description: State machine agent with hooks, skills, and automated git enforcement
5
5
  author: AnEntrypoint
6
6
  repository: https://github.com/AnEntrypoint/gm-copilot-cli
@@ -55,8 +55,18 @@ const run = () => {
55
55
  return { block: true, reason: 'Plan mode is disabled. Use GM agent planning (PLAN→EXECUTE→EMIT→VERIFY→COMPLETE state machine) via gm:gm subagent instead.' };
56
56
  }
57
57
 
58
+ if (tool_name === 'Skill') {
59
+ const skill = (tool_input?.skill || '').toLowerCase().replace(/^gm:/, '');
60
+ if (skill === 'explore' || skill === 'search') {
61
+ return { block: true, reason: 'Use the code-search skill for codebase exploration. Describe what you need in plain language — it understands intent, not just patterns.' };
62
+ }
63
+ }
64
+
58
65
  if (tool_name === 'Bash') {
59
66
  const command = (tool_input?.command || '').trim();
67
+ if (/\bcodebasesearch\b/.test(command) && !/^git /.test(command)) {
68
+ return { block: true, reason: 'Use the code-search skill instead of running codebasesearch directly via Bash. Invoke it as a skill with your natural language query.' };
69
+ }
60
70
  const allowed = /^(git |gh |npm |npx |bun |node |python |python3 |ruby |go |deno |tsx |ts-node |docker |sudo systemctl|systemctl |pm2 |cd |agent-browser )/.test(command);
61
71
  if (!allowed) {
62
72
  return { block: true, reason: 'Bash only allows: git, gh, node, python, bun, npx, ruby, go, deno, docker, npm, systemctl, pm2, cd. 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.' };
@@ -166,7 +166,7 @@ try {
166
166
  if (result.blockCount === 1) {
167
167
  console.log(JSON.stringify({
168
168
  decision: 'block',
169
- reason: `Git: ${result.reason} [First violation - blocks this session]`
169
+ reason: `Git: ${result.reason}`
170
170
  }, null, 2));
171
171
  process.exit(2);
172
172
  } else if (result.blockCount > 1) {
package/manifest.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  name: gm
2
- version: 2.0.108
2
+ version: 2.0.110
3
3
  description: State machine agent with hooks, skills, and automated git enforcement
4
4
  author: AnEntrypoint
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-copilot-cli",
3
- "version": "2.0.108",
3
+ "version": "2.0.110",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
package/tools.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.108",
3
+ "version": "2.0.110",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "tools": [
6
6
  {