@node9/proxy 1.9.2 → 1.10.0
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 +56 -7
- package/dist/cli.js +1154 -623
- package/dist/cli.mjs +1136 -605
- package/dist/index.js +127 -23
- package/dist/index.mjs +125 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
### The "Sudo" Command for AI Agents.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@node9/proxy)
|
|
6
|
-
[](https://opensource.org/licenses/Apache-2.0)
|
|
7
7
|
[](https://huggingface.co/spaces/Node9ai/node9-security-demo)
|
|
8
8
|
[](https://node9.ai/docs)
|
|
9
9
|
|
|
@@ -15,18 +15,18 @@
|
|
|
15
15
|
|
|
16
16
|
## The "Aha!" Moment
|
|
17
17
|
|
|
18
|
-
**AIs
|
|
18
|
+
**AIs move fast.** Ask an agent to "ship the fix" and it might push straight to git without asking you.
|
|
19
19
|
|
|
20
20
|
<p align="center">
|
|
21
|
-
<img src="https://github.com/user-attachments/assets/
|
|
21
|
+
<img src="https://github.com/user-attachments/assets/4aa6e45b-9aba-4953-9ce3-548226622588" width="100%">
|
|
22
22
|
</p>
|
|
23
23
|
|
|
24
24
|
With Node9:
|
|
25
25
|
|
|
26
|
-
1. **AI attempts:** `Bash("
|
|
26
|
+
1. **AI attempts:** `Bash("git push origin main")`
|
|
27
27
|
2. **Node9 intercepts:** OS-native popup appears instantly
|
|
28
28
|
3. **You block it** — one click
|
|
29
|
-
4. **AI pivots:** _"I'll
|
|
29
|
+
4. **AI pivots:** _"I'll create a PR for review instead"_
|
|
30
30
|
|
|
31
31
|
---
|
|
32
32
|
|
|
@@ -41,7 +41,7 @@ npm install -g @node9/proxy
|
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
node9
|
|
44
|
+
node9 init # auto-detects Claude Code, Gemini CLI, Cursor, Codex
|
|
45
45
|
node9 doctor # verify everything is wired correctly
|
|
46
46
|
```
|
|
47
47
|
|
|
@@ -82,7 +82,7 @@ Wrap any MCP server transparently. The AI sees the same server — Node9 interce
|
|
|
82
82
|
}
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
Or use `node9
|
|
85
|
+
Or use `node9 init` — it wraps existing MCP servers automatically.
|
|
86
86
|
|
|
87
87
|
### MCP Tool Pinning — rug pull defense
|
|
88
88
|
|
|
@@ -128,6 +128,55 @@ configure(agent_name="my-agent", policy="require_approval")
|
|
|
128
128
|
|
|
129
129
|
---
|
|
130
130
|
|
|
131
|
+
## Flight Recorder & HUD
|
|
132
|
+
|
|
133
|
+
Every tool call your AI agent makes is recorded — command, arguments, result, and cost estimate. Node9 wires a live statusline into Claude Code that shows you what's happening in real time:
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
🛡 node9 | standard | [bash-safe] | ✅ 12 allowed 🛑 2 blocked 🚨 0 dlp | ~$0.43 | ⚡ no-force-push
|
|
137
|
+
📊 claude-opus-4-6 | ctx [████████░░░░░░░] 54% | 5h [██░░░░░░░░░░░░░] 12% | 7d [█░░░░░░░░░░░░░░] 7%
|
|
138
|
+
🗂 2 CLAUDE.md | 8 rules | 3 MCPs | 4 hooks
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
**Line 1 — Security state:** active mode, enabled shields, session totals (allowed / blocked / DLP hits), estimated cost, last rule that fired.
|
|
142
|
+
|
|
143
|
+
**Line 2 — Context & rate limits:** model name, context window usage, 5-hour and 7-day token rate-limit bars — so you can see when an agent is burning through quota.
|
|
144
|
+
|
|
145
|
+
**Line 3 — Environment:** how many CLAUDE.md files, rules, MCP servers, and hooks are active in the current project.
|
|
146
|
+
|
|
147
|
+
The HUD is wired automatically by `node9 init`. Full session logs land in `~/.node9/audit.log`.
|
|
148
|
+
|
|
149
|
+
### Offline Report
|
|
150
|
+
|
|
151
|
+
Run `node9 report` after a session to get a summary dashboard — what was allowed, what was blocked, DLP hits, cost (Claude Code only), and daily activity:
|
|
152
|
+
|
|
153
|
+
```
|
|
154
|
+
$ node9 report --period 7d
|
|
155
|
+
|
|
156
|
+
🛡 node9 Report · Last 7 Days Apr 8 – Apr 14 2,255 events
|
|
157
|
+
──────────────────────────────────────────────────────────────────────────────
|
|
158
|
+
|
|
159
|
+
✅ 1,746 allowed 🛑 509 blocked 🚨 70 DLP hits 23% block rate 💰 $82.91
|
|
160
|
+
|
|
161
|
+
Top Tools Top Blocks
|
|
162
|
+
───────────────────────────────────── ─────────────────────────────────────
|
|
163
|
+
Bash ██████ 1,595 timeout ██████ 281
|
|
164
|
+
Read █░░░░░ 196 smart-rule-block ██░░░░ 79
|
|
165
|
+
Edit █░░░░░ 118 observe-mode-dlp-would… █░░░░░ 69
|
|
166
|
+
drop_resource █░░░░░ 69 persistent-deny █░░░░░ 69
|
|
167
|
+
Grep █░░░░░ 35 local-decision █░░░░░ 5
|
|
168
|
+
|
|
169
|
+
Daily Activity
|
|
170
|
+
──────────────────────────────────────────────────────────────────────────────
|
|
171
|
+
Apr 9 ██████████████████████████████ 833 216 blocked
|
|
172
|
+
Apr 10 █████░░░░░░░░░░░░░░░░░░░░░░░░░ 145 24 blocked
|
|
173
|
+
Apr 11 ██████████████████████░░░░░░░░ 617 139 blocked
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
Periods: `today`, `7d` (default), `30d`, `month`. Cost data is read from `~/.claude/projects/` — no API calls, fully offline.
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
131
180
|
## 📖 Full docs
|
|
132
181
|
|
|
133
182
|
Everything else — config reference, smart rules, stateful rules, trusted hosts, approval modes, CLI reference — is at **[node9.ai/docs](https://node9.ai/docs)**.
|