nexus-agents 8.24.1 → 8.24.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.
@@ -23,10 +23,10 @@ import {
23
23
  toolSuccessStructured,
24
24
  withProgressHeartbeat,
25
25
  wrapToolWithTimeout
26
- } from "./chunk-FNSW2YQO.js";
26
+ } from "./chunk-YA3ULAKB.js";
27
27
  import {
28
28
  VERSION
29
- } from "./chunk-QWGLAGBX.js";
29
+ } from "./chunk-WGWKS6KS.js";
30
30
  import {
31
31
  assessPanelIndependence,
32
32
  countDistinctModels,
@@ -7682,4 +7682,4 @@ export {
7682
7682
  CONSENSUS_VOTE_TOOL_SCHEMA,
7683
7683
  registerConsensusVoteTool
7684
7684
  };
7685
- //# sourceMappingURL=chunk-6CZ62UGB.js.map
7685
+ //# sourceMappingURL=chunk-4DDARPJT.js.map
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-7EMTQUFH.js";
24
+ } from "./chunk-I4LNM23C.js";
25
25
  import {
26
26
  executeExpert
27
27
  } from "./chunk-CN3VAMQD.js";
@@ -55,7 +55,7 @@ import {
55
55
  toJobSummary,
56
56
  updateStage,
57
57
  writeJobCancelled
58
- } from "./chunk-6CZ62UGB.js";
58
+ } from "./chunk-4DDARPJT.js";
59
59
  import {
60
60
  allOf
61
61
  } from "./chunk-OQB3XC5O.js";
@@ -74,7 +74,7 @@ import {
74
74
  } from "./chunk-OYTRYITB.js";
75
75
  import {
76
76
  withPrerequisite
77
- } from "./chunk-6OLJGAHD.js";
77
+ } from "./chunk-O2EJO2N5.js";
78
78
  import {
79
79
  NOOP_NOTIFIER,
80
80
  RateLimiter,
@@ -99,7 +99,7 @@ import {
99
99
  withAuditTrail,
100
100
  withProgressHeartbeat,
101
101
  wrapToolWithTimeout
102
- } from "./chunk-FNSW2YQO.js";
102
+ } from "./chunk-YA3ULAKB.js";
103
103
  import {
104
104
  createAuditTrail,
105
105
  createGraphAuditBridge,
@@ -45665,7 +45665,7 @@ function buildVotingInput(plan, config) {
45665
45665
  }
45666
45666
  async function executeSingleVote(plan, config, log) {
45667
45667
  try {
45668
- const { executeVoting } = await import("./consensus-vote-NANVCVZJ.js");
45668
+ const { executeVoting } = await import("./consensus-vote-UYC4OKHJ.js");
45669
45669
  const input = buildVotingInput(plan, config);
45670
45670
  const result = await executeVoting(input, log);
45671
45671
  return parseVotingResult(result);
@@ -47437,7 +47437,7 @@ ${contextBlock}`;
47437
47437
  const strategy = config.votingStrategy ?? "higher_order";
47438
47438
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47439
47439
  try {
47440
- const { executeVoting } = await import("./consensus-vote-NANVCVZJ.js");
47440
+ const { executeVoting } = await import("./consensus-vote-UYC4OKHJ.js");
47441
47441
  const votingResult = await executeVoting(
47442
47442
  {
47443
47443
  proposal: buildVoteProposal(plan, research),
@@ -50225,6 +50225,24 @@ function createAuditLogOutcomeSink(logger56) {
50225
50225
  function errorMessage(err2) {
50226
50226
  return err2 instanceof Error ? err2.message : String(err2);
50227
50227
  }
50228
+ function classifyEngineResult(result) {
50229
+ if (typeof result !== "object" || result === null) {
50230
+ return { success: true };
50231
+ }
50232
+ const record = result;
50233
+ if (record["success"] === false) {
50234
+ const reason = typeof record["error"] === "string" ? record["error"] : "no error message";
50235
+ return { success: false, failureReason: reason };
50236
+ }
50237
+ if (record["completed"] === false) {
50238
+ if (record["dryRun"] === true && record["planStatus"] === void 0) {
50239
+ return { success: true };
50240
+ }
50241
+ const reason = typeof record["error"] === "string" ? record["error"] : "pipeline did not complete";
50242
+ return { success: false, failureReason: reason };
50243
+ }
50244
+ return { success: true };
50245
+ }
50228
50246
  function recordOutcome2(deps, decision, start, success, failureReason) {
50229
50247
  const record = {
50230
50248
  decisionId: decision.decisionId,
@@ -50262,7 +50280,8 @@ async function dispatchDecision(decision, input, deps) {
50262
50280
  }
50263
50281
  try {
50264
50282
  const result = await executor(decision, input);
50265
- recordOutcome2(deps, decision, start, true);
50283
+ const classification = deps.classifyResult(result);
50284
+ recordOutcome2(deps, decision, start, classification.success, classification.failureReason);
50266
50285
  return {
50267
50286
  decisionId,
50268
50287
  strategy,
@@ -50291,7 +50310,8 @@ function createMetaDispatcher(options) {
50291
50310
  executors: options.executors,
50292
50311
  outcomeSink,
50293
50312
  logger: logger56,
50294
- onOutcome: options.onOutcome
50313
+ onOutcome: options.onOutcome,
50314
+ classifyResult: options.classifyResult ?? classifyEngineResult
50295
50315
  };
50296
50316
  return {
50297
50317
  dispatch(decision, input) {
@@ -51887,7 +51907,8 @@ async function executeGoal(input, opts = {}) {
51887
51907
  executors: opts.executors ?? buildDefaultExecutors(opts.trustTier, opts.gatewayAdapters, input.dryRun),
51888
51908
  ...opts.logger !== void 0 ? { logger: opts.logger } : {},
51889
51909
  ...opts.outcomeSink !== void 0 ? { outcomeSink: opts.outcomeSink } : {},
51890
- ...onOutcome !== void 0 ? { onOutcome } : {}
51910
+ ...onOutcome !== void 0 ? { onOutcome } : {},
51911
+ ...opts.classifyResult !== void 0 ? { classifyResult: opts.classifyResult } : {}
51891
51912
  });
51892
51913
  const dispatch = await dispatcher.dispatch(decision, toMetaInput(input, "execute"));
51893
51914
  return {
@@ -51900,17 +51921,14 @@ async function executeGoal(input, opts = {}) {
51900
51921
  };
51901
51922
  }
51902
51923
  function detectEngineFailure(result) {
51903
- if (typeof result !== "object" || result === null) return null;
51904
- const record = result;
51905
- if (record["success"] === false) {
51906
- const detail = typeof record["error"] === "string" ? record["error"] : "no error message";
51907
- return { message: `Engine reported failure: ${detail}` };
51908
- }
51909
- if (record["completed"] === false) {
51910
- if (record["dryRun"] === true && record["planStatus"] === void 0) return null;
51924
+ const classification = classifyEngineResult(result);
51925
+ if (classification.success) return null;
51926
+ const record = typeof result === "object" && result !== null ? result : void 0;
51927
+ if (record?.["completed"] === false) {
51911
51928
  return { message: describeIncompletePipeline(record), detail: record };
51912
51929
  }
51913
- return null;
51930
+ const detail = classification.failureReason ?? "no error message";
51931
+ return { message: `Engine reported failure: ${detail}` };
51914
51932
  }
51915
51933
  async function executeRunBody(input, logger56, trustTier, gatewayAdapters) {
51916
51934
  try {
@@ -56122,4 +56140,4 @@ export {
56122
56140
  shutdownFeedbackSubscriber,
56123
56141
  createEventBusBridge
56124
56142
  };
56125
- //# sourceMappingURL=chunk-ZRR5GL5P.js.map
56143
+ //# sourceMappingURL=chunk-CKTGOSEL.js.map