nexus-agents 8.47.9 → 8.47.10

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.
@@ -8,7 +8,7 @@ import {
8
8
  NODE_ENGINE_RANGE,
9
9
  VERSION,
10
10
  isNodeVersionSupported
11
- } from "./chunk-KQBS4UW5.js";
11
+ } from "./chunk-KNZKA3MI.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-3TOTRWJ5.js");
1250
+ const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-VK7WVGLP.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-J4WZDK2X.js.map
1352
+ //# sourceMappingURL=chunk-CXT433H4.js.map
@@ -1,6 +1,6 @@
1
1
  // src/version.ts
2
2
  import semver from "semver";
3
- var VERSION = true ? "8.47.9" : "dev";
3
+ var VERSION = true ? "8.47.10" : "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-KQBS4UW5.js.map
14
+ //# sourceMappingURL=chunk-KNZKA3MI.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/version.ts"],"sourcesContent":["/**\n * nexus-agents - Version constant\n *\n * Injected at build time via tsup define from package.json.\n * Do NOT edit VERSION manually — it is replaced during build.\n */\n\nimport semver from 'semver';\n\ndeclare const __NEXUS_VERSION__: string;\n\nexport const VERSION: string = typeof __NEXUS_VERSION__ !== 'undefined' ? __NEXUS_VERSION__ : 'dev';\n\n/** Supported Node.js versions. Pinned to package.json by a regression test. */\nexport const NODE_ENGINE_RANGE = '>=22.5.0';\n\n/** Returns whether a Node.js version satisfies the package engine requirement. */\nexport function isNodeVersionSupported(version: string): boolean {\n return semver.satisfies(version, NODE_ENGINE_RANGE);\n}\n"],"mappings":";AAOA,OAAO,YAAY;AAIZ,IAAM,UAAkB,OAA2C,WAAoB;AAGvF,IAAM,oBAAoB;AAG1B,SAAS,uBAAuB,SAA0B;AAC/D,SAAO,OAAO,UAAU,SAAS,iBAAiB;AACpD;","names":[]}
1
+ {"version":3,"sources":["../src/version.ts"],"sourcesContent":["/**\n * nexus-agents - Version constant\n *\n * Injected at build time via tsup define from package.json.\n * Do NOT edit VERSION manually — it is replaced during build.\n */\n\nimport semver from 'semver';\n\ndeclare const __NEXUS_VERSION__: string;\n\nexport const VERSION: string = typeof __NEXUS_VERSION__ !== 'undefined' ? __NEXUS_VERSION__ : 'dev';\n\n/** Supported Node.js versions. Pinned to package.json by a regression test. */\nexport const NODE_ENGINE_RANGE = '>=22.5.0';\n\n/** Returns whether a Node.js version satisfies the package engine requirement. */\nexport function isNodeVersionSupported(version: string): boolean {\n return semver.satisfies(version, NODE_ENGINE_RANGE);\n}\n"],"mappings":";AAOA,OAAO,YAAY;AAIZ,IAAM,UAAkB,OAA2C,YAAoB;AAGvF,IAAM,oBAAoB;AAG1B,SAAS,uBAAuB,SAA0B;AAC/D,SAAO,OAAO,UAAU,SAAS,iBAAiB;AACpD;","names":[]}
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-J4WZDK2X.js";
24
+ } from "./chunk-CXT433H4.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-7WZHA4DG.js";
58
+ } from "./chunk-Y3FWKEHT.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-UPOY72RW.js";
78
+ } from "./chunk-OKPEXBOI.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-SNCZAGQZ.js";
103
+ } from "./chunk-YVXX6EN2.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-MLBVGI2A.js");
46165
+ const { executeVoting } = await import("./consensus-vote-777WYHSY.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-MLBVGI2A.js");
47960
+ const { executeVoting } = await import("./consensus-vote-777WYHSY.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-XF2MVUCH.js.map
56701
+ //# sourceMappingURL=chunk-LBODVTW5.js.map
@@ -7,7 +7,7 @@ import {
7
7
  toolStructuredError,
8
8
  toolSuccessStructured,
9
9
  wrapToolWithTimeout
10
- } from "./chunk-SNCZAGQZ.js";
10
+ } from "./chunk-YVXX6EN2.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-UPOY72RW.js.map
2176
+ //# sourceMappingURL=chunk-OKPEXBOI.js.map
@@ -23,10 +23,10 @@ import {
23
23
  toolSuccessStructured,
24
24
  withProgressHeartbeat,
25
25
  wrapToolWithTimeout
26
- } from "./chunk-SNCZAGQZ.js";
26
+ } from "./chunk-YVXX6EN2.js";
27
27
  import {
28
28
  VERSION
29
- } from "./chunk-KQBS4UW5.js";
29
+ } from "./chunk-KNZKA3MI.js";
30
30
  import {
31
31
  assessPanelIndependence,
32
32
  countDistinctModels,
@@ -5275,7 +5275,18 @@ var VoteRecordSchema = z7.object({
5275
5275
  * the EASIEST bar to clear, because every engaged voter approves while
5276
5276
  * choosing different things.
5277
5277
  */
5278
- optionTally: z7.array(VoteRecordOptionCountSchema).min(1).optional(),
5278
+ // No `.min(1)` (#6049). The rule this field's own docstring states is
5279
+ // "present only when the vote declared `options`" -- keyed on DECLARATION,
5280
+ // not on whether anyone picked one. `.min(1)` encoded the older, narrower
5281
+ // rule, so once the builder started emitting `[]` for "declared, nothing
5282
+ // attributable" the record appended fine and then failed to parse on read:
5283
+ // `too_small, minimum 1`. The write path does not validate, so the line
5284
+ // landed in the ledger and `parseVoteRecordsText` silently dropped it --
5285
+ // the case most worth auditing became the one no reader could see.
5286
+ //
5287
+ // Relaxing is a pure widening: no previously-valid record changes meaning
5288
+ // or hash, and no persisted record can currently hold an empty tally.
5289
+ optionTally: z7.array(VoteRecordOptionCountSchema).optional(),
5279
5290
  /**
5280
5291
  * Selection coverage for a multi-option vote (#4472, schema 1.4).
5281
5292
  *
@@ -5415,12 +5426,13 @@ function reasoningFields(reasoning) {
5415
5426
  function recordDecisionFor(input) {
5416
5427
  return input.resolvedDecision ?? outcomeToDecision(input.result, input.votes, input.errorVoided ?? false);
5417
5428
  }
5418
- function deriveOptionFields(votes) {
5419
- const optionTally = tallySelectedOptions(votes);
5420
- return {
5421
- optionTally,
5422
- optionCoverage: optionTally === void 0 ? void 0 : coverageOf(votes)
5423
- };
5429
+ function deriveOptionFields(votes, declaredOptions) {
5430
+ const tallied = tallySelectedOptions(votes);
5431
+ const hadOptions = declaredOptions !== void 0 && declaredOptions.length > 0;
5432
+ if (!hadOptions && tallied === void 0) {
5433
+ return { optionTally: void 0, optionCoverage: void 0 };
5434
+ }
5435
+ return { optionTally: tallied ?? [], optionCoverage: coverageOf(votes) };
5424
5436
  }
5425
5437
  function recordVersion(optionTally, optionCoverage, panelCoverage, voters) {
5426
5438
  if (voters.some((v) => v.reasoning !== void 0)) return "1.6";
@@ -5459,7 +5471,7 @@ function tallySelectedOptions(votes) {
5459
5471
  }
5460
5472
  function buildVoteRecord(input) {
5461
5473
  const proposalTruncated = input.proposal.length > MAX_PROPOSAL_RECORD_CHARS ? input.proposal.slice(0, MAX_PROPOSAL_RECORD_CHARS) + "..." : input.proposal;
5462
- const { optionTally, optionCoverage } = deriveOptionFields(input.votes);
5474
+ const { optionTally, optionCoverage } = deriveOptionFields(input.votes, input.declaredOptions);
5463
5475
  const panelCoverage = panelCoverageOf(input.votes);
5464
5476
  const voters = toVoterSummaries(input.votes);
5465
5477
  const payload = {
@@ -5777,6 +5789,7 @@ function recordAuthenticVote(args) {
5777
5789
  strategy: toRecordStrategy(args.strategy),
5778
5790
  result: args.result,
5779
5791
  votes: args.votes,
5792
+ declaredOptions: args.declaredOptions,
5780
5793
  resolvedDecision: args.resolvedDecision,
5781
5794
  ...args.errorVoided !== void 0 ? { errorVoided: args.errorVoided } : {},
5782
5795
  ...args.correlationId !== void 0 ? { correlationId: args.correlationId } : {},
@@ -7462,13 +7475,14 @@ function finalizeVotingResult(args) {
7462
7475
  if (args.higherOrderResult !== void 0) result.higherOrderResult = args.higherOrderResult;
7463
7476
  return result;
7464
7477
  }
7465
- function recordVoteSideEffects(proposal, strategy, result, logger11, ratifies) {
7478
+ function recordVoteSideEffects(proposal, strategy, result, logger11, declared) {
7466
7479
  const decisionId = `consensus-${String(getTimeProvider().now())}-${randomUUID2().slice(0, 8)}`;
7467
7480
  const voteRecord = recordAuthenticVote({
7468
7481
  proposal,
7469
7482
  strategy,
7470
7483
  result: result.result,
7471
7484
  votes: result.votes,
7485
+ declaredOptions: declared.options,
7472
7486
  // #4053: an error-policy short-circuit voided the vote → the PERSISTED record
7473
7487
  // must record `no_quorum`, matching the MCP response (not a stale `rejected`).
7474
7488
  errorVoided: result.policyReason !== void 0,
@@ -7479,7 +7493,7 @@ function recordVoteSideEffects(proposal, strategy, result, logger11, ratifies) {
7479
7493
  // this tool reports as `no_quorum`.
7480
7494
  resolvedDecision: toRecordDecision(result.decision),
7481
7495
  correlationId: decisionId,
7482
- ...ratifies !== void 0 ? { ratifies } : {}
7496
+ ...declared.ratifies !== void 0 ? { ratifies: declared.ratifies } : {}
7483
7497
  });
7484
7498
  let costSummary;
7485
7499
  try {
@@ -7525,7 +7539,7 @@ async function handleConsensusVote(deps, args, signal) {
7525
7539
  result.strategy,
7526
7540
  result,
7527
7541
  logger11,
7528
- args.ratifies
7542
+ { options: args.options, ...args.ratifies !== void 0 ? { ratifies: args.ratifies } : {} }
7529
7543
  );
7530
7544
  emitVoteRejectedSignal(result.result, getPipelineEventBus(), logger11);
7531
7545
  return { ok: true, value: buildResponse(args, result, costSummary, voteRecord) };
@@ -7860,4 +7874,4 @@ export {
7860
7874
  CONSENSUS_VOTE_TOOL_SCHEMA,
7861
7875
  registerConsensusVoteTool
7862
7876
  };
7863
- //# sourceMappingURL=chunk-7WZHA4DG.js.map
7877
+ //# sourceMappingURL=chunk-Y3FWKEHT.js.map