@grum-os/cli 0.3.67 → 0.3.69
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 +5 -5
- package/content.md5 +1 -1
- package/grum.mjs +429 -423
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -89,7 +89,7 @@ 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
93
|
|
|
94
94
|
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
95
|
|
|
@@ -98,8 +98,8 @@ These are the files setup writes. They merge into what is already there, and a s
|
|
|
98
98
|
| File | What it does |
|
|
99
99
|
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
100
100
|
| `.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` |
|
|
101
|
+
| `.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. |
|
|
102
|
+
| `.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
103
|
| 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
104
|
|
|
105
105
|
`.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 +149,7 @@ New drift is grouped by file. Each line names the value, the kind of drift, whet
|
|
|
149
149
|
|
|
150
150
|
```text
|
|
151
151
|
src/pages/Hero.tsx
|
|
152
|
-
18: Hard-coded #3C3C3C
|
|
152
|
+
18: Hard-coded #3C3C3C should be merged into the --text-primary token [Hard-coded value, Not sent for review]
|
|
153
153
|
fix: Use --text-primary (#1B1B1B) instead of #3C3C3C.
|
|
154
154
|
|
|
155
155
|
1 new drift item against Acme's contract: 1 not sent for review (42 files checked).
|
|
@@ -207,7 +207,7 @@ Clears the capture-browser sign-in saved for this repository.
|
|
|
207
207
|
grum contract
|
|
208
208
|
```
|
|
209
209
|
|
|
210
|
-
|
|
210
|
+
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
211
|
|
|
212
212
|
## Fail the check
|
|
213
213
|
|
package/content.md5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
b18b9a4ba430907700254367aca3ad48
|