nexus-agents 8.86.2 → 8.86.3

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-YOQVGERU.js";
24
+ } from "./chunk-EGEI5FK3.js";
25
25
  import {
26
26
  executeExpert
27
27
  } from "./chunk-QCDYJYGB.js";
@@ -72,7 +72,7 @@ import {
72
72
  updateStage,
73
73
  withWarnings,
74
74
  writeJobCancelled
75
- } from "./chunk-5FXOJYDV.js";
75
+ } from "./chunk-VIXN77S5.js";
76
76
  import {
77
77
  allOf,
78
78
  anyOf
@@ -95,7 +95,7 @@ import {
95
95
  } from "./chunk-KXFPJOPL.js";
96
96
  import {
97
97
  withPrerequisite
98
- } from "./chunk-O73BSBJ6.js";
98
+ } from "./chunk-3PBPP5TA.js";
99
99
  import {
100
100
  NOOP_NOTIFIER,
101
101
  RateLimiter,
@@ -120,7 +120,7 @@ import {
120
120
  toolSuccessStructured,
121
121
  withProgressHeartbeat,
122
122
  wrapToolWithTimeout
123
- } from "./chunk-6K2JDJ7A.js";
123
+ } from "./chunk-T4E72Z3G.js";
124
124
  import {
125
125
  EventTopics,
126
126
  UNRESOLVED_MODEL_ID,
@@ -36081,6 +36081,14 @@ function buildOptionalFields(r) {
36081
36081
  if (r.triageAction !== void 0) fields["triageAction"] = r.triageAction;
36082
36082
  return fields;
36083
36083
  }
36084
+ function resolveWorkerOutcomeCli(resolvedCli, fallbackCli) {
36085
+ if (resolvedCli === void 0) {
36086
+ return fallbackCli;
36087
+ }
36088
+ const bare = resolvedCli.startsWith("cli-") ? resolvedCli.slice("cli-".length) : resolvedCli;
36089
+ const parsed = CliNameSchema.safeParse(bare);
36090
+ return parsed.success ? parsed.data : "unknown";
36091
+ }
36084
36092
  function recordWorkerOutcomes(results, taskDescription) {
36085
36093
  try {
36086
36094
  const store = getOutcomeStore();
@@ -36091,7 +36099,7 @@ function recordWorkerOutcomes(results, taskDescription) {
36091
36099
  for (const r of results) {
36092
36100
  if (r.status === "skipped") continue;
36093
36101
  const success = r.status === "success";
36094
- const cli = r.resolvedCli ?? fallbackCli;
36102
+ const cli = resolveWorkerOutcomeCli(r.resolvedCli, fallbackCli);
36095
36103
  store.append({
36096
36104
  id: `worker-${r.role}-${String(getTimeProvider().now())}-${getRandomProvider().random().toString(36).slice(2, 6)}`,
36097
36105
  cli,
@@ -46145,7 +46153,7 @@ function buildVotingInput(plan, config) {
46145
46153
  }
46146
46154
  async function executeSingleVote(plan, config, log) {
46147
46155
  try {
46148
- const { executeVoting } = await import("./consensus-vote-63FZ6VV5.js");
46156
+ const { executeVoting } = await import("./consensus-vote-OMUEYZ7Q.js");
46149
46157
  const input = buildVotingInput(plan, config);
46150
46158
  const result = await executeVoting(input, log);
46151
46159
  return parseVotingResult(result);
@@ -47068,7 +47076,7 @@ function createVoteStage({ config, startStage }) {
47068
47076
  const strategy = config.votingStrategy ?? "higher_order";
47069
47077
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47070
47078
  try {
47071
- const { executeVoting } = await import("./consensus-vote-63FZ6VV5.js");
47079
+ const { executeVoting } = await import("./consensus-vote-OMUEYZ7Q.js");
47072
47080
  const votingResult = await executeVoting(
47073
47081
  {
47074
47082
  proposal: buildVoteProposal(plan, research),
@@ -56519,4 +56527,4 @@ export {
56519
56527
  startPipelineEventBridge,
56520
56528
  shutdownPipelineEventBridge
56521
56529
  };
56522
- //# sourceMappingURL=chunk-EYBWZHGQ.js.map
56530
+ //# sourceMappingURL=chunk-XFQINKET.js.map