nexus-agents 2.102.4 → 2.102.5

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.
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-S7R72HUB.js";
10
10
  import {
11
11
  executeExpert
12
- } from "./chunk-KHEQIB6P.js";
12
+ } from "./chunk-PWDIIS7L.js";
13
13
  import {
14
14
  EventTopics,
15
15
  JobStatusSchema,
@@ -30,7 +30,7 @@ import {
30
30
  writeJobComplete,
31
31
  writeJobFailed,
32
32
  writeJobPending
33
- } from "./chunk-Y5GD3LHH.js";
33
+ } from "./chunk-T32MGJMA.js";
34
34
  import {
35
35
  REGISTRY_PATH,
36
36
  getProjectRoot,
@@ -93,7 +93,7 @@ import {
93
93
  DEFAULT_TASK_TTL_MS,
94
94
  DEFAULT_TOOL_RATE_LIMITS,
95
95
  clampTaskTtl
96
- } from "./chunk-I4B6SHFH.js";
96
+ } from "./chunk-AQBPOBAT.js";
97
97
  import {
98
98
  getAvailabilityCache,
99
99
  getCliForModelId,
@@ -42783,7 +42783,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
42783
42783
  ]);
42784
42784
  async function classifyWithLLM(task) {
42785
42785
  try {
42786
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-Z7XZ7ED5.js");
42786
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-2TYPRNEE.js");
42787
42787
  const prompt = [
42788
42788
  "Classify this task into exactly one pipeline template.",
42789
42789
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -43695,8 +43695,8 @@ function flushPipelineMemory() {
43695
43695
  }
43696
43696
  var routingMemoryCache = null;
43697
43697
  var routingMemoryInitPromise = null;
43698
- function recordRoutingExperience(category, success, durationMs) {
43699
- const metrics = { durationMs, tokensUsed: 0 };
43698
+ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0) {
43699
+ const metrics = { durationMs, tokensUsed };
43700
43700
  const callRecord = (rm) => {
43701
43701
  rm.recordExperience(category, ["claude"], success, metrics);
43702
43702
  };
@@ -43862,7 +43862,7 @@ ${contextBlock}`;
43862
43862
  const strategy = config.votingStrategy ?? "higher_order";
43863
43863
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
43864
43864
  try {
43865
- const { executeVoting } = await import("./consensus-vote-BW4HOYS4.js");
43865
+ const { executeVoting } = await import("./consensus-vote-7CE4JOMK.js");
43866
43866
  const votingResult = await executeVoting(
43867
43867
  {
43868
43868
  proposal: buildVoteProposal(plan, research),
@@ -43955,7 +43955,7 @@ ${task.description}${fb}`
43955
43955
  success: r.success,
43956
43956
  durationMs: r.durationMs
43957
43957
  });
43958
- recordRoutingExperience("code_generation", r.success, r.durationMs);
43958
+ recordRoutingExperience("code_generation", r.success, r.durationMs, r.tokensUsed);
43959
43959
  await postProgress(config, `Code [${task.id}]`, `Done (${r.durationMs}ms)`);
43960
43960
  return r.text || `[Implementation failed: ${r.error}]`;
43961
43961
  },
@@ -50680,4 +50680,4 @@ export {
50680
50680
  detectBackend,
50681
50681
  createTaskTracker
50682
50682
  };
50683
- //# sourceMappingURL=chunk-XCIRYNDQ.js.map
50683
+ //# sourceMappingURL=chunk-3LC5NHC4.js.map