@grum-os/cli 0.3.68 → 0.3.70
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 +7 -5
- package/content.md5 +1 -1
- package/grum.mjs +453 -445
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -89,7 +89,9 @@ Accepting Cursor in the menu puts Grum inside the agent. The agent follows the s
|
|
|
89
89
|
|
|
90
90
|
If you keep it, Grum captures how the element renders and sends the picture to the Review page. Owners approve or reject it there. A rejected style is not offered again: the agent changes the code to use the contract.
|
|
91
91
|
|
|
92
|
-
**While you edit**,
|
|
92
|
+
**While you edit**, agents read the local contract cache and edit hooks only track changed files. Grum does not ask them to fetch the contract, refresh integrations or check drift between edits. At turn end, the stop hook checks their changes locally and reports new blocking drift once, then waits for your choice. Explicit Grum requests still use the tools. With [blocking](#fail-the-check) turned on, the separate shell guard refuses `git commit` and `git push` while blocking drift remains.
|
|
93
|
+
|
|
94
|
+
Grum also maintains its runtime at turn end. Update downloads run in the background, retain the working version offline, and leave installed hook commands unchanged. Running MCP bridges switch workers between calls. Changed timing instructions reach an existing chat once through its stop hook, without an update announcement or a request to restart. GRUM_AUTO_UPDATE=off disables runtime downloads and activation.
|
|
93
95
|
|
|
94
96
|
Reload the Cursor window once after setup, or turn **grum** on under Settings, Tools and MCP, so the agent sees the tools. Until then it reads `.grum/contract.json`.
|
|
95
97
|
|
|
@@ -98,8 +100,8 @@ These are the files setup writes. They merge into what is already there, and a s
|
|
|
98
100
|
| File | What it does |
|
|
99
101
|
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
100
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`. |
|
|
101
|
-
| `.cursor/rules/grum.mdc` | Tells the agent to read the contract
|
|
102
|
-
| `.cursor/hooks.json` |
|
|
103
|
+
| `.cursor/rules/grum.mdc` | Tells the agent to read the local contract cache for UI work and leave automatic drift checks to the stop hook. |
|
|
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`. |
|
|
103
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. |
|
|
104
106
|
|
|
105
107
|
`.grum/` is added to `.gitignore` the first time Grum writes there. Choose **setup** again and answer `n` to the Cursor question to remove what Grum added. Answer `n` to the pre-commit question to drop only that check.
|
|
@@ -149,7 +151,7 @@ New drift is grouped by file. Each line names the value, the kind of drift, whet
|
|
|
149
151
|
|
|
150
152
|
```text
|
|
151
153
|
src/pages/Hero.tsx
|
|
152
|
-
18: Hard-coded #3C3C3C
|
|
154
|
+
18: Hard-coded #3C3C3C should be merged into the --text-primary token [Hard-coded value, Not sent for review]
|
|
153
155
|
fix: Use --text-primary (#1B1B1B) instead of #3C3C3C.
|
|
154
156
|
|
|
155
157
|
1 new drift item against Acme's contract: 1 not sent for review (42 files checked).
|
|
@@ -207,7 +209,7 @@ Clears the capture-browser sign-in saved for this repository.
|
|
|
207
209
|
grum contract
|
|
208
210
|
```
|
|
209
211
|
|
|
210
|
-
|
|
212
|
+
Fetches and prints the contract packet when requested: tokens by category (with a separate dark value when there is one), button components and looks, approved text inputs, checkboxes, radios, switches, selects, action menus and tabs, team guidelines, quick wins, and review decisions. Ordinary agent edits read the local cache instead of running this command.
|
|
211
213
|
|
|
212
214
|
## Fail the check
|
|
213
215
|
|
package/content.md5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
83b70ce6ff10817d1cdc3cb2f75d98f3
|