@darkhunt-security/endpoint-codex 0.9.18 → 0.9.20

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "darkhunt-guard",
3
- "version": "0.9.18",
3
+ "version": "0.9.20",
4
4
  "hooks": "./hooks/hooks.json",
5
5
  "description": "Darkhunt endpoint plugin for Codex CLI \u2014 full session trace capture and PreToolUse guardrails.",
6
6
  "author": {
@@ -18330,7 +18330,7 @@ function capPayload(value, limit = PAYLOAD_LIMIT) {
18330
18330
  function capText(text, limit = PAYLOAD_LIMIT) {
18331
18331
  return capPayload(text, limit);
18332
18332
  }
18333
- var TOOL_SUMMARY_LIMIT = 2e3;
18333
+ var TOOL_SUMMARY_LIMIT = 1e5;
18334
18334
  function summarize(output) {
18335
18335
  const text = typeof output === "string" ? output : JSON.stringify(output ?? null);
18336
18336
  if (text.length <= TOOL_SUMMARY_LIMIT)
@@ -18528,7 +18528,7 @@ var SessionEmitter = class {
18528
18528
  });
18529
18529
  this.toolSpans.delete(record.toolCallId);
18530
18530
  }
18531
- this.pendingToolResults.push(summarize(record.output));
18531
+ this.pendingToolResults.push(summarize(record.outputText ?? record.output));
18532
18532
  break;
18533
18533
  }
18534
18534
  case "compaction":
@@ -18316,7 +18316,7 @@ function capPayload(value, limit = PAYLOAD_LIMIT) {
18316
18316
  function capText(text, limit = PAYLOAD_LIMIT) {
18317
18317
  return capPayload(text, limit);
18318
18318
  }
18319
- var TOOL_SUMMARY_LIMIT = 2e3;
18319
+ var TOOL_SUMMARY_LIMIT = 1e5;
18320
18320
  function summarize(output) {
18321
18321
  const text = typeof output === "string" ? output : JSON.stringify(output ?? null);
18322
18322
  if (text.length <= TOOL_SUMMARY_LIMIT)
@@ -18514,7 +18514,7 @@ var SessionEmitter = class {
18514
18514
  });
18515
18515
  this.toolSpans.delete(record.toolCallId);
18516
18516
  }
18517
- this.pendingToolResults.push(summarize(record.output));
18517
+ this.pendingToolResults.push(summarize(record.outputText ?? record.output));
18518
18518
  break;
18519
18519
  }
18520
18520
  case "compaction":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@darkhunt-security/endpoint-codex",
3
- "version": "0.9.18",
3
+ "version": "0.9.20",
4
4
  "type": "module",
5
5
  "description": "Darkhunt endpoint adapter for Codex CLI: hook codec, rollout transcript mapper, plugin manifest.",
6
6
  "bin": {