open-agents-ai 0.19.0 → 0.19.1

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.
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ var __export = (target, all) => {
16
16
  __defProp(target, name, { get: all[name], enumerable: true });
17
17
  };
18
18
 
19
- // packages/cli/dist/config.js
19
+ // ../packages/cli/dist/config.js
20
20
  import { readFileSync, existsSync, mkdirSync, writeFileSync } from "node:fs";
21
21
  import { homedir } from "node:os";
22
22
  import { join } from "node:path";
@@ -103,7 +103,7 @@ function coerceConfigValue(key, value) {
103
103
  }
104
104
  var DEFAULT_CONFIG, VALID_BACKEND_TYPES;
105
105
  var init_config = __esm({
106
- "packages/cli/dist/config.js"() {
106
+ "../packages/cli/dist/config.js"() {
107
107
  "use strict";
108
108
  DEFAULT_CONFIG = Object.freeze({
109
109
  backendUrl: "http://localhost:11434",
@@ -120,7 +120,7 @@ var init_config = __esm({
120
120
  }
121
121
  });
122
122
 
123
- // packages/cli/dist/ui/output.js
123
+ // ../packages/cli/dist/ui/output.js
124
124
  function ansi(code, text, tty) {
125
125
  return tty ? `\x1B[${code}m${text}\x1B[0m` : text;
126
126
  }
@@ -199,7 +199,7 @@ function printReport(opts) {
199
199
  }
200
200
  var isTTY, isStderrTTY, c, STATUS_ICON, STATUS_COLOR;
201
201
  var init_output = __esm({
202
- "packages/cli/dist/ui/output.js"() {
202
+ "../packages/cli/dist/ui/output.js"() {
203
203
  "use strict";
204
204
  isTTY = process.stdout.isTTY;
205
205
  isStderrTTY = process.stderr.isTTY;
@@ -231,7 +231,7 @@ var init_output = __esm({
231
231
  }
232
232
  });
233
233
 
234
- // packages/cli/dist/updater.js
234
+ // ../packages/cli/dist/updater.js
235
235
  import { existsSync as existsSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
236
236
  import { join as join2 } from "node:path";
237
237
  import { homedir as homedir2 } from "node:os";
@@ -304,7 +304,7 @@ function formatUpdateBanner(info) {
304
304
  }
305
305
  var PACKAGE_NAME, CHECK_INTERVAL_MS, CACHE_DIR, CACHE_FILE;
306
306
  var init_updater = __esm({
307
- "packages/cli/dist/updater.js"() {
307
+ "../packages/cli/dist/updater.js"() {
308
308
  "use strict";
309
309
  PACKAGE_NAME = "open-agents-ai";
310
310
  CHECK_INTERVAL_MS = 60 * 60 * 1e3;
@@ -313,10 +313,10 @@ var init_updater = __esm({
313
313
  }
314
314
  });
315
315
 
316
- // packages/cli/dist/ui/spinner.js
316
+ // ../packages/cli/dist/ui/spinner.js
317
317
  var FRAMES, INTERVAL_MS, Spinner;
318
318
  var init_spinner = __esm({
319
- "packages/cli/dist/ui/spinner.js"() {
319
+ "../packages/cli/dist/ui/spinner.js"() {
320
320
  "use strict";
321
321
  FRAMES = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
322
322
  INTERVAL_MS = 80;
@@ -414,10 +414,10 @@ var init_spinner = __esm({
414
414
  }
415
415
  });
416
416
 
417
- // packages/backend-vllm/dist/sleep.js
417
+ // ../packages/backend-vllm/dist/sleep.js
418
418
  var SleepManager;
419
419
  var init_sleep = __esm({
420
- "packages/backend-vllm/dist/sleep.js"() {
420
+ "../packages/backend-vllm/dist/sleep.js"() {
421
421
  "use strict";
422
422
  SleepManager = class {
423
423
  baseUrl;
@@ -493,7 +493,7 @@ var init_sleep = __esm({
493
493
  }
494
494
  });
495
495
 
496
- // packages/backend-vllm/dist/normalizeUrl.js
496
+ // ../packages/backend-vllm/dist/normalizeUrl.js
497
497
  function normalizeBaseUrl(url) {
498
498
  let u = url.trim();
499
499
  u = u.replace(/\/+$/, "");
@@ -525,7 +525,7 @@ function detectProvider(url) {
525
525
  }
526
526
  var PROVIDERS;
527
527
  var init_normalizeUrl = __esm({
528
- "packages/backend-vllm/dist/normalizeUrl.js"() {
528
+ "../packages/backend-vllm/dist/normalizeUrl.js"() {
529
529
  "use strict";
530
530
  PROVIDERS = [
531
531
  // --- Cloud providers (specific domains) ---
@@ -594,7 +594,7 @@ var init_normalizeUrl = __esm({
594
594
  }
595
595
  });
596
596
 
597
- // packages/backend-vllm/dist/VllmBackend.js
597
+ // ../packages/backend-vllm/dist/VllmBackend.js
598
598
  function agentMessageToChatMessage(msg) {
599
599
  return {
600
600
  role: msg.role,
@@ -606,7 +606,7 @@ function buildEmptyUsage() {
606
606
  }
607
607
  var VllmBackend;
608
608
  var init_VllmBackend = __esm({
609
- "packages/backend-vllm/dist/VllmBackend.js"() {
609
+ "../packages/backend-vllm/dist/VllmBackend.js"() {
610
610
  "use strict";
611
611
  init_sleep();
612
612
  init_normalizeUrl();
@@ -749,7 +749,7 @@ var init_VllmBackend = __esm({
749
749
  }
750
750
  });
751
751
 
752
- // packages/backend-vllm/dist/OllamaBackend.js
752
+ // ../packages/backend-vllm/dist/OllamaBackend.js
753
753
  function agentMessageToChatMessage2(msg) {
754
754
  return {
755
755
  role: msg.role,
@@ -761,7 +761,7 @@ function buildEmptyUsage2() {
761
761
  }
762
762
  var OllamaBackend;
763
763
  var init_OllamaBackend = __esm({
764
- "packages/backend-vllm/dist/OllamaBackend.js"() {
764
+ "../packages/backend-vllm/dist/OllamaBackend.js"() {
765
765
  "use strict";
766
766
  init_normalizeUrl();
767
767
  OllamaBackend = class _OllamaBackend {
@@ -940,7 +940,7 @@ var init_OllamaBackend = __esm({
940
940
  }
941
941
  });
942
942
 
943
- // packages/backend-vllm/dist/FakeBackend.js
943
+ // ../packages/backend-vllm/dist/FakeBackend.js
944
944
  function fnv1a32(input) {
945
945
  const FNV_PRIME = 16777619;
946
946
  const FNV_OFFSET_BASIS = 2166136261;
@@ -953,7 +953,7 @@ function fnv1a32(input) {
953
953
  }
954
954
  var FakeBackend;
955
955
  var init_FakeBackend = __esm({
956
- "packages/backend-vllm/dist/FakeBackend.js"() {
956
+ "../packages/backend-vllm/dist/FakeBackend.js"() {
957
957
  "use strict";
958
958
  FakeBackend = class {
959
959
  options;
@@ -1053,7 +1053,7 @@ var init_FakeBackend = __esm({
1053
1053
  }
1054
1054
  });
1055
1055
 
1056
- // packages/backend-vllm/dist/backendFactory.js
1056
+ // ../packages/backend-vllm/dist/backendFactory.js
1057
1057
  function detectBackendType(baseUrl) {
1058
1058
  if (!baseUrl) {
1059
1059
  return "ollama";
@@ -1092,7 +1092,7 @@ function createBackend(opts) {
1092
1092
  }
1093
1093
  }
1094
1094
  var init_backendFactory = __esm({
1095
- "packages/backend-vllm/dist/backendFactory.js"() {
1095
+ "../packages/backend-vllm/dist/backendFactory.js"() {
1096
1096
  "use strict";
1097
1097
  init_OllamaBackend();
1098
1098
  init_VllmBackend();
@@ -1100,7 +1100,7 @@ var init_backendFactory = __esm({
1100
1100
  }
1101
1101
  });
1102
1102
 
1103
- // packages/backend-vllm/dist/metrics.js
1103
+ // ../packages/backend-vllm/dist/metrics.js
1104
1104
  function parseMetricValue(prometheusText, metricName) {
1105
1105
  const lines = prometheusText.split("\n");
1106
1106
  for (const line of lines) {
@@ -1121,7 +1121,7 @@ function parseMetricValue(prometheusText, metricName) {
1121
1121
  }
1122
1122
  var MetricsCollector;
1123
1123
  var init_metrics = __esm({
1124
- "packages/backend-vllm/dist/metrics.js"() {
1124
+ "../packages/backend-vllm/dist/metrics.js"() {
1125
1125
  "use strict";
1126
1126
  MetricsCollector = class {
1127
1127
  metricsUrl;
@@ -1176,16 +1176,16 @@ var init_metrics = __esm({
1176
1176
  }
1177
1177
  });
1178
1178
 
1179
- // packages/backend-vllm/dist/routing.js
1179
+ // ../packages/backend-vllm/dist/routing.js
1180
1180
  var init_routing = __esm({
1181
- "packages/backend-vllm/dist/routing.js"() {
1181
+ "../packages/backend-vllm/dist/routing.js"() {
1182
1182
  "use strict";
1183
1183
  }
1184
1184
  });
1185
1185
 
1186
- // packages/backend-vllm/dist/index.js
1186
+ // ../packages/backend-vllm/dist/index.js
1187
1187
  var init_dist = __esm({
1188
- "packages/backend-vllm/dist/index.js"() {
1188
+ "../packages/backend-vllm/dist/index.js"() {
1189
1189
  "use strict";
1190
1190
  init_VllmBackend();
1191
1191
  init_OllamaBackend();
@@ -1198,18 +1198,18 @@ var init_dist = __esm({
1198
1198
  }
1199
1199
  });
1200
1200
 
1201
- // packages/execution/dist/tool-executor.js
1201
+ // ../packages/execution/dist/tool-executor.js
1202
1202
  var init_tool_executor = __esm({
1203
- "packages/execution/dist/tool-executor.js"() {
1203
+ "../packages/execution/dist/tool-executor.js"() {
1204
1204
  "use strict";
1205
1205
  }
1206
1206
  });
1207
1207
 
1208
- // packages/execution/dist/tools/shell.js
1208
+ // ../packages/execution/dist/tools/shell.js
1209
1209
  import { spawn } from "node:child_process";
1210
1210
  var PERMISSION_ERROR_RE, ShellTool;
1211
1211
  var init_shell = __esm({
1212
- "packages/execution/dist/tools/shell.js"() {
1212
+ "../packages/execution/dist/tools/shell.js"() {
1213
1213
  "use strict";
1214
1214
  PERMISSION_ERROR_RE = /Permission denied|Operation not permitted|EACCES|EPERM|PermissionError|sudo:|not permitted|password is required|authentication failure/i;
1215
1215
  ShellTool = class {
@@ -1406,12 +1406,12 @@ ${stderr}` : ""),
1406
1406
  }
1407
1407
  });
1408
1408
 
1409
- // packages/execution/dist/tools/file-read.js
1409
+ // ../packages/execution/dist/tools/file-read.js
1410
1410
  import { readFile } from "node:fs/promises";
1411
1411
  import { resolve } from "node:path";
1412
1412
  var FileReadTool;
1413
1413
  var init_file_read = __esm({
1414
- "packages/execution/dist/tools/file-read.js"() {
1414
+ "../packages/execution/dist/tools/file-read.js"() {
1415
1415
  "use strict";
1416
1416
  FileReadTool = class {
1417
1417
  name = "file_read";
@@ -1461,12 +1461,12 @@ var init_file_read = __esm({
1461
1461
  }
1462
1462
  });
1463
1463
 
1464
- // packages/execution/dist/tools/file-write.js
1464
+ // ../packages/execution/dist/tools/file-write.js
1465
1465
  import { writeFile, mkdir } from "node:fs/promises";
1466
1466
  import { resolve as resolve2, dirname } from "node:path";
1467
1467
  var FileWriteTool;
1468
1468
  var init_file_write = __esm({
1469
- "packages/execution/dist/tools/file-write.js"() {
1469
+ "../packages/execution/dist/tools/file-write.js"() {
1470
1470
  "use strict";
1471
1471
  FileWriteTool = class {
1472
1472
  name = "file_write";
@@ -1509,13 +1509,13 @@ var init_file_write = __esm({
1509
1509
  }
1510
1510
  });
1511
1511
 
1512
- // packages/execution/dist/tools/grep-search.js
1512
+ // ../packages/execution/dist/tools/grep-search.js
1513
1513
  import { execFile } from "node:child_process";
1514
1514
  import { promisify } from "node:util";
1515
1515
  import { resolve as resolve3 } from "node:path";
1516
1516
  var execFileAsync, MAX_OUTPUT_LINES, GrepSearchTool;
1517
1517
  var init_grep_search = __esm({
1518
- "packages/execution/dist/tools/grep-search.js"() {
1518
+ "../packages/execution/dist/tools/grep-search.js"() {
1519
1519
  "use strict";
1520
1520
  execFileAsync = promisify(execFile);
1521
1521
  MAX_OUTPUT_LINES = 100;
@@ -1614,13 +1614,13 @@ var init_grep_search = __esm({
1614
1614
  }
1615
1615
  });
1616
1616
 
1617
- // packages/execution/dist/tools/glob-find.js
1617
+ // ../packages/execution/dist/tools/glob-find.js
1618
1618
  import { execFile as execFile2 } from "node:child_process";
1619
1619
  import { promisify as promisify2 } from "node:util";
1620
1620
  import { resolve as resolve4 } from "node:path";
1621
1621
  var execFileAsync2, MAX_RESULTS, GlobFindTool;
1622
1622
  var init_glob_find = __esm({
1623
- "packages/execution/dist/tools/glob-find.js"() {
1623
+ "../packages/execution/dist/tools/glob-find.js"() {
1624
1624
  "use strict";
1625
1625
  execFileAsync2 = promisify2(execFile2);
1626
1626
  MAX_RESULTS = 50;
@@ -1691,10 +1691,10 @@ var init_glob_find = __esm({
1691
1691
  }
1692
1692
  });
1693
1693
 
1694
- // packages/execution/dist/tools/web-fetch.js
1694
+ // ../packages/execution/dist/tools/web-fetch.js
1695
1695
  var DEFAULT_MAX_LENGTH, WebFetchTool;
1696
1696
  var init_web_fetch = __esm({
1697
- "packages/execution/dist/tools/web-fetch.js"() {
1697
+ "../packages/execution/dist/tools/web-fetch.js"() {
1698
1698
  "use strict";
1699
1699
  DEFAULT_MAX_LENGTH = 5e3;
1700
1700
  WebFetchTool = class {
@@ -1766,7 +1766,7 @@ var init_web_fetch = __esm({
1766
1766
  }
1767
1767
  });
1768
1768
 
1769
- // packages/execution/dist/tools/web-search.js
1769
+ // ../packages/execution/dist/tools/web-search.js
1770
1770
  function detectSearchProvider() {
1771
1771
  if (process.env["TAVILY_API_KEY"])
1772
1772
  return "tavily";
@@ -1776,7 +1776,7 @@ function detectSearchProvider() {
1776
1776
  }
1777
1777
  var DEFAULT_NUM_RESULTS, DUCKDUCKGO_HTML_URL, TAVILY_API_URL, JINA_SEARCH_URL, WebSearchTool;
1778
1778
  var init_web_search = __esm({
1779
- "packages/execution/dist/tools/web-search.js"() {
1779
+ "../packages/execution/dist/tools/web-search.js"() {
1780
1780
  "use strict";
1781
1781
  DEFAULT_NUM_RESULTS = 5;
1782
1782
  DUCKDUCKGO_HTML_URL = "https://html.duckduckgo.com/html/";
@@ -2040,7 +2040,7 @@ ${formatted}`,
2040
2040
  }
2041
2041
  });
2042
2042
 
2043
- // packages/execution/dist/tools/file-edit.js
2043
+ // ../packages/execution/dist/tools/file-edit.js
2044
2044
  import { readFile as readFile2, writeFile as writeFile2 } from "node:fs/promises";
2045
2045
  import { resolve as resolve5 } from "node:path";
2046
2046
  function countOccurrences(haystack, needle) {
@@ -2067,7 +2067,7 @@ function replaceAllOccurrences(haystack, needle, replacement) {
2067
2067
  }
2068
2068
  var FileEditTool;
2069
2069
  var init_file_edit = __esm({
2070
- "packages/execution/dist/tools/file-edit.js"() {
2070
+ "../packages/execution/dist/tools/file-edit.js"() {
2071
2071
  "use strict";
2072
2072
  FileEditTool = class {
2073
2073
  name = "file_edit";
@@ -2153,12 +2153,12 @@ var init_file_edit = __esm({
2153
2153
  }
2154
2154
  });
2155
2155
 
2156
- // packages/execution/dist/tools/memory-read.js
2156
+ // ../packages/execution/dist/tools/memory-read.js
2157
2157
  import { readFile as readFile3 } from "node:fs/promises";
2158
2158
  import { resolve as resolve6, join as join3 } from "node:path";
2159
2159
  var MemoryReadTool;
2160
2160
  var init_memory_read = __esm({
2161
- "packages/execution/dist/tools/memory-read.js"() {
2161
+ "../packages/execution/dist/tools/memory-read.js"() {
2162
2162
  "use strict";
2163
2163
  MemoryReadTool = class {
2164
2164
  name = "memory_read";
@@ -2248,13 +2248,13 @@ ${JSON.stringify(entries, null, 2)}`,
2248
2248
  }
2249
2249
  });
2250
2250
 
2251
- // packages/execution/dist/tools/memory-write.js
2251
+ // ../packages/execution/dist/tools/memory-write.js
2252
2252
  import { readFile as readFile4, writeFile as writeFile3, mkdir as mkdir2 } from "node:fs/promises";
2253
2253
  import { resolve as resolve7, join as join4 } from "node:path";
2254
2254
  import { randomBytes } from "node:crypto";
2255
2255
  var MemoryWriteTool;
2256
2256
  var init_memory_write = __esm({
2257
- "packages/execution/dist/tools/memory-write.js"() {
2257
+ "../packages/execution/dist/tools/memory-write.js"() {
2258
2258
  "use strict";
2259
2259
  MemoryWriteTool = class {
2260
2260
  name = "memory_write";
@@ -2339,12 +2339,12 @@ var init_memory_write = __esm({
2339
2339
  }
2340
2340
  });
2341
2341
 
2342
- // packages/execution/dist/tools/list-directory.js
2342
+ // ../packages/execution/dist/tools/list-directory.js
2343
2343
  import { readdirSync, statSync } from "node:fs";
2344
2344
  import { resolve as resolve8, join as join5 } from "node:path";
2345
2345
  var EXCLUDED, MAX_ENTRIES, ListDirectoryTool;
2346
2346
  var init_list_directory = __esm({
2347
- "packages/execution/dist/tools/list-directory.js"() {
2347
+ "../packages/execution/dist/tools/list-directory.js"() {
2348
2348
  "use strict";
2349
2349
  EXCLUDED = /* @__PURE__ */ new Set(["node_modules", ".git"]);
2350
2350
  MAX_ENTRIES = 100;
@@ -2403,11 +2403,11 @@ var init_list_directory = __esm({
2403
2403
  }
2404
2404
  });
2405
2405
 
2406
- // packages/execution/dist/tools/aiwg-setup.js
2406
+ // ../packages/execution/dist/tools/aiwg-setup.js
2407
2407
  import { execSync } from "node:child_process";
2408
2408
  var AiwgSetupTool;
2409
2409
  var init_aiwg_setup = __esm({
2410
- "packages/execution/dist/tools/aiwg-setup.js"() {
2410
+ "../packages/execution/dist/tools/aiwg-setup.js"() {
2411
2411
  "use strict";
2412
2412
  AiwgSetupTool = class {
2413
2413
  name = "aiwg_setup";
@@ -2481,13 +2481,13 @@ ${output}`,
2481
2481
  }
2482
2482
  });
2483
2483
 
2484
- // packages/execution/dist/tools/aiwg-health.js
2484
+ // ../packages/execution/dist/tools/aiwg-health.js
2485
2485
  import { execSync as execSync2 } from "node:child_process";
2486
2486
  import { existsSync as existsSync3, readdirSync as readdirSync2, readFileSync as readFileSync3, statSync as statSync2 } from "node:fs";
2487
2487
  import { join as join6 } from "node:path";
2488
2488
  var AiwgHealthTool;
2489
2489
  var init_aiwg_health = __esm({
2490
- "packages/execution/dist/tools/aiwg-health.js"() {
2490
+ "../packages/execution/dist/tools/aiwg-health.js"() {
2491
2491
  "use strict";
2492
2492
  AiwgHealthTool = class {
2493
2493
  name = "aiwg_health";
@@ -2693,11 +2693,11 @@ var init_aiwg_health = __esm({
2693
2693
  }
2694
2694
  });
2695
2695
 
2696
- // packages/execution/dist/tools/aiwg-workflow.js
2696
+ // ../packages/execution/dist/tools/aiwg-workflow.js
2697
2697
  import { execSync as execSync3 } from "node:child_process";
2698
2698
  var AiwgWorkflowTool;
2699
2699
  var init_aiwg_workflow = __esm({
2700
- "packages/execution/dist/tools/aiwg-workflow.js"() {
2700
+ "../packages/execution/dist/tools/aiwg-workflow.js"() {
2701
2701
  "use strict";
2702
2702
  AiwgWorkflowTool = class {
2703
2703
  name = "aiwg_workflow";
@@ -2778,7 +2778,7 @@ var init_aiwg_workflow = __esm({
2778
2778
  }
2779
2779
  });
2780
2780
 
2781
- // packages/execution/dist/tools/batch-edit.js
2781
+ // ../packages/execution/dist/tools/batch-edit.js
2782
2782
  import { readFile as readFile5, writeFile as writeFile4 } from "node:fs/promises";
2783
2783
  import { resolve as resolve9 } from "node:path";
2784
2784
  function countOccurrences2(haystack, needle) {
@@ -2792,7 +2792,7 @@ function countOccurrences2(haystack, needle) {
2792
2792
  }
2793
2793
  var BatchEditTool;
2794
2794
  var init_batch_edit = __esm({
2795
- "packages/execution/dist/tools/batch-edit.js"() {
2795
+ "../packages/execution/dist/tools/batch-edit.js"() {
2796
2796
  "use strict";
2797
2797
  BatchEditTool = class {
2798
2798
  name = "batch_edit";
@@ -2904,12 +2904,12 @@ ${results.join("\n")}`,
2904
2904
  }
2905
2905
  });
2906
2906
 
2907
- // packages/execution/dist/tools/file-patch.js
2907
+ // ../packages/execution/dist/tools/file-patch.js
2908
2908
  import { readFile as readFile6, writeFile as writeFile5, copyFile } from "node:fs/promises";
2909
2909
  import { resolve as resolve10 } from "node:path";
2910
2910
  var FilePatchTool;
2911
2911
  var init_file_patch = __esm({
2912
- "packages/execution/dist/tools/file-patch.js"() {
2912
+ "../packages/execution/dist/tools/file-patch.js"() {
2913
2913
  "use strict";
2914
2914
  FilePatchTool = class {
2915
2915
  name = "file_patch";
@@ -3076,12 +3076,12 @@ ${diff}`,
3076
3076
  }
3077
3077
  });
3078
3078
 
3079
- // packages/execution/dist/tools/codebase-map.js
3079
+ // ../packages/execution/dist/tools/codebase-map.js
3080
3080
  import { readdirSync as readdirSync3, statSync as statSync3, readFileSync as readFileSync4, existsSync as existsSync4 } from "node:fs";
3081
3081
  import { join as join7, relative, extname } from "node:path";
3082
3082
  var CodebaseMapTool;
3083
3083
  var init_codebase_map = __esm({
3084
- "packages/execution/dist/tools/codebase-map.js"() {
3084
+ "../packages/execution/dist/tools/codebase-map.js"() {
3085
3085
  "use strict";
3086
3086
  CodebaseMapTool = class {
3087
3087
  name = "codebase_map";
@@ -3364,13 +3364,13 @@ var init_codebase_map = __esm({
3364
3364
  }
3365
3365
  });
3366
3366
 
3367
- // packages/execution/dist/tools/diagnostic.js
3367
+ // ../packages/execution/dist/tools/diagnostic.js
3368
3368
  import { execSync as execSync4 } from "node:child_process";
3369
3369
  import { existsSync as existsSync5, readFileSync as readFileSync5 } from "node:fs";
3370
3370
  import { join as join8 } from "node:path";
3371
3371
  var DiagnosticTool;
3372
3372
  var init_diagnostic = __esm({
3373
- "packages/execution/dist/tools/diagnostic.js"() {
3373
+ "../packages/execution/dist/tools/diagnostic.js"() {
3374
3374
  "use strict";
3375
3375
  DiagnosticTool = class {
3376
3376
  name = "diagnostic";
@@ -3509,13 +3509,13 @@ ${err.stderr ?? ""}`.trim(),
3509
3509
  }
3510
3510
  });
3511
3511
 
3512
- // packages/execution/dist/tools/git-info.js
3512
+ // ../packages/execution/dist/tools/git-info.js
3513
3513
  import { execSync as execSync5 } from "node:child_process";
3514
3514
  import { existsSync as existsSync6 } from "node:fs";
3515
3515
  import { join as join9 } from "node:path";
3516
3516
  var GitInfoTool;
3517
3517
  var init_git_info = __esm({
3518
- "packages/execution/dist/tools/git-info.js"() {
3518
+ "../packages/execution/dist/tools/git-info.js"() {
3519
3519
  "use strict";
3520
3520
  GitInfoTool = class {
3521
3521
  name = "git_info";
@@ -3640,7 +3640,7 @@ var init_git_info = __esm({
3640
3640
  }
3641
3641
  });
3642
3642
 
3643
- // packages/execution/dist/tools/background-task.js
3643
+ // ../packages/execution/dist/tools/background-task.js
3644
3644
  import { spawn as spawn2 } from "node:child_process";
3645
3645
  function toInfo(entry) {
3646
3646
  return {
@@ -3656,7 +3656,7 @@ function toInfo(entry) {
3656
3656
  }
3657
3657
  var BackgroundTaskManager, BackgroundRunTool, TaskStatusTool, TaskOutputTool, TaskStopTool;
3658
3658
  var init_background_task = __esm({
3659
- "packages/execution/dist/tools/background-task.js"() {
3659
+ "../packages/execution/dist/tools/background-task.js"() {
3660
3660
  "use strict";
3661
3661
  BackgroundTaskManager = class {
3662
3662
  tasks = /* @__PURE__ */ new Map();
@@ -3928,7 +3928,7 @@ Exit code: ${task.exitCode ?? "N/A"}`,
3928
3928
  }
3929
3929
  });
3930
3930
 
3931
- // packages/execution/dist/system-deps.js
3931
+ // ../packages/execution/dist/system-deps.js
3932
3932
  import { execSync as execSync6 } from "node:child_process";
3933
3933
  function detectPackageManager() {
3934
3934
  if (_detectedPkgManager !== void 0)
@@ -4058,7 +4058,7 @@ function ensureCommand(command) {
4058
4058
  }
4059
4059
  var DESKTOP_DEPS, _detectedPkgManager, _cache, _sudoPassword;
4060
4060
  var init_system_deps = __esm({
4061
- "packages/execution/dist/system-deps.js"() {
4061
+ "../packages/execution/dist/system-deps.js"() {
4062
4062
  "use strict";
4063
4063
  DESKTOP_DEPS = [
4064
4064
  {
@@ -4091,7 +4091,7 @@ var init_system_deps = __esm({
4091
4091
  }
4092
4092
  });
4093
4093
 
4094
- // packages/execution/dist/tools/image.js
4094
+ // ../packages/execution/dist/tools/image.js
4095
4095
  import { existsSync as existsSync7, readFileSync as readFileSync6, statSync as statSync4 } from "node:fs";
4096
4096
  import { resolve as resolve11, extname as extname2, basename } from "node:path";
4097
4097
  import { execSync as execSync7 } from "node:child_process";
@@ -4180,7 +4180,7 @@ function runOCR(filePath) {
4180
4180
  }
4181
4181
  var IMAGE_EXTENSIONS, ImageReadTool, ScreenshotTool, OCRTool;
4182
4182
  var init_image = __esm({
4183
- "packages/execution/dist/tools/image.js"() {
4183
+ "../packages/execution/dist/tools/image.js"() {
4184
4184
  "use strict";
4185
4185
  init_system_deps();
4186
4186
  IMAGE_EXTENSIONS = /* @__PURE__ */ new Set([
@@ -4470,7 +4470,7 @@ ${text}`,
4470
4470
  }
4471
4471
  });
4472
4472
 
4473
- // packages/execution/dist/tools/custom-tool.js
4473
+ // ../packages/execution/dist/tools/custom-tool.js
4474
4474
  var custom_tool_exports = {};
4475
4475
  __export(custom_tool_exports, {
4476
4476
  CustomTool: () => CustomTool,
@@ -4573,7 +4573,7 @@ function loadFromDirectory(dir) {
4573
4573
  }
4574
4574
  var CustomTool;
4575
4575
  var init_custom_tool = __esm({
4576
- "packages/execution/dist/tools/custom-tool.js"() {
4576
+ "../packages/execution/dist/tools/custom-tool.js"() {
4577
4577
  "use strict";
4578
4578
  CustomTool = class {
4579
4579
  name;
@@ -4682,10 +4682,10 @@ ${stderr}` : ""),
4682
4682
  }
4683
4683
  });
4684
4684
 
4685
- // packages/execution/dist/tools/tool-creator.js
4685
+ // ../packages/execution/dist/tools/tool-creator.js
4686
4686
  var CreateToolTool, ManageToolsTool;
4687
4687
  var init_tool_creator = __esm({
4688
- "packages/execution/dist/tools/tool-creator.js"() {
4688
+ "../packages/execution/dist/tools/tool-creator.js"() {
4689
4689
  "use strict";
4690
4690
  init_custom_tool();
4691
4691
  CreateToolTool = class {
@@ -4976,7 +4976,7 @@ var init_tool_creator = __esm({
4976
4976
  }
4977
4977
  });
4978
4978
 
4979
- // packages/execution/dist/tools/skill-tools.js
4979
+ // ../packages/execution/dist/tools/skill-tools.js
4980
4980
  import { existsSync as existsSync9, readdirSync as readdirSync5, readFileSync as readFileSync8 } from "node:fs";
4981
4981
  import { join as join12, basename as basename2, dirname as dirname2 } from "node:path";
4982
4982
  import { homedir as homedir4 } from "node:os";
@@ -5254,7 +5254,7 @@ function parseTriggers(filePath) {
5254
5254
  }
5255
5255
  var _cachedAiwgPkgRoot, SkillListTool, SkillExecuteTool;
5256
5256
  var init_skill_tools = __esm({
5257
- "packages/execution/dist/tools/skill-tools.js"() {
5257
+ "../packages/execution/dist/tools/skill-tools.js"() {
5258
5258
  "use strict";
5259
5259
  SkillListTool = class {
5260
5260
  name = "skill_list";
@@ -5376,7 +5376,7 @@ ${content}`,
5376
5376
  }
5377
5377
  });
5378
5378
 
5379
- // packages/execution/dist/tools/transcribe-tool.js
5379
+ // ../packages/execution/dist/tools/transcribe-tool.js
5380
5380
  import { existsSync as existsSync10, mkdirSync as mkdirSync4, writeFileSync as writeFileSync4, readFileSync as readFileSync9, unlinkSync } from "node:fs";
5381
5381
  import { join as join13, basename as basename3, extname as extname3, resolve as resolve12 } from "node:path";
5382
5382
  import { homedir as homedir5 } from "node:os";
@@ -5407,8 +5407,8 @@ async function loadTranscribeCli() {
5407
5407
  const nvmBase = join13(homedir5(), ".nvm", "versions", "node");
5408
5408
  if (existsSync10(nvmBase)) {
5409
5409
  try {
5410
- const { readdirSync: readdirSync9 } = await import("node:fs");
5411
- for (const ver of readdirSync9(nvmBase)) {
5410
+ const { readdirSync: readdirSync10 } = await import("node:fs");
5411
+ for (const ver of readdirSync10(nvmBase)) {
5412
5412
  const tcPath = join13(nvmBase, ver, "lib", "node_modules", "transcribe-cli");
5413
5413
  if (existsSync10(join13(tcPath, "dist", "index.js"))) {
5414
5414
  const { createRequire: createRequire4 } = await import("node:module");
@@ -5429,7 +5429,7 @@ function formatTime(seconds) {
5429
5429
  }
5430
5430
  var AUDIO_EXTS, VIDEO_EXTS, _tcModule, _tcChecked, TranscribeFileTool, TranscribeUrlTool;
5431
5431
  var init_transcribe_tool = __esm({
5432
- "packages/execution/dist/tools/transcribe-tool.js"() {
5432
+ "../packages/execution/dist/tools/transcribe-tool.js"() {
5433
5433
  "use strict";
5434
5434
  AUDIO_EXTS = /* @__PURE__ */ new Set([
5435
5435
  ".mp3",
@@ -5670,7 +5670,7 @@ ${result.output}`,
5670
5670
  }
5671
5671
  });
5672
5672
 
5673
- // packages/execution/dist/tools/structured-file.js
5673
+ // ../packages/execution/dist/tools/structured-file.js
5674
5674
  import { writeFile as writeFile6, mkdir as mkdir3 } from "node:fs/promises";
5675
5675
  import { resolve as resolve13, dirname as dirname3, extname as extname4 } from "node:path";
5676
5676
  function jsonToCSV(data, separator = ",") {
@@ -5707,7 +5707,7 @@ function jsonToMarkdownTable(data) {
5707
5707
  }
5708
5708
  var StructuredFileTool;
5709
5709
  var init_structured_file = __esm({
5710
- "packages/execution/dist/tools/structured-file.js"() {
5710
+ "../packages/execution/dist/tools/structured-file.js"() {
5711
5711
  "use strict";
5712
5712
  StructuredFileTool = class {
5713
5713
  name = "create_structured_file";
@@ -5850,7 +5850,7 @@ var init_structured_file = __esm({
5850
5850
  }
5851
5851
  });
5852
5852
 
5853
- // packages/execution/dist/tools/code-sandbox.js
5853
+ // ../packages/execution/dist/tools/code-sandbox.js
5854
5854
  import { spawn as spawn5 } from "node:child_process";
5855
5855
  import { writeFile as writeFile7, mkdtemp, rm, readdir, stat } from "node:fs/promises";
5856
5856
  import { join as join14 } from "node:path";
@@ -5931,7 +5931,7 @@ async function listCreatedFiles(dir) {
5931
5931
  }
5932
5932
  var LANGUAGE_CONFIG, CodeSandboxTool;
5933
5933
  var init_code_sandbox = __esm({
5934
- "packages/execution/dist/tools/code-sandbox.js"() {
5934
+ "../packages/execution/dist/tools/code-sandbox.js"() {
5935
5935
  "use strict";
5936
5936
  LANGUAGE_CONFIG = {
5937
5937
  javascript: { ext: ".js", cmd: "node", args: (f) => [f] },
@@ -6103,7 +6103,7 @@ ${result.filesCreated.join("\n")}`);
6103
6103
  }
6104
6104
  });
6105
6105
 
6106
- // packages/execution/dist/tools/structured-read.js
6106
+ // ../packages/execution/dist/tools/structured-read.js
6107
6107
  import { readFile as readFile7, stat as stat2 } from "node:fs/promises";
6108
6108
  import { resolve as resolve14, extname as extname5 } from "node:path";
6109
6109
  function parseCSV(text, separator = ",") {
@@ -6211,7 +6211,7 @@ function detectBinaryFormat(buffer) {
6211
6211
  }
6212
6212
  var StructuredReadTool;
6213
6213
  var init_structured_read = __esm({
6214
- "packages/execution/dist/tools/structured-read.js"() {
6214
+ "../packages/execution/dist/tools/structured-read.js"() {
6215
6215
  "use strict";
6216
6216
  StructuredReadTool = class {
6217
6217
  name = "read_structured_file";
@@ -6438,7 +6438,7 @@ ${parts.join("\n\n")}`,
6438
6438
  }
6439
6439
  });
6440
6440
 
6441
- // packages/execution/dist/tools/vision.js
6441
+ // ../packages/execution/dist/tools/vision.js
6442
6442
  import { readFileSync as readFileSync10, existsSync as existsSync11, statSync as statSync5 } from "node:fs";
6443
6443
  import { execSync as execSync10, spawn as spawn6 } from "node:child_process";
6444
6444
  import { resolve as resolve15, extname as extname6, basename as basename4, dirname as dirname4, join as join15 } from "node:path";
@@ -6574,7 +6574,7 @@ function loadImageBuffer(workingDir, rawPath) {
6574
6574
  }
6575
6575
  var moondreamClient, moondreamError, stationProcess, IMAGE_EXTENSIONS2, VisionTool;
6576
6576
  var init_vision = __esm({
6577
- "packages/execution/dist/tools/vision.js"() {
6577
+ "../packages/execution/dist/tools/vision.js"() {
6578
6578
  "use strict";
6579
6579
  moondreamClient = null;
6580
6580
  moondreamError = null;
@@ -6740,7 +6740,7 @@ Coordinates are normalized (0-1). Multiply by image width/height for pixel value
6740
6740
  }
6741
6741
  });
6742
6742
 
6743
- // packages/execution/dist/tools/desktop-click.js
6743
+ // ../packages/execution/dist/tools/desktop-click.js
6744
6744
  import { readFileSync as readFileSync11, existsSync as existsSync12 } from "node:fs";
6745
6745
  import { execSync as execSync11 } from "node:child_process";
6746
6746
  import { tmpdir as tmpdir3 } from "node:os";
@@ -6893,7 +6893,7 @@ for i in range(${clicks}):
6893
6893
  }
6894
6894
  var __dirname, DesktopClickTool, DesktopDescribeTool;
6895
6895
  var init_desktop_click = __esm({
6896
- "packages/execution/dist/tools/desktop-click.js"() {
6896
+ "../packages/execution/dist/tools/desktop-click.js"() {
6897
6897
  "use strict";
6898
6898
  init_system_deps();
6899
6899
  __dirname = dirname5(fileURLToPath2(import.meta.url));
@@ -7116,71 +7116,71 @@ Screen: ${dims.width}x${dims.height}`);
7116
7116
  }
7117
7117
  });
7118
7118
 
7119
- // packages/execution/dist/shellRunner.js
7119
+ // ../packages/execution/dist/shellRunner.js
7120
7120
  var init_shellRunner = __esm({
7121
- "packages/execution/dist/shellRunner.js"() {
7121
+ "../packages/execution/dist/shellRunner.js"() {
7122
7122
  "use strict";
7123
7123
  }
7124
7124
  });
7125
7125
 
7126
- // packages/execution/dist/gitWorktree.js
7126
+ // ../packages/execution/dist/gitWorktree.js
7127
7127
  var init_gitWorktree = __esm({
7128
- "packages/execution/dist/gitWorktree.js"() {
7128
+ "../packages/execution/dist/gitWorktree.js"() {
7129
7129
  "use strict";
7130
7130
  init_shellRunner();
7131
7131
  }
7132
7132
  });
7133
7133
 
7134
- // packages/execution/dist/patchApplier.js
7134
+ // ../packages/execution/dist/patchApplier.js
7135
7135
  var init_patchApplier = __esm({
7136
- "packages/execution/dist/patchApplier.js"() {
7136
+ "../packages/execution/dist/patchApplier.js"() {
7137
7137
  "use strict";
7138
7138
  }
7139
7139
  });
7140
7140
 
7141
- // packages/execution/dist/formatterRunner.js
7141
+ // ../packages/execution/dist/formatterRunner.js
7142
7142
  var init_formatterRunner = __esm({
7143
- "packages/execution/dist/formatterRunner.js"() {
7143
+ "../packages/execution/dist/formatterRunner.js"() {
7144
7144
  "use strict";
7145
7145
  init_shellRunner();
7146
7146
  }
7147
7147
  });
7148
7148
 
7149
- // packages/execution/dist/linterRunner.js
7149
+ // ../packages/execution/dist/linterRunner.js
7150
7150
  var init_linterRunner = __esm({
7151
- "packages/execution/dist/linterRunner.js"() {
7151
+ "../packages/execution/dist/linterRunner.js"() {
7152
7152
  "use strict";
7153
7153
  init_shellRunner();
7154
7154
  }
7155
7155
  });
7156
7156
 
7157
- // packages/execution/dist/typecheckRunner.js
7157
+ // ../packages/execution/dist/typecheckRunner.js
7158
7158
  var init_typecheckRunner = __esm({
7159
- "packages/execution/dist/typecheckRunner.js"() {
7159
+ "../packages/execution/dist/typecheckRunner.js"() {
7160
7160
  "use strict";
7161
7161
  init_shellRunner();
7162
7162
  }
7163
7163
  });
7164
7164
 
7165
- // packages/execution/dist/testRunner.js
7165
+ // ../packages/execution/dist/testRunner.js
7166
7166
  var init_testRunner = __esm({
7167
- "packages/execution/dist/testRunner.js"() {
7167
+ "../packages/execution/dist/testRunner.js"() {
7168
7168
  "use strict";
7169
7169
  init_shellRunner();
7170
7170
  }
7171
7171
  });
7172
7172
 
7173
- // packages/execution/dist/buildRunner.js
7173
+ // ../packages/execution/dist/buildRunner.js
7174
7174
  var init_buildRunner = __esm({
7175
- "packages/execution/dist/buildRunner.js"() {
7175
+ "../packages/execution/dist/buildRunner.js"() {
7176
7176
  "use strict";
7177
7177
  init_shellRunner();
7178
7178
  }
7179
7179
  });
7180
7180
 
7181
- // packages/execution/dist/validationPipeline.js
7181
+ // ../packages/execution/dist/validationPipeline.js
7182
7182
  var init_validationPipeline = __esm({
7183
- "packages/execution/dist/validationPipeline.js"() {
7183
+ "../packages/execution/dist/validationPipeline.js"() {
7184
7184
  "use strict";
7185
7185
  init_formatterRunner();
7186
7186
  init_linterRunner();
@@ -7190,9 +7190,9 @@ var init_validationPipeline = __esm({
7190
7190
  }
7191
7191
  });
7192
7192
 
7193
- // packages/execution/dist/index.js
7193
+ // ../packages/execution/dist/index.js
7194
7194
  var init_dist2 = __esm({
7195
- "packages/execution/dist/index.js"() {
7195
+ "../packages/execution/dist/index.js"() {
7196
7196
  "use strict";
7197
7197
  init_tool_executor();
7198
7198
  init_shell();
@@ -7238,9 +7238,9 @@ var init_dist2 = __esm({
7238
7238
  }
7239
7239
  });
7240
7240
 
7241
- // packages/orchestrator/dist/agent-loop.js
7241
+ // ../packages/orchestrator/dist/agent-loop.js
7242
7242
  var init_agent_loop = __esm({
7243
- "packages/orchestrator/dist/agent-loop.js"() {
7243
+ "../packages/orchestrator/dist/agent-loop.js"() {
7244
7244
  "use strict";
7245
7245
  init_dist();
7246
7246
  init_dist2();
@@ -7248,11 +7248,11 @@ var init_agent_loop = __esm({
7248
7248
  }
7249
7249
  });
7250
7250
 
7251
- // packages/schemas/dist/messages.js
7251
+ // ../packages/schemas/dist/messages.js
7252
7252
  import { z } from "zod";
7253
7253
  var AgentMessageSchema;
7254
7254
  var init_messages = __esm({
7255
- "packages/schemas/dist/messages.js"() {
7255
+ "../packages/schemas/dist/messages.js"() {
7256
7256
  "use strict";
7257
7257
  AgentMessageSchema = z.object({
7258
7258
  id: z.string().uuid(),
@@ -7265,11 +7265,11 @@ var init_messages = __esm({
7265
7265
  }
7266
7266
  });
7267
7267
 
7268
- // packages/schemas/dist/tools.js
7268
+ // ../packages/schemas/dist/tools.js
7269
7269
  import { z as z2 } from "zod";
7270
7270
  var ToolCallSchema;
7271
7271
  var init_tools = __esm({
7272
- "packages/schemas/dist/tools.js"() {
7272
+ "../packages/schemas/dist/tools.js"() {
7273
7273
  "use strict";
7274
7274
  ToolCallSchema = z2.object({
7275
7275
  id: z2.string().uuid(),
@@ -7283,11 +7283,11 @@ var init_tools = __esm({
7283
7283
  }
7284
7284
  });
7285
7285
 
7286
- // packages/schemas/dist/session.js
7286
+ // ../packages/schemas/dist/session.js
7287
7287
  import { z as z3 } from "zod";
7288
7288
  var SessionSchema;
7289
7289
  var init_session = __esm({
7290
- "packages/schemas/dist/session.js"() {
7290
+ "../packages/schemas/dist/session.js"() {
7291
7291
  "use strict";
7292
7292
  SessionSchema = z3.object({
7293
7293
  id: z3.string().uuid(),
@@ -7301,11 +7301,11 @@ var init_session = __esm({
7301
7301
  }
7302
7302
  });
7303
7303
 
7304
- // packages/schemas/dist/task.js
7304
+ // ../packages/schemas/dist/task.js
7305
7305
  import { z as z4 } from "zod";
7306
7306
  var TaskClassSchema, UrgencySchema, NormalizedTaskSchema, TaskStatusSchema;
7307
7307
  var init_task = __esm({
7308
- "packages/schemas/dist/task.js"() {
7308
+ "../packages/schemas/dist/task.js"() {
7309
7309
  "use strict";
7310
7310
  TaskClassSchema = z4.enum([
7311
7311
  "bugfix",
@@ -7350,11 +7350,11 @@ var init_task = __esm({
7350
7350
  }
7351
7351
  });
7352
7352
 
7353
- // packages/schemas/dist/plan.js
7353
+ // ../packages/schemas/dist/plan.js
7354
7354
  import { z as z5 } from "zod";
7355
7355
  var SubtaskKindSchema, SubtaskSchema, PlanSchema;
7356
7356
  var init_plan = __esm({
7357
- "packages/schemas/dist/plan.js"() {
7357
+ "../packages/schemas/dist/plan.js"() {
7358
7358
  "use strict";
7359
7359
  SubtaskKindSchema = z5.enum([
7360
7360
  "inspect",
@@ -7388,11 +7388,11 @@ var init_plan = __esm({
7388
7388
  }
7389
7389
  });
7390
7390
 
7391
- // packages/schemas/dist/patch.js
7391
+ // ../packages/schemas/dist/patch.js
7392
7392
  import { z as z6 } from "zod";
7393
7393
  var EditOperationSchema, FileEditSchema, NeedsMoreContextSchema, PatchProposalSchema;
7394
7394
  var init_patch = __esm({
7395
- "packages/schemas/dist/patch.js"() {
7395
+ "../packages/schemas/dist/patch.js"() {
7396
7396
  "use strict";
7397
7397
  EditOperationSchema = z6.enum([
7398
7398
  "diff",
@@ -7431,11 +7431,11 @@ var init_patch = __esm({
7431
7431
  }
7432
7432
  });
7433
7433
 
7434
- // packages/schemas/dist/verification.js
7434
+ // ../packages/schemas/dist/verification.js
7435
7435
  import { z as z7 } from "zod";
7436
7436
  var VerificationStatusSchema, VerificationNextActionSchema, VerificationDecisionSchema;
7437
7437
  var init_verification = __esm({
7438
- "packages/schemas/dist/verification.js"() {
7438
+ "../packages/schemas/dist/verification.js"() {
7439
7439
  "use strict";
7440
7440
  VerificationStatusSchema = z7.enum(["pass", "fail", "partial"]);
7441
7441
  VerificationNextActionSchema = z7.enum([
@@ -7460,11 +7460,11 @@ var init_verification = __esm({
7460
7460
  }
7461
7461
  });
7462
7462
 
7463
- // packages/schemas/dist/repoProfile.js
7463
+ // ../packages/schemas/dist/repoProfile.js
7464
7464
  import { z as z8 } from "zod";
7465
7465
  var LanguageSchema, PackageManagerSchema, BuildSystemSchema, MigrationSystemSchema, RepoProfileSchema;
7466
7466
  var init_repoProfile = __esm({
7467
- "packages/schemas/dist/repoProfile.js"() {
7467
+ "../packages/schemas/dist/repoProfile.js"() {
7468
7468
  "use strict";
7469
7469
  LanguageSchema = z8.enum([
7470
7470
  "typescript",
@@ -7542,11 +7542,11 @@ var init_repoProfile = __esm({
7542
7542
  }
7543
7543
  });
7544
7544
 
7545
- // packages/schemas/dist/retrieval.js
7545
+ // ../packages/schemas/dist/retrieval.js
7546
7546
  import { z as z9 } from "zod";
7547
7547
  var RetrievalRequestSchema, SnippetSchema, RetrievalPacketSchema;
7548
7548
  var init_retrieval = __esm({
7549
- "packages/schemas/dist/retrieval.js"() {
7549
+ "../packages/schemas/dist/retrieval.js"() {
7550
7550
  "use strict";
7551
7551
  RetrievalRequestSchema = z9.object({
7552
7552
  /** Natural language description of what information is needed */
@@ -7594,11 +7594,11 @@ var init_retrieval = __esm({
7594
7594
  }
7595
7595
  });
7596
7596
 
7597
- // packages/schemas/dist/dispatch.js
7597
+ // ../packages/schemas/dist/dispatch.js
7598
7598
  import { z as z10 } from "zod";
7599
7599
  var DispatchModeSchema, TaskComplexitySchema, AgentRoleSchema, BudgetsSchema, DispatchDecisionSchema;
7600
7600
  var init_dispatch = __esm({
7601
- "packages/schemas/dist/dispatch.js"() {
7601
+ "../packages/schemas/dist/dispatch.js"() {
7602
7602
  "use strict";
7603
7603
  DispatchModeSchema = z10.enum([
7604
7604
  "single_pass",
@@ -7632,11 +7632,11 @@ var init_dispatch = __esm({
7632
7632
  }
7633
7633
  });
7634
7634
 
7635
- // packages/schemas/dist/memory.js
7635
+ // ../packages/schemas/dist/memory.js
7636
7636
  import { z as z11 } from "zod";
7637
7637
  var RiskLevelSchema, FileSummarySchema, FailureCategorySchema, FailureFingerprintSchema, TaskMemorySchema;
7638
7638
  var init_memory = __esm({
7639
- "packages/schemas/dist/memory.js"() {
7639
+ "../packages/schemas/dist/memory.js"() {
7640
7640
  "use strict";
7641
7641
  RiskLevelSchema = z11.enum(["low", "medium", "high", "critical"]);
7642
7642
  FileSummarySchema = z11.object({
@@ -7712,11 +7712,11 @@ var init_memory = __esm({
7712
7712
  }
7713
7713
  });
7714
7714
 
7715
- // packages/schemas/dist/backend.js
7715
+ // ../packages/schemas/dist/backend.js
7716
7716
  import { z as z12 } from "zod";
7717
7717
  var MessageRoleSchema, ChatMessageSchema, CompletionRequestSchema, TokenUsageSchema, CompletionResponseSchema, StructuredCompletionRequestSchema, BackendHealthSchema, BackendMetricsSchema;
7718
7718
  var init_backend = __esm({
7719
- "packages/schemas/dist/backend.js"() {
7719
+ "../packages/schemas/dist/backend.js"() {
7720
7720
  "use strict";
7721
7721
  MessageRoleSchema = z12.enum([
7722
7722
  "system",
@@ -7801,11 +7801,11 @@ var init_backend = __esm({
7801
7801
  }
7802
7802
  });
7803
7803
 
7804
- // packages/schemas/dist/config.js
7804
+ // ../packages/schemas/dist/config.js
7805
7805
  import { z as z13 } from "zod";
7806
7806
  var AgentConfigSchema;
7807
7807
  var init_config2 = __esm({
7808
- "packages/schemas/dist/config.js"() {
7808
+ "../packages/schemas/dist/config.js"() {
7809
7809
  "use strict";
7810
7810
  AgentConfigSchema = z13.object({
7811
7811
  // -----------------------------------------------------------------------
@@ -7864,11 +7864,11 @@ var init_config2 = __esm({
7864
7864
  }
7865
7865
  });
7866
7866
 
7867
- // packages/schemas/dist/queue.js
7867
+ // ../packages/schemas/dist/queue.js
7868
7868
  import { z as z14 } from "zod";
7869
7869
  var QueueClassSchema;
7870
7870
  var init_queue = __esm({
7871
- "packages/schemas/dist/queue.js"() {
7871
+ "../packages/schemas/dist/queue.js"() {
7872
7872
  "use strict";
7873
7873
  QueueClassSchema = z14.enum([
7874
7874
  /** CLI and direct user-facing requests; lowest latency target */
@@ -7887,9 +7887,9 @@ var init_queue = __esm({
7887
7887
  }
7888
7888
  });
7889
7889
 
7890
- // packages/schemas/dist/index.js
7890
+ // ../packages/schemas/dist/index.js
7891
7891
  var init_dist3 = __esm({
7892
- "packages/schemas/dist/index.js"() {
7892
+ "../packages/schemas/dist/index.js"() {
7893
7893
  "use strict";
7894
7894
  init_messages();
7895
7895
  init_tools();
@@ -7908,7 +7908,7 @@ var init_dist3 = __esm({
7908
7908
  }
7909
7909
  });
7910
7910
 
7911
- // packages/orchestrator/dist/taskNormalizer.js
7911
+ // ../packages/orchestrator/dist/taskNormalizer.js
7912
7912
  function parseJsonFromContent(content) {
7913
7913
  const fencedMatch = content.match(/```(?:json)?\s*([\s\S]*?)```/);
7914
7914
  const raw = fencedMatch ? fencedMatch[1] : content;
@@ -7945,7 +7945,7 @@ ${rawRequest}`;
7945
7945
  }
7946
7946
  var TaskNormalizer;
7947
7947
  var init_taskNormalizer = __esm({
7948
- "packages/orchestrator/dist/taskNormalizer.js"() {
7948
+ "../packages/orchestrator/dist/taskNormalizer.js"() {
7949
7949
  "use strict";
7950
7950
  init_dist3();
7951
7951
  TaskNormalizer = class {
@@ -7996,7 +7996,7 @@ var init_taskNormalizer = __esm({
7996
7996
  }
7997
7997
  });
7998
7998
 
7999
- // packages/orchestrator/dist/dispatcher.js
7999
+ // ../packages/orchestrator/dist/dispatcher.js
8000
8000
  function estimateComplexity(task) {
8001
8001
  const text = `${task.goal} ${task.constraints.join(" ")} ${task.successCriteria.join(" ")}`;
8002
8002
  const wordCount = text.split(/\s+/).length;
@@ -8086,7 +8086,7 @@ function parseJsonFromContent2(content) {
8086
8086
  }
8087
8087
  var Dispatcher;
8088
8088
  var init_dispatcher = __esm({
8089
- "packages/orchestrator/dist/dispatcher.js"() {
8089
+ "../packages/orchestrator/dist/dispatcher.js"() {
8090
8090
  "use strict";
8091
8091
  init_dist3();
8092
8092
  Dispatcher = class {
@@ -8145,7 +8145,7 @@ var init_dispatcher = __esm({
8145
8145
  }
8146
8146
  });
8147
8147
 
8148
- // packages/orchestrator/dist/plannerRunner.js
8148
+ // ../packages/orchestrator/dist/plannerRunner.js
8149
8149
  function plannerPrompt(task, repoProfile, retrievalPacket) {
8150
8150
  const profileSection = repoProfile ? `REPOSITORY PROFILE:
8151
8151
  ${JSON.stringify(repoProfile, null, 2)}` : "REPOSITORY PROFILE: (not available)";
@@ -8198,7 +8198,7 @@ function parseJsonFromContent3(content) {
8198
8198
  }
8199
8199
  var PlannerRunner;
8200
8200
  var init_plannerRunner = __esm({
8201
- "packages/orchestrator/dist/plannerRunner.js"() {
8201
+ "../packages/orchestrator/dist/plannerRunner.js"() {
8202
8202
  "use strict";
8203
8203
  init_dist3();
8204
8204
  PlannerRunner = class {
@@ -8250,12 +8250,12 @@ var init_plannerRunner = __esm({
8250
8250
  }
8251
8251
  });
8252
8252
 
8253
- // packages/retrieval/dist/grep-search.js
8253
+ // ../packages/retrieval/dist/grep-search.js
8254
8254
  import { execFile as execFile3 } from "node:child_process";
8255
8255
  import { promisify as promisify3 } from "node:util";
8256
8256
  var execFileAsync3, GrepSearch;
8257
8257
  var init_grep_search2 = __esm({
8258
- "packages/retrieval/dist/grep-search.js"() {
8258
+ "../packages/retrieval/dist/grep-search.js"() {
8259
8259
  "use strict";
8260
8260
  execFileAsync3 = promisify3(execFile3);
8261
8261
  GrepSearch = class {
@@ -8312,10 +8312,10 @@ var init_grep_search2 = __esm({
8312
8312
  }
8313
8313
  });
8314
8314
 
8315
- // packages/retrieval/dist/code-retriever.js
8315
+ // ../packages/retrieval/dist/code-retriever.js
8316
8316
  var DEFAULT_CONFIG2, CodeRetriever;
8317
8317
  var init_code_retriever = __esm({
8318
- "packages/retrieval/dist/code-retriever.js"() {
8318
+ "../packages/retrieval/dist/code-retriever.js"() {
8319
8319
  "use strict";
8320
8320
  init_grep_search2();
8321
8321
  DEFAULT_CONFIG2 = {
@@ -8353,7 +8353,7 @@ var init_code_retriever = __esm({
8353
8353
  }
8354
8354
  });
8355
8355
 
8356
- // packages/retrieval/dist/lexicalSearch.js
8356
+ // ../packages/retrieval/dist/lexicalSearch.js
8357
8357
  import { execFile as execFile4 } from "node:child_process";
8358
8358
  import { promisify as promisify4 } from "node:util";
8359
8359
  import { readFile as readFile8, readdir as readdir2, stat as stat3 } from "node:fs/promises";
@@ -8531,7 +8531,7 @@ function matchesGlob(filePath, glob2) {
8531
8531
  }
8532
8532
  var execFileAsync4, DEFAULT_INCLUDE_GLOBS, DEFAULT_EXCLUDE_GLOBS, DEFAULT_MAX_MATCHES, ALWAYS_SKIP, ALL_CODE_EXTS;
8533
8533
  var init_lexicalSearch = __esm({
8534
- "packages/retrieval/dist/lexicalSearch.js"() {
8534
+ "../packages/retrieval/dist/lexicalSearch.js"() {
8535
8535
  "use strict";
8536
8536
  execFileAsync4 = promisify4(execFile4);
8537
8537
  DEFAULT_INCLUDE_GLOBS = ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx", "**/*.py"];
@@ -8542,7 +8542,7 @@ var init_lexicalSearch = __esm({
8542
8542
  }
8543
8543
  });
8544
8544
 
8545
- // packages/retrieval/dist/semanticSearch.js
8545
+ // ../packages/retrieval/dist/semanticSearch.js
8546
8546
  function cosineSimilarity(a, b) {
8547
8547
  if (a.length !== b.length || a.length === 0)
8548
8548
  return 0;
@@ -8570,7 +8570,7 @@ function makePlaceholderSummary(filePath) {
8570
8570
  }
8571
8571
  var StubSemanticSearchEngine, IndexBackedSemanticSearchEngine;
8572
8572
  var init_semanticSearch = __esm({
8573
- "packages/retrieval/dist/semanticSearch.js"() {
8573
+ "../packages/retrieval/dist/semanticSearch.js"() {
8574
8574
  "use strict";
8575
8575
  StubSemanticSearchEngine = class {
8576
8576
  isAvailable = false;
@@ -8607,7 +8607,7 @@ var init_semanticSearch = __esm({
8607
8607
  }
8608
8608
  });
8609
8609
 
8610
- // packages/retrieval/dist/graphExpand.js
8610
+ // ../packages/retrieval/dist/graphExpand.js
8611
8611
  function expandGraph(seeds, graph, opts = {}) {
8612
8612
  const { direction = "both", maxHops = 1, maxNeighbors = 20, includeSeeds = false } = opts;
8613
8613
  const seedSet = new Set(seeds);
@@ -8667,12 +8667,12 @@ function bfsExpand(seeds, adjacency, maxHops, maxNeighbors, excludeSet, result)
8667
8667
  }
8668
8668
  }
8669
8669
  var init_graphExpand = __esm({
8670
- "packages/retrieval/dist/graphExpand.js"() {
8670
+ "../packages/retrieval/dist/graphExpand.js"() {
8671
8671
  "use strict";
8672
8672
  }
8673
8673
  });
8674
8674
 
8675
- // packages/retrieval/dist/snippetPacker.js
8675
+ // ../packages/retrieval/dist/snippetPacker.js
8676
8676
  import { readFile as readFile9 } from "node:fs/promises";
8677
8677
  import { join as join18 } from "node:path";
8678
8678
  async function packSnippets(requests, opts = {}) {
@@ -8735,7 +8735,7 @@ async function packFiles(filePaths, repoRoot, maxTokens = DEFAULT_MAX_TOKENS) {
8735
8735
  }
8736
8736
  var DEFAULT_MAX_TOKENS, DEFAULT_CONTEXT_LINES, CHARS_PER_TOKEN;
8737
8737
  var init_snippetPacker = __esm({
8738
- "packages/retrieval/dist/snippetPacker.js"() {
8738
+ "../packages/retrieval/dist/snippetPacker.js"() {
8739
8739
  "use strict";
8740
8740
  DEFAULT_MAX_TOKENS = 32e3;
8741
8741
  DEFAULT_CONTEXT_LINES = 2;
@@ -8743,7 +8743,7 @@ var init_snippetPacker = __esm({
8743
8743
  }
8744
8744
  });
8745
8745
 
8746
- // packages/retrieval/dist/contextAssembler.js
8746
+ // ../packages/retrieval/dist/contextAssembler.js
8747
8747
  async function assembleContext(request, opts) {
8748
8748
  const { repoRoot, graph, semanticEngine, summaryMap, maxFiles = 8, maxSnippets = 20, maxLogs = 3, maxTokens = 24e3, expandNeighbors = true, architectureNote, priorAttemptNote } = opts;
8749
8749
  const lexOpts = {
@@ -8849,7 +8849,7 @@ function estimatePacketTokens(packet) {
8849
8849
  return fileTokens + snippetTokens;
8850
8850
  }
8851
8851
  var init_contextAssembler = __esm({
8852
- "packages/retrieval/dist/contextAssembler.js"() {
8852
+ "../packages/retrieval/dist/contextAssembler.js"() {
8853
8853
  "use strict";
8854
8854
  init_lexicalSearch();
8855
8855
  init_graphExpand();
@@ -8857,7 +8857,7 @@ var init_contextAssembler = __esm({
8857
8857
  }
8858
8858
  });
8859
8859
 
8860
- // packages/retrieval/dist/index.js
8860
+ // ../packages/retrieval/dist/index.js
8861
8861
  var dist_exports = {};
8862
8862
  __export(dist_exports, {
8863
8863
  CodeRetriever: () => CodeRetriever,
@@ -8879,7 +8879,7 @@ __export(dist_exports, {
8879
8879
  testsForFiles: () => testsForFiles
8880
8880
  });
8881
8881
  var init_dist4 = __esm({
8882
- "packages/retrieval/dist/index.js"() {
8882
+ "../packages/retrieval/dist/index.js"() {
8883
8883
  "use strict";
8884
8884
  init_code_retriever();
8885
8885
  init_grep_search2();
@@ -8891,7 +8891,7 @@ var init_dist4 = __esm({
8891
8891
  }
8892
8892
  });
8893
8893
 
8894
- // packages/orchestrator/dist/scoutRunner.js
8894
+ // ../packages/orchestrator/dist/scoutRunner.js
8895
8895
  async function loadCodeRetriever(rootDir) {
8896
8896
  const mod = await Promise.resolve().then(() => (init_dist4(), dist_exports));
8897
8897
  return new mod.CodeRetriever({ rootDir });
@@ -8955,7 +8955,7 @@ RULES:
8955
8955
  }
8956
8956
  var ScoutRunner;
8957
8957
  var init_scoutRunner = __esm({
8958
- "packages/orchestrator/dist/scoutRunner.js"() {
8958
+ "../packages/orchestrator/dist/scoutRunner.js"() {
8959
8959
  "use strict";
8960
8960
  init_dist3();
8961
8961
  ScoutRunner = class {
@@ -9060,7 +9060,7 @@ var init_scoutRunner = __esm({
9060
9060
  }
9061
9061
  });
9062
9062
 
9063
- // packages/orchestrator/dist/editorRunner.js
9063
+ // ../packages/orchestrator/dist/editorRunner.js
9064
9064
  function editorPrompt(task, subtask, retrievalPacket, previousVerification, retryNumber) {
9065
9065
  const filesSection = Object.entries(retrievalPacket.files).map(([path, content]) => `=== ${path} ===
9066
9066
  ${content}`).join("\n\n");
@@ -9126,7 +9126,7 @@ function parseJsonFromContent5(content) {
9126
9126
  }
9127
9127
  var EditorRunner;
9128
9128
  var init_editorRunner = __esm({
9129
- "packages/orchestrator/dist/editorRunner.js"() {
9129
+ "../packages/orchestrator/dist/editorRunner.js"() {
9130
9130
  "use strict";
9131
9131
  init_dist3();
9132
9132
  EditorRunner = class {
@@ -9183,7 +9183,7 @@ var init_editorRunner = __esm({
9183
9183
  }
9184
9184
  });
9185
9185
 
9186
- // packages/orchestrator/dist/verifierRunner.js
9186
+ // ../packages/orchestrator/dist/verifierRunner.js
9187
9187
  function verifierPrompt(task, subtask, patch, toolOutput) {
9188
9188
  const toolSection = toolOutput ? `TOOL EXECUTION OUTPUT:
9189
9189
  ${toolOutput}` : "TOOL EXECUTION OUTPUT: (not executed)";
@@ -9237,7 +9237,7 @@ function parseJsonFromContent6(content) {
9237
9237
  }
9238
9238
  var VerifierRunner;
9239
9239
  var init_verifierRunner = __esm({
9240
- "packages/orchestrator/dist/verifierRunner.js"() {
9240
+ "../packages/orchestrator/dist/verifierRunner.js"() {
9241
9241
  "use strict";
9242
9242
  init_dist3();
9243
9243
  VerifierRunner = class {
@@ -9331,10 +9331,10 @@ FAILED: ${execError.stderr ?? execError.stdout ?? execError.message ?? "unknown
9331
9331
  }
9332
9332
  });
9333
9333
 
9334
- // packages/orchestrator/dist/mergeRunner.js
9334
+ // ../packages/orchestrator/dist/mergeRunner.js
9335
9335
  var MergeRunner;
9336
9336
  var init_mergeRunner = __esm({
9337
- "packages/orchestrator/dist/mergeRunner.js"() {
9337
+ "../packages/orchestrator/dist/mergeRunner.js"() {
9338
9338
  "use strict";
9339
9339
  MergeRunner = class {
9340
9340
  backend;
@@ -9420,10 +9420,10 @@ Write a concise developer-facing merge summary. No JSON, just plain text.`;
9420
9420
  }
9421
9421
  });
9422
9422
 
9423
- // packages/orchestrator/dist/retryController.js
9423
+ // ../packages/orchestrator/dist/retryController.js
9424
9424
  var RetryController;
9425
9425
  var init_retryController = __esm({
9426
- "packages/orchestrator/dist/retryController.js"() {
9426
+ "../packages/orchestrator/dist/retryController.js"() {
9427
9427
  "use strict";
9428
9428
  RetryController = class {
9429
9429
  maxRetries;
@@ -9520,7 +9520,7 @@ var init_retryController = __esm({
9520
9520
  }
9521
9521
  });
9522
9522
 
9523
- // packages/orchestrator/dist/ralphLoop.js
9523
+ // ../packages/orchestrator/dist/ralphLoop.js
9524
9524
  function isoNow() {
9525
9525
  return (/* @__PURE__ */ new Date()).toISOString();
9526
9526
  }
@@ -9568,7 +9568,7 @@ function deriveTerminalStatus(executions) {
9568
9568
  }
9569
9569
  var RalphLoop;
9570
9570
  var init_ralphLoop = __esm({
9571
- "packages/orchestrator/dist/ralphLoop.js"() {
9571
+ "../packages/orchestrator/dist/ralphLoop.js"() {
9572
9572
  "use strict";
9573
9573
  init_taskNormalizer();
9574
9574
  init_dispatcher();
@@ -9851,10 +9851,10 @@ var init_ralphLoop = __esm({
9851
9851
  }
9852
9852
  });
9853
9853
 
9854
- // packages/orchestrator/dist/agenticRunner.js
9854
+ // ../packages/orchestrator/dist/agenticRunner.js
9855
9855
  var SYSTEM_PROMPT, AgenticRunner, OllamaAgenticBackend;
9856
9856
  var init_agenticRunner = __esm({
9857
- "packages/orchestrator/dist/agenticRunner.js"() {
9857
+ "../packages/orchestrator/dist/agenticRunner.js"() {
9858
9858
  "use strict";
9859
9859
  init_dist();
9860
9860
  SYSTEM_PROMPT = `You are Open Agent, an expert coding assistant that works iteratively using tools. You solve coding tasks by exploring code, making precise changes, and validating results through test execution.
@@ -11205,10 +11205,10 @@ ${newerSummary}` : newerSummary;
11205
11205
  }
11206
11206
  });
11207
11207
 
11208
- // packages/orchestrator/dist/costTracker.js
11208
+ // ../packages/orchestrator/dist/costTracker.js
11209
11209
  var DEFAULT_PRICING, CostTracker;
11210
11210
  var init_costTracker = __esm({
11211
- "packages/orchestrator/dist/costTracker.js"() {
11211
+ "../packages/orchestrator/dist/costTracker.js"() {
11212
11212
  "use strict";
11213
11213
  DEFAULT_PRICING = [
11214
11214
  // Cloud providers — typical pricing tiers
@@ -11356,7 +11356,7 @@ var init_costTracker = __esm({
11356
11356
  }
11357
11357
  });
11358
11358
 
11359
- // packages/orchestrator/dist/workEvaluator.js
11359
+ // ../packages/orchestrator/dist/workEvaluator.js
11360
11360
  function detectTaskType(taskDescription) {
11361
11361
  let bestType = "general";
11362
11362
  let bestScore = 0;
@@ -11411,7 +11411,7 @@ Respond with ONLY the JSON object, no other text.`;
11411
11411
  }
11412
11412
  var RUBRICS, TASK_TYPE_PATTERNS, WorkEvaluator;
11413
11413
  var init_workEvaluator = __esm({
11414
- "packages/orchestrator/dist/workEvaluator.js"() {
11414
+ "../packages/orchestrator/dist/workEvaluator.js"() {
11415
11415
  "use strict";
11416
11416
  RUBRICS = {
11417
11417
  code: {
@@ -11581,10 +11581,10 @@ var init_workEvaluator = __esm({
11581
11581
  }
11582
11582
  });
11583
11583
 
11584
- // packages/orchestrator/dist/sessionMetrics.js
11584
+ // ../packages/orchestrator/dist/sessionMetrics.js
11585
11585
  var SessionMetrics;
11586
11586
  var init_sessionMetrics = __esm({
11587
- "packages/orchestrator/dist/sessionMetrics.js"() {
11587
+ "../packages/orchestrator/dist/sessionMetrics.js"() {
11588
11588
  "use strict";
11589
11589
  SessionMetrics = class {
11590
11590
  sessionStart;
@@ -11681,16 +11681,16 @@ var init_sessionMetrics = __esm({
11681
11681
  }
11682
11682
  });
11683
11683
 
11684
- // packages/orchestrator/dist/taskLearning.js
11684
+ // ../packages/orchestrator/dist/taskLearning.js
11685
11685
  var init_taskLearning = __esm({
11686
- "packages/orchestrator/dist/taskLearning.js"() {
11686
+ "../packages/orchestrator/dist/taskLearning.js"() {
11687
11687
  "use strict";
11688
11688
  }
11689
11689
  });
11690
11690
 
11691
- // packages/orchestrator/dist/index.js
11691
+ // ../packages/orchestrator/dist/index.js
11692
11692
  var init_dist5 = __esm({
11693
- "packages/orchestrator/dist/index.js"() {
11693
+ "../packages/orchestrator/dist/index.js"() {
11694
11694
  "use strict";
11695
11695
  init_agent_loop();
11696
11696
  init_ralphLoop();
@@ -11710,12 +11710,14 @@ var init_dist5 = __esm({
11710
11710
  }
11711
11711
  });
11712
11712
 
11713
- // packages/cli/dist/tui/listen.js
11713
+ // ../packages/cli/dist/tui/listen.js
11714
11714
  import { spawn as spawn7, execSync as execSync12 } from "node:child_process";
11715
- import { existsSync as existsSync13, mkdirSync as mkdirSync5, writeFileSync as writeFileSync5 } from "node:fs";
11716
- import { join as join19 } from "node:path";
11715
+ import { existsSync as existsSync13, mkdirSync as mkdirSync5, writeFileSync as writeFileSync5, readdirSync as readdirSync6 } from "node:fs";
11716
+ import { join as join19, dirname as dirname6 } from "node:path";
11717
11717
  import { homedir as homedir6 } from "node:os";
11718
+ import { fileURLToPath as fileURLToPath3 } from "node:url";
11718
11719
  import { EventEmitter } from "node:events";
11720
+ import { createInterface as createInterface2 } from "node:readline";
11719
11721
  function isAudioPath(path) {
11720
11722
  const ext = path.toLowerCase().split(".").pop();
11721
11723
  return ext ? AUDIO_EXTENSIONS.has(`.${ext}`) : false;
@@ -11794,6 +11796,49 @@ function findMicCaptureCommand() {
11794
11796
  }
11795
11797
  return null;
11796
11798
  }
11799
+ function findLiveWhisperScript() {
11800
+ const thisDir = dirname6(fileURLToPath3(import.meta.url));
11801
+ const candidates = [
11802
+ join19(thisDir, "../../../../packages/execution/scripts/live-whisper.py"),
11803
+ join19(thisDir, "../../../packages/execution/scripts/live-whisper.py"),
11804
+ join19(thisDir, "../../execution/scripts/live-whisper.py"),
11805
+ // npm install layout — scripts bundled alongside dist
11806
+ join19(thisDir, "../scripts/live-whisper.py"),
11807
+ join19(thisDir, "../../scripts/live-whisper.py")
11808
+ ];
11809
+ for (const p of candidates) {
11810
+ if (existsSync13(p))
11811
+ return p;
11812
+ }
11813
+ try {
11814
+ const globalRoot = execSync12("npm root -g", {
11815
+ encoding: "utf-8",
11816
+ timeout: 5e3,
11817
+ stdio: ["pipe", "pipe", "pipe"]
11818
+ }).trim();
11819
+ const candidates2 = [
11820
+ join19(globalRoot, "open-agents-ai", "dist", "scripts", "live-whisper.py"),
11821
+ join19(globalRoot, "open-agents-ai", "scripts", "live-whisper.py")
11822
+ ];
11823
+ for (const p of candidates2) {
11824
+ if (existsSync13(p))
11825
+ return p;
11826
+ }
11827
+ } catch {
11828
+ }
11829
+ const nvmBase = join19(homedir6(), ".nvm", "versions", "node");
11830
+ if (existsSync13(nvmBase)) {
11831
+ try {
11832
+ for (const ver of readdirSync6(nvmBase)) {
11833
+ const p = join19(nvmBase, ver, "lib", "node_modules", "open-agents-ai", "dist", "scripts", "live-whisper.py");
11834
+ if (existsSync13(p))
11835
+ return p;
11836
+ }
11837
+ } catch {
11838
+ }
11839
+ }
11840
+ return null;
11841
+ }
11797
11842
  function ensureTranscribeCliBackground() {
11798
11843
  if (_bgInstallPromise)
11799
11844
  return;
@@ -11827,9 +11872,9 @@ function getListenEngine(config) {
11827
11872
  }
11828
11873
  return _engine;
11829
11874
  }
11830
- var AUDIO_EXTENSIONS, VIDEO_EXTENSIONS, ListenEngine, _bgInstallPromise, _engine;
11875
+ var AUDIO_EXTENSIONS, VIDEO_EXTENSIONS, WhisperFallbackTranscriber, ListenEngine, _bgInstallPromise, _engine;
11831
11876
  var init_listen = __esm({
11832
- "packages/cli/dist/tui/listen.js"() {
11877
+ "../packages/cli/dist/tui/listen.js"() {
11833
11878
  "use strict";
11834
11879
  AUDIO_EXTENSIONS = /* @__PURE__ */ new Set([
11835
11880
  ".mp3",
@@ -11852,11 +11897,104 @@ var init_listen = __esm({
11852
11897
  ".m4v",
11853
11898
  ".ts"
11854
11899
  ]);
11900
+ WhisperFallbackTranscriber = class extends EventEmitter {
11901
+ model;
11902
+ scriptPath;
11903
+ process = null;
11904
+ _ready = false;
11905
+ constructor(model, scriptPath2) {
11906
+ super();
11907
+ this.model = model;
11908
+ this.scriptPath = scriptPath2;
11909
+ }
11910
+ get ready() {
11911
+ return this._ready;
11912
+ }
11913
+ async start() {
11914
+ return new Promise((resolve19, reject) => {
11915
+ const timeout = setTimeout(() => {
11916
+ reject(new Error("Whisper fallback: model load timeout (5 min). First run downloads the model."));
11917
+ }, 3e5);
11918
+ this.process = spawn7("python3", [
11919
+ this.scriptPath,
11920
+ "--model",
11921
+ this.model,
11922
+ "--chunk-seconds",
11923
+ "3",
11924
+ "--window-seconds",
11925
+ "10"
11926
+ ], {
11927
+ stdio: ["pipe", "pipe", "pipe"],
11928
+ env: { ...process.env }
11929
+ });
11930
+ const rl = createInterface2({ input: this.process.stdout });
11931
+ rl.on("line", (line) => {
11932
+ try {
11933
+ const evt = JSON.parse(line);
11934
+ switch (evt.type) {
11935
+ case "status":
11936
+ this.emit("status", evt.message);
11937
+ break;
11938
+ case "ready":
11939
+ this._ready = true;
11940
+ clearTimeout(timeout);
11941
+ this.emit("ready");
11942
+ resolve19();
11943
+ break;
11944
+ case "transcript":
11945
+ this.emit("transcript", {
11946
+ text: evt.text,
11947
+ isFinal: evt.isFinal ?? false
11948
+ });
11949
+ break;
11950
+ case "error":
11951
+ this.emit("error", new Error(evt.message));
11952
+ break;
11953
+ }
11954
+ } catch {
11955
+ }
11956
+ });
11957
+ this.process.stderr?.on("data", (data) => {
11958
+ const text = data.toString().trim();
11959
+ if (text)
11960
+ this.emit("status", text);
11961
+ });
11962
+ this.process.on("error", (err) => {
11963
+ clearTimeout(timeout);
11964
+ reject(err);
11965
+ });
11966
+ this.process.on("close", (code) => {
11967
+ if (!this._ready) {
11968
+ clearTimeout(timeout);
11969
+ reject(new Error(`Whisper worker exited with code ${code} before ready`));
11970
+ }
11971
+ });
11972
+ });
11973
+ }
11974
+ /** Write PCM16 audio data to the worker's stdin. */
11975
+ write(chunk) {
11976
+ if (this.process?.stdin?.writable) {
11977
+ this.process.stdin.write(chunk);
11978
+ }
11979
+ }
11980
+ /** Stop the worker. */
11981
+ stop() {
11982
+ if (this.process) {
11983
+ try {
11984
+ this.process.stdin?.end();
11985
+ this.process.kill("SIGTERM");
11986
+ } catch {
11987
+ }
11988
+ this.process = null;
11989
+ }
11990
+ this._ready = false;
11991
+ }
11992
+ };
11855
11993
  ListenEngine = class extends EventEmitter {
11856
11994
  config;
11857
11995
  micProcess = null;
11858
11996
  liveTranscriber = null;
11859
- // TranscribeLive from transcribe-cli
11997
+ // TranscribeLive from transcribe-cli or WhisperFallbackTranscriber
11860
11998
  active = false;
11861
11999
  silenceTimer = null;
11862
12000
  countdownInterval = null;
@@ -11939,8 +12077,8 @@ var init_listen = __esm({
11939
12077
  const nvmBase = join19(homedir6(), ".nvm", "versions", "node");
11940
12078
  if (existsSync13(nvmBase)) {
11941
12079
  try {
11942
- const { readdirSync: readdirSync9 } = await import("node:fs");
11943
- for (const ver of readdirSync9(nvmBase)) {
12080
+ const { readdirSync: readdirSync10 } = await import("node:fs");
12081
+ for (const ver of readdirSync10(nvmBase)) {
11944
12082
  const tcPath = join19(nvmBase, ver, "lib", "node_modules", "transcribe-cli");
11945
12083
  if (existsSync13(join19(tcPath, "dist", "index.js"))) {
11946
12084
  const { createRequire: createRequire4 } = await import("node:module");
@@ -11972,7 +12110,6 @@ var init_listen = __esm({
11972
12110
  tc = await this.loadTranscribeCli();
11973
12111
  }
11974
12112
  if (!tc) {
11975
- this.emit("info", "Installing transcribe-cli...");
11976
12113
  try {
11977
12114
  execSync12("npm i -g transcribe-cli", { stdio: "pipe", timeout: 18e4 });
11978
12115
  this.transcribeCliAvailable = null;
@@ -11980,62 +12117,85 @@ var init_listen = __esm({
11980
12117
  } catch {
11981
12118
  }
11982
12119
  }
11983
- if (!tc) {
11984
- return "Failed to install transcribe-cli. Try manually: npm i -g transcribe-cli";
11985
- }
11986
12120
  }
11987
- const TranscribeLive = tc.TranscribeLive;
11988
- if (!TranscribeLive) {
11989
- return "transcribe-cli does not export TranscribeLive. Try updating: npm i -g transcribe-cli@latest";
11990
- }
11991
- try {
11992
- this.liveTranscriber = new TranscribeLive({
11993
- model: this.config.model,
11994
- sampleRate: 16e3,
11995
- channels: 1,
11996
- sampleWidth: 2,
11997
- chunkDuration: 3
11998
- // 3s chunks for responsive transcription
11999
- });
12000
- } catch (err) {
12001
- const arch = process.arch;
12002
- const armHint = arch === "arm64" || arch === "arm" ? ` Live transcription may not be supported on ${process.platform}-${arch}.` : "";
12003
- return `Failed to create live transcriber.${armHint} Error: ${err instanceof Error ? err.message : String(err)}`;
12121
+ let usedFallback = false;
12122
+ let transcribeCliError = null;
12123
+ if (tc) {
12124
+ const TranscribeLive = tc.TranscribeLive;
12125
+ if (TranscribeLive) {
12126
+ try {
12127
+ this.liveTranscriber = new TranscribeLive({
12128
+ model: this.config.model,
12129
+ sampleRate: 16e3,
12130
+ channels: 1,
12131
+ sampleWidth: 2,
12132
+ chunkDuration: 3
12133
+ });
12134
+ this.liveTranscriber.on("transcript", (evt) => {
12135
+ if (!evt.text.trim())
12136
+ return;
12137
+ this.lastTranscriptTime = Date.now();
12138
+ this.pendingText = evt.text.trim();
12139
+ this.emit("transcript", this.pendingText, evt.isFinal);
12140
+ if (this.config.mode === "auto")
12141
+ this.resetSilenceTimer();
12142
+ });
12143
+ this.liveTranscriber.on("error", (err) => {
12144
+ this.emit("error", err);
12145
+ });
12146
+ await new Promise((resolve19, reject) => {
12147
+ const timeout = setTimeout(() => reject(new Error("Model load timeout (60s)")), 6e4);
12148
+ this.liveTranscriber.on("ready", () => {
12149
+ clearTimeout(timeout);
12150
+ resolve19();
12151
+ });
12152
+ this.liveTranscriber.on("error", (err) => {
12153
+ clearTimeout(timeout);
12154
+ reject(err);
12155
+ });
12156
+ });
12157
+ } catch (err) {
12158
+ try {
12159
+ this.liveTranscriber?.stop();
12160
+ } catch {
12161
+ }
12162
+ this.liveTranscriber = null;
12163
+ transcribeCliError = err instanceof Error ? err.message : String(err);
12164
+ }
12165
+ }
12004
12166
  }
12005
- this.liveTranscriber.on("transcript", (evt) => {
12006
- if (!evt.text.trim())
12007
- return;
12008
- this.lastTranscriptTime = Date.now();
12009
- this.pendingText = evt.text.trim();
12010
- this.emit("transcript", this.pendingText, evt.isFinal);
12011
- if (this.config.mode === "auto") {
12012
- this.resetSilenceTimer();
12167
+ if (!this.liveTranscriber) {
12168
+ const scriptPath2 = findLiveWhisperScript();
12169
+ if (!scriptPath2) {
12170
+ const hint = transcribeCliError ? ` transcribe-cli error: ${transcribeCliError}` : "";
12171
+ return `No transcription backend available.${hint} live-whisper.py not found.`;
12013
12172
  }
12014
- });
12015
- this.liveTranscriber.on("error", (err) => {
12016
- this.emit("error", err);
12017
- });
12018
- try {
12019
- await new Promise((resolve19, reject) => {
12020
- const timeout = setTimeout(() => reject(new Error("Model load timeout (60s)")), 6e4);
12021
- this.liveTranscriber.on("ready", () => {
12022
- clearTimeout(timeout);
12023
- resolve19();
12173
+ try {
12174
+ const fallback = new WhisperFallbackTranscriber(this.config.model, scriptPath2);
12175
+ usedFallback = true;
12176
+ fallback.on("status", (msg) => {
12177
+ this.emit("info", msg);
12024
12178
  });
12025
- this.liveTranscriber.on("error", (err) => {
12026
- clearTimeout(timeout);
12027
- reject(err);
12179
+ await fallback.start();
12180
+ fallback.on("transcript", (evt) => {
12181
+ if (!evt.text.trim())
12182
+ return;
12183
+ this.lastTranscriptTime = Date.now();
12184
+ this.pendingText = evt.text.trim();
12185
+ this.emit("transcript", this.pendingText, evt.isFinal);
12186
+ if (this.config.mode === "auto")
12187
+ this.resetSilenceTimer();
12028
12188
  });
12029
- });
12030
- } catch (err) {
12031
- try {
12032
- this.liveTranscriber.stop();
12033
- } catch {
12189
+ fallback.on("error", (err) => {
12190
+ this.emit("error", err);
12191
+ });
12192
+ this.liveTranscriber = fallback;
12193
+ } catch (err) {
12194
+ const msg = err instanceof Error ? err.message : String(err);
12195
+ const tcHint = transcribeCliError ? `
12196
+ transcribe-cli error: ${transcribeCliError}` : "";
12197
+ return `Failed to start live transcription: ${msg}${tcHint}`;
12034
12198
  }
12035
- this.liveTranscriber = null;
12036
- const arch = process.arch;
12037
- const armHint = arch === "arm64" || arch === "arm" ? ` The whisper model or phonemizer WASM may not support ${process.platform}-${arch}. File transcription (/transcribe <file>) may still work.` : "";
12038
- return `Failed to start live transcription: ${err instanceof Error ? err.message : String(err)}${armHint}`;
12039
12199
  }
12040
12200
  this.micProcess = spawn7(micCmd.cmd, micCmd.args, {
12041
12201
  stdio: ["pipe", "pipe", "pipe"],
@@ -12067,7 +12227,8 @@ var init_listen = __esm({
12067
12227
  this.emit("started");
12068
12228
  this.emit("recording", true);
12069
12229
  const modeDesc = this.config.mode === "auto" ? `auto (${this.config.silenceTimeoutMs / 1e3}s timeout)` : "confirm (press Enter to submit)";
12070
- return `Listening with ${this.config.model} model (${modeDesc})`;
12230
+ const backend = usedFallback ? "openai-whisper" : "transcribe-cli";
12231
+ return `Listening with ${this.config.model} model via ${backend} (${modeDesc})`;
12071
12232
  }
12072
12233
  /**
12073
12234
  * Stop listening — cleanup mic, transcriber, timers.
@@ -12196,7 +12357,7 @@ var init_listen = __esm({
12196
12357
  }
12197
12358
  });
12198
12359
 
12199
- // packages/cli/dist/tui/model-picker.js
12360
+ // ../packages/cli/dist/tui/model-picker.js
12200
12361
  async function fetchOllamaModels(baseUrl) {
12201
12362
  const url = `${normalizeBaseUrl(baseUrl)}/api/tags`;
12202
12363
  const resp = await fetch(url, {
@@ -12306,13 +12467,13 @@ function formatRelativeTime(iso) {
12306
12467
  return `${months}mo ago`;
12307
12468
  }
12308
12469
  var init_model_picker = __esm({
12309
- "packages/cli/dist/tui/model-picker.js"() {
12470
+ "../packages/cli/dist/tui/model-picker.js"() {
12310
12471
  "use strict";
12311
12472
  init_dist();
12312
12473
  }
12313
12474
  });
12314
12475
 
12315
- // packages/cli/dist/tui/render.js
12476
+ // ../packages/cli/dist/tui/render.js
12316
12477
  function ansi2(code, text) {
12317
12478
  return isTTY2 ? `\x1B[${code}m${text}\x1B[0m` : text;
12318
12479
  }
@@ -12919,7 +13080,7 @@ function formatDuration2(ms) {
12919
13080
  }
12920
13081
  var isTTY2, c2, pastel, _emojisEnabled, _colorsEnabled, MD, TOOL_ICONS, TOOL_LABELS, TOOL_COLORS, _contentWriteHook, HINTS, TOOL_NAMES, COMMAND_NAMES;
12921
13082
  var init_render = __esm({
12922
- "packages/cli/dist/tui/render.js"() {
13083
+ "../packages/cli/dist/tui/render.js"() {
12923
13084
  "use strict";
12924
13085
  isTTY2 = process.stdout.isTTY ?? false;
12925
13086
  c2 = {
@@ -13139,21 +13300,21 @@ var init_render = __esm({
13139
13300
  }
13140
13301
  });
13141
13302
 
13142
- // packages/prompts/dist/loader.js
13303
+ // ../packages/prompts/dist/loader.js
13143
13304
  var init_loader = __esm({
13144
- "packages/prompts/dist/loader.js"() {
13305
+ "../packages/prompts/dist/loader.js"() {
13145
13306
  "use strict";
13146
13307
  }
13147
13308
  });
13148
13309
 
13149
- // packages/prompts/dist/render.js
13310
+ // ../packages/prompts/dist/render.js
13150
13311
  var init_render2 = __esm({
13151
- "packages/prompts/dist/render.js"() {
13312
+ "../packages/prompts/dist/render.js"() {
13152
13313
  "use strict";
13153
13314
  }
13154
13315
  });
13155
13316
 
13156
- // packages/prompts/dist/task-templates.js
13317
+ // ../packages/prompts/dist/task-templates.js
13157
13318
  function getTaskTemplate(type) {
13158
13319
  return TEMPLATES[type];
13159
13320
  }
@@ -13169,7 +13330,7 @@ ${template.outputGuidance}`;
13169
13330
  }
13170
13331
  var TEMPLATES;
13171
13332
  var init_task_templates = __esm({
13172
- "packages/prompts/dist/task-templates.js"() {
13333
+ "../packages/prompts/dist/task-templates.js"() {
13173
13334
  "use strict";
13174
13335
  TEMPLATES = {
13175
13336
  code: {
@@ -13316,24 +13477,24 @@ Approach this task thoughtfully:
13316
13477
  }
13317
13478
  });
13318
13479
 
13319
- // packages/prompts/dist/index.js
13320
- import { join as join20, dirname as dirname6 } from "node:path";
13321
- import { fileURLToPath as fileURLToPath3 } from "node:url";
13480
+ // ../packages/prompts/dist/index.js
13481
+ import { join as join20, dirname as dirname7 } from "node:path";
13482
+ import { fileURLToPath as fileURLToPath4 } from "node:url";
13322
13483
  var _dir, _packageRoot;
13323
13484
  var init_dist6 = __esm({
13324
- "packages/prompts/dist/index.js"() {
13485
+ "../packages/prompts/dist/index.js"() {
13325
13486
  "use strict";
13326
13487
  init_loader();
13327
13488
  init_render2();
13328
13489
  init_task_templates();
13329
13490
  init_render2();
13330
- _dir = dirname6(fileURLToPath3(import.meta.url));
13491
+ _dir = dirname7(fileURLToPath4(import.meta.url));
13331
13492
  _packageRoot = join20(_dir, "..");
13332
13493
  }
13333
13494
  });
13334
13495
 
13335
- // packages/cli/dist/tui/oa-directory.js
13336
- import { existsSync as existsSync14, mkdirSync as mkdirSync6, readFileSync as readFileSync12, writeFileSync as writeFileSync6, readdirSync as readdirSync6, statSync as statSync6, unlinkSync as unlinkSync2 } from "node:fs";
13496
+ // ../packages/cli/dist/tui/oa-directory.js
13497
+ import { existsSync as existsSync14, mkdirSync as mkdirSync6, readFileSync as readFileSync12, writeFileSync as writeFileSync6, readdirSync as readdirSync7, statSync as statSync6, unlinkSync as unlinkSync2 } from "node:fs";
13337
13498
  import { join as join21, relative as relative2, basename as basename5, extname as extname8 } from "node:path";
13338
13499
  import { homedir as homedir7 } from "node:os";
13339
13500
  function initOaDirectory(repoRoot) {
@@ -13514,7 +13675,7 @@ function loadRecentSessions(repoRoot, limit = 5) {
13514
13675
  if (!existsSync14(historyDir))
13515
13676
  return [];
13516
13677
  try {
13517
- const files = readdirSync6(historyDir).filter((f) => f.endsWith(".json")).map((f) => {
13678
+ const files = readdirSync7(historyDir).filter((f) => f.endsWith(".json")).map((f) => {
13518
13679
  const stat5 = statSync6(join21(historyDir, f));
13519
13680
  return { file: f, mtime: stat5.mtimeMs };
13520
13681
  }).sort((a, b) => b.mtime - a.mtime).slice(0, limit);
@@ -13612,7 +13773,7 @@ function buildDirTree(root, maxDepth, prefix = "", depth = 0) {
13612
13773
  return "";
13613
13774
  let result = "";
13614
13775
  try {
13615
- const entries = readdirSync6(root, { withFileTypes: true }).filter((e) => !e.name.startsWith(".") || e.name === ".github").filter((e) => !SKIP_DIRS.has(e.name)).sort((a, b) => {
13776
+ const entries = readdirSync7(root, { withFileTypes: true }).filter((e) => !e.name.startsWith(".") || e.name === ".github").filter((e) => !SKIP_DIRS.has(e.name)).sort((a, b) => {
13616
13777
  if (a.isDirectory() && !b.isDirectory())
13617
13778
  return -1;
13618
13779
  if (!a.isDirectory() && b.isDirectory())
@@ -13627,7 +13788,7 @@ function buildDirTree(root, maxDepth, prefix = "", depth = 0) {
13627
13788
  if (entry.isDirectory()) {
13628
13789
  let fileCount = 0;
13629
13790
  try {
13630
- fileCount = readdirSync6(join21(root, entry.name)).filter((f) => !f.startsWith(".")).length;
13791
+ fileCount = readdirSync7(join21(root, entry.name)).filter((f) => !f.startsWith(".")).length;
13631
13792
  } catch {
13632
13793
  }
13633
13794
  result += `${prefix}${connector}${entry.name}/ (${fileCount})
@@ -13644,7 +13805,7 @@ function buildDirTree(root, maxDepth, prefix = "", depth = 0) {
13644
13805
  }
13645
13806
  var OA_DIR, SUBDIRS, CONTEXT_FILES, PENDING_TASK_FILE, SKIP_DIRS;
13646
13807
  var init_oa_directory = __esm({
13647
- "packages/cli/dist/tui/oa-directory.js"() {
13808
+ "../packages/cli/dist/tui/oa-directory.js"() {
13648
13809
  "use strict";
13649
13810
  OA_DIR = ".oa";
13650
13811
  SUBDIRS = ["memory", "index", "context", "history", "notes", "embedded", "provenance", "tools", "dreams"];
@@ -13681,7 +13842,7 @@ var init_oa_directory = __esm({
13681
13842
  }
13682
13843
  });
13683
13844
 
13684
- // packages/cli/dist/tui/setup.js
13845
+ // ../packages/cli/dist/tui/setup.js
13685
13846
  import * as readline from "node:readline";
13686
13847
  import { execSync as execSync13 } from "node:child_process";
13687
13848
  import { existsSync as existsSync15, writeFileSync as writeFileSync7, mkdirSync as mkdirSync7 } from "node:fs";
@@ -14257,7 +14418,7 @@ async function ensureExpandedContext(modelName, backendUrl) {
14257
14418
  }
14258
14419
  var QWEN_VARIANTS, TOOL_CALLING_MODELS;
14259
14420
  var init_setup = __esm({
14260
- "packages/cli/dist/tui/setup.js"() {
14421
+ "../packages/cli/dist/tui/setup.js"() {
14261
14422
  "use strict";
14262
14423
  init_model_picker();
14263
14424
  init_render();
@@ -14290,7 +14451,7 @@ var init_setup = __esm({
14290
14451
  }
14291
14452
  });
14292
14453
 
14293
- // packages/cli/dist/tui/commands.js
14454
+ // ../packages/cli/dist/tui/commands.js
14294
14455
  async function handleSlashCommand(input, ctx) {
14295
14456
  const trimmed = input.trim();
14296
14457
  if (!trimmed.startsWith("/"))
@@ -14843,11 +15004,11 @@ async function handleUpdate(subcommand, ctx) {
14843
15004
  let currentVersion = "0.0.0";
14844
15005
  try {
14845
15006
  const { createRequire: createRequire4 } = await import("node:module");
14846
- const { fileURLToPath: fileURLToPath6 } = await import("node:url");
14847
- const { dirname: dirname9, join: join32 } = await import("node:path");
15007
+ const { fileURLToPath: fileURLToPath7 } = await import("node:url");
15008
+ const { dirname: dirname10, join: join32 } = await import("node:path");
14848
15009
  const { existsSync: existsSync21 } = await import("node:fs");
14849
15010
  const req = createRequire4(import.meta.url);
14850
- const thisDir = dirname9(fileURLToPath6(import.meta.url));
15011
+ const thisDir = dirname10(fileURLToPath7(import.meta.url));
14851
15012
  const candidates = [
14852
15013
  join32(thisDir, "..", "package.json"),
14853
15014
  join32(thisDir, "..", "..", "package.json"),
@@ -14943,7 +15104,7 @@ async function switchModel(query, ctx, local = false) {
14943
15104
  }
14944
15105
  }
14945
15106
  var init_commands = __esm({
14946
- "packages/cli/dist/tui/commands.js"() {
15107
+ "../packages/cli/dist/tui/commands.js"() {
14947
15108
  "use strict";
14948
15109
  init_model_picker();
14949
15110
  init_render();
@@ -14958,8 +15119,8 @@ var init_commands = __esm({
14958
15119
  }
14959
15120
  });
14960
15121
 
14961
- // packages/cli/dist/tui/project-context.js
14962
- import { existsSync as existsSync16, readFileSync as readFileSync13, readdirSync as readdirSync7 } from "node:fs";
15122
+ // ../packages/cli/dist/tui/project-context.js
15123
+ import { existsSync as existsSync16, readFileSync as readFileSync13, readdirSync as readdirSync8 } from "node:fs";
14963
15124
  import { join as join23, basename as basename6 } from "node:path";
14964
15125
  import { execSync as execSync14 } from "node:child_process";
14965
15126
  import { homedir as homedir9, platform, release } from "node:os";
@@ -15045,7 +15206,7 @@ function loadMemoryDir(memDir, scope) {
15045
15206
  return "";
15046
15207
  const lines = [];
15047
15208
  try {
15048
- const files = readdirSync7(memDir).filter((f) => f.endsWith(".json"));
15209
+ const files = readdirSync8(memDir).filter((f) => f.endsWith(".json"));
15049
15210
  for (const file of files.slice(0, 10)) {
15050
15211
  try {
15051
15212
  const raw = readFileSync13(join23(memDir, file), "utf-8");
@@ -15236,14 +15397,14 @@ These patterns have been repeated 3+ times. Consider using create_tool to automa
15236
15397
  return sections.join("\n\n");
15237
15398
  }
15238
15399
  var init_project_context = __esm({
15239
- "packages/cli/dist/tui/project-context.js"() {
15400
+ "../packages/cli/dist/tui/project-context.js"() {
15240
15401
  "use strict";
15241
15402
  init_oa_directory();
15242
15403
  init_dist2();
15243
15404
  }
15244
15405
  });
15245
15406
 
15246
- // packages/memory/dist/db.js
15407
+ // ../packages/memory/dist/db.js
15247
15408
  import Database from "better-sqlite3";
15248
15409
  function initDb(dbPath) {
15249
15410
  const db = new Database(dbPath);
@@ -15398,26 +15559,26 @@ function runMigrations(db) {
15398
15559
  `);
15399
15560
  }
15400
15561
  var init_db = __esm({
15401
- "packages/memory/dist/db.js"() {
15562
+ "../packages/memory/dist/db.js"() {
15402
15563
  "use strict";
15403
15564
  }
15404
15565
  });
15405
15566
 
15406
- // packages/memory/dist/repoProfileStore.js
15567
+ // ../packages/memory/dist/repoProfileStore.js
15407
15568
  var init_repoProfileStore = __esm({
15408
- "packages/memory/dist/repoProfileStore.js"() {
15569
+ "../packages/memory/dist/repoProfileStore.js"() {
15409
15570
  "use strict";
15410
15571
  }
15411
15572
  });
15412
15573
 
15413
- // packages/memory/dist/fileSummaryStore.js
15574
+ // ../packages/memory/dist/fileSummaryStore.js
15414
15575
  var init_fileSummaryStore = __esm({
15415
- "packages/memory/dist/fileSummaryStore.js"() {
15576
+ "../packages/memory/dist/fileSummaryStore.js"() {
15416
15577
  "use strict";
15417
15578
  }
15418
15579
  });
15419
15580
 
15420
- // packages/memory/dist/taskMemoryStore.js
15581
+ // ../packages/memory/dist/taskMemoryStore.js
15421
15582
  import { randomUUID } from "node:crypto";
15422
15583
  function rowToTask(row) {
15423
15584
  return {
@@ -15436,7 +15597,7 @@ function rowToTask(row) {
15436
15597
  }
15437
15598
  var TaskMemoryStore;
15438
15599
  var init_taskMemoryStore = __esm({
15439
- "packages/memory/dist/taskMemoryStore.js"() {
15600
+ "../packages/memory/dist/taskMemoryStore.js"() {
15440
15601
  "use strict";
15441
15602
  TaskMemoryStore = class {
15442
15603
  db;
@@ -15487,14 +15648,14 @@ var init_taskMemoryStore = __esm({
15487
15648
  }
15488
15649
  });
15489
15650
 
15490
- // packages/memory/dist/patchHistoryStore.js
15651
+ // ../packages/memory/dist/patchHistoryStore.js
15491
15652
  var init_patchHistoryStore = __esm({
15492
- "packages/memory/dist/patchHistoryStore.js"() {
15653
+ "../packages/memory/dist/patchHistoryStore.js"() {
15493
15654
  "use strict";
15494
15655
  }
15495
15656
  });
15496
15657
 
15497
- // packages/memory/dist/failureStore.js
15658
+ // ../packages/memory/dist/failureStore.js
15498
15659
  import { randomUUID as randomUUID2 } from "node:crypto";
15499
15660
  function rowToFailure(row) {
15500
15661
  return {
@@ -15515,7 +15676,7 @@ function rowToFailure(row) {
15515
15676
  }
15516
15677
  var FailureStore;
15517
15678
  var init_failureStore = __esm({
15518
- "packages/memory/dist/failureStore.js"() {
15679
+ "../packages/memory/dist/failureStore.js"() {
15519
15680
  "use strict";
15520
15681
  FailureStore = class {
15521
15682
  db;
@@ -15570,18 +15731,18 @@ var init_failureStore = __esm({
15570
15731
  }
15571
15732
  });
15572
15733
 
15573
- // packages/memory/dist/validationStore.js
15734
+ // ../packages/memory/dist/validationStore.js
15574
15735
  var init_validationStore = __esm({
15575
- "packages/memory/dist/validationStore.js"() {
15736
+ "../packages/memory/dist/validationStore.js"() {
15576
15737
  "use strict";
15577
15738
  }
15578
15739
  });
15579
15740
 
15580
- // packages/memory/dist/toolPatternStore.js
15741
+ // ../packages/memory/dist/toolPatternStore.js
15581
15742
  import { randomUUID as randomUUID3 } from "node:crypto";
15582
15743
  var ToolPatternStore;
15583
15744
  var init_toolPatternStore = __esm({
15584
- "packages/memory/dist/toolPatternStore.js"() {
15745
+ "../packages/memory/dist/toolPatternStore.js"() {
15585
15746
  "use strict";
15586
15747
  ToolPatternStore = class {
15587
15748
  db;
@@ -15760,9 +15921,9 @@ var init_toolPatternStore = __esm({
15760
15921
  }
15761
15922
  });
15762
15923
 
15763
- // packages/memory/dist/index.js
15924
+ // ../packages/memory/dist/index.js
15764
15925
  var init_dist7 = __esm({
15765
- "packages/memory/dist/index.js"() {
15926
+ "../packages/memory/dist/index.js"() {
15766
15927
  "use strict";
15767
15928
  init_db();
15768
15929
  init_repoProfileStore();
@@ -15775,7 +15936,7 @@ var init_dist7 = __esm({
15775
15936
  }
15776
15937
  });
15777
15938
 
15778
- // packages/cli/dist/tui/carousel.js
15939
+ // ../packages/cli/dist/tui/carousel.js
15779
15940
  function fg(code, text) {
15780
15941
  return isTTY3 ? `\x1B[38;5;${code}m${text}\x1B[0m` : text;
15781
15942
  }
@@ -15817,7 +15978,7 @@ function createRow(phraseIndices, speed, direction) {
15817
15978
  }
15818
15979
  var isTTY3, PHRASES, Carousel;
15819
15980
  var init_carousel = __esm({
15820
- "packages/cli/dist/tui/carousel.js"() {
15981
+ "../packages/cli/dist/tui/carousel.js"() {
15821
15982
  "use strict";
15822
15983
  isTTY3 = process.stdout.isTTY ?? false;
15823
15984
  PHRASES = [
@@ -16058,7 +16219,7 @@ var init_carousel = __esm({
16058
16219
  }
16059
16220
  });
16060
16221
 
16061
- // packages/cli/dist/tui/voice.js
16222
+ // ../packages/cli/dist/tui/voice.js
16062
16223
  import { existsSync as existsSync17, mkdirSync as mkdirSync8, writeFileSync as writeFileSync8, readFileSync as readFileSync14, unlinkSync as unlinkSync3 } from "node:fs";
16063
16224
  import { join as join24 } from "node:path";
16064
16225
  import { homedir as homedir10, tmpdir as tmpdir4, platform as platform2 } from "node:os";
@@ -16175,7 +16336,7 @@ function formatBytes2(bytes) {
16175
16336
  }
16176
16337
  var VOICE_MODELS, VoiceEngine;
16177
16338
  var init_voice = __esm({
16178
- "packages/cli/dist/tui/voice.js"() {
16339
+ "../packages/cli/dist/tui/voice.js"() {
16179
16340
  "use strict";
16180
16341
  init_render();
16181
16342
  VOICE_MODELS = {
@@ -16643,7 +16804,7 @@ Error: ${err instanceof Error ? err.message : String(err)}`);
16643
16804
  }
16644
16805
  });
16645
16806
 
16646
- // packages/cli/dist/tui/stream-renderer.js
16807
+ // ../packages/cli/dist/tui/stream-renderer.js
16647
16808
  function fg2562(code, text) {
16648
16809
  return isTTY4 ? `\x1B[38;5;${code}m${text}\x1B[0m` : text;
16649
16810
  }
@@ -16661,7 +16822,7 @@ function boldText(text) {
16661
16822
  }
16662
16823
  var isTTY4, PASTEL, StreamRenderer;
16663
16824
  var init_stream_renderer = __esm({
16664
- "packages/cli/dist/tui/stream-renderer.js"() {
16825
+ "../packages/cli/dist/tui/stream-renderer.js"() {
16665
16826
  "use strict";
16666
16827
  isTTY4 = process.stdout.isTTY ?? false;
16667
16828
  PASTEL = {
@@ -17130,7 +17291,7 @@ var init_stream_renderer = __esm({
17130
17291
  }
17131
17292
  });
17132
17293
 
17133
- // packages/cli/dist/tui/edit-history.js
17294
+ // ../packages/cli/dist/tui/edit-history.js
17134
17295
  import { appendFileSync, mkdirSync as mkdirSync9 } from "node:fs";
17135
17296
  import { join as join25 } from "node:path";
17136
17297
  function createEditHistoryLogger(repoRoot, sessionId) {
@@ -17234,7 +17395,7 @@ function sanitizeArgs(tool, args) {
17234
17395
  }
17235
17396
  var EDIT_TOOLS;
17236
17397
  var init_edit_history = __esm({
17237
- "packages/cli/dist/tui/edit-history.js"() {
17398
+ "../packages/cli/dist/tui/edit-history.js"() {
17238
17399
  "use strict";
17239
17400
  EDIT_TOOLS = /* @__PURE__ */ new Set([
17240
17401
  "file_edit",
@@ -17245,8 +17406,8 @@ var init_edit_history = __esm({
17245
17406
  }
17246
17407
  });
17247
17408
 
17248
- // packages/cli/dist/tui/dream-engine.js
17249
- import { mkdirSync as mkdirSync10, writeFileSync as writeFileSync9, readFileSync as readFileSync15, existsSync as existsSync18, cpSync, rmSync, readdirSync as readdirSync8 } from "node:fs";
17409
+ // ../packages/cli/dist/tui/dream-engine.js
17410
+ import { mkdirSync as mkdirSync10, writeFileSync as writeFileSync9, readFileSync as readFileSync15, existsSync as existsSync18, cpSync, rmSync, readdirSync as readdirSync9 } from "node:fs";
17250
17411
  import { join as join26, basename as basename7 } from "node:path";
17251
17412
  import { execSync as execSync16 } from "node:child_process";
17252
17413
  function adaptTool(tool) {
@@ -17389,7 +17550,7 @@ function renderDreamEnd(state) {
17389
17550
  }
17390
17551
  var SLEEP_STAGES, DreamFileWriteTool, DreamFileEditTool, DreamShellTool, DreamEngine;
17391
17552
  var init_dream_engine = __esm({
17392
- "packages/cli/dist/tui/dream-engine.js"() {
17553
+ "../packages/cli/dist/tui/dream-engine.js"() {
17393
17554
  "use strict";
17394
17555
  init_dist5();
17395
17556
  init_dist2();
@@ -17784,7 +17945,7 @@ Each proposal includes implementation entrypoints and estimated effort.
17784
17945
  /** Update the master proposal index */
17785
17946
  updateProposalIndex() {
17786
17947
  try {
17787
- const files = readdirSync8(this.dreamsDir).filter((f) => f.endsWith(".md") && f !== "PROPOSAL-INDEX.md" && f !== "dream-state.json").sort();
17948
+ const files = readdirSync9(this.dreamsDir).filter((f) => f.endsWith(".md") && f !== "PROPOSAL-INDEX.md" && f !== "dream-state.json").sort();
17788
17949
  const index = `# Dream Proposals Index
17789
17950
 
17790
17951
  **Last updated**: ${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}
@@ -17820,10 +17981,10 @@ ${files.map((f) => `- [\`${f}\`](./${f})`).join("\n")}
17820
17981
  }
17821
17982
  });
17822
17983
 
17823
- // packages/cli/dist/tui/status-bar.js
17984
+ // ../packages/cli/dist/tui/status-bar.js
17824
17985
  var FOOTER_ROWS, StatusBar;
17825
17986
  var init_status_bar = __esm({
17826
- "packages/cli/dist/tui/status-bar.js"() {
17987
+ "../packages/cli/dist/tui/status-bar.js"() {
17827
17988
  "use strict";
17828
17989
  init_render();
17829
17990
  FOOTER_ROWS = 5;
@@ -18182,19 +18343,19 @@ var init_status_bar = __esm({
18182
18343
  }
18183
18344
  });
18184
18345
 
18185
- // packages/cli/dist/tui/interactive.js
18346
+ // ../packages/cli/dist/tui/interactive.js
18186
18347
  import * as readline2 from "node:readline";
18187
18348
  import { Writable } from "node:stream";
18188
18349
  import { cwd } from "node:process";
18189
- import { resolve as resolve16, join as join27, dirname as dirname7, extname as extname9 } from "node:path";
18350
+ import { resolve as resolve16, join as join27, dirname as dirname8, extname as extname9 } from "node:path";
18190
18351
  import { createRequire as createRequire2 } from "node:module";
18191
- import { fileURLToPath as fileURLToPath4 } from "node:url";
18352
+ import { fileURLToPath as fileURLToPath5 } from "node:url";
18192
18353
  import { readFileSync as readFileSync16 } from "node:fs";
18193
18354
  import { existsSync as existsSync19 } from "node:fs";
18194
18355
  function getVersion() {
18195
18356
  try {
18196
18357
  const require2 = createRequire2(import.meta.url);
18197
- const thisDir = dirname7(fileURLToPath4(import.meta.url));
18358
+ const thisDir = dirname8(fileURLToPath5(import.meta.url));
18198
18359
  const candidates = [
18199
18360
  join27(thisDir, "..", "package.json"),
18200
18361
  join27(thisDir, "..", "..", "package.json"),
@@ -19327,7 +19488,7 @@ async function runWithTUI(task, config, repoPath) {
19327
19488
  }
19328
19489
  var taskManager;
19329
19490
  var init_interactive = __esm({
19330
- "packages/cli/dist/tui/interactive.js"() {
19491
+ "../packages/cli/dist/tui/interactive.js"() {
19331
19492
  "use strict";
19332
19493
  init_dist5();
19333
19494
  init_dist2();
@@ -19352,7 +19513,7 @@ var init_interactive = __esm({
19352
19513
  }
19353
19514
  });
19354
19515
 
19355
- // packages/cli/dist/commands/run.js
19516
+ // ../packages/cli/dist/commands/run.js
19356
19517
  var run_exports = {};
19357
19518
  __export(run_exports, {
19358
19519
  runCommand: () => runCommand
@@ -19372,13 +19533,13 @@ async function runCommand(opts, config) {
19372
19533
  }
19373
19534
  }
19374
19535
  var init_run = __esm({
19375
- "packages/cli/dist/commands/run.js"() {
19536
+ "../packages/cli/dist/commands/run.js"() {
19376
19537
  "use strict";
19377
19538
  init_interactive();
19378
19539
  }
19379
19540
  });
19380
19541
 
19381
- // packages/indexer/dist/codebase-indexer.js
19542
+ // ../packages/indexer/dist/codebase-indexer.js
19382
19543
  import { glob } from "glob";
19383
19544
  import ignore from "ignore";
19384
19545
  import { readFile as readFile10, stat as stat4 } from "node:fs/promises";
@@ -19386,7 +19547,7 @@ import { createHash } from "node:crypto";
19386
19547
  import { join as join28, relative as relative3, extname as extname10, basename as basename8 } from "node:path";
19387
19548
  var DEFAULT_EXCLUDE, LANGUAGE_MAP, CodebaseIndexer;
19388
19549
  var init_codebase_indexer = __esm({
19389
- "packages/indexer/dist/codebase-indexer.js"() {
19550
+ "../packages/indexer/dist/codebase-indexer.js"() {
19390
19551
  "use strict";
19391
19552
  DEFAULT_EXCLUDE = [
19392
19553
  "node_modules",
@@ -19504,25 +19665,25 @@ var init_codebase_indexer = __esm({
19504
19665
  }
19505
19666
  });
19506
19667
 
19507
- // packages/indexer/dist/repoScanner.js
19668
+ // ../packages/indexer/dist/repoScanner.js
19508
19669
  import ignore2 from "ignore";
19509
19670
  var init_repoScanner = __esm({
19510
- "packages/indexer/dist/repoScanner.js"() {
19671
+ "../packages/indexer/dist/repoScanner.js"() {
19511
19672
  "use strict";
19512
19673
  }
19513
19674
  });
19514
19675
 
19515
- // packages/indexer/dist/symbolExtractor.js
19676
+ // ../packages/indexer/dist/symbolExtractor.js
19516
19677
  var init_symbolExtractor = __esm({
19517
- "packages/indexer/dist/symbolExtractor.js"() {
19678
+ "../packages/indexer/dist/symbolExtractor.js"() {
19518
19679
  "use strict";
19519
19680
  }
19520
19681
  });
19521
19682
 
19522
- // packages/indexer/dist/graphBuilder.js
19683
+ // ../packages/indexer/dist/graphBuilder.js
19523
19684
  var TS_EXTENSIONS, JS_EXTENSIONS, ALL_EXTENSIONS;
19524
19685
  var init_graphBuilder = __esm({
19525
- "packages/indexer/dist/graphBuilder.js"() {
19686
+ "../packages/indexer/dist/graphBuilder.js"() {
19526
19687
  "use strict";
19527
19688
  TS_EXTENSIONS = [".ts", ".tsx", ".mts", ".cts"];
19528
19689
  JS_EXTENSIONS = [".js", ".jsx", ".mjs", ".cjs"];
@@ -19530,23 +19691,23 @@ var init_graphBuilder = __esm({
19530
19691
  }
19531
19692
  });
19532
19693
 
19533
- // packages/indexer/dist/fileSummarizer.js
19694
+ // ../packages/indexer/dist/fileSummarizer.js
19534
19695
  var init_fileSummarizer = __esm({
19535
- "packages/indexer/dist/fileSummarizer.js"() {
19696
+ "../packages/indexer/dist/fileSummarizer.js"() {
19536
19697
  "use strict";
19537
19698
  }
19538
19699
  });
19539
19700
 
19540
- // packages/indexer/dist/embeddings.js
19701
+ // ../packages/indexer/dist/embeddings.js
19541
19702
  var init_embeddings = __esm({
19542
- "packages/indexer/dist/embeddings.js"() {
19703
+ "../packages/indexer/dist/embeddings.js"() {
19543
19704
  "use strict";
19544
19705
  }
19545
19706
  });
19546
19707
 
19547
- // packages/indexer/dist/index.js
19708
+ // ../packages/indexer/dist/index.js
19548
19709
  var init_dist8 = __esm({
19549
- "packages/indexer/dist/index.js"() {
19710
+ "../packages/indexer/dist/index.js"() {
19550
19711
  "use strict";
19551
19712
  init_codebase_indexer();
19552
19713
  init_repoScanner();
@@ -19557,7 +19718,7 @@ var init_dist8 = __esm({
19557
19718
  }
19558
19719
  });
19559
19720
 
19560
- // packages/cli/dist/commands/index-repo.js
19721
+ // ../packages/cli/dist/commands/index-repo.js
19561
19722
  var index_repo_exports = {};
19562
19723
  __export(index_repo_exports, {
19563
19724
  indexRepoCommand: () => indexRepoCommand
@@ -19650,7 +19811,7 @@ async function indexRepoCommand(opts, _config) {
19650
19811
  printSuccess("Repository indexed successfully");
19651
19812
  }
19652
19813
  var init_index_repo = __esm({
19653
- "packages/cli/dist/commands/index-repo.js"() {
19814
+ "../packages/cli/dist/commands/index-repo.js"() {
19654
19815
  "use strict";
19655
19816
  init_dist8();
19656
19817
  init_spinner();
@@ -19658,7 +19819,7 @@ var init_index_repo = __esm({
19658
19819
  }
19659
19820
  });
19660
19821
 
19661
- // packages/cli/dist/commands/status.js
19822
+ // ../packages/cli/dist/commands/status.js
19662
19823
  var status_exports = {};
19663
19824
  __export(status_exports, {
19664
19825
  statusCommand: () => statusCommand
@@ -19802,7 +19963,7 @@ async function statusVllm(opts, config) {
19802
19963
  printSuccess("vLLM backend is operational");
19803
19964
  }
19804
19965
  var init_status = __esm({
19805
- "packages/cli/dist/commands/status.js"() {
19966
+ "../packages/cli/dist/commands/status.js"() {
19806
19967
  "use strict";
19807
19968
  init_dist();
19808
19969
  init_spinner();
@@ -19810,7 +19971,7 @@ var init_status = __esm({
19810
19971
  }
19811
19972
  });
19812
19973
 
19813
- // packages/cli/dist/commands/config.js
19974
+ // ../packages/cli/dist/commands/config.js
19814
19975
  var config_exports = {};
19815
19976
  __export(config_exports, {
19816
19977
  configCommand: () => configCommand
@@ -19937,7 +20098,7 @@ function handleKeys() {
19937
20098
  }
19938
20099
  var CONFIG_KEYS, INT_KEYS, BOOL_KEYS;
19939
20100
  var init_config3 = __esm({
19940
- "packages/cli/dist/commands/config.js"() {
20101
+ "../packages/cli/dist/commands/config.js"() {
19941
20102
  "use strict";
19942
20103
  init_config();
19943
20104
  init_oa_directory();
@@ -19962,7 +20123,7 @@ var init_config3 = __esm({
19962
20123
  }
19963
20124
  });
19964
20125
 
19965
- // packages/cli/dist/commands/serve.js
20126
+ // ../packages/cli/dist/commands/serve.js
19966
20127
  var serve_exports = {};
19967
20128
  __export(serve_exports, {
19968
20129
  serveCommand: () => serveCommand
@@ -20112,14 +20273,14 @@ async function runVllmServer(args, verbose) {
20112
20273
  });
20113
20274
  }
20114
20275
  var init_serve = __esm({
20115
- "packages/cli/dist/commands/serve.js"() {
20276
+ "../packages/cli/dist/commands/serve.js"() {
20116
20277
  "use strict";
20117
20278
  init_dist();
20118
20279
  init_output();
20119
20280
  }
20120
20281
  });
20121
20282
 
20122
- // packages/cli/dist/commands/eval.js
20283
+ // ../packages/cli/dist/commands/eval.js
20123
20284
  var eval_exports = {};
20124
20285
  __export(eval_exports, {
20125
20286
  evalCommand: () => evalCommand
@@ -20254,7 +20415,7 @@ function createTempEvalRepo() {
20254
20415
  }
20255
20416
  var BASIC_SUITE, FULL_SUITE, SUITES;
20256
20417
  var init_eval = __esm({
20257
- "packages/cli/dist/commands/eval.js"() {
20418
+ "../packages/cli/dist/commands/eval.js"() {
20258
20419
  "use strict";
20259
20420
  init_dist5();
20260
20421
  init_dist();
@@ -20302,16 +20463,16 @@ var init_eval = __esm({
20302
20463
  }
20303
20464
  });
20304
20465
 
20305
- // packages/cli/dist/index.js
20466
+ // ../packages/cli/dist/index.js
20306
20467
  init_config();
20307
20468
  init_output();
20308
20469
  init_updater();
20309
20470
  import { parseArgs as nodeParseArgs2 } from "node:util";
20310
20471
  import { createRequire as createRequire3 } from "node:module";
20311
- import { fileURLToPath as fileURLToPath5 } from "node:url";
20312
- import { dirname as dirname8, join as join31 } from "node:path";
20472
+ import { fileURLToPath as fileURLToPath6 } from "node:url";
20473
+ import { dirname as dirname9, join as join31 } from "node:path";
20313
20474
 
20314
- // packages/cli/dist/cli.js
20475
+ // ../packages/cli/dist/cli.js
20315
20476
  import { createInterface } from "node:readline";
20316
20477
  function createCli(options) {
20317
20478
  return {
@@ -20350,10 +20511,10 @@ function createCli(options) {
20350
20511
  };
20351
20512
  }
20352
20513
 
20353
- // packages/cli/dist/args.js
20514
+ // ../packages/cli/dist/args.js
20354
20515
  import { parseArgs as nodeParseArgs } from "node:util";
20355
20516
 
20356
- // packages/cli/dist/types.js
20517
+ // ../packages/cli/dist/types.js
20357
20518
  var DEFAULT_OPTIONS = {
20358
20519
  model: "qwen-2.5-coder-32b",
20359
20520
  backendUrl: "http://localhost:8000/v1",
@@ -20363,7 +20524,7 @@ var DEFAULT_OPTIONS = {
20363
20524
  verbose: false
20364
20525
  };
20365
20526
 
20366
- // packages/cli/dist/args.js
20527
+ // ../packages/cli/dist/args.js
20367
20528
  function parseArgs(argv) {
20368
20529
  const { values } = nodeParseArgs({
20369
20530
  args: argv.slice(2),
@@ -20409,14 +20570,14 @@ Options:
20409
20570
  console.log(help.trim());
20410
20571
  }
20411
20572
 
20412
- // packages/cli/dist/index.js
20573
+ // ../packages/cli/dist/index.js
20413
20574
  init_config();
20414
20575
  init_spinner();
20415
20576
  init_output();
20416
20577
  function getVersion2() {
20417
20578
  try {
20418
20579
  const require2 = createRequire3(import.meta.url);
20419
- const pkgPath = join31(dirname8(fileURLToPath5(import.meta.url)), "..", "package.json");
20580
+ const pkgPath = join31(dirname9(fileURLToPath6(import.meta.url)), "..", "package.json");
20420
20581
  const pkg = require2(pkgPath);
20421
20582
  return pkg.version;
20422
20583
  } catch {