open-agents-ai 0.103.64 → 0.103.65

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 (2) hide show
  1. package/dist/index.js +413 -402
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -39,7 +39,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
39
39
  mod
40
40
  ));
41
41
 
42
- // packages/cli/dist/config.js
42
+ // ../packages/cli/dist/config.js
43
43
  import { readFileSync, existsSync, mkdirSync, writeFileSync } from "node:fs";
44
44
  import { homedir } from "node:os";
45
45
  import { join } from "node:path";
@@ -126,7 +126,7 @@ function coerceConfigValue(key, value) {
126
126
  }
127
127
  var DEFAULT_CONFIG, VALID_BACKEND_TYPES;
128
128
  var init_config = __esm({
129
- "packages/cli/dist/config.js"() {
129
+ "../packages/cli/dist/config.js"() {
130
130
  "use strict";
131
131
  DEFAULT_CONFIG = Object.freeze({
132
132
  backendUrl: "http://127.0.0.1:11434",
@@ -143,7 +143,7 @@ var init_config = __esm({
143
143
  }
144
144
  });
145
145
 
146
- // packages/cli/dist/ui/output.js
146
+ // ../packages/cli/dist/ui/output.js
147
147
  function ansi(code, text, tty) {
148
148
  return tty ? `\x1B[${code}m${text}\x1B[0m` : text;
149
149
  }
@@ -222,7 +222,7 @@ function printReport(opts) {
222
222
  }
223
223
  var isTTY, isStderrTTY, c, STATUS_ICON, STATUS_COLOR;
224
224
  var init_output = __esm({
225
- "packages/cli/dist/ui/output.js"() {
225
+ "../packages/cli/dist/ui/output.js"() {
226
226
  "use strict";
227
227
  isTTY = process.stdout.isTTY;
228
228
  isStderrTTY = process.stderr.isTTY;
@@ -254,7 +254,7 @@ var init_output = __esm({
254
254
  }
255
255
  });
256
256
 
257
- // packages/cli/dist/updater.js
257
+ // ../packages/cli/dist/updater.js
258
258
  import { execSync } from "node:child_process";
259
259
  import { existsSync as existsSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
260
260
  import { join as join2 } from "node:path";
@@ -362,7 +362,7 @@ function formatUpdateBanner(info) {
362
362
  }
363
363
  var PACKAGE_NAME, CHECK_INTERVAL_MS, CACHE_DIR, CACHE_FILE;
364
364
  var init_updater = __esm({
365
- "packages/cli/dist/updater.js"() {
365
+ "../packages/cli/dist/updater.js"() {
366
366
  "use strict";
367
367
  PACKAGE_NAME = "open-agents-ai";
368
368
  CHECK_INTERVAL_MS = 60 * 60 * 1e3;
@@ -371,10 +371,10 @@ var init_updater = __esm({
371
371
  }
372
372
  });
373
373
 
374
- // packages/cli/dist/ui/spinner.js
374
+ // ../packages/cli/dist/ui/spinner.js
375
375
  var FRAMES, INTERVAL_MS, Spinner;
376
376
  var init_spinner = __esm({
377
- "packages/cli/dist/ui/spinner.js"() {
377
+ "../packages/cli/dist/ui/spinner.js"() {
378
378
  "use strict";
379
379
  FRAMES = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
380
380
  INTERVAL_MS = 80;
@@ -472,10 +472,10 @@ var init_spinner = __esm({
472
472
  }
473
473
  });
474
474
 
475
- // packages/backend-vllm/dist/sleep.js
475
+ // ../packages/backend-vllm/dist/sleep.js
476
476
  var SleepManager;
477
477
  var init_sleep = __esm({
478
- "packages/backend-vllm/dist/sleep.js"() {
478
+ "../packages/backend-vllm/dist/sleep.js"() {
479
479
  "use strict";
480
480
  SleepManager = class {
481
481
  baseUrl;
@@ -551,7 +551,7 @@ var init_sleep = __esm({
551
551
  }
552
552
  });
553
553
 
554
- // packages/backend-vllm/dist/normalizeUrl.js
554
+ // ../packages/backend-vllm/dist/normalizeUrl.js
555
555
  function normalizeBaseUrl(url) {
556
556
  let u = url.trim();
557
557
  u = u.replace(/\/+$/, "");
@@ -583,7 +583,7 @@ function detectProvider(url) {
583
583
  }
584
584
  var PROVIDERS;
585
585
  var init_normalizeUrl = __esm({
586
- "packages/backend-vllm/dist/normalizeUrl.js"() {
586
+ "../packages/backend-vllm/dist/normalizeUrl.js"() {
587
587
  "use strict";
588
588
  PROVIDERS = [
589
589
  // --- Cloud providers (specific domains) ---
@@ -652,7 +652,7 @@ var init_normalizeUrl = __esm({
652
652
  }
653
653
  });
654
654
 
655
- // packages/backend-vllm/dist/VllmBackend.js
655
+ // ../packages/backend-vllm/dist/VllmBackend.js
656
656
  function agentMessageToChatMessage(msg) {
657
657
  return {
658
658
  role: msg.role,
@@ -664,7 +664,7 @@ function buildEmptyUsage() {
664
664
  }
665
665
  var VllmBackend;
666
666
  var init_VllmBackend = __esm({
667
- "packages/backend-vllm/dist/VllmBackend.js"() {
667
+ "../packages/backend-vllm/dist/VllmBackend.js"() {
668
668
  "use strict";
669
669
  init_sleep();
670
670
  init_normalizeUrl();
@@ -807,7 +807,7 @@ var init_VllmBackend = __esm({
807
807
  }
808
808
  });
809
809
 
810
- // packages/backend-vllm/dist/OllamaBackend.js
810
+ // ../packages/backend-vllm/dist/OllamaBackend.js
811
811
  function agentMessageToChatMessage2(msg) {
812
812
  return {
813
813
  role: msg.role,
@@ -819,7 +819,7 @@ function buildEmptyUsage2() {
819
819
  }
820
820
  var OllamaBackend;
821
821
  var init_OllamaBackend = __esm({
822
- "packages/backend-vllm/dist/OllamaBackend.js"() {
822
+ "../packages/backend-vllm/dist/OllamaBackend.js"() {
823
823
  "use strict";
824
824
  init_normalizeUrl();
825
825
  OllamaBackend = class _OllamaBackend {
@@ -998,7 +998,7 @@ var init_OllamaBackend = __esm({
998
998
  }
999
999
  });
1000
1000
 
1001
- // packages/backend-vllm/dist/FakeBackend.js
1001
+ // ../packages/backend-vllm/dist/FakeBackend.js
1002
1002
  function fnv1a32(input) {
1003
1003
  const FNV_PRIME = 16777619;
1004
1004
  const FNV_OFFSET_BASIS = 2166136261;
@@ -1011,7 +1011,7 @@ function fnv1a32(input) {
1011
1011
  }
1012
1012
  var FakeBackend;
1013
1013
  var init_FakeBackend = __esm({
1014
- "packages/backend-vllm/dist/FakeBackend.js"() {
1014
+ "../packages/backend-vllm/dist/FakeBackend.js"() {
1015
1015
  "use strict";
1016
1016
  FakeBackend = class {
1017
1017
  options;
@@ -1111,7 +1111,7 @@ var init_FakeBackend = __esm({
1111
1111
  }
1112
1112
  });
1113
1113
 
1114
- // packages/backend-vllm/dist/backendFactory.js
1114
+ // ../packages/backend-vllm/dist/backendFactory.js
1115
1115
  function detectBackendType(baseUrl) {
1116
1116
  if (!baseUrl) {
1117
1117
  return "ollama";
@@ -1150,7 +1150,7 @@ function createBackend(opts) {
1150
1150
  }
1151
1151
  }
1152
1152
  var init_backendFactory = __esm({
1153
- "packages/backend-vllm/dist/backendFactory.js"() {
1153
+ "../packages/backend-vllm/dist/backendFactory.js"() {
1154
1154
  "use strict";
1155
1155
  init_OllamaBackend();
1156
1156
  init_VllmBackend();
@@ -1158,7 +1158,7 @@ var init_backendFactory = __esm({
1158
1158
  }
1159
1159
  });
1160
1160
 
1161
- // packages/backend-vllm/dist/metrics.js
1161
+ // ../packages/backend-vllm/dist/metrics.js
1162
1162
  function parseMetricValue(prometheusText, metricName) {
1163
1163
  const lines = prometheusText.split("\n");
1164
1164
  for (const line of lines) {
@@ -1179,7 +1179,7 @@ function parseMetricValue(prometheusText, metricName) {
1179
1179
  }
1180
1180
  var MetricsCollector;
1181
1181
  var init_metrics = __esm({
1182
- "packages/backend-vllm/dist/metrics.js"() {
1182
+ "../packages/backend-vllm/dist/metrics.js"() {
1183
1183
  "use strict";
1184
1184
  MetricsCollector = class {
1185
1185
  metricsUrl;
@@ -1234,16 +1234,16 @@ var init_metrics = __esm({
1234
1234
  }
1235
1235
  });
1236
1236
 
1237
- // packages/backend-vllm/dist/routing.js
1237
+ // ../packages/backend-vllm/dist/routing.js
1238
1238
  var init_routing = __esm({
1239
- "packages/backend-vllm/dist/routing.js"() {
1239
+ "../packages/backend-vllm/dist/routing.js"() {
1240
1240
  "use strict";
1241
1241
  }
1242
1242
  });
1243
1243
 
1244
- // packages/backend-vllm/dist/index.js
1244
+ // ../packages/backend-vllm/dist/index.js
1245
1245
  var init_dist = __esm({
1246
- "packages/backend-vllm/dist/index.js"() {
1246
+ "../packages/backend-vllm/dist/index.js"() {
1247
1247
  "use strict";
1248
1248
  init_VllmBackend();
1249
1249
  init_OllamaBackend();
@@ -1256,10 +1256,10 @@ var init_dist = __esm({
1256
1256
  }
1257
1257
  });
1258
1258
 
1259
- // packages/execution/dist/tool-executor.js
1259
+ // ../packages/execution/dist/tool-executor.js
1260
1260
  var DEFAULT_CONFIG2, ToolExecutor;
1261
1261
  var init_tool_executor = __esm({
1262
- "packages/execution/dist/tool-executor.js"() {
1262
+ "../packages/execution/dist/tool-executor.js"() {
1263
1263
  "use strict";
1264
1264
  DEFAULT_CONFIG2 = {
1265
1265
  workingDir: ".",
@@ -1312,11 +1312,11 @@ var init_tool_executor = __esm({
1312
1312
  }
1313
1313
  });
1314
1314
 
1315
- // packages/execution/dist/tools/shell.js
1315
+ // ../packages/execution/dist/tools/shell.js
1316
1316
  import { spawn } from "node:child_process";
1317
1317
  var PERMISSION_ERROR_RE, ShellTool;
1318
1318
  var init_shell = __esm({
1319
- "packages/execution/dist/tools/shell.js"() {
1319
+ "../packages/execution/dist/tools/shell.js"() {
1320
1320
  "use strict";
1321
1321
  PERMISSION_ERROR_RE = /Permission denied|Operation not permitted|EACCES|EPERM|PermissionError|sudo:|not permitted|password is required|authentication failure/i;
1322
1322
  ShellTool = class {
@@ -1513,7 +1513,7 @@ ${stderr}` : ""),
1513
1513
  }
1514
1514
  });
1515
1515
 
1516
- // packages/execution/dist/tools/file-read.js
1516
+ // ../packages/execution/dist/tools/file-read.js
1517
1517
  import { readFile } from "node:fs/promises";
1518
1518
  import { resolve } from "node:path";
1519
1519
  function extractPath(args) {
@@ -1542,7 +1542,7 @@ function extractPath(args) {
1542
1542
  }
1543
1543
  var FileReadTool;
1544
1544
  var init_file_read = __esm({
1545
- "packages/execution/dist/tools/file-read.js"() {
1545
+ "../packages/execution/dist/tools/file-read.js"() {
1546
1546
  "use strict";
1547
1547
  FileReadTool = class {
1548
1548
  name = "file_read";
@@ -1630,7 +1630,7 @@ var init_file_read = __esm({
1630
1630
  }
1631
1631
  });
1632
1632
 
1633
- // packages/execution/dist/tools/file-write.js
1633
+ // ../packages/execution/dist/tools/file-write.js
1634
1634
  import { writeFile, mkdir } from "node:fs/promises";
1635
1635
  import { resolve as resolve2, dirname } from "node:path";
1636
1636
  function extractWritePath(args) {
@@ -1643,7 +1643,7 @@ function extractWritePath(args) {
1643
1643
  }
1644
1644
  var FileWriteTool;
1645
1645
  var init_file_write = __esm({
1646
- "packages/execution/dist/tools/file-write.js"() {
1646
+ "../packages/execution/dist/tools/file-write.js"() {
1647
1647
  "use strict";
1648
1648
  FileWriteTool = class {
1649
1649
  name = "file_write";
@@ -1702,13 +1702,13 @@ var init_file_write = __esm({
1702
1702
  }
1703
1703
  });
1704
1704
 
1705
- // packages/execution/dist/tools/grep-search.js
1705
+ // ../packages/execution/dist/tools/grep-search.js
1706
1706
  import { execFile } from "node:child_process";
1707
1707
  import { promisify } from "node:util";
1708
1708
  import { resolve as resolve3 } from "node:path";
1709
1709
  var execFileAsync, MAX_OUTPUT_LINES, GrepSearchTool;
1710
1710
  var init_grep_search = __esm({
1711
- "packages/execution/dist/tools/grep-search.js"() {
1711
+ "../packages/execution/dist/tools/grep-search.js"() {
1712
1712
  "use strict";
1713
1713
  execFileAsync = promisify(execFile);
1714
1714
  MAX_OUTPUT_LINES = 100;
@@ -1807,13 +1807,13 @@ var init_grep_search = __esm({
1807
1807
  }
1808
1808
  });
1809
1809
 
1810
- // packages/execution/dist/tools/glob-find.js
1810
+ // ../packages/execution/dist/tools/glob-find.js
1811
1811
  import { execFile as execFile2 } from "node:child_process";
1812
1812
  import { promisify as promisify2 } from "node:util";
1813
1813
  import { resolve as resolve4 } from "node:path";
1814
1814
  var execFileAsync2, MAX_RESULTS, GlobFindTool;
1815
1815
  var init_glob_find = __esm({
1816
- "packages/execution/dist/tools/glob-find.js"() {
1816
+ "../packages/execution/dist/tools/glob-find.js"() {
1817
1817
  "use strict";
1818
1818
  execFileAsync2 = promisify2(execFile2);
1819
1819
  MAX_RESULTS = 50;
@@ -1884,10 +1884,10 @@ var init_glob_find = __esm({
1884
1884
  }
1885
1885
  });
1886
1886
 
1887
- // packages/execution/dist/tools/web-fetch.js
1887
+ // ../packages/execution/dist/tools/web-fetch.js
1888
1888
  var DEFAULT_MAX_LENGTH, WebFetchTool;
1889
1889
  var init_web_fetch = __esm({
1890
- "packages/execution/dist/tools/web-fetch.js"() {
1890
+ "../packages/execution/dist/tools/web-fetch.js"() {
1891
1891
  "use strict";
1892
1892
  DEFAULT_MAX_LENGTH = 5e3;
1893
1893
  WebFetchTool = class {
@@ -1959,7 +1959,7 @@ var init_web_fetch = __esm({
1959
1959
  }
1960
1960
  });
1961
1961
 
1962
- // packages/execution/dist/tools/web-search.js
1962
+ // ../packages/execution/dist/tools/web-search.js
1963
1963
  function detectSearchProvider() {
1964
1964
  if (process.env["TAVILY_API_KEY"])
1965
1965
  return "tavily";
@@ -1969,7 +1969,7 @@ function detectSearchProvider() {
1969
1969
  }
1970
1970
  var DEFAULT_NUM_RESULTS, DUCKDUCKGO_HTML_URL, TAVILY_API_URL, JINA_SEARCH_URL, WebSearchTool;
1971
1971
  var init_web_search = __esm({
1972
- "packages/execution/dist/tools/web-search.js"() {
1972
+ "../packages/execution/dist/tools/web-search.js"() {
1973
1973
  "use strict";
1974
1974
  DEFAULT_NUM_RESULTS = 5;
1975
1975
  DUCKDUCKGO_HTML_URL = "https://html.duckduckgo.com/html/";
@@ -2233,14 +2233,14 @@ ${formatted}`,
2233
2233
  }
2234
2234
  });
2235
2235
 
2236
- // packages/execution/dist/tools/web-crawl.js
2236
+ // ../packages/execution/dist/tools/web-crawl.js
2237
2237
  import { execFile as execFile3 } from "node:child_process";
2238
2238
  import { dirname as dirname2, join as join3 } from "node:path";
2239
2239
  import { fileURLToPath } from "node:url";
2240
2240
  import { existsSync as existsSync3 } from "node:fs";
2241
2241
  var DEFAULT_MAX_LENGTH2, WebCrawlTool;
2242
2242
  var init_web_crawl = __esm({
2243
- "packages/execution/dist/tools/web-crawl.js"() {
2243
+ "../packages/execution/dist/tools/web-crawl.js"() {
2244
2244
  "use strict";
2245
2245
  DEFAULT_MAX_LENGTH2 = 8e3;
2246
2246
  WebCrawlTool = class {
@@ -2514,7 +2514,7 @@ Meta: ${metaKeys.map((k) => `${k}="${meta[k]?.slice(0, 80)}"`).join(", ")}`);
2514
2514
  }
2515
2515
  });
2516
2516
 
2517
- // packages/execution/dist/tools/file-edit.js
2517
+ // ../packages/execution/dist/tools/file-edit.js
2518
2518
  import { readFile as readFile2, writeFile as writeFile2 } from "node:fs/promises";
2519
2519
  import { resolve as resolve5 } from "node:path";
2520
2520
  function extractEditPath(args) {
@@ -2549,7 +2549,7 @@ function replaceAllOccurrences(haystack, needle, replacement) {
2549
2549
  }
2550
2550
  var FileEditTool;
2551
2551
  var init_file_edit = __esm({
2552
- "packages/execution/dist/tools/file-edit.js"() {
2552
+ "../packages/execution/dist/tools/file-edit.js"() {
2553
2553
  "use strict";
2554
2554
  FileEditTool = class {
2555
2555
  name = "file_edit";
@@ -2659,12 +2659,12 @@ var init_file_edit = __esm({
2659
2659
  }
2660
2660
  });
2661
2661
 
2662
- // packages/execution/dist/tools/memory-read.js
2662
+ // ../packages/execution/dist/tools/memory-read.js
2663
2663
  import { readFile as readFile3 } from "node:fs/promises";
2664
2664
  import { resolve as resolve6, join as join4 } from "node:path";
2665
2665
  var MemoryReadTool;
2666
2666
  var init_memory_read = __esm({
2667
- "packages/execution/dist/tools/memory-read.js"() {
2667
+ "../packages/execution/dist/tools/memory-read.js"() {
2668
2668
  "use strict";
2669
2669
  MemoryReadTool = class {
2670
2670
  name = "memory_read";
@@ -2754,13 +2754,13 @@ ${JSON.stringify(entries, null, 2)}`,
2754
2754
  }
2755
2755
  });
2756
2756
 
2757
- // packages/execution/dist/tools/memory-write.js
2757
+ // ../packages/execution/dist/tools/memory-write.js
2758
2758
  import { readFile as readFile4, writeFile as writeFile3, mkdir as mkdir2 } from "node:fs/promises";
2759
2759
  import { resolve as resolve7, join as join5 } from "node:path";
2760
2760
  import { randomBytes } from "node:crypto";
2761
2761
  var MemoryWriteTool;
2762
2762
  var init_memory_write = __esm({
2763
- "packages/execution/dist/tools/memory-write.js"() {
2763
+ "../packages/execution/dist/tools/memory-write.js"() {
2764
2764
  "use strict";
2765
2765
  MemoryWriteTool = class {
2766
2766
  name = "memory_write";
@@ -2845,7 +2845,7 @@ var init_memory_write = __esm({
2845
2845
  }
2846
2846
  });
2847
2847
 
2848
- // packages/execution/dist/tools/memory-search.js
2848
+ // ../packages/execution/dist/tools/memory-search.js
2849
2849
  import { readFile as readFile5, readdir } from "node:fs/promises";
2850
2850
  import { resolve as resolve8, join as join6, basename } from "node:path";
2851
2851
  import { existsSync as existsSync4 } from "node:fs";
@@ -2951,7 +2951,7 @@ function tokenize(text) {
2951
2951
  }
2952
2952
  var MemorySearchTool;
2953
2953
  var init_memory_search = __esm({
2954
- "packages/execution/dist/tools/memory-search.js"() {
2954
+ "../packages/execution/dist/tools/memory-search.js"() {
2955
2955
  "use strict";
2956
2956
  MemorySearchTool = class {
2957
2957
  name = "memory_search";
@@ -3075,10 +3075,10 @@ Try broader terms or use memory_read with a specific topic.`,
3075
3075
  }
3076
3076
  });
3077
3077
 
3078
- // packages/execution/dist/tools/explore-tools.js
3078
+ // ../packages/execution/dist/tools/explore-tools.js
3079
3079
  var TOOL_CATALOG, ExploreToolsTool;
3080
3080
  var init_explore_tools = __esm({
3081
- "packages/execution/dist/tools/explore-tools.js"() {
3081
+ "../packages/execution/dist/tools/explore-tools.js"() {
3082
3082
  "use strict";
3083
3083
  TOOL_CATALOG = {
3084
3084
  grep_search: "Search file contents with regex patterns",
@@ -3242,12 +3242,12 @@ Examples:`);
3242
3242
  }
3243
3243
  });
3244
3244
 
3245
- // packages/execution/dist/tools/list-directory.js
3245
+ // ../packages/execution/dist/tools/list-directory.js
3246
3246
  import { readdirSync, statSync } from "node:fs";
3247
3247
  import { resolve as resolve9, join as join7 } from "node:path";
3248
3248
  var EXCLUDED, MAX_ENTRIES, ListDirectoryTool;
3249
3249
  var init_list_directory = __esm({
3250
- "packages/execution/dist/tools/list-directory.js"() {
3250
+ "../packages/execution/dist/tools/list-directory.js"() {
3251
3251
  "use strict";
3252
3252
  EXCLUDED = /* @__PURE__ */ new Set(["node_modules", ".git"]);
3253
3253
  MAX_ENTRIES = 100;
@@ -3329,11 +3329,11 @@ var init_list_directory = __esm({
3329
3329
  }
3330
3330
  });
3331
3331
 
3332
- // packages/execution/dist/tools/aiwg-setup.js
3332
+ // ../packages/execution/dist/tools/aiwg-setup.js
3333
3333
  import { execSync as execSync2 } from "node:child_process";
3334
3334
  var AiwgSetupTool;
3335
3335
  var init_aiwg_setup = __esm({
3336
- "packages/execution/dist/tools/aiwg-setup.js"() {
3336
+ "../packages/execution/dist/tools/aiwg-setup.js"() {
3337
3337
  "use strict";
3338
3338
  AiwgSetupTool = class {
3339
3339
  name = "aiwg_setup";
@@ -3407,13 +3407,13 @@ ${output}`,
3407
3407
  }
3408
3408
  });
3409
3409
 
3410
- // packages/execution/dist/tools/aiwg-health.js
3410
+ // ../packages/execution/dist/tools/aiwg-health.js
3411
3411
  import { execSync as execSync3 } from "node:child_process";
3412
3412
  import { existsSync as existsSync5, readdirSync as readdirSync2, readFileSync as readFileSync3, statSync as statSync2 } from "node:fs";
3413
3413
  import { join as join8 } from "node:path";
3414
3414
  var AiwgHealthTool;
3415
3415
  var init_aiwg_health = __esm({
3416
- "packages/execution/dist/tools/aiwg-health.js"() {
3416
+ "../packages/execution/dist/tools/aiwg-health.js"() {
3417
3417
  "use strict";
3418
3418
  AiwgHealthTool = class {
3419
3419
  name = "aiwg_health";
@@ -3619,11 +3619,11 @@ var init_aiwg_health = __esm({
3619
3619
  }
3620
3620
  });
3621
3621
 
3622
- // packages/execution/dist/tools/aiwg-workflow.js
3622
+ // ../packages/execution/dist/tools/aiwg-workflow.js
3623
3623
  import { execSync as execSync4 } from "node:child_process";
3624
3624
  var AiwgWorkflowTool;
3625
3625
  var init_aiwg_workflow = __esm({
3626
- "packages/execution/dist/tools/aiwg-workflow.js"() {
3626
+ "../packages/execution/dist/tools/aiwg-workflow.js"() {
3627
3627
  "use strict";
3628
3628
  AiwgWorkflowTool = class {
3629
3629
  name = "aiwg_workflow";
@@ -3704,7 +3704,7 @@ var init_aiwg_workflow = __esm({
3704
3704
  }
3705
3705
  });
3706
3706
 
3707
- // packages/execution/dist/tools/batch-edit.js
3707
+ // ../packages/execution/dist/tools/batch-edit.js
3708
3708
  import { readFile as readFile6, writeFile as writeFile4 } from "node:fs/promises";
3709
3709
  import { resolve as resolve10 } from "node:path";
3710
3710
  function countOccurrences2(haystack, needle) {
@@ -3718,7 +3718,7 @@ function countOccurrences2(haystack, needle) {
3718
3718
  }
3719
3719
  var BatchEditTool;
3720
3720
  var init_batch_edit = __esm({
3721
- "packages/execution/dist/tools/batch-edit.js"() {
3721
+ "../packages/execution/dist/tools/batch-edit.js"() {
3722
3722
  "use strict";
3723
3723
  BatchEditTool = class {
3724
3724
  name = "batch_edit";
@@ -3830,12 +3830,12 @@ ${results.join("\n")}`,
3830
3830
  }
3831
3831
  });
3832
3832
 
3833
- // packages/execution/dist/tools/file-patch.js
3833
+ // ../packages/execution/dist/tools/file-patch.js
3834
3834
  import { readFile as readFile7, writeFile as writeFile5, copyFile } from "node:fs/promises";
3835
3835
  import { resolve as resolve11 } from "node:path";
3836
3836
  var FilePatchTool;
3837
3837
  var init_file_patch = __esm({
3838
- "packages/execution/dist/tools/file-patch.js"() {
3838
+ "../packages/execution/dist/tools/file-patch.js"() {
3839
3839
  "use strict";
3840
3840
  FilePatchTool = class {
3841
3841
  name = "file_patch";
@@ -4002,12 +4002,12 @@ ${diff}`,
4002
4002
  }
4003
4003
  });
4004
4004
 
4005
- // packages/execution/dist/tools/codebase-map.js
4005
+ // ../packages/execution/dist/tools/codebase-map.js
4006
4006
  import { readdirSync as readdirSync3, statSync as statSync3, readFileSync as readFileSync4, existsSync as existsSync6 } from "node:fs";
4007
4007
  import { join as join9, relative, extname } from "node:path";
4008
4008
  var CodebaseMapTool;
4009
4009
  var init_codebase_map = __esm({
4010
- "packages/execution/dist/tools/codebase-map.js"() {
4010
+ "../packages/execution/dist/tools/codebase-map.js"() {
4011
4011
  "use strict";
4012
4012
  CodebaseMapTool = class {
4013
4013
  name = "codebase_map";
@@ -4290,13 +4290,13 @@ var init_codebase_map = __esm({
4290
4290
  }
4291
4291
  });
4292
4292
 
4293
- // packages/execution/dist/tools/diagnostic.js
4293
+ // ../packages/execution/dist/tools/diagnostic.js
4294
4294
  import { execSync as execSync5 } from "node:child_process";
4295
4295
  import { existsSync as existsSync7, readFileSync as readFileSync5 } from "node:fs";
4296
4296
  import { join as join10 } from "node:path";
4297
4297
  var DiagnosticTool;
4298
4298
  var init_diagnostic = __esm({
4299
- "packages/execution/dist/tools/diagnostic.js"() {
4299
+ "../packages/execution/dist/tools/diagnostic.js"() {
4300
4300
  "use strict";
4301
4301
  DiagnosticTool = class {
4302
4302
  name = "diagnostic";
@@ -4435,13 +4435,13 @@ ${err.stderr ?? ""}`.trim(),
4435
4435
  }
4436
4436
  });
4437
4437
 
4438
- // packages/execution/dist/tools/git-info.js
4438
+ // ../packages/execution/dist/tools/git-info.js
4439
4439
  import { execSync as execSync6 } from "node:child_process";
4440
4440
  import { existsSync as existsSync8 } from "node:fs";
4441
4441
  import { join as join11 } from "node:path";
4442
4442
  var GitInfoTool;
4443
4443
  var init_git_info = __esm({
4444
- "packages/execution/dist/tools/git-info.js"() {
4444
+ "../packages/execution/dist/tools/git-info.js"() {
4445
4445
  "use strict";
4446
4446
  GitInfoTool = class {
4447
4447
  name = "git_info";
@@ -4566,7 +4566,7 @@ var init_git_info = __esm({
4566
4566
  }
4567
4567
  });
4568
4568
 
4569
- // packages/execution/dist/tools/background-task.js
4569
+ // ../packages/execution/dist/tools/background-task.js
4570
4570
  import { spawn as spawn2 } from "node:child_process";
4571
4571
  function toInfo(entry) {
4572
4572
  return {
@@ -4582,7 +4582,7 @@ function toInfo(entry) {
4582
4582
  }
4583
4583
  var BackgroundTaskManager, BackgroundRunTool, TaskStatusTool, TaskOutputTool, TaskStopTool;
4584
4584
  var init_background_task = __esm({
4585
- "packages/execution/dist/tools/background-task.js"() {
4585
+ "../packages/execution/dist/tools/background-task.js"() {
4586
4586
  "use strict";
4587
4587
  BackgroundTaskManager = class {
4588
4588
  tasks = /* @__PURE__ */ new Map();
@@ -4854,7 +4854,7 @@ Exit code: ${task.exitCode ?? "N/A"}`,
4854
4854
  }
4855
4855
  });
4856
4856
 
4857
- // packages/execution/dist/system-deps.js
4857
+ // ../packages/execution/dist/system-deps.js
4858
4858
  import { execSync as execSync7 } from "node:child_process";
4859
4859
  function detectPackageManager() {
4860
4860
  if (_detectedPkgManager !== void 0)
@@ -5046,7 +5046,7 @@ function resetDepCache() {
5046
5046
  }
5047
5047
  var DESKTOP_DEPS, _detectedPkgManager, _cache, _sudoPassword;
5048
5048
  var init_system_deps = __esm({
5049
- "packages/execution/dist/system-deps.js"() {
5049
+ "../packages/execution/dist/system-deps.js"() {
5050
5050
  "use strict";
5051
5051
  DESKTOP_DEPS = [
5052
5052
  {
@@ -5097,7 +5097,7 @@ var init_system_deps = __esm({
5097
5097
  }
5098
5098
  });
5099
5099
 
5100
- // packages/execution/dist/tools/image.js
5100
+ // ../packages/execution/dist/tools/image.js
5101
5101
  import { existsSync as existsSync9, readFileSync as readFileSync6, statSync as statSync4 } from "node:fs";
5102
5102
  import { resolve as resolve12, extname as extname2, basename as basename2 } from "node:path";
5103
5103
  import { execSync as execSync8 } from "node:child_process";
@@ -5186,7 +5186,7 @@ function runOCR(filePath) {
5186
5186
  }
5187
5187
  var IMAGE_EXTENSIONS, ImageReadTool, ScreenshotTool, OCRTool;
5188
5188
  var init_image = __esm({
5189
- "packages/execution/dist/tools/image.js"() {
5189
+ "../packages/execution/dist/tools/image.js"() {
5190
5190
  "use strict";
5191
5191
  init_system_deps();
5192
5192
  IMAGE_EXTENSIONS = /* @__PURE__ */ new Set([
@@ -5476,7 +5476,7 @@ ${text}`,
5476
5476
  }
5477
5477
  });
5478
5478
 
5479
- // packages/execution/dist/tools/custom-tool.js
5479
+ // ../packages/execution/dist/tools/custom-tool.js
5480
5480
  var custom_tool_exports = {};
5481
5481
  __export(custom_tool_exports, {
5482
5482
  CustomTool: () => CustomTool,
@@ -5579,7 +5579,7 @@ function loadFromDirectory(dir) {
5579
5579
  }
5580
5580
  var CustomTool;
5581
5581
  var init_custom_tool = __esm({
5582
- "packages/execution/dist/tools/custom-tool.js"() {
5582
+ "../packages/execution/dist/tools/custom-tool.js"() {
5583
5583
  "use strict";
5584
5584
  CustomTool = class {
5585
5585
  name;
@@ -5688,10 +5688,10 @@ ${stderr}` : ""),
5688
5688
  }
5689
5689
  });
5690
5690
 
5691
- // packages/execution/dist/tools/tool-creator.js
5691
+ // ../packages/execution/dist/tools/tool-creator.js
5692
5692
  var CreateToolTool, ManageToolsTool;
5693
5693
  var init_tool_creator = __esm({
5694
- "packages/execution/dist/tools/tool-creator.js"() {
5694
+ "../packages/execution/dist/tools/tool-creator.js"() {
5695
5695
  "use strict";
5696
5696
  init_custom_tool();
5697
5697
  CreateToolTool = class {
@@ -5982,7 +5982,7 @@ var init_tool_creator = __esm({
5982
5982
  }
5983
5983
  });
5984
5984
 
5985
- // packages/execution/dist/tools/skill-tools.js
5985
+ // ../packages/execution/dist/tools/skill-tools.js
5986
5986
  import { existsSync as existsSync11, readdirSync as readdirSync5, readFileSync as readFileSync8 } from "node:fs";
5987
5987
  import { join as join14, basename as basename3, dirname as dirname3 } from "node:path";
5988
5988
  import { homedir as homedir5 } from "node:os";
@@ -6297,7 +6297,7 @@ function parseTriggers(filePath) {
6297
6297
  }
6298
6298
  var _cachedAiwgPkgRoot, SkillListTool, SkillExecuteTool;
6299
6299
  var init_skill_tools = __esm({
6300
- "packages/execution/dist/tools/skill-tools.js"() {
6300
+ "../packages/execution/dist/tools/skill-tools.js"() {
6301
6301
  "use strict";
6302
6302
  SkillListTool = class {
6303
6303
  name = "skill_list";
@@ -6422,7 +6422,7 @@ ${content}`,
6422
6422
  }
6423
6423
  });
6424
6424
 
6425
- // packages/execution/dist/tools/skill-builder.js
6425
+ // ../packages/execution/dist/tools/skill-builder.js
6426
6426
  import { existsSync as existsSync12, mkdirSync as mkdirSync4, readFileSync as readFileSync9, writeFileSync as writeFileSync4 } from "node:fs";
6427
6427
  import { join as join15, dirname as dirname4 } from "node:path";
6428
6428
  function loadBuilderPrompt(name, vars) {
@@ -6460,7 +6460,7 @@ function extractJSON(text) {
6460
6460
  }
6461
6461
  var SkillBuildTool;
6462
6462
  var init_skill_builder = __esm({
6463
- "packages/execution/dist/tools/skill-builder.js"() {
6463
+ "../packages/execution/dist/tools/skill-builder.js"() {
6464
6464
  "use strict";
6465
6465
  SkillBuildTool = class {
6466
6466
  name = "skill_build";
@@ -6667,7 +6667,7 @@ ${content}`
6667
6667
  }
6668
6668
  });
6669
6669
 
6670
- // packages/execution/dist/tools/transcribe-tool.js
6670
+ // ../packages/execution/dist/tools/transcribe-tool.js
6671
6671
  import { existsSync as existsSync13, mkdirSync as mkdirSync5, writeFileSync as writeFileSync5, readFileSync as readFileSync10, unlinkSync } from "node:fs";
6672
6672
  import { join as join16, basename as basename4, extname as extname3, resolve as resolve13 } from "node:path";
6673
6673
  import { homedir as homedir6 } from "node:os";
@@ -6720,7 +6720,7 @@ function formatTime(seconds) {
6720
6720
  }
6721
6721
  var AUDIO_EXTS, VIDEO_EXTS, _tcModule, _tcChecked, TranscribeFileTool, TranscribeUrlTool;
6722
6722
  var init_transcribe_tool = __esm({
6723
- "packages/execution/dist/tools/transcribe-tool.js"() {
6723
+ "../packages/execution/dist/tools/transcribe-tool.js"() {
6724
6724
  "use strict";
6725
6725
  AUDIO_EXTS = /* @__PURE__ */ new Set([
6726
6726
  ".mp3",
@@ -6961,7 +6961,7 @@ ${result.output}`,
6961
6961
  }
6962
6962
  });
6963
6963
 
6964
- // packages/execution/dist/tools/structured-file.js
6964
+ // ../packages/execution/dist/tools/structured-file.js
6965
6965
  import { writeFile as writeFile6, mkdir as mkdir3 } from "node:fs/promises";
6966
6966
  import { resolve as resolve14, dirname as dirname5, extname as extname4 } from "node:path";
6967
6967
  function jsonToCSV(data, separator = ",") {
@@ -6998,7 +6998,7 @@ function jsonToMarkdownTable(data) {
6998
6998
  }
6999
6999
  var StructuredFileTool;
7000
7000
  var init_structured_file = __esm({
7001
- "packages/execution/dist/tools/structured-file.js"() {
7001
+ "../packages/execution/dist/tools/structured-file.js"() {
7002
7002
  "use strict";
7003
7003
  StructuredFileTool = class {
7004
7004
  name = "create_structured_file";
@@ -7141,7 +7141,7 @@ var init_structured_file = __esm({
7141
7141
  }
7142
7142
  });
7143
7143
 
7144
- // packages/execution/dist/tools/code-sandbox.js
7144
+ // ../packages/execution/dist/tools/code-sandbox.js
7145
7145
  import { spawn as spawn5 } from "node:child_process";
7146
7146
  import { writeFile as writeFile7, mkdtemp, rm, readdir as readdir2, stat } from "node:fs/promises";
7147
7147
  import { join as join17 } from "node:path";
@@ -7222,7 +7222,7 @@ async function listCreatedFiles(dir) {
7222
7222
  }
7223
7223
  var LANGUAGE_CONFIG, CodeSandboxTool;
7224
7224
  var init_code_sandbox = __esm({
7225
- "packages/execution/dist/tools/code-sandbox.js"() {
7225
+ "../packages/execution/dist/tools/code-sandbox.js"() {
7226
7226
  "use strict";
7227
7227
  LANGUAGE_CONFIG = {
7228
7228
  javascript: { ext: ".js", cmd: "node", args: (f) => [f] },
@@ -7394,7 +7394,7 @@ ${result.filesCreated.join("\n")}`);
7394
7394
  }
7395
7395
  });
7396
7396
 
7397
- // packages/execution/dist/tools/structured-read.js
7397
+ // ../packages/execution/dist/tools/structured-read.js
7398
7398
  import { readFile as readFile8, stat as stat2 } from "node:fs/promises";
7399
7399
  import { resolve as resolve15, extname as extname5 } from "node:path";
7400
7400
  function parseCSV(text, separator = ",") {
@@ -7502,7 +7502,7 @@ function detectBinaryFormat(buffer) {
7502
7502
  }
7503
7503
  var StructuredReadTool;
7504
7504
  var init_structured_read = __esm({
7505
- "packages/execution/dist/tools/structured-read.js"() {
7505
+ "../packages/execution/dist/tools/structured-read.js"() {
7506
7506
  "use strict";
7507
7507
  StructuredReadTool = class {
7508
7508
  name = "read_structured_file";
@@ -7729,7 +7729,7 @@ ${parts.join("\n\n")}`,
7729
7729
  }
7730
7730
  });
7731
7731
 
7732
- // packages/execution/dist/tools/vision.js
7732
+ // ../packages/execution/dist/tools/vision.js
7733
7733
  import { readFileSync as readFileSync11, existsSync as existsSync14, statSync as statSync5 } from "node:fs";
7734
7734
  import { execSync as execSync11, spawn as spawn6 } from "node:child_process";
7735
7735
  import { resolve as resolve16, extname as extname6, basename as basename5, dirname as dirname6, join as join18 } from "node:path";
@@ -7880,7 +7880,7 @@ function loadImageBuffer(workingDir, rawPath) {
7880
7880
  }
7881
7881
  var moondreamClient, moondreamError, stationProcess, IMAGE_EXTENSIONS2, VisionTool;
7882
7882
  var init_vision = __esm({
7883
- "packages/execution/dist/tools/vision.js"() {
7883
+ "../packages/execution/dist/tools/vision.js"() {
7884
7884
  "use strict";
7885
7885
  moondreamClient = null;
7886
7886
  moondreamError = null;
@@ -8103,7 +8103,7 @@ ${response}`, durationMs: performance.now() - start };
8103
8103
  }
8104
8104
  });
8105
8105
 
8106
- // packages/execution/dist/tools/desktop-click.js
8106
+ // ../packages/execution/dist/tools/desktop-click.js
8107
8107
  import { readFileSync as readFileSync12, existsSync as existsSync15 } from "node:fs";
8108
8108
  import { execSync as execSync12 } from "node:child_process";
8109
8109
  import { tmpdir as tmpdir3 } from "node:os";
@@ -8256,7 +8256,7 @@ for i in range(${clicks}):
8256
8256
  }
8257
8257
  var __dirname2, DesktopClickTool, DesktopDescribeTool;
8258
8258
  var init_desktop_click = __esm({
8259
- "packages/execution/dist/tools/desktop-click.js"() {
8259
+ "../packages/execution/dist/tools/desktop-click.js"() {
8260
8260
  "use strict";
8261
8261
  init_system_deps();
8262
8262
  __dirname2 = dirname7(fileURLToPath3(import.meta.url));
@@ -8612,13 +8612,13 @@ Screen: ${dims.width}x${dims.height}`);
8612
8612
  }
8613
8613
  });
8614
8614
 
8615
- // packages/execution/dist/tools/ocr-pdf.js
8615
+ // ../packages/execution/dist/tools/ocr-pdf.js
8616
8616
  import { existsSync as existsSync16, statSync as statSync6 } from "node:fs";
8617
8617
  import { resolve as resolve17, basename as basename6 } from "node:path";
8618
8618
  import { execSync as execSync13 } from "node:child_process";
8619
8619
  var OcrPdfTool;
8620
8620
  var init_ocr_pdf = __esm({
8621
- "packages/execution/dist/tools/ocr-pdf.js"() {
8621
+ "../packages/execution/dist/tools/ocr-pdf.js"() {
8622
8622
  "use strict";
8623
8623
  init_system_deps();
8624
8624
  OcrPdfTool = class {
@@ -8735,14 +8735,14 @@ Language: ${language}
8735
8735
  }
8736
8736
  });
8737
8737
 
8738
- // packages/execution/dist/tools/pdf-to-text.js
8738
+ // ../packages/execution/dist/tools/pdf-to-text.js
8739
8739
  import { existsSync as existsSync17, statSync as statSync7, readFileSync as readFileSync13, unlinkSync as unlinkSync2 } from "node:fs";
8740
8740
  import { resolve as resolve18, basename as basename7, join as join20 } from "node:path";
8741
8741
  import { execSync as execSync14 } from "node:child_process";
8742
8742
  import { tmpdir as tmpdir4 } from "node:os";
8743
8743
  var PdfToTextTool;
8744
8744
  var init_pdf_to_text = __esm({
8745
- "packages/execution/dist/tools/pdf-to-text.js"() {
8745
+ "../packages/execution/dist/tools/pdf-to-text.js"() {
8746
8746
  "use strict";
8747
8747
  init_system_deps();
8748
8748
  PdfToTextTool = class {
@@ -8920,7 +8920,7 @@ ${text}`,
8920
8920
  }
8921
8921
  });
8922
8922
 
8923
- // packages/execution/dist/tools/ocr-image-advanced.js
8923
+ // ../packages/execution/dist/tools/ocr-image-advanced.js
8924
8924
  import { existsSync as existsSync18, statSync as statSync8 } from "node:fs";
8925
8925
  import { resolve as resolve19, basename as basename8, dirname as dirname8, join as join21 } from "node:path";
8926
8926
  import { execSync as execSync15 } from "node:child_process";
@@ -8963,7 +8963,7 @@ function findPython() {
8963
8963
  }
8964
8964
  var OcrImageAdvancedTool;
8965
8965
  var init_ocr_image_advanced = __esm({
8966
- "packages/execution/dist/tools/ocr-image-advanced.js"() {
8966
+ "../packages/execution/dist/tools/ocr-image-advanced.js"() {
8967
8967
  "use strict";
8968
8968
  init_system_deps();
8969
8969
  OcrImageAdvancedTool = class {
@@ -9223,7 +9223,7 @@ Note: Advanced Python pipeline not available \u2014 install pytesseract, opencv-
9223
9223
  }
9224
9224
  });
9225
9225
 
9226
- // packages/execution/dist/tools/browser-action.js
9226
+ // ../packages/execution/dist/tools/browser-action.js
9227
9227
  import { execSync as execSync16, spawn as spawn7 } from "node:child_process";
9228
9228
  import { existsSync as existsSync19, readFileSync as readFileSync14 } from "node:fs";
9229
9229
  import { join as join22, dirname as dirname9 } from "node:path";
@@ -9315,7 +9315,7 @@ async function apiCall(endpoint, method = "POST", body) {
9315
9315
  }
9316
9316
  var __dirname3, SCRAPE_SCRIPT, DEFAULT_PORT, BASE_URL, serviceProcess, activeSessionId, BrowserActionTool;
9317
9317
  var init_browser_action = __esm({
9318
- "packages/execution/dist/tools/browser-action.js"() {
9318
+ "../packages/execution/dist/tools/browser-action.js"() {
9319
9319
  "use strict";
9320
9320
  __dirname3 = dirname9(fileURLToPath5(import.meta.url));
9321
9321
  SCRAPE_SCRIPT = join22(__dirname3, "..", "..", "scripts", "web_scrape.py");
@@ -9476,7 +9476,7 @@ var init_browser_action = __esm({
9476
9476
  }
9477
9477
  });
9478
9478
 
9479
- // packages/execution/dist/tools/autoresearch.js
9479
+ // ../packages/execution/dist/tools/autoresearch.js
9480
9480
  import { execSync as execSync17, spawn as spawn8 } from "node:child_process";
9481
9481
  import { existsSync as existsSync20, readFileSync as readFileSync15, writeFileSync as writeFileSync6, mkdirSync as mkdirSync6, appendFileSync, copyFileSync } from "node:fs";
9482
9482
  import { join as join23, resolve as resolve20, dirname as dirname10 } from "node:path";
@@ -9519,7 +9519,7 @@ function parseRunLog(logContent) {
9519
9519
  }
9520
9520
  var AutoresearchTool;
9521
9521
  var init_autoresearch = __esm({
9522
- "packages/execution/dist/tools/autoresearch.js"() {
9522
+ "../packages/execution/dist/tools/autoresearch.js"() {
9523
9523
  "use strict";
9524
9524
  AutoresearchTool = class {
9525
9525
  repoRoot;
@@ -9996,7 +9996,7 @@ train.py reverted to last kept state. Ready for next experiment.`,
9996
9996
  }
9997
9997
  });
9998
9998
 
9999
- // packages/execution/dist/tools/scheduler.js
9999
+ // ../packages/execution/dist/tools/scheduler.js
10000
10000
  import { execSync as execSync18, exec as execCb } from "node:child_process";
10001
10001
  import { readFile as readFile9, writeFile as writeFile8, mkdir as mkdir4 } from "node:fs/promises";
10002
10002
  import { resolve as resolve21, join as join24 } from "node:path";
@@ -10131,7 +10131,7 @@ async function saveStore(workingDir, store) {
10131
10131
  }
10132
10132
  var SCHEDULE_PRESETS, CRON_MARKER, SchedulerTool;
10133
10133
  var init_scheduler = __esm({
10134
- "packages/execution/dist/tools/scheduler.js"() {
10134
+ "../packages/execution/dist/tools/scheduler.js"() {
10135
10135
  "use strict";
10136
10136
  SCHEDULE_PRESETS = {
10137
10137
  "every minute": "* * * * *",
@@ -10359,7 +10359,7 @@ ${truncated}`, durationMs: performance.now() - start };
10359
10359
  }
10360
10360
  });
10361
10361
 
10362
- // packages/execution/dist/tools/reminder.js
10362
+ // ../packages/execution/dist/tools/reminder.js
10363
10363
  import { readFile as readFile10, writeFile as writeFile9, mkdir as mkdir5 } from "node:fs/promises";
10364
10364
  import { resolve as resolve22, join as join25 } from "node:path";
10365
10365
  import { randomBytes as randomBytes3 } from "node:crypto";
@@ -10453,7 +10453,7 @@ async function markRemindersSeen(workingDir, ids) {
10453
10453
  }
10454
10454
  var STORE_FILE, ReminderTool;
10455
10455
  var init_reminder = __esm({
10456
- "packages/execution/dist/tools/reminder.js"() {
10456
+ "../packages/execution/dist/tools/reminder.js"() {
10457
10457
  "use strict";
10458
10458
  STORE_FILE = "reminders.json";
10459
10459
  ReminderTool = class {
@@ -10672,7 +10672,7 @@ var init_reminder = __esm({
10672
10672
  }
10673
10673
  });
10674
10674
 
10675
- // packages/execution/dist/tools/agenda.js
10675
+ // ../packages/execution/dist/tools/agenda.js
10676
10676
  import { readFile as readFile11, writeFile as writeFile10, mkdir as mkdir6 } from "node:fs/promises";
10677
10677
  import { resolve as resolve23, join as join26 } from "node:path";
10678
10678
  import { randomBytes as randomBytes4 } from "node:crypto";
@@ -10707,7 +10707,7 @@ async function getActiveAttentionItems(workingDir) {
10707
10707
  }
10708
10708
  var AgendaTool;
10709
10709
  var init_agenda = __esm({
10710
- "packages/execution/dist/tools/agenda.js"() {
10710
+ "../packages/execution/dist/tools/agenda.js"() {
10711
10711
  "use strict";
10712
10712
  init_reminder();
10713
10713
  AgendaTool = class {
@@ -10996,7 +10996,7 @@ ${sections.join("\n")}`,
10996
10996
  }
10997
10997
  });
10998
10998
 
10999
- // packages/execution/dist/tools/opencode.js
10999
+ // ../packages/execution/dist/tools/opencode.js
11000
11000
  import { execSync as execSync19, spawn as spawn9 } from "node:child_process";
11001
11001
  import { existsSync as existsSync21 } from "node:fs";
11002
11002
  import { join as join27, resolve as resolve24 } from "node:path";
@@ -11057,7 +11057,7 @@ function installOpencode() {
11057
11057
  }
11058
11058
  var OpenCodeTool;
11059
11059
  var init_opencode = __esm({
11060
- "packages/execution/dist/tools/opencode.js"() {
11060
+ "../packages/execution/dist/tools/opencode.js"() {
11061
11061
  "use strict";
11062
11062
  OpenCodeTool = class {
11063
11063
  name = "opencode";
@@ -11270,7 +11270,7 @@ var init_opencode = __esm({
11270
11270
  }
11271
11271
  });
11272
11272
 
11273
- // packages/execution/dist/tools/factory.js
11273
+ // ../packages/execution/dist/tools/factory.js
11274
11274
  import { execSync as execSync20, spawn as spawn10 } from "node:child_process";
11275
11275
  import { existsSync as existsSync22 } from "node:fs";
11276
11276
  import { join as join28 } from "node:path";
@@ -11331,7 +11331,7 @@ function installDroid() {
11331
11331
  }
11332
11332
  var FactoryTool;
11333
11333
  var init_factory = __esm({
11334
- "packages/execution/dist/tools/factory.js"() {
11334
+ "../packages/execution/dist/tools/factory.js"() {
11335
11335
  "use strict";
11336
11336
  FactoryTool = class {
11337
11337
  name = "factory";
@@ -11579,7 +11579,7 @@ var init_factory = __esm({
11579
11579
  }
11580
11580
  });
11581
11581
 
11582
- // packages/execution/dist/tools/cron-agent.js
11582
+ // ../packages/execution/dist/tools/cron-agent.js
11583
11583
  import { execSync as execSync21 } from "node:child_process";
11584
11584
  import { readFile as readFile12, writeFile as writeFile11, mkdir as mkdir7 } from "node:fs/promises";
11585
11585
  import { resolve as resolve25, join as join29 } from "node:path";
@@ -11713,7 +11713,7 @@ async function saveStore2(workingDir, store) {
11713
11713
  }
11714
11714
  var LONG_HORIZON_PRESETS, CRON_AGENT_MARKER, CronAgentTool;
11715
11715
  var init_cron_agent = __esm({
11716
- "packages/execution/dist/tools/cron-agent.js"() {
11716
+ "../packages/execution/dist/tools/cron-agent.js"() {
11717
11717
  "use strict";
11718
11718
  LONG_HORIZON_PRESETS = {
11719
11719
  "every hour": "0 * * * *",
@@ -12044,7 +12044,7 @@ ${truncated}`, durationMs: performance.now() - start };
12044
12044
  }
12045
12045
  });
12046
12046
 
12047
- // packages/execution/dist/tools/nexus.js
12047
+ // ../packages/execution/dist/tools/nexus.js
12048
12048
  import { readFile as readFile13, writeFile as writeFile12, mkdir as mkdir8, chmod, unlink, readdir as readdir3, open as fsOpen } from "node:fs/promises";
12049
12049
  import { existsSync as existsSync23, readFileSync as readFileSync16, watch as fsWatchLocal } from "node:fs";
12050
12050
  import { resolve as resolve26, join as join30 } from "node:path";
@@ -12060,7 +12060,7 @@ function containsKeyMaterial(input) {
12060
12060
  }
12061
12061
  var DAEMON_SCRIPT, KEY_PATTERNS, NexusTool;
12062
12062
  var init_nexus = __esm({
12063
- "packages/execution/dist/tools/nexus.js"() {
12063
+ "../packages/execution/dist/tools/nexus.js"() {
12064
12064
  "use strict";
12065
12065
  DAEMON_SCRIPT = `#!/usr/bin/env node
12066
12066
  /**
@@ -13152,14 +13152,23 @@ try {
13152
13152
  });
13153
13153
  } catch {}
13154
13154
 
13155
+ // Suppress EPIPE on stdout/stderr \u2014 parent may close pipe at any time
13156
+ try { process.stdout.on('error', function(e) { if (e.code !== 'EPIPE') throw e; }); } catch {}
13157
+ try { process.stderr.on('error', function(e) { if (e.code !== 'EPIPE') throw e; }); } catch {}
13158
+
13155
13159
  // Crash protection \u2014 prevent unhandled errors from killing the daemon
13156
13160
  process.on('uncaughtException', (err) => {
13157
- console.error('Nexus daemon uncaughtException:', err.message || err);
13158
- writeStatus({ error: 'uncaughtException: ' + (err.message || String(err)) });
13161
+ var errMsg = err && err.message ? err.message : String(err);
13162
+ // EPIPE means parent closed the pipe \u2014 not a real error, just ignore
13163
+ if (err && err.code === 'EPIPE') return;
13164
+ if (errMsg.includes('EPIPE')) return;
13165
+ try { console.error('Nexus daemon uncaughtException:', errMsg); } catch {}
13166
+ writeStatus({ error: 'uncaughtException: ' + errMsg });
13159
13167
  });
13160
13168
  process.on('unhandledRejection', (reason) => {
13161
- const msg = reason instanceof Error ? reason.message : String(reason);
13162
- console.error('Nexus daemon unhandledRejection:', msg);
13169
+ var msg = reason instanceof Error ? reason.message : String(reason);
13170
+ if (msg.includes('EPIPE')) return;
13171
+ try { console.error('Nexus daemon unhandledRejection:', msg); } catch {}
13163
13172
  // Do NOT exit \u2014 keep daemon alive
13164
13173
  });
13165
13174
 
@@ -14751,7 +14760,7 @@ process.on('SIGINT', () => process.emit('SIGTERM'));
14751
14760
  }
14752
14761
  });
14753
14762
 
14754
- // packages/execution/dist/shellRunner.js
14763
+ // ../packages/execution/dist/shellRunner.js
14755
14764
  import { spawn as spawn12 } from "node:child_process";
14756
14765
  async function runShell(options) {
14757
14766
  const { command, args = [], cwd: cwd4, env, timeoutMs = DEFAULT_TIMEOUT_MS } = options;
@@ -14805,13 +14814,13 @@ async function runShell(options) {
14805
14814
  }
14806
14815
  var DEFAULT_TIMEOUT_MS;
14807
14816
  var init_shellRunner = __esm({
14808
- "packages/execution/dist/shellRunner.js"() {
14817
+ "../packages/execution/dist/shellRunner.js"() {
14809
14818
  "use strict";
14810
14819
  DEFAULT_TIMEOUT_MS = 6e4;
14811
14820
  }
14812
14821
  });
14813
14822
 
14814
- // packages/execution/dist/gitWorktree.js
14823
+ // ../packages/execution/dist/gitWorktree.js
14815
14824
  async function createWorktree(options) {
14816
14825
  const { repoPath, worktreePath, branch, timeoutMs = DEFAULT_GIT_TIMEOUT_MS } = options;
14817
14826
  const result = await runShell({
@@ -14848,14 +14857,14 @@ async function removeWorktree(options) {
14848
14857
  }
14849
14858
  var DEFAULT_GIT_TIMEOUT_MS;
14850
14859
  var init_gitWorktree = __esm({
14851
- "packages/execution/dist/gitWorktree.js"() {
14860
+ "../packages/execution/dist/gitWorktree.js"() {
14852
14861
  "use strict";
14853
14862
  init_shellRunner();
14854
14863
  DEFAULT_GIT_TIMEOUT_MS = 3e4;
14855
14864
  }
14856
14865
  });
14857
14866
 
14858
- // packages/execution/dist/patchApplier.js
14867
+ // ../packages/execution/dist/patchApplier.js
14859
14868
  import { readFileSync as readFileSync17, writeFileSync as writeFileSync7, existsSync as existsSync24, mkdirSync as mkdirSync7 } from "node:fs";
14860
14869
  import { dirname as dirname11 } from "node:path";
14861
14870
  import { spawn as spawn13 } from "node:child_process";
@@ -14932,12 +14941,12 @@ function runWithStdin(options) {
14932
14941
  });
14933
14942
  }
14934
14943
  var init_patchApplier = __esm({
14935
- "packages/execution/dist/patchApplier.js"() {
14944
+ "../packages/execution/dist/patchApplier.js"() {
14936
14945
  "use strict";
14937
14946
  }
14938
14947
  });
14939
14948
 
14940
- // packages/execution/dist/formatterRunner.js
14949
+ // ../packages/execution/dist/formatterRunner.js
14941
14950
  function buildFormatterCommand(formatter, extraArgs) {
14942
14951
  switch (formatter) {
14943
14952
  case "prettier":
@@ -14988,13 +14997,13 @@ async function runFormatter(options) {
14988
14997
  };
14989
14998
  }
14990
14999
  var init_formatterRunner = __esm({
14991
- "packages/execution/dist/formatterRunner.js"() {
15000
+ "../packages/execution/dist/formatterRunner.js"() {
14992
15001
  "use strict";
14993
15002
  init_shellRunner();
14994
15003
  }
14995
15004
  });
14996
15005
 
14997
- // packages/execution/dist/linterRunner.js
15006
+ // ../packages/execution/dist/linterRunner.js
14998
15007
  function buildLinterCommand(linter, extraArgs) {
14999
15008
  switch (linter) {
15000
15009
  case "eslint":
@@ -15050,13 +15059,13 @@ async function runLinter(options) {
15050
15059
  };
15051
15060
  }
15052
15061
  var init_linterRunner = __esm({
15053
- "packages/execution/dist/linterRunner.js"() {
15062
+ "../packages/execution/dist/linterRunner.js"() {
15054
15063
  "use strict";
15055
15064
  init_shellRunner();
15056
15065
  }
15057
15066
  });
15058
15067
 
15059
- // packages/execution/dist/typecheckRunner.js
15068
+ // ../packages/execution/dist/typecheckRunner.js
15060
15069
  function buildTypecheckerCommand(typechecker, extraArgs) {
15061
15070
  switch (typechecker) {
15062
15071
  case "tsc":
@@ -15102,13 +15111,13 @@ async function runTypecheck(options) {
15102
15111
  };
15103
15112
  }
15104
15113
  var init_typecheckRunner = __esm({
15105
- "packages/execution/dist/typecheckRunner.js"() {
15114
+ "../packages/execution/dist/typecheckRunner.js"() {
15106
15115
  "use strict";
15107
15116
  init_shellRunner();
15108
15117
  }
15109
15118
  });
15110
15119
 
15111
- // packages/execution/dist/testRunner.js
15120
+ // ../packages/execution/dist/testRunner.js
15112
15121
  function buildTestRunnerCommand(testRunner, extraArgs) {
15113
15122
  switch (testRunner) {
15114
15123
  case "jest":
@@ -15164,13 +15173,13 @@ async function runTests(options) {
15164
15173
  };
15165
15174
  }
15166
15175
  var init_testRunner = __esm({
15167
- "packages/execution/dist/testRunner.js"() {
15176
+ "../packages/execution/dist/testRunner.js"() {
15168
15177
  "use strict";
15169
15178
  init_shellRunner();
15170
15179
  }
15171
15180
  });
15172
15181
 
15173
- // packages/execution/dist/buildRunner.js
15182
+ // ../packages/execution/dist/buildRunner.js
15174
15183
  function buildBuilderCommand(profile, extraArgs) {
15175
15184
  switch (profile.builder) {
15176
15185
  case "tsc":
@@ -15237,13 +15246,13 @@ async function runBuild(options) {
15237
15246
  };
15238
15247
  }
15239
15248
  var init_buildRunner = __esm({
15240
- "packages/execution/dist/buildRunner.js"() {
15249
+ "../packages/execution/dist/buildRunner.js"() {
15241
15250
  "use strict";
15242
15251
  init_shellRunner();
15243
15252
  }
15244
15253
  });
15245
15254
 
15246
- // packages/execution/dist/validationPipeline.js
15255
+ // ../packages/execution/dist/validationPipeline.js
15247
15256
  async function runValidationPipeline(config) {
15248
15257
  const { projectRoot, profile, stopOnFirstFailure = true } = config;
15249
15258
  const formatterProfile = {
@@ -15339,7 +15348,7 @@ async function runValidationPipeline(config) {
15339
15348
  };
15340
15349
  }
15341
15350
  var init_validationPipeline = __esm({
15342
- "packages/execution/dist/validationPipeline.js"() {
15351
+ "../packages/execution/dist/validationPipeline.js"() {
15343
15352
  "use strict";
15344
15353
  init_formatterRunner();
15345
15354
  init_linterRunner();
@@ -15349,7 +15358,7 @@ var init_validationPipeline = __esm({
15349
15358
  }
15350
15359
  });
15351
15360
 
15352
- // packages/execution/dist/index.js
15361
+ // ../packages/execution/dist/index.js
15353
15362
  var dist_exports = {};
15354
15363
  __export(dist_exports, {
15355
15364
  AgendaTool: () => AgendaTool,
@@ -15442,7 +15451,7 @@ __export(dist_exports, {
15442
15451
  setSudoPassword: () => setSudoPassword
15443
15452
  });
15444
15453
  var init_dist2 = __esm({
15445
- "packages/execution/dist/index.js"() {
15454
+ "../packages/execution/dist/index.js"() {
15446
15455
  "use strict";
15447
15456
  init_tool_executor();
15448
15457
  init_shell();
@@ -15504,9 +15513,9 @@ var init_dist2 = __esm({
15504
15513
  }
15505
15514
  });
15506
15515
 
15507
- // packages/orchestrator/dist/agent-loop.js
15516
+ // ../packages/orchestrator/dist/agent-loop.js
15508
15517
  var init_agent_loop = __esm({
15509
- "packages/orchestrator/dist/agent-loop.js"() {
15518
+ "../packages/orchestrator/dist/agent-loop.js"() {
15510
15519
  "use strict";
15511
15520
  init_dist();
15512
15521
  init_dist2();
@@ -15514,11 +15523,11 @@ var init_agent_loop = __esm({
15514
15523
  }
15515
15524
  });
15516
15525
 
15517
- // packages/schemas/dist/messages.js
15526
+ // ../packages/schemas/dist/messages.js
15518
15527
  import { z } from "zod";
15519
15528
  var AgentMessageSchema;
15520
15529
  var init_messages = __esm({
15521
- "packages/schemas/dist/messages.js"() {
15530
+ "../packages/schemas/dist/messages.js"() {
15522
15531
  "use strict";
15523
15532
  AgentMessageSchema = z.object({
15524
15533
  id: z.string().uuid(),
@@ -15531,11 +15540,11 @@ var init_messages = __esm({
15531
15540
  }
15532
15541
  });
15533
15542
 
15534
- // packages/schemas/dist/tools.js
15543
+ // ../packages/schemas/dist/tools.js
15535
15544
  import { z as z2 } from "zod";
15536
15545
  var ToolCallSchema;
15537
15546
  var init_tools = __esm({
15538
- "packages/schemas/dist/tools.js"() {
15547
+ "../packages/schemas/dist/tools.js"() {
15539
15548
  "use strict";
15540
15549
  ToolCallSchema = z2.object({
15541
15550
  id: z2.string().uuid(),
@@ -15549,11 +15558,11 @@ var init_tools = __esm({
15549
15558
  }
15550
15559
  });
15551
15560
 
15552
- // packages/schemas/dist/session.js
15561
+ // ../packages/schemas/dist/session.js
15553
15562
  import { z as z3 } from "zod";
15554
15563
  var SessionSchema;
15555
15564
  var init_session = __esm({
15556
- "packages/schemas/dist/session.js"() {
15565
+ "../packages/schemas/dist/session.js"() {
15557
15566
  "use strict";
15558
15567
  SessionSchema = z3.object({
15559
15568
  id: z3.string().uuid(),
@@ -15567,11 +15576,11 @@ var init_session = __esm({
15567
15576
  }
15568
15577
  });
15569
15578
 
15570
- // packages/schemas/dist/task.js
15579
+ // ../packages/schemas/dist/task.js
15571
15580
  import { z as z4 } from "zod";
15572
15581
  var TaskClassSchema, UrgencySchema, NormalizedTaskSchema, TaskStatusSchema;
15573
15582
  var init_task = __esm({
15574
- "packages/schemas/dist/task.js"() {
15583
+ "../packages/schemas/dist/task.js"() {
15575
15584
  "use strict";
15576
15585
  TaskClassSchema = z4.enum([
15577
15586
  "bugfix",
@@ -15616,11 +15625,11 @@ var init_task = __esm({
15616
15625
  }
15617
15626
  });
15618
15627
 
15619
- // packages/schemas/dist/plan.js
15628
+ // ../packages/schemas/dist/plan.js
15620
15629
  import { z as z5 } from "zod";
15621
15630
  var SubtaskKindSchema, SubtaskSchema, PlanSchema;
15622
15631
  var init_plan = __esm({
15623
- "packages/schemas/dist/plan.js"() {
15632
+ "../packages/schemas/dist/plan.js"() {
15624
15633
  "use strict";
15625
15634
  SubtaskKindSchema = z5.enum([
15626
15635
  "inspect",
@@ -15654,11 +15663,11 @@ var init_plan = __esm({
15654
15663
  }
15655
15664
  });
15656
15665
 
15657
- // packages/schemas/dist/patch.js
15666
+ // ../packages/schemas/dist/patch.js
15658
15667
  import { z as z6 } from "zod";
15659
15668
  var EditOperationSchema, FileEditSchema, NeedsMoreContextSchema, PatchProposalSchema;
15660
15669
  var init_patch = __esm({
15661
- "packages/schemas/dist/patch.js"() {
15670
+ "../packages/schemas/dist/patch.js"() {
15662
15671
  "use strict";
15663
15672
  EditOperationSchema = z6.enum([
15664
15673
  "diff",
@@ -15697,11 +15706,11 @@ var init_patch = __esm({
15697
15706
  }
15698
15707
  });
15699
15708
 
15700
- // packages/schemas/dist/verification.js
15709
+ // ../packages/schemas/dist/verification.js
15701
15710
  import { z as z7 } from "zod";
15702
15711
  var VerificationStatusSchema, VerificationNextActionSchema, VerificationDecisionSchema;
15703
15712
  var init_verification = __esm({
15704
- "packages/schemas/dist/verification.js"() {
15713
+ "../packages/schemas/dist/verification.js"() {
15705
15714
  "use strict";
15706
15715
  VerificationStatusSchema = z7.enum(["pass", "fail", "partial"]);
15707
15716
  VerificationNextActionSchema = z7.enum([
@@ -15726,11 +15735,11 @@ var init_verification = __esm({
15726
15735
  }
15727
15736
  });
15728
15737
 
15729
- // packages/schemas/dist/repoProfile.js
15738
+ // ../packages/schemas/dist/repoProfile.js
15730
15739
  import { z as z8 } from "zod";
15731
15740
  var LanguageSchema, PackageManagerSchema, BuildSystemSchema, MigrationSystemSchema, RepoProfileSchema;
15732
15741
  var init_repoProfile = __esm({
15733
- "packages/schemas/dist/repoProfile.js"() {
15742
+ "../packages/schemas/dist/repoProfile.js"() {
15734
15743
  "use strict";
15735
15744
  LanguageSchema = z8.enum([
15736
15745
  "typescript",
@@ -15808,11 +15817,11 @@ var init_repoProfile = __esm({
15808
15817
  }
15809
15818
  });
15810
15819
 
15811
- // packages/schemas/dist/retrieval.js
15820
+ // ../packages/schemas/dist/retrieval.js
15812
15821
  import { z as z9 } from "zod";
15813
15822
  var RetrievalRequestSchema, SnippetSchema, RetrievalPacketSchema;
15814
15823
  var init_retrieval = __esm({
15815
- "packages/schemas/dist/retrieval.js"() {
15824
+ "../packages/schemas/dist/retrieval.js"() {
15816
15825
  "use strict";
15817
15826
  RetrievalRequestSchema = z9.object({
15818
15827
  /** Natural language description of what information is needed */
@@ -15860,11 +15869,11 @@ var init_retrieval = __esm({
15860
15869
  }
15861
15870
  });
15862
15871
 
15863
- // packages/schemas/dist/dispatch.js
15872
+ // ../packages/schemas/dist/dispatch.js
15864
15873
  import { z as z10 } from "zod";
15865
15874
  var DispatchModeSchema, TaskComplexitySchema, AgentRoleSchema, BudgetsSchema, DispatchDecisionSchema;
15866
15875
  var init_dispatch = __esm({
15867
- "packages/schemas/dist/dispatch.js"() {
15876
+ "../packages/schemas/dist/dispatch.js"() {
15868
15877
  "use strict";
15869
15878
  DispatchModeSchema = z10.enum([
15870
15879
  "single_pass",
@@ -15898,11 +15907,11 @@ var init_dispatch = __esm({
15898
15907
  }
15899
15908
  });
15900
15909
 
15901
- // packages/schemas/dist/memory.js
15910
+ // ../packages/schemas/dist/memory.js
15902
15911
  import { z as z11 } from "zod";
15903
15912
  var RiskLevelSchema, FileSummarySchema, FailureCategorySchema, FailureFingerprintSchema, TaskMemorySchema;
15904
15913
  var init_memory = __esm({
15905
- "packages/schemas/dist/memory.js"() {
15914
+ "../packages/schemas/dist/memory.js"() {
15906
15915
  "use strict";
15907
15916
  RiskLevelSchema = z11.enum(["low", "medium", "high", "critical"]);
15908
15917
  FileSummarySchema = z11.object({
@@ -15978,11 +15987,11 @@ var init_memory = __esm({
15978
15987
  }
15979
15988
  });
15980
15989
 
15981
- // packages/schemas/dist/backend.js
15990
+ // ../packages/schemas/dist/backend.js
15982
15991
  import { z as z12 } from "zod";
15983
15992
  var MessageRoleSchema, ChatMessageSchema, CompletionRequestSchema, TokenUsageSchema, CompletionResponseSchema, StructuredCompletionRequestSchema, BackendHealthSchema, BackendMetricsSchema;
15984
15993
  var init_backend = __esm({
15985
- "packages/schemas/dist/backend.js"() {
15994
+ "../packages/schemas/dist/backend.js"() {
15986
15995
  "use strict";
15987
15996
  MessageRoleSchema = z12.enum([
15988
15997
  "system",
@@ -16067,11 +16076,11 @@ var init_backend = __esm({
16067
16076
  }
16068
16077
  });
16069
16078
 
16070
- // packages/schemas/dist/config.js
16079
+ // ../packages/schemas/dist/config.js
16071
16080
  import { z as z13 } from "zod";
16072
16081
  var AgentConfigSchema;
16073
16082
  var init_config2 = __esm({
16074
- "packages/schemas/dist/config.js"() {
16083
+ "../packages/schemas/dist/config.js"() {
16075
16084
  "use strict";
16076
16085
  AgentConfigSchema = z13.object({
16077
16086
  // -----------------------------------------------------------------------
@@ -16130,11 +16139,11 @@ var init_config2 = __esm({
16130
16139
  }
16131
16140
  });
16132
16141
 
16133
- // packages/schemas/dist/queue.js
16142
+ // ../packages/schemas/dist/queue.js
16134
16143
  import { z as z14 } from "zod";
16135
16144
  var QueueClassSchema;
16136
16145
  var init_queue = __esm({
16137
- "packages/schemas/dist/queue.js"() {
16146
+ "../packages/schemas/dist/queue.js"() {
16138
16147
  "use strict";
16139
16148
  QueueClassSchema = z14.enum([
16140
16149
  /** CLI and direct user-facing requests; lowest latency target */
@@ -16153,9 +16162,9 @@ var init_queue = __esm({
16153
16162
  }
16154
16163
  });
16155
16164
 
16156
- // packages/schemas/dist/index.js
16165
+ // ../packages/schemas/dist/index.js
16157
16166
  var init_dist3 = __esm({
16158
- "packages/schemas/dist/index.js"() {
16167
+ "../packages/schemas/dist/index.js"() {
16159
16168
  "use strict";
16160
16169
  init_messages();
16161
16170
  init_tools();
@@ -16174,7 +16183,7 @@ var init_dist3 = __esm({
16174
16183
  }
16175
16184
  });
16176
16185
 
16177
- // packages/orchestrator/dist/promptLoader.js
16186
+ // ../packages/orchestrator/dist/promptLoader.js
16178
16187
  import { readFileSync as readFileSync18, existsSync as existsSync25 } from "node:fs";
16179
16188
  import { join as join31, dirname as dirname12 } from "node:path";
16180
16189
  import { fileURLToPath as fileURLToPath7 } from "node:url";
@@ -16194,7 +16203,7 @@ function loadPrompt(promptPath, vars) {
16194
16203
  }
16195
16204
  var __filename, __dirname4, PROMPTS_DIR, cache;
16196
16205
  var init_promptLoader = __esm({
16197
- "packages/orchestrator/dist/promptLoader.js"() {
16206
+ "../packages/orchestrator/dist/promptLoader.js"() {
16198
16207
  "use strict";
16199
16208
  __filename = fileURLToPath7(import.meta.url);
16200
16209
  __dirname4 = dirname12(__filename);
@@ -16203,7 +16212,7 @@ var init_promptLoader = __esm({
16203
16212
  }
16204
16213
  });
16205
16214
 
16206
- // packages/orchestrator/dist/taskNormalizer.js
16215
+ // ../packages/orchestrator/dist/taskNormalizer.js
16207
16216
  function parseJsonFromContent(content) {
16208
16217
  const fencedMatch = content.match(/```(?:json)?\s*([\s\S]*?)```/);
16209
16218
  const raw = fencedMatch ? fencedMatch[1] : content;
@@ -16218,7 +16227,7 @@ function normalizationPrompt(rawRequest, repoRoot) {
16218
16227
  }
16219
16228
  var TaskNormalizer;
16220
16229
  var init_taskNormalizer = __esm({
16221
- "packages/orchestrator/dist/taskNormalizer.js"() {
16230
+ "../packages/orchestrator/dist/taskNormalizer.js"() {
16222
16231
  "use strict";
16223
16232
  init_dist3();
16224
16233
  init_promptLoader();
@@ -16270,7 +16279,7 @@ var init_taskNormalizer = __esm({
16270
16279
  }
16271
16280
  });
16272
16281
 
16273
- // packages/orchestrator/dist/dispatcher.js
16282
+ // ../packages/orchestrator/dist/dispatcher.js
16274
16283
  function estimateComplexity(task) {
16275
16284
  const text = `${task.goal} ${task.constraints.join(" ")} ${task.successCriteria.join(" ")}`;
16276
16285
  const wordCount = text.split(/\s+/).length;
@@ -16337,7 +16346,7 @@ function parseJsonFromContent2(content) {
16337
16346
  }
16338
16347
  var Dispatcher;
16339
16348
  var init_dispatcher = __esm({
16340
- "packages/orchestrator/dist/dispatcher.js"() {
16349
+ "../packages/orchestrator/dist/dispatcher.js"() {
16341
16350
  "use strict";
16342
16351
  init_dist3();
16343
16352
  init_promptLoader();
@@ -16397,7 +16406,7 @@ var init_dispatcher = __esm({
16397
16406
  }
16398
16407
  });
16399
16408
 
16400
- // packages/orchestrator/dist/plannerRunner.js
16409
+ // ../packages/orchestrator/dist/plannerRunner.js
16401
16410
  function plannerPrompt(task, repoProfile, retrievalPacket) {
16402
16411
  const profileSection = repoProfile ? `REPOSITORY PROFILE:
16403
16412
  ${JSON.stringify(repoProfile, null, 2)}` : "REPOSITORY PROFILE: (not available)";
@@ -16418,7 +16427,7 @@ function parseJsonFromContent3(content) {
16418
16427
  }
16419
16428
  var PlannerRunner;
16420
16429
  var init_plannerRunner = __esm({
16421
- "packages/orchestrator/dist/plannerRunner.js"() {
16430
+ "../packages/orchestrator/dist/plannerRunner.js"() {
16422
16431
  "use strict";
16423
16432
  init_dist3();
16424
16433
  init_promptLoader();
@@ -16471,12 +16480,12 @@ var init_plannerRunner = __esm({
16471
16480
  }
16472
16481
  });
16473
16482
 
16474
- // packages/retrieval/dist/grep-search.js
16483
+ // ../packages/retrieval/dist/grep-search.js
16475
16484
  import { execFile as execFile4 } from "node:child_process";
16476
16485
  import { promisify as promisify3 } from "node:util";
16477
16486
  var execFileAsync3, GrepSearch;
16478
16487
  var init_grep_search2 = __esm({
16479
- "packages/retrieval/dist/grep-search.js"() {
16488
+ "../packages/retrieval/dist/grep-search.js"() {
16480
16489
  "use strict";
16481
16490
  execFileAsync3 = promisify3(execFile4);
16482
16491
  GrepSearch = class {
@@ -16533,10 +16542,10 @@ var init_grep_search2 = __esm({
16533
16542
  }
16534
16543
  });
16535
16544
 
16536
- // packages/retrieval/dist/code-retriever.js
16545
+ // ../packages/retrieval/dist/code-retriever.js
16537
16546
  var DEFAULT_CONFIG3, CodeRetriever;
16538
16547
  var init_code_retriever = __esm({
16539
- "packages/retrieval/dist/code-retriever.js"() {
16548
+ "../packages/retrieval/dist/code-retriever.js"() {
16540
16549
  "use strict";
16541
16550
  init_grep_search2();
16542
16551
  DEFAULT_CONFIG3 = {
@@ -16574,7 +16583,7 @@ var init_code_retriever = __esm({
16574
16583
  }
16575
16584
  });
16576
16585
 
16577
- // packages/retrieval/dist/lexicalSearch.js
16586
+ // ../packages/retrieval/dist/lexicalSearch.js
16578
16587
  import { execFile as execFile5 } from "node:child_process";
16579
16588
  import { promisify as promisify4 } from "node:util";
16580
16589
  import { readFile as readFile14, readdir as readdir4, stat as stat3 } from "node:fs/promises";
@@ -16752,7 +16761,7 @@ function matchesGlob(filePath, glob2) {
16752
16761
  }
16753
16762
  var execFileAsync4, DEFAULT_INCLUDE_GLOBS, DEFAULT_EXCLUDE_GLOBS, DEFAULT_MAX_MATCHES, ALWAYS_SKIP, ALL_CODE_EXTS;
16754
16763
  var init_lexicalSearch = __esm({
16755
- "packages/retrieval/dist/lexicalSearch.js"() {
16764
+ "../packages/retrieval/dist/lexicalSearch.js"() {
16756
16765
  "use strict";
16757
16766
  execFileAsync4 = promisify4(execFile5);
16758
16767
  DEFAULT_INCLUDE_GLOBS = ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx", "**/*.py"];
@@ -16763,7 +16772,7 @@ var init_lexicalSearch = __esm({
16763
16772
  }
16764
16773
  });
16765
16774
 
16766
- // packages/retrieval/dist/semanticSearch.js
16775
+ // ../packages/retrieval/dist/semanticSearch.js
16767
16776
  function parseTagFilter(query) {
16768
16777
  const required = [];
16769
16778
  const anyOf = [];
@@ -16840,7 +16849,7 @@ function makePlaceholderSummary(filePath) {
16840
16849
  }
16841
16850
  var StubSemanticSearchEngine, IndexBackedSemanticSearchEngine, LazySemanticSearchEngine;
16842
16851
  var init_semanticSearch = __esm({
16843
- "packages/retrieval/dist/semanticSearch.js"() {
16852
+ "../packages/retrieval/dist/semanticSearch.js"() {
16844
16853
  "use strict";
16845
16854
  StubSemanticSearchEngine = class {
16846
16855
  isAvailable = false;
@@ -16960,7 +16969,7 @@ var init_semanticSearch = __esm({
16960
16969
  }
16961
16970
  });
16962
16971
 
16963
- // packages/retrieval/dist/graphExpand.js
16972
+ // ../packages/retrieval/dist/graphExpand.js
16964
16973
  function expandGraph(seeds, graph, opts = {}) {
16965
16974
  const { direction = "both", maxHops = 1, maxNeighbors = 20, includeSeeds = false } = opts;
16966
16975
  const seedSet = new Set(seeds);
@@ -17020,12 +17029,12 @@ function bfsExpand(seeds, adjacency, maxHops, maxNeighbors, excludeSet, result)
17020
17029
  }
17021
17030
  }
17022
17031
  var init_graphExpand = __esm({
17023
- "packages/retrieval/dist/graphExpand.js"() {
17032
+ "../packages/retrieval/dist/graphExpand.js"() {
17024
17033
  "use strict";
17025
17034
  }
17026
17035
  });
17027
17036
 
17028
- // packages/retrieval/dist/snippetPacker.js
17037
+ // ../packages/retrieval/dist/snippetPacker.js
17029
17038
  import { readFile as readFile15 } from "node:fs/promises";
17030
17039
  import { join as join33 } from "node:path";
17031
17040
  async function packSnippets(requests, opts = {}) {
@@ -17088,7 +17097,7 @@ async function packFiles(filePaths, repoRoot, maxTokens = DEFAULT_MAX_TOKENS) {
17088
17097
  }
17089
17098
  var DEFAULT_MAX_TOKENS, DEFAULT_CONTEXT_LINES, CHARS_PER_TOKEN;
17090
17099
  var init_snippetPacker = __esm({
17091
- "packages/retrieval/dist/snippetPacker.js"() {
17100
+ "../packages/retrieval/dist/snippetPacker.js"() {
17092
17101
  "use strict";
17093
17102
  DEFAULT_MAX_TOKENS = 32e3;
17094
17103
  DEFAULT_CONTEXT_LINES = 2;
@@ -17096,7 +17105,7 @@ var init_snippetPacker = __esm({
17096
17105
  }
17097
17106
  });
17098
17107
 
17099
- // packages/retrieval/dist/contextAssembler.js
17108
+ // ../packages/retrieval/dist/contextAssembler.js
17100
17109
  async function assembleContext(request, opts) {
17101
17110
  const { repoRoot, graph, semanticEngine, summaryMap, maxFiles = 8, maxSnippets = 20, maxLogs = 3, maxTokens = 24e3, expandNeighbors = true, architectureNote, priorAttemptNote } = opts;
17102
17111
  const lexOpts = {
@@ -17252,7 +17261,7 @@ function estimatePacketTokens(packet) {
17252
17261
  return fileTokens + snippetTokens;
17253
17262
  }
17254
17263
  var init_contextAssembler = __esm({
17255
- "packages/retrieval/dist/contextAssembler.js"() {
17264
+ "../packages/retrieval/dist/contextAssembler.js"() {
17256
17265
  "use strict";
17257
17266
  init_lexicalSearch();
17258
17267
  init_graphExpand();
@@ -17260,7 +17269,7 @@ var init_contextAssembler = __esm({
17260
17269
  }
17261
17270
  });
17262
17271
 
17263
- // packages/retrieval/dist/index.js
17272
+ // ../packages/retrieval/dist/index.js
17264
17273
  var dist_exports2 = {};
17265
17274
  __export(dist_exports2, {
17266
17275
  CodeRetriever: () => CodeRetriever,
@@ -17285,7 +17294,7 @@ __export(dist_exports2, {
17285
17294
  testsForFiles: () => testsForFiles
17286
17295
  });
17287
17296
  var init_dist4 = __esm({
17288
- "packages/retrieval/dist/index.js"() {
17297
+ "../packages/retrieval/dist/index.js"() {
17289
17298
  "use strict";
17290
17299
  init_code_retriever();
17291
17300
  init_grep_search2();
@@ -17297,7 +17306,7 @@ var init_dist4 = __esm({
17297
17306
  }
17298
17307
  });
17299
17308
 
17300
- // packages/orchestrator/dist/scoutRunner.js
17309
+ // ../packages/orchestrator/dist/scoutRunner.js
17301
17310
  async function loadCodeRetriever(rootDir) {
17302
17311
  const mod = await Promise.resolve().then(() => (init_dist4(), dist_exports2));
17303
17312
  return new mod.CodeRetriever({ rootDir });
@@ -17328,7 +17337,7 @@ function scoutPrompt(task, repoProfile, candidateFiles, subtasks) {
17328
17337
  }
17329
17338
  var ScoutRunner;
17330
17339
  var init_scoutRunner = __esm({
17331
- "packages/orchestrator/dist/scoutRunner.js"() {
17340
+ "../packages/orchestrator/dist/scoutRunner.js"() {
17332
17341
  "use strict";
17333
17342
  init_dist3();
17334
17343
  init_promptLoader();
@@ -17434,7 +17443,7 @@ var init_scoutRunner = __esm({
17434
17443
  }
17435
17444
  });
17436
17445
 
17437
- // packages/orchestrator/dist/editorRunner.js
17446
+ // ../packages/orchestrator/dist/editorRunner.js
17438
17447
  function editorPrompt(task, subtask, retrievalPacket, previousVerification, retryNumber) {
17439
17448
  const filesSection = Object.entries(retrievalPacket.files).map(([path, content]) => `=== ${path} ===
17440
17449
  ${content}`).join("\n\n");
@@ -17462,7 +17471,7 @@ function parseJsonFromContent5(content) {
17462
17471
  }
17463
17472
  var EditorRunner;
17464
17473
  var init_editorRunner = __esm({
17465
- "packages/orchestrator/dist/editorRunner.js"() {
17474
+ "../packages/orchestrator/dist/editorRunner.js"() {
17466
17475
  "use strict";
17467
17476
  init_dist3();
17468
17477
  init_promptLoader();
@@ -17520,7 +17529,7 @@ var init_editorRunner = __esm({
17520
17529
  }
17521
17530
  });
17522
17531
 
17523
- // packages/orchestrator/dist/verifierRunner.js
17532
+ // ../packages/orchestrator/dist/verifierRunner.js
17524
17533
  function verifierPrompt(task, subtask, patch, toolOutput) {
17525
17534
  const toolSection = toolOutput ? `TOOL EXECUTION OUTPUT:
17526
17535
  ${toolOutput}` : "TOOL EXECUTION OUTPUT: (not executed)";
@@ -17548,7 +17557,7 @@ function parseJsonFromContent6(content) {
17548
17557
  }
17549
17558
  var VerifierRunner;
17550
17559
  var init_verifierRunner = __esm({
17551
- "packages/orchestrator/dist/verifierRunner.js"() {
17560
+ "../packages/orchestrator/dist/verifierRunner.js"() {
17552
17561
  "use strict";
17553
17562
  init_dist3();
17554
17563
  init_promptLoader();
@@ -17643,10 +17652,10 @@ FAILED: ${execError.stderr ?? execError.stdout ?? execError.message ?? "unknown
17643
17652
  }
17644
17653
  });
17645
17654
 
17646
- // packages/orchestrator/dist/mergeRunner.js
17655
+ // ../packages/orchestrator/dist/mergeRunner.js
17647
17656
  var MergeRunner;
17648
17657
  var init_mergeRunner = __esm({
17649
- "packages/orchestrator/dist/mergeRunner.js"() {
17658
+ "../packages/orchestrator/dist/mergeRunner.js"() {
17650
17659
  "use strict";
17651
17660
  init_promptLoader();
17652
17661
  MergeRunner = class {
@@ -17731,10 +17740,10 @@ var init_mergeRunner = __esm({
17731
17740
  }
17732
17741
  });
17733
17742
 
17734
- // packages/orchestrator/dist/retryController.js
17743
+ // ../packages/orchestrator/dist/retryController.js
17735
17744
  var RetryController;
17736
17745
  var init_retryController = __esm({
17737
- "packages/orchestrator/dist/retryController.js"() {
17746
+ "../packages/orchestrator/dist/retryController.js"() {
17738
17747
  "use strict";
17739
17748
  RetryController = class {
17740
17749
  maxRetries;
@@ -17831,7 +17840,7 @@ var init_retryController = __esm({
17831
17840
  }
17832
17841
  });
17833
17842
 
17834
- // packages/orchestrator/dist/ralphLoop.js
17843
+ // ../packages/orchestrator/dist/ralphLoop.js
17835
17844
  function isoNow() {
17836
17845
  return (/* @__PURE__ */ new Date()).toISOString();
17837
17846
  }
@@ -17879,7 +17888,7 @@ function deriveTerminalStatus(executions) {
17879
17888
  }
17880
17889
  var RalphLoop;
17881
17890
  var init_ralphLoop = __esm({
17882
- "packages/orchestrator/dist/ralphLoop.js"() {
17891
+ "../packages/orchestrator/dist/ralphLoop.js"() {
17883
17892
  "use strict";
17884
17893
  init_taskNormalizer();
17885
17894
  init_dispatcher();
@@ -18162,7 +18171,7 @@ var init_ralphLoop = __esm({
18162
18171
  }
18163
18172
  });
18164
18173
 
18165
- // packages/orchestrator/dist/personality.js
18174
+ // ../packages/orchestrator/dist/personality.js
18166
18175
  function compilePersonalityPrompt(profile, presetName) {
18167
18176
  if (presetName === "stark") {
18168
18177
  return loadPrompt("personality/level-stark.md");
@@ -18190,7 +18199,7 @@ function getPreset(name) {
18190
18199
  }
18191
18200
  var PERSONALITY_PRESETS, PRESET_NAMES;
18192
18201
  var init_personality = __esm({
18193
- "packages/orchestrator/dist/personality.js"() {
18202
+ "../packages/orchestrator/dist/personality.js"() {
18194
18203
  "use strict";
18195
18204
  init_promptLoader();
18196
18205
  PERSONALITY_PRESETS = {
@@ -18211,7 +18220,7 @@ var init_personality = __esm({
18211
18220
  }
18212
18221
  });
18213
18222
 
18214
- // packages/orchestrator/dist/agenticRunner.js
18223
+ // ../packages/orchestrator/dist/agenticRunner.js
18215
18224
  function repairJson(raw) {
18216
18225
  if (!raw || typeof raw !== "string")
18217
18226
  return null;
@@ -18277,7 +18286,7 @@ function getSystemPromptForTier(tier) {
18277
18286
  }
18278
18287
  var SYSTEM_PROMPT, SYSTEM_PROMPT_MEDIUM, SYSTEM_PROMPT_SMALL, AgenticRunner, OllamaAgenticBackend;
18279
18288
  var init_agenticRunner = __esm({
18280
- "packages/orchestrator/dist/agenticRunner.js"() {
18289
+ "../packages/orchestrator/dist/agenticRunner.js"() {
18281
18290
  "use strict";
18282
18291
  init_dist();
18283
18292
  init_personality();
@@ -20808,10 +20817,10 @@ ${transcript}`
20808
20817
  }
20809
20818
  });
20810
20819
 
20811
- // packages/orchestrator/dist/nexusBackend.js
20820
+ // ../packages/orchestrator/dist/nexusBackend.js
20812
20821
  var NexusAgenticBackend;
20813
20822
  var init_nexusBackend = __esm({
20814
- "packages/orchestrator/dist/nexusBackend.js"() {
20823
+ "../packages/orchestrator/dist/nexusBackend.js"() {
20815
20824
  "use strict";
20816
20825
  NexusAgenticBackend = class _NexusAgenticBackend {
20817
20826
  sendFn;
@@ -20987,10 +20996,10 @@ var init_nexusBackend = __esm({
20987
20996
  }
20988
20997
  });
20989
20998
 
20990
- // packages/orchestrator/dist/cascadeBackend.js
20999
+ // ../packages/orchestrator/dist/cascadeBackend.js
20991
21000
  var CascadeBackend;
20992
21001
  var init_cascadeBackend = __esm({
20993
- "packages/orchestrator/dist/cascadeBackend.js"() {
21002
+ "../packages/orchestrator/dist/cascadeBackend.js"() {
20994
21003
  "use strict";
20995
21004
  init_agenticRunner();
20996
21005
  init_nexusBackend();
@@ -21254,10 +21263,10 @@ var init_cascadeBackend = __esm({
21254
21263
  }
21255
21264
  });
21256
21265
 
21257
- // packages/orchestrator/dist/flowstatePrompt.js
21266
+ // ../packages/orchestrator/dist/flowstatePrompt.js
21258
21267
  var FLOWSTATE_PROMPT;
21259
21268
  var init_flowstatePrompt = __esm({
21260
- "packages/orchestrator/dist/flowstatePrompt.js"() {
21269
+ "../packages/orchestrator/dist/flowstatePrompt.js"() {
21261
21270
  "use strict";
21262
21271
  FLOWSTATE_PROMPT = `## FlowState Protocol (Active)
21263
21272
 
@@ -21308,10 +21317,10 @@ Constrain your context. Clarify your target. Focus your tools. Flow will follow.
21308
21317
  }
21309
21318
  });
21310
21319
 
21311
- // packages/orchestrator/dist/costTracker.js
21320
+ // ../packages/orchestrator/dist/costTracker.js
21312
21321
  var DEFAULT_PRICING, CostTracker;
21313
21322
  var init_costTracker = __esm({
21314
- "packages/orchestrator/dist/costTracker.js"() {
21323
+ "../packages/orchestrator/dist/costTracker.js"() {
21315
21324
  "use strict";
21316
21325
  DEFAULT_PRICING = [
21317
21326
  // Cloud providers — typical pricing tiers
@@ -21459,7 +21468,7 @@ var init_costTracker = __esm({
21459
21468
  }
21460
21469
  });
21461
21470
 
21462
- // packages/orchestrator/dist/workEvaluator.js
21471
+ // ../packages/orchestrator/dist/workEvaluator.js
21463
21472
  function detectTaskType(taskDescription) {
21464
21473
  let bestType = "general";
21465
21474
  let bestScore = 0;
@@ -21494,7 +21503,7 @@ function buildEvaluationPrompt(task, summary, rubric) {
21494
21503
  }
21495
21504
  var RUBRICS, TASK_TYPE_PATTERNS, WorkEvaluator;
21496
21505
  var init_workEvaluator = __esm({
21497
- "packages/orchestrator/dist/workEvaluator.js"() {
21506
+ "../packages/orchestrator/dist/workEvaluator.js"() {
21498
21507
  "use strict";
21499
21508
  init_promptLoader();
21500
21509
  RUBRICS = {
@@ -21665,10 +21674,10 @@ var init_workEvaluator = __esm({
21665
21674
  }
21666
21675
  });
21667
21676
 
21668
- // packages/orchestrator/dist/sessionMetrics.js
21677
+ // ../packages/orchestrator/dist/sessionMetrics.js
21669
21678
  var SessionMetrics;
21670
21679
  var init_sessionMetrics = __esm({
21671
- "packages/orchestrator/dist/sessionMetrics.js"() {
21680
+ "../packages/orchestrator/dist/sessionMetrics.js"() {
21672
21681
  "use strict";
21673
21682
  SessionMetrics = class {
21674
21683
  sessionStart;
@@ -21765,16 +21774,16 @@ var init_sessionMetrics = __esm({
21765
21774
  }
21766
21775
  });
21767
21776
 
21768
- // packages/orchestrator/dist/taskLearning.js
21777
+ // ../packages/orchestrator/dist/taskLearning.js
21769
21778
  var init_taskLearning = __esm({
21770
- "packages/orchestrator/dist/taskLearning.js"() {
21779
+ "../packages/orchestrator/dist/taskLearning.js"() {
21771
21780
  "use strict";
21772
21781
  }
21773
21782
  });
21774
21783
 
21775
- // packages/orchestrator/dist/index.js
21784
+ // ../packages/orchestrator/dist/index.js
21776
21785
  var init_dist5 = __esm({
21777
- "packages/orchestrator/dist/index.js"() {
21786
+ "../packages/orchestrator/dist/index.js"() {
21778
21787
  "use strict";
21779
21788
  init_agent_loop();
21780
21789
  init_ralphLoop();
@@ -21798,7 +21807,7 @@ var init_dist5 = __esm({
21798
21807
  }
21799
21808
  });
21800
21809
 
21801
- // packages/cli/dist/tui/listen.js
21810
+ // ../packages/cli/dist/tui/listen.js
21802
21811
  var listen_exports = {};
21803
21812
  __export(listen_exports, {
21804
21813
  ListenEngine: () => ListenEngine,
@@ -21978,7 +21987,7 @@ function getListenEngine(config) {
21978
21987
  }
21979
21988
  var AUDIO_EXTENSIONS, VIDEO_EXTENSIONS, WhisperFallbackTranscriber, ListenEngine, _bgInstallPromise, _engine;
21980
21989
  var init_listen = __esm({
21981
- "packages/cli/dist/tui/listen.js"() {
21990
+ "../packages/cli/dist/tui/listen.js"() {
21982
21991
  "use strict";
21983
21992
  AUDIO_EXTENSIONS = /* @__PURE__ */ new Set([
21984
21993
  ".mp3",
@@ -22517,9 +22526,9 @@ transcribe-cli error: ${transcribeCliError}` : "";
22517
22526
  }
22518
22527
  });
22519
22528
 
22520
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/constants.js
22529
+ // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/constants.js
22521
22530
  var require_constants = __commonJS({
22522
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/constants.js"(exports, module) {
22531
+ "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/constants.js"(exports, module) {
22523
22532
  "use strict";
22524
22533
  var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
22525
22534
  var hasBlob = typeof Blob !== "undefined";
@@ -22540,9 +22549,9 @@ var require_constants = __commonJS({
22540
22549
  }
22541
22550
  });
22542
22551
 
22543
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/buffer-util.js
22552
+ // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/buffer-util.js
22544
22553
  var require_buffer_util = __commonJS({
22545
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/buffer-util.js"(exports, module) {
22554
+ "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/buffer-util.js"(exports, module) {
22546
22555
  "use strict";
22547
22556
  var { EMPTY_BUFFER } = require_constants();
22548
22557
  var FastBuffer = Buffer[Symbol.species];
@@ -22615,9 +22624,9 @@ var require_buffer_util = __commonJS({
22615
22624
  }
22616
22625
  });
22617
22626
 
22618
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/limiter.js
22627
+ // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/limiter.js
22619
22628
  var require_limiter = __commonJS({
22620
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/limiter.js"(exports, module) {
22629
+ "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/limiter.js"(exports, module) {
22621
22630
  "use strict";
22622
22631
  var kDone = /* @__PURE__ */ Symbol("kDone");
22623
22632
  var kRun = /* @__PURE__ */ Symbol("kRun");
@@ -22665,9 +22674,9 @@ var require_limiter = __commonJS({
22665
22674
  }
22666
22675
  });
22667
22676
 
22668
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js
22677
+ // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js
22669
22678
  var require_permessage_deflate = __commonJS({
22670
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js"(exports, module) {
22679
+ "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js"(exports, module) {
22671
22680
  "use strict";
22672
22681
  var zlib = __require("zlib");
22673
22682
  var bufferUtil = require_buffer_util();
@@ -23048,9 +23057,9 @@ var require_permessage_deflate = __commonJS({
23048
23057
  }
23049
23058
  });
23050
23059
 
23051
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/validation.js
23060
+ // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/validation.js
23052
23061
  var require_validation = __commonJS({
23053
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/validation.js"(exports, module) {
23062
+ "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/validation.js"(exports, module) {
23054
23063
  "use strict";
23055
23064
  var { isUtf8 } = __require("buffer");
23056
23065
  var { hasBlob } = require_constants();
@@ -23249,9 +23258,9 @@ var require_validation = __commonJS({
23249
23258
  }
23250
23259
  });
23251
23260
 
23252
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/receiver.js
23261
+ // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/receiver.js
23253
23262
  var require_receiver = __commonJS({
23254
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/receiver.js"(exports, module) {
23263
+ "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/receiver.js"(exports, module) {
23255
23264
  "use strict";
23256
23265
  var { Writable: Writable2 } = __require("stream");
23257
23266
  var PerMessageDeflate = require_permessage_deflate();
@@ -23841,9 +23850,9 @@ var require_receiver = __commonJS({
23841
23850
  }
23842
23851
  });
23843
23852
 
23844
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/sender.js
23853
+ // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/sender.js
23845
23854
  var require_sender = __commonJS({
23846
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/sender.js"(exports, module) {
23855
+ "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/sender.js"(exports, module) {
23847
23856
  "use strict";
23848
23857
  var { Duplex } = __require("stream");
23849
23858
  var { randomFillSync } = __require("crypto");
@@ -24329,9 +24338,9 @@ var require_sender = __commonJS({
24329
24338
  }
24330
24339
  });
24331
24340
 
24332
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/event-target.js
24341
+ // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/event-target.js
24333
24342
  var require_event_target = __commonJS({
24334
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/event-target.js"(exports, module) {
24343
+ "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/event-target.js"(exports, module) {
24335
24344
  "use strict";
24336
24345
  var { kForOnEventAttribute, kListener } = require_constants();
24337
24346
  var kCode = /* @__PURE__ */ Symbol("kCode");
@@ -24558,9 +24567,9 @@ var require_event_target = __commonJS({
24558
24567
  }
24559
24568
  });
24560
24569
 
24561
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/extension.js
24570
+ // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/extension.js
24562
24571
  var require_extension = __commonJS({
24563
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/extension.js"(exports, module) {
24572
+ "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/extension.js"(exports, module) {
24564
24573
  "use strict";
24565
24574
  var { tokenChars } = require_validation();
24566
24575
  function push(dest, name, elem) {
@@ -24711,9 +24720,9 @@ var require_extension = __commonJS({
24711
24720
  }
24712
24721
  });
24713
24722
 
24714
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket.js
24723
+ // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket.js
24715
24724
  var require_websocket = __commonJS({
24716
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket.js"(exports, module) {
24725
+ "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket.js"(exports, module) {
24717
24726
  "use strict";
24718
24727
  var EventEmitter7 = __require("events");
24719
24728
  var https = __require("https");
@@ -25597,9 +25606,9 @@ var require_websocket = __commonJS({
25597
25606
  }
25598
25607
  });
25599
25608
 
25600
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/stream.js
25609
+ // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/stream.js
25601
25610
  var require_stream = __commonJS({
25602
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/stream.js"(exports, module) {
25611
+ "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/stream.js"(exports, module) {
25603
25612
  "use strict";
25604
25613
  var WebSocket2 = require_websocket();
25605
25614
  var { Duplex } = __require("stream");
@@ -25695,9 +25704,9 @@ var require_stream = __commonJS({
25695
25704
  }
25696
25705
  });
25697
25706
 
25698
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/subprotocol.js
25707
+ // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/subprotocol.js
25699
25708
  var require_subprotocol = __commonJS({
25700
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/subprotocol.js"(exports, module) {
25709
+ "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/subprotocol.js"(exports, module) {
25701
25710
  "use strict";
25702
25711
  var { tokenChars } = require_validation();
25703
25712
  function parse(header) {
@@ -25740,9 +25749,9 @@ var require_subprotocol = __commonJS({
25740
25749
  }
25741
25750
  });
25742
25751
 
25743
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket-server.js
25752
+ // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket-server.js
25744
25753
  var require_websocket_server = __commonJS({
25745
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket-server.js"(exports, module) {
25754
+ "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket-server.js"(exports, module) {
25746
25755
  "use strict";
25747
25756
  var EventEmitter7 = __require("events");
25748
25757
  var http = __require("http");
@@ -26133,10 +26142,10 @@ var require_websocket_server = __commonJS({
26133
26142
  }
26134
26143
  });
26135
26144
 
26136
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/wrapper.mjs
26145
+ // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/wrapper.mjs
26137
26146
  var import_stream, import_receiver, import_sender, import_websocket, import_websocket_server;
26138
26147
  var init_wrapper = __esm({
26139
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/wrapper.mjs"() {
26148
+ "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/wrapper.mjs"() {
26140
26149
  import_stream = __toESM(require_stream(), 1);
26141
26150
  import_receiver = __toESM(require_receiver(), 1);
26142
26151
  import_sender = __toESM(require_sender(), 1);
@@ -26145,7 +26154,7 @@ var init_wrapper = __esm({
26145
26154
  }
26146
26155
  });
26147
26156
 
26148
- // packages/cli/dist/tui/render.js
26157
+ // ../packages/cli/dist/tui/render.js
26149
26158
  function ansi2(code, text) {
26150
26159
  return isTTY2 ? `\x1B[${code}m${text}\x1B[0m` : text;
26151
26160
  }
@@ -26826,7 +26835,7 @@ function formatDuration2(ms) {
26826
26835
  }
26827
26836
  var isTTY2, c2, pastel, _emojisEnabled, _colorsEnabled, MD, TOOL_ICONS, TOOL_LABELS, TOOL_COLORS, _contentWriteHook, HINTS, TOOL_NAMES, COMMAND_NAMES;
26828
26837
  var init_render = __esm({
26829
- "packages/cli/dist/tui/render.js"() {
26838
+ "../packages/cli/dist/tui/render.js"() {
26830
26839
  "use strict";
26831
26840
  isTTY2 = process.stdout.isTTY ?? false;
26832
26841
  c2 = {
@@ -27051,7 +27060,7 @@ var init_render = __esm({
27051
27060
  }
27052
27061
  });
27053
27062
 
27054
- // packages/cli/dist/tui/voice-session.js
27063
+ // ../packages/cli/dist/tui/voice-session.js
27055
27064
  import { createServer } from "node:http";
27056
27065
  import { spawn as spawn15, execSync as execSync24 } from "node:child_process";
27057
27066
  import { EventEmitter as EventEmitter2 } from "node:events";
@@ -27432,7 +27441,7 @@ function renderVoiceSessionTranscript(speaker, text) {
27432
27441
  }
27433
27442
  var VoiceSession;
27434
27443
  var init_voice_session = __esm({
27435
- "packages/cli/dist/tui/voice-session.js"() {
27444
+ "../packages/cli/dist/tui/voice-session.js"() {
27436
27445
  "use strict";
27437
27446
  init_wrapper();
27438
27447
  init_render();
@@ -27779,7 +27788,7 @@ var init_voice_session = __esm({
27779
27788
  }
27780
27789
  });
27781
27790
 
27782
- // packages/cli/dist/tui/expose.js
27791
+ // ../packages/cli/dist/tui/expose.js
27783
27792
  import { createServer as createServer2, request as httpRequest } from "node:http";
27784
27793
  import { spawn as spawn16, exec } from "node:child_process";
27785
27794
  import { EventEmitter as EventEmitter3 } from "node:events";
@@ -27952,7 +27961,7 @@ function removeP2PExposeState(stateDir) {
27952
27961
  }
27953
27962
  var HOP_BY_HOP_HEADERS, CF_HEADERS_PREFIX, INTERNAL_CAPABILITIES, DEFAULT_TARGETS, STATE_FILE_NAME, ExposeGateway, P2P_STATE_FILE_NAME, ExposeP2PGateway;
27954
27963
  var init_expose = __esm({
27955
- "packages/cli/dist/tui/expose.js"() {
27964
+ "../packages/cli/dist/tui/expose.js"() {
27956
27965
  "use strict";
27957
27966
  init_render();
27958
27967
  HOP_BY_HOP_HEADERS = /* @__PURE__ */ new Set([
@@ -29099,25 +29108,25 @@ ${this.formatConnectionInfo()}`);
29099
29108
  }
29100
29109
  });
29101
29110
 
29102
- // packages/cli/dist/tui/p2p/types.js
29111
+ // ../packages/cli/dist/tui/p2p/types.js
29103
29112
  function trustLevel(tier) {
29104
29113
  return TRUST_ORDER.indexOf(tier);
29105
29114
  }
29106
29115
  var TRUST_ORDER;
29107
29116
  var init_types = __esm({
29108
- "packages/cli/dist/tui/p2p/types.js"() {
29117
+ "../packages/cli/dist/tui/p2p/types.js"() {
29109
29118
  "use strict";
29110
29119
  TRUST_ORDER = ["public", "verified", "tee", "local"];
29111
29120
  }
29112
29121
  });
29113
29122
 
29114
- // packages/cli/dist/tui/p2p/secret-vault.js
29123
+ // ../packages/cli/dist/tui/p2p/secret-vault.js
29115
29124
  import { createCipheriv as createCipheriv2, createDecipheriv as createDecipheriv2, randomBytes as randomBytes8, scryptSync as scryptSync2, createHash as createHash2 } from "node:crypto";
29116
29125
  import { readFileSync as readFileSync20, writeFileSync as writeFileSync10, existsSync as existsSync28, mkdirSync as mkdirSync10 } from "node:fs";
29117
29126
  import { join as join36, dirname as dirname14 } from "node:path";
29118
29127
  var PLACEHOLDER_PREFIX, PLACEHOLDER_SUFFIX, CIPHER_ALGO, SALT_LEN, IV_LEN, KEY_LEN, SecretVault;
29119
29128
  var init_secret_vault = __esm({
29120
- "packages/cli/dist/tui/p2p/secret-vault.js"() {
29129
+ "../packages/cli/dist/tui/p2p/secret-vault.js"() {
29121
29130
  "use strict";
29122
29131
  init_types();
29123
29132
  PLACEHOLDER_PREFIX = "{{OA_VAR_";
@@ -29375,13 +29384,13 @@ var init_secret_vault = __esm({
29375
29384
  }
29376
29385
  });
29377
29386
 
29378
- // packages/cli/dist/tui/p2p/peer-mesh.js
29387
+ // ../packages/cli/dist/tui/p2p/peer-mesh.js
29379
29388
  import { EventEmitter as EventEmitter4 } from "node:events";
29380
29389
  import { createServer as createServer3 } from "node:http";
29381
29390
  import { randomBytes as randomBytes9, createHash as createHash3, generateKeyPairSync } from "node:crypto";
29382
29391
  var PING_INTERVAL_MS, PEER_TIMEOUT_MS, GOSSIP_INTERVAL_MS, MAX_PEERS, PeerMesh;
29383
29392
  var init_peer_mesh = __esm({
29384
- "packages/cli/dist/tui/p2p/peer-mesh.js"() {
29393
+ "../packages/cli/dist/tui/p2p/peer-mesh.js"() {
29385
29394
  "use strict";
29386
29395
  init_wrapper();
29387
29396
  PING_INTERVAL_MS = 3e4;
@@ -29840,11 +29849,11 @@ var init_peer_mesh = __esm({
29840
29849
  }
29841
29850
  });
29842
29851
 
29843
- // packages/cli/dist/tui/p2p/inference-router.js
29852
+ // ../packages/cli/dist/tui/p2p/inference-router.js
29844
29853
  import { EventEmitter as EventEmitter5 } from "node:events";
29845
29854
  var TRUST_WEIGHTS, InferenceRouter;
29846
29855
  var init_inference_router = __esm({
29847
- "packages/cli/dist/tui/p2p/inference-router.js"() {
29856
+ "../packages/cli/dist/tui/p2p/inference-router.js"() {
29848
29857
  "use strict";
29849
29858
  init_types();
29850
29859
  TRUST_WEIGHTS = {
@@ -30038,9 +30047,9 @@ var init_inference_router = __esm({
30038
30047
  }
30039
30048
  });
30040
30049
 
30041
- // packages/cli/dist/tui/p2p/index.js
30050
+ // ../packages/cli/dist/tui/p2p/index.js
30042
30051
  var init_p2p = __esm({
30043
- "packages/cli/dist/tui/p2p/index.js"() {
30052
+ "../packages/cli/dist/tui/p2p/index.js"() {
30044
30053
  "use strict";
30045
30054
  init_secret_vault();
30046
30055
  init_peer_mesh();
@@ -30049,7 +30058,7 @@ var init_p2p = __esm({
30049
30058
  }
30050
30059
  });
30051
30060
 
30052
- // packages/cli/dist/tui/call-agent.js
30061
+ // ../packages/cli/dist/tui/call-agent.js
30053
30062
  import { EventEmitter as EventEmitter6 } from "node:events";
30054
30063
  import crypto2 from "node:crypto";
30055
30064
  function adaptTool(tool) {
@@ -30073,7 +30082,7 @@ function generateSessionKey() {
30073
30082
  }
30074
30083
  var ActivityFeed, _globalFeed, CallSubAgent;
30075
30084
  var init_call_agent = __esm({
30076
- "packages/cli/dist/tui/call-agent.js"() {
30085
+ "../packages/cli/dist/tui/call-agent.js"() {
30077
30086
  "use strict";
30078
30087
  init_dist5();
30079
30088
  init_dist2();
@@ -30331,7 +30340,7 @@ ${activitySummary}
30331
30340
  }
30332
30341
  });
30333
30342
 
30334
- // packages/cli/dist/tui/model-picker.js
30343
+ // ../packages/cli/dist/tui/model-picker.js
30335
30344
  async function fetchOllamaModels(baseUrl) {
30336
30345
  const url = `${normalizeBaseUrl(baseUrl)}/api/tags`;
30337
30346
  const resp = await fetch(url, {
@@ -30733,27 +30742,27 @@ function formatRelativeTime(iso) {
30733
30742
  return `${months}mo ago`;
30734
30743
  }
30735
30744
  var init_model_picker = __esm({
30736
- "packages/cli/dist/tui/model-picker.js"() {
30745
+ "../packages/cli/dist/tui/model-picker.js"() {
30737
30746
  "use strict";
30738
30747
  init_dist();
30739
30748
  }
30740
30749
  });
30741
30750
 
30742
- // packages/prompts/dist/loader.js
30751
+ // ../packages/prompts/dist/loader.js
30743
30752
  var init_loader = __esm({
30744
- "packages/prompts/dist/loader.js"() {
30753
+ "../packages/prompts/dist/loader.js"() {
30745
30754
  "use strict";
30746
30755
  }
30747
30756
  });
30748
30757
 
30749
- // packages/prompts/dist/render.js
30758
+ // ../packages/prompts/dist/render.js
30750
30759
  var init_render2 = __esm({
30751
- "packages/prompts/dist/render.js"() {
30760
+ "../packages/prompts/dist/render.js"() {
30752
30761
  "use strict";
30753
30762
  }
30754
30763
  });
30755
30764
 
30756
- // packages/prompts/dist/promptLoader.js
30765
+ // ../packages/prompts/dist/promptLoader.js
30757
30766
  import { readFileSync as readFileSync21, existsSync as existsSync29 } from "node:fs";
30758
30767
  import { join as join37, dirname as dirname15 } from "node:path";
30759
30768
  import { fileURLToPath as fileURLToPath9 } from "node:url";
@@ -30773,7 +30782,7 @@ function loadPrompt2(promptPath, vars) {
30773
30782
  }
30774
30783
  var __filename2, __dirname5, devPath, publishedPath, PROMPTS_DIR2, cache2;
30775
30784
  var init_promptLoader2 = __esm({
30776
- "packages/prompts/dist/promptLoader.js"() {
30785
+ "../packages/prompts/dist/promptLoader.js"() {
30777
30786
  "use strict";
30778
30787
  __filename2 = fileURLToPath9(import.meta.url);
30779
30788
  __dirname5 = dirname15(__filename2);
@@ -30784,7 +30793,7 @@ var init_promptLoader2 = __esm({
30784
30793
  }
30785
30794
  });
30786
30795
 
30787
- // packages/prompts/dist/task-templates.js
30796
+ // ../packages/prompts/dist/task-templates.js
30788
30797
  function getTaskTemplate(type) {
30789
30798
  return TEMPLATES[type];
30790
30799
  }
@@ -30800,7 +30809,7 @@ ${template.outputGuidance}`;
30800
30809
  }
30801
30810
  var TEMPLATES;
30802
30811
  var init_task_templates = __esm({
30803
- "packages/prompts/dist/task-templates.js"() {
30812
+ "../packages/prompts/dist/task-templates.js"() {
30804
30813
  "use strict";
30805
30814
  init_promptLoader2();
30806
30815
  TEMPLATES = {
@@ -30889,12 +30898,12 @@ var init_task_templates = __esm({
30889
30898
  }
30890
30899
  });
30891
30900
 
30892
- // packages/prompts/dist/index.js
30901
+ // ../packages/prompts/dist/index.js
30893
30902
  import { join as join38, dirname as dirname16 } from "node:path";
30894
30903
  import { fileURLToPath as fileURLToPath10 } from "node:url";
30895
30904
  var _dir, _packageRoot;
30896
30905
  var init_dist6 = __esm({
30897
- "packages/prompts/dist/index.js"() {
30906
+ "../packages/prompts/dist/index.js"() {
30898
30907
  "use strict";
30899
30908
  init_loader();
30900
30909
  init_render2();
@@ -30905,7 +30914,7 @@ var init_dist6 = __esm({
30905
30914
  }
30906
30915
  });
30907
30916
 
30908
- // packages/cli/dist/tui/oa-directory.js
30917
+ // ../packages/cli/dist/tui/oa-directory.js
30909
30918
  import { existsSync as existsSync30, mkdirSync as mkdirSync11, readFileSync as readFileSync22, writeFileSync as writeFileSync11, readdirSync as readdirSync8, statSync as statSync9, unlinkSync as unlinkSync4 } from "node:fs";
30910
30919
  import { join as join39, relative as relative2, basename as basename9, extname as extname8 } from "node:path";
30911
30920
  import { homedir as homedir9 } from "node:os";
@@ -31367,7 +31376,7 @@ function deleteUsageRecord(kind, value, repoRoot) {
31367
31376
  }
31368
31377
  var OA_DIR, SUBDIRS, CONTEXT_FILES, PENDING_TASK_FILE, CONTEXT_SAVE_FILE, MAX_CONTEXT_ENTRIES, SKIP_DIRS, USAGE_HISTORY_FILE, MAX_HISTORY_RECORDS;
31369
31378
  var init_oa_directory = __esm({
31370
- "packages/cli/dist/tui/oa-directory.js"() {
31379
+ "../packages/cli/dist/tui/oa-directory.js"() {
31371
31380
  "use strict";
31372
31381
  OA_DIR = ".oa";
31373
31382
  SUBDIRS = ["memory", "index", "context", "history", "notes", "embedded", "provenance", "tools", "dreams"];
@@ -31408,7 +31417,7 @@ var init_oa_directory = __esm({
31408
31417
  }
31409
31418
  });
31410
31419
 
31411
- // packages/cli/dist/tui/setup.js
31420
+ // ../packages/cli/dist/tui/setup.js
31412
31421
  import * as readline from "node:readline";
31413
31422
  import { execSync as execSync25, spawn as spawn17, exec as exec2 } from "node:child_process";
31414
31423
  import { promisify as promisify5 } from "node:util";
@@ -32937,7 +32946,7 @@ async function ensureExpandedContext(modelName, backendUrl) {
32937
32946
  }
32938
32947
  var execAsync, QWEN_VARIANTS, TOOL_CALLING_MODELS, _cloudflaredInstallPromise;
32939
32948
  var init_setup = __esm({
32940
- "packages/cli/dist/tui/setup.js"() {
32949
+ "../packages/cli/dist/tui/setup.js"() {
32941
32950
  "use strict";
32942
32951
  init_model_picker();
32943
32952
  init_render();
@@ -32972,7 +32981,7 @@ var init_setup = __esm({
32972
32981
  }
32973
32982
  });
32974
32983
 
32975
- // packages/cli/dist/tui/tui-select.js
32984
+ // ../packages/cli/dist/tui/tui-select.js
32976
32985
  function ansi3(code, text) {
32977
32986
  return isTTY3 ? `\x1B[${code}m${text}\x1B[0m` : text;
32978
32987
  }
@@ -33341,7 +33350,7 @@ function tuiSelect(opts) {
33341
33350
  }
33342
33351
  var isTTY3, selectColors;
33343
33352
  var init_tui_select = __esm({
33344
- "packages/cli/dist/tui/tui-select.js"() {
33353
+ "../packages/cli/dist/tui/tui-select.js"() {
33345
33354
  "use strict";
33346
33355
  isTTY3 = process.stdout.isTTY ?? false;
33347
33356
  selectColors = {
@@ -33358,7 +33367,7 @@ var init_tui_select = __esm({
33358
33367
  }
33359
33368
  });
33360
33369
 
33361
- // packages/cli/dist/tui/commands.js
33370
+ // ../packages/cli/dist/tui/commands.js
33362
33371
  async function handleSlashCommand(input, ctx) {
33363
33372
  const trimmed = input.trim();
33364
33373
  if (!trimmed.startsWith("/"))
@@ -35759,7 +35768,7 @@ async function showExposeDashboard(gateway, rl) {
35759
35768
  }
35760
35769
  var DASH_INTERNAL;
35761
35770
  var init_commands = __esm({
35762
- "packages/cli/dist/tui/commands.js"() {
35771
+ "../packages/cli/dist/tui/commands.js"() {
35763
35772
  "use strict";
35764
35773
  init_model_picker();
35765
35774
  init_render();
@@ -35777,7 +35786,7 @@ var init_commands = __esm({
35777
35786
  }
35778
35787
  });
35779
35788
 
35780
- // packages/cli/dist/tui/project-context.js
35789
+ // ../packages/cli/dist/tui/project-context.js
35781
35790
  import { existsSync as existsSync32, readFileSync as readFileSync23, readdirSync as readdirSync9 } from "node:fs";
35782
35791
  import { join as join41, basename as basename10 } from "node:path";
35783
35792
  import { execSync as execSync26 } from "node:child_process";
@@ -36082,14 +36091,14 @@ These patterns have been repeated 3+ times. Consider using create_tool to automa
36082
36091
  return sections.join("\n\n");
36083
36092
  }
36084
36093
  var init_project_context = __esm({
36085
- "packages/cli/dist/tui/project-context.js"() {
36094
+ "../packages/cli/dist/tui/project-context.js"() {
36086
36095
  "use strict";
36087
36096
  init_oa_directory();
36088
36097
  init_dist2();
36089
36098
  }
36090
36099
  });
36091
36100
 
36092
- // packages/memory/dist/db.js
36101
+ // ../packages/memory/dist/db.js
36093
36102
  import Database from "better-sqlite3";
36094
36103
  function initDb(dbPath) {
36095
36104
  const db = new Database(dbPath);
@@ -36244,26 +36253,26 @@ function runMigrations(db) {
36244
36253
  `);
36245
36254
  }
36246
36255
  var init_db = __esm({
36247
- "packages/memory/dist/db.js"() {
36256
+ "../packages/memory/dist/db.js"() {
36248
36257
  "use strict";
36249
36258
  }
36250
36259
  });
36251
36260
 
36252
- // packages/memory/dist/repoProfileStore.js
36261
+ // ../packages/memory/dist/repoProfileStore.js
36253
36262
  var init_repoProfileStore = __esm({
36254
- "packages/memory/dist/repoProfileStore.js"() {
36263
+ "../packages/memory/dist/repoProfileStore.js"() {
36255
36264
  "use strict";
36256
36265
  }
36257
36266
  });
36258
36267
 
36259
- // packages/memory/dist/fileSummaryStore.js
36268
+ // ../packages/memory/dist/fileSummaryStore.js
36260
36269
  var init_fileSummaryStore = __esm({
36261
- "packages/memory/dist/fileSummaryStore.js"() {
36270
+ "../packages/memory/dist/fileSummaryStore.js"() {
36262
36271
  "use strict";
36263
36272
  }
36264
36273
  });
36265
36274
 
36266
- // packages/memory/dist/taskMemoryStore.js
36275
+ // ../packages/memory/dist/taskMemoryStore.js
36267
36276
  import { randomUUID } from "node:crypto";
36268
36277
  function rowToTask(row) {
36269
36278
  return {
@@ -36282,7 +36291,7 @@ function rowToTask(row) {
36282
36291
  }
36283
36292
  var TaskMemoryStore;
36284
36293
  var init_taskMemoryStore = __esm({
36285
- "packages/memory/dist/taskMemoryStore.js"() {
36294
+ "../packages/memory/dist/taskMemoryStore.js"() {
36286
36295
  "use strict";
36287
36296
  TaskMemoryStore = class {
36288
36297
  db;
@@ -36333,14 +36342,14 @@ var init_taskMemoryStore = __esm({
36333
36342
  }
36334
36343
  });
36335
36344
 
36336
- // packages/memory/dist/patchHistoryStore.js
36345
+ // ../packages/memory/dist/patchHistoryStore.js
36337
36346
  var init_patchHistoryStore = __esm({
36338
- "packages/memory/dist/patchHistoryStore.js"() {
36347
+ "../packages/memory/dist/patchHistoryStore.js"() {
36339
36348
  "use strict";
36340
36349
  }
36341
36350
  });
36342
36351
 
36343
- // packages/memory/dist/failureStore.js
36352
+ // ../packages/memory/dist/failureStore.js
36344
36353
  import { randomUUID as randomUUID2 } from "node:crypto";
36345
36354
  function rowToFailure(row) {
36346
36355
  return {
@@ -36361,7 +36370,7 @@ function rowToFailure(row) {
36361
36370
  }
36362
36371
  var FailureStore;
36363
36372
  var init_failureStore = __esm({
36364
- "packages/memory/dist/failureStore.js"() {
36373
+ "../packages/memory/dist/failureStore.js"() {
36365
36374
  "use strict";
36366
36375
  FailureStore = class {
36367
36376
  db;
@@ -36416,18 +36425,18 @@ var init_failureStore = __esm({
36416
36425
  }
36417
36426
  });
36418
36427
 
36419
- // packages/memory/dist/validationStore.js
36428
+ // ../packages/memory/dist/validationStore.js
36420
36429
  var init_validationStore = __esm({
36421
- "packages/memory/dist/validationStore.js"() {
36430
+ "../packages/memory/dist/validationStore.js"() {
36422
36431
  "use strict";
36423
36432
  }
36424
36433
  });
36425
36434
 
36426
- // packages/memory/dist/toolPatternStore.js
36435
+ // ../packages/memory/dist/toolPatternStore.js
36427
36436
  import { randomUUID as randomUUID3 } from "node:crypto";
36428
36437
  var ToolPatternStore;
36429
36438
  var init_toolPatternStore = __esm({
36430
- "packages/memory/dist/toolPatternStore.js"() {
36439
+ "../packages/memory/dist/toolPatternStore.js"() {
36431
36440
  "use strict";
36432
36441
  ToolPatternStore = class {
36433
36442
  db;
@@ -36606,9 +36615,9 @@ var init_toolPatternStore = __esm({
36606
36615
  }
36607
36616
  });
36608
36617
 
36609
- // packages/memory/dist/index.js
36618
+ // ../packages/memory/dist/index.js
36610
36619
  var init_dist7 = __esm({
36611
- "packages/memory/dist/index.js"() {
36620
+ "../packages/memory/dist/index.js"() {
36612
36621
  "use strict";
36613
36622
  init_db();
36614
36623
  init_repoProfileStore();
@@ -36621,7 +36630,7 @@ var init_dist7 = __esm({
36621
36630
  }
36622
36631
  });
36623
36632
 
36624
- // packages/cli/dist/tui/carousel.js
36633
+ // ../packages/cli/dist/tui/carousel.js
36625
36634
  function fg(code, text) {
36626
36635
  return isTTY4 ? `\x1B[38;5;${code}m${text}\x1B[0m` : text;
36627
36636
  }
@@ -36663,7 +36672,7 @@ function createRow(phraseIndices, speed, direction, bank) {
36663
36672
  }
36664
36673
  var isTTY4, PHRASES, Carousel;
36665
36674
  var init_carousel = __esm({
36666
- "packages/cli/dist/tui/carousel.js"() {
36675
+ "../packages/cli/dist/tui/carousel.js"() {
36667
36676
  "use strict";
36668
36677
  isTTY4 = process.stdout.isTTY ?? false;
36669
36678
  PHRASES = [
@@ -36904,7 +36913,7 @@ var init_carousel = __esm({
36904
36913
  }
36905
36914
  });
36906
36915
 
36907
- // packages/cli/dist/tui/carousel-descriptors.js
36916
+ // ../packages/cli/dist/tui/carousel-descriptors.js
36908
36917
  import { existsSync as existsSync33, readFileSync as readFileSync24, writeFileSync as writeFileSync13, mkdirSync as mkdirSync13, readdirSync as readdirSync10 } from "node:fs";
36909
36918
  import { join as join42, basename as basename11 } from "node:path";
36910
36919
  function loadToolProfile(repoRoot) {
@@ -37151,7 +37160,7 @@ function extractFromToolProfile(profile, tags) {
37151
37160
  }
37152
37161
  var TOOL_CATEGORIES, TOOL_PROFILE_FILE, DESCRIPTOR_FILE, CATEGORY_LABELS, STOP_WORDS;
37153
37162
  var init_carousel_descriptors = __esm({
37154
- "packages/cli/dist/tui/carousel-descriptors.js"() {
37163
+ "../packages/cli/dist/tui/carousel-descriptors.js"() {
37155
37164
  "use strict";
37156
37165
  init_oa_directory();
37157
37166
  TOOL_CATEGORIES = [
@@ -37257,7 +37266,7 @@ var init_carousel_descriptors = __esm({
37257
37266
  }
37258
37267
  });
37259
37268
 
37260
- // packages/cli/dist/tui/voice.js
37269
+ // ../packages/cli/dist/tui/voice.js
37261
37270
  import { existsSync as existsSync34, mkdirSync as mkdirSync14, writeFileSync as writeFileSync14, readFileSync as readFileSync25, unlinkSync as unlinkSync5 } from "node:fs";
37262
37271
  import { join as join43 } from "node:path";
37263
37272
  import { homedir as homedir12, tmpdir as tmpdir6, platform as platform3 } from "node:os";
@@ -37915,7 +37924,7 @@ function formatBytes2(bytes) {
37915
37924
  }
37916
37925
  var VOICE_MODELS, VoiceEngine, RING_BUFFER_SIZE, narration;
37917
37926
  var init_voice = __esm({
37918
- "packages/cli/dist/tui/voice.js"() {
37927
+ "../packages/cli/dist/tui/voice.js"() {
37919
37928
  "use strict";
37920
37929
  init_render();
37921
37930
  VOICE_MODELS = {
@@ -38860,7 +38869,7 @@ Error: ${err2 instanceof Error ? err2.message : String(err2)}`);
38860
38869
  const venvPy = luxttsVenvPy();
38861
38870
  if (existsSync34(venvPy)) {
38862
38871
  try {
38863
- execSync27(`${venvPy} -c "import sys; sys.path.insert(0, '${luxttsRepoDir()}'); from luxtts import LuxTTS; print('ok')"`, { stdio: "pipe", timeout: 3e4 });
38872
+ execSync27(`${venvPy} -c "import sys; sys.path.insert(0, '${luxttsRepoDir()}'); from zipvoice.luxvoice import LuxTTS; print('ok')"`, { stdio: "pipe", timeout: 3e4 });
38864
38873
  this.writeLuxttsInferScript();
38865
38874
  this.autoDetectCloneRef();
38866
38875
  return;
@@ -38891,7 +38900,7 @@ Error: ${err2 instanceof Error ? err2.message : String(err2)}`);
38891
38900
  }
38892
38901
  }
38893
38902
  const repoDir = luxttsRepoDir();
38894
- if (!existsSync34(join43(repoDir, "luxtts.py"))) {
38903
+ if (!existsSync34(join43(repoDir, "zipvoice", "luxvoice.py"))) {
38895
38904
  renderInfo(" Cloning LuxTTS repository...");
38896
38905
  try {
38897
38906
  if (existsSync34(repoDir)) {
@@ -38906,12 +38915,13 @@ Error: ${err2 instanceof Error ? err2.message : String(err2)}`);
38906
38915
  const pipCmd = JSON.stringify(venvPy);
38907
38916
  const installCmds = [
38908
38917
  // Core deps from requirements.txt
38909
- `${pipCmd} -m pip install --quiet lhotse huggingface_hub safetensors pydub onnxruntime librosa "transformers<=4.57.6" inflect numpy`,
38910
- // piper_phonemize from custom index
38918
+ `${pipCmd} -m pip install --quiet lhotse huggingface_hub safetensors pydub onnxruntime librosa "transformers<=4.57.6" inflect numpy vocos "setuptools<81"`,
38919
+ // Tokenization deps (piper_phonemize from custom index, plus CJK support)
38911
38920
  `${pipCmd} -m pip install --quiet piper-phonemize --find-links https://k2-fsa.github.io/icefall/piper_phonemize.html`,
38912
- // LinaCodec custom vocoder
38921
+ `${pipCmd} -m pip install --quiet jieba pypinyin cn2an`,
38922
+ // LinaCodec custom vocoder (required by Zipvoice)
38913
38923
  `${pipCmd} -m pip install --quiet "git+https://github.com/ysharma3501/LinaCodec.git"`,
38914
- // ZipVoice package from the cloned repo
38924
+ // Zipvoice package from the cloned repo (installs as 'zipvoice')
38915
38925
  `${pipCmd} -m pip install --quiet -e ${JSON.stringify(repoDir)}`
38916
38926
  ];
38917
38927
  for (const cmd of installCmds) {
@@ -38927,7 +38937,7 @@ Error: ${err2 instanceof Error ? err2.message : String(err2)}`);
38927
38937
  }
38928
38938
  }
38929
38939
  try {
38930
- execSync27(`${venvPy} -c "import sys; sys.path.insert(0, '${repoDir}'); from luxtts import LuxTTS; print('ok')"`, { stdio: "pipe", timeout: 3e4 });
38940
+ execSync27(`${venvPy} -c "import sys; sys.path.insert(0, '${repoDir}'); from zipvoice.luxvoice import LuxTTS; print('ok')"`, { stdio: "pipe", timeout: 3e4 });
38931
38941
  } catch (err) {
38932
38942
  throw new Error(`LuxTTS installed but import failed: ${err instanceof Error ? err.message : String(err)}`);
38933
38943
  }
@@ -38969,7 +38979,7 @@ def main():
38969
38979
 
38970
38980
  if action == 'check':
38971
38981
  try:
38972
- from luxtts import LuxTTS
38982
+ from zipvoice.luxvoice import LuxTTS
38973
38983
  print(json.dumps({'ok': True}))
38974
38984
  except Exception as e:
38975
38985
  print(json.dumps({'ok': False, 'error': str(e)}))
@@ -38977,7 +38987,7 @@ def main():
38977
38987
 
38978
38988
  if action == 'synthesize':
38979
38989
  import torch
38980
- from luxtts import LuxTTS
38990
+ from zipvoice.luxvoice import LuxTTS
38981
38991
 
38982
38992
  text = args['text']
38983
38993
  clone_ref = args['clone_ref']
@@ -38992,9 +39002,10 @@ def main():
38992
39002
  else:
38993
39003
  device = 'cpu'
38994
39004
 
38995
- tts = LuxTTS(model_path='YatharthS/LuxTTS', device=device)
38996
- encoded = tts.encode_prompt(clone_ref, duration=1000)
38997
- wav_tensor = tts.generate_speech(text, encoded, speed=speed)
39005
+ threads = 4 if device == 'cpu' else 4
39006
+ tts = LuxTTS(model_path='YatharthS/LuxTTS', device=device, threads=threads)
39007
+ encoded = tts.encode_prompt(clone_ref, duration=5, rms=0.001)
39008
+ wav_tensor = tts.generate_speech(text, encoded, num_steps=4, guidance_scale=3.0, t_shift=0.5, speed=speed)
38998
39009
  wav_np = wav_tensor.cpu().numpy().squeeze()
38999
39010
 
39000
39011
  # Write as 48kHz 16-bit mono WAV using stdlib
@@ -39310,7 +39321,7 @@ Error: ${err instanceof Error ? err.message : String(err)}`);
39310
39321
  }
39311
39322
  });
39312
39323
 
39313
- // packages/cli/dist/tui/stream-renderer.js
39324
+ // ../packages/cli/dist/tui/stream-renderer.js
39314
39325
  function fg2563(code, text) {
39315
39326
  return isTTY5 ? `\x1B[38;5;${code}m${text}\x1B[0m` : text;
39316
39327
  }
@@ -39328,7 +39339,7 @@ function boldText(text) {
39328
39339
  }
39329
39340
  var isTTY5, PASTEL, StreamRenderer;
39330
39341
  var init_stream_renderer = __esm({
39331
- "packages/cli/dist/tui/stream-renderer.js"() {
39342
+ "../packages/cli/dist/tui/stream-renderer.js"() {
39332
39343
  "use strict";
39333
39344
  isTTY5 = process.stdout.isTTY ?? false;
39334
39345
  PASTEL = {
@@ -39797,7 +39808,7 @@ var init_stream_renderer = __esm({
39797
39808
  }
39798
39809
  });
39799
39810
 
39800
- // packages/cli/dist/tui/edit-history.js
39811
+ // ../packages/cli/dist/tui/edit-history.js
39801
39812
  import { appendFileSync as appendFileSync2, mkdirSync as mkdirSync15 } from "node:fs";
39802
39813
  import { join as join44 } from "node:path";
39803
39814
  function createEditHistoryLogger(repoRoot, sessionId) {
@@ -39901,7 +39912,7 @@ function sanitizeArgs(tool, args) {
39901
39912
  }
39902
39913
  var EDIT_TOOLS;
39903
39914
  var init_edit_history = __esm({
39904
- "packages/cli/dist/tui/edit-history.js"() {
39915
+ "../packages/cli/dist/tui/edit-history.js"() {
39905
39916
  "use strict";
39906
39917
  EDIT_TOOLS = /* @__PURE__ */ new Set([
39907
39918
  "file_edit",
@@ -39912,7 +39923,7 @@ var init_edit_history = __esm({
39912
39923
  }
39913
39924
  });
39914
39925
 
39915
- // packages/cli/dist/tui/promptLoader.js
39926
+ // ../packages/cli/dist/tui/promptLoader.js
39916
39927
  import { readFileSync as readFileSync26, existsSync as existsSync35 } from "node:fs";
39917
39928
  import { join as join45, dirname as dirname17 } from "node:path";
39918
39929
  import { fileURLToPath as fileURLToPath11 } from "node:url";
@@ -39932,7 +39943,7 @@ function loadPrompt3(promptPath, vars) {
39932
39943
  }
39933
39944
  var __filename3, __dirname6, devPath2, publishedPath2, PROMPTS_DIR3, cache3;
39934
39945
  var init_promptLoader3 = __esm({
39935
- "packages/cli/dist/tui/promptLoader.js"() {
39946
+ "../packages/cli/dist/tui/promptLoader.js"() {
39936
39947
  "use strict";
39937
39948
  __filename3 = fileURLToPath11(import.meta.url);
39938
39949
  __dirname6 = dirname17(__filename3);
@@ -39943,7 +39954,7 @@ var init_promptLoader3 = __esm({
39943
39954
  }
39944
39955
  });
39945
39956
 
39946
- // packages/cli/dist/tui/dream-engine.js
39957
+ // ../packages/cli/dist/tui/dream-engine.js
39947
39958
  import { mkdirSync as mkdirSync16, writeFileSync as writeFileSync15, readFileSync as readFileSync27, existsSync as existsSync36, cpSync, rmSync, readdirSync as readdirSync11 } from "node:fs";
39948
39959
  import { join as join46, basename as basename12 } from "node:path";
39949
39960
  import { execSync as execSync28 } from "node:child_process";
@@ -40106,7 +40117,7 @@ function renderSwarmComplete(workspace) {
40106
40117
  }
40107
40118
  var SWARM_ROLE_CONFIG, AutoresearchFileWriteTool, AutoresearchFileEditTool, AUTORESEARCH_MEMORY_KEYS, SLEEP_STAGES, DreamFileWriteTool, DreamFileEditTool, DreamShellTool, DreamEngine;
40108
40119
  var init_dream_engine = __esm({
40109
- "packages/cli/dist/tui/dream-engine.js"() {
40120
+ "../packages/cli/dist/tui/dream-engine.js"() {
40110
40121
  "use strict";
40111
40122
  init_dist5();
40112
40123
  init_dist2();
@@ -41186,7 +41197,7 @@ ${files.map((f) => `- [\`${f}\`](./${f})`).join("\n")}
41186
41197
  }
41187
41198
  });
41188
41199
 
41189
- // packages/cli/dist/tui/priority-ingress.js
41200
+ // ../packages/cli/dist/tui/priority-ingress.js
41190
41201
  function classifyPriority(prompt, source, origin) {
41191
41202
  for (const rule of CLASSIFICATION_RULES) {
41192
41203
  if (rule.sourceType !== "any" && rule.sourceType !== source)
@@ -41211,7 +41222,7 @@ function classifyPriority(prompt, source, origin) {
41211
41222
  }
41212
41223
  var PRIORITY_WEIGHT, PRIORITY_POLICIES, CLASSIFICATION_RULES, PriorityIngressEngine;
41213
41224
  var init_priority_ingress = __esm({
41214
- "packages/cli/dist/tui/priority-ingress.js"() {
41225
+ "../packages/cli/dist/tui/priority-ingress.js"() {
41215
41226
  "use strict";
41216
41227
  PRIORITY_WEIGHT = {
41217
41228
  critical: 100,
@@ -41396,7 +41407,7 @@ var init_priority_ingress = __esm({
41396
41407
  }
41397
41408
  });
41398
41409
 
41399
- // packages/cli/dist/tui/bless-engine.js
41410
+ // ../packages/cli/dist/tui/bless-engine.js
41400
41411
  function renderBlessStart() {
41401
41412
  process.stdout.write(`
41402
41413
  ${c2.green("\u26A1")} ${c2.bold("BLESSED")} \u2014 Infinite warm loop activated
@@ -41420,7 +41431,7 @@ function renderBlessStop(state) {
41420
41431
  }
41421
41432
  var BlessEngine;
41422
41433
  var init_bless_engine = __esm({
41423
- "packages/cli/dist/tui/bless-engine.js"() {
41434
+ "../packages/cli/dist/tui/bless-engine.js"() {
41424
41435
  "use strict";
41425
41436
  init_render();
41426
41437
  init_dist2();
@@ -41551,7 +41562,7 @@ var init_bless_engine = __esm({
41551
41562
  }
41552
41563
  });
41553
41564
 
41554
- // packages/cli/dist/tui/dmn-engine.js
41565
+ // ../packages/cli/dist/tui/dmn-engine.js
41555
41566
  import { existsSync as existsSync37, readFileSync as readFileSync28, writeFileSync as writeFileSync16, mkdirSync as mkdirSync17, readdirSync as readdirSync12, unlinkSync as unlinkSync6 } from "node:fs";
41556
41567
  import { join as join47, basename as basename13 } from "node:path";
41557
41568
  function buildDMNGatherPrompt(recentTaskSummaries, dueReminders, attentionItems, memoryTopics, capabilities, competence, reflectionBuffer) {
@@ -41639,7 +41650,7 @@ function renderDMNResting(consecutiveNulls) {
41639
41650
  }
41640
41651
  var DMNEngine;
41641
41652
  var init_dmn_engine = __esm({
41642
- "packages/cli/dist/tui/dmn-engine.js"() {
41653
+ "../packages/cli/dist/tui/dmn-engine.js"() {
41643
41654
  "use strict";
41644
41655
  init_dist5();
41645
41656
  init_dist2();
@@ -42311,7 +42322,7 @@ OUTPUT: Call task_complete with JSON:
42311
42322
  }
42312
42323
  });
42313
42324
 
42314
- // packages/cli/dist/tui/snr-engine.js
42325
+ // ../packages/cli/dist/tui/snr-engine.js
42315
42326
  import { existsSync as existsSync38, readdirSync as readdirSync13, readFileSync as readFileSync29 } from "node:fs";
42316
42327
  import { join as join48, basename as basename14 } from "node:path";
42317
42328
  function computeDPrime(signalScores, noiseScores) {
@@ -42371,7 +42382,7 @@ function adaptTool4(tool) {
42371
42382
  }
42372
42383
  var SNREngine;
42373
42384
  var init_snr_engine = __esm({
42374
- "packages/cli/dist/tui/snr-engine.js"() {
42385
+ "../packages/cli/dist/tui/snr-engine.js"() {
42375
42386
  "use strict";
42376
42387
  init_dist5();
42377
42388
  init_dist2();
@@ -42646,7 +42657,7 @@ Call task_complete with the JSON array when done.`, onEvent)
42646
42657
  }
42647
42658
  });
42648
42659
 
42649
- // packages/cli/dist/tui/emotion-engine.js
42660
+ // ../packages/cli/dist/tui/emotion-engine.js
42650
42661
  function labelFromCoordinates(valence, arousal) {
42651
42662
  if (valence > 0.6 && arousal > 0.6)
42652
42663
  return { label: "exhilarated", emoji: "\u{1F929}" };
@@ -42707,7 +42718,7 @@ function clamp(value, min, max) {
42707
42718
  }
42708
42719
  var BASELINE_VALENCE, BASELINE_AROUSAL, DECAY_HALF_LIFE_MS, LABEL_UPDATE_INTERVAL_MS, EXCITEMENT_THRESHOLD, DISTRESS_THRESHOLD, OUTREACH_COOLDOWN_MS, OUTREACH_MIN_STREAK, LABEL_REGEN_THRESHOLD, EmotionEngine;
42709
42720
  var init_emotion_engine = __esm({
42710
- "packages/cli/dist/tui/emotion-engine.js"() {
42721
+ "../packages/cli/dist/tui/emotion-engine.js"() {
42711
42722
  "use strict";
42712
42723
  init_dist5();
42713
42724
  init_promptLoader3();
@@ -43053,7 +43064,7 @@ var init_emotion_engine = __esm({
43053
43064
  }
43054
43065
  });
43055
43066
 
43056
- // packages/cli/dist/tui/tool-policy.js
43067
+ // ../packages/cli/dist/tui/tool-policy.js
43057
43068
  function getDefaultPolicy(context) {
43058
43069
  switch (context) {
43059
43070
  case "terminal":
@@ -43103,7 +43114,7 @@ function applyToolPolicy(tools, context, userConfig) {
43103
43114
  }
43104
43115
  var SAFE_PUBLIC_TOOLS, SAFE_GROUP_ADMIN_TOOLS;
43105
43116
  var init_tool_policy = __esm({
43106
- "packages/cli/dist/tui/tool-policy.js"() {
43117
+ "../packages/cli/dist/tui/tool-policy.js"() {
43107
43118
  "use strict";
43108
43119
  SAFE_PUBLIC_TOOLS = /* @__PURE__ */ new Set([
43109
43120
  "memory_read",
@@ -43132,7 +43143,7 @@ var init_tool_policy = __esm({
43132
43143
  }
43133
43144
  });
43134
43145
 
43135
- // packages/cli/dist/tui/telegram-bridge.js
43146
+ // ../packages/cli/dist/tui/telegram-bridge.js
43136
43147
  import { mkdirSync as mkdirSync18, existsSync as existsSync39, unlinkSync as unlinkSync7, readdirSync as readdirSync14, statSync as statSync10 } from "node:fs";
43137
43148
  import { join as join49, resolve as resolve27 } from "node:path";
43138
43149
  import { writeFile as writeFileAsync } from "node:fs/promises";
@@ -43269,7 +43280,7 @@ function renderTelegramSubAgentError(username, error) {
43269
43280
  }
43270
43281
  var TELEGRAM_SAFETY_PROMPT, ADMIN_DM_PROMPT, ADMIN_GROUP_PROMPT, GROUP_REPLY_DISCRETION_PROMPT, MEDIA_CACHE_TTL_MS, TelegramBridge;
43271
43282
  var init_telegram_bridge = __esm({
43272
- "packages/cli/dist/tui/telegram-bridge.js"() {
43283
+ "../packages/cli/dist/tui/telegram-bridge.js"() {
43273
43284
  "use strict";
43274
43285
  init_dist5();
43275
43286
  init_dist2();
@@ -44308,7 +44319,7 @@ ${caption}\r
44308
44319
  }
44309
44320
  });
44310
44321
 
44311
- // packages/cli/dist/tui/braille-spinner.js
44322
+ // ../packages/cli/dist/tui/braille-spinner.js
44312
44323
  function buildColorRamp(ramp) {
44313
44324
  return [...ramp, ...ramp.slice(1, -1).reverse()];
44314
44325
  }
@@ -44350,7 +44361,7 @@ function themeForTool(toolName) {
44350
44361
  }
44351
44362
  var DENSITY, WAVE, THEME_DEFAULT, THEME_FILE, THEME_SHELL, THEME_WEB, THEME_SEARCH, THEME_MEMORY, THEME_SKILL, THEME_TOOL_CREATE, THEME_DREAM, DEFAULT_METRICS, BrailleSpinner;
44352
44363
  var init_braille_spinner = __esm({
44353
- "packages/cli/dist/tui/braille-spinner.js"() {
44364
+ "../packages/cli/dist/tui/braille-spinner.js"() {
44354
44365
  "use strict";
44355
44366
  DENSITY = [
44356
44367
  "\u2800",
@@ -44547,10 +44558,10 @@ var init_braille_spinner = __esm({
44547
44558
  }
44548
44559
  });
44549
44560
 
44550
- // packages/cli/dist/tui/status-bar.js
44561
+ // ../packages/cli/dist/tui/status-bar.js
44551
44562
  var EXPERT_TOOL_BASELINES, CONTEXT_SWITCH_OVERHEAD, TURN_PLANNING_OVERHEAD, DEFAULT_TOOL_BASELINE, CODE_READ_CHARS_PER_SEC, PROSE_READ_CHARS_PER_SEC, MIN_CONTENT_FOR_READING, CODE_CONTENT_TOOLS, PROSE_CONTENT_TOOLS, HumanSpeedTracker, StatusBar;
44552
44563
  var init_status_bar = __esm({
44553
- "packages/cli/dist/tui/status-bar.js"() {
44564
+ "../packages/cli/dist/tui/status-bar.js"() {
44554
44565
  "use strict";
44555
44566
  init_render();
44556
44567
  init_braille_spinner();
@@ -45853,7 +45864,7 @@ var init_status_bar = __esm({
45853
45864
  }
45854
45865
  });
45855
45866
 
45856
- // packages/cli/dist/tui/interactive.js
45867
+ // ../packages/cli/dist/tui/interactive.js
45857
45868
  import * as readline2 from "node:readline";
45858
45869
  import { Writable } from "node:stream";
45859
45870
  import { cwd } from "node:process";
@@ -49049,7 +49060,7 @@ async function runWithTUI(task, config, repoPath) {
49049
49060
  }
49050
49061
  var taskManager;
49051
49062
  var init_interactive = __esm({
49052
- "packages/cli/dist/tui/interactive.js"() {
49063
+ "../packages/cli/dist/tui/interactive.js"() {
49053
49064
  "use strict";
49054
49065
  init_dist5();
49055
49066
  init_dist5();
@@ -49086,7 +49097,7 @@ var init_interactive = __esm({
49086
49097
  }
49087
49098
  });
49088
49099
 
49089
- // packages/cli/dist/commands/run.js
49100
+ // ../packages/cli/dist/commands/run.js
49090
49101
  var run_exports = {};
49091
49102
  __export(run_exports, {
49092
49103
  runCommand: () => runCommand
@@ -49106,13 +49117,13 @@ async function runCommand(opts, config) {
49106
49117
  }
49107
49118
  }
49108
49119
  var init_run = __esm({
49109
- "packages/cli/dist/commands/run.js"() {
49120
+ "../packages/cli/dist/commands/run.js"() {
49110
49121
  "use strict";
49111
49122
  init_interactive();
49112
49123
  }
49113
49124
  });
49114
49125
 
49115
- // packages/indexer/dist/codebase-indexer.js
49126
+ // ../packages/indexer/dist/codebase-indexer.js
49116
49127
  import { glob } from "glob";
49117
49128
  import ignore from "ignore";
49118
49129
  import { readFile as readFile16, stat as stat4 } from "node:fs/promises";
@@ -49120,7 +49131,7 @@ import { createHash as createHash4 } from "node:crypto";
49120
49131
  import { join as join51, relative as relative3, extname as extname10, basename as basename15 } from "node:path";
49121
49132
  var DEFAULT_EXCLUDE, LANGUAGE_MAP, CodebaseIndexer;
49122
49133
  var init_codebase_indexer = __esm({
49123
- "packages/indexer/dist/codebase-indexer.js"() {
49134
+ "../packages/indexer/dist/codebase-indexer.js"() {
49124
49135
  "use strict";
49125
49136
  DEFAULT_EXCLUDE = [
49126
49137
  "node_modules",
@@ -49238,25 +49249,25 @@ var init_codebase_indexer = __esm({
49238
49249
  }
49239
49250
  });
49240
49251
 
49241
- // packages/indexer/dist/repoScanner.js
49252
+ // ../packages/indexer/dist/repoScanner.js
49242
49253
  import ignore2 from "ignore";
49243
49254
  var init_repoScanner = __esm({
49244
- "packages/indexer/dist/repoScanner.js"() {
49255
+ "../packages/indexer/dist/repoScanner.js"() {
49245
49256
  "use strict";
49246
49257
  }
49247
49258
  });
49248
49259
 
49249
- // packages/indexer/dist/symbolExtractor.js
49260
+ // ../packages/indexer/dist/symbolExtractor.js
49250
49261
  var init_symbolExtractor = __esm({
49251
- "packages/indexer/dist/symbolExtractor.js"() {
49262
+ "../packages/indexer/dist/symbolExtractor.js"() {
49252
49263
  "use strict";
49253
49264
  }
49254
49265
  });
49255
49266
 
49256
- // packages/indexer/dist/graphBuilder.js
49267
+ // ../packages/indexer/dist/graphBuilder.js
49257
49268
  var TS_EXTENSIONS, JS_EXTENSIONS, ALL_EXTENSIONS;
49258
49269
  var init_graphBuilder = __esm({
49259
- "packages/indexer/dist/graphBuilder.js"() {
49270
+ "../packages/indexer/dist/graphBuilder.js"() {
49260
49271
  "use strict";
49261
49272
  TS_EXTENSIONS = [".ts", ".tsx", ".mts", ".cts"];
49262
49273
  JS_EXTENSIONS = [".js", ".jsx", ".mjs", ".cjs"];
@@ -49264,30 +49275,30 @@ var init_graphBuilder = __esm({
49264
49275
  }
49265
49276
  });
49266
49277
 
49267
- // packages/indexer/dist/fileSummarizer.js
49278
+ // ../packages/indexer/dist/fileSummarizer.js
49268
49279
  var init_fileSummarizer = __esm({
49269
- "packages/indexer/dist/fileSummarizer.js"() {
49280
+ "../packages/indexer/dist/fileSummarizer.js"() {
49270
49281
  "use strict";
49271
49282
  }
49272
49283
  });
49273
49284
 
49274
- // packages/indexer/dist/embeddings.js
49285
+ // ../packages/indexer/dist/embeddings.js
49275
49286
  var init_embeddings = __esm({
49276
- "packages/indexer/dist/embeddings.js"() {
49287
+ "../packages/indexer/dist/embeddings.js"() {
49277
49288
  "use strict";
49278
49289
  }
49279
49290
  });
49280
49291
 
49281
- // packages/indexer/dist/ollamaEmbeddings.js
49292
+ // ../packages/indexer/dist/ollamaEmbeddings.js
49282
49293
  var init_ollamaEmbeddings = __esm({
49283
- "packages/indexer/dist/ollamaEmbeddings.js"() {
49294
+ "../packages/indexer/dist/ollamaEmbeddings.js"() {
49284
49295
  "use strict";
49285
49296
  }
49286
49297
  });
49287
49298
 
49288
- // packages/indexer/dist/index.js
49299
+ // ../packages/indexer/dist/index.js
49289
49300
  var init_dist8 = __esm({
49290
- "packages/indexer/dist/index.js"() {
49301
+ "../packages/indexer/dist/index.js"() {
49291
49302
  "use strict";
49292
49303
  init_codebase_indexer();
49293
49304
  init_repoScanner();
@@ -49299,7 +49310,7 @@ var init_dist8 = __esm({
49299
49310
  }
49300
49311
  });
49301
49312
 
49302
- // packages/cli/dist/commands/index-repo.js
49313
+ // ../packages/cli/dist/commands/index-repo.js
49303
49314
  var index_repo_exports = {};
49304
49315
  __export(index_repo_exports, {
49305
49316
  indexRepoCommand: () => indexRepoCommand
@@ -49392,7 +49403,7 @@ async function indexRepoCommand(opts, _config) {
49392
49403
  printSuccess("Repository indexed successfully");
49393
49404
  }
49394
49405
  var init_index_repo = __esm({
49395
- "packages/cli/dist/commands/index-repo.js"() {
49406
+ "../packages/cli/dist/commands/index-repo.js"() {
49396
49407
  "use strict";
49397
49408
  init_dist8();
49398
49409
  init_spinner();
@@ -49400,7 +49411,7 @@ var init_index_repo = __esm({
49400
49411
  }
49401
49412
  });
49402
49413
 
49403
- // packages/cli/dist/commands/status.js
49414
+ // ../packages/cli/dist/commands/status.js
49404
49415
  var status_exports = {};
49405
49416
  __export(status_exports, {
49406
49417
  statusCommand: () => statusCommand
@@ -49550,7 +49561,7 @@ async function statusVllm(opts, config) {
49550
49561
  printSuccess("vLLM backend is operational");
49551
49562
  }
49552
49563
  var init_status = __esm({
49553
- "packages/cli/dist/commands/status.js"() {
49564
+ "../packages/cli/dist/commands/status.js"() {
49554
49565
  "use strict";
49555
49566
  init_dist();
49556
49567
  init_spinner();
@@ -49558,7 +49569,7 @@ var init_status = __esm({
49558
49569
  }
49559
49570
  });
49560
49571
 
49561
- // packages/cli/dist/commands/config.js
49572
+ // ../packages/cli/dist/commands/config.js
49562
49573
  var config_exports = {};
49563
49574
  __export(config_exports, {
49564
49575
  configCommand: () => configCommand
@@ -49733,7 +49744,7 @@ function handleKeys() {
49733
49744
  }
49734
49745
  var CONFIG_KEYS, SENSITIVE_KEYS, INT_KEYS, BOOL_KEYS, ENUM_KEYS;
49735
49746
  var init_config3 = __esm({
49736
- "packages/cli/dist/commands/config.js"() {
49747
+ "../packages/cli/dist/commands/config.js"() {
49737
49748
  "use strict";
49738
49749
  init_config();
49739
49750
  init_oa_directory();
@@ -49780,7 +49791,7 @@ var init_config3 = __esm({
49780
49791
  }
49781
49792
  });
49782
49793
 
49783
- // packages/cli/dist/commands/serve.js
49794
+ // ../packages/cli/dist/commands/serve.js
49784
49795
  var serve_exports = {};
49785
49796
  __export(serve_exports, {
49786
49797
  serveCommand: () => serveCommand
@@ -49930,14 +49941,14 @@ async function runVllmServer(args, verbose) {
49930
49941
  });
49931
49942
  }
49932
49943
  var init_serve = __esm({
49933
- "packages/cli/dist/commands/serve.js"() {
49944
+ "../packages/cli/dist/commands/serve.js"() {
49934
49945
  "use strict";
49935
49946
  init_dist();
49936
49947
  init_output();
49937
49948
  }
49938
49949
  });
49939
49950
 
49940
- // packages/cli/dist/commands/eval.js
49951
+ // ../packages/cli/dist/commands/eval.js
49941
49952
  var eval_exports = {};
49942
49953
  __export(eval_exports, {
49943
49954
  evalCommand: () => evalCommand
@@ -50076,7 +50087,7 @@ function createTempEvalRepo() {
50076
50087
  }
50077
50088
  var BASIC_SUITE, FULL_SUITE, SUITES;
50078
50089
  var init_eval = __esm({
50079
- "packages/cli/dist/commands/eval.js"() {
50090
+ "../packages/cli/dist/commands/eval.js"() {
50080
50091
  "use strict";
50081
50092
  init_dist5();
50082
50093
  init_dist();
@@ -50124,7 +50135,7 @@ var init_eval = __esm({
50124
50135
  }
50125
50136
  });
50126
50137
 
50127
- // packages/cli/dist/index.js
50138
+ // ../packages/cli/dist/index.js
50128
50139
  init_config();
50129
50140
  init_output();
50130
50141
  init_updater();
@@ -50133,7 +50144,7 @@ import { createRequire as createRequire3 } from "node:module";
50133
50144
  import { fileURLToPath as fileURLToPath13 } from "node:url";
50134
50145
  import { dirname as dirname19, join as join54 } from "node:path";
50135
50146
 
50136
- // packages/cli/dist/cli.js
50147
+ // ../packages/cli/dist/cli.js
50137
50148
  import { createInterface } from "node:readline";
50138
50149
  function createCli(options) {
50139
50150
  return {
@@ -50172,10 +50183,10 @@ function createCli(options) {
50172
50183
  };
50173
50184
  }
50174
50185
 
50175
- // packages/cli/dist/args.js
50186
+ // ../packages/cli/dist/args.js
50176
50187
  import { parseArgs as nodeParseArgs } from "node:util";
50177
50188
 
50178
- // packages/cli/dist/types.js
50189
+ // ../packages/cli/dist/types.js
50179
50190
  var DEFAULT_OPTIONS = {
50180
50191
  model: "qwen-2.5-coder-32b",
50181
50192
  backendUrl: "http://localhost:8000/v1",
@@ -50185,7 +50196,7 @@ var DEFAULT_OPTIONS = {
50185
50196
  verbose: false
50186
50197
  };
50187
50198
 
50188
- // packages/cli/dist/args.js
50199
+ // ../packages/cli/dist/args.js
50189
50200
  function parseArgs(argv) {
50190
50201
  const { values } = nodeParseArgs({
50191
50202
  args: argv.slice(2),
@@ -50231,7 +50242,7 @@ Options:
50231
50242
  console.log(help.trim());
50232
50243
  }
50233
50244
 
50234
- // packages/cli/dist/index.js
50245
+ // ../packages/cli/dist/index.js
50235
50246
  init_config();
50236
50247
  init_spinner();
50237
50248
  init_output();