@node9/proxy 1.0.3 → 1.0.4
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 +29 -5
- package/dist/cli.js +744 -58
- package/dist/cli.mjs +744 -58
- package/dist/index.js +28 -0
- package/dist/index.mjs +28 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,11 @@ While others try to _guess_ if a prompt is malicious (Semantic Security), Node9
|
|
|
16
16
|
**AIs are literal.** When you ask an agent to "Fix my disk space," it might decide to run `docker system prune -af`.
|
|
17
17
|
|
|
18
18
|
<p align="center">
|
|
19
|
+
<<<<<<< dev
|
|
20
|
+
<img src="https://github.com/user-attachments/assets/afae9caa-0605-4cac-929a-c14198383169" width="100%">
|
|
21
|
+
=======
|
|
19
22
|
<img src="https://github.com/user-attachments/assets/0e45e843-4cf7-408e-95ce-23fb09525ee4" width="100%">
|
|
23
|
+
>>>>>>> main
|
|
20
24
|
</p>
|
|
21
25
|
|
|
22
26
|
**With Node9, the interaction looks like this:**
|
|
@@ -45,11 +49,35 @@ Node9 doesn't just "cut the wire." When a command is blocked, it injects a **Str
|
|
|
45
49
|
|
|
46
50
|
### ⏪ Shadow Git Snapshots (Auto-Undo)
|
|
47
51
|
|
|
48
|
-
Node9 takes silent, lightweight Git
|
|
52
|
+
Node9 takes a silent, lightweight Git snapshot before every AI file edit. If the AI hallucinates and breaks your code, run `node9 undo` to instantly revert — with a full diff preview before anything changes.
|
|
49
53
|
|
|
50
54
|
```bash
|
|
55
|
+
# Undo the last AI action (shows diff + asks confirmation)
|
|
51
56
|
node9 undo
|
|
57
|
+
|
|
58
|
+
# Go back N actions at once
|
|
59
|
+
node9 undo --steps 3
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Example output:
|
|
63
|
+
|
|
52
64
|
```
|
|
65
|
+
⏪ Node9 Undo
|
|
66
|
+
Tool: str_replace_based_edit_tool → src/app.ts
|
|
67
|
+
When: 2m ago
|
|
68
|
+
Dir: /home/user/my-project
|
|
69
|
+
|
|
70
|
+
--- src/app.ts (snapshot)
|
|
71
|
+
+++ src/app.ts (current)
|
|
72
|
+
@@ -1,4 +1,6 @@
|
|
73
|
+
-const x = 1;
|
|
74
|
+
+const x = 99;
|
|
75
|
+
+const y = "hello";
|
|
76
|
+
|
|
77
|
+
Revert to this snapshot? [y/N]
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Node9 keeps the last 10 snapshots. Snapshots are only taken for file-writing tools (`write_file`, `edit_file`, `str_replace_based_edit_tool`, `create_file`) — not for read-only or shell commands.
|
|
53
81
|
|
|
54
82
|
### 🌊 The Resolution Waterfall
|
|
55
83
|
|
|
@@ -121,10 +149,6 @@ Rules are **merged additive**—you cannot "un-danger" a word locally if it was
|
|
|
121
149
|
|
|
122
150
|
---
|
|
123
151
|
|
|
124
|
-
## ⏪ Phase 2: The "Undo" Engine (Coming Soon)
|
|
125
|
-
|
|
126
|
-
Node9 is currently building **Shadow Git Snapshots**. When enabled, Node9 takes a silent, lightweight Git snapshot right before an AI agent is allowed to edit or delete files. If the AI hallucinates, you can revert the entire session with one click: `node9 undo`.
|
|
127
|
-
|
|
128
152
|
---
|
|
129
153
|
|
|
130
154
|
## 🔧 Troubleshooting
|