@solongate/proxy 0.81.34 → 0.81.35

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/index.js CHANGED
@@ -7409,6 +7409,7 @@ function StreamLine({ e, loc, selected }) {
7409
7409
  /* @__PURE__ */ jsx2(Text2, { color: e.evalMs != null && e.evalMs > 500 ? theme.warn : theme.dim, children: (e.evalMs != null ? `${e.evalMs}ms` : "\u2014").padEnd(7) }),
7410
7410
  /* @__PURE__ */ jsx2(Text2, { color: theme.dim, children: truncate2(e.agent ?? "-", 11).padEnd(12) }),
7411
7411
  e.dlp ? /* @__PURE__ */ jsx2(Text2, { color: theme.bad, children: "DLP! " }) : null,
7412
+ e.burst ? /* @__PURE__ */ jsx2(Text2, { color: theme.warn, children: "RL! " }) : null,
7412
7413
  e.rule && e.decision !== "ALLOW" ? /* @__PURE__ */ jsx2(Text2, { color: theme.bad, children: truncate2(e.rule, 14) + " " }) : null,
7413
7414
  /* @__PURE__ */ jsx2(Text2, { color: theme.dim, children: e.detail })
7414
7415
  ] });
@@ -9258,6 +9259,7 @@ function AuditPanel({ active: active2, focused }) {
9258
9259
  /* @__PURE__ */ jsx6(Detail, { label: "agent", value: current.agent ?? "\u2014" }),
9259
9260
  /* @__PURE__ */ jsx6(Detail, { label: "session", value: current.session ?? "\u2014" }),
9260
9261
  /* @__PURE__ */ jsx6(Detail, { label: "dlp", value: current.dlp.length ? current.dlp.join(", ") : "none", color: current.dlp.length ? theme.bad : void 0 }),
9262
+ /* @__PURE__ */ jsx6(Detail, { label: "ratelimit", value: current.burst ? "BURST \u2014 over the limit for this agent" : "no", color: current.burst ? theme.bad : void 0 }),
9261
9263
  /* @__PURE__ */ jsx6(Detail, { label: "when", value: new Date(current.at).toLocaleString() + (current.evalMs != null ? ` \xB7 eval ${current.evalMs}ms` : "") }),
9262
9264
  /* @__PURE__ */ jsx6(Text6, { color: theme.dim, children: `arguments \u2014 full \xB7 ${argLines.length} lines${maxScroll ? ` \xB7 \u25BC${maxScroll - off} more \xB7 \u2191\u2193 scroll` : ""}` }),
9263
9265
  /* @__PURE__ */ jsx6(Box6, { flexDirection: "column", height: argBudget, overflow: "hidden", children: argWin.map((l, i) => /* @__PURE__ */ jsx6(Text6, { wrap: "truncate", children: l || " " }, off + i)) }),
@@ -9372,7 +9374,7 @@ function AuditPanel({ active: active2, focused }) {
9372
9374
  const maxStart = Math.max(0, pageRows.length - listRows);
9373
9375
  const start = Math.min(Math.max(0, selClamped - Math.floor((listRows - 1) / 2)), maxStart);
9374
9376
  const windowed = pageRows.slice(start, start + listRows);
9375
- const reasonW = Math.min(60, Math.max(12, cols - 67));
9377
+ const reasonW = Math.min(58, Math.max(12, cols - 71));
9376
9378
  return /* @__PURE__ */ jsx6(DataView, { loading: logsLoading && !frozen, error: source === "cloud" ? cloudQ.error : localQ.error, children: /* @__PURE__ */ jsxs6(Box6, { flexDirection: "column", children: [
9377
9379
  strip,
9378
9380
  copyBanner,
@@ -9417,7 +9419,7 @@ function AuditPanel({ active: active2, focused }) {
9417
9419
  { header: "TOOL", width: 18 },
9418
9420
  { header: "AGENT", width: 14 },
9419
9421
  { header: "REASON", width: reasonW },
9420
- { header: "DLP", width: 4 },
9422
+ { header: "SIGNAL", width: 8 },
9421
9423
  { header: "WHEN", width: 6 }
9422
9424
  ],
9423
9425
  rows: windowed.map((e, i) => rowFor(e, start + i === selClamped && focused, reasonW))
@@ -9431,13 +9433,14 @@ function AuditPanel({ active: active2, focused }) {
9431
9433
  ] }) });
9432
9434
  }
9433
9435
  function rowFor(e, active2, reasonW) {
9436
+ const sig = [e.dlp.length ? `DLP${e.dlp.length > 1 ? e.dlp.length : ""}` : "", e.burst ? "RL" : ""].filter(Boolean).join(" ");
9434
9437
  return [
9435
9438
  { value: active2 ? "\u25B8" : "", color: theme.accentBright },
9436
9439
  { value: e.decision, color: decisionColor(e.decision) },
9437
9440
  { value: truncate2(e.tool, 18), color: theme.accent },
9438
9441
  { value: truncate2(e.agent ?? "\u2014", 14), dim: true },
9439
9442
  { value: truncate2(e.reason ?? e.args ?? "\u2014", reasonW) },
9440
- { value: e.dlp.length ? String(e.dlp.length) : "0", color: e.dlp.length ? theme.bad : void 0, dim: !e.dlp.length },
9443
+ { value: sig || "\xB7", color: sig ? theme.bad : void 0, dim: !sig },
9441
9444
  { value: ago(e.at), dim: true }
9442
9445
  ];
9443
9446
  }
@@ -9848,7 +9851,7 @@ var init_App = __esm({
9848
9851
  { label: "Audit", Panel: AuditPanel },
9849
9852
  { label: "Settings", Panel: SettingsPanel }
9850
9853
  ];
9851
- BANNER_HEX = ["#1432A0", "#2850BE", "#3C6ED7", "#5A8CE6", "#82AAF0", "#AAC8FA"];
9854
+ BANNER_HEX = ["white", "white", "white", "white", "white", "white"];
9852
9855
  HELP = [
9853
9856
  ["Global", [["\u2191\u2193", "move between sections"], ["\u2192 / enter", "open a section"], ["\u2190 / esc", "back to the menu"], ["?", "this help"], ["q", "quit"]]],
9854
9857
  ["Live", [["\u2191\u2193", "select a stream row"], ["enter", "full entry content"], ["w", "whitelist the selected DENY"], ["b", "block the selected ALLOW"], ["d / x / r", "filter denies / dlp / rate-limit"], ["f", "local / cloud filter"], ["/", "search"], ["s", "sessions (\u2191\u2193 pick, enter open)"], ["space", "copy mode (freeze)"]]],
package/dist/tui/index.js CHANGED
@@ -802,6 +802,7 @@ function StreamLine({ e, loc, selected }) {
802
802
  /* @__PURE__ */ jsx2(Text2, { color: e.evalMs != null && e.evalMs > 500 ? theme.warn : theme.dim, children: (e.evalMs != null ? `${e.evalMs}ms` : "\u2014").padEnd(7) }),
803
803
  /* @__PURE__ */ jsx2(Text2, { color: theme.dim, children: truncate(e.agent ?? "-", 11).padEnd(12) }),
804
804
  e.dlp ? /* @__PURE__ */ jsx2(Text2, { color: theme.bad, children: "DLP! " }) : null,
805
+ e.burst ? /* @__PURE__ */ jsx2(Text2, { color: theme.warn, children: "RL! " }) : null,
805
806
  e.rule && e.decision !== "ALLOW" ? /* @__PURE__ */ jsx2(Text2, { color: theme.bad, children: truncate(e.rule, 14) + " " }) : null,
806
807
  /* @__PURE__ */ jsx2(Text2, { color: theme.dim, children: e.detail })
807
808
  ] });
@@ -2665,6 +2666,7 @@ function AuditPanel({ active: active2, focused }) {
2665
2666
  /* @__PURE__ */ jsx6(Detail, { label: "agent", value: current.agent ?? "\u2014" }),
2666
2667
  /* @__PURE__ */ jsx6(Detail, { label: "session", value: current.session ?? "\u2014" }),
2667
2668
  /* @__PURE__ */ jsx6(Detail, { label: "dlp", value: current.dlp.length ? current.dlp.join(", ") : "none", color: current.dlp.length ? theme.bad : void 0 }),
2669
+ /* @__PURE__ */ jsx6(Detail, { label: "ratelimit", value: current.burst ? "BURST \u2014 over the limit for this agent" : "no", color: current.burst ? theme.bad : void 0 }),
2668
2670
  /* @__PURE__ */ jsx6(Detail, { label: "when", value: new Date(current.at).toLocaleString() + (current.evalMs != null ? ` \xB7 eval ${current.evalMs}ms` : "") }),
2669
2671
  /* @__PURE__ */ jsx6(Text6, { color: theme.dim, children: `arguments \u2014 full \xB7 ${argLines.length} lines${maxScroll ? ` \xB7 \u25BC${maxScroll - off} more \xB7 \u2191\u2193 scroll` : ""}` }),
2670
2672
  /* @__PURE__ */ jsx6(Box6, { flexDirection: "column", height: argBudget, overflow: "hidden", children: argWin.map((l, i) => /* @__PURE__ */ jsx6(Text6, { wrap: "truncate", children: l || " " }, off + i)) }),
@@ -2779,7 +2781,7 @@ function AuditPanel({ active: active2, focused }) {
2779
2781
  const maxStart = Math.max(0, pageRows.length - listRows);
2780
2782
  const start = Math.min(Math.max(0, selClamped - Math.floor((listRows - 1) / 2)), maxStart);
2781
2783
  const windowed = pageRows.slice(start, start + listRows);
2782
- const reasonW = Math.min(60, Math.max(12, cols - 67));
2784
+ const reasonW = Math.min(58, Math.max(12, cols - 71));
2783
2785
  return /* @__PURE__ */ jsx6(DataView, { loading: logsLoading && !frozen, error: source === "cloud" ? cloudQ.error : localQ.error, children: /* @__PURE__ */ jsxs6(Box6, { flexDirection: "column", children: [
2784
2786
  strip,
2785
2787
  copyBanner,
@@ -2824,7 +2826,7 @@ function AuditPanel({ active: active2, focused }) {
2824
2826
  { header: "TOOL", width: 18 },
2825
2827
  { header: "AGENT", width: 14 },
2826
2828
  { header: "REASON", width: reasonW },
2827
- { header: "DLP", width: 4 },
2829
+ { header: "SIGNAL", width: 8 },
2828
2830
  { header: "WHEN", width: 6 }
2829
2831
  ],
2830
2832
  rows: windowed.map((e, i) => rowFor(e, start + i === selClamped && focused, reasonW))
@@ -2838,13 +2840,14 @@ function AuditPanel({ active: active2, focused }) {
2838
2840
  ] }) });
2839
2841
  }
2840
2842
  function rowFor(e, active2, reasonW) {
2843
+ const sig = [e.dlp.length ? `DLP${e.dlp.length > 1 ? e.dlp.length : ""}` : "", e.burst ? "RL" : ""].filter(Boolean).join(" ");
2841
2844
  return [
2842
2845
  { value: active2 ? "\u25B8" : "", color: theme.accentBright },
2843
2846
  { value: e.decision, color: decisionColor(e.decision) },
2844
2847
  { value: truncate(e.tool, 18), color: theme.accent },
2845
2848
  { value: truncate(e.agent ?? "\u2014", 14), dim: true },
2846
2849
  { value: truncate(e.reason ?? e.args ?? "\u2014", reasonW) },
2847
- { value: e.dlp.length ? String(e.dlp.length) : "0", color: e.dlp.length ? theme.bad : void 0, dim: !e.dlp.length },
2850
+ { value: sig || "\xB7", color: sig ? theme.bad : void 0, dim: !sig },
2848
2851
  { value: ago(e.at), dim: true }
2849
2852
  ];
2850
2853
  }
@@ -3082,7 +3085,7 @@ var SECTIONS = [
3082
3085
  { label: "Audit", Panel: AuditPanel },
3083
3086
  { label: "Settings", Panel: SettingsPanel }
3084
3087
  ];
3085
- var BANNER_HEX = ["#1432A0", "#2850BE", "#3C6ED7", "#5A8CE6", "#82AAF0", "#AAC8FA"];
3088
+ var BANNER_HEX = ["white", "white", "white", "white", "white", "white"];
3086
3089
  function Banner({ cols }) {
3087
3090
  const wide = cols >= 82;
3088
3091
  if (!wide) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solongate/proxy",
3
- "version": "0.81.34",
3
+ "version": "0.81.35",
4
4
  "description": "AI tool security proxy: protect any AI tool server with customizable policies, path/command constraints, rate limiting, and audit logging. No code changes required.",
5
5
  "type": "module",
6
6
  "bin": {