nexus-agents 2.77.11 → 2.77.13

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 (24) hide show
  1. package/dist/{chunk-FYAQBYHM.js → chunk-3DH5SLFH.js} +2 -2
  2. package/dist/{chunk-T22NR4Z4.js → chunk-GFKGL2GQ.js} +19 -11
  3. package/dist/{chunk-T22NR4Z4.js.map → chunk-GFKGL2GQ.js.map} +1 -1
  4. package/dist/{chunk-N4IYBHN6.js → chunk-JX6OI4FS.js} +4 -4
  5. package/dist/{chunk-CFTRFP3V.js → chunk-RBZ4CDMY.js} +3 -3
  6. package/dist/{chunk-MV4R2ZIJ.js → chunk-TDV5ALHY.js} +7 -14
  7. package/dist/chunk-TDV5ALHY.js.map +1 -0
  8. package/dist/{chunk-EEW7VFFF.js → chunk-Y2CP4Z5B.js} +3 -3
  9. package/dist/cli.js +6 -6
  10. package/dist/{consensus-vote-AWBFYF5S.js → consensus-vote-MUQ4HPIF.js} +3 -3
  11. package/dist/{expert-bridge-NX2MGOBQ.js → expert-bridge-ZPNVLJVN.js} +2 -2
  12. package/dist/{factory-JI6PSWGR.js → factory-X3VKIGKP.js} +2 -2
  13. package/dist/index.js +6 -6
  14. package/dist/{setup-command-HBZ22QFQ.js → setup-command-W6UKPODL.js} +4 -4
  15. package/package.json +1 -1
  16. package/dist/chunk-MV4R2ZIJ.js.map +0 -1
  17. /package/dist/{chunk-FYAQBYHM.js.map → chunk-3DH5SLFH.js.map} +0 -0
  18. /package/dist/{chunk-N4IYBHN6.js.map → chunk-JX6OI4FS.js.map} +0 -0
  19. /package/dist/{chunk-CFTRFP3V.js.map → chunk-RBZ4CDMY.js.map} +0 -0
  20. /package/dist/{chunk-EEW7VFFF.js.map → chunk-Y2CP4Z5B.js.map} +0 -0
  21. /package/dist/{consensus-vote-AWBFYF5S.js.map → consensus-vote-MUQ4HPIF.js.map} +0 -0
  22. /package/dist/{expert-bridge-NX2MGOBQ.js.map → expert-bridge-ZPNVLJVN.js.map} +0 -0
  23. /package/dist/{factory-JI6PSWGR.js.map → factory-X3VKIGKP.js.map} +0 -0
  24. /package/dist/{setup-command-HBZ22QFQ.js.map → setup-command-W6UKPODL.js.map} +0 -0
@@ -38,7 +38,7 @@ function adaptCompositeRouter(compositeRouter) {
38
38
  }
39
39
  async function getRouter() {
40
40
  if (cachedRouter !== null) return cachedRouter;
41
- const { createAllAdapters } = await import("./factory-JI6PSWGR.js");
41
+ const { createAllAdapters } = await import("./factory-X3VKIGKP.js");
42
42
  const { createCompositeRouter } = await import("./composite-router-S6E26BCI.js");
43
43
  const adapters = createAllAdapters();
44
44
  if (adapters.size === 0) return null;
@@ -136,4 +136,4 @@ ${prompt}`;
136
136
  export {
137
137
  executeExpert
138
138
  };
139
- //# sourceMappingURL=chunk-FYAQBYHM.js.map
139
+ //# sourceMappingURL=chunk-3DH5SLFH.js.map
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-MGLWPN2I.js";
8
8
  import {
9
9
  executeExpert
10
- } from "./chunk-FYAQBYHM.js";
10
+ } from "./chunk-3DH5SLFH.js";
11
11
  import {
12
12
  DEFAULT_RELEVANCE_CONFIG,
13
13
  EventTopics,
@@ -37,7 +37,7 @@ import {
37
37
  withAccessPolicy,
38
38
  withProgressHeartbeat,
39
39
  wrapToolWithTimeout
40
- } from "./chunk-EEW7VFFF.js";
40
+ } from "./chunk-Y2CP4Z5B.js";
41
41
  import {
42
42
  REGISTRY_PATH,
43
43
  getProjectRoot,
@@ -70,7 +70,7 @@ import {
70
70
  clampTaskTtl,
71
71
  getAvailabilityCache,
72
72
  resolveFallback
73
- } from "./chunk-N4IYBHN6.js";
73
+ } from "./chunk-JX6OI4FS.js";
74
74
  import {
75
75
  DEFAULTS
76
76
  } from "./chunk-YQMQSJQK.js";
@@ -84,7 +84,7 @@ import {
84
84
  getAvailableClis,
85
85
  sleep,
86
86
  withTimeout
87
- } from "./chunk-MV4R2ZIJ.js";
87
+ } from "./chunk-TDV5ALHY.js";
88
88
  import {
89
89
  BUILT_IN_EXPERTS,
90
90
  BuiltInExpertTypeSchema,
@@ -33799,10 +33799,17 @@ var REASON_MAP = [
33799
33799
  ["needsMcp", "MCP tool support required"],
33800
33800
  ["needsExploration", "exploration/research task benefits from large context"]
33801
33801
  ];
33802
- function buildReasons(requirements, pref, billingMode = "api", specialization = null) {
33802
+ function buildReasons(requirements, pref, billingMode = "api", specialization = null, chosenCli) {
33803
33803
  const reasons = REASON_MAP.filter(([key]) => requirements[key] === true).map(([, desc]) => desc);
33804
- if (specialization !== null)
33805
- reasons.push(`${specialization.category} task (prefer ${specialization.primaryCli})`);
33804
+ if (specialization !== null) {
33805
+ if (chosenCli !== void 0 && specialization.primaryCli !== chosenCli) {
33806
+ reasons.push(
33807
+ `${specialization.category} task (preferred ${specialization.primaryCli}, selected ${chosenCli} after filtering)`
33808
+ );
33809
+ } else {
33810
+ reasons.push(`${specialization.category} task (preferred ${specialization.primaryCli})`);
33811
+ }
33812
+ }
33806
33813
  if (pref !== void 0 && pref !== "") reasons.push(`preferred: ${pref}`);
33807
33814
  if (billingMode === "plan") reasons.push("plan billing (cost ignored)");
33808
33815
  return reasons;
@@ -33886,7 +33893,8 @@ function selectModel(input, requirements, billingMode = "api") {
33886
33893
  requirements,
33887
33894
  input.preferred_capability,
33888
33895
  billingMode,
33889
- specialization
33896
+ specialization,
33897
+ getCliForModel(best.name)
33890
33898
  );
33891
33899
  const reasoning = reasons.length > 0 ? `Selected ${best.name} (score: ${best.score.toFixed(1)}) because: ${reasons.join(", ")}` : `Selected ${best.name} as the best overall match (score: ${best.score.toFixed(1)})`;
33892
33900
  const alternatives = scored.slice(1, 4).map((alt) => ({
@@ -41791,7 +41799,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
41791
41799
  ]);
41792
41800
  async function classifyWithLLM(task) {
41793
41801
  try {
41794
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-NX2MGOBQ.js");
41802
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-ZPNVLJVN.js");
41795
41803
  const prompt = [
41796
41804
  "Classify this task into exactly one pipeline template.",
41797
41805
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -42792,7 +42800,7 @@ ${contextBlock}`;
42792
42800
  const strategy = config.votingStrategy ?? "higher_order";
42793
42801
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
42794
42802
  try {
42795
- const { executeVoting } = await import("./consensus-vote-AWBFYF5S.js");
42803
+ const { executeVoting } = await import("./consensus-vote-MUQ4HPIF.js");
42796
42804
  const votingResult = await executeVoting(
42797
42805
  {
42798
42806
  proposal: plan.slice(0, 4e3),
@@ -50033,4 +50041,4 @@ export {
50033
50041
  detectBackend,
50034
50042
  createTaskTracker
50035
50043
  };
50036
- //# sourceMappingURL=chunk-T22NR4Z4.js.map
50044
+ //# sourceMappingURL=chunk-GFKGL2GQ.js.map