nexus-agents 2.30.1 → 2.30.3

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-LUN3RDCO.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-6NX44VY4.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-LUN3RDCO.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-DL4JUCGN.js.map