@grum-os/cli 0.3.71 → 0.3.73

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 +10 -10
  2. package/content.md5 +1 -1
  3. package/grum.mjs +417 -417
  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 `.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.
69
+ Grum generates `.grum/AGENTS.md` locally during setup and ignores it with the rest of `.grum/`. The short blocks in `AGENTS.md` and `CLAUDE.md` read this file when present. A fresh clone generates it through the setup prompt; a missing file does not trigger automatic setup. Normal CLI use, successful MCP contract/check calls and Stop maintenance refresh installed integrations. Local generated guidance can update without being tracked. Repository instruction files still require a clean tracked baseline, and Grum never stages changes.
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
 
@@ -119,12 +119,12 @@ Codex keeps project configuration and hooks under your control. Grum will not ap
119
119
 
120
120
  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.
121
121
 
122
- | File | What it does |
123
- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
124
- | `.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. |
125
- | `.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). |
126
- | `AGENTS.md` | A short marked block that tells the agent to read `.grum/AGENTS.md`. |
127
- | `.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. |
122
+ | File | What it does |
123
+ | -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
124
+ | `.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. |
125
+ | `.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). |
126
+ | `AGENTS.md` | A short marked block that tells the agent to read `.grum/AGENTS.md`. |
127
+ | `.grum/AGENTS.md` | Grum's agent instructions: read the contract, check before it stops, and ask before keeping an off-contract style. Generated locally and ignored by Git; Grum maintains it automatically. |
128
128
 
129
129
  `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.
130
130
 
@@ -138,8 +138,8 @@ Claude Code runs a project's tools and hooks only in a folder you trust, so one
138
138
  | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
139
139
  | `.mcp.json` | Adds the same eight tools. Other servers in the file are left as they are. |
140
140
  | `.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. |
141
- | `CLAUDE.md` | A short marked block that imports `.grum/AGENTS.md` (`@.grum/AGENTS.md`), so Claude Code loads Grum's instructions with your own. |
142
- | `.grum/AGENTS.md` | Grum's agent instructions, shared with Codex. Commit it; Grum rewrites it on upgrade. |
141
+ | `CLAUDE.md` | A short marked block that reads local `.grum/AGENTS.md` when present. The setup prompt generates the file in a fresh clone. |
142
+ | `.grum/AGENTS.md` | Grum's agent instructions, shared with Codex. Generated locally and ignored by Git; Grum maintains it automatically. |
143
143
 
144
144
  `grum init claude --remove` takes out exactly these; the rest of each file stays.
145
145
 
@@ -241,7 +241,7 @@ The same rule can live in `.grum/config.json`:
241
241
 
242
242
  `block` does not fail a check that is still waiting on review. Use `--strict` for that.
243
243
 
244
- 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`.
244
+ Grum adds `/.grum/` to `.gitignore`, so generated instructions and all other local state stay on this computer. Setup and automatic integration refresh replace Grum's former shared-instructions exception. If the instructions were previously committed, run `git rm --cached -- .grum/AGENTS.md` once and commit the deletion with the ignore-rule change. The local file stays on disk; Grum never changes the index itself. To share configuration deliberately, use `.grum/*` and `!.grum/config.json`, keeping generated instructions ignored.
245
245
 
246
246
  ## Continuous integration
247
247
 
package/content.md5 CHANGED
@@ -1 +1 @@
1
- 90d5bbc386c4d1f664c6492d1b36a103
1
+ 58883e8bef4ba89c703792aa79cb7950