nexus-agents 8.48.1 → 8.48.2

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
  // src/version.ts
2
2
  import semver from "semver";
3
- var VERSION = true ? "8.48.1" : "dev";
3
+ var VERSION = true ? "8.48.2" : "dev";
4
4
  var NODE_ENGINE_RANGE = ">=22.5.0";
5
5
  function isNodeVersionSupported(version) {
6
6
  return semver.satisfies(version, NODE_ENGINE_RANGE);
@@ -11,4 +11,4 @@ export {
11
11
  NODE_ENGINE_RANGE,
12
12
  isNodeVersionSupported
13
13
  };
14
- //# sourceMappingURL=chunk-OUEZ4AMS.js.map
14
+ //# sourceMappingURL=chunk-2EH4T5I6.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-OUEZ4AMS.js";
3
+ } from "./chunk-2EH4T5I6.js";
4
4
  import {
5
5
  emitClawGuardViolation
6
6
  } from "./chunk-MOVW4ZFU.js";
@@ -2360,4 +2360,4 @@ export {
2360
2360
  VOTING_THRESHOLDS,
2361
2361
  ConsensusMetricsSchema
2362
2362
  };
2363
- //# sourceMappingURL=chunk-A7GKD65R.js.map
2363
+ //# sourceMappingURL=chunk-5IB64MNO.js.map
@@ -23,10 +23,10 @@ import {
23
23
  toolSuccessStructured,
24
24
  withProgressHeartbeat,
25
25
  wrapToolWithTimeout
26
- } from "./chunk-A7GKD65R.js";
26
+ } from "./chunk-5IB64MNO.js";
27
27
  import {
28
28
  VERSION
29
- } from "./chunk-OUEZ4AMS.js";
29
+ } from "./chunk-2EH4T5I6.js";
30
30
  import {
31
31
  assessPanelIndependence,
32
32
  countDistinctModels,
@@ -5246,6 +5246,21 @@ var VoterSummarySchema = z7.object({
5246
5246
  */
5247
5247
  retried: z7.literal(true).optional()
5248
5248
  }).strict();
5249
+ var VOTER_SUMMARY_KEYS = [
5250
+ "role",
5251
+ "decision",
5252
+ "confidence",
5253
+ "reasoning",
5254
+ "reasoningTruncated",
5255
+ "retried"
5256
+ ];
5257
+ function projectVoterSummary(v) {
5258
+ const out = {};
5259
+ for (const key of VOTER_SUMMARY_KEYS) {
5260
+ if (v[key] !== void 0) out[key] = v[key];
5261
+ }
5262
+ return out;
5263
+ }
5249
5264
  var VoteRecordCountsSchema = z7.object({
5250
5265
  approve: z7.number().int().nonnegative(),
5251
5266
  reject: z7.number().int().nonnegative(),
@@ -5414,18 +5429,7 @@ function computeVoteRecordHash(payload) {
5414
5429
  // fields: a pre-1.6 voter entry re-hashes byte-identical, so every
5415
5430
  // historical record still verifies, while editing or removing a stored
5416
5431
  // reasoning flips the hash.
5417
- voters: payload.voters.map((v) => ({
5418
- role: v.role,
5419
- decision: v.decision,
5420
- confidence: v.confidence,
5421
- ...v.reasoning !== void 0 ? { reasoning: v.reasoning } : {},
5422
- ...v.reasoningTruncated === true ? { reasoningTruncated: true } : {},
5423
- // #6050: hash-covered on the same append-when-present rule. Omitting it
5424
- // here would let a retried seat be edited to a clean one without moving
5425
- // the hash -- attesting to a claim about panel quality the chain does not
5426
- // actually cover.
5427
- ...v.retried === true ? { retried: true } : {}
5428
- })),
5432
+ voters: payload.voters.map(projectVoterSummary),
5429
5433
  correlationId: payload.correlationId ?? null
5430
5434
  };
5431
5435
  const canonical = JSON.stringify(foldOptionalFields(base, payload));
@@ -7935,4 +7939,4 @@ export {
7935
7939
  CONSENSUS_VOTE_TOOL_SCHEMA,
7936
7940
  registerConsensusVoteTool
7937
7941
  };
7938
- //# sourceMappingURL=chunk-HBCY7CEH.js.map
7942
+ //# sourceMappingURL=chunk-DTUJCA6M.js.map