@node9/proxy 1.29.0 → 1.31.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/dist/cli.js +1653 -908
- package/dist/cli.mjs +1622 -878
- package/dist/dashboard.mjs +29 -4
- package/dist/index.js +478 -155
- package/dist/index.mjs +475 -152
- package/package.json +1 -1
package/dist/dashboard.mjs
CHANGED
|
@@ -2220,7 +2220,13 @@ var init_config_schema = __esm({
|
|
|
2220
2220
|
allowGlobalPause: z.boolean().optional(),
|
|
2221
2221
|
auditHashArgs: z.boolean().optional(),
|
|
2222
2222
|
agentPolicy: z.enum(["require_approval", "block_on_rules"]).optional(),
|
|
2223
|
-
cloudSyncIntervalHours: z.number().positive().optional()
|
|
2223
|
+
cloudSyncIntervalHours: z.number().positive().optional(),
|
|
2224
|
+
// Outbox shipper (audit.log → SaaS batch ingest). enabled defaults
|
|
2225
|
+
// to true; set false to fall back to local-only auditing.
|
|
2226
|
+
shipper: z.object({
|
|
2227
|
+
enabled: z.boolean().optional(),
|
|
2228
|
+
intervalSeconds: z.number().min(5).optional()
|
|
2229
|
+
}).optional()
|
|
2224
2230
|
}).optional(),
|
|
2225
2231
|
policy: z.object({
|
|
2226
2232
|
sandboxPaths: z.array(z.string()).optional(),
|
|
@@ -2235,7 +2241,15 @@ var init_config_schema = __esm({
|
|
|
2235
2241
|
}).optional(),
|
|
2236
2242
|
dlp: z.object({
|
|
2237
2243
|
enabled: z.boolean().optional(),
|
|
2238
|
-
scanIgnoredTools: z.boolean().optional()
|
|
2244
|
+
scanIgnoredTools: z.boolean().optional(),
|
|
2245
|
+
pii: z.enum(["off", "block"]).optional()
|
|
2246
|
+
}).optional(),
|
|
2247
|
+
egress: z.object({
|
|
2248
|
+
enabled: z.boolean().optional(),
|
|
2249
|
+
mode: z.enum(["off", "review", "block"]).optional(),
|
|
2250
|
+
allow: z.array(z.string()).optional(),
|
|
2251
|
+
deny: z.array(z.string()).optional(),
|
|
2252
|
+
allowPrivate: z.boolean().optional()
|
|
2239
2253
|
}).optional(),
|
|
2240
2254
|
loopDetection: z.object({
|
|
2241
2255
|
enabled: z.boolean().optional(),
|
|
@@ -2355,7 +2369,8 @@ var init_config = __esm({
|
|
|
2355
2369
|
flightRecorder: true,
|
|
2356
2370
|
auditHashArgs: true,
|
|
2357
2371
|
approvers: { native: true, browser: false, cloud: false, terminal: true },
|
|
2358
|
-
cloudSyncIntervalHours: 5
|
|
2372
|
+
cloudSyncIntervalHours: 5,
|
|
2373
|
+
shipper: { enabled: true, intervalSeconds: 20 }
|
|
2359
2374
|
},
|
|
2360
2375
|
policy: {
|
|
2361
2376
|
sandboxPaths: ["/tmp/**", "**/sandbox/**", "**/test-results/**"],
|
|
@@ -2539,7 +2554,8 @@ var init_config = __esm({
|
|
|
2539
2554
|
description: "The AI wants to download a script from the internet and run it immediately, without you seeing what it contains. This is one of the most common ways malware gets installed."
|
|
2540
2555
|
}
|
|
2541
2556
|
],
|
|
2542
|
-
dlp: { enabled: true, scanIgnoredTools: true },
|
|
2557
|
+
dlp: { enabled: true, scanIgnoredTools: true, pii: "off" },
|
|
2558
|
+
egress: { enabled: false, mode: "review", allow: [], deny: [], allowPrivate: true },
|
|
2543
2559
|
loopDetection: { enabled: true, threshold: 5, windowSeconds: 120 },
|
|
2544
2560
|
skillPinning: { enabled: false, mode: "warn", roots: [] }
|
|
2545
2561
|
},
|
|
@@ -2635,6 +2651,14 @@ var init_litellm = __esm({
|
|
|
2635
2651
|
}
|
|
2636
2652
|
});
|
|
2637
2653
|
|
|
2654
|
+
// src/cost-codex.ts
|
|
2655
|
+
var init_cost_codex = __esm({
|
|
2656
|
+
"src/cost-codex.ts"() {
|
|
2657
|
+
"use strict";
|
|
2658
|
+
init_litellm();
|
|
2659
|
+
}
|
|
2660
|
+
});
|
|
2661
|
+
|
|
2638
2662
|
// src/costSync.ts
|
|
2639
2663
|
function decodeProjectDirName(dirName) {
|
|
2640
2664
|
return dirName.replace(/-/g, "/");
|
|
@@ -2646,6 +2670,7 @@ var init_costSync = __esm({
|
|
|
2646
2670
|
init_config();
|
|
2647
2671
|
init_audit();
|
|
2648
2672
|
init_litellm();
|
|
2673
|
+
init_cost_codex();
|
|
2649
2674
|
SYNC_INTERVAL_MS = 10 * 60 * 1e3;
|
|
2650
2675
|
}
|
|
2651
2676
|
});
|