@node9/proxy 2.43.0 → 2.44.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/scan-ink.mjs CHANGED
@@ -2346,6 +2346,10 @@ var CHECK_TEXT = {
2346
2346
  };
2347
2347
  var LEVELS = ["audit", "soft", "standard", "strict", "block-all"];
2348
2348
  var MODE_VALUES = ["observe", ...LEVELS];
2349
+ function levelOf(mode) {
2350
+ if (mode === "observe") return "audit";
2351
+ return LEVELS.includes(mode ?? "") ? mode : "standard";
2352
+ }
2349
2353
  var STRICT = {
2350
2354
  "commands.sql-ddl": "block",
2351
2355
  // The agent disarming a check on its own work (node9Firewall#413 part 2).
@@ -7819,7 +7823,7 @@ function BlockedPanel({
7819
7823
  const origins = rules.map((r) => originForRule(r.name, summary.sections, enabled));
7820
7824
  const anyNeeds = origins.some((o) => o.startsWith("needs shield:"));
7821
7825
  const recordOnly = summary.policy?.recordOnly === true;
7822
- const footer = recordOnly ? `\u2192 ${summary.policy?.mode} mode: these were logged, not stopped \xB7 nothing here was enforced` : enabled.size === 0 ? "\u2192 install node9 + enable shields above" : anyNeeds ? "\u2192 \u2713 marks rules from enabled shields \xB7 enable the rest above" : "\u2192 \u2713 all these rules come from enabled shields";
7826
+ const footer = recordOnly ? `\u2192 ${levelOf(summary.policy?.mode)} mode: these were logged, not stopped \xB7 nothing here was enforced` : enabled.size === 0 ? "\u2192 install node9 + enable shields above" : anyNeeds ? "\u2192 \u2713 marks rules from enabled shields \xB7 enable the rest above" : "\u2192 \u2713 all these rules come from enabled shields";
7823
7827
  return /* @__PURE__ */ jsxs7(Box7, { borderStyle: "round", borderColor: "red", paddingX: 1, flexDirection: "column", width, children: [
7824
7828
  /* @__PURE__ */ jsxs7(Text7, { bold: true, color: "red", children: [
7825
7829
  recordOnly ? "LOGGED ONLY (not enforced)" : "WOULD HAVE BLOCKED",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node9/proxy",
3
- "version": "2.43.0",
3
+ "version": "2.44.0",
4
4
  "description": "Access control for AI agents. Set what Claude Code, Codex, Gemini, Cursor and any MCP server are allowed to do, review risky actions before they run, and keep every action on the record.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",