@grum-os/cli 0.3.72 → 0.3.74
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/README.md +11 -11
- package/content.md5 +1 -1
- package/grum.mjs +432 -434
- 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
|
|
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`, and the Cursor rule, 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
|
|
|
@@ -100,7 +100,7 @@ These are the files setup writes. They merge into what is already there, and a s
|
|
|
100
100
|
| File | What it does |
|
|
101
101
|
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
102
102
|
| `.cursor/mcp.json` | Tools the agent calls: `grum_contract`, `grum_check`, `grum_request_review`, `grum_add_to_contract`, `grum_snooze_review`, `grum_review_status`, `grum_setup`, and `grum_doctor`. |
|
|
103
|
-
| `.cursor/rules/grum.mdc` |
|
|
103
|
+
| `.cursor/rules/grum.mdc` | A short pointer that tells the agent to read `.grum/AGENTS.md`, Grum's instructions. Those are generated locally and ignored by Git, so updates to them are never a change to commit. |
|
|
104
104
|
| `.cursor/hooks.json` | Tracks edited files. The stop hook reports new blocking drift at turn end. The shell hook can refuse `git commit` and `git push`. |
|
|
105
105
|
| pre-commit | Optional. When you say yes, adds `grum check --staged`. Husky's hook is committed with the repo. Git's own pre-commit hook stays on this computer. A lefthook repo gets the snippet to paste. |
|
|
106
106
|
|
|
@@ -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.
|
|
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
|
|
142
|
-
| `.grum/AGENTS.md` | Grum's agent instructions, shared with Codex.
|
|
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
|
|
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
|
-
|
|
1
|
+
f693c6fd3334638f17987d4351198723
|