@grum-os/cli 0.3.66 → 0.3.68

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.
Files changed (4) hide show
  1. package/README.md +12 -10
  2. package/content.md5 +1 -1
  3. package/grum.mjs +420 -410
  4. package/package.json +2 -2
package/README.md CHANGED
@@ -66,7 +66,7 @@ Use `codex`, `claude` (Claude Code) or `generic` instead of `cursor` for those a
66
66
 
67
67
  Rerunning setup refreshes existing integration files while preserving your own hooks and settings. The agent finishes verification with `grum_doctor` through MCP, which confirms the connection in that chat. If a shell check cannot verify the tools, it asks the agent to discover and call the tool before sending you to settings. Codex is ready when its MCP connection is confirmed and a hook has successfully run. Changed hook commands require review in Codex; new Grum releases using the same commands keep their existing trust.
68
68
 
69
- Grum's files for each agent (`.cursor/rules/grum.mdc` and the Grum blocks in `AGENTS.md` and `CLAUDE.md`) are short and rarely change. The detailed rules arrive as `guidance` in every `grum_contract` and `grum_check` result, and in `grum contract`, so a new Grum release does not need to edit them. When one of these files is from an older version, Grum updates it only after a successful `grum_contract` or `grum_check` call in MCP, and only when you already have other uncommitted work in the repository. Opening your editor, connecting Grum and hooks never write it, so a clean repository stays clean. Grum never stages the change; the tool result names the files it updated. A file that is staged, has your own edits, is a link or is not tracked is left alone, and the first result that skips it says so once. `grum doctor` lists every file it would skip. Run setup to update one yourself.
69
+ Grum's files for each agent (`.cursor/rules/grum.mdc`, and `.grum/AGENTS.md`, which the short Grum blocks in `AGENTS.md` and `CLAUDE.md` point at) are short and rarely change. The detailed rules arrive as `guidance` in every `grum_contract` and `grum_check` result, and in `grum contract`, so a new Grum release does not need to edit them. When one of these files is from an older version, Grum updates it only after a successful `grum_contract` or `grum_check` call in MCP, and only when you already have other uncommitted work in the repository. Opening your editor, connecting Grum and hooks never write it, so a clean repository stays clean. Grum never stages the change; the tool result names the files it updated. A file that is staged, has your own edits, is a link or is not tracked is left alone, and the first result that skips it says so once. `grum doctor` lists every file it would skip. Run setup to update one yourself.
70
70
 
71
71
  Agent setup asks where your app runs locally. Repository URLs and `index.html` are suggestions; the agent must ask before selecting one. An older saved address is confirmed once. A local HTTP page must return 200; redirects, 404, access denial, connection refusal and timeouts keep setup incomplete. After a successful probe, the agent opens the page in its visible browser (Codex uses its browser panel), checks rendering, and reports any problems. Setup returns `preview-local-app` until the agent acknowledges the shown URL with `localPreviewed` in `grum_setup`, or `--local-previewed <url>` in the CLI. If browser control is unavailable, the agent asks you to open the URL and confirm it renders. A new address requires a new preview. An explicitly chosen static HTML file also needs preview; file existence does not prove rendering. Choose `none` only if you want to skip the local app.
72
72
 
@@ -117,11 +117,12 @@ Codex keeps project configuration and hooks under your control. Grum will not ap
117
117
 
118
118
  Without step 2 the tools still work and the agent still follows the guidance, but nothing checks when Codex stops and `git commit` and `git push` are not refused. Until Grum observes a successful hook run, it reports that hook status is unconfirmed.
119
119
 
120
- | File | What it does |
121
- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
122
- | `.codex/config.toml` | Adds the same eight tools. Only Grum's own block is written; the rest of the file is left as it is, and a file that is not valid TOML stops setup. |
123
- | `.codex/hooks.json` | Three hooks beside any of yours: after an edit, before a shell command, and at stop. They behave as Cursor's do, including [blocking](#fail-the-check). |
124
- | `AGENTS.md` | A marked block that tells the agent to read the contract, check before it stops, and ask before keeping an off-contract style. |
120
+ | File | What it does |
121
+ | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
122
+ | `.codex/config.toml` | Adds the same eight tools. Only Grum's own block is written; the rest of the file is left as it is, and a file that is not valid TOML stops setup. |
123
+ | `.codex/hooks.json` | Three hooks beside any of yours: after an edit, before a shell command, and at stop. They behave as Cursor's do, including [blocking](#fail-the-check). |
124
+ | `AGENTS.md` | A short marked block that tells the agent to read `.grum/AGENTS.md`. |
125
+ | `.grum/AGENTS.md` | Grum's agent instructions: read the contract, check before it stops, and ask before keeping an off-contract style. Commit it; Grum rewrites it on upgrade. |
125
126
 
126
127
  `grum init codex --remove` takes out exactly these. A repository set up for more than one agent keeps the `.gitignore` line and the pre-commit check until the last one is removed.
127
128
 
@@ -135,7 +136,8 @@ Claude Code runs a project's tools and hooks only in a folder you trust, so one
135
136
  | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
136
137
  | `.mcp.json` | Adds the same eight tools. Other servers in the file are left as they are. |
137
138
  | `.claude/settings.json` | Three hooks beside any of yours: after an edit, before a shell command, and at stop. They behave as Cursor's do, including [blocking](#fail-the-check). Also approves the **grum** server. |
138
- | `CLAUDE.md` | A marked block that tells the agent to read the contract, check before it stops, and ask before keeping an off-contract style. |
139
+ | `CLAUDE.md` | A short marked block that imports `.grum/AGENTS.md` (`@.grum/AGENTS.md`), so Claude Code loads Grum's instructions with your own. |
140
+ | `.grum/AGENTS.md` | Grum's agent instructions, shared with Codex. Commit it; Grum rewrites it on upgrade. |
139
141
 
140
142
  `grum init claude --remove` takes out exactly these; the rest of each file stays.
141
143
 
@@ -237,7 +239,7 @@ The same rule can live in `.grum/config.json`:
237
239
 
238
240
  `block` does not fail a check that is still waiting on review. Use `--strict` for that.
239
241
 
240
- Grum adds `.grum/` to `.gitignore` the first time it writes there, so `config.json` stays on this computer. To commit just that file, ignore the directory's contents and keep it: `.grum/*`, then `!.grum/config.json`.
242
+ Grum adds `.grum/*` and `!.grum/AGENTS.md` to `.gitignore` the first time it writes there, so everything in `.grum/` stays on this computer except the agent instructions your team shares. To commit `config.json` too, add `!.grum/config.json`.
241
243
 
242
244
  ## Continuous integration
243
245
 
@@ -281,8 +283,8 @@ The menu covers check, setup, and sign-in. These are the same actions as flags,
281
283
  | `grum wins [<number>]` | Pick recommendations and send them to your agent, or print one's prompt. See [Recommendations](#recommendations). |
282
284
  | `grum feedback "<what happened>" [--kind <kind>]` | Tell the Grum team about a question, confusion or problem. `<kind>` is `question`, `confused`, `problem` or `idea`. If Grum can't be reached it waits and goes with the next send. |
283
285
  | `grum init cursor [--remove] [--force] [--local-only] [--pre-commit]` | Write or remove the Cursor files without the menu. `--pre-commit` adds the commit check. `--no-pre-commit` removes it. |
284
- | `grum init codex [--remove] [--force] [--local-only] [--pre-commit]` | The same for Codex: `.codex/config.toml`, `.codex/hooks.json` and the `AGENTS.md` block. |
285
- | `grum init claude [--remove] [--force] [--local-only] [--pre-commit]` | The same for Claude Code: `.mcp.json`, `.claude/settings.json` and the `CLAUDE.md` block. |
286
+ | `grum init codex [--remove] [--force] [--local-only] [--pre-commit]` | The same for Codex: `.codex/config.toml`, `.codex/hooks.json`, the `AGENTS.md` block and `.grum/AGENTS.md`. |
287
+ | `grum init claude [--remove] [--force] [--local-only] [--pre-commit]` | The same for Claude Code: `.mcp.json`, `.claude/settings.json`, the `CLAUDE.md` block and `.grum/AGENTS.md`. |
286
288
 
287
289
  ```sh
288
290
  grum check --staged # drift in the blocks staged for commit
package/content.md5 CHANGED
@@ -1 +1 @@
1
- 2b9fd0bfe6493c3fec6b5b8ddebbb446
1
+ 8e7bcce15e02fbffd9e4515409ceba94