nexus-agents 8.53.0 → 8.53.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.
Files changed (25) hide show
  1. package/dist/{chunk-FIBDS4YM.js → chunk-5E6G4ARL.js} +3 -3
  2. package/dist/{chunk-6O5KVUNL.js → chunk-K3MBIJSC.js} +7 -7
  3. package/dist/{chunk-H26BXX5O.js → chunk-SZVDPMLV.js} +30 -14
  4. package/dist/chunk-SZVDPMLV.js.map +1 -0
  5. package/dist/{chunk-MCW5UHLN.js → chunk-VF2J3HSD.js} +2 -2
  6. package/dist/{chunk-G7LI2WHS.js → chunk-VGNESMSQ.js} +2 -2
  7. package/dist/{chunk-R2IUHK5B.js → chunk-YIGNWIG6.js} +2 -2
  8. package/dist/cli.d.ts +1 -1
  9. package/dist/cli.js +7 -7
  10. package/dist/{consensus-vote-DAHMWNUM.js → consensus-vote-KBUR4FJL.js} +4 -4
  11. package/dist/{consensus-vote-types-DHU2Ivac.d.ts → consensus-vote-types-CA7Xuzl3.d.ts} +2 -1
  12. package/dist/{improvement-review-MS3JZEWH.js → improvement-review-SXTHUBQA.js} +4 -4
  13. package/dist/index.d.ts +2 -2
  14. package/dist/index.js +6 -6
  15. package/dist/{setup-data-dir-3FTDURUQ.js → setup-data-dir-2R56FWLS.js} +3 -3
  16. package/package.json +1 -1
  17. package/dist/chunk-H26BXX5O.js.map +0 -1
  18. /package/dist/{chunk-FIBDS4YM.js.map → chunk-5E6G4ARL.js.map} +0 -0
  19. /package/dist/{chunk-6O5KVUNL.js.map → chunk-K3MBIJSC.js.map} +0 -0
  20. /package/dist/{chunk-MCW5UHLN.js.map → chunk-VF2J3HSD.js.map} +0 -0
  21. /package/dist/{chunk-G7LI2WHS.js.map → chunk-VGNESMSQ.js.map} +0 -0
  22. /package/dist/{chunk-R2IUHK5B.js.map → chunk-YIGNWIG6.js.map} +0 -0
  23. /package/dist/{consensus-vote-DAHMWNUM.js.map → consensus-vote-KBUR4FJL.js.map} +0 -0
  24. /package/dist/{improvement-review-MS3JZEWH.js.map → improvement-review-SXTHUBQA.js.map} +0 -0
  25. /package/dist/{setup-data-dir-3FTDURUQ.js.map → setup-data-dir-2R56FWLS.js.map} +0 -0
@@ -11,7 +11,7 @@ import {
11
11
  NODE_ENGINE_RANGE,
12
12
  VERSION,
13
13
  isNodeVersionSupported
14
- } from "./chunk-R2IUHK5B.js";
14
+ } from "./chunk-YIGNWIG6.js";
15
15
  import {
16
16
  claimGlobalRegistry
17
17
  } from "./chunk-3JFRPAYE.js";
@@ -1314,7 +1314,7 @@ async function runDoctorFix(result) {
1314
1314
  writeLine2("\u2500".repeat(40));
1315
1315
  let fixCount = 0;
1316
1316
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
1317
- const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-3FTDURUQ.js");
1317
+ const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-2R56FWLS.js");
1318
1318
  const outcome = describeDataDirFix2(initDataDirectories2());
1319
1319
  writeLine2(outcome.line);
1320
1320
  if (outcome.counted) fixCount++;
@@ -1416,4 +1416,4 @@ export {
1416
1416
  startStdioServer,
1417
1417
  closeServer
1418
1418
  };
1419
- //# sourceMappingURL=chunk-FIBDS4YM.js.map
1419
+ //# sourceMappingURL=chunk-5E6G4ARL.js.map
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-FIBDS4YM.js";
24
+ } from "./chunk-5E6G4ARL.js";
25
25
  import {
26
26
  executeExpert
27
27
  } from "./chunk-WAVAOSH5.js";
@@ -60,7 +60,7 @@ import {
60
60
  toJobSummary,
61
61
  updateStage,
62
62
  writeJobCancelled
63
- } from "./chunk-H26BXX5O.js";
63
+ } from "./chunk-SZVDPMLV.js";
64
64
  import {
65
65
  allOf,
66
66
  anyOf
@@ -80,7 +80,7 @@ import {
80
80
  } from "./chunk-XYK2GPUF.js";
81
81
  import {
82
82
  withPrerequisite
83
- } from "./chunk-MCW5UHLN.js";
83
+ } from "./chunk-VF2J3HSD.js";
84
84
  import {
85
85
  NOOP_NOTIFIER,
86
86
  RateLimiter,
@@ -105,7 +105,7 @@ import {
105
105
  withAuditTrail,
106
106
  withProgressHeartbeat,
107
107
  wrapToolWithTimeout
108
- } from "./chunk-G7LI2WHS.js";
108
+ } from "./chunk-VGNESMSQ.js";
109
109
  import {
110
110
  createAuditTrail,
111
111
  createGraphAuditBridge,
@@ -46167,7 +46167,7 @@ function buildVotingInput(plan, config) {
46167
46167
  }
46168
46168
  async function executeSingleVote(plan, config, log) {
46169
46169
  try {
46170
- const { executeVoting } = await import("./consensus-vote-DAHMWNUM.js");
46170
+ const { executeVoting } = await import("./consensus-vote-KBUR4FJL.js");
46171
46171
  const input = buildVotingInput(plan, config);
46172
46172
  const result = await executeVoting(input, log);
46173
46173
  return parseVotingResult(result);
@@ -47962,7 +47962,7 @@ ${contextBlock}`;
47962
47962
  const strategy = config.votingStrategy ?? "higher_order";
47963
47963
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47964
47964
  try {
47965
- const { executeVoting } = await import("./consensus-vote-DAHMWNUM.js");
47965
+ const { executeVoting } = await import("./consensus-vote-KBUR4FJL.js");
47966
47966
  const votingResult = await executeVoting(
47967
47967
  {
47968
47968
  proposal: buildVoteProposal(plan, research),
@@ -56882,4 +56882,4 @@ export {
56882
56882
  startPipelineEventBridge,
56883
56883
  shutdownPipelineEventBridge
56884
56884
  };
56885
- //# sourceMappingURL=chunk-6O5KVUNL.js.map
56885
+ //# sourceMappingURL=chunk-K3MBIJSC.js.map
@@ -23,10 +23,10 @@ import {
23
23
  toolSuccessStructured,
24
24
  withProgressHeartbeat,
25
25
  wrapToolWithTimeout
26
- } from "./chunk-G7LI2WHS.js";
26
+ } from "./chunk-VGNESMSQ.js";
27
27
  import {
28
28
  VERSION
29
- } from "./chunk-R2IUHK5B.js";
29
+ } from "./chunk-YIGNWIG6.js";
30
30
  import {
31
31
  UNRESOLVED_MODEL_ID,
32
32
  assessPanelIndependence,
@@ -202,11 +202,25 @@ function reportPanelModelIndependence(modelIds, roleCount, phase, logger11) {
202
202
 
203
203
  // src/cli/voter-unverifiable.ts
204
204
  var UNVERIFIABLE_STDERR_RE = /\bbwrap: |RTM_NEWADDR|\bsandbox\b[^\n]*\b(?:denied|failed|not permitted)\b/i;
205
- var UNVERIFIABLE_REASONING_RE = /\bUNVERIFIABLE:|\bbwrap: |RTM_NEWADDR|\b(?:repository|source|shell) (?:reads?|access|execution|inspection) failed\b|\bcould not (?:read|inspect) the artifact\b/i;
206
- function classifyUnverifiable(evidence) {
205
+ var UNVERIFIABLE_REASONING_RE = /\bbwrap: |RTM_NEWADDR|\b(?:repository|source|shell) (?:reads?|access|execution|inspection) failed\b|\bcould not (?:read|inspect) the artifact\b/i;
206
+ var UNVERIFIABLE_PREFIX_RE = /^\s*UNVERIFIABLE:/i;
207
+ var FILE_LINE_CITATION_RE = /(?:^|[\s(`'"])[\w./-]*[\w-]+\.[a-z][a-z\d]{0,5}:\d+\b/i;
208
+ var RECOVERY_PHRASE_RE = /\b(?:retry|second attempt|subsequent attempt|re-?run) succeeded\b|\bthen read\b|\bwas able to read\b/i;
209
+ function assertsSuccessfulRead(reasoning) {
210
+ return RECOVERY_PHRASE_RE.test(reasoning) || FILE_LINE_CITATION_RE.test(reasoning);
211
+ }
212
+ function classifyUnverifiable(evidence, onReasoningRule) {
207
213
  const stderr = evidence.cliStderr ?? "";
208
214
  if (stderr !== "" && UNVERIFIABLE_STDERR_RE.test(stderr)) return "stderr";
209
- if (UNVERIFIABLE_REASONING_RE.test(evidence.reasoning)) return "reasoning";
215
+ const { reasoning } = evidence;
216
+ if (UNVERIFIABLE_PREFIX_RE.test(reasoning)) {
217
+ onReasoningRule?.("prefix");
218
+ return "reasoning";
219
+ }
220
+ if (UNVERIFIABLE_REASONING_RE.test(reasoning) && !assertsSuccessfulRead(reasoning)) {
221
+ onReasoningRule?.("error_without_recovery");
222
+ return "reasoning";
223
+ }
210
224
  return void 0;
211
225
  }
212
226
  function markUnverifiable(result, signal) {
@@ -1275,18 +1289,20 @@ function buildLlmVoteResult(role, vote, usage, adapter, processingTimeMs) {
1275
1289
  };
1276
1290
  }
1277
1291
  function finalizeParsedVote(built, cliStderr, logger11) {
1278
- const signal = classifyUnverifiable({ cliStderr, reasoning: built.vote.reasoning });
1292
+ const { role, model } = built;
1293
+ const signal = classifyUnverifiable(
1294
+ { cliStderr, reasoning: built.vote.reasoning },
1295
+ (rule) => {
1296
+ logger11.debug("Unverifiable reasoning fallback fired", { role, rule });
1297
+ }
1298
+ );
1279
1299
  if (signal === void 0) {
1280
- logger11.info("Vote completed", {
1281
- role: built.role,
1282
- model: built.model,
1283
- decision: built.vote.decision
1284
- });
1300
+ logger11.info("Vote completed", { role, model, decision: built.vote.decision });
1285
1301
  return built;
1286
1302
  }
1287
1303
  logger11.warn("Seat could not read the artifact \u2014 recorded as unverifiable, decision discarded", {
1288
- role: built.role,
1289
- model: built.model,
1304
+ role,
1305
+ model,
1290
1306
  signal,
1291
1307
  discardedDecision: built.vote.decision,
1292
1308
  ...built.selectedOption !== void 0 ? { discardedOption: built.selectedOption } : {}
@@ -8314,4 +8330,4 @@ export {
8314
8330
  CONSENSUS_VOTE_TOOL_SCHEMA,
8315
8331
  registerConsensusVoteTool
8316
8332
  };
8317
- //# sourceMappingURL=chunk-H26BXX5O.js.map
8333
+ //# sourceMappingURL=chunk-SZVDPMLV.js.map