@node9/proxy 1.50.0 → 1.52.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.
@@ -3685,7 +3685,7 @@ var init_setup_pi_shim = __esm({
3685
3685
 
3686
3686
  // src/setup.ts
3687
3687
  import chalk2 from "chalk";
3688
- import { confirm } from "@inquirer/prompts";
3688
+ import { confirm as rawConfirm } from "@inquirer/prompts";
3689
3689
  import { parse as parseToml, stringify as stringifyToml } from "smol-toml";
3690
3690
  import * as yaml from "yaml";
3691
3691
  var init_setup = __esm({
package/dist/index.js CHANGED
@@ -3530,6 +3530,22 @@ function applyManagedEgress(local, managed, locked) {
3530
3530
  }
3531
3531
  return next;
3532
3532
  }
3533
+ var DLP_PII_ORDER = ["off", "block"];
3534
+ function applyManagedDlp(local, managed, locked) {
3535
+ const next = { ...local };
3536
+ if (typeof managed.enabled === "boolean") {
3537
+ next.enabled = locked.includes("dlpEnabled") ? managed.enabled : local.enabled || managed.enabled;
3538
+ }
3539
+ if (typeof managed.pii === "string") {
3540
+ next.pii = resolveByOrder(
3541
+ DLP_PII_ORDER,
3542
+ local.pii ?? "off",
3543
+ managed.pii,
3544
+ locked.includes("dlpPii")
3545
+ );
3546
+ }
3547
+ return next;
3548
+ }
3533
3549
 
3534
3550
  // src/config/index.ts
3535
3551
  var DANGEROUS_WORDS = [
@@ -4008,6 +4024,16 @@ function getConfig(cwd) {
4008
4024
  locked
4009
4025
  );
4010
4026
  }
4027
+ if (mc.dlp && typeof mc.dlp === "object") {
4028
+ mergedPolicy.dlp = applyManagedDlp(
4029
+ mergedPolicy.dlp,
4030
+ {
4031
+ enabled: typeof mc.dlp.enabled === "boolean" ? mc.dlp.enabled : void 0,
4032
+ pii: typeof mc.dlp.pii === "string" ? mc.dlp.pii : void 0
4033
+ },
4034
+ locked
4035
+ );
4036
+ }
4011
4037
  }
4012
4038
  if (raw.panicMode === true) {
4013
4039
  mergedSettings.panicMode = true;
package/dist/index.mjs CHANGED
@@ -3500,6 +3500,22 @@ function applyManagedEgress(local, managed, locked) {
3500
3500
  }
3501
3501
  return next;
3502
3502
  }
3503
+ var DLP_PII_ORDER = ["off", "block"];
3504
+ function applyManagedDlp(local, managed, locked) {
3505
+ const next = { ...local };
3506
+ if (typeof managed.enabled === "boolean") {
3507
+ next.enabled = locked.includes("dlpEnabled") ? managed.enabled : local.enabled || managed.enabled;
3508
+ }
3509
+ if (typeof managed.pii === "string") {
3510
+ next.pii = resolveByOrder(
3511
+ DLP_PII_ORDER,
3512
+ local.pii ?? "off",
3513
+ managed.pii,
3514
+ locked.includes("dlpPii")
3515
+ );
3516
+ }
3517
+ return next;
3518
+ }
3503
3519
 
3504
3520
  // src/config/index.ts
3505
3521
  var DANGEROUS_WORDS = [
@@ -3978,6 +3994,16 @@ function getConfig(cwd) {
3978
3994
  locked
3979
3995
  );
3980
3996
  }
3997
+ if (mc.dlp && typeof mc.dlp === "object") {
3998
+ mergedPolicy.dlp = applyManagedDlp(
3999
+ mergedPolicy.dlp,
4000
+ {
4001
+ enabled: typeof mc.dlp.enabled === "boolean" ? mc.dlp.enabled : void 0,
4002
+ pii: typeof mc.dlp.pii === "string" ? mc.dlp.pii : void 0
4003
+ },
4004
+ locked
4005
+ );
4006
+ }
3981
4007
  }
3982
4008
  if (raw.panicMode === true) {
3983
4009
  mergedSettings.panicMode = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node9/proxy",
3
- "version": "1.50.0",
3
+ "version": "1.52.0",
4
4
  "description": "The Sudo Command for AI Agents. Execution Security for Claude Code, Codex, Gemini, Cursor, Opencode, Pi, and any MCP server.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",