Skip to content

Commit 28a5926

Browse files
committed
fix: resolve merge conflict in README (duplicate CLI Reference sections)
1 parent fee4ef7 commit 28a5926

1 file changed

Lines changed: 0 additions & 103 deletions

File tree

README.md

Lines changed: 0 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,6 @@ The `field` key supports dot-notation for nested args: `"params.query.sql"`.
232232

233233
Use `node9 explain <tool> <args>` to dry-run any tool call and see exactly which smart rule (or other policy tier) would trigger.
234234

235-
## <<<<<<< Updated upstream
236-
237235
## 🖥️ CLI Reference
238236

239237
| Command | Description |
@@ -293,107 +291,6 @@ Verdict: BLOCK (dangerous word: rm -rf)
293291

294292
---
295293

296-
## 🖥️ CLI Reference
297-
298-
| Command | Description |
299-
| :---------------------------- | :------------------------------------------------------------------------------------ |
300-
| `node9 setup` | Interactive menu — detects installed agents and wires hooks for you |
301-
| `node9 addto <agent>` | Wire hooks for a specific agent (`claude`, `gemini`, `cursor`) |
302-
| `node9 init` | Create default `~/.node9/config.json` |
303-
| `node9 status` | Show current protection status and active rules |
304-
| `node9 doctor` | Health check — verifies binaries, config, credentials, and all agent hooks |
305-
| `node9 explain <tool> [args]` | Trace the policy waterfall for a given tool call (dry-run, no approval prompt) |
306-
| `node9 undo [--steps N]` | Revert the last N AI file edits using shadow Git snapshots |
307-
| `node9 check` | Called by agent hooks; evaluates a pending tool call and exits 0 (allow) or 1 (block) |
308-
309-
### `node9 doctor`
310-
311-
Runs a full self-test and exits 1 if any required check fails:
312-
313-
```
314-
Node9 Doctor v1.2.0
315-
────────────────────────────────────────
316-
Binaries
317-
✅ Node.js v20.11.0
318-
✅ git version 2.43.0
319-
320-
Configuration
321-
✅ ~/.node9/config.json found and valid
322-
✅ ~/.node9/credentials.json — cloud credentials found
323-
324-
Agent Hooks
325-
✅ Claude Code — PreToolUse hook active
326-
⚠️ Gemini CLI — not configured (optional)
327-
⚠️ Cursor — not configured (optional)
328-
329-
────────────────────────────────────────
330-
All checks passed ✅
331-
```
332-
333-
### `node9 explain`
334-
335-
## =======
336-
337-
## 🖥️ CLI Reference
338-
339-
| Command | Description |
340-
| :---------------------------- | :------------------------------------------------------------------------------------ |
341-
| `node9 setup` | Interactive menu — detects installed agents and wires hooks for you |
342-
| `node9 addto <agent>` | Wire hooks for a specific agent (`claude`, `gemini`, `cursor`) |
343-
| `node9 init` | Create default `~/.node9/config.json` |
344-
| `node9 status` | Show current protection status and active rules |
345-
| `node9 doctor` | Health check — verifies binaries, config, credentials, and all agent hooks |
346-
| `node9 explain <tool> [args]` | Trace the policy waterfall for a given tool call (dry-run, no approval prompt) |
347-
| `node9 undo [--steps N]` | Revert the last N AI file edits using shadow Git snapshots |
348-
| `node9 check` | Called by agent hooks; evaluates a pending tool call and exits 0 (allow) or 1 (block) |
349-
350-
### `node9 doctor`
351-
352-
Runs a full self-test and exits 1 if any required check fails:
353-
354-
```
355-
Node9 Doctor v1.2.0
356-
────────────────────────────────────────
357-
Binaries
358-
✅ Node.js v20.11.0
359-
✅ git version 2.43.0
360-
361-
Configuration
362-
✅ ~/.node9/config.json found and valid
363-
✅ ~/.node9/credentials.json — cloud credentials found
364-
365-
Agent Hooks
366-
✅ Claude Code — PreToolUse hook active
367-
⚠️ Gemini CLI — not configured (optional)
368-
⚠️ Cursor — not configured (optional)
369-
370-
────────────────────────────────────────
371-
All checks passed ✅
372-
```
373-
374-
### `node9 explain`
375-
376-
> > > > > > > Stashed changes
377-
> > > > > > > Dry-runs the policy engine and prints exactly which rule (or waterfall tier) would block or allow a given tool call — useful for debugging your config:
378-
379-
```bash
380-
node9 explain bash '{"command":"rm -rf /tmp/build"}'
381-
```
382-
383-
```
384-
Policy Waterfall for: bash
385-
──────────────────────────────────────────────
386-
Tier 1 · Cloud Org Policy SKIP (no org policy loaded)
387-
Tier 2 · Dangerous Words BLOCK ← matched "rm -rf"
388-
Tier 3 · Path Block –
389-
Tier 4 · Inline Exec –
390-
Tier 5 · Rule Match –
391-
──────────────────────────────────────────────
392-
Verdict: BLOCK (dangerous word: rm -rf)
393-
```
394-
395-
---
396-
397294
## 🔧 Troubleshooting
398295

399296
**`node9 check` exits immediately / Claude is never blocked**

0 commit comments

Comments
 (0)