@node9/proxy 1.0.10 → 1.0.12
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 +11 -0
- package/dist/cli.js +16 -4
- package/dist/cli.mjs +16 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -90,6 +90,11 @@ Security posture is resolved using a strict 5-tier waterfall:
|
|
|
90
90
|
## 🚀 Quick Start
|
|
91
91
|
|
|
92
92
|
```bash
|
|
93
|
+
# Recommended — via Homebrew (macOS / Linux)
|
|
94
|
+
brew tap node9-ai/node9
|
|
95
|
+
brew install node9
|
|
96
|
+
|
|
97
|
+
# Or via npm
|
|
93
98
|
npm install -g @node9/proxy
|
|
94
99
|
|
|
95
100
|
# 1. Setup protection for your favorite agent
|
|
@@ -316,6 +321,12 @@ A corporate policy has locked this action. You must click the "Approve" button i
|
|
|
316
321
|
|
|
317
322
|
---
|
|
318
323
|
|
|
324
|
+
## 🔗 Related
|
|
325
|
+
|
|
326
|
+
- [node9-python](https://github.com/node9-ai/node9-python) — Python SDK for Node9
|
|
327
|
+
|
|
328
|
+
---
|
|
329
|
+
|
|
319
330
|
## 🏢 Enterprise & Compliance
|
|
320
331
|
|
|
321
332
|
Node9 Pro provides **Governance Locking**, **SAML/SSO**, and **VPC Deployment**.
|
package/dist/cli.js
CHANGED
|
@@ -4998,12 +4998,24 @@ program.argument("[command...]", "The agent command to run (e.g., gemini)").acti
|
|
|
4998
4998
|
}
|
|
4999
4999
|
});
|
|
5000
5000
|
program.command("undo").description(
|
|
5001
|
-
"Revert files to a pre-AI snapshot. Shows a diff and asks for confirmation before reverting. Use --steps N to go back N actions."
|
|
5002
|
-
).option("--steps <n>", "Number of snapshots to go back (default: 1)", "1").action(async (options) => {
|
|
5001
|
+
"Revert files to a pre-AI snapshot. Shows a diff and asks for confirmation before reverting. Use --steps N to go back N actions, --all to include snapshots from other directories."
|
|
5002
|
+
).option("--steps <n>", "Number of snapshots to go back (default: 1)", "1").option("--all", "Show snapshots from all directories, not just the current one").action(async (options) => {
|
|
5003
5003
|
const steps = Math.max(1, parseInt(options.steps, 10) || 1);
|
|
5004
|
-
const
|
|
5004
|
+
const allHistory = getSnapshotHistory();
|
|
5005
|
+
const history = options.all ? allHistory : allHistory.filter((s) => s.cwd === process.cwd());
|
|
5005
5006
|
if (history.length === 0) {
|
|
5006
|
-
|
|
5007
|
+
if (!options.all && allHistory.length > 0) {
|
|
5008
|
+
console.log(
|
|
5009
|
+
import_chalk5.default.yellow(
|
|
5010
|
+
`
|
|
5011
|
+
\u2139\uFE0F No snapshots found for the current directory (${process.cwd()}).
|
|
5012
|
+
Run ${import_chalk5.default.cyan("node9 undo --all")} to see snapshots from all projects.
|
|
5013
|
+
`
|
|
5014
|
+
)
|
|
5015
|
+
);
|
|
5016
|
+
} else {
|
|
5017
|
+
console.log(import_chalk5.default.yellow("\n\u2139\uFE0F No undo snapshots found.\n"));
|
|
5018
|
+
}
|
|
5007
5019
|
return;
|
|
5008
5020
|
}
|
|
5009
5021
|
const idx = history.length - steps;
|
package/dist/cli.mjs
CHANGED
|
@@ -4975,12 +4975,24 @@ program.argument("[command...]", "The agent command to run (e.g., gemini)").acti
|
|
|
4975
4975
|
}
|
|
4976
4976
|
});
|
|
4977
4977
|
program.command("undo").description(
|
|
4978
|
-
"Revert files to a pre-AI snapshot. Shows a diff and asks for confirmation before reverting. Use --steps N to go back N actions."
|
|
4979
|
-
).option("--steps <n>", "Number of snapshots to go back (default: 1)", "1").action(async (options) => {
|
|
4978
|
+
"Revert files to a pre-AI snapshot. Shows a diff and asks for confirmation before reverting. Use --steps N to go back N actions, --all to include snapshots from other directories."
|
|
4979
|
+
).option("--steps <n>", "Number of snapshots to go back (default: 1)", "1").option("--all", "Show snapshots from all directories, not just the current one").action(async (options) => {
|
|
4980
4980
|
const steps = Math.max(1, parseInt(options.steps, 10) || 1);
|
|
4981
|
-
const
|
|
4981
|
+
const allHistory = getSnapshotHistory();
|
|
4982
|
+
const history = options.all ? allHistory : allHistory.filter((s) => s.cwd === process.cwd());
|
|
4982
4983
|
if (history.length === 0) {
|
|
4983
|
-
|
|
4984
|
+
if (!options.all && allHistory.length > 0) {
|
|
4985
|
+
console.log(
|
|
4986
|
+
chalk5.yellow(
|
|
4987
|
+
`
|
|
4988
|
+
\u2139\uFE0F No snapshots found for the current directory (${process.cwd()}).
|
|
4989
|
+
Run ${chalk5.cyan("node9 undo --all")} to see snapshots from all projects.
|
|
4990
|
+
`
|
|
4991
|
+
)
|
|
4992
|
+
);
|
|
4993
|
+
} else {
|
|
4994
|
+
console.log(chalk5.yellow("\n\u2139\uFE0F No undo snapshots found.\n"));
|
|
4995
|
+
}
|
|
4984
4996
|
return;
|
|
4985
4997
|
}
|
|
4986
4998
|
const idx = history.length - steps;
|