nexus-agents 2.30.0 → 2.30.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.
Files changed (25) hide show
  1. package/dist/{chunk-4IEUUQ4G.js → chunk-5SBKLQW6.js} +2 -2
  2. package/dist/{chunk-Q25KKHNQ.js → chunk-JPAVOHZN.js} +2 -2
  3. package/dist/{chunk-CD64JT3I.js → chunk-KW7W5X4J.js} +4 -4
  4. package/dist/{chunk-FXX5UQCK.js → chunk-MHQTOOPA.js} +17 -10
  5. package/dist/{chunk-FXX5UQCK.js.map → chunk-MHQTOOPA.js.map} +1 -1
  6. package/dist/{chunk-CW2Z773T.js → chunk-UOXT5CZ7.js} +39 -3
  7. package/dist/chunk-UOXT5CZ7.js.map +1 -0
  8. package/dist/{chunk-6CHMHPT4.js → chunk-UXUA234N.js} +3 -3
  9. package/dist/cli.js +6 -6
  10. package/dist/{consensus-vote-5PFFDRLR.js → consensus-vote-Q7QKGUEP.js} +3 -3
  11. package/dist/{expert-bridge-5KVWX44T.js → expert-bridge-NF65ZTZZ.js} +2 -2
  12. package/dist/{factory-NHORX63J.js → factory-ZFHE6GXT.js} +2 -2
  13. package/dist/index.d.ts +7 -0
  14. package/dist/index.js +6 -6
  15. package/dist/{setup-command-QIHX7ZVJ.js → setup-command-XFQUP6K7.js} +4 -4
  16. package/package.json +1 -1
  17. package/dist/chunk-CW2Z773T.js.map +0 -1
  18. /package/dist/{chunk-4IEUUQ4G.js.map → chunk-5SBKLQW6.js.map} +0 -0
  19. /package/dist/{chunk-Q25KKHNQ.js.map → chunk-JPAVOHZN.js.map} +0 -0
  20. /package/dist/{chunk-CD64JT3I.js.map → chunk-KW7W5X4J.js.map} +0 -0
  21. /package/dist/{chunk-6CHMHPT4.js.map → chunk-UXUA234N.js.map} +0 -0
  22. /package/dist/{consensus-vote-5PFFDRLR.js.map → consensus-vote-Q7QKGUEP.js.map} +0 -0
  23. /package/dist/{expert-bridge-5KVWX44T.js.map → expert-bridge-NF65ZTZZ.js.map} +0 -0
  24. /package/dist/{factory-NHORX63J.js.map → factory-ZFHE6GXT.js.map} +0 -0
  25. /package/dist/{setup-command-QIHX7ZVJ.js.map → setup-command-XFQUP6K7.js.map} +0 -0
@@ -23,7 +23,7 @@ async function getMcpConfigPath() {
23
23
  var cachedCircuitBreaker = null;
24
24
  async function getRouter() {
25
25
  if (cachedRouter !== null) return cachedRouter;
26
- const { createAllAdapters } = await import("./factory-NHORX63J.js");
26
+ const { createAllAdapters } = await import("./factory-ZFHE6GXT.js");
27
27
  const { createCompositeRouter } = await import("./composite-router-JD7URTC2.js");
28
28
  const adapters = createAllAdapters();
29
29
  if (adapters.size === 0) return null;
@@ -119,4 +119,4 @@ ${prompt}`;
119
119
  export {
120
120
  executeExpert
121
121
  };
122
- //# sourceMappingURL=chunk-4IEUUQ4G.js.map
122
+ //# sourceMappingURL=chunk-5SBKLQW6.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  VERSION,
6
6
  initDataDirectories
7
- } from "./chunk-CD64JT3I.js";
7
+ } from "./chunk-KW7W5X4J.js";
8
8
  import {
9
9
  CLI_SUBPROCESS_TIMEOUTS,
10
10
  createLogger,
@@ -1523,4 +1523,4 @@ export {
1523
1523
  setupCommand,
1524
1524
  setupCommandAsync
1525
1525
  };
1526
- //# sourceMappingURL=chunk-Q25KKHNQ.js.map
1526
+ //# sourceMappingURL=chunk-JPAVOHZN.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-633WH2ML.js";
4
4
  import {
5
5
  createAllAdapters
6
- } from "./chunk-CW2Z773T.js";
6
+ } from "./chunk-UOXT5CZ7.js";
7
7
  import {
8
8
  DEFAULT_CAPABILITIES,
9
9
  DEFAULT_MODEL_CAPABILITIES,
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk-CLYZ7FWP.js";
25
25
 
26
26
  // src/version.ts
27
- var VERSION = true ? "2.30.0" : "dev";
27
+ var VERSION = true ? "2.30.2" : "dev";
28
28
 
29
29
  // src/cli/setup-data-dir.ts
30
30
  import { mkdirSync, existsSync as existsSync2 } from "fs";
@@ -758,7 +758,7 @@ async function runDoctorFix(result) {
758
758
  writeLine2("\u2500".repeat(40));
759
759
  let fixCount = 0;
760
760
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
761
- const { runSetup } = await import("./setup-command-QIHX7ZVJ.js");
761
+ const { runSetup } = await import("./setup-command-XFQUP6K7.js");
762
762
  const setupResult = runSetup({
763
763
  skipMcp: true,
764
764
  skipRules: true,
@@ -836,4 +836,4 @@ export {
836
836
  startStdioServer,
837
837
  closeServer
838
838
  };
839
- //# sourceMappingURL=chunk-CD64JT3I.js.map
839
+ //# sourceMappingURL=chunk-KW7W5X4J.js.map
@@ -25,7 +25,7 @@ import {
25
25
  toolSuccessStructured,
26
26
  withProgressHeartbeat,
27
27
  wrapToolWithTimeout
28
- } from "./chunk-6CHMHPT4.js";
28
+ } from "./chunk-UXUA234N.js";
29
29
  import {
30
30
  REGISTRY_PATH,
31
31
  getProjectRoot,
@@ -65,7 +65,7 @@ import {
65
65
  import {
66
66
  DEFAULT_TASK_TTL_MS,
67
67
  clampTaskTtl
68
- } from "./chunk-CD64JT3I.js";
68
+ } from "./chunk-KW7W5X4J.js";
69
69
  import {
70
70
  createSessionMemory
71
71
  } from "./chunk-KQIDTE52.js";
@@ -87,7 +87,7 @@ import {
87
87
  } from "./chunk-66NNHMVB.js";
88
88
  import {
89
89
  executeExpert
90
- } from "./chunk-4IEUUQ4G.js";
90
+ } from "./chunk-5SBKLQW6.js";
91
91
  import {
92
92
  ClaudeCliAdapter,
93
93
  CliDetectionCache,
@@ -96,7 +96,7 @@ import {
96
96
  getAvailableClis,
97
97
  sleep,
98
98
  withTimeout
99
- } from "./chunk-CW2Z773T.js";
99
+ } from "./chunk-UOXT5CZ7.js";
100
100
  import {
101
101
  AGENT_ROUTER_TIMEOUTS,
102
102
  API_TIMEOUTS,
@@ -40882,7 +40882,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
40882
40882
  ]);
40883
40883
  async function classifyWithLLM(task) {
40884
40884
  try {
40885
- const { executeExpert: executeExpert2 } = await import("./expert-bridge-5KVWX44T.js");
40885
+ const { executeExpert: executeExpert2 } = await import("./expert-bridge-NF65ZTZZ.js");
40886
40886
  const prompt = [
40887
40887
  "Classify this task into exactly one pipeline template.",
40888
40888
  "Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
@@ -41870,7 +41870,7 @@ ${contextBlock}`;
41870
41870
  const strategy = config.votingStrategy ?? "higher_order";
41871
41871
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
41872
41872
  try {
41873
- const { executeVoting } = await import("./consensus-vote-5PFFDRLR.js");
41873
+ const { executeVoting } = await import("./consensus-vote-Q7QKGUEP.js");
41874
41874
  const votingResult = await executeVoting(
41875
41875
  {
41876
41876
  proposal: plan.slice(0, 4e3),
@@ -41990,11 +41990,18 @@ Verdict: PASS/NEEDS_WORK/REJECT`
41990
41990
  }
41991
41991
  };
41992
41992
  }
41993
+ function extractJsonArray(response) {
41994
+ const start = response.indexOf("[");
41995
+ if (start === -1) return void 0;
41996
+ const end = response.lastIndexOf("]");
41997
+ if (end <= start) return void 0;
41998
+ return response.slice(start, end + 1);
41999
+ }
41993
42000
  function parseTasksFromResponse(response, fallbackPlan) {
41994
42001
  try {
41995
- const jsonMatch = /\[[\s\S]*\]/.exec(response);
41996
- if (jsonMatch !== null) {
41997
- const parsed = JSON.parse(jsonMatch[0]);
42002
+ const candidate = extractJsonArray(response);
42003
+ if (candidate !== void 0) {
42004
+ const parsed = JSON.parse(candidate);
41998
42005
  return parsed.map((t, i) => ({
41999
42006
  id: String(t["id"] ?? `task-${String(i + 1)}`),
42000
42007
  title: String(t["title"] ?? `Task ${String(i + 1)}`),
@@ -53032,4 +53039,4 @@ export {
53032
53039
  detectBackend,
53033
53040
  createTaskTracker
53034
53041
  };
53035
- //# sourceMappingURL=chunk-FXX5UQCK.js.map
53042
+ //# sourceMappingURL=chunk-MHQTOOPA.js.map