@node9/proxy 1.1.5 → 1.1.6
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/dist/cli.js +12 -6
- package/dist/cli.mjs +12 -6
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +4 -4
package/dist/cli.js
CHANGED
|
@@ -896,9 +896,9 @@ var init_dlp = __esm({
|
|
|
896
896
|
/[/\\][^/\\]+\.key$/i,
|
|
897
897
|
/[/\\][^/\\]+\.p12$/i,
|
|
898
898
|
/[/\\][^/\\]+\.pfx$/i,
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
899
|
+
/^(?:[a-zA-Z]:)?\/etc\/passwd$/,
|
|
900
|
+
/^(?:[a-zA-Z]:)?\/etc\/shadow$/,
|
|
901
|
+
/^(?:[a-zA-Z]:)?\/etc\/sudoers$/,
|
|
902
902
|
/[/\\]credentials\.json$/i,
|
|
903
903
|
/[/\\]id_rsa$/i,
|
|
904
904
|
/[/\\]id_ed25519$/i,
|
|
@@ -5936,7 +5936,7 @@ function openBrowserLocal() {
|
|
|
5936
5936
|
}
|
|
5937
5937
|
async function autoStartDaemonAndWait() {
|
|
5938
5938
|
try {
|
|
5939
|
-
const child = (0, import_child_process6.spawn)(
|
|
5939
|
+
const child = (0, import_child_process6.spawn)(process.execPath, [process.argv[1], "daemon"], {
|
|
5940
5940
|
detached: true,
|
|
5941
5941
|
stdio: "ignore",
|
|
5942
5942
|
env: { ...process.env, NODE9_AUTO_STARTED: "1" }
|
|
@@ -6592,7 +6592,10 @@ program.command("daemon").description("Run the local approval server").argument(
|
|
|
6592
6592
|
console.log(import_chalk6.default.green(`\u{1F310} Opened browser: http://${DAEMON_HOST2}:${DAEMON_PORT2}/`));
|
|
6593
6593
|
process.exit(0);
|
|
6594
6594
|
}
|
|
6595
|
-
const child = (0, import_child_process6.spawn)(
|
|
6595
|
+
const child = (0, import_child_process6.spawn)(process.execPath, [process.argv[1], "daemon"], {
|
|
6596
|
+
detached: true,
|
|
6597
|
+
stdio: "ignore"
|
|
6598
|
+
});
|
|
6596
6599
|
child.unref();
|
|
6597
6600
|
for (let i = 0; i < 12; i++) {
|
|
6598
6601
|
await new Promise((r) => setTimeout(r, 250));
|
|
@@ -6604,7 +6607,10 @@ program.command("daemon").description("Run the local approval server").argument(
|
|
|
6604
6607
|
process.exit(0);
|
|
6605
6608
|
}
|
|
6606
6609
|
if (options.background) {
|
|
6607
|
-
const child = (0, import_child_process6.spawn)(
|
|
6610
|
+
const child = (0, import_child_process6.spawn)(process.execPath, [process.argv[1], "daemon"], {
|
|
6611
|
+
detached: true,
|
|
6612
|
+
stdio: "ignore"
|
|
6613
|
+
});
|
|
6608
6614
|
child.unref();
|
|
6609
6615
|
console.log(import_chalk6.default.green(`
|
|
6610
6616
|
\u{1F6E1}\uFE0F Node9 daemon started in background (PID ${child.pid})`));
|
package/dist/cli.mjs
CHANGED
|
@@ -875,9 +875,9 @@ var init_dlp = __esm({
|
|
|
875
875
|
/[/\\][^/\\]+\.key$/i,
|
|
876
876
|
/[/\\][^/\\]+\.p12$/i,
|
|
877
877
|
/[/\\][^/\\]+\.pfx$/i,
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
878
|
+
/^(?:[a-zA-Z]:)?\/etc\/passwd$/,
|
|
879
|
+
/^(?:[a-zA-Z]:)?\/etc\/shadow$/,
|
|
880
|
+
/^(?:[a-zA-Z]:)?\/etc\/sudoers$/,
|
|
881
881
|
/[/\\]credentials\.json$/i,
|
|
882
882
|
/[/\\]id_rsa$/i,
|
|
883
883
|
/[/\\]id_ed25519$/i,
|
|
@@ -5915,7 +5915,7 @@ function openBrowserLocal() {
|
|
|
5915
5915
|
}
|
|
5916
5916
|
async function autoStartDaemonAndWait() {
|
|
5917
5917
|
try {
|
|
5918
|
-
const child = spawn5(
|
|
5918
|
+
const child = spawn5(process.execPath, [process.argv[1], "daemon"], {
|
|
5919
5919
|
detached: true,
|
|
5920
5920
|
stdio: "ignore",
|
|
5921
5921
|
env: { ...process.env, NODE9_AUTO_STARTED: "1" }
|
|
@@ -6571,7 +6571,10 @@ program.command("daemon").description("Run the local approval server").argument(
|
|
|
6571
6571
|
console.log(chalk6.green(`\u{1F310} Opened browser: http://${DAEMON_HOST2}:${DAEMON_PORT2}/`));
|
|
6572
6572
|
process.exit(0);
|
|
6573
6573
|
}
|
|
6574
|
-
const child = spawn5(
|
|
6574
|
+
const child = spawn5(process.execPath, [process.argv[1], "daemon"], {
|
|
6575
|
+
detached: true,
|
|
6576
|
+
stdio: "ignore"
|
|
6577
|
+
});
|
|
6575
6578
|
child.unref();
|
|
6576
6579
|
for (let i = 0; i < 12; i++) {
|
|
6577
6580
|
await new Promise((r) => setTimeout(r, 250));
|
|
@@ -6583,7 +6586,10 @@ program.command("daemon").description("Run the local approval server").argument(
|
|
|
6583
6586
|
process.exit(0);
|
|
6584
6587
|
}
|
|
6585
6588
|
if (options.background) {
|
|
6586
|
-
const child = spawn5(
|
|
6589
|
+
const child = spawn5(process.execPath, [process.argv[1], "daemon"], {
|
|
6590
|
+
detached: true,
|
|
6591
|
+
stdio: "ignore"
|
|
6592
|
+
});
|
|
6587
6593
|
child.unref();
|
|
6588
6594
|
console.log(chalk6.green(`
|
|
6589
6595
|
\u{1F6E1}\uFE0F Node9 daemon started in background (PID ${child.pid})`));
|
package/dist/index.js
CHANGED
|
@@ -752,9 +752,9 @@ var SENSITIVE_PATH_PATTERNS = [
|
|
|
752
752
|
/[/\\][^/\\]+\.key$/i,
|
|
753
753
|
/[/\\][^/\\]+\.p12$/i,
|
|
754
754
|
/[/\\][^/\\]+\.pfx$/i,
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
755
|
+
/^(?:[a-zA-Z]:)?\/etc\/passwd$/,
|
|
756
|
+
/^(?:[a-zA-Z]:)?\/etc\/shadow$/,
|
|
757
|
+
/^(?:[a-zA-Z]:)?\/etc\/sudoers$/,
|
|
758
758
|
/[/\\]credentials\.json$/i,
|
|
759
759
|
/[/\\]id_rsa$/i,
|
|
760
760
|
/[/\\]id_ed25519$/i,
|
package/dist/index.mjs
CHANGED
|
@@ -716,9 +716,9 @@ var SENSITIVE_PATH_PATTERNS = [
|
|
|
716
716
|
/[/\\][^/\\]+\.key$/i,
|
|
717
717
|
/[/\\][^/\\]+\.p12$/i,
|
|
718
718
|
/[/\\][^/\\]+\.pfx$/i,
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
719
|
+
/^(?:[a-zA-Z]:)?\/etc\/passwd$/,
|
|
720
|
+
/^(?:[a-zA-Z]:)?\/etc\/shadow$/,
|
|
721
|
+
/^(?:[a-zA-Z]:)?\/etc\/sudoers$/,
|
|
722
722
|
/[/\\]credentials\.json$/i,
|
|
723
723
|
/[/\\]id_rsa$/i,
|
|
724
724
|
/[/\\]id_ed25519$/i,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@node9/proxy",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "The Sudo Command for AI Agents. Execution Security for Claude Code & MCP.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"test:e2e": "NODE9_TESTING=1 bash scripts/e2e.sh",
|
|
62
62
|
"preuninstall": "node9 uninstall || echo 'node9 uninstall failed — remove hooks manually from ~/.claude/settings.json'",
|
|
63
63
|
"prepublishOnly": "npm run validate",
|
|
64
|
-
"test": "
|
|
65
|
-
"test:watch": "
|
|
66
|
-
"test:ui": "
|
|
64
|
+
"test": "vitest --run",
|
|
65
|
+
"test:watch": "vitest",
|
|
66
|
+
"test:ui": "vitest --ui"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@inquirer/prompts": "^8.3.0",
|