nexus-agents 8.47.10 → 8.47.11

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 (24) hide show
  1. package/dist/{chunk-KNZKA3MI.js → chunk-67LMMHAI.js} +2 -2
  2. package/dist/{chunk-OKPEXBOI.js → chunk-AKUQA3ER.js} +2 -2
  3. package/dist/{chunk-CXT433H4.js → chunk-B7T5JDPV.js} +3 -3
  4. package/dist/{chunk-LBODVTW5.js → chunk-K7WLHNKH.js} +7 -7
  5. package/dist/{chunk-YVXX6EN2.js → chunk-TBF46HBC.js} +2 -2
  6. package/dist/{chunk-Y3FWKEHT.js → chunk-XFSOE2UU.js} +42 -8
  7. package/dist/{chunk-Y3FWKEHT.js.map → chunk-XFSOE2UU.js.map} +1 -1
  8. package/dist/cli.d.ts +1 -1
  9. package/dist/cli.js +7 -7
  10. package/dist/{consensus-vote-777WYHSY.js → consensus-vote-ZBAGPGOG.js} +4 -4
  11. package/dist/{consensus-vote-types-BKoR41Kx.d.ts → consensus-vote-types-BAJJebed.d.ts} +9 -0
  12. package/dist/{improvement-review-UTVUJVBH.js → improvement-review-MZEV5GFW.js} +4 -4
  13. package/dist/index.d.ts +2 -2
  14. package/dist/index.js +6 -6
  15. package/dist/{setup-data-dir-VK7WVGLP.js → setup-data-dir-WUQEPLFM.js} +3 -3
  16. package/package.json +1 -1
  17. /package/dist/{chunk-KNZKA3MI.js.map → chunk-67LMMHAI.js.map} +0 -0
  18. /package/dist/{chunk-OKPEXBOI.js.map → chunk-AKUQA3ER.js.map} +0 -0
  19. /package/dist/{chunk-CXT433H4.js.map → chunk-B7T5JDPV.js.map} +0 -0
  20. /package/dist/{chunk-LBODVTW5.js.map → chunk-K7WLHNKH.js.map} +0 -0
  21. /package/dist/{chunk-YVXX6EN2.js.map → chunk-TBF46HBC.js.map} +0 -0
  22. /package/dist/{consensus-vote-777WYHSY.js.map → consensus-vote-ZBAGPGOG.js.map} +0 -0
  23. /package/dist/{improvement-review-UTVUJVBH.js.map → improvement-review-MZEV5GFW.js.map} +0 -0
  24. /package/dist/{setup-data-dir-VK7WVGLP.js.map → setup-data-dir-WUQEPLFM.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  // src/version.ts
2
2
  import semver from "semver";
3
- var VERSION = true ? "8.47.10" : "dev";
3
+ var VERSION = true ? "8.47.11" : "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-KNZKA3MI.js.map
14
+ //# sourceMappingURL=chunk-67LMMHAI.js.map
@@ -7,7 +7,7 @@ import {
7
7
  toolStructuredError,
8
8
  toolSuccessStructured,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-YVXX6EN2.js";
10
+ } from "./chunk-TBF46HBC.js";
11
11
  import {
12
12
  JsonlStore,
13
13
  SECURITY_KEYWORDS,
@@ -2173,4 +2173,4 @@ export {
2173
2173
  runImprovementReview,
2174
2174
  registerImprovementReviewTool
2175
2175
  };
2176
- //# sourceMappingURL=chunk-OKPEXBOI.js.map
2176
+ //# sourceMappingURL=chunk-AKUQA3ER.js.map
@@ -8,7 +8,7 @@ import {
8
8
  NODE_ENGINE_RANGE,
9
9
  VERSION,
10
10
  isNodeVersionSupported
11
- } from "./chunk-KNZKA3MI.js";
11
+ } from "./chunk-67LMMHAI.js";
12
12
  import {
13
13
  claimGlobalRegistry
14
14
  } from "./chunk-QOKB6MWY.js";
@@ -1247,7 +1247,7 @@ async function runDoctorFix(result) {
1247
1247
  writeLine2("\u2500".repeat(40));
1248
1248
  let fixCount = 0;
1249
1249
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
1250
- const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-VK7WVGLP.js");
1250
+ const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-WUQEPLFM.js");
1251
1251
  const outcome = describeDataDirFix2(initDataDirectories2());
1252
1252
  writeLine2(outcome.line);
1253
1253
  if (outcome.counted) fixCount++;
@@ -1349,4 +1349,4 @@ export {
1349
1349
  startStdioServer,
1350
1350
  closeServer
1351
1351
  };
1352
- //# sourceMappingURL=chunk-CXT433H4.js.map
1352
+ //# sourceMappingURL=chunk-B7T5JDPV.js.map
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-CXT433H4.js";
24
+ } from "./chunk-B7T5JDPV.js";
25
25
  import {
26
26
  executeExpert
27
27
  } from "./chunk-7QY3RIIY.js";
@@ -55,7 +55,7 @@ import {
55
55
  toJobSummary,
56
56
  updateStage,
57
57
  writeJobCancelled
58
- } from "./chunk-Y3FWKEHT.js";
58
+ } from "./chunk-XFSOE2UU.js";
59
59
  import {
60
60
  allOf,
61
61
  anyOf
@@ -75,7 +75,7 @@ import {
75
75
  } from "./chunk-7I3LY4HJ.js";
76
76
  import {
77
77
  withPrerequisite
78
- } from "./chunk-OKPEXBOI.js";
78
+ } from "./chunk-AKUQA3ER.js";
79
79
  import {
80
80
  NOOP_NOTIFIER,
81
81
  RateLimiter,
@@ -100,7 +100,7 @@ import {
100
100
  withAuditTrail,
101
101
  withProgressHeartbeat,
102
102
  wrapToolWithTimeout
103
- } from "./chunk-YVXX6EN2.js";
103
+ } from "./chunk-TBF46HBC.js";
104
104
  import {
105
105
  createAuditTrail,
106
106
  createGraphAuditBridge,
@@ -46162,7 +46162,7 @@ function buildVotingInput(plan, config) {
46162
46162
  }
46163
46163
  async function executeSingleVote(plan, config, log) {
46164
46164
  try {
46165
- const { executeVoting } = await import("./consensus-vote-777WYHSY.js");
46165
+ const { executeVoting } = await import("./consensus-vote-ZBAGPGOG.js");
46166
46166
  const input = buildVotingInput(plan, config);
46167
46167
  const result = await executeVoting(input, log);
46168
46168
  return parseVotingResult(result);
@@ -47957,7 +47957,7 @@ ${contextBlock}`;
47957
47957
  const strategy = config.votingStrategy ?? "higher_order";
47958
47958
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47959
47959
  try {
47960
- const { executeVoting } = await import("./consensus-vote-777WYHSY.js");
47960
+ const { executeVoting } = await import("./consensus-vote-ZBAGPGOG.js");
47961
47961
  const votingResult = await executeVoting(
47962
47962
  {
47963
47963
  proposal: buildVoteProposal(plan, research),
@@ -56698,4 +56698,4 @@ export {
56698
56698
  startPipelineEventBridge,
56699
56699
  shutdownPipelineEventBridge
56700
56700
  };
56701
- //# sourceMappingURL=chunk-LBODVTW5.js.map
56701
+ //# sourceMappingURL=chunk-K7WLHNKH.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-KNZKA3MI.js";
3
+ } from "./chunk-67LMMHAI.js";
4
4
  import {
5
5
  emitClawGuardViolation
6
6
  } from "./chunk-JOVBHYWW.js";
@@ -2317,4 +2317,4 @@ export {
2317
2317
  VOTING_THRESHOLDS,
2318
2318
  ConsensusMetricsSchema
2319
2319
  };
2320
- //# sourceMappingURL=chunk-YVXX6EN2.js.map
2320
+ //# sourceMappingURL=chunk-TBF46HBC.js.map
@@ -23,10 +23,10 @@ import {
23
23
  toolSuccessStructured,
24
24
  withProgressHeartbeat,
25
25
  wrapToolWithTimeout
26
- } from "./chunk-YVXX6EN2.js";
26
+ } from "./chunk-TBF46HBC.js";
27
27
  import {
28
28
  VERSION
29
- } from "./chunk-KNZKA3MI.js";
29
+ } from "./chunk-67LMMHAI.js";
30
30
  import {
31
31
  assessPanelIndependence,
32
32
  countDistinctModels,
@@ -4920,7 +4920,10 @@ function toAgentVoteSummary(result) {
4920
4920
  reasoning: result.vote.reasoning,
4921
4921
  simulated: result.source === "simulation",
4922
4922
  error: result.source === "error",
4923
- ...result.vote.rejectionCategories !== void 0 ? { rejectionCategories: result.vote.rejectionCategories } : {}
4923
+ ...result.vote.rejectionCategories !== void 0 ? { rejectionCategories: result.vote.rejectionCategories } : {},
4924
+ // #6050: a caller acting on the live result sees what the ledger will.
4925
+ // Present only when true, so a clean panel's response is unchanged.
4926
+ ...result.retried === true ? { retried: true } : {}
4924
4927
  };
4925
4928
  }
4926
4929
  function mapOutcomeToDecision(outcome) {
@@ -5200,7 +5203,28 @@ var VoterSummarySchema = z7.object({
5200
5203
  */
5201
5204
  reasoning: z7.string().max(MAX_VOTER_REASONING_CHARS).optional(),
5202
5205
  /** True when `reasoning` was clipped to {@link MAX_VOTER_REASONING_CHARS}. */
5203
- reasoningTruncated: z7.literal(true).optional()
5206
+ reasoningTruncated: z7.literal(true).optional(),
5207
+ /**
5208
+ * True when this seat was recovered by the per-role retry (#6050, schema 1.7).
5209
+ *
5210
+ * `voter-retry.ts` has set `retried: true` on recovered results since it was
5211
+ * written, and `vote-types.ts` states the reason: the flag is "what makes the
5212
+ * recovery visible instead of indistinguishable from a clean first attempt".
5213
+ * It had one producer and ZERO consumers — both summarizers and the record
5214
+ * dropped it — so the field existed, was documented, and never reached
5215
+ * anything that could act on it.
5216
+ *
5217
+ * A retried seat is weaker evidence than a first-pass one: the model was
5218
+ * unavailable or timed out, and the recovery ran under different conditions.
5219
+ * For a ratification vote on a governor-path change, "7 of 7 answered" and
5220
+ * "6 answered, 1 recovered on retry" are different facts about the scrutiny
5221
+ * the change received, and the record stated the first for both.
5222
+ *
5223
+ * `literal(true)` and optional, on the `reasoningTruncated` rule: a clean
5224
+ * seat carries no key, so its entry re-hashes byte-identical and every
5225
+ * historical record still verifies.
5226
+ */
5227
+ retried: z7.literal(true).optional()
5204
5228
  }).strict();
5205
5229
  var VoteRecordCountsSchema = z7.object({
5206
5230
  approve: z7.number().int().nonnegative(),
@@ -5222,7 +5246,7 @@ var VoteRecordSchema = z7.object({
5222
5246
  * `ratifies` is folded into the self-hash ONLY when present (see
5223
5247
  * {@link computeVoteRecordHash}).
5224
5248
  */
5225
- version: z7.enum(["1.1", "1.2", "1.3", "1.4", "1.5", "1.6"]),
5249
+ version: z7.enum(["1.1", "1.2", "1.3", "1.4", "1.5", "1.6", "1.7"]),
5226
5250
  /** Unique record id (also usable as a `ratificationVoteRef`). */
5227
5251
  id: z7.string().min(1),
5228
5252
  /**
@@ -5375,7 +5399,12 @@ function computeVoteRecordHash(payload) {
5375
5399
  decision: v.decision,
5376
5400
  confidence: v.confidence,
5377
5401
  ...v.reasoning !== void 0 ? { reasoning: v.reasoning } : {},
5378
- ...v.reasoningTruncated === true ? { reasoningTruncated: true } : {}
5402
+ ...v.reasoningTruncated === true ? { reasoningTruncated: true } : {},
5403
+ // #6050: hash-covered on the same append-when-present rule. Omitting it
5404
+ // here would let a retried seat be edited to a clean one without moving
5405
+ // the hash -- attesting to a claim about panel quality the chain does not
5406
+ // actually cover.
5407
+ ...v.retried === true ? { retried: true } : {}
5379
5408
  })),
5380
5409
  correlationId: payload.correlationId ?? null
5381
5410
  };
@@ -5411,7 +5440,11 @@ function toVoterSummaries(votes) {
5411
5440
  role: v.role,
5412
5441
  decision: vote.decision,
5413
5442
  confidence: vote.confidence,
5414
- ...reasoningFields(vote.reasoning)
5443
+ ...reasoningFields(vote.reasoning),
5444
+ // #6050: carried, not dropped. `voter-retry.ts` has set this on every
5445
+ // recovered seat since it was written and nothing read it, so the record
5446
+ // said "7 of 7 answered cleanly" for a panel that needed a retry.
5447
+ ...v.retried === true ? { retried: true } : {}
5415
5448
  });
5416
5449
  }
5417
5450
  return summaries;
@@ -5435,6 +5468,7 @@ function deriveOptionFields(votes, declaredOptions) {
5435
5468
  return { optionTally: tallied ?? [], optionCoverage: coverageOf(votes) };
5436
5469
  }
5437
5470
  function recordVersion(optionTally, optionCoverage, panelCoverage, voters) {
5471
+ if (voters.some((v) => v.retried === true)) return "1.7";
5438
5472
  if (voters.some((v) => v.reasoning !== void 0)) return "1.6";
5439
5473
  if (panelCoverage !== void 0) return "1.5";
5440
5474
  if (optionCoverage !== void 0) return "1.4";
@@ -7874,4 +7908,4 @@ export {
7874
7908
  CONSENSUS_VOTE_TOOL_SCHEMA,
7875
7909
  registerConsensusVoteTool
7876
7910
  };
7877
- //# sourceMappingURL=chunk-Y3FWKEHT.js.map
7911
+ //# sourceMappingURL=chunk-XFSOE2UU.js.map