gm-copilot-cli 2.0.130 → 2.0.132

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/agents/gm.md CHANGED
@@ -105,12 +105,14 @@ All execution via `dev` skill or `agent-browser` skill. Every hypothesis proven
105
105
 
106
106
  **CODESEARCH EFFICIENCY TIP**: Multiple semantic queries cost <$0.01 total and take <1 second each. Use `code-search` skill liberally — it's designed for this. Try:"What does this function do?" → "Where is error handling implemented?" → "Show database connection setup" → each returns ranked file locations.
107
107
 
108
- **BASH WHITELIST** (only acceptable bash uses):
109
- - `git` commands (status, add, commit, push, pull, log, diff)
110
- - `npm publish`, `npm pack`, `npm install -g`
111
- - `docker` commands
112
- - Starting/stopping system services
113
- - Everything else `dev` skill
108
+ **BASH WHITELIST** environment blocks all bash except:
109
+ - `git` version control only
110
+ - `bun x gm-exec` all other shell/code execution:
111
+ - `bun x gm-exec bash --cwd=<dir> <cmd>` — run shell commands
112
+ - `bun x gm-exec exec [--lang=<lang>] [--cwd=<dir>] <code>` — execute code (nodejs default)
113
+ - `bun x gm-exec status <task_id>` — poll background task
114
+ - `bun x gm-exec close <task_id>` — delete background task
115
+ - Everything else → `dev` skill (which uses gm-exec internally)
114
116
 
115
117
  ## CHARTER 3: GROUND TRUTH
116
118
 
@@ -278,7 +280,7 @@ TOOL_INVARIANTS = {
278
280
  overview: `code-search` skill,
279
281
  process_lifecycle: `process-management` skill (PM2 mandatory for all servers/workers/daemons),
280
282
  planning: `planning` skill (mandatory in PLAN phase before any execution),
281
- bash: ONLY git/npm-publish/docker/system-services,
283
+ bash: ONLY git (version control) or `bun x gm-exec` (all other execution),
282
284
  no_direct_tool_abuse: true
283
285
  }
284
286
  ```
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: gm
3
- version: 2.0.130
3
+ version: 2.0.132
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
package/manifest.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  name: gm
2
- version: 2.0.130
2
+ version: 2.0.132
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.130",
3
+ "version": "2.0.132",
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.130",
3
+ "version": "2.0.132",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "tools": [
6
6
  {
@@ -1,48 +0,0 @@
1
- ---
2
- name: dev
3
- description: Execute code and shell commands. Use for all code execution, file operations, running scripts, testing hypotheses, and any task that requires running code. Replaces plugin:gm:dev and mcp-glootie.
4
- allowed-tools: Bash
5
- ---
6
-
7
- # Code Execution with dev
8
-
9
- Execute code directly using the Bash tool. No wrapper, no persistent files, no cleanup needed beyond what the code itself creates.
10
-
11
- ## Run code inline
12
-
13
- ```bash
14
- # JavaScript / TypeScript
15
- bun -e "const fs = require('fs'); console.log(fs.readdirSync('.'))"
16
- bun -e "import { readFileSync } from 'fs'; console.log(readFileSync('package.json', 'utf-8'))"
17
-
18
- # Run a file
19
- bun run script.ts
20
- node script.js
21
-
22
- # Python
23
- python -c "import json; print(json.dumps({'ok': True}))"
24
-
25
- # Shell
26
- bash -c "ls -la && cat package.json"
27
- ```
28
-
29
- ## File operations (inline, no temp files)
30
-
31
- ```bash
32
- # Read
33
- bun -e "console.log(require('fs').readFileSync('path/to/file', 'utf-8'))"
34
-
35
- # Write
36
- bun -e "require('fs').writeFileSync('out.json', JSON.stringify({x:1}, null, 2))"
37
-
38
- # Stat / exists
39
- bun -e "const fs=require('fs'); console.log(fs.existsSync('file.txt'), fs.statSync?.('.')?.size)"
40
- ```
41
-
42
- ## Rules
43
-
44
- - Each run under 15 seconds
45
- - Pack every related hypothesis into one run — never one idea per run
46
- - No persistent temp files; if a temp file is needed, delete it in the same command
47
- - No spawn/exec/fork inside executed code
48
- - Use `bun` over `node` when available