nexus-agents 8.55.7 → 8.56.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.
Files changed (25) hide show
  1. package/dist/{chunk-FNL43KEP.js → chunk-5W55WXLY.js} +2 -2
  2. package/dist/{chunk-WJRD5RYE.js → chunk-BWP3RTR2.js} +15 -11
  3. package/dist/chunk-BWP3RTR2.js.map +1 -0
  4. package/dist/{chunk-LAUGODMA.js → chunk-HXITPFTR.js} +75 -37
  5. package/dist/{chunk-LAUGODMA.js.map → chunk-HXITPFTR.js.map} +1 -1
  6. package/dist/{chunk-2CD7UKWG.js → chunk-M2ZQXDSO.js} +3 -3
  7. package/dist/{chunk-7KVII2DY.js → chunk-MO6FSEFJ.js} +265 -148
  8. package/dist/{chunk-7KVII2DY.js.map → chunk-MO6FSEFJ.js.map} +1 -1
  9. package/dist/{chunk-YJPKZHKU.js → chunk-UURJGJTW.js} +2 -2
  10. package/dist/cli.d.ts +1 -1
  11. package/dist/cli.js +86 -27
  12. package/dist/cli.js.map +1 -1
  13. package/dist/{consensus-vote-X5C5PLII.js → consensus-vote-JHCRRDH5.js} +4 -4
  14. package/dist/{improvement-review-EALQJCQM.js → improvement-review-MTQWL4BT.js} +4 -4
  15. package/dist/index.d.ts +29 -2
  16. package/dist/index.js +6 -6
  17. package/dist/{setup-data-dir-Q4AC6LWI.js → setup-data-dir-RXY2PWDX.js} +3 -3
  18. package/package.json +1 -1
  19. package/dist/chunk-WJRD5RYE.js.map +0 -1
  20. /package/dist/{chunk-FNL43KEP.js.map → chunk-5W55WXLY.js.map} +0 -0
  21. /package/dist/{chunk-2CD7UKWG.js.map → chunk-M2ZQXDSO.js.map} +0 -0
  22. /package/dist/{chunk-YJPKZHKU.js.map → chunk-UURJGJTW.js.map} +0 -0
  23. /package/dist/{consensus-vote-X5C5PLII.js.map → consensus-vote-JHCRRDH5.js.map} +0 -0
  24. /package/dist/{improvement-review-EALQJCQM.js.map → improvement-review-MTQWL4BT.js.map} +0 -0
  25. /package/dist/{setup-data-dir-Q4AC6LWI.js.map → setup-data-dir-RXY2PWDX.js.map} +0 -0
@@ -7,7 +7,7 @@ import {
7
7
  toolStructuredError,
8
8
  toolSuccessStructured,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-WJRD5RYE.js";
10
+ } from "./chunk-BWP3RTR2.js";
11
11
  import {
12
12
  JsonlStore,
13
13
  SECURITY_KEYWORDS,
@@ -2278,4 +2278,4 @@ export {
2278
2278
  runImprovementReview,
2279
2279
  registerImprovementReviewTool
2280
2280
  };
2281
- //# sourceMappingURL=chunk-FNL43KEP.js.map
2281
+ //# sourceMappingURL=chunk-5W55WXLY.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-YJPKZHKU.js";
3
+ } from "./chunk-UURJGJTW.js";
4
4
  import {
5
5
  emitClawGuardViolation
6
6
  } from "./chunk-VZSMNIRN.js";
@@ -1100,16 +1100,19 @@ function emitToolAudit({
1100
1100
  ...nearMiss ? { policyDecision: "would_deny" } : {}
1101
1101
  });
1102
1102
  }
1103
- function hashRawFields(fields, args) {
1104
- if (fields === void 0) return {};
1105
- if (typeof args !== "object" || args === null) return {};
1103
+ function measureRawFields(fields, args) {
1104
+ if (fields === void 0) return { rawFieldHashes: {}, rawFieldBytes: {} };
1105
+ if (typeof args !== "object" || args === null) return { rawFieldHashes: {}, rawFieldBytes: {} };
1106
1106
  const source = args;
1107
- const out = {};
1107
+ const rawFieldHashes = {};
1108
+ const rawFieldBytes = {};
1108
1109
  for (const [field, hash] of Object.entries(fields)) {
1109
1110
  const value = source[field];
1110
- if (typeof value === "string") out[field] = hash(value);
1111
+ if (typeof value !== "string") continue;
1112
+ rawFieldHashes[field] = hash(value);
1113
+ rawFieldBytes[field] = Buffer.byteLength(value, "utf-8");
1111
1114
  }
1112
- return out;
1115
+ return { rawFieldHashes, rawFieldBytes };
1113
1116
  }
1114
1117
  function unsanitizedContext(config, args) {
1115
1118
  return {
@@ -1117,7 +1120,7 @@ function unsanitizedContext(config, args) {
1117
1120
  commentsRemoved: 0,
1118
1121
  fieldsModified: 0,
1119
1122
  tagsRemoved: 0,
1120
- rawFieldHashes: hashRawFields(config.rawHashFields, args)
1123
+ ...measureRawFields(config.rawHashFields, args)
1121
1124
  };
1122
1125
  }
1123
1126
  function runPreChecks(config, args, mode, requestContext, logger) {
@@ -1138,8 +1141,9 @@ function runPreChecks(config, args, mode, requestContext, logger) {
1138
1141
  commentsRemoved: sanitizeResult.commentsRemoved,
1139
1142
  fieldsModified: sanitizeResult.modifiedCount,
1140
1143
  tagsRemoved: sanitizeResult.tagsRemoved,
1141
- // #5385: hashed from `args`, the RAW input, before sanitization touched it.
1142
- rawFieldHashes: hashRawFields(config.rawHashFields, args)
1144
+ // #5385/#6177: hashed and measured from `args`, the RAW input, before
1145
+ // sanitization touched it.
1146
+ ...measureRawFields(config.rawHashFields, args)
1143
1147
  };
1144
1148
  const refusal = checkSecurityTier(config.securityTier ?? "standard", sanitizeResult, logger);
1145
1149
  if (refusal !== null) {
@@ -2374,4 +2378,4 @@ export {
2374
2378
  DEFAULT_CONSENSUS_CONFIG,
2375
2379
  ConsensusMetricsSchema
2376
2380
  };
2377
- //# sourceMappingURL=chunk-WJRD5RYE.js.map
2381
+ //# sourceMappingURL=chunk-BWP3RTR2.js.map