nexus-agents 8.34.1 → 8.34.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.
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-TKMXHQY7.js";
24
+ } from "./chunk-LA4DHGJM.js";
25
25
  import {
26
26
  executeExpert
27
27
  } from "./chunk-AR5DUSJR.js";
@@ -55,7 +55,7 @@ import {
55
55
  toJobSummary,
56
56
  updateStage,
57
57
  writeJobCancelled
58
- } from "./chunk-BI5UDLW2.js";
58
+ } from "./chunk-REX7B3AP.js";
59
59
  import {
60
60
  allOf,
61
61
  anyOf
@@ -75,7 +75,7 @@ import {
75
75
  } from "./chunk-F456ANG3.js";
76
76
  import {
77
77
  withPrerequisite
78
- } from "./chunk-NK53LXA5.js";
78
+ } from "./chunk-OG3QI72T.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-CM7SBFJ4.js";
103
+ } from "./chunk-MDWFK7VB.js";
104
104
  import {
105
105
  createAuditTrail,
106
106
  createGraphAuditBridge,
@@ -19790,7 +19790,9 @@ var TerminationReasonSchema2 = z43.enum([
19790
19790
  "timeout",
19791
19791
  "error",
19792
19792
  "cancelled",
19793
- "convergence"
19793
+ "convergence",
19794
+ "budget_exceeded",
19795
+ "unknown"
19794
19796
  ]);
19795
19797
  var ReasoningPatternSchema = z43.enum([
19796
19798
  "decomposition",
@@ -21414,7 +21416,8 @@ function determineTerminationReason(context, state, trajectory, startTime) {
21414
21416
  if (lastStep?.terminationReason) return lastStep.terminationReason;
21415
21417
  if (state.step >= config.maxSteps) return "max_steps";
21416
21418
  if (getTimeProvider().now() - startTime >= config.timeoutMs) return "timeout";
21417
- return "max_steps";
21419
+ if (state.metadata.totalCost >= config.maxCostBudget) return "budget_exceeded";
21420
+ return "unknown";
21418
21421
  }
21419
21422
 
21420
21423
  // src/agents/orchestration/experience-buffer-types.ts
@@ -45798,7 +45801,7 @@ function buildVotingInput(plan, config) {
45798
45801
  }
45799
45802
  async function executeSingleVote(plan, config, log) {
45800
45803
  try {
45801
- const { executeVoting } = await import("./consensus-vote-KHWMGRFW.js");
45804
+ const { executeVoting } = await import("./consensus-vote-RLQKHRAO.js");
45802
45805
  const input = buildVotingInput(plan, config);
45803
45806
  const result = await executeVoting(input, log);
45804
45807
  return parseVotingResult(result);
@@ -47590,7 +47593,7 @@ ${contextBlock}`;
47590
47593
  const strategy = config.votingStrategy ?? "higher_order";
47591
47594
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47592
47595
  try {
47593
- const { executeVoting } = await import("./consensus-vote-KHWMGRFW.js");
47596
+ const { executeVoting } = await import("./consensus-vote-RLQKHRAO.js");
47594
47597
  const votingResult = await executeVoting(
47595
47598
  {
47596
47599
  proposal: buildVoteProposal(plan, research),
@@ -56310,4 +56313,4 @@ export {
56310
56313
  shutdownFeedbackSubscriber,
56311
56314
  createEventBusBridge
56312
56315
  };
56313
- //# sourceMappingURL=chunk-GKWJGPLQ.js.map
56316
+ //# sourceMappingURL=chunk-A4AD5BQV.js.map