@node9/proxy 1.0.2 → 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 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
- <img src="https://github.com/user-attachments/assets/c3a8f3ae-f0aa-4c57-869a-5e1e2e356d35" width="100%">
19
+ <<<<<<< dev
20
+ <img src="https://github.com/user-attachments/assets/afae9caa-0605-4cac-929a-c14198383169" width="100%">
21
+ =======
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 snapshots right before an AI agent is allowed to edit or delete files. If the AI hallucinates and ruins your code, don't waste time manualy fixing it. Just run:
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