nexus-agents 2.141.4 → 2.141.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.
@@ -42,7 +42,7 @@ import {
42
42
  } from "./chunk-DHVMSIT5.js";
43
43
 
44
44
  // src/version.ts
45
- var VERSION = true ? "2.141.4" : "dev";
45
+ var VERSION = true ? "2.141.5" : "dev";
46
46
 
47
47
  // src/config/schemas-core.ts
48
48
  import { z } from "zod";
@@ -2132,7 +2132,7 @@ async function runDoctorFix(result) {
2132
2132
  writeLine2("\u2500".repeat(40));
2133
2133
  let fixCount = 0;
2134
2134
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
2135
- const { runSetup } = await import("./setup-command-QSZJ2HBJ.js");
2135
+ const { runSetup } = await import("./setup-command-Y6SVKLNK.js");
2136
2136
  const setupResult = runSetup({
2137
2137
  skipMcp: true,
2138
2138
  skipRules: true,
@@ -2245,4 +2245,4 @@ export {
2245
2245
  startStdioServer,
2246
2246
  closeServer
2247
2247
  };
2248
- //# sourceMappingURL=chunk-AWOU2524.js.map
2248
+ //# sourceMappingURL=chunk-BVLVDBOP.js.map
@@ -8,7 +8,7 @@ import {
8
8
  checkSqlite,
9
9
  defaultConfig,
10
10
  initDataDirectories
11
- } from "./chunk-AWOU2524.js";
11
+ } from "./chunk-BVLVDBOP.js";
12
12
  import {
13
13
  BUILT_IN_EXPERTS
14
14
  } from "./chunk-ZM4O442V.js";
@@ -2000,4 +2000,4 @@ export {
2000
2000
  setupCommand,
2001
2001
  setupCommandAsync
2002
2002
  };
2003
- //# sourceMappingURL=chunk-FVZ72V4X.js.map
2003
+ //# sourceMappingURL=chunk-BXNKG2F4.js.map
@@ -18,7 +18,7 @@ import {
18
18
  DEFAULT_TASK_TTL_MS,
19
19
  DEFAULT_TOOL_RATE_LIMITS,
20
20
  clampTaskTtl
21
- } from "./chunk-AWOU2524.js";
21
+ } from "./chunk-BVLVDBOP.js";
22
22
  import {
23
23
  executeExpert
24
24
  } from "./chunk-YJROHCFY.js";
@@ -28801,6 +28801,21 @@ async function createOrchestratorFactory(config) {
28801
28801
  return new OrchestratorFactory(config ?? {}, workflowEngine);
28802
28802
  }
28803
28803
 
28804
+ // src/orchestration/workflow-router-signal-derivation.ts
28805
+ var CONSENSUS_INTENT = /\bconsensus\s+(?:vote|decision|review)\s+(?:on|about|regarding|for)\b|\bconsensus\s+panel\b|\bmulti[-\s]?perspective\s+(?:review|decision|analysis)\b/i;
28806
+ var WAVE_INTENT = /\bmulti[-\s]?agent\s+wave\b|\bwave\s+of\s+agents\b|\bfan[-\s]?out\s+(?:to\s+)?(?:agents|sub-?tasks)\b|\bindependent\s+sub-?tasks?\b/i;
28807
+ function deriveStructuralSignals(signals) {
28808
+ const text = signals.description;
28809
+ let next = signals;
28810
+ if (next.requiresConsensus === void 0 && CONSENSUS_INTENT.test(text)) {
28811
+ next = { ...next, requiresConsensus: true };
28812
+ }
28813
+ if (next.dependencyStructure === void 0 && WAVE_INTENT.test(text)) {
28814
+ next = { ...next, dependencyStructure: "independent" };
28815
+ }
28816
+ return next;
28817
+ }
28818
+
28804
28819
  // src/orchestration/workflow-router.ts
28805
28820
  var MAX_OUTCOMES2 = 200;
28806
28821
  var AMBIGUITY_THRESHOLD = 0.7;
@@ -28854,7 +28869,7 @@ function buildDecision(input) {
28854
28869
  }
28855
28870
  function routeTask(signals, analyzer, logger57, _opts) {
28856
28871
  const analysis = analyzer.analyze(signals.description);
28857
- const enriched = enrichSignals(signals, analysis);
28872
+ const enriched = enrichSignals(deriveStructuralSignals(signals), analysis);
28858
28873
  const matchedRules = [];
28859
28874
  const alternatives = [];
28860
28875
  for (const rule of ROUTING_RULES) {
@@ -51163,4 +51178,4 @@ export {
51163
51178
  shutdownFeedbackSubscriber,
51164
51179
  createEventBusBridge
51165
51180
  };
51166
- //# sourceMappingURL=chunk-OUULPDQ4.js.map
51181
+ //# sourceMappingURL=chunk-UF3FNBHX.js.map