nexus-agents 2.30.1 → 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.
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  VERSION,
6
6
  initDataDirectories
7
- } from "./chunk-ZOTDJ4UR.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-7RE6BBXJ.js.map
1526
+ //# sourceMappingURL=chunk-JPAVOHZN.js.map
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk-CLYZ7FWP.js";
25
25
 
26
26
  // src/version.ts
27
- var VERSION = true ? "2.30.1" : "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-JXHUUFT3.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-ZOTDJ4UR.js.map
839
+ //# sourceMappingURL=chunk-KW7W5X4J.js.map
@@ -65,7 +65,7 @@ import {
65
65
  import {
66
66
  DEFAULT_TASK_TTL_MS,
67
67
  clampTaskTtl
68
- } from "./chunk-ZOTDJ4UR.js";
68
+ } from "./chunk-KW7W5X4J.js";
69
69
  import {
70
70
  createSessionMemory
71
71
  } from "./chunk-KQIDTE52.js";
@@ -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-DEESTIZL.js.map
53042
+ //# sourceMappingURL=chunk-MHQTOOPA.js.map