open-agents-ai 0.104.5 → 0.104.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +644 -507
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -39,7 +39,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
39
39
  mod
40
40
  ));
41
41
 
42
- // packages/cli/dist/config.js
42
+ // dist/config.js
43
43
  import { readFileSync, existsSync, mkdirSync, writeFileSync } from "node:fs";
44
44
  import { homedir } from "node:os";
45
45
  import { join } from "node:path";
@@ -126,7 +126,7 @@ function coerceConfigValue(key, value) {
126
126
  }
127
127
  var DEFAULT_CONFIG, VALID_BACKEND_TYPES;
128
128
  var init_config = __esm({
129
- "packages/cli/dist/config.js"() {
129
+ "dist/config.js"() {
130
130
  "use strict";
131
131
  DEFAULT_CONFIG = Object.freeze({
132
132
  backendUrl: "http://127.0.0.1:11434",
@@ -143,7 +143,7 @@ var init_config = __esm({
143
143
  }
144
144
  });
145
145
 
146
- // packages/cli/dist/ui/output.js
146
+ // dist/ui/output.js
147
147
  function ansi(code, text, tty) {
148
148
  return tty ? `\x1B[${code}m${text}\x1B[0m` : text;
149
149
  }
@@ -222,7 +222,7 @@ function printReport(opts) {
222
222
  }
223
223
  var isTTY, isStderrTTY, c, STATUS_ICON, STATUS_COLOR;
224
224
  var init_output = __esm({
225
- "packages/cli/dist/ui/output.js"() {
225
+ "dist/ui/output.js"() {
226
226
  "use strict";
227
227
  isTTY = process.stdout.isTTY;
228
228
  isStderrTTY = process.stderr.isTTY;
@@ -254,7 +254,7 @@ var init_output = __esm({
254
254
  }
255
255
  });
256
256
 
257
- // packages/cli/dist/updater.js
257
+ // dist/updater.js
258
258
  import { execSync } from "node:child_process";
259
259
  import { existsSync as existsSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
260
260
  import { join as join2 } from "node:path";
@@ -362,7 +362,7 @@ function formatUpdateBanner(info) {
362
362
  }
363
363
  var PACKAGE_NAME, CHECK_INTERVAL_MS, CACHE_DIR, CACHE_FILE;
364
364
  var init_updater = __esm({
365
- "packages/cli/dist/updater.js"() {
365
+ "dist/updater.js"() {
366
366
  "use strict";
367
367
  PACKAGE_NAME = "open-agents-ai";
368
368
  CHECK_INTERVAL_MS = 60 * 60 * 1e3;
@@ -371,10 +371,10 @@ var init_updater = __esm({
371
371
  }
372
372
  });
373
373
 
374
- // packages/cli/dist/ui/spinner.js
374
+ // dist/ui/spinner.js
375
375
  var FRAMES, INTERVAL_MS, Spinner;
376
376
  var init_spinner = __esm({
377
- "packages/cli/dist/ui/spinner.js"() {
377
+ "dist/ui/spinner.js"() {
378
378
  "use strict";
379
379
  FRAMES = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
380
380
  INTERVAL_MS = 80;
@@ -472,10 +472,10 @@ var init_spinner = __esm({
472
472
  }
473
473
  });
474
474
 
475
- // packages/backend-vllm/dist/sleep.js
475
+ // ../backend-vllm/dist/sleep.js
476
476
  var SleepManager;
477
477
  var init_sleep = __esm({
478
- "packages/backend-vllm/dist/sleep.js"() {
478
+ "../backend-vllm/dist/sleep.js"() {
479
479
  "use strict";
480
480
  SleepManager = class {
481
481
  baseUrl;
@@ -551,7 +551,7 @@ var init_sleep = __esm({
551
551
  }
552
552
  });
553
553
 
554
- // packages/backend-vllm/dist/normalizeUrl.js
554
+ // ../backend-vllm/dist/normalizeUrl.js
555
555
  function normalizeBaseUrl(url) {
556
556
  let u = url.trim();
557
557
  u = u.replace(/\/+$/, "");
@@ -583,7 +583,7 @@ function detectProvider(url) {
583
583
  }
584
584
  var PROVIDERS;
585
585
  var init_normalizeUrl = __esm({
586
- "packages/backend-vllm/dist/normalizeUrl.js"() {
586
+ "../backend-vllm/dist/normalizeUrl.js"() {
587
587
  "use strict";
588
588
  PROVIDERS = [
589
589
  // --- Cloud providers (specific domains) ---
@@ -652,7 +652,7 @@ var init_normalizeUrl = __esm({
652
652
  }
653
653
  });
654
654
 
655
- // packages/backend-vllm/dist/VllmBackend.js
655
+ // ../backend-vllm/dist/VllmBackend.js
656
656
  function agentMessageToChatMessage(msg) {
657
657
  return {
658
658
  role: msg.role,
@@ -664,7 +664,7 @@ function buildEmptyUsage() {
664
664
  }
665
665
  var VllmBackend;
666
666
  var init_VllmBackend = __esm({
667
- "packages/backend-vllm/dist/VllmBackend.js"() {
667
+ "../backend-vllm/dist/VllmBackend.js"() {
668
668
  "use strict";
669
669
  init_sleep();
670
670
  init_normalizeUrl();
@@ -807,7 +807,7 @@ var init_VllmBackend = __esm({
807
807
  }
808
808
  });
809
809
 
810
- // packages/backend-vllm/dist/OllamaBackend.js
810
+ // ../backend-vllm/dist/OllamaBackend.js
811
811
  function agentMessageToChatMessage2(msg) {
812
812
  return {
813
813
  role: msg.role,
@@ -819,7 +819,7 @@ function buildEmptyUsage2() {
819
819
  }
820
820
  var OllamaBackend;
821
821
  var init_OllamaBackend = __esm({
822
- "packages/backend-vllm/dist/OllamaBackend.js"() {
822
+ "../backend-vllm/dist/OllamaBackend.js"() {
823
823
  "use strict";
824
824
  init_normalizeUrl();
825
825
  OllamaBackend = class _OllamaBackend {
@@ -998,7 +998,7 @@ var init_OllamaBackend = __esm({
998
998
  }
999
999
  });
1000
1000
 
1001
- // packages/backend-vllm/dist/FakeBackend.js
1001
+ // ../backend-vllm/dist/FakeBackend.js
1002
1002
  function fnv1a32(input) {
1003
1003
  const FNV_PRIME = 16777619;
1004
1004
  const FNV_OFFSET_BASIS = 2166136261;
@@ -1011,7 +1011,7 @@ function fnv1a32(input) {
1011
1011
  }
1012
1012
  var FakeBackend;
1013
1013
  var init_FakeBackend = __esm({
1014
- "packages/backend-vllm/dist/FakeBackend.js"() {
1014
+ "../backend-vllm/dist/FakeBackend.js"() {
1015
1015
  "use strict";
1016
1016
  FakeBackend = class {
1017
1017
  options;
@@ -1111,7 +1111,7 @@ var init_FakeBackend = __esm({
1111
1111
  }
1112
1112
  });
1113
1113
 
1114
- // packages/backend-vllm/dist/backendFactory.js
1114
+ // ../backend-vllm/dist/backendFactory.js
1115
1115
  function detectBackendType(baseUrl) {
1116
1116
  if (!baseUrl) {
1117
1117
  return "ollama";
@@ -1150,7 +1150,7 @@ function createBackend(opts) {
1150
1150
  }
1151
1151
  }
1152
1152
  var init_backendFactory = __esm({
1153
- "packages/backend-vllm/dist/backendFactory.js"() {
1153
+ "../backend-vllm/dist/backendFactory.js"() {
1154
1154
  "use strict";
1155
1155
  init_OllamaBackend();
1156
1156
  init_VllmBackend();
@@ -1158,7 +1158,7 @@ var init_backendFactory = __esm({
1158
1158
  }
1159
1159
  });
1160
1160
 
1161
- // packages/backend-vllm/dist/metrics.js
1161
+ // ../backend-vllm/dist/metrics.js
1162
1162
  function parseMetricValue(prometheusText, metricName) {
1163
1163
  const lines = prometheusText.split("\n");
1164
1164
  for (const line of lines) {
@@ -1179,7 +1179,7 @@ function parseMetricValue(prometheusText, metricName) {
1179
1179
  }
1180
1180
  var MetricsCollector;
1181
1181
  var init_metrics = __esm({
1182
- "packages/backend-vllm/dist/metrics.js"() {
1182
+ "../backend-vllm/dist/metrics.js"() {
1183
1183
  "use strict";
1184
1184
  MetricsCollector = class {
1185
1185
  metricsUrl;
@@ -1234,16 +1234,16 @@ var init_metrics = __esm({
1234
1234
  }
1235
1235
  });
1236
1236
 
1237
- // packages/backend-vllm/dist/routing.js
1237
+ // ../backend-vllm/dist/routing.js
1238
1238
  var init_routing = __esm({
1239
- "packages/backend-vllm/dist/routing.js"() {
1239
+ "../backend-vllm/dist/routing.js"() {
1240
1240
  "use strict";
1241
1241
  }
1242
1242
  });
1243
1243
 
1244
- // packages/backend-vllm/dist/index.js
1244
+ // ../backend-vllm/dist/index.js
1245
1245
  var init_dist = __esm({
1246
- "packages/backend-vllm/dist/index.js"() {
1246
+ "../backend-vllm/dist/index.js"() {
1247
1247
  "use strict";
1248
1248
  init_VllmBackend();
1249
1249
  init_OllamaBackend();
@@ -1256,10 +1256,10 @@ var init_dist = __esm({
1256
1256
  }
1257
1257
  });
1258
1258
 
1259
- // packages/execution/dist/tool-executor.js
1259
+ // ../execution/dist/tool-executor.js
1260
1260
  var DEFAULT_CONFIG2, ToolExecutor;
1261
1261
  var init_tool_executor = __esm({
1262
- "packages/execution/dist/tool-executor.js"() {
1262
+ "../execution/dist/tool-executor.js"() {
1263
1263
  "use strict";
1264
1264
  DEFAULT_CONFIG2 = {
1265
1265
  workingDir: ".",
@@ -1312,11 +1312,11 @@ var init_tool_executor = __esm({
1312
1312
  }
1313
1313
  });
1314
1314
 
1315
- // packages/execution/dist/tools/shell.js
1315
+ // ../execution/dist/tools/shell.js
1316
1316
  import { spawn } from "node:child_process";
1317
1317
  var PERMISSION_ERROR_RE, ShellTool;
1318
1318
  var init_shell = __esm({
1319
- "packages/execution/dist/tools/shell.js"() {
1319
+ "../execution/dist/tools/shell.js"() {
1320
1320
  "use strict";
1321
1321
  PERMISSION_ERROR_RE = /Permission denied|Operation not permitted|EACCES|EPERM|PermissionError|sudo:|not permitted|password is required|authentication failure/i;
1322
1322
  ShellTool = class {
@@ -1523,7 +1523,7 @@ ${stderr}` : ""),
1523
1523
  }
1524
1524
  });
1525
1525
 
1526
- // packages/execution/dist/tools/file-read.js
1526
+ // ../execution/dist/tools/file-read.js
1527
1527
  import { readFile } from "node:fs/promises";
1528
1528
  import { resolve } from "node:path";
1529
1529
  function extractPath(args) {
@@ -1552,7 +1552,7 @@ function extractPath(args) {
1552
1552
  }
1553
1553
  var FileReadTool;
1554
1554
  var init_file_read = __esm({
1555
- "packages/execution/dist/tools/file-read.js"() {
1555
+ "../execution/dist/tools/file-read.js"() {
1556
1556
  "use strict";
1557
1557
  FileReadTool = class {
1558
1558
  name = "file_read";
@@ -1640,7 +1640,7 @@ var init_file_read = __esm({
1640
1640
  }
1641
1641
  });
1642
1642
 
1643
- // packages/execution/dist/tools/file-write.js
1643
+ // ../execution/dist/tools/file-write.js
1644
1644
  import { writeFile, mkdir } from "node:fs/promises";
1645
1645
  import { resolve as resolve2, dirname } from "node:path";
1646
1646
  function extractWritePath(args) {
@@ -1653,7 +1653,7 @@ function extractWritePath(args) {
1653
1653
  }
1654
1654
  var FileWriteTool;
1655
1655
  var init_file_write = __esm({
1656
- "packages/execution/dist/tools/file-write.js"() {
1656
+ "../execution/dist/tools/file-write.js"() {
1657
1657
  "use strict";
1658
1658
  FileWriteTool = class {
1659
1659
  name = "file_write";
@@ -1712,13 +1712,13 @@ var init_file_write = __esm({
1712
1712
  }
1713
1713
  });
1714
1714
 
1715
- // packages/execution/dist/tools/grep-search.js
1715
+ // ../execution/dist/tools/grep-search.js
1716
1716
  import { execFile } from "node:child_process";
1717
1717
  import { promisify } from "node:util";
1718
1718
  import { resolve as resolve3 } from "node:path";
1719
1719
  var execFileAsync, MAX_OUTPUT_LINES, GrepSearchTool;
1720
1720
  var init_grep_search = __esm({
1721
- "packages/execution/dist/tools/grep-search.js"() {
1721
+ "../execution/dist/tools/grep-search.js"() {
1722
1722
  "use strict";
1723
1723
  execFileAsync = promisify(execFile);
1724
1724
  MAX_OUTPUT_LINES = 100;
@@ -1817,13 +1817,13 @@ var init_grep_search = __esm({
1817
1817
  }
1818
1818
  });
1819
1819
 
1820
- // packages/execution/dist/tools/glob-find.js
1820
+ // ../execution/dist/tools/glob-find.js
1821
1821
  import { execFile as execFile2 } from "node:child_process";
1822
1822
  import { promisify as promisify2 } from "node:util";
1823
1823
  import { resolve as resolve4 } from "node:path";
1824
1824
  var execFileAsync2, MAX_RESULTS, GlobFindTool;
1825
1825
  var init_glob_find = __esm({
1826
- "packages/execution/dist/tools/glob-find.js"() {
1826
+ "../execution/dist/tools/glob-find.js"() {
1827
1827
  "use strict";
1828
1828
  execFileAsync2 = promisify2(execFile2);
1829
1829
  MAX_RESULTS = 50;
@@ -1894,10 +1894,10 @@ var init_glob_find = __esm({
1894
1894
  }
1895
1895
  });
1896
1896
 
1897
- // packages/execution/dist/tools/web-fetch.js
1897
+ // ../execution/dist/tools/web-fetch.js
1898
1898
  var DEFAULT_MAX_LENGTH, JINA_READER_BASE, SHORT_CONTENT_THRESHOLD, WebFetchTool;
1899
1899
  var init_web_fetch = __esm({
1900
- "packages/execution/dist/tools/web-fetch.js"() {
1900
+ "../execution/dist/tools/web-fetch.js"() {
1901
1901
  "use strict";
1902
1902
  DEFAULT_MAX_LENGTH = 5e3;
1903
1903
  JINA_READER_BASE = "https://r.jina.ai/";
@@ -2024,7 +2024,7 @@ ${jinaResult.output}`;
2024
2024
  }
2025
2025
  });
2026
2026
 
2027
- // packages/execution/dist/tools/web-search.js
2027
+ // ../execution/dist/tools/web-search.js
2028
2028
  function detectSearchProvider() {
2029
2029
  if (process.env["TAVILY_API_KEY"])
2030
2030
  return "tavily";
@@ -2034,7 +2034,7 @@ function detectSearchProvider() {
2034
2034
  }
2035
2035
  var DEFAULT_NUM_RESULTS, DUCKDUCKGO_HTML_URL, TAVILY_API_URL, JINA_SEARCH_URL, WebSearchTool;
2036
2036
  var init_web_search = __esm({
2037
- "packages/execution/dist/tools/web-search.js"() {
2037
+ "../execution/dist/tools/web-search.js"() {
2038
2038
  "use strict";
2039
2039
  DEFAULT_NUM_RESULTS = 5;
2040
2040
  DUCKDUCKGO_HTML_URL = "https://html.duckduckgo.com/html/";
@@ -2298,14 +2298,14 @@ ${formatted}`,
2298
2298
  }
2299
2299
  });
2300
2300
 
2301
- // packages/execution/dist/tools/web-crawl.js
2301
+ // ../execution/dist/tools/web-crawl.js
2302
2302
  import { execFile as execFile3 } from "node:child_process";
2303
2303
  import { dirname as dirname2, join as join3 } from "node:path";
2304
2304
  import { fileURLToPath } from "node:url";
2305
2305
  import { existsSync as existsSync3 } from "node:fs";
2306
2306
  var DEFAULT_MAX_LENGTH2, WebCrawlTool;
2307
2307
  var init_web_crawl = __esm({
2308
- "packages/execution/dist/tools/web-crawl.js"() {
2308
+ "../execution/dist/tools/web-crawl.js"() {
2309
2309
  "use strict";
2310
2310
  DEFAULT_MAX_LENGTH2 = 8e3;
2311
2311
  WebCrawlTool = class {
@@ -2613,7 +2613,7 @@ ${JSON.stringify(extracted, null, 2)}`);
2613
2613
  }
2614
2614
  });
2615
2615
 
2616
- // packages/execution/dist/tools/file-edit.js
2616
+ // ../execution/dist/tools/file-edit.js
2617
2617
  import { readFile as readFile2, writeFile as writeFile2 } from "node:fs/promises";
2618
2618
  import { resolve as resolve5 } from "node:path";
2619
2619
  function extractEditPath(args) {
@@ -2648,7 +2648,7 @@ function replaceAllOccurrences(haystack, needle, replacement) {
2648
2648
  }
2649
2649
  var FileEditTool;
2650
2650
  var init_file_edit = __esm({
2651
- "packages/execution/dist/tools/file-edit.js"() {
2651
+ "../execution/dist/tools/file-edit.js"() {
2652
2652
  "use strict";
2653
2653
  FileEditTool = class {
2654
2654
  name = "file_edit";
@@ -2758,12 +2758,12 @@ var init_file_edit = __esm({
2758
2758
  }
2759
2759
  });
2760
2760
 
2761
- // packages/execution/dist/tools/memory-read.js
2761
+ // ../execution/dist/tools/memory-read.js
2762
2762
  import { readFile as readFile3 } from "node:fs/promises";
2763
2763
  import { resolve as resolve6, join as join4 } from "node:path";
2764
2764
  var MemoryReadTool;
2765
2765
  var init_memory_read = __esm({
2766
- "packages/execution/dist/tools/memory-read.js"() {
2766
+ "../execution/dist/tools/memory-read.js"() {
2767
2767
  "use strict";
2768
2768
  MemoryReadTool = class {
2769
2769
  name = "memory_read";
@@ -2853,13 +2853,13 @@ ${JSON.stringify(entries, null, 2)}`,
2853
2853
  }
2854
2854
  });
2855
2855
 
2856
- // packages/execution/dist/tools/memory-write.js
2856
+ // ../execution/dist/tools/memory-write.js
2857
2857
  import { readFile as readFile4, writeFile as writeFile3, mkdir as mkdir2 } from "node:fs/promises";
2858
2858
  import { resolve as resolve7, join as join5 } from "node:path";
2859
2859
  import { randomBytes } from "node:crypto";
2860
2860
  var MemoryWriteTool;
2861
2861
  var init_memory_write = __esm({
2862
- "packages/execution/dist/tools/memory-write.js"() {
2862
+ "../execution/dist/tools/memory-write.js"() {
2863
2863
  "use strict";
2864
2864
  MemoryWriteTool = class {
2865
2865
  name = "memory_write";
@@ -2944,7 +2944,7 @@ var init_memory_write = __esm({
2944
2944
  }
2945
2945
  });
2946
2946
 
2947
- // packages/execution/dist/tools/memory-search.js
2947
+ // ../execution/dist/tools/memory-search.js
2948
2948
  import { readFile as readFile5, readdir } from "node:fs/promises";
2949
2949
  import { resolve as resolve8, join as join6, basename } from "node:path";
2950
2950
  import { existsSync as existsSync4 } from "node:fs";
@@ -3050,7 +3050,7 @@ function tokenize(text) {
3050
3050
  }
3051
3051
  var MemorySearchTool;
3052
3052
  var init_memory_search = __esm({
3053
- "packages/execution/dist/tools/memory-search.js"() {
3053
+ "../execution/dist/tools/memory-search.js"() {
3054
3054
  "use strict";
3055
3055
  MemorySearchTool = class {
3056
3056
  name = "memory_search";
@@ -3174,10 +3174,10 @@ Try broader terms or use memory_read with a specific topic.`,
3174
3174
  }
3175
3175
  });
3176
3176
 
3177
- // packages/execution/dist/tools/explore-tools.js
3177
+ // ../execution/dist/tools/explore-tools.js
3178
3178
  var TOOL_CATALOG, ExploreToolsTool;
3179
3179
  var init_explore_tools = __esm({
3180
- "packages/execution/dist/tools/explore-tools.js"() {
3180
+ "../execution/dist/tools/explore-tools.js"() {
3181
3181
  "use strict";
3182
3182
  TOOL_CATALOG = {
3183
3183
  grep_search: "Search file contents with regex patterns",
@@ -3341,12 +3341,12 @@ Examples:`);
3341
3341
  }
3342
3342
  });
3343
3343
 
3344
- // packages/execution/dist/tools/list-directory.js
3344
+ // ../execution/dist/tools/list-directory.js
3345
3345
  import { readdirSync, statSync } from "node:fs";
3346
3346
  import { resolve as resolve9, join as join7 } from "node:path";
3347
3347
  var EXCLUDED, MAX_ENTRIES, ListDirectoryTool;
3348
3348
  var init_list_directory = __esm({
3349
- "packages/execution/dist/tools/list-directory.js"() {
3349
+ "../execution/dist/tools/list-directory.js"() {
3350
3350
  "use strict";
3351
3351
  EXCLUDED = /* @__PURE__ */ new Set(["node_modules", ".git"]);
3352
3352
  MAX_ENTRIES = 100;
@@ -3428,11 +3428,11 @@ var init_list_directory = __esm({
3428
3428
  }
3429
3429
  });
3430
3430
 
3431
- // packages/execution/dist/tools/aiwg-setup.js
3431
+ // ../execution/dist/tools/aiwg-setup.js
3432
3432
  import { execSync as execSync2 } from "node:child_process";
3433
3433
  var AiwgSetupTool;
3434
3434
  var init_aiwg_setup = __esm({
3435
- "packages/execution/dist/tools/aiwg-setup.js"() {
3435
+ "../execution/dist/tools/aiwg-setup.js"() {
3436
3436
  "use strict";
3437
3437
  AiwgSetupTool = class {
3438
3438
  name = "aiwg_setup";
@@ -3506,13 +3506,13 @@ ${output}`,
3506
3506
  }
3507
3507
  });
3508
3508
 
3509
- // packages/execution/dist/tools/aiwg-health.js
3509
+ // ../execution/dist/tools/aiwg-health.js
3510
3510
  import { execSync as execSync3 } from "node:child_process";
3511
3511
  import { existsSync as existsSync5, readdirSync as readdirSync2, readFileSync as readFileSync3, statSync as statSync2 } from "node:fs";
3512
3512
  import { join as join8 } from "node:path";
3513
3513
  var AiwgHealthTool;
3514
3514
  var init_aiwg_health = __esm({
3515
- "packages/execution/dist/tools/aiwg-health.js"() {
3515
+ "../execution/dist/tools/aiwg-health.js"() {
3516
3516
  "use strict";
3517
3517
  AiwgHealthTool = class {
3518
3518
  name = "aiwg_health";
@@ -3718,11 +3718,11 @@ var init_aiwg_health = __esm({
3718
3718
  }
3719
3719
  });
3720
3720
 
3721
- // packages/execution/dist/tools/aiwg-workflow.js
3721
+ // ../execution/dist/tools/aiwg-workflow.js
3722
3722
  import { execSync as execSync4 } from "node:child_process";
3723
3723
  var AiwgWorkflowTool;
3724
3724
  var init_aiwg_workflow = __esm({
3725
- "packages/execution/dist/tools/aiwg-workflow.js"() {
3725
+ "../execution/dist/tools/aiwg-workflow.js"() {
3726
3726
  "use strict";
3727
3727
  AiwgWorkflowTool = class {
3728
3728
  name = "aiwg_workflow";
@@ -3803,7 +3803,7 @@ var init_aiwg_workflow = __esm({
3803
3803
  }
3804
3804
  });
3805
3805
 
3806
- // packages/execution/dist/tools/batch-edit.js
3806
+ // ../execution/dist/tools/batch-edit.js
3807
3807
  import { readFile as readFile6, writeFile as writeFile4 } from "node:fs/promises";
3808
3808
  import { resolve as resolve10 } from "node:path";
3809
3809
  function countOccurrences2(haystack, needle) {
@@ -3817,7 +3817,7 @@ function countOccurrences2(haystack, needle) {
3817
3817
  }
3818
3818
  var BatchEditTool;
3819
3819
  var init_batch_edit = __esm({
3820
- "packages/execution/dist/tools/batch-edit.js"() {
3820
+ "../execution/dist/tools/batch-edit.js"() {
3821
3821
  "use strict";
3822
3822
  BatchEditTool = class {
3823
3823
  name = "batch_edit";
@@ -3929,12 +3929,12 @@ ${results.join("\n")}`,
3929
3929
  }
3930
3930
  });
3931
3931
 
3932
- // packages/execution/dist/tools/file-patch.js
3932
+ // ../execution/dist/tools/file-patch.js
3933
3933
  import { readFile as readFile7, writeFile as writeFile5, copyFile } from "node:fs/promises";
3934
3934
  import { resolve as resolve11 } from "node:path";
3935
3935
  var FilePatchTool;
3936
3936
  var init_file_patch = __esm({
3937
- "packages/execution/dist/tools/file-patch.js"() {
3937
+ "../execution/dist/tools/file-patch.js"() {
3938
3938
  "use strict";
3939
3939
  FilePatchTool = class {
3940
3940
  name = "file_patch";
@@ -4101,12 +4101,12 @@ ${diff}`,
4101
4101
  }
4102
4102
  });
4103
4103
 
4104
- // packages/execution/dist/tools/codebase-map.js
4104
+ // ../execution/dist/tools/codebase-map.js
4105
4105
  import { readdirSync as readdirSync3, statSync as statSync3, readFileSync as readFileSync4, existsSync as existsSync6 } from "node:fs";
4106
4106
  import { join as join9, relative, extname } from "node:path";
4107
4107
  var CodebaseMapTool;
4108
4108
  var init_codebase_map = __esm({
4109
- "packages/execution/dist/tools/codebase-map.js"() {
4109
+ "../execution/dist/tools/codebase-map.js"() {
4110
4110
  "use strict";
4111
4111
  CodebaseMapTool = class {
4112
4112
  name = "codebase_map";
@@ -4389,13 +4389,13 @@ var init_codebase_map = __esm({
4389
4389
  }
4390
4390
  });
4391
4391
 
4392
- // packages/execution/dist/tools/diagnostic.js
4392
+ // ../execution/dist/tools/diagnostic.js
4393
4393
  import { execSync as execSync5 } from "node:child_process";
4394
4394
  import { existsSync as existsSync7, readFileSync as readFileSync5 } from "node:fs";
4395
4395
  import { join as join10 } from "node:path";
4396
4396
  var DiagnosticTool;
4397
4397
  var init_diagnostic = __esm({
4398
- "packages/execution/dist/tools/diagnostic.js"() {
4398
+ "../execution/dist/tools/diagnostic.js"() {
4399
4399
  "use strict";
4400
4400
  DiagnosticTool = class {
4401
4401
  name = "diagnostic";
@@ -4534,13 +4534,13 @@ ${err.stderr ?? ""}`.trim(),
4534
4534
  }
4535
4535
  });
4536
4536
 
4537
- // packages/execution/dist/tools/git-info.js
4537
+ // ../execution/dist/tools/git-info.js
4538
4538
  import { execSync as execSync6 } from "node:child_process";
4539
4539
  import { existsSync as existsSync8 } from "node:fs";
4540
4540
  import { join as join11 } from "node:path";
4541
4541
  var GitInfoTool;
4542
4542
  var init_git_info = __esm({
4543
- "packages/execution/dist/tools/git-info.js"() {
4543
+ "../execution/dist/tools/git-info.js"() {
4544
4544
  "use strict";
4545
4545
  GitInfoTool = class {
4546
4546
  name = "git_info";
@@ -4665,7 +4665,7 @@ var init_git_info = __esm({
4665
4665
  }
4666
4666
  });
4667
4667
 
4668
- // packages/execution/dist/tools/background-task.js
4668
+ // ../execution/dist/tools/background-task.js
4669
4669
  import { spawn as spawn2 } from "node:child_process";
4670
4670
  function toInfo(entry) {
4671
4671
  return {
@@ -4681,7 +4681,7 @@ function toInfo(entry) {
4681
4681
  }
4682
4682
  var BackgroundTaskManager, BackgroundRunTool, TaskStatusTool, TaskOutputTool, TaskStopTool;
4683
4683
  var init_background_task = __esm({
4684
- "packages/execution/dist/tools/background-task.js"() {
4684
+ "../execution/dist/tools/background-task.js"() {
4685
4685
  "use strict";
4686
4686
  BackgroundTaskManager = class {
4687
4687
  tasks = /* @__PURE__ */ new Map();
@@ -4971,7 +4971,7 @@ Exit code: ${task.exitCode ?? "N/A"}`,
4971
4971
  }
4972
4972
  });
4973
4973
 
4974
- // packages/execution/dist/system-deps.js
4974
+ // ../execution/dist/system-deps.js
4975
4975
  import { execSync as execSync7 } from "node:child_process";
4976
4976
  function detectPackageManager() {
4977
4977
  if (_detectedPkgManager !== void 0)
@@ -5163,7 +5163,7 @@ function resetDepCache() {
5163
5163
  }
5164
5164
  var DESKTOP_DEPS, _detectedPkgManager, _cache, _sudoPassword;
5165
5165
  var init_system_deps = __esm({
5166
- "packages/execution/dist/system-deps.js"() {
5166
+ "../execution/dist/system-deps.js"() {
5167
5167
  "use strict";
5168
5168
  DESKTOP_DEPS = [
5169
5169
  {
@@ -5214,7 +5214,7 @@ var init_system_deps = __esm({
5214
5214
  }
5215
5215
  });
5216
5216
 
5217
- // packages/execution/dist/tools/image.js
5217
+ // ../execution/dist/tools/image.js
5218
5218
  import { existsSync as existsSync9, readFileSync as readFileSync6, statSync as statSync4 } from "node:fs";
5219
5219
  import { resolve as resolve12, extname as extname2, basename as basename2 } from "node:path";
5220
5220
  import { execSync as execSync8 } from "node:child_process";
@@ -5303,7 +5303,7 @@ function runOCR(filePath) {
5303
5303
  }
5304
5304
  var IMAGE_EXTENSIONS, ImageReadTool, ScreenshotTool, OCRTool;
5305
5305
  var init_image = __esm({
5306
- "packages/execution/dist/tools/image.js"() {
5306
+ "../execution/dist/tools/image.js"() {
5307
5307
  "use strict";
5308
5308
  init_system_deps();
5309
5309
  IMAGE_EXTENSIONS = /* @__PURE__ */ new Set([
@@ -5593,7 +5593,7 @@ ${text}`,
5593
5593
  }
5594
5594
  });
5595
5595
 
5596
- // packages/execution/dist/tools/custom-tool.js
5596
+ // ../execution/dist/tools/custom-tool.js
5597
5597
  var custom_tool_exports = {};
5598
5598
  __export(custom_tool_exports, {
5599
5599
  CustomTool: () => CustomTool,
@@ -5696,7 +5696,7 @@ function loadFromDirectory(dir) {
5696
5696
  }
5697
5697
  var CustomTool;
5698
5698
  var init_custom_tool = __esm({
5699
- "packages/execution/dist/tools/custom-tool.js"() {
5699
+ "../execution/dist/tools/custom-tool.js"() {
5700
5700
  "use strict";
5701
5701
  CustomTool = class {
5702
5702
  name;
@@ -5805,10 +5805,10 @@ ${stderr}` : ""),
5805
5805
  }
5806
5806
  });
5807
5807
 
5808
- // packages/execution/dist/tools/tool-creator.js
5808
+ // ../execution/dist/tools/tool-creator.js
5809
5809
  var CreateToolTool, ManageToolsTool;
5810
5810
  var init_tool_creator = __esm({
5811
- "packages/execution/dist/tools/tool-creator.js"() {
5811
+ "../execution/dist/tools/tool-creator.js"() {
5812
5812
  "use strict";
5813
5813
  init_custom_tool();
5814
5814
  CreateToolTool = class {
@@ -6099,7 +6099,7 @@ var init_tool_creator = __esm({
6099
6099
  }
6100
6100
  });
6101
6101
 
6102
- // packages/execution/dist/tools/skill-tools.js
6102
+ // ../execution/dist/tools/skill-tools.js
6103
6103
  import { existsSync as existsSync11, readdirSync as readdirSync5, readFileSync as readFileSync8 } from "node:fs";
6104
6104
  import { join as join14, basename as basename3, dirname as dirname3 } from "node:path";
6105
6105
  import { homedir as homedir5 } from "node:os";
@@ -6414,7 +6414,7 @@ function parseTriggers(filePath) {
6414
6414
  }
6415
6415
  var _cachedAiwgPkgRoot, SkillListTool, SkillExecuteTool;
6416
6416
  var init_skill_tools = __esm({
6417
- "packages/execution/dist/tools/skill-tools.js"() {
6417
+ "../execution/dist/tools/skill-tools.js"() {
6418
6418
  "use strict";
6419
6419
  SkillListTool = class {
6420
6420
  name = "skill_list";
@@ -6539,7 +6539,7 @@ ${content}`,
6539
6539
  }
6540
6540
  });
6541
6541
 
6542
- // packages/execution/dist/tools/skill-builder.js
6542
+ // ../execution/dist/tools/skill-builder.js
6543
6543
  import { existsSync as existsSync12, mkdirSync as mkdirSync4, readFileSync as readFileSync9, writeFileSync as writeFileSync4 } from "node:fs";
6544
6544
  import { join as join15, dirname as dirname4 } from "node:path";
6545
6545
  function loadBuilderPrompt(name, vars) {
@@ -6577,7 +6577,7 @@ function extractJSON(text) {
6577
6577
  }
6578
6578
  var SkillBuildTool;
6579
6579
  var init_skill_builder = __esm({
6580
- "packages/execution/dist/tools/skill-builder.js"() {
6580
+ "../execution/dist/tools/skill-builder.js"() {
6581
6581
  "use strict";
6582
6582
  SkillBuildTool = class {
6583
6583
  name = "skill_build";
@@ -6784,7 +6784,7 @@ ${content}`
6784
6784
  }
6785
6785
  });
6786
6786
 
6787
- // packages/execution/dist/tools/transcribe-tool.js
6787
+ // ../execution/dist/tools/transcribe-tool.js
6788
6788
  import { existsSync as existsSync13, mkdirSync as mkdirSync5, writeFileSync as writeFileSync5, readFileSync as readFileSync10, unlinkSync } from "node:fs";
6789
6789
  import { join as join16, basename as basename4, extname as extname3, resolve as resolve13 } from "node:path";
6790
6790
  import { homedir as homedir6 } from "node:os";
@@ -6837,7 +6837,7 @@ function formatTime(seconds) {
6837
6837
  }
6838
6838
  var AUDIO_EXTS, VIDEO_EXTS, _tcModule, _tcChecked, TranscribeFileTool, TranscribeUrlTool;
6839
6839
  var init_transcribe_tool = __esm({
6840
- "packages/execution/dist/tools/transcribe-tool.js"() {
6840
+ "../execution/dist/tools/transcribe-tool.js"() {
6841
6841
  "use strict";
6842
6842
  AUDIO_EXTS = /* @__PURE__ */ new Set([
6843
6843
  ".mp3",
@@ -7078,7 +7078,7 @@ ${result.output}`,
7078
7078
  }
7079
7079
  });
7080
7080
 
7081
- // packages/execution/dist/tools/structured-file.js
7081
+ // ../execution/dist/tools/structured-file.js
7082
7082
  import { writeFile as writeFile6, mkdir as mkdir3 } from "node:fs/promises";
7083
7083
  import { resolve as resolve14, dirname as dirname5, extname as extname4 } from "node:path";
7084
7084
  function jsonToCSV(data, separator = ",") {
@@ -7115,7 +7115,7 @@ function jsonToMarkdownTable(data) {
7115
7115
  }
7116
7116
  var StructuredFileTool;
7117
7117
  var init_structured_file = __esm({
7118
- "packages/execution/dist/tools/structured-file.js"() {
7118
+ "../execution/dist/tools/structured-file.js"() {
7119
7119
  "use strict";
7120
7120
  StructuredFileTool = class {
7121
7121
  name = "create_structured_file";
@@ -7258,7 +7258,7 @@ var init_structured_file = __esm({
7258
7258
  }
7259
7259
  });
7260
7260
 
7261
- // packages/execution/dist/tools/code-sandbox.js
7261
+ // ../execution/dist/tools/code-sandbox.js
7262
7262
  import { spawn as spawn5 } from "node:child_process";
7263
7263
  import { writeFile as writeFile7, mkdtemp, rm, readdir as readdir2, stat } from "node:fs/promises";
7264
7264
  import { join as join17 } from "node:path";
@@ -7339,7 +7339,7 @@ async function listCreatedFiles(dir) {
7339
7339
  }
7340
7340
  var LANGUAGE_CONFIG, CodeSandboxTool;
7341
7341
  var init_code_sandbox = __esm({
7342
- "packages/execution/dist/tools/code-sandbox.js"() {
7342
+ "../execution/dist/tools/code-sandbox.js"() {
7343
7343
  "use strict";
7344
7344
  LANGUAGE_CONFIG = {
7345
7345
  javascript: { ext: ".js", cmd: "node", args: (f) => [f] },
@@ -7511,7 +7511,7 @@ ${result.filesCreated.join("\n")}`);
7511
7511
  }
7512
7512
  });
7513
7513
 
7514
- // packages/execution/dist/tools/structured-read.js
7514
+ // ../execution/dist/tools/structured-read.js
7515
7515
  import { readFile as readFile8, stat as stat2 } from "node:fs/promises";
7516
7516
  import { resolve as resolve15, extname as extname5 } from "node:path";
7517
7517
  function parseCSV(text, separator = ",") {
@@ -7619,7 +7619,7 @@ function detectBinaryFormat(buffer) {
7619
7619
  }
7620
7620
  var StructuredReadTool;
7621
7621
  var init_structured_read = __esm({
7622
- "packages/execution/dist/tools/structured-read.js"() {
7622
+ "../execution/dist/tools/structured-read.js"() {
7623
7623
  "use strict";
7624
7624
  StructuredReadTool = class {
7625
7625
  name = "read_structured_file";
@@ -7846,7 +7846,7 @@ ${parts.join("\n\n")}`,
7846
7846
  }
7847
7847
  });
7848
7848
 
7849
- // packages/execution/dist/tools/vision.js
7849
+ // ../execution/dist/tools/vision.js
7850
7850
  import { readFileSync as readFileSync11, existsSync as existsSync14, statSync as statSync5 } from "node:fs";
7851
7851
  import { execSync as execSync11, spawn as spawn6 } from "node:child_process";
7852
7852
  import { resolve as resolve16, extname as extname6, basename as basename5, dirname as dirname6, join as join18 } from "node:path";
@@ -7997,7 +7997,7 @@ function loadImageBuffer(workingDir, rawPath) {
7997
7997
  }
7998
7998
  var moondreamClient, moondreamError, stationProcess, IMAGE_EXTENSIONS2, VisionTool;
7999
7999
  var init_vision = __esm({
8000
- "packages/execution/dist/tools/vision.js"() {
8000
+ "../execution/dist/tools/vision.js"() {
8001
8001
  "use strict";
8002
8002
  moondreamClient = null;
8003
8003
  moondreamError = null;
@@ -8220,7 +8220,7 @@ ${response}`, durationMs: performance.now() - start };
8220
8220
  }
8221
8221
  });
8222
8222
 
8223
- // packages/execution/dist/tools/desktop-click.js
8223
+ // ../execution/dist/tools/desktop-click.js
8224
8224
  import { readFileSync as readFileSync12, existsSync as existsSync15 } from "node:fs";
8225
8225
  import { execSync as execSync12 } from "node:child_process";
8226
8226
  import { tmpdir as tmpdir3 } from "node:os";
@@ -8373,7 +8373,7 @@ for i in range(${clicks}):
8373
8373
  }
8374
8374
  var __dirname2, DesktopClickTool, DesktopDescribeTool;
8375
8375
  var init_desktop_click = __esm({
8376
- "packages/execution/dist/tools/desktop-click.js"() {
8376
+ "../execution/dist/tools/desktop-click.js"() {
8377
8377
  "use strict";
8378
8378
  init_system_deps();
8379
8379
  __dirname2 = dirname7(fileURLToPath3(import.meta.url));
@@ -8729,13 +8729,13 @@ Screen: ${dims.width}x${dims.height}`);
8729
8729
  }
8730
8730
  });
8731
8731
 
8732
- // packages/execution/dist/tools/ocr-pdf.js
8732
+ // ../execution/dist/tools/ocr-pdf.js
8733
8733
  import { existsSync as existsSync16, statSync as statSync6 } from "node:fs";
8734
8734
  import { resolve as resolve17, basename as basename6 } from "node:path";
8735
8735
  import { execSync as execSync13 } from "node:child_process";
8736
8736
  var OcrPdfTool;
8737
8737
  var init_ocr_pdf = __esm({
8738
- "packages/execution/dist/tools/ocr-pdf.js"() {
8738
+ "../execution/dist/tools/ocr-pdf.js"() {
8739
8739
  "use strict";
8740
8740
  init_system_deps();
8741
8741
  OcrPdfTool = class {
@@ -8852,14 +8852,14 @@ Language: ${language}
8852
8852
  }
8853
8853
  });
8854
8854
 
8855
- // packages/execution/dist/tools/pdf-to-text.js
8855
+ // ../execution/dist/tools/pdf-to-text.js
8856
8856
  import { existsSync as existsSync17, statSync as statSync7, readFileSync as readFileSync13, unlinkSync as unlinkSync2 } from "node:fs";
8857
8857
  import { resolve as resolve18, basename as basename7, join as join20 } from "node:path";
8858
8858
  import { execSync as execSync14 } from "node:child_process";
8859
8859
  import { tmpdir as tmpdir4 } from "node:os";
8860
8860
  var PdfToTextTool;
8861
8861
  var init_pdf_to_text = __esm({
8862
- "packages/execution/dist/tools/pdf-to-text.js"() {
8862
+ "../execution/dist/tools/pdf-to-text.js"() {
8863
8863
  "use strict";
8864
8864
  init_system_deps();
8865
8865
  PdfToTextTool = class {
@@ -9037,7 +9037,7 @@ ${text}`,
9037
9037
  }
9038
9038
  });
9039
9039
 
9040
- // packages/execution/dist/tools/ocr-image-advanced.js
9040
+ // ../execution/dist/tools/ocr-image-advanced.js
9041
9041
  import { existsSync as existsSync18, statSync as statSync8 } from "node:fs";
9042
9042
  import { resolve as resolve19, basename as basename8, dirname as dirname8, join as join21 } from "node:path";
9043
9043
  import { execSync as execSync15 } from "node:child_process";
@@ -9080,7 +9080,7 @@ function findPython() {
9080
9080
  }
9081
9081
  var OcrImageAdvancedTool;
9082
9082
  var init_ocr_image_advanced = __esm({
9083
- "packages/execution/dist/tools/ocr-image-advanced.js"() {
9083
+ "../execution/dist/tools/ocr-image-advanced.js"() {
9084
9084
  "use strict";
9085
9085
  init_system_deps();
9086
9086
  OcrImageAdvancedTool = class {
@@ -9340,7 +9340,7 @@ Note: Advanced Python pipeline not available \u2014 install pytesseract, opencv-
9340
9340
  }
9341
9341
  });
9342
9342
 
9343
- // packages/execution/dist/tools/browser-action.js
9343
+ // ../execution/dist/tools/browser-action.js
9344
9344
  import { execSync as execSync16, spawn as spawn7 } from "node:child_process";
9345
9345
  import { existsSync as existsSync19, readFileSync as readFileSync14 } from "node:fs";
9346
9346
  import { join as join22, dirname as dirname9 } from "node:path";
@@ -9445,7 +9445,7 @@ async function apiCall(endpoint, method = "POST", body) {
9445
9445
  }
9446
9446
  var __dirname3, DEFAULT_PORT, SCRAPE_SCRIPT, BASE_URL, serviceProcess, activeSessionId, BrowserActionTool;
9447
9447
  var init_browser_action = __esm({
9448
- "packages/execution/dist/tools/browser-action.js"() {
9448
+ "../execution/dist/tools/browser-action.js"() {
9449
9449
  "use strict";
9450
9450
  __dirname3 = dirname9(fileURLToPath5(import.meta.url));
9451
9451
  DEFAULT_PORT = 8130;
@@ -9606,7 +9606,7 @@ var init_browser_action = __esm({
9606
9606
  }
9607
9607
  });
9608
9608
 
9609
- // packages/execution/dist/tools/autoresearch.js
9609
+ // ../execution/dist/tools/autoresearch.js
9610
9610
  import { execSync as execSync17, spawn as spawn8 } from "node:child_process";
9611
9611
  import { existsSync as existsSync20, readFileSync as readFileSync15, writeFileSync as writeFileSync6, mkdirSync as mkdirSync6, appendFileSync, copyFileSync } from "node:fs";
9612
9612
  import { join as join23, resolve as resolve20, dirname as dirname10 } from "node:path";
@@ -9649,7 +9649,7 @@ function parseRunLog(logContent) {
9649
9649
  }
9650
9650
  var AutoresearchTool;
9651
9651
  var init_autoresearch = __esm({
9652
- "packages/execution/dist/tools/autoresearch.js"() {
9652
+ "../execution/dist/tools/autoresearch.js"() {
9653
9653
  "use strict";
9654
9654
  AutoresearchTool = class {
9655
9655
  repoRoot;
@@ -10126,7 +10126,7 @@ train.py reverted to last kept state. Ready for next experiment.`,
10126
10126
  }
10127
10127
  });
10128
10128
 
10129
- // packages/execution/dist/tools/scheduler.js
10129
+ // ../execution/dist/tools/scheduler.js
10130
10130
  import { execSync as execSync18, exec as execCb } from "node:child_process";
10131
10131
  import { readFile as readFile9, writeFile as writeFile8, mkdir as mkdir4 } from "node:fs/promises";
10132
10132
  import { resolve as resolve21, join as join24 } from "node:path";
@@ -10261,7 +10261,7 @@ async function saveStore(workingDir, store) {
10261
10261
  }
10262
10262
  var SCHEDULE_PRESETS, CRON_MARKER, SchedulerTool;
10263
10263
  var init_scheduler = __esm({
10264
- "packages/execution/dist/tools/scheduler.js"() {
10264
+ "../execution/dist/tools/scheduler.js"() {
10265
10265
  "use strict";
10266
10266
  SCHEDULE_PRESETS = {
10267
10267
  "every minute": "* * * * *",
@@ -10489,7 +10489,7 @@ ${truncated}`, durationMs: performance.now() - start };
10489
10489
  }
10490
10490
  });
10491
10491
 
10492
- // packages/execution/dist/tools/reminder.js
10492
+ // ../execution/dist/tools/reminder.js
10493
10493
  import { readFile as readFile10, writeFile as writeFile9, mkdir as mkdir5 } from "node:fs/promises";
10494
10494
  import { resolve as resolve22, join as join25 } from "node:path";
10495
10495
  import { randomBytes as randomBytes3 } from "node:crypto";
@@ -10583,7 +10583,7 @@ async function markRemindersSeen(workingDir, ids) {
10583
10583
  }
10584
10584
  var STORE_FILE, ReminderTool;
10585
10585
  var init_reminder = __esm({
10586
- "packages/execution/dist/tools/reminder.js"() {
10586
+ "../execution/dist/tools/reminder.js"() {
10587
10587
  "use strict";
10588
10588
  STORE_FILE = "reminders.json";
10589
10589
  ReminderTool = class {
@@ -10802,7 +10802,7 @@ var init_reminder = __esm({
10802
10802
  }
10803
10803
  });
10804
10804
 
10805
- // packages/execution/dist/tools/agenda.js
10805
+ // ../execution/dist/tools/agenda.js
10806
10806
  import { readFile as readFile11, writeFile as writeFile10, mkdir as mkdir6 } from "node:fs/promises";
10807
10807
  import { resolve as resolve23, join as join26 } from "node:path";
10808
10808
  import { randomBytes as randomBytes4 } from "node:crypto";
@@ -10837,7 +10837,7 @@ async function getActiveAttentionItems(workingDir) {
10837
10837
  }
10838
10838
  var AgendaTool;
10839
10839
  var init_agenda = __esm({
10840
- "packages/execution/dist/tools/agenda.js"() {
10840
+ "../execution/dist/tools/agenda.js"() {
10841
10841
  "use strict";
10842
10842
  init_reminder();
10843
10843
  AgendaTool = class {
@@ -11126,7 +11126,7 @@ ${sections.join("\n")}`,
11126
11126
  }
11127
11127
  });
11128
11128
 
11129
- // packages/execution/dist/tools/opencode.js
11129
+ // ../execution/dist/tools/opencode.js
11130
11130
  import { execSync as execSync19, spawn as spawn9 } from "node:child_process";
11131
11131
  import { existsSync as existsSync21 } from "node:fs";
11132
11132
  import { join as join27, resolve as resolve24 } from "node:path";
@@ -11187,7 +11187,7 @@ function installOpencode() {
11187
11187
  }
11188
11188
  var OpenCodeTool;
11189
11189
  var init_opencode = __esm({
11190
- "packages/execution/dist/tools/opencode.js"() {
11190
+ "../execution/dist/tools/opencode.js"() {
11191
11191
  "use strict";
11192
11192
  OpenCodeTool = class {
11193
11193
  name = "opencode";
@@ -11400,7 +11400,7 @@ var init_opencode = __esm({
11400
11400
  }
11401
11401
  });
11402
11402
 
11403
- // packages/execution/dist/tools/factory.js
11403
+ // ../execution/dist/tools/factory.js
11404
11404
  import { execSync as execSync20, spawn as spawn10 } from "node:child_process";
11405
11405
  import { existsSync as existsSync22 } from "node:fs";
11406
11406
  import { join as join28 } from "node:path";
@@ -11461,7 +11461,7 @@ function installDroid() {
11461
11461
  }
11462
11462
  var FactoryTool;
11463
11463
  var init_factory = __esm({
11464
- "packages/execution/dist/tools/factory.js"() {
11464
+ "../execution/dist/tools/factory.js"() {
11465
11465
  "use strict";
11466
11466
  FactoryTool = class {
11467
11467
  name = "factory";
@@ -11709,7 +11709,7 @@ var init_factory = __esm({
11709
11709
  }
11710
11710
  });
11711
11711
 
11712
- // packages/execution/dist/tools/cron-agent.js
11712
+ // ../execution/dist/tools/cron-agent.js
11713
11713
  import { execSync as execSync21 } from "node:child_process";
11714
11714
  import { readFile as readFile12, writeFile as writeFile11, mkdir as mkdir7 } from "node:fs/promises";
11715
11715
  import { resolve as resolve25, join as join29 } from "node:path";
@@ -11843,7 +11843,7 @@ async function saveStore2(workingDir, store) {
11843
11843
  }
11844
11844
  var LONG_HORIZON_PRESETS, CRON_AGENT_MARKER, CronAgentTool;
11845
11845
  var init_cron_agent = __esm({
11846
- "packages/execution/dist/tools/cron-agent.js"() {
11846
+ "../execution/dist/tools/cron-agent.js"() {
11847
11847
  "use strict";
11848
11848
  LONG_HORIZON_PRESETS = {
11849
11849
  "every hour": "0 * * * *",
@@ -12174,7 +12174,7 @@ ${truncated}`, durationMs: performance.now() - start };
12174
12174
  }
12175
12175
  });
12176
12176
 
12177
- // packages/execution/dist/tools/nexus.js
12177
+ // ../execution/dist/tools/nexus.js
12178
12178
  import { readFile as readFile13, writeFile as writeFile12, mkdir as mkdir8, chmod, unlink, readdir as readdir3, open as fsOpen } from "node:fs/promises";
12179
12179
  import { existsSync as existsSync23, readFileSync as readFileSync16, watch as fsWatchLocal } from "node:fs";
12180
12180
  import { resolve as resolve26, join as join30 } from "node:path";
@@ -12190,7 +12190,7 @@ function containsKeyMaterial(input) {
12190
12190
  }
12191
12191
  var DAEMON_SCRIPT, KEY_PATTERNS, NexusTool;
12192
12192
  var init_nexus = __esm({
12193
- "packages/execution/dist/tools/nexus.js"() {
12193
+ "../execution/dist/tools/nexus.js"() {
12194
12194
  "use strict";
12195
12195
  DAEMON_SCRIPT = `#!/usr/bin/env node
12196
12196
  /**
@@ -15217,7 +15217,7 @@ process.on('SIGINT', () => process.emit('SIGTERM'));
15217
15217
  }
15218
15218
  });
15219
15219
 
15220
- // packages/execution/dist/shellRunner.js
15220
+ // ../execution/dist/shellRunner.js
15221
15221
  import { spawn as spawn12 } from "node:child_process";
15222
15222
  async function runShell(options) {
15223
15223
  const { command, args = [], cwd: cwd4, env, timeoutMs = DEFAULT_TIMEOUT_MS } = options;
@@ -15271,13 +15271,13 @@ async function runShell(options) {
15271
15271
  }
15272
15272
  var DEFAULT_TIMEOUT_MS;
15273
15273
  var init_shellRunner = __esm({
15274
- "packages/execution/dist/shellRunner.js"() {
15274
+ "../execution/dist/shellRunner.js"() {
15275
15275
  "use strict";
15276
15276
  DEFAULT_TIMEOUT_MS = 6e4;
15277
15277
  }
15278
15278
  });
15279
15279
 
15280
- // packages/execution/dist/gitWorktree.js
15280
+ // ../execution/dist/gitWorktree.js
15281
15281
  async function createWorktree(options) {
15282
15282
  const { repoPath, worktreePath, branch, timeoutMs = DEFAULT_GIT_TIMEOUT_MS } = options;
15283
15283
  const result = await runShell({
@@ -15314,14 +15314,14 @@ async function removeWorktree(options) {
15314
15314
  }
15315
15315
  var DEFAULT_GIT_TIMEOUT_MS;
15316
15316
  var init_gitWorktree = __esm({
15317
- "packages/execution/dist/gitWorktree.js"() {
15317
+ "../execution/dist/gitWorktree.js"() {
15318
15318
  "use strict";
15319
15319
  init_shellRunner();
15320
15320
  DEFAULT_GIT_TIMEOUT_MS = 3e4;
15321
15321
  }
15322
15322
  });
15323
15323
 
15324
- // packages/execution/dist/patchApplier.js
15324
+ // ../execution/dist/patchApplier.js
15325
15325
  import { readFileSync as readFileSync17, writeFileSync as writeFileSync7, existsSync as existsSync24, mkdirSync as mkdirSync7 } from "node:fs";
15326
15326
  import { dirname as dirname11 } from "node:path";
15327
15327
  import { spawn as spawn13 } from "node:child_process";
@@ -15398,12 +15398,12 @@ function runWithStdin(options) {
15398
15398
  });
15399
15399
  }
15400
15400
  var init_patchApplier = __esm({
15401
- "packages/execution/dist/patchApplier.js"() {
15401
+ "../execution/dist/patchApplier.js"() {
15402
15402
  "use strict";
15403
15403
  }
15404
15404
  });
15405
15405
 
15406
- // packages/execution/dist/formatterRunner.js
15406
+ // ../execution/dist/formatterRunner.js
15407
15407
  function buildFormatterCommand(formatter, extraArgs) {
15408
15408
  switch (formatter) {
15409
15409
  case "prettier":
@@ -15454,13 +15454,13 @@ async function runFormatter(options) {
15454
15454
  };
15455
15455
  }
15456
15456
  var init_formatterRunner = __esm({
15457
- "packages/execution/dist/formatterRunner.js"() {
15457
+ "../execution/dist/formatterRunner.js"() {
15458
15458
  "use strict";
15459
15459
  init_shellRunner();
15460
15460
  }
15461
15461
  });
15462
15462
 
15463
- // packages/execution/dist/linterRunner.js
15463
+ // ../execution/dist/linterRunner.js
15464
15464
  function buildLinterCommand(linter, extraArgs) {
15465
15465
  switch (linter) {
15466
15466
  case "eslint":
@@ -15516,13 +15516,13 @@ async function runLinter(options) {
15516
15516
  };
15517
15517
  }
15518
15518
  var init_linterRunner = __esm({
15519
- "packages/execution/dist/linterRunner.js"() {
15519
+ "../execution/dist/linterRunner.js"() {
15520
15520
  "use strict";
15521
15521
  init_shellRunner();
15522
15522
  }
15523
15523
  });
15524
15524
 
15525
- // packages/execution/dist/typecheckRunner.js
15525
+ // ../execution/dist/typecheckRunner.js
15526
15526
  function buildTypecheckerCommand(typechecker, extraArgs) {
15527
15527
  switch (typechecker) {
15528
15528
  case "tsc":
@@ -15568,13 +15568,13 @@ async function runTypecheck(options) {
15568
15568
  };
15569
15569
  }
15570
15570
  var init_typecheckRunner = __esm({
15571
- "packages/execution/dist/typecheckRunner.js"() {
15571
+ "../execution/dist/typecheckRunner.js"() {
15572
15572
  "use strict";
15573
15573
  init_shellRunner();
15574
15574
  }
15575
15575
  });
15576
15576
 
15577
- // packages/execution/dist/testRunner.js
15577
+ // ../execution/dist/testRunner.js
15578
15578
  function buildTestRunnerCommand(testRunner, extraArgs) {
15579
15579
  switch (testRunner) {
15580
15580
  case "jest":
@@ -15630,13 +15630,13 @@ async function runTests(options) {
15630
15630
  };
15631
15631
  }
15632
15632
  var init_testRunner = __esm({
15633
- "packages/execution/dist/testRunner.js"() {
15633
+ "../execution/dist/testRunner.js"() {
15634
15634
  "use strict";
15635
15635
  init_shellRunner();
15636
15636
  }
15637
15637
  });
15638
15638
 
15639
- // packages/execution/dist/buildRunner.js
15639
+ // ../execution/dist/buildRunner.js
15640
15640
  function buildBuilderCommand(profile, extraArgs) {
15641
15641
  switch (profile.builder) {
15642
15642
  case "tsc":
@@ -15703,13 +15703,13 @@ async function runBuild(options) {
15703
15703
  };
15704
15704
  }
15705
15705
  var init_buildRunner = __esm({
15706
- "packages/execution/dist/buildRunner.js"() {
15706
+ "../execution/dist/buildRunner.js"() {
15707
15707
  "use strict";
15708
15708
  init_shellRunner();
15709
15709
  }
15710
15710
  });
15711
15711
 
15712
- // packages/execution/dist/validationPipeline.js
15712
+ // ../execution/dist/validationPipeline.js
15713
15713
  async function runValidationPipeline(config) {
15714
15714
  const { projectRoot, profile, stopOnFirstFailure = true } = config;
15715
15715
  const formatterProfile = {
@@ -15805,7 +15805,7 @@ async function runValidationPipeline(config) {
15805
15805
  };
15806
15806
  }
15807
15807
  var init_validationPipeline = __esm({
15808
- "packages/execution/dist/validationPipeline.js"() {
15808
+ "../execution/dist/validationPipeline.js"() {
15809
15809
  "use strict";
15810
15810
  init_formatterRunner();
15811
15811
  init_linterRunner();
@@ -15815,7 +15815,7 @@ var init_validationPipeline = __esm({
15815
15815
  }
15816
15816
  });
15817
15817
 
15818
- // packages/execution/dist/index.js
15818
+ // ../execution/dist/index.js
15819
15819
  var dist_exports = {};
15820
15820
  __export(dist_exports, {
15821
15821
  AgendaTool: () => AgendaTool,
@@ -15908,7 +15908,7 @@ __export(dist_exports, {
15908
15908
  setSudoPassword: () => setSudoPassword
15909
15909
  });
15910
15910
  var init_dist2 = __esm({
15911
- "packages/execution/dist/index.js"() {
15911
+ "../execution/dist/index.js"() {
15912
15912
  "use strict";
15913
15913
  init_tool_executor();
15914
15914
  init_shell();
@@ -15970,9 +15970,9 @@ var init_dist2 = __esm({
15970
15970
  }
15971
15971
  });
15972
15972
 
15973
- // packages/orchestrator/dist/agent-loop.js
15973
+ // ../orchestrator/dist/agent-loop.js
15974
15974
  var init_agent_loop = __esm({
15975
- "packages/orchestrator/dist/agent-loop.js"() {
15975
+ "../orchestrator/dist/agent-loop.js"() {
15976
15976
  "use strict";
15977
15977
  init_dist();
15978
15978
  init_dist2();
@@ -15980,11 +15980,11 @@ var init_agent_loop = __esm({
15980
15980
  }
15981
15981
  });
15982
15982
 
15983
- // packages/schemas/dist/messages.js
15983
+ // ../schemas/dist/messages.js
15984
15984
  import { z } from "zod";
15985
15985
  var AgentMessageSchema;
15986
15986
  var init_messages = __esm({
15987
- "packages/schemas/dist/messages.js"() {
15987
+ "../schemas/dist/messages.js"() {
15988
15988
  "use strict";
15989
15989
  AgentMessageSchema = z.object({
15990
15990
  id: z.string().uuid(),
@@ -15997,11 +15997,11 @@ var init_messages = __esm({
15997
15997
  }
15998
15998
  });
15999
15999
 
16000
- // packages/schemas/dist/tools.js
16000
+ // ../schemas/dist/tools.js
16001
16001
  import { z as z2 } from "zod";
16002
16002
  var ToolCallSchema;
16003
16003
  var init_tools = __esm({
16004
- "packages/schemas/dist/tools.js"() {
16004
+ "../schemas/dist/tools.js"() {
16005
16005
  "use strict";
16006
16006
  ToolCallSchema = z2.object({
16007
16007
  id: z2.string().uuid(),
@@ -16015,11 +16015,11 @@ var init_tools = __esm({
16015
16015
  }
16016
16016
  });
16017
16017
 
16018
- // packages/schemas/dist/session.js
16018
+ // ../schemas/dist/session.js
16019
16019
  import { z as z3 } from "zod";
16020
16020
  var SessionSchema;
16021
16021
  var init_session = __esm({
16022
- "packages/schemas/dist/session.js"() {
16022
+ "../schemas/dist/session.js"() {
16023
16023
  "use strict";
16024
16024
  SessionSchema = z3.object({
16025
16025
  id: z3.string().uuid(),
@@ -16033,11 +16033,11 @@ var init_session = __esm({
16033
16033
  }
16034
16034
  });
16035
16035
 
16036
- // packages/schemas/dist/task.js
16036
+ // ../schemas/dist/task.js
16037
16037
  import { z as z4 } from "zod";
16038
16038
  var TaskClassSchema, UrgencySchema, NormalizedTaskSchema, TaskStatusSchema;
16039
16039
  var init_task = __esm({
16040
- "packages/schemas/dist/task.js"() {
16040
+ "../schemas/dist/task.js"() {
16041
16041
  "use strict";
16042
16042
  TaskClassSchema = z4.enum([
16043
16043
  "bugfix",
@@ -16082,11 +16082,11 @@ var init_task = __esm({
16082
16082
  }
16083
16083
  });
16084
16084
 
16085
- // packages/schemas/dist/plan.js
16085
+ // ../schemas/dist/plan.js
16086
16086
  import { z as z5 } from "zod";
16087
16087
  var SubtaskKindSchema, SubtaskSchema, PlanSchema;
16088
16088
  var init_plan = __esm({
16089
- "packages/schemas/dist/plan.js"() {
16089
+ "../schemas/dist/plan.js"() {
16090
16090
  "use strict";
16091
16091
  SubtaskKindSchema = z5.enum([
16092
16092
  "inspect",
@@ -16120,11 +16120,11 @@ var init_plan = __esm({
16120
16120
  }
16121
16121
  });
16122
16122
 
16123
- // packages/schemas/dist/patch.js
16123
+ // ../schemas/dist/patch.js
16124
16124
  import { z as z6 } from "zod";
16125
16125
  var EditOperationSchema, FileEditSchema, NeedsMoreContextSchema, PatchProposalSchema;
16126
16126
  var init_patch = __esm({
16127
- "packages/schemas/dist/patch.js"() {
16127
+ "../schemas/dist/patch.js"() {
16128
16128
  "use strict";
16129
16129
  EditOperationSchema = z6.enum([
16130
16130
  "diff",
@@ -16163,11 +16163,11 @@ var init_patch = __esm({
16163
16163
  }
16164
16164
  });
16165
16165
 
16166
- // packages/schemas/dist/verification.js
16166
+ // ../schemas/dist/verification.js
16167
16167
  import { z as z7 } from "zod";
16168
16168
  var VerificationStatusSchema, VerificationNextActionSchema, VerificationDecisionSchema;
16169
16169
  var init_verification = __esm({
16170
- "packages/schemas/dist/verification.js"() {
16170
+ "../schemas/dist/verification.js"() {
16171
16171
  "use strict";
16172
16172
  VerificationStatusSchema = z7.enum(["pass", "fail", "partial"]);
16173
16173
  VerificationNextActionSchema = z7.enum([
@@ -16192,11 +16192,11 @@ var init_verification = __esm({
16192
16192
  }
16193
16193
  });
16194
16194
 
16195
- // packages/schemas/dist/repoProfile.js
16195
+ // ../schemas/dist/repoProfile.js
16196
16196
  import { z as z8 } from "zod";
16197
16197
  var LanguageSchema, PackageManagerSchema, BuildSystemSchema, MigrationSystemSchema, RepoProfileSchema;
16198
16198
  var init_repoProfile = __esm({
16199
- "packages/schemas/dist/repoProfile.js"() {
16199
+ "../schemas/dist/repoProfile.js"() {
16200
16200
  "use strict";
16201
16201
  LanguageSchema = z8.enum([
16202
16202
  "typescript",
@@ -16274,11 +16274,11 @@ var init_repoProfile = __esm({
16274
16274
  }
16275
16275
  });
16276
16276
 
16277
- // packages/schemas/dist/retrieval.js
16277
+ // ../schemas/dist/retrieval.js
16278
16278
  import { z as z9 } from "zod";
16279
16279
  var RetrievalRequestSchema, SnippetSchema, RetrievalPacketSchema;
16280
16280
  var init_retrieval = __esm({
16281
- "packages/schemas/dist/retrieval.js"() {
16281
+ "../schemas/dist/retrieval.js"() {
16282
16282
  "use strict";
16283
16283
  RetrievalRequestSchema = z9.object({
16284
16284
  /** Natural language description of what information is needed */
@@ -16326,11 +16326,11 @@ var init_retrieval = __esm({
16326
16326
  }
16327
16327
  });
16328
16328
 
16329
- // packages/schemas/dist/dispatch.js
16329
+ // ../schemas/dist/dispatch.js
16330
16330
  import { z as z10 } from "zod";
16331
16331
  var DispatchModeSchema, TaskComplexitySchema, AgentRoleSchema, BudgetsSchema, DispatchDecisionSchema;
16332
16332
  var init_dispatch = __esm({
16333
- "packages/schemas/dist/dispatch.js"() {
16333
+ "../schemas/dist/dispatch.js"() {
16334
16334
  "use strict";
16335
16335
  DispatchModeSchema = z10.enum([
16336
16336
  "single_pass",
@@ -16364,11 +16364,11 @@ var init_dispatch = __esm({
16364
16364
  }
16365
16365
  });
16366
16366
 
16367
- // packages/schemas/dist/memory.js
16367
+ // ../schemas/dist/memory.js
16368
16368
  import { z as z11 } from "zod";
16369
16369
  var RiskLevelSchema, FileSummarySchema, FailureCategorySchema, FailureFingerprintSchema, TaskMemorySchema;
16370
16370
  var init_memory = __esm({
16371
- "packages/schemas/dist/memory.js"() {
16371
+ "../schemas/dist/memory.js"() {
16372
16372
  "use strict";
16373
16373
  RiskLevelSchema = z11.enum(["low", "medium", "high", "critical"]);
16374
16374
  FileSummarySchema = z11.object({
@@ -16444,11 +16444,11 @@ var init_memory = __esm({
16444
16444
  }
16445
16445
  });
16446
16446
 
16447
- // packages/schemas/dist/backend.js
16447
+ // ../schemas/dist/backend.js
16448
16448
  import { z as z12 } from "zod";
16449
16449
  var MessageRoleSchema, ChatMessageSchema, CompletionRequestSchema, TokenUsageSchema, CompletionResponseSchema, StructuredCompletionRequestSchema, BackendHealthSchema, BackendMetricsSchema;
16450
16450
  var init_backend = __esm({
16451
- "packages/schemas/dist/backend.js"() {
16451
+ "../schemas/dist/backend.js"() {
16452
16452
  "use strict";
16453
16453
  MessageRoleSchema = z12.enum([
16454
16454
  "system",
@@ -16533,11 +16533,11 @@ var init_backend = __esm({
16533
16533
  }
16534
16534
  });
16535
16535
 
16536
- // packages/schemas/dist/config.js
16536
+ // ../schemas/dist/config.js
16537
16537
  import { z as z13 } from "zod";
16538
16538
  var AgentConfigSchema;
16539
16539
  var init_config2 = __esm({
16540
- "packages/schemas/dist/config.js"() {
16540
+ "../schemas/dist/config.js"() {
16541
16541
  "use strict";
16542
16542
  AgentConfigSchema = z13.object({
16543
16543
  // -----------------------------------------------------------------------
@@ -16596,11 +16596,11 @@ var init_config2 = __esm({
16596
16596
  }
16597
16597
  });
16598
16598
 
16599
- // packages/schemas/dist/queue.js
16599
+ // ../schemas/dist/queue.js
16600
16600
  import { z as z14 } from "zod";
16601
16601
  var QueueClassSchema;
16602
16602
  var init_queue = __esm({
16603
- "packages/schemas/dist/queue.js"() {
16603
+ "../schemas/dist/queue.js"() {
16604
16604
  "use strict";
16605
16605
  QueueClassSchema = z14.enum([
16606
16606
  /** CLI and direct user-facing requests; lowest latency target */
@@ -16619,9 +16619,9 @@ var init_queue = __esm({
16619
16619
  }
16620
16620
  });
16621
16621
 
16622
- // packages/schemas/dist/index.js
16622
+ // ../schemas/dist/index.js
16623
16623
  var init_dist3 = __esm({
16624
- "packages/schemas/dist/index.js"() {
16624
+ "../schemas/dist/index.js"() {
16625
16625
  "use strict";
16626
16626
  init_messages();
16627
16627
  init_tools();
@@ -16640,7 +16640,7 @@ var init_dist3 = __esm({
16640
16640
  }
16641
16641
  });
16642
16642
 
16643
- // packages/orchestrator/dist/promptLoader.js
16643
+ // ../orchestrator/dist/promptLoader.js
16644
16644
  import { readFileSync as readFileSync18, existsSync as existsSync25 } from "node:fs";
16645
16645
  import { join as join31, dirname as dirname12 } from "node:path";
16646
16646
  import { fileURLToPath as fileURLToPath7 } from "node:url";
@@ -16660,7 +16660,7 @@ function loadPrompt(promptPath, vars) {
16660
16660
  }
16661
16661
  var __filename, __dirname4, PROMPTS_DIR, cache;
16662
16662
  var init_promptLoader = __esm({
16663
- "packages/orchestrator/dist/promptLoader.js"() {
16663
+ "../orchestrator/dist/promptLoader.js"() {
16664
16664
  "use strict";
16665
16665
  __filename = fileURLToPath7(import.meta.url);
16666
16666
  __dirname4 = dirname12(__filename);
@@ -16669,7 +16669,7 @@ var init_promptLoader = __esm({
16669
16669
  }
16670
16670
  });
16671
16671
 
16672
- // packages/orchestrator/dist/taskNormalizer.js
16672
+ // ../orchestrator/dist/taskNormalizer.js
16673
16673
  function parseJsonFromContent(content) {
16674
16674
  const fencedMatch = content.match(/```(?:json)?\s*([\s\S]*?)```/);
16675
16675
  const raw = fencedMatch ? fencedMatch[1] : content;
@@ -16684,7 +16684,7 @@ function normalizationPrompt(rawRequest, repoRoot) {
16684
16684
  }
16685
16685
  var TaskNormalizer;
16686
16686
  var init_taskNormalizer = __esm({
16687
- "packages/orchestrator/dist/taskNormalizer.js"() {
16687
+ "../orchestrator/dist/taskNormalizer.js"() {
16688
16688
  "use strict";
16689
16689
  init_dist3();
16690
16690
  init_promptLoader();
@@ -16736,7 +16736,7 @@ var init_taskNormalizer = __esm({
16736
16736
  }
16737
16737
  });
16738
16738
 
16739
- // packages/orchestrator/dist/dispatcher.js
16739
+ // ../orchestrator/dist/dispatcher.js
16740
16740
  function estimateComplexity(task) {
16741
16741
  const text = `${task.goal} ${task.constraints.join(" ")} ${task.successCriteria.join(" ")}`;
16742
16742
  const wordCount = text.split(/\s+/).length;
@@ -16803,7 +16803,7 @@ function parseJsonFromContent2(content) {
16803
16803
  }
16804
16804
  var Dispatcher;
16805
16805
  var init_dispatcher = __esm({
16806
- "packages/orchestrator/dist/dispatcher.js"() {
16806
+ "../orchestrator/dist/dispatcher.js"() {
16807
16807
  "use strict";
16808
16808
  init_dist3();
16809
16809
  init_promptLoader();
@@ -16863,7 +16863,7 @@ var init_dispatcher = __esm({
16863
16863
  }
16864
16864
  });
16865
16865
 
16866
- // packages/orchestrator/dist/plannerRunner.js
16866
+ // ../orchestrator/dist/plannerRunner.js
16867
16867
  function plannerPrompt(task, repoProfile, retrievalPacket) {
16868
16868
  const profileSection = repoProfile ? `REPOSITORY PROFILE:
16869
16869
  ${JSON.stringify(repoProfile, null, 2)}` : "REPOSITORY PROFILE: (not available)";
@@ -16884,7 +16884,7 @@ function parseJsonFromContent3(content) {
16884
16884
  }
16885
16885
  var PlannerRunner;
16886
16886
  var init_plannerRunner = __esm({
16887
- "packages/orchestrator/dist/plannerRunner.js"() {
16887
+ "../orchestrator/dist/plannerRunner.js"() {
16888
16888
  "use strict";
16889
16889
  init_dist3();
16890
16890
  init_promptLoader();
@@ -16937,12 +16937,12 @@ var init_plannerRunner = __esm({
16937
16937
  }
16938
16938
  });
16939
16939
 
16940
- // packages/retrieval/dist/grep-search.js
16940
+ // ../retrieval/dist/grep-search.js
16941
16941
  import { execFile as execFile4 } from "node:child_process";
16942
16942
  import { promisify as promisify3 } from "node:util";
16943
16943
  var execFileAsync3, GrepSearch;
16944
16944
  var init_grep_search2 = __esm({
16945
- "packages/retrieval/dist/grep-search.js"() {
16945
+ "../retrieval/dist/grep-search.js"() {
16946
16946
  "use strict";
16947
16947
  execFileAsync3 = promisify3(execFile4);
16948
16948
  GrepSearch = class {
@@ -16999,10 +16999,10 @@ var init_grep_search2 = __esm({
16999
16999
  }
17000
17000
  });
17001
17001
 
17002
- // packages/retrieval/dist/code-retriever.js
17002
+ // ../retrieval/dist/code-retriever.js
17003
17003
  var DEFAULT_CONFIG3, CodeRetriever;
17004
17004
  var init_code_retriever = __esm({
17005
- "packages/retrieval/dist/code-retriever.js"() {
17005
+ "../retrieval/dist/code-retriever.js"() {
17006
17006
  "use strict";
17007
17007
  init_grep_search2();
17008
17008
  DEFAULT_CONFIG3 = {
@@ -17040,7 +17040,7 @@ var init_code_retriever = __esm({
17040
17040
  }
17041
17041
  });
17042
17042
 
17043
- // packages/retrieval/dist/lexicalSearch.js
17043
+ // ../retrieval/dist/lexicalSearch.js
17044
17044
  import { execFile as execFile5 } from "node:child_process";
17045
17045
  import { promisify as promisify4 } from "node:util";
17046
17046
  import { readFile as readFile14, readdir as readdir4, stat as stat3 } from "node:fs/promises";
@@ -17218,7 +17218,7 @@ function matchesGlob(filePath, glob2) {
17218
17218
  }
17219
17219
  var execFileAsync4, DEFAULT_INCLUDE_GLOBS, DEFAULT_EXCLUDE_GLOBS, DEFAULT_MAX_MATCHES, ALWAYS_SKIP, ALL_CODE_EXTS;
17220
17220
  var init_lexicalSearch = __esm({
17221
- "packages/retrieval/dist/lexicalSearch.js"() {
17221
+ "../retrieval/dist/lexicalSearch.js"() {
17222
17222
  "use strict";
17223
17223
  execFileAsync4 = promisify4(execFile5);
17224
17224
  DEFAULT_INCLUDE_GLOBS = ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx", "**/*.py"];
@@ -17229,7 +17229,7 @@ var init_lexicalSearch = __esm({
17229
17229
  }
17230
17230
  });
17231
17231
 
17232
- // packages/retrieval/dist/semanticSearch.js
17232
+ // ../retrieval/dist/semanticSearch.js
17233
17233
  function parseTagFilter(query) {
17234
17234
  const required = [];
17235
17235
  const anyOf = [];
@@ -17306,7 +17306,7 @@ function makePlaceholderSummary(filePath) {
17306
17306
  }
17307
17307
  var StubSemanticSearchEngine, IndexBackedSemanticSearchEngine, LazySemanticSearchEngine;
17308
17308
  var init_semanticSearch = __esm({
17309
- "packages/retrieval/dist/semanticSearch.js"() {
17309
+ "../retrieval/dist/semanticSearch.js"() {
17310
17310
  "use strict";
17311
17311
  StubSemanticSearchEngine = class {
17312
17312
  isAvailable = false;
@@ -17426,7 +17426,7 @@ var init_semanticSearch = __esm({
17426
17426
  }
17427
17427
  });
17428
17428
 
17429
- // packages/retrieval/dist/graphExpand.js
17429
+ // ../retrieval/dist/graphExpand.js
17430
17430
  function expandGraph(seeds, graph, opts = {}) {
17431
17431
  const { direction = "both", maxHops = 1, maxNeighbors = 20, includeSeeds = false } = opts;
17432
17432
  const seedSet = new Set(seeds);
@@ -17486,12 +17486,12 @@ function bfsExpand(seeds, adjacency, maxHops, maxNeighbors, excludeSet, result)
17486
17486
  }
17487
17487
  }
17488
17488
  var init_graphExpand = __esm({
17489
- "packages/retrieval/dist/graphExpand.js"() {
17489
+ "../retrieval/dist/graphExpand.js"() {
17490
17490
  "use strict";
17491
17491
  }
17492
17492
  });
17493
17493
 
17494
- // packages/retrieval/dist/snippetPacker.js
17494
+ // ../retrieval/dist/snippetPacker.js
17495
17495
  import { readFile as readFile15 } from "node:fs/promises";
17496
17496
  import { join as join33 } from "node:path";
17497
17497
  async function packSnippets(requests, opts = {}) {
@@ -17554,7 +17554,7 @@ async function packFiles(filePaths, repoRoot, maxTokens = DEFAULT_MAX_TOKENS) {
17554
17554
  }
17555
17555
  var DEFAULT_MAX_TOKENS, DEFAULT_CONTEXT_LINES, CHARS_PER_TOKEN;
17556
17556
  var init_snippetPacker = __esm({
17557
- "packages/retrieval/dist/snippetPacker.js"() {
17557
+ "../retrieval/dist/snippetPacker.js"() {
17558
17558
  "use strict";
17559
17559
  DEFAULT_MAX_TOKENS = 32e3;
17560
17560
  DEFAULT_CONTEXT_LINES = 2;
@@ -17562,7 +17562,7 @@ var init_snippetPacker = __esm({
17562
17562
  }
17563
17563
  });
17564
17564
 
17565
- // packages/retrieval/dist/contextAssembler.js
17565
+ // ../retrieval/dist/contextAssembler.js
17566
17566
  async function assembleContext(request, opts) {
17567
17567
  const { repoRoot, graph, semanticEngine, summaryMap, maxFiles = 8, maxSnippets = 20, maxLogs = 3, maxTokens = 24e3, expandNeighbors = true, architectureNote, priorAttemptNote } = opts;
17568
17568
  const lexOpts = {
@@ -17718,7 +17718,7 @@ function estimatePacketTokens(packet) {
17718
17718
  return fileTokens + snippetTokens;
17719
17719
  }
17720
17720
  var init_contextAssembler = __esm({
17721
- "packages/retrieval/dist/contextAssembler.js"() {
17721
+ "../retrieval/dist/contextAssembler.js"() {
17722
17722
  "use strict";
17723
17723
  init_lexicalSearch();
17724
17724
  init_graphExpand();
@@ -17726,7 +17726,7 @@ var init_contextAssembler = __esm({
17726
17726
  }
17727
17727
  });
17728
17728
 
17729
- // packages/retrieval/dist/index.js
17729
+ // ../retrieval/dist/index.js
17730
17730
  var dist_exports2 = {};
17731
17731
  __export(dist_exports2, {
17732
17732
  CodeRetriever: () => CodeRetriever,
@@ -17751,7 +17751,7 @@ __export(dist_exports2, {
17751
17751
  testsForFiles: () => testsForFiles
17752
17752
  });
17753
17753
  var init_dist4 = __esm({
17754
- "packages/retrieval/dist/index.js"() {
17754
+ "../retrieval/dist/index.js"() {
17755
17755
  "use strict";
17756
17756
  init_code_retriever();
17757
17757
  init_grep_search2();
@@ -17763,7 +17763,7 @@ var init_dist4 = __esm({
17763
17763
  }
17764
17764
  });
17765
17765
 
17766
- // packages/orchestrator/dist/scoutRunner.js
17766
+ // ../orchestrator/dist/scoutRunner.js
17767
17767
  async function loadCodeRetriever(rootDir) {
17768
17768
  const mod = await Promise.resolve().then(() => (init_dist4(), dist_exports2));
17769
17769
  return new mod.CodeRetriever({ rootDir });
@@ -17794,7 +17794,7 @@ function scoutPrompt(task, repoProfile, candidateFiles, subtasks) {
17794
17794
  }
17795
17795
  var ScoutRunner;
17796
17796
  var init_scoutRunner = __esm({
17797
- "packages/orchestrator/dist/scoutRunner.js"() {
17797
+ "../orchestrator/dist/scoutRunner.js"() {
17798
17798
  "use strict";
17799
17799
  init_dist3();
17800
17800
  init_promptLoader();
@@ -17900,7 +17900,7 @@ var init_scoutRunner = __esm({
17900
17900
  }
17901
17901
  });
17902
17902
 
17903
- // packages/orchestrator/dist/editorRunner.js
17903
+ // ../orchestrator/dist/editorRunner.js
17904
17904
  function editorPrompt(task, subtask, retrievalPacket, previousVerification, retryNumber) {
17905
17905
  const filesSection = Object.entries(retrievalPacket.files).map(([path, content]) => `=== ${path} ===
17906
17906
  ${content}`).join("\n\n");
@@ -17928,7 +17928,7 @@ function parseJsonFromContent5(content) {
17928
17928
  }
17929
17929
  var EditorRunner;
17930
17930
  var init_editorRunner = __esm({
17931
- "packages/orchestrator/dist/editorRunner.js"() {
17931
+ "../orchestrator/dist/editorRunner.js"() {
17932
17932
  "use strict";
17933
17933
  init_dist3();
17934
17934
  init_promptLoader();
@@ -17986,7 +17986,7 @@ var init_editorRunner = __esm({
17986
17986
  }
17987
17987
  });
17988
17988
 
17989
- // packages/orchestrator/dist/verifierRunner.js
17989
+ // ../orchestrator/dist/verifierRunner.js
17990
17990
  function verifierPrompt(task, subtask, patch, toolOutput) {
17991
17991
  const toolSection = toolOutput ? `TOOL EXECUTION OUTPUT:
17992
17992
  ${toolOutput}` : "TOOL EXECUTION OUTPUT: (not executed)";
@@ -18014,7 +18014,7 @@ function parseJsonFromContent6(content) {
18014
18014
  }
18015
18015
  var VerifierRunner;
18016
18016
  var init_verifierRunner = __esm({
18017
- "packages/orchestrator/dist/verifierRunner.js"() {
18017
+ "../orchestrator/dist/verifierRunner.js"() {
18018
18018
  "use strict";
18019
18019
  init_dist3();
18020
18020
  init_promptLoader();
@@ -18109,10 +18109,10 @@ FAILED: ${execError.stderr ?? execError.stdout ?? execError.message ?? "unknown
18109
18109
  }
18110
18110
  });
18111
18111
 
18112
- // packages/orchestrator/dist/mergeRunner.js
18112
+ // ../orchestrator/dist/mergeRunner.js
18113
18113
  var MergeRunner;
18114
18114
  var init_mergeRunner = __esm({
18115
- "packages/orchestrator/dist/mergeRunner.js"() {
18115
+ "../orchestrator/dist/mergeRunner.js"() {
18116
18116
  "use strict";
18117
18117
  init_promptLoader();
18118
18118
  MergeRunner = class {
@@ -18197,10 +18197,10 @@ var init_mergeRunner = __esm({
18197
18197
  }
18198
18198
  });
18199
18199
 
18200
- // packages/orchestrator/dist/retryController.js
18200
+ // ../orchestrator/dist/retryController.js
18201
18201
  var RetryController;
18202
18202
  var init_retryController = __esm({
18203
- "packages/orchestrator/dist/retryController.js"() {
18203
+ "../orchestrator/dist/retryController.js"() {
18204
18204
  "use strict";
18205
18205
  RetryController = class {
18206
18206
  maxRetries;
@@ -18297,7 +18297,7 @@ var init_retryController = __esm({
18297
18297
  }
18298
18298
  });
18299
18299
 
18300
- // packages/orchestrator/dist/ralphLoop.js
18300
+ // ../orchestrator/dist/ralphLoop.js
18301
18301
  function isoNow() {
18302
18302
  return (/* @__PURE__ */ new Date()).toISOString();
18303
18303
  }
@@ -18345,7 +18345,7 @@ function deriveTerminalStatus(executions) {
18345
18345
  }
18346
18346
  var RalphLoop;
18347
18347
  var init_ralphLoop = __esm({
18348
- "packages/orchestrator/dist/ralphLoop.js"() {
18348
+ "../orchestrator/dist/ralphLoop.js"() {
18349
18349
  "use strict";
18350
18350
  init_taskNormalizer();
18351
18351
  init_dispatcher();
@@ -18628,7 +18628,7 @@ var init_ralphLoop = __esm({
18628
18628
  }
18629
18629
  });
18630
18630
 
18631
- // packages/orchestrator/dist/personality.js
18631
+ // ../orchestrator/dist/personality.js
18632
18632
  function compilePersonalityPrompt(profile, presetName) {
18633
18633
  if (presetName === "stark") {
18634
18634
  return loadPrompt("personality/level-stark.md");
@@ -18656,7 +18656,7 @@ function getPreset(name) {
18656
18656
  }
18657
18657
  var PERSONALITY_PRESETS, PRESET_NAMES;
18658
18658
  var init_personality = __esm({
18659
- "packages/orchestrator/dist/personality.js"() {
18659
+ "../orchestrator/dist/personality.js"() {
18660
18660
  "use strict";
18661
18661
  init_promptLoader();
18662
18662
  PERSONALITY_PRESETS = {
@@ -18677,7 +18677,7 @@ var init_personality = __esm({
18677
18677
  }
18678
18678
  });
18679
18679
 
18680
- // packages/orchestrator/dist/agenticRunner.js
18680
+ // ../orchestrator/dist/agenticRunner.js
18681
18681
  function repairJson(raw) {
18682
18682
  if (!raw || typeof raw !== "string")
18683
18683
  return null;
@@ -18743,7 +18743,7 @@ function getSystemPromptForTier(tier) {
18743
18743
  }
18744
18744
  var SYSTEM_PROMPT, SYSTEM_PROMPT_MEDIUM, SYSTEM_PROMPT_SMALL, AgenticRunner, OllamaAgenticBackend;
18745
18745
  var init_agenticRunner = __esm({
18746
- "packages/orchestrator/dist/agenticRunner.js"() {
18746
+ "../orchestrator/dist/agenticRunner.js"() {
18747
18747
  "use strict";
18748
18748
  init_dist();
18749
18749
  init_personality();
@@ -21339,10 +21339,10 @@ ${transcript}`
21339
21339
  }
21340
21340
  });
21341
21341
 
21342
- // packages/orchestrator/dist/nexusBackend.js
21342
+ // ../orchestrator/dist/nexusBackend.js
21343
21343
  var NexusAgenticBackend;
21344
21344
  var init_nexusBackend = __esm({
21345
- "packages/orchestrator/dist/nexusBackend.js"() {
21345
+ "../orchestrator/dist/nexusBackend.js"() {
21346
21346
  "use strict";
21347
21347
  NexusAgenticBackend = class _NexusAgenticBackend {
21348
21348
  sendFn;
@@ -21533,10 +21533,10 @@ var init_nexusBackend = __esm({
21533
21533
  }
21534
21534
  });
21535
21535
 
21536
- // packages/orchestrator/dist/cascadeBackend.js
21536
+ // ../orchestrator/dist/cascadeBackend.js
21537
21537
  var CascadeBackend;
21538
21538
  var init_cascadeBackend = __esm({
21539
- "packages/orchestrator/dist/cascadeBackend.js"() {
21539
+ "../orchestrator/dist/cascadeBackend.js"() {
21540
21540
  "use strict";
21541
21541
  init_agenticRunner();
21542
21542
  init_nexusBackend();
@@ -21800,10 +21800,10 @@ var init_cascadeBackend = __esm({
21800
21800
  }
21801
21801
  });
21802
21802
 
21803
- // packages/orchestrator/dist/flowstatePrompt.js
21803
+ // ../orchestrator/dist/flowstatePrompt.js
21804
21804
  var FLOWSTATE_PROMPT;
21805
21805
  var init_flowstatePrompt = __esm({
21806
- "packages/orchestrator/dist/flowstatePrompt.js"() {
21806
+ "../orchestrator/dist/flowstatePrompt.js"() {
21807
21807
  "use strict";
21808
21808
  FLOWSTATE_PROMPT = `## FlowState Protocol (Active)
21809
21809
 
@@ -21854,10 +21854,10 @@ Constrain your context. Clarify your target. Focus your tools. Flow will follow.
21854
21854
  }
21855
21855
  });
21856
21856
 
21857
- // packages/orchestrator/dist/costTracker.js
21857
+ // ../orchestrator/dist/costTracker.js
21858
21858
  var DEFAULT_PRICING, CostTracker;
21859
21859
  var init_costTracker = __esm({
21860
- "packages/orchestrator/dist/costTracker.js"() {
21860
+ "../orchestrator/dist/costTracker.js"() {
21861
21861
  "use strict";
21862
21862
  DEFAULT_PRICING = [
21863
21863
  // Cloud providers — typical pricing tiers
@@ -22005,7 +22005,7 @@ var init_costTracker = __esm({
22005
22005
  }
22006
22006
  });
22007
22007
 
22008
- // packages/orchestrator/dist/workEvaluator.js
22008
+ // ../orchestrator/dist/workEvaluator.js
22009
22009
  function detectTaskType(taskDescription) {
22010
22010
  let bestType = "general";
22011
22011
  let bestScore = 0;
@@ -22040,7 +22040,7 @@ function buildEvaluationPrompt(task, summary, rubric) {
22040
22040
  }
22041
22041
  var RUBRICS, TASK_TYPE_PATTERNS, WorkEvaluator;
22042
22042
  var init_workEvaluator = __esm({
22043
- "packages/orchestrator/dist/workEvaluator.js"() {
22043
+ "../orchestrator/dist/workEvaluator.js"() {
22044
22044
  "use strict";
22045
22045
  init_promptLoader();
22046
22046
  RUBRICS = {
@@ -22211,10 +22211,10 @@ var init_workEvaluator = __esm({
22211
22211
  }
22212
22212
  });
22213
22213
 
22214
- // packages/orchestrator/dist/sessionMetrics.js
22214
+ // ../orchestrator/dist/sessionMetrics.js
22215
22215
  var SessionMetrics;
22216
22216
  var init_sessionMetrics = __esm({
22217
- "packages/orchestrator/dist/sessionMetrics.js"() {
22217
+ "../orchestrator/dist/sessionMetrics.js"() {
22218
22218
  "use strict";
22219
22219
  SessionMetrics = class {
22220
22220
  sessionStart;
@@ -22311,16 +22311,16 @@ var init_sessionMetrics = __esm({
22311
22311
  }
22312
22312
  });
22313
22313
 
22314
- // packages/orchestrator/dist/taskLearning.js
22314
+ // ../orchestrator/dist/taskLearning.js
22315
22315
  var init_taskLearning = __esm({
22316
- "packages/orchestrator/dist/taskLearning.js"() {
22316
+ "../orchestrator/dist/taskLearning.js"() {
22317
22317
  "use strict";
22318
22318
  }
22319
22319
  });
22320
22320
 
22321
- // packages/orchestrator/dist/index.js
22321
+ // ../orchestrator/dist/index.js
22322
22322
  var init_dist5 = __esm({
22323
- "packages/orchestrator/dist/index.js"() {
22323
+ "../orchestrator/dist/index.js"() {
22324
22324
  "use strict";
22325
22325
  init_agent_loop();
22326
22326
  init_ralphLoop();
@@ -22344,7 +22344,7 @@ var init_dist5 = __esm({
22344
22344
  }
22345
22345
  });
22346
22346
 
22347
- // packages/cli/dist/tui/listen.js
22347
+ // dist/tui/listen.js
22348
22348
  var listen_exports = {};
22349
22349
  __export(listen_exports, {
22350
22350
  ListenEngine: () => ListenEngine,
@@ -22524,7 +22524,7 @@ function getListenEngine(config) {
22524
22524
  }
22525
22525
  var AUDIO_EXTENSIONS, VIDEO_EXTENSIONS, WhisperFallbackTranscriber, ListenEngine, _bgInstallPromise, _engine;
22526
22526
  var init_listen = __esm({
22527
- "packages/cli/dist/tui/listen.js"() {
22527
+ "dist/tui/listen.js"() {
22528
22528
  "use strict";
22529
22529
  AUDIO_EXTENSIONS = /* @__PURE__ */ new Set([
22530
22530
  ".mp3",
@@ -23063,9 +23063,9 @@ transcribe-cli error: ${transcribeCliError}` : "";
23063
23063
  }
23064
23064
  });
23065
23065
 
23066
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/constants.js
23066
+ // ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/constants.js
23067
23067
  var require_constants = __commonJS({
23068
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/constants.js"(exports, module) {
23068
+ "../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/constants.js"(exports, module) {
23069
23069
  "use strict";
23070
23070
  var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
23071
23071
  var hasBlob = typeof Blob !== "undefined";
@@ -23086,9 +23086,9 @@ var require_constants = __commonJS({
23086
23086
  }
23087
23087
  });
23088
23088
 
23089
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/buffer-util.js
23089
+ // ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/buffer-util.js
23090
23090
  var require_buffer_util = __commonJS({
23091
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/buffer-util.js"(exports, module) {
23091
+ "../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/buffer-util.js"(exports, module) {
23092
23092
  "use strict";
23093
23093
  var { EMPTY_BUFFER } = require_constants();
23094
23094
  var FastBuffer = Buffer[Symbol.species];
@@ -23161,9 +23161,9 @@ var require_buffer_util = __commonJS({
23161
23161
  }
23162
23162
  });
23163
23163
 
23164
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/limiter.js
23164
+ // ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/limiter.js
23165
23165
  var require_limiter = __commonJS({
23166
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/limiter.js"(exports, module) {
23166
+ "../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/limiter.js"(exports, module) {
23167
23167
  "use strict";
23168
23168
  var kDone = /* @__PURE__ */ Symbol("kDone");
23169
23169
  var kRun = /* @__PURE__ */ Symbol("kRun");
@@ -23211,9 +23211,9 @@ var require_limiter = __commonJS({
23211
23211
  }
23212
23212
  });
23213
23213
 
23214
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js
23214
+ // ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js
23215
23215
  var require_permessage_deflate = __commonJS({
23216
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js"(exports, module) {
23216
+ "../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js"(exports, module) {
23217
23217
  "use strict";
23218
23218
  var zlib = __require("zlib");
23219
23219
  var bufferUtil = require_buffer_util();
@@ -23594,9 +23594,9 @@ var require_permessage_deflate = __commonJS({
23594
23594
  }
23595
23595
  });
23596
23596
 
23597
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/validation.js
23597
+ // ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/validation.js
23598
23598
  var require_validation = __commonJS({
23599
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/validation.js"(exports, module) {
23599
+ "../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/validation.js"(exports, module) {
23600
23600
  "use strict";
23601
23601
  var { isUtf8 } = __require("buffer");
23602
23602
  var { hasBlob } = require_constants();
@@ -23795,9 +23795,9 @@ var require_validation = __commonJS({
23795
23795
  }
23796
23796
  });
23797
23797
 
23798
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/receiver.js
23798
+ // ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/receiver.js
23799
23799
  var require_receiver = __commonJS({
23800
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/receiver.js"(exports, module) {
23800
+ "../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/receiver.js"(exports, module) {
23801
23801
  "use strict";
23802
23802
  var { Writable: Writable2 } = __require("stream");
23803
23803
  var PerMessageDeflate = require_permessage_deflate();
@@ -24387,9 +24387,9 @@ var require_receiver = __commonJS({
24387
24387
  }
24388
24388
  });
24389
24389
 
24390
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/sender.js
24390
+ // ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/sender.js
24391
24391
  var require_sender = __commonJS({
24392
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/sender.js"(exports, module) {
24392
+ "../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/sender.js"(exports, module) {
24393
24393
  "use strict";
24394
24394
  var { Duplex } = __require("stream");
24395
24395
  var { randomFillSync } = __require("crypto");
@@ -24875,9 +24875,9 @@ var require_sender = __commonJS({
24875
24875
  }
24876
24876
  });
24877
24877
 
24878
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/event-target.js
24878
+ // ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/event-target.js
24879
24879
  var require_event_target = __commonJS({
24880
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/event-target.js"(exports, module) {
24880
+ "../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/event-target.js"(exports, module) {
24881
24881
  "use strict";
24882
24882
  var { kForOnEventAttribute, kListener } = require_constants();
24883
24883
  var kCode = /* @__PURE__ */ Symbol("kCode");
@@ -25104,9 +25104,9 @@ var require_event_target = __commonJS({
25104
25104
  }
25105
25105
  });
25106
25106
 
25107
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/extension.js
25107
+ // ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/extension.js
25108
25108
  var require_extension = __commonJS({
25109
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/extension.js"(exports, module) {
25109
+ "../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/extension.js"(exports, module) {
25110
25110
  "use strict";
25111
25111
  var { tokenChars } = require_validation();
25112
25112
  function push(dest, name, elem) {
@@ -25257,9 +25257,9 @@ var require_extension = __commonJS({
25257
25257
  }
25258
25258
  });
25259
25259
 
25260
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket.js
25260
+ // ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket.js
25261
25261
  var require_websocket = __commonJS({
25262
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket.js"(exports, module) {
25262
+ "../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket.js"(exports, module) {
25263
25263
  "use strict";
25264
25264
  var EventEmitter7 = __require("events");
25265
25265
  var https = __require("https");
@@ -26143,9 +26143,9 @@ var require_websocket = __commonJS({
26143
26143
  }
26144
26144
  });
26145
26145
 
26146
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/stream.js
26146
+ // ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/stream.js
26147
26147
  var require_stream = __commonJS({
26148
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/stream.js"(exports, module) {
26148
+ "../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/stream.js"(exports, module) {
26149
26149
  "use strict";
26150
26150
  var WebSocket2 = require_websocket();
26151
26151
  var { Duplex } = __require("stream");
@@ -26241,9 +26241,9 @@ var require_stream = __commonJS({
26241
26241
  }
26242
26242
  });
26243
26243
 
26244
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/subprotocol.js
26244
+ // ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/subprotocol.js
26245
26245
  var require_subprotocol = __commonJS({
26246
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/subprotocol.js"(exports, module) {
26246
+ "../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/subprotocol.js"(exports, module) {
26247
26247
  "use strict";
26248
26248
  var { tokenChars } = require_validation();
26249
26249
  function parse(header) {
@@ -26286,9 +26286,9 @@ var require_subprotocol = __commonJS({
26286
26286
  }
26287
26287
  });
26288
26288
 
26289
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket-server.js
26289
+ // ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket-server.js
26290
26290
  var require_websocket_server = __commonJS({
26291
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket-server.js"(exports, module) {
26291
+ "../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket-server.js"(exports, module) {
26292
26292
  "use strict";
26293
26293
  var EventEmitter7 = __require("events");
26294
26294
  var http = __require("http");
@@ -26679,10 +26679,10 @@ var require_websocket_server = __commonJS({
26679
26679
  }
26680
26680
  });
26681
26681
 
26682
- // node_modules/.pnpm/ws@8.19.0/node_modules/ws/wrapper.mjs
26682
+ // ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/wrapper.mjs
26683
26683
  var import_stream, import_receiver, import_sender, import_websocket, import_websocket_server;
26684
26684
  var init_wrapper = __esm({
26685
- "node_modules/.pnpm/ws@8.19.0/node_modules/ws/wrapper.mjs"() {
26685
+ "../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/wrapper.mjs"() {
26686
26686
  import_stream = __toESM(require_stream(), 1);
26687
26687
  import_receiver = __toESM(require_receiver(), 1);
26688
26688
  import_sender = __toESM(require_sender(), 1);
@@ -26691,7 +26691,7 @@ var init_wrapper = __esm({
26691
26691
  }
26692
26692
  });
26693
26693
 
26694
- // packages/cli/dist/tui/render.js
26694
+ // dist/tui/render.js
26695
26695
  function ansi2(code, text) {
26696
26696
  return isTTY2 ? `\x1B[${code}m${text}\x1B[0m` : text;
26697
26697
  }
@@ -27383,7 +27383,7 @@ function formatDuration2(ms) {
27383
27383
  }
27384
27384
  var isTTY2, c2, pastel, _emojisEnabled, _colorsEnabled, MD, TOOL_ICONS, TOOL_LABELS, TOOL_COLORS, _contentWriteHook, HINTS, TOOL_NAMES, COMMAND_NAMES;
27385
27385
  var init_render = __esm({
27386
- "packages/cli/dist/tui/render.js"() {
27386
+ "dist/tui/render.js"() {
27387
27387
  "use strict";
27388
27388
  isTTY2 = process.stdout.isTTY ?? false;
27389
27389
  c2 = {
@@ -27614,7 +27614,7 @@ var init_render = __esm({
27614
27614
  }
27615
27615
  });
27616
27616
 
27617
- // packages/cli/dist/tui/voice-session.js
27617
+ // dist/tui/voice-session.js
27618
27618
  import { createServer } from "node:http";
27619
27619
  import { spawn as spawn15, execSync as execSync24 } from "node:child_process";
27620
27620
  import { EventEmitter as EventEmitter2 } from "node:events";
@@ -27995,7 +27995,7 @@ function renderVoiceSessionTranscript(speaker, text) {
27995
27995
  }
27996
27996
  var VoiceSession;
27997
27997
  var init_voice_session = __esm({
27998
- "packages/cli/dist/tui/voice-session.js"() {
27998
+ "dist/tui/voice-session.js"() {
27999
27999
  "use strict";
28000
28000
  init_wrapper();
28001
28001
  init_render();
@@ -28342,7 +28342,7 @@ var init_voice_session = __esm({
28342
28342
  }
28343
28343
  });
28344
28344
 
28345
- // packages/cli/dist/tui/expose.js
28345
+ // dist/tui/expose.js
28346
28346
  import { createServer as createServer2, request as httpRequest } from "node:http";
28347
28347
  import { spawn as spawn16, exec } from "node:child_process";
28348
28348
  import { EventEmitter as EventEmitter3 } from "node:events";
@@ -28515,7 +28515,7 @@ function removeP2PExposeState(stateDir) {
28515
28515
  }
28516
28516
  var HOP_BY_HOP_HEADERS, CF_HEADERS_PREFIX, INTERNAL_CAPABILITIES, DEFAULT_TARGETS, STATE_FILE_NAME, ExposeGateway, P2P_STATE_FILE_NAME, ExposeP2PGateway;
28517
28517
  var init_expose = __esm({
28518
- "packages/cli/dist/tui/expose.js"() {
28518
+ "dist/tui/expose.js"() {
28519
28519
  "use strict";
28520
28520
  init_render();
28521
28521
  HOP_BY_HOP_HEADERS = /* @__PURE__ */ new Set([
@@ -29662,25 +29662,25 @@ ${this.formatConnectionInfo()}`);
29662
29662
  }
29663
29663
  });
29664
29664
 
29665
- // packages/cli/dist/tui/p2p/types.js
29665
+ // dist/tui/p2p/types.js
29666
29666
  function trustLevel(tier) {
29667
29667
  return TRUST_ORDER.indexOf(tier);
29668
29668
  }
29669
29669
  var TRUST_ORDER;
29670
29670
  var init_types = __esm({
29671
- "packages/cli/dist/tui/p2p/types.js"() {
29671
+ "dist/tui/p2p/types.js"() {
29672
29672
  "use strict";
29673
29673
  TRUST_ORDER = ["public", "verified", "tee", "local"];
29674
29674
  }
29675
29675
  });
29676
29676
 
29677
- // packages/cli/dist/tui/p2p/secret-vault.js
29677
+ // dist/tui/p2p/secret-vault.js
29678
29678
  import { createCipheriv as createCipheriv2, createDecipheriv as createDecipheriv2, randomBytes as randomBytes8, scryptSync as scryptSync2, createHash as createHash2 } from "node:crypto";
29679
29679
  import { readFileSync as readFileSync20, writeFileSync as writeFileSync10, existsSync as existsSync28, mkdirSync as mkdirSync10 } from "node:fs";
29680
29680
  import { join as join36, dirname as dirname14 } from "node:path";
29681
29681
  var PLACEHOLDER_PREFIX, PLACEHOLDER_SUFFIX, CIPHER_ALGO, SALT_LEN, IV_LEN, KEY_LEN, SecretVault;
29682
29682
  var init_secret_vault = __esm({
29683
- "packages/cli/dist/tui/p2p/secret-vault.js"() {
29683
+ "dist/tui/p2p/secret-vault.js"() {
29684
29684
  "use strict";
29685
29685
  init_types();
29686
29686
  PLACEHOLDER_PREFIX = "{{OA_VAR_";
@@ -29938,13 +29938,13 @@ var init_secret_vault = __esm({
29938
29938
  }
29939
29939
  });
29940
29940
 
29941
- // packages/cli/dist/tui/p2p/peer-mesh.js
29941
+ // dist/tui/p2p/peer-mesh.js
29942
29942
  import { EventEmitter as EventEmitter4 } from "node:events";
29943
29943
  import { createServer as createServer3 } from "node:http";
29944
29944
  import { randomBytes as randomBytes9, createHash as createHash3, generateKeyPairSync } from "node:crypto";
29945
29945
  var PING_INTERVAL_MS, PEER_TIMEOUT_MS, GOSSIP_INTERVAL_MS, MAX_PEERS, PeerMesh;
29946
29946
  var init_peer_mesh = __esm({
29947
- "packages/cli/dist/tui/p2p/peer-mesh.js"() {
29947
+ "dist/tui/p2p/peer-mesh.js"() {
29948
29948
  "use strict";
29949
29949
  init_wrapper();
29950
29950
  PING_INTERVAL_MS = 3e4;
@@ -30403,11 +30403,11 @@ var init_peer_mesh = __esm({
30403
30403
  }
30404
30404
  });
30405
30405
 
30406
- // packages/cli/dist/tui/p2p/inference-router.js
30406
+ // dist/tui/p2p/inference-router.js
30407
30407
  import { EventEmitter as EventEmitter5 } from "node:events";
30408
30408
  var TRUST_WEIGHTS, InferenceRouter;
30409
30409
  var init_inference_router = __esm({
30410
- "packages/cli/dist/tui/p2p/inference-router.js"() {
30410
+ "dist/tui/p2p/inference-router.js"() {
30411
30411
  "use strict";
30412
30412
  init_types();
30413
30413
  TRUST_WEIGHTS = {
@@ -30601,9 +30601,9 @@ var init_inference_router = __esm({
30601
30601
  }
30602
30602
  });
30603
30603
 
30604
- // packages/cli/dist/tui/p2p/index.js
30604
+ // dist/tui/p2p/index.js
30605
30605
  var init_p2p = __esm({
30606
- "packages/cli/dist/tui/p2p/index.js"() {
30606
+ "dist/tui/p2p/index.js"() {
30607
30607
  "use strict";
30608
30608
  init_secret_vault();
30609
30609
  init_peer_mesh();
@@ -30612,7 +30612,7 @@ var init_p2p = __esm({
30612
30612
  }
30613
30613
  });
30614
30614
 
30615
- // packages/cli/dist/tui/call-agent.js
30615
+ // dist/tui/call-agent.js
30616
30616
  import { EventEmitter as EventEmitter6 } from "node:events";
30617
30617
  import crypto2 from "node:crypto";
30618
30618
  function adaptTool(tool) {
@@ -30636,7 +30636,7 @@ function generateSessionKey() {
30636
30636
  }
30637
30637
  var ActivityFeed, _globalFeed, CallSubAgent;
30638
30638
  var init_call_agent = __esm({
30639
- "packages/cli/dist/tui/call-agent.js"() {
30639
+ "dist/tui/call-agent.js"() {
30640
30640
  "use strict";
30641
30641
  init_dist5();
30642
30642
  init_dist2();
@@ -30894,7 +30894,7 @@ ${activitySummary}
30894
30894
  }
30895
30895
  });
30896
30896
 
30897
- // packages/cli/dist/tui/model-picker.js
30897
+ // dist/tui/model-picker.js
30898
30898
  import { totalmem as totalmem2 } from "node:os";
30899
30899
  async function fetchOllamaModels(baseUrl) {
30900
30900
  const url = `${normalizeBaseUrl(baseUrl)}/api/tags`;
@@ -31013,7 +31013,7 @@ async function fetchOpenAIModels(baseUrl, apiKey) {
31013
31013
  async function fetchPeerModels(peerId, authKey) {
31014
31014
  try {
31015
31015
  const { NexusTool: NexusTool2 } = await Promise.resolve().then(() => (init_dist2(), dist_exports));
31016
- const { existsSync: existsSync44, readFileSync: readFileSync31 } = await import("node:fs");
31016
+ const { existsSync: existsSync44, readFileSync: readFileSync32 } = await import("node:fs");
31017
31017
  const { join: join56 } = await import("node:path");
31018
31018
  const cwd4 = process.cwd();
31019
31019
  const nexusTool = new NexusTool2(cwd4);
@@ -31022,7 +31022,7 @@ async function fetchPeerModels(peerId, authKey) {
31022
31022
  try {
31023
31023
  const statusPath = join56(nexusDir, "status.json");
31024
31024
  if (existsSync44(statusPath)) {
31025
- const status = JSON.parse(readFileSync31(statusPath, "utf8"));
31025
+ const status = JSON.parse(readFileSync32(statusPath, "utf8"));
31026
31026
  if (status.peerId === peerId)
31027
31027
  isLocalPeer = true;
31028
31028
  }
@@ -31032,7 +31032,7 @@ async function fetchPeerModels(peerId, authKey) {
31032
31032
  const pricingPath = join56(nexusDir, "pricing.json");
31033
31033
  if (existsSync44(pricingPath)) {
31034
31034
  try {
31035
- const pricing = JSON.parse(readFileSync31(pricingPath, "utf8"));
31035
+ const pricing = JSON.parse(readFileSync32(pricingPath, "utf8"));
31036
31036
  const localModels = (pricing.models || []).map((m) => ({
31037
31037
  name: m.model || "unknown",
31038
31038
  size: m.parameterSize || "",
@@ -31049,7 +31049,7 @@ async function fetchPeerModels(peerId, authKey) {
31049
31049
  const cachePath = join56(nexusDir, "peer-models-cache.json");
31050
31050
  if (existsSync44(cachePath)) {
31051
31051
  try {
31052
- const cache4 = JSON.parse(readFileSync31(cachePath, "utf8"));
31052
+ const cache4 = JSON.parse(readFileSync32(cachePath, "utf8"));
31053
31053
  if (cache4.peerId === peerId && cache4.models?.length > 0) {
31054
31054
  const age = Date.now() - new Date(cache4.cachedAt).getTime();
31055
31055
  if (age < 5 * 60 * 1e3) {
@@ -31167,7 +31167,7 @@ async function fetchPeerModels(peerId, authKey) {
31167
31167
  const pricingPath = join56(nexusDir, "pricing.json");
31168
31168
  if (existsSync44(pricingPath)) {
31169
31169
  try {
31170
- const pricing = JSON.parse(readFileSync31(pricingPath, "utf8"));
31170
+ const pricing = JSON.parse(readFileSync32(pricingPath, "utf8"));
31171
31171
  return (pricing.models || []).map((m) => ({
31172
31172
  name: m.model || "unknown",
31173
31173
  size: m.parameterSize || "",
@@ -31415,27 +31415,27 @@ function formatRelativeTime(iso) {
31415
31415
  return `${months}mo ago`;
31416
31416
  }
31417
31417
  var init_model_picker = __esm({
31418
- "packages/cli/dist/tui/model-picker.js"() {
31418
+ "dist/tui/model-picker.js"() {
31419
31419
  "use strict";
31420
31420
  init_dist();
31421
31421
  }
31422
31422
  });
31423
31423
 
31424
- // packages/prompts/dist/loader.js
31424
+ // ../prompts/dist/loader.js
31425
31425
  var init_loader = __esm({
31426
- "packages/prompts/dist/loader.js"() {
31426
+ "../prompts/dist/loader.js"() {
31427
31427
  "use strict";
31428
31428
  }
31429
31429
  });
31430
31430
 
31431
- // packages/prompts/dist/render.js
31431
+ // ../prompts/dist/render.js
31432
31432
  var init_render2 = __esm({
31433
- "packages/prompts/dist/render.js"() {
31433
+ "../prompts/dist/render.js"() {
31434
31434
  "use strict";
31435
31435
  }
31436
31436
  });
31437
31437
 
31438
- // packages/prompts/dist/promptLoader.js
31438
+ // ../prompts/dist/promptLoader.js
31439
31439
  import { readFileSync as readFileSync21, existsSync as existsSync29 } from "node:fs";
31440
31440
  import { join as join37, dirname as dirname15 } from "node:path";
31441
31441
  import { fileURLToPath as fileURLToPath9 } from "node:url";
@@ -31455,7 +31455,7 @@ function loadPrompt2(promptPath, vars) {
31455
31455
  }
31456
31456
  var __filename2, __dirname5, devPath, publishedPath, PROMPTS_DIR2, cache2;
31457
31457
  var init_promptLoader2 = __esm({
31458
- "packages/prompts/dist/promptLoader.js"() {
31458
+ "../prompts/dist/promptLoader.js"() {
31459
31459
  "use strict";
31460
31460
  __filename2 = fileURLToPath9(import.meta.url);
31461
31461
  __dirname5 = dirname15(__filename2);
@@ -31466,7 +31466,7 @@ var init_promptLoader2 = __esm({
31466
31466
  }
31467
31467
  });
31468
31468
 
31469
- // packages/prompts/dist/task-templates.js
31469
+ // ../prompts/dist/task-templates.js
31470
31470
  function getTaskTemplate(type) {
31471
31471
  return TEMPLATES[type];
31472
31472
  }
@@ -31482,7 +31482,7 @@ ${template.outputGuidance}`;
31482
31482
  }
31483
31483
  var TEMPLATES;
31484
31484
  var init_task_templates = __esm({
31485
- "packages/prompts/dist/task-templates.js"() {
31485
+ "../prompts/dist/task-templates.js"() {
31486
31486
  "use strict";
31487
31487
  init_promptLoader2();
31488
31488
  TEMPLATES = {
@@ -31571,12 +31571,12 @@ var init_task_templates = __esm({
31571
31571
  }
31572
31572
  });
31573
31573
 
31574
- // packages/prompts/dist/index.js
31574
+ // ../prompts/dist/index.js
31575
31575
  import { join as join38, dirname as dirname16 } from "node:path";
31576
31576
  import { fileURLToPath as fileURLToPath10 } from "node:url";
31577
31577
  var _dir, _packageRoot;
31578
31578
  var init_dist6 = __esm({
31579
- "packages/prompts/dist/index.js"() {
31579
+ "../prompts/dist/index.js"() {
31580
31580
  "use strict";
31581
31581
  init_loader();
31582
31582
  init_render2();
@@ -31587,7 +31587,7 @@ var init_dist6 = __esm({
31587
31587
  }
31588
31588
  });
31589
31589
 
31590
- // packages/cli/dist/tui/oa-directory.js
31590
+ // dist/tui/oa-directory.js
31591
31591
  import { existsSync as existsSync30, mkdirSync as mkdirSync11, readFileSync as readFileSync22, writeFileSync as writeFileSync11, readdirSync as readdirSync8, statSync as statSync9, unlinkSync as unlinkSync4 } from "node:fs";
31592
31592
  import { join as join39, relative as relative2, basename as basename9, extname as extname8 } from "node:path";
31593
31593
  import { homedir as homedir9 } from "node:os";
@@ -32049,7 +32049,7 @@ function deleteUsageRecord(kind, value, repoRoot) {
32049
32049
  }
32050
32050
  var OA_DIR, SUBDIRS, CONTEXT_FILES, PENDING_TASK_FILE, CONTEXT_SAVE_FILE, MAX_CONTEXT_ENTRIES, SKIP_DIRS, USAGE_HISTORY_FILE, MAX_HISTORY_RECORDS;
32051
32051
  var init_oa_directory = __esm({
32052
- "packages/cli/dist/tui/oa-directory.js"() {
32052
+ "dist/tui/oa-directory.js"() {
32053
32053
  "use strict";
32054
32054
  OA_DIR = ".oa";
32055
32055
  SUBDIRS = ["memory", "index", "context", "history", "notes", "embedded", "provenance", "tools", "dreams"];
@@ -32090,11 +32090,11 @@ var init_oa_directory = __esm({
32090
32090
  }
32091
32091
  });
32092
32092
 
32093
- // packages/cli/dist/tui/setup.js
32093
+ // dist/tui/setup.js
32094
32094
  import * as readline from "node:readline";
32095
32095
  import { execSync as execSync25, spawn as spawn17, exec as exec2 } from "node:child_process";
32096
32096
  import { promisify as promisify5 } from "node:util";
32097
- import { existsSync as existsSync31, writeFileSync as writeFileSync12, mkdirSync as mkdirSync12 } from "node:fs";
32097
+ import { existsSync as existsSync31, writeFileSync as writeFileSync12, readFileSync as readFileSync23, appendFileSync as appendFileSync2, mkdirSync as mkdirSync12 } from "node:fs";
32098
32098
  import { join as join40 } from "node:path";
32099
32099
  import { homedir as homedir10, platform } from "node:os";
32100
32100
  function detectSystemSpecs() {
@@ -33672,9 +33672,108 @@ async function ensureExpandedContext(modelName, backendUrl) {
33672
33672
  }
33673
33673
  return { model: modelName, created: false, contextLabel: ctx.label, numCtx: ctx.numCtx };
33674
33674
  }
33675
+ async function ensureNeovim() {
33676
+ try {
33677
+ const nvimPath = execSync25("which nvim 2>/dev/null || where nvim 2>nul", {
33678
+ encoding: "utf8",
33679
+ stdio: "pipe",
33680
+ timeout: 5e3
33681
+ }).trim();
33682
+ if (nvimPath)
33683
+ return nvimPath;
33684
+ } catch {
33685
+ }
33686
+ const platform5 = process.platform;
33687
+ const arch = process.arch;
33688
+ if (platform5 === "linux") {
33689
+ const binDir = join40(homedir10(), ".local", "bin");
33690
+ const nvimDest = join40(binDir, "nvim");
33691
+ try {
33692
+ mkdirSync12(binDir, { recursive: true });
33693
+ } catch {
33694
+ }
33695
+ const appImageName = arch === "arm64" ? "nvim-linux-arm64.appimage" : "nvim-linux-x86_64.appimage";
33696
+ const url = `https://github.com/neovim/neovim/releases/latest/download/${appImageName}`;
33697
+ console.log(` Downloading Neovim (${appImageName})...`);
33698
+ try {
33699
+ execSync25(`curl -fsSL "${url}" -o "${nvimDest}"`, { stdio: "pipe", timeout: 6e4 });
33700
+ execSync25(`chmod +x "${nvimDest}"`, { stdio: "pipe", timeout: 3e3 });
33701
+ } catch (err) {
33702
+ console.log(` Failed to download Neovim: ${err instanceof Error ? err.message : String(err)}`);
33703
+ return null;
33704
+ }
33705
+ try {
33706
+ const ver = execSync25(`"${nvimDest}" --version`, { encoding: "utf8", stdio: "pipe", timeout: 5e3 }).split("\n")[0];
33707
+ console.log(` Installed: ${ver}`);
33708
+ } catch {
33709
+ console.log(" Warning: nvim binary downloaded but may not work (missing FUSE? Try: nvim --appimage-extract)");
33710
+ }
33711
+ if (!process.env.PATH?.includes(binDir)) {
33712
+ process.env.PATH = `${binDir}:${process.env.PATH}`;
33713
+ }
33714
+ ensurePathInShellRc(binDir);
33715
+ return nvimDest;
33716
+ }
33717
+ if (platform5 === "darwin") {
33718
+ if (hasCmd("brew")) {
33719
+ console.log(" Installing Neovim via Homebrew...");
33720
+ try {
33721
+ execSync25("brew install neovim", { stdio: "inherit", timeout: 12e4 });
33722
+ const nvimPath = execSync25("which nvim", { encoding: "utf8", stdio: "pipe", timeout: 3e3 }).trim();
33723
+ return nvimPath || null;
33724
+ } catch {
33725
+ console.log(" brew install neovim failed.");
33726
+ return null;
33727
+ }
33728
+ }
33729
+ console.log(" Homebrew not found. Install Neovim: brew install neovim");
33730
+ return null;
33731
+ }
33732
+ if (platform5 === "win32") {
33733
+ if (hasCmd("choco")) {
33734
+ console.log(" Installing Neovim via Chocolatey...");
33735
+ try {
33736
+ execSync25("choco install neovim -y", { stdio: "inherit", timeout: 12e4 });
33737
+ return "nvim";
33738
+ } catch {
33739
+ console.log(" choco install neovim failed.");
33740
+ }
33741
+ }
33742
+ if (hasCmd("winget")) {
33743
+ console.log(" Installing Neovim via winget...");
33744
+ try {
33745
+ execSync25("winget install Neovim.Neovim --accept-source-agreements --accept-package-agreements", {
33746
+ stdio: "inherit",
33747
+ timeout: 12e4
33748
+ });
33749
+ return "nvim";
33750
+ } catch {
33751
+ console.log(" winget install neovim failed.");
33752
+ }
33753
+ }
33754
+ console.log(" Install Neovim manually: https://neovim.io");
33755
+ return null;
33756
+ }
33757
+ return null;
33758
+ }
33759
+ function ensurePathInShellRc(binDir) {
33760
+ const shell = process.env.SHELL ?? "";
33761
+ const rcFile = shell.includes("zsh") ? join40(homedir10(), ".zshrc") : join40(homedir10(), ".bashrc");
33762
+ try {
33763
+ const rcContent = existsSync31(rcFile) ? readFileSync23(rcFile, "utf8") : "";
33764
+ if (rcContent.includes(binDir))
33765
+ return;
33766
+ const exportLine = `
33767
+ export PATH="${binDir}:$PATH" # Added by open-agents for nvim
33768
+ `;
33769
+ appendFileSync2(rcFile, exportLine, "utf8");
33770
+ console.log(` Added ${binDir} to ${rcFile}`);
33771
+ } catch {
33772
+ }
33773
+ }
33675
33774
  var execAsync, QWEN_VARIANTS, TOOL_CALLING_MODELS, _cloudflaredInstallPromise;
33676
33775
  var init_setup = __esm({
33677
- "packages/cli/dist/tui/setup.js"() {
33776
+ "dist/tui/setup.js"() {
33678
33777
  "use strict";
33679
33778
  init_model_picker();
33680
33779
  init_render();
@@ -33709,7 +33808,7 @@ var init_setup = __esm({
33709
33808
  }
33710
33809
  });
33711
33810
 
33712
- // packages/cli/dist/tui/overlay-lock.js
33811
+ // dist/tui/overlay-lock.js
33713
33812
  function isOverlayActive() {
33714
33813
  return _overlayActive;
33715
33814
  }
@@ -33772,7 +33871,7 @@ function leaveOverlay() {
33772
33871
  }
33773
33872
  var _overlayActive, _depth, _buffer, _origStdoutWrite, _origStderrWrite;
33774
33873
  var init_overlay_lock = __esm({
33775
- "packages/cli/dist/tui/overlay-lock.js"() {
33874
+ "dist/tui/overlay-lock.js"() {
33776
33875
  "use strict";
33777
33876
  _overlayActive = false;
33778
33877
  _depth = 0;
@@ -33782,7 +33881,7 @@ var init_overlay_lock = __esm({
33782
33881
  }
33783
33882
  });
33784
33883
 
33785
- // packages/cli/dist/tui/tui-select.js
33884
+ // dist/tui/tui-select.js
33786
33885
  function ansi3(code, text) {
33787
33886
  return isTTY3 ? `\x1B[${code}m${text}\x1B[0m` : text;
33788
33887
  }
@@ -34224,7 +34323,7 @@ function tuiSelect(opts) {
34224
34323
  }
34225
34324
  var isTTY3, selectColors;
34226
34325
  var init_tui_select = __esm({
34227
- "packages/cli/dist/tui/tui-select.js"() {
34326
+ "dist/tui/tui-select.js"() {
34228
34327
  "use strict";
34229
34328
  init_overlay_lock();
34230
34329
  isTTY3 = process.stdout.isTTY ?? false;
@@ -34242,7 +34341,7 @@ var init_tui_select = __esm({
34242
34341
  }
34243
34342
  });
34244
34343
 
34245
- // packages/cli/dist/tui/drop-panel.js
34344
+ // dist/tui/drop-panel.js
34246
34345
  import { existsSync as existsSync32 } from "node:fs";
34247
34346
  import { extname as extname9, resolve as resolve27 } from "node:path";
34248
34347
  function ansi4(code, text) {
@@ -34413,7 +34512,7 @@ function showDropPanel(opts) {
34413
34512
  }
34414
34513
  var isTTY4, dc;
34415
34514
  var init_drop_panel = __esm({
34416
- "packages/cli/dist/tui/drop-panel.js"() {
34515
+ "dist/tui/drop-panel.js"() {
34417
34516
  "use strict";
34418
34517
  init_overlay_lock();
34419
34518
  isTTY4 = process.stdout.isTTY ?? false;
@@ -34428,7 +34527,7 @@ var init_drop_panel = __esm({
34428
34527
  }
34429
34528
  });
34430
34529
 
34431
- // packages/cli/dist/tui/neovim-mode.js
34530
+ // dist/tui/neovim-mode.js
34432
34531
  import { existsSync as existsSync33, unlinkSync as unlinkSync5 } from "node:fs";
34433
34532
  import { tmpdir as tmpdir6 } from "node:os";
34434
34533
  import { join as join41 } from "node:path";
@@ -34446,7 +34545,11 @@ async function startNeovimMode(opts) {
34446
34545
  if (!nvimPath)
34447
34546
  throw new Error();
34448
34547
  } catch {
34449
- return "nvim not found on PATH. Install Neovim: https://neovim.io";
34548
+ const installed = await ensureNeovim();
34549
+ if (!installed) {
34550
+ return "nvim not found and auto-install failed. Install Neovim: https://neovim.io";
34551
+ }
34552
+ nvimPath = installed;
34450
34553
  }
34451
34554
  let ptyMod;
34452
34555
  try {
@@ -34475,11 +34578,20 @@ async function startNeovimMode(opts) {
34475
34578
  }
34476
34579
  const ptyCols = opts.cols;
34477
34580
  const ptyRows = Math.max(5, opts.contentRows);
34581
+ const initVimCmd = "set mouse= autoread updatetime=300 signcolumn=no noswapfile";
34582
+ const luaBootstrap = [
34583
+ 'lua local lp = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"',
34584
+ 'if not vim.loop.fs_stat(lp) then pcall(vim.fn.system, {"git", "clone", "--filter=blob:none", "--depth=1", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lp}) end',
34585
+ "vim.opt.rtp:prepend(lp)",
34586
+ 'pcall(function() require("lazy").setup({{"nvim-neo-tree/neo-tree.nvim", branch="v3.x", dependencies={"nvim-lua/plenary.nvim","MunifTanjim/nui.nvim"},config=function() require("neo-tree").setup({close_if_last_window=true,filesystem={follow_current_file={enabled=true},use_libuv_file_watcher=true},window={position="left",width=30}}) end}},{install={colorscheme={}},checker={enabled=false}}) end)'
34587
+ ].join(" | ");
34478
34588
  const nvimArgs = [
34479
34589
  "--listen",
34480
34590
  socketPath,
34481
34591
  "--cmd",
34482
- "set autoread updatetime=300 signcolumn=no"
34592
+ initVimCmd,
34593
+ "-c",
34594
+ luaBootstrap
34483
34595
  ];
34484
34596
  if (opts.initialFile) {
34485
34597
  nvimArgs.push(opts.initialFile);
@@ -34557,14 +34669,15 @@ function stopNeovimMode() {
34557
34669
  if (!_state || _state.cleanedUp)
34558
34670
  return;
34559
34671
  try {
34560
- _state.pty?.write(":qa!\r");
34672
+ _state.pty?.write("\x1B:qa!\r");
34561
34673
  } catch {
34562
34674
  }
34675
+ const s = _state;
34563
34676
  setTimeout(() => {
34564
- if (_state && !_state.cleanedUp) {
34565
- doCleanup(_state);
34677
+ if (s && !s.cleanedUp) {
34678
+ doCleanup(s);
34566
34679
  }
34567
- }, 500);
34680
+ }, 300);
34568
34681
  }
34569
34682
  function writeToNeovimOutput(text) {
34570
34683
  if (!_state || _state.cleanedUp || !_state.nvim || !_state.outputChanId)
@@ -34638,6 +34751,7 @@ function toggleFocus(state) {
34638
34751
  const stdin = process.stdin;
34639
34752
  if (state.focused) {
34640
34753
  state.focused = false;
34754
+ process.stdout.write("\x1B[?1000l\x1B[?1002l\x1B[?1003l\x1B[?1006l");
34641
34755
  if (state.stdinHandler) {
34642
34756
  stdin.removeListener("data", state.stdinHandler);
34643
34757
  }
@@ -34671,10 +34785,7 @@ function toggleFocus(state) {
34671
34785
  if (state.stdinHandler) {
34672
34786
  stdin.on("data", state.stdinHandler);
34673
34787
  }
34674
- if (state.nvim) {
34675
- state.nvim.command("echo ''").catch(() => {
34676
- });
34677
- }
34788
+ state.pty?.write("\x1B[c");
34678
34789
  }
34679
34790
  }
34680
34791
  function doCleanup(state) {
@@ -34719,19 +34830,20 @@ function doCleanup(state) {
34719
34830
  state.opts.rl.prompt(false);
34720
34831
  }
34721
34832
  _state = null;
34722
- process.stdout.write("\x1B[H\x1B[J");
34833
+ process.stdout.write("\x1B[?1000l\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?1004l\x1B[H\x1B[J");
34723
34834
  state.opts.onExit?.();
34724
34835
  }
34725
34836
  var isTTY5, _state;
34726
34837
  var init_neovim_mode = __esm({
34727
- "packages/cli/dist/tui/neovim-mode.js"() {
34838
+ "dist/tui/neovim-mode.js"() {
34728
34839
  "use strict";
34840
+ init_setup();
34729
34841
  isTTY5 = process.stdout.isTTY ?? false;
34730
34842
  _state = null;
34731
34843
  }
34732
34844
  });
34733
34845
 
34734
- // packages/cli/dist/tui/voice.js
34846
+ // dist/tui/voice.js
34735
34847
  var voice_exports = {};
34736
34848
  __export(voice_exports, {
34737
34849
  VoiceEngine: () => VoiceEngine,
@@ -34743,7 +34855,7 @@ __export(voice_exports, {
34743
34855
  registerCustomOnnxModel: () => registerCustomOnnxModel,
34744
34856
  resetNarrationContext: () => resetNarrationContext
34745
34857
  });
34746
- import { existsSync as existsSync34, mkdirSync as mkdirSync13, writeFileSync as writeFileSync13, readFileSync as readFileSync23, unlinkSync as unlinkSync6, readdirSync as readdirSync9, renameSync, statSync as statSync10 } from "node:fs";
34858
+ import { existsSync as existsSync34, mkdirSync as mkdirSync13, writeFileSync as writeFileSync13, readFileSync as readFileSync24, unlinkSync as unlinkSync6, readdirSync as readdirSync9, renameSync, statSync as statSync10 } from "node:fs";
34747
34859
  import { join as join42 } from "node:path";
34748
34860
  import { homedir as homedir11, tmpdir as tmpdir7, platform as platform2 } from "node:os";
34749
34861
  import { execSync as execSync27, spawn as nodeSpawn } from "node:child_process";
@@ -35430,7 +35542,7 @@ function formatBytes2(bytes) {
35430
35542
  }
35431
35543
  var VOICE_MODELS, VoiceEngine, RING_BUFFER_SIZE, narration;
35432
35544
  var init_voice = __esm({
35433
- "packages/cli/dist/tui/voice.js"() {
35545
+ "dist/tui/voice.js"() {
35434
35546
  "use strict";
35435
35547
  init_render();
35436
35548
  VOICE_MODELS = {
@@ -35697,7 +35809,7 @@ var init_voice = __esm({
35697
35809
  const destFilename = `clone-${srcName}-${ts}.${ext}`;
35698
35810
  const destPath = join42(refsDir, destFilename);
35699
35811
  try {
35700
- const data = readFileSync23(audioPath);
35812
+ const data = readFileSync24(audioPath);
35701
35813
  writeFileSync13(destPath, data);
35702
35814
  } catch (err) {
35703
35815
  return `Failed to copy audio file: ${err instanceof Error ? err.message : String(err)}`;
@@ -35763,7 +35875,7 @@ var init_voice = __esm({
35763
35875
  if (!existsSync34(p))
35764
35876
  return {};
35765
35877
  try {
35766
- return JSON.parse(readFileSync23(p, "utf8"));
35878
+ return JSON.parse(readFileSync24(p, "utf8"));
35767
35879
  } catch {
35768
35880
  return {};
35769
35881
  }
@@ -36482,7 +36594,7 @@ Error: ${err2 instanceof Error ? err2.message : String(err2)}`);
36482
36594
  return;
36483
36595
  if (volume !== 1) {
36484
36596
  try {
36485
- const wavData = readFileSync23(wavPath);
36597
+ const wavData = readFileSync24(wavPath);
36486
36598
  if (wavData.length > 44) {
36487
36599
  const header = wavData.subarray(0, 44);
36488
36600
  const samples = new Int16Array(wavData.buffer, wavData.byteOffset + 44, (wavData.length - 44) / 2);
@@ -36497,7 +36609,7 @@ Error: ${err2 instanceof Error ? err2.message : String(err2)}`);
36497
36609
  }
36498
36610
  if (this.onPCMOutput) {
36499
36611
  try {
36500
- const wavData = readFileSync23(wavPath);
36612
+ const wavData = readFileSync24(wavPath);
36501
36613
  if (wavData.length > 44) {
36502
36614
  const pcm = Buffer.from(wavData.buffer, wavData.byteOffset + 44, wavData.length - 44);
36503
36615
  const sampleRate = wavData.readUInt32LE(24);
@@ -36549,7 +36661,7 @@ Error: ${err2 instanceof Error ? err2.message : String(err2)}`);
36549
36661
  if (!existsSync34(wavPath))
36550
36662
  return null;
36551
36663
  try {
36552
- const data = readFileSync23(wavPath);
36664
+ const data = readFileSync24(wavPath);
36553
36665
  unlinkSync6(wavPath);
36554
36666
  return data;
36555
36667
  } catch {
@@ -36902,7 +37014,7 @@ if __name__ == '__main__':
36902
37014
  return;
36903
37015
  if (volume !== 1) {
36904
37016
  try {
36905
- const wavData = readFileSync23(wavPath);
37017
+ const wavData = readFileSync24(wavPath);
36906
37018
  if (wavData.length > 44) {
36907
37019
  const samples = new Int16Array(wavData.buffer, wavData.byteOffset + 44, (wavData.length - 44) / 2);
36908
37020
  for (let i = 0; i < samples.length; i++) {
@@ -36917,7 +37029,7 @@ if __name__ == '__main__':
36917
37029
  }
36918
37030
  if (pitchFactor !== 1) {
36919
37031
  try {
36920
- const wavData = readFileSync23(wavPath);
37032
+ const wavData = readFileSync24(wavPath);
36921
37033
  if (wavData.length > 44) {
36922
37034
  const int16 = new Int16Array(wavData.buffer, wavData.byteOffset + 44, (wavData.length - 44) / 2);
36923
37035
  const float32 = new Float32Array(int16.length);
@@ -36932,7 +37044,7 @@ if __name__ == '__main__':
36932
37044
  }
36933
37045
  if (this.onPCMOutput) {
36934
37046
  try {
36935
- const wavData = readFileSync23(wavPath);
37047
+ const wavData = readFileSync24(wavPath);
36936
37048
  if (wavData.length > 44) {
36937
37049
  const pcm = Buffer.from(wavData.buffer, wavData.byteOffset + 44, wavData.length - 44);
36938
37050
  const sampleRate = wavData.readUInt32LE(24);
@@ -36975,7 +37087,7 @@ if __name__ == '__main__':
36975
37087
  if (!existsSync34(wavPath))
36976
37088
  return null;
36977
37089
  try {
36978
- const data = readFileSync23(wavPath);
37090
+ const data = readFileSync24(wavPath);
36979
37091
  unlinkSync6(wavPath);
36980
37092
  return data;
36981
37093
  } catch {
@@ -36997,7 +37109,7 @@ if __name__ == '__main__':
36997
37109
  };
36998
37110
  if (existsSync34(pkgPath)) {
36999
37111
  try {
37000
- const existing = JSON.parse(readFileSync23(pkgPath, "utf8"));
37112
+ const existing = JSON.parse(readFileSync24(pkgPath, "utf8"));
37001
37113
  if (!existing.dependencies?.["phonemizer"]) {
37002
37114
  existing.dependencies = { ...existing.dependencies, ...expectedDeps };
37003
37115
  writeFileSync13(pkgPath, JSON.stringify(existing, null, 2));
@@ -37132,7 +37244,7 @@ Error: ${err instanceof Error ? err.message : String(err)}`);
37132
37244
  if (!existsSync34(onnxPath) || !existsSync34(configPath)) {
37133
37245
  throw new Error(`Model files not found for ${this.modelId}`);
37134
37246
  }
37135
- this.config = JSON.parse(readFileSync23(configPath, "utf8"));
37247
+ this.config = JSON.parse(readFileSync24(configPath, "utf8"));
37136
37248
  this.session = await this.ort.InferenceSession.create(onnxPath, {
37137
37249
  executionProviders: ["cpu"],
37138
37250
  graphOptimizationLevel: "all"
@@ -37156,7 +37268,7 @@ Error: ${err instanceof Error ? err.message : String(err)}`);
37156
37268
  }
37157
37269
  });
37158
37270
 
37159
- // packages/cli/dist/tui/commands.js
37271
+ // dist/tui/commands.js
37160
37272
  async function handleSlashCommand(input, ctx) {
37161
37273
  const trimmed = input.trim();
37162
37274
  if (!trimmed.startsWith("/"))
@@ -40107,7 +40219,7 @@ async function showExposeDashboard(gateway, rl) {
40107
40219
  }
40108
40220
  var DASH_INTERNAL;
40109
40221
  var init_commands = __esm({
40110
- "packages/cli/dist/tui/commands.js"() {
40222
+ "dist/tui/commands.js"() {
40111
40223
  "use strict";
40112
40224
  init_model_picker();
40113
40225
  init_render();
@@ -40127,8 +40239,8 @@ var init_commands = __esm({
40127
40239
  }
40128
40240
  });
40129
40241
 
40130
- // packages/cli/dist/tui/project-context.js
40131
- import { existsSync as existsSync35, readFileSync as readFileSync24, readdirSync as readdirSync10 } from "node:fs";
40242
+ // dist/tui/project-context.js
40243
+ import { existsSync as existsSync35, readFileSync as readFileSync25, readdirSync as readdirSync10 } from "node:fs";
40132
40244
  import { join as join43, basename as basename10 } from "node:path";
40133
40245
  import { execSync as execSync28 } from "node:child_process";
40134
40246
  import { homedir as homedir12, platform as platform3, release } from "node:os";
@@ -40167,7 +40279,7 @@ function loadProjectMap(repoRoot) {
40167
40279
  const mapPath = join43(repoRoot, OA_DIR, "context", "project-map.md");
40168
40280
  if (existsSync35(mapPath)) {
40169
40281
  try {
40170
- const content = readFileSync24(mapPath, "utf-8");
40282
+ const content = readFileSync25(mapPath, "utf-8");
40171
40283
  return content;
40172
40284
  } catch {
40173
40285
  }
@@ -40232,7 +40344,7 @@ function loadMemoryDir(memDir, scope) {
40232
40344
  const files = readdirSync10(memDir).filter((f) => f.endsWith(".json"));
40233
40345
  for (const file of files.slice(0, 10)) {
40234
40346
  try {
40235
- const raw = readFileSync24(join43(memDir, file), "utf-8");
40347
+ const raw = readFileSync25(join43(memDir, file), "utf-8");
40236
40348
  const entries = JSON.parse(raw);
40237
40349
  const topic = basename10(file, ".json");
40238
40350
  const keys = Object.keys(entries);
@@ -40432,14 +40544,14 @@ These patterns have been repeated 3+ times. Consider using create_tool to automa
40432
40544
  return sections.join("\n\n");
40433
40545
  }
40434
40546
  var init_project_context = __esm({
40435
- "packages/cli/dist/tui/project-context.js"() {
40547
+ "dist/tui/project-context.js"() {
40436
40548
  "use strict";
40437
40549
  init_oa_directory();
40438
40550
  init_dist2();
40439
40551
  }
40440
40552
  });
40441
40553
 
40442
- // packages/memory/dist/db.js
40554
+ // ../memory/dist/db.js
40443
40555
  import Database from "better-sqlite3";
40444
40556
  function initDb(dbPath) {
40445
40557
  const db = new Database(dbPath);
@@ -40594,26 +40706,26 @@ function runMigrations(db) {
40594
40706
  `);
40595
40707
  }
40596
40708
  var init_db = __esm({
40597
- "packages/memory/dist/db.js"() {
40709
+ "../memory/dist/db.js"() {
40598
40710
  "use strict";
40599
40711
  }
40600
40712
  });
40601
40713
 
40602
- // packages/memory/dist/repoProfileStore.js
40714
+ // ../memory/dist/repoProfileStore.js
40603
40715
  var init_repoProfileStore = __esm({
40604
- "packages/memory/dist/repoProfileStore.js"() {
40716
+ "../memory/dist/repoProfileStore.js"() {
40605
40717
  "use strict";
40606
40718
  }
40607
40719
  });
40608
40720
 
40609
- // packages/memory/dist/fileSummaryStore.js
40721
+ // ../memory/dist/fileSummaryStore.js
40610
40722
  var init_fileSummaryStore = __esm({
40611
- "packages/memory/dist/fileSummaryStore.js"() {
40723
+ "../memory/dist/fileSummaryStore.js"() {
40612
40724
  "use strict";
40613
40725
  }
40614
40726
  });
40615
40727
 
40616
- // packages/memory/dist/taskMemoryStore.js
40728
+ // ../memory/dist/taskMemoryStore.js
40617
40729
  import { randomUUID } from "node:crypto";
40618
40730
  function rowToTask(row) {
40619
40731
  return {
@@ -40632,7 +40744,7 @@ function rowToTask(row) {
40632
40744
  }
40633
40745
  var TaskMemoryStore;
40634
40746
  var init_taskMemoryStore = __esm({
40635
- "packages/memory/dist/taskMemoryStore.js"() {
40747
+ "../memory/dist/taskMemoryStore.js"() {
40636
40748
  "use strict";
40637
40749
  TaskMemoryStore = class {
40638
40750
  db;
@@ -40683,14 +40795,14 @@ var init_taskMemoryStore = __esm({
40683
40795
  }
40684
40796
  });
40685
40797
 
40686
- // packages/memory/dist/patchHistoryStore.js
40798
+ // ../memory/dist/patchHistoryStore.js
40687
40799
  var init_patchHistoryStore = __esm({
40688
- "packages/memory/dist/patchHistoryStore.js"() {
40800
+ "../memory/dist/patchHistoryStore.js"() {
40689
40801
  "use strict";
40690
40802
  }
40691
40803
  });
40692
40804
 
40693
- // packages/memory/dist/failureStore.js
40805
+ // ../memory/dist/failureStore.js
40694
40806
  import { randomUUID as randomUUID2 } from "node:crypto";
40695
40807
  function rowToFailure(row) {
40696
40808
  return {
@@ -40711,7 +40823,7 @@ function rowToFailure(row) {
40711
40823
  }
40712
40824
  var FailureStore;
40713
40825
  var init_failureStore = __esm({
40714
- "packages/memory/dist/failureStore.js"() {
40826
+ "../memory/dist/failureStore.js"() {
40715
40827
  "use strict";
40716
40828
  FailureStore = class {
40717
40829
  db;
@@ -40766,18 +40878,18 @@ var init_failureStore = __esm({
40766
40878
  }
40767
40879
  });
40768
40880
 
40769
- // packages/memory/dist/validationStore.js
40881
+ // ../memory/dist/validationStore.js
40770
40882
  var init_validationStore = __esm({
40771
- "packages/memory/dist/validationStore.js"() {
40883
+ "../memory/dist/validationStore.js"() {
40772
40884
  "use strict";
40773
40885
  }
40774
40886
  });
40775
40887
 
40776
- // packages/memory/dist/toolPatternStore.js
40888
+ // ../memory/dist/toolPatternStore.js
40777
40889
  import { randomUUID as randomUUID3 } from "node:crypto";
40778
40890
  var ToolPatternStore;
40779
40891
  var init_toolPatternStore = __esm({
40780
- "packages/memory/dist/toolPatternStore.js"() {
40892
+ "../memory/dist/toolPatternStore.js"() {
40781
40893
  "use strict";
40782
40894
  ToolPatternStore = class {
40783
40895
  db;
@@ -40956,9 +41068,9 @@ var init_toolPatternStore = __esm({
40956
41068
  }
40957
41069
  });
40958
41070
 
40959
- // packages/memory/dist/index.js
41071
+ // ../memory/dist/index.js
40960
41072
  var init_dist7 = __esm({
40961
- "packages/memory/dist/index.js"() {
41073
+ "../memory/dist/index.js"() {
40962
41074
  "use strict";
40963
41075
  init_db();
40964
41076
  init_repoProfileStore();
@@ -40971,7 +41083,7 @@ var init_dist7 = __esm({
40971
41083
  }
40972
41084
  });
40973
41085
 
40974
- // packages/cli/dist/tui/carousel.js
41086
+ // dist/tui/carousel.js
40975
41087
  function fg(code, text) {
40976
41088
  return isTTY6 ? `\x1B[38;5;${code}m${text}\x1B[0m` : text;
40977
41089
  }
@@ -41013,7 +41125,7 @@ function createRow(phraseIndices, speed, direction, bank) {
41013
41125
  }
41014
41126
  var isTTY6, PHRASES, Carousel;
41015
41127
  var init_carousel = __esm({
41016
- "packages/cli/dist/tui/carousel.js"() {
41128
+ "dist/tui/carousel.js"() {
41017
41129
  "use strict";
41018
41130
  isTTY6 = process.stdout.isTTY ?? false;
41019
41131
  PHRASES = [
@@ -41254,15 +41366,15 @@ var init_carousel = __esm({
41254
41366
  }
41255
41367
  });
41256
41368
 
41257
- // packages/cli/dist/tui/carousel-descriptors.js
41258
- import { existsSync as existsSync36, readFileSync as readFileSync25, writeFileSync as writeFileSync14, mkdirSync as mkdirSync14, readdirSync as readdirSync11 } from "node:fs";
41369
+ // dist/tui/carousel-descriptors.js
41370
+ import { existsSync as existsSync36, readFileSync as readFileSync26, writeFileSync as writeFileSync14, mkdirSync as mkdirSync14, readdirSync as readdirSync11 } from "node:fs";
41259
41371
  import { join as join44, basename as basename11 } from "node:path";
41260
41372
  function loadToolProfile(repoRoot) {
41261
41373
  const filePath = join44(repoRoot, OA_DIR, "context", TOOL_PROFILE_FILE);
41262
41374
  try {
41263
41375
  if (!existsSync36(filePath))
41264
41376
  return null;
41265
- return JSON.parse(readFileSync25(filePath, "utf-8"));
41377
+ return JSON.parse(readFileSync26(filePath, "utf-8"));
41266
41378
  } catch {
41267
41379
  return null;
41268
41380
  }
@@ -41332,7 +41444,7 @@ function loadCachedDescriptors(repoRoot) {
41332
41444
  try {
41333
41445
  if (!existsSync36(filePath))
41334
41446
  return null;
41335
- const cached = JSON.parse(readFileSync25(filePath, "utf-8"));
41447
+ const cached = JSON.parse(readFileSync26(filePath, "utf-8"));
41336
41448
  return cached.phrases.length > 0 ? cached.phrases : null;
41337
41449
  } catch {
41338
41450
  return null;
@@ -41398,7 +41510,7 @@ function extractFromPackageJson(repoRoot, tags) {
41398
41510
  try {
41399
41511
  if (!existsSync36(pkgPath))
41400
41512
  return;
41401
- const pkg = JSON.parse(readFileSync25(pkgPath, "utf-8"));
41513
+ const pkg = JSON.parse(readFileSync26(pkgPath, "utf-8"));
41402
41514
  if (pkg.name && typeof pkg.name === "string") {
41403
41515
  const parts = pkg.name.replace(/^@/, "").split("/");
41404
41516
  for (const p of parts)
@@ -41473,7 +41585,7 @@ function extractFromMemory(repoRoot, tags) {
41473
41585
  const topic = file.replace(/\.json$/, "").replace(/[-_]/g, " ");
41474
41586
  tags.push(topic);
41475
41587
  try {
41476
- const data = JSON.parse(readFileSync25(join44(memoryDir, file), "utf-8"));
41588
+ const data = JSON.parse(readFileSync26(join44(memoryDir, file), "utf-8"));
41477
41589
  if (data && typeof data === "object") {
41478
41590
  const keys = Object.keys(data).slice(0, 3);
41479
41591
  for (const key of keys) {
@@ -41501,7 +41613,7 @@ function extractFromToolProfile(profile, tags) {
41501
41613
  }
41502
41614
  var TOOL_CATEGORIES, TOOL_PROFILE_FILE, DESCRIPTOR_FILE, CATEGORY_LABELS, STOP_WORDS;
41503
41615
  var init_carousel_descriptors = __esm({
41504
- "packages/cli/dist/tui/carousel-descriptors.js"() {
41616
+ "dist/tui/carousel-descriptors.js"() {
41505
41617
  "use strict";
41506
41618
  init_oa_directory();
41507
41619
  TOOL_CATEGORIES = [
@@ -41607,7 +41719,7 @@ var init_carousel_descriptors = __esm({
41607
41719
  }
41608
41720
  });
41609
41721
 
41610
- // packages/cli/dist/tui/stream-renderer.js
41722
+ // dist/tui/stream-renderer.js
41611
41723
  function fg2563(code, text) {
41612
41724
  return isTTY7 ? `\x1B[38;5;${code}m${text}\x1B[0m` : text;
41613
41725
  }
@@ -41625,7 +41737,7 @@ function boldText(text) {
41625
41737
  }
41626
41738
  var isTTY7, PASTEL, StreamRenderer;
41627
41739
  var init_stream_renderer = __esm({
41628
- "packages/cli/dist/tui/stream-renderer.js"() {
41740
+ "dist/tui/stream-renderer.js"() {
41629
41741
  "use strict";
41630
41742
  isTTY7 = process.stdout.isTTY ?? false;
41631
41743
  PASTEL = {
@@ -42094,8 +42206,8 @@ var init_stream_renderer = __esm({
42094
42206
  }
42095
42207
  });
42096
42208
 
42097
- // packages/cli/dist/tui/edit-history.js
42098
- import { appendFileSync as appendFileSync2, mkdirSync as mkdirSync15 } from "node:fs";
42209
+ // dist/tui/edit-history.js
42210
+ import { appendFileSync as appendFileSync3, mkdirSync as mkdirSync15 } from "node:fs";
42099
42211
  import { join as join45 } from "node:path";
42100
42212
  function createEditHistoryLogger(repoRoot, sessionId) {
42101
42213
  const historyDir = join45(repoRoot, ".oa", "history");
@@ -42117,7 +42229,7 @@ function createEditHistoryLogger(repoRoot, sessionId) {
42117
42229
  args: sanitizeArgs(toolName, toolArgs)
42118
42230
  };
42119
42231
  try {
42120
- appendFileSync2(logPath, JSON.stringify(entry) + "\n", "utf-8");
42232
+ appendFileSync3(logPath, JSON.stringify(entry) + "\n", "utf-8");
42121
42233
  } catch {
42122
42234
  }
42123
42235
  }
@@ -42198,7 +42310,7 @@ function sanitizeArgs(tool, args) {
42198
42310
  }
42199
42311
  var EDIT_TOOLS;
42200
42312
  var init_edit_history = __esm({
42201
- "packages/cli/dist/tui/edit-history.js"() {
42313
+ "dist/tui/edit-history.js"() {
42202
42314
  "use strict";
42203
42315
  EDIT_TOOLS = /* @__PURE__ */ new Set([
42204
42316
  "file_edit",
@@ -42209,8 +42321,8 @@ var init_edit_history = __esm({
42209
42321
  }
42210
42322
  });
42211
42323
 
42212
- // packages/cli/dist/tui/promptLoader.js
42213
- import { readFileSync as readFileSync26, existsSync as existsSync37 } from "node:fs";
42324
+ // dist/tui/promptLoader.js
42325
+ import { readFileSync as readFileSync27, existsSync as existsSync37 } from "node:fs";
42214
42326
  import { join as join46, dirname as dirname17 } from "node:path";
42215
42327
  import { fileURLToPath as fileURLToPath11 } from "node:url";
42216
42328
  function loadPrompt3(promptPath, vars) {
@@ -42220,7 +42332,7 @@ function loadPrompt3(promptPath, vars) {
42220
42332
  if (!existsSync37(fullPath)) {
42221
42333
  throw new Error(`Prompt file not found: ${fullPath}`);
42222
42334
  }
42223
- content = readFileSync26(fullPath, "utf-8");
42335
+ content = readFileSync27(fullPath, "utf-8");
42224
42336
  cache3.set(promptPath, content);
42225
42337
  }
42226
42338
  if (!vars)
@@ -42229,7 +42341,7 @@ function loadPrompt3(promptPath, vars) {
42229
42341
  }
42230
42342
  var __filename3, __dirname6, devPath2, publishedPath2, PROMPTS_DIR3, cache3;
42231
42343
  var init_promptLoader3 = __esm({
42232
- "packages/cli/dist/tui/promptLoader.js"() {
42344
+ "dist/tui/promptLoader.js"() {
42233
42345
  "use strict";
42234
42346
  __filename3 = fileURLToPath11(import.meta.url);
42235
42347
  __dirname6 = dirname17(__filename3);
@@ -42240,8 +42352,8 @@ var init_promptLoader3 = __esm({
42240
42352
  }
42241
42353
  });
42242
42354
 
42243
- // packages/cli/dist/tui/dream-engine.js
42244
- import { mkdirSync as mkdirSync16, writeFileSync as writeFileSync15, readFileSync as readFileSync27, existsSync as existsSync38, cpSync, rmSync, readdirSync as readdirSync12 } from "node:fs";
42355
+ // dist/tui/dream-engine.js
42356
+ import { mkdirSync as mkdirSync16, writeFileSync as writeFileSync15, readFileSync as readFileSync28, existsSync as existsSync38, cpSync, rmSync, readdirSync as readdirSync12 } from "node:fs";
42245
42357
  import { join as join47, basename as basename12 } from "node:path";
42246
42358
  import { execSync as execSync29 } from "node:child_process";
42247
42359
  function loadAutoresearchMemory(repoRoot) {
@@ -42249,7 +42361,7 @@ function loadAutoresearchMemory(repoRoot) {
42249
42361
  if (!existsSync38(memoryPath))
42250
42362
  return "";
42251
42363
  try {
42252
- const raw = readFileSync27(memoryPath, "utf-8");
42364
+ const raw = readFileSync28(memoryPath, "utf-8");
42253
42365
  const data = JSON.parse(raw);
42254
42366
  const sections = [];
42255
42367
  for (const key of AUTORESEARCH_MEMORY_KEYS) {
@@ -42403,7 +42515,7 @@ function renderSwarmComplete(workspace) {
42403
42515
  }
42404
42516
  var SWARM_ROLE_CONFIG, AutoresearchFileWriteTool, AutoresearchFileEditTool, AUTORESEARCH_MEMORY_KEYS, SLEEP_STAGES, DreamFileWriteTool, DreamFileEditTool, DreamShellTool, DreamEngine;
42405
42517
  var init_dream_engine = __esm({
42406
- "packages/cli/dist/tui/dream-engine.js"() {
42518
+ "dist/tui/dream-engine.js"() {
42407
42519
  "use strict";
42408
42520
  init_dist5();
42409
42521
  init_dist2();
@@ -42482,7 +42594,7 @@ var init_dream_engine = __esm({
42482
42594
  if (!existsSync38(targetPath)) {
42483
42595
  return { success: false, output: "", error: `File not found: ${rawPath}`, durationMs: Date.now() - start };
42484
42596
  }
42485
- let content = readFileSync27(targetPath, "utf-8");
42597
+ let content = readFileSync28(targetPath, "utf-8");
42486
42598
  if (!content.includes(oldStr)) {
42487
42599
  return { success: false, output: "", error: "old_string not found in file", durationMs: Date.now() - start };
42488
42600
  }
@@ -42571,7 +42683,7 @@ var init_dream_engine = __esm({
42571
42683
  if (!existsSync38(targetPath)) {
42572
42684
  return { success: false, output: "", error: `File not found: ${rawPath}`, durationMs: Date.now() - start };
42573
42685
  }
42574
- let content = readFileSync27(targetPath, "utf-8");
42686
+ let content = readFileSync28(targetPath, "utf-8");
42575
42687
  if (!content.includes(oldStr)) {
42576
42688
  return { success: false, output: "", error: "old_string not found in file", durationMs: Date.now() - start };
42577
42689
  }
@@ -43483,7 +43595,7 @@ ${files.map((f) => `- [\`${f}\`](./${f})`).join("\n")}
43483
43595
  }
43484
43596
  });
43485
43597
 
43486
- // packages/cli/dist/tui/priority-ingress.js
43598
+ // dist/tui/priority-ingress.js
43487
43599
  function classifyPriority(prompt, source, origin) {
43488
43600
  for (const rule of CLASSIFICATION_RULES) {
43489
43601
  if (rule.sourceType !== "any" && rule.sourceType !== source)
@@ -43508,7 +43620,7 @@ function classifyPriority(prompt, source, origin) {
43508
43620
  }
43509
43621
  var PRIORITY_WEIGHT, PRIORITY_POLICIES, CLASSIFICATION_RULES, PriorityIngressEngine;
43510
43622
  var init_priority_ingress = __esm({
43511
- "packages/cli/dist/tui/priority-ingress.js"() {
43623
+ "dist/tui/priority-ingress.js"() {
43512
43624
  "use strict";
43513
43625
  PRIORITY_WEIGHT = {
43514
43626
  critical: 100,
@@ -43693,7 +43805,7 @@ var init_priority_ingress = __esm({
43693
43805
  }
43694
43806
  });
43695
43807
 
43696
- // packages/cli/dist/tui/bless-engine.js
43808
+ // dist/tui/bless-engine.js
43697
43809
  function renderBlessStart() {
43698
43810
  process.stdout.write(`
43699
43811
  ${c2.green("\u26A1")} ${c2.bold("BLESSED")} \u2014 Infinite warm loop activated
@@ -43717,7 +43829,7 @@ function renderBlessStop(state) {
43717
43829
  }
43718
43830
  var BlessEngine;
43719
43831
  var init_bless_engine = __esm({
43720
- "packages/cli/dist/tui/bless-engine.js"() {
43832
+ "dist/tui/bless-engine.js"() {
43721
43833
  "use strict";
43722
43834
  init_render();
43723
43835
  init_dist2();
@@ -43848,8 +43960,8 @@ var init_bless_engine = __esm({
43848
43960
  }
43849
43961
  });
43850
43962
 
43851
- // packages/cli/dist/tui/dmn-engine.js
43852
- import { existsSync as existsSync39, readFileSync as readFileSync28, writeFileSync as writeFileSync16, mkdirSync as mkdirSync17, readdirSync as readdirSync13, unlinkSync as unlinkSync7 } from "node:fs";
43963
+ // dist/tui/dmn-engine.js
43964
+ import { existsSync as existsSync39, readFileSync as readFileSync29, writeFileSync as writeFileSync16, mkdirSync as mkdirSync17, readdirSync as readdirSync13, unlinkSync as unlinkSync7 } from "node:fs";
43853
43965
  import { join as join48, basename as basename13 } from "node:path";
43854
43966
  function buildDMNGatherPrompt(recentTaskSummaries, dueReminders, attentionItems, memoryTopics, capabilities, competence, reflectionBuffer) {
43855
43967
  const competenceReport = competence.length > 0 ? competence.map((c3) => {
@@ -43936,7 +44048,7 @@ function renderDMNResting(consecutiveNulls) {
43936
44048
  }
43937
44049
  var DMNEngine;
43938
44050
  var init_dmn_engine = __esm({
43939
- "packages/cli/dist/tui/dmn-engine.js"() {
44051
+ "dist/tui/dmn-engine.js"() {
43940
44052
  "use strict";
43941
44053
  init_dist5();
43942
44054
  init_dist2();
@@ -44577,7 +44689,7 @@ OUTPUT: Call task_complete with JSON:
44577
44689
  const path = join48(this.stateDir, "state.json");
44578
44690
  if (existsSync39(path)) {
44579
44691
  try {
44580
- this.state = JSON.parse(readFileSync28(path, "utf-8"));
44692
+ this.state = JSON.parse(readFileSync29(path, "utf-8"));
44581
44693
  } catch {
44582
44694
  }
44583
44695
  }
@@ -44608,8 +44720,8 @@ OUTPUT: Call task_complete with JSON:
44608
44720
  }
44609
44721
  });
44610
44722
 
44611
- // packages/cli/dist/tui/snr-engine.js
44612
- import { existsSync as existsSync40, readdirSync as readdirSync14, readFileSync as readFileSync29 } from "node:fs";
44723
+ // dist/tui/snr-engine.js
44724
+ import { existsSync as existsSync40, readdirSync as readdirSync14, readFileSync as readFileSync30 } from "node:fs";
44613
44725
  import { join as join49, basename as basename14 } from "node:path";
44614
44726
  function computeDPrime(signalScores, noiseScores) {
44615
44727
  if (signalScores.length === 0 || noiseScores.length === 0)
@@ -44668,7 +44780,7 @@ function adaptTool4(tool) {
44668
44780
  }
44669
44781
  var SNREngine;
44670
44782
  var init_snr_engine = __esm({
44671
- "packages/cli/dist/tui/snr-engine.js"() {
44783
+ "dist/tui/snr-engine.js"() {
44672
44784
  "use strict";
44673
44785
  init_dist5();
44674
44786
  init_dist2();
@@ -44863,7 +44975,7 @@ Call task_complete with the JSON array when done.`, onEvent)
44863
44975
  if (topics.length > 0 && !topics.includes(topic))
44864
44976
  continue;
44865
44977
  try {
44866
- const data = JSON.parse(readFileSync29(join49(dir, f), "utf-8"));
44978
+ const data = JSON.parse(readFileSync30(join49(dir, f), "utf-8"));
44867
44979
  for (const [key, val] of Object.entries(data)) {
44868
44980
  const value = typeof val === "object" && val !== null && "value" in val ? String(val.value) : String(val);
44869
44981
  entries.push({ topic, key, value });
@@ -44943,7 +45055,7 @@ Call task_complete with the JSON array when done.`, onEvent)
44943
45055
  }
44944
45056
  });
44945
45057
 
44946
- // packages/cli/dist/tui/emotion-engine.js
45058
+ // dist/tui/emotion-engine.js
44947
45059
  function labelFromCoordinates(valence, arousal) {
44948
45060
  if (valence > 0.6 && arousal > 0.6)
44949
45061
  return { label: "exhilarated", emoji: "\u{1F929}" };
@@ -45004,7 +45116,7 @@ function clamp(value, min, max) {
45004
45116
  }
45005
45117
  var BASELINE_VALENCE, BASELINE_AROUSAL, DECAY_HALF_LIFE_MS, LABEL_UPDATE_INTERVAL_MS, EXCITEMENT_THRESHOLD, DISTRESS_THRESHOLD, OUTREACH_COOLDOWN_MS, OUTREACH_MIN_STREAK, LABEL_REGEN_THRESHOLD, EmotionEngine;
45006
45118
  var init_emotion_engine = __esm({
45007
- "packages/cli/dist/tui/emotion-engine.js"() {
45119
+ "dist/tui/emotion-engine.js"() {
45008
45120
  "use strict";
45009
45121
  init_dist5();
45010
45122
  init_promptLoader3();
@@ -45350,7 +45462,7 @@ var init_emotion_engine = __esm({
45350
45462
  }
45351
45463
  });
45352
45464
 
45353
- // packages/cli/dist/tui/tool-policy.js
45465
+ // dist/tui/tool-policy.js
45354
45466
  function getDefaultPolicy(context) {
45355
45467
  switch (context) {
45356
45468
  case "terminal":
@@ -45400,7 +45512,7 @@ function applyToolPolicy(tools, context, userConfig) {
45400
45512
  }
45401
45513
  var SAFE_PUBLIC_TOOLS, SAFE_GROUP_ADMIN_TOOLS;
45402
45514
  var init_tool_policy = __esm({
45403
- "packages/cli/dist/tui/tool-policy.js"() {
45515
+ "dist/tui/tool-policy.js"() {
45404
45516
  "use strict";
45405
45517
  SAFE_PUBLIC_TOOLS = /* @__PURE__ */ new Set([
45406
45518
  "memory_read",
@@ -45429,7 +45541,7 @@ var init_tool_policy = __esm({
45429
45541
  }
45430
45542
  });
45431
45543
 
45432
- // packages/cli/dist/tui/telegram-bridge.js
45544
+ // dist/tui/telegram-bridge.js
45433
45545
  import { mkdirSync as mkdirSync18, existsSync as existsSync41, unlinkSync as unlinkSync8, readdirSync as readdirSync15, statSync as statSync11 } from "node:fs";
45434
45546
  import { join as join50, resolve as resolve28 } from "node:path";
45435
45547
  import { writeFile as writeFileAsync } from "node:fs/promises";
@@ -45566,7 +45678,7 @@ function renderTelegramSubAgentError(username, error) {
45566
45678
  }
45567
45679
  var TELEGRAM_SAFETY_PROMPT, ADMIN_DM_PROMPT, ADMIN_GROUP_PROMPT, GROUP_REPLY_DISCRETION_PROMPT, MEDIA_CACHE_TTL_MS, TelegramBridge;
45568
45680
  var init_telegram_bridge = __esm({
45569
- "packages/cli/dist/tui/telegram-bridge.js"() {
45681
+ "dist/tui/telegram-bridge.js"() {
45570
45682
  "use strict";
45571
45683
  init_dist5();
45572
45684
  init_dist2();
@@ -46605,7 +46717,7 @@ ${caption}\r
46605
46717
  }
46606
46718
  });
46607
46719
 
46608
- // packages/cli/dist/tui/braille-spinner.js
46720
+ // dist/tui/braille-spinner.js
46609
46721
  function buildColorRamp(ramp) {
46610
46722
  return [...ramp, ...ramp.slice(1, -1).reverse()];
46611
46723
  }
@@ -46647,7 +46759,7 @@ function themeForTool(toolName) {
46647
46759
  }
46648
46760
  var DENSITY, WAVE, THEME_DEFAULT, THEME_FILE, THEME_SHELL, THEME_WEB, THEME_SEARCH, THEME_MEMORY, THEME_SKILL, THEME_TOOL_CREATE, THEME_DREAM, DEFAULT_METRICS, BrailleSpinner;
46649
46761
  var init_braille_spinner = __esm({
46650
- "packages/cli/dist/tui/braille-spinner.js"() {
46762
+ "dist/tui/braille-spinner.js"() {
46651
46763
  "use strict";
46652
46764
  DENSITY = [
46653
46765
  "\u2800",
@@ -46844,7 +46956,7 @@ var init_braille_spinner = __esm({
46844
46956
  }
46845
46957
  });
46846
46958
 
46847
- // packages/cli/dist/tui/system-metrics.js
46959
+ // dist/tui/system-metrics.js
46848
46960
  import { loadavg as loadavg2, cpus as cpus2, totalmem as totalmem3, freemem as freemem2, platform as platform4 } from "node:os";
46849
46961
  import { exec as exec3 } from "node:child_process";
46850
46962
  import { readFile as readFile16 } from "node:fs/promises";
@@ -47016,7 +47128,7 @@ async function collectLocalMetrics() {
47016
47128
  }
47017
47129
  var _lastNetSnapshot, _nvidiaSmiAvailable, SystemMetricsCollector;
47018
47130
  var init_system_metrics = __esm({
47019
- "packages/cli/dist/tui/system-metrics.js"() {
47131
+ "dist/tui/system-metrics.js"() {
47020
47132
  "use strict";
47021
47133
  _lastNetSnapshot = null;
47022
47134
  _nvidiaSmiAvailable = null;
@@ -47125,10 +47237,10 @@ var init_system_metrics = __esm({
47125
47237
  }
47126
47238
  });
47127
47239
 
47128
- // packages/cli/dist/tui/status-bar.js
47240
+ // dist/tui/status-bar.js
47129
47241
  var EXPERT_TOOL_BASELINES, CONTEXT_SWITCH_OVERHEAD, TURN_PLANNING_OVERHEAD, DEFAULT_TOOL_BASELINE, CODE_READ_CHARS_PER_SEC, PROSE_READ_CHARS_PER_SEC, MIN_CONTENT_FOR_READING, CODE_CONTENT_TOOLS, PROSE_CONTENT_TOOLS, HumanSpeedTracker, StatusBar;
47130
47242
  var init_status_bar = __esm({
47131
- "packages/cli/dist/tui/status-bar.js"() {
47243
+ "dist/tui/status-bar.js"() {
47132
47244
  "use strict";
47133
47245
  init_render();
47134
47246
  init_braille_spinner();
@@ -48537,14 +48649,14 @@ var init_status_bar = __esm({
48537
48649
  }
48538
48650
  });
48539
48651
 
48540
- // packages/cli/dist/tui/interactive.js
48652
+ // dist/tui/interactive.js
48541
48653
  import * as readline2 from "node:readline";
48542
48654
  import { Writable } from "node:stream";
48543
48655
  import { cwd } from "node:process";
48544
48656
  import { resolve as resolve29, join as join51, dirname as dirname18, extname as extname10 } from "node:path";
48545
48657
  import { createRequire as createRequire2 } from "node:module";
48546
48658
  import { fileURLToPath as fileURLToPath12 } from "node:url";
48547
- import { readFileSync as readFileSync30, writeFileSync as writeFileSync17, appendFileSync as appendFileSync3, rmSync as rmSync2, readdirSync as readdirSync16, mkdirSync as mkdirSync19 } from "node:fs";
48659
+ import { readFileSync as readFileSync31, writeFileSync as writeFileSync17, appendFileSync as appendFileSync4, rmSync as rmSync2, readdirSync as readdirSync16, mkdirSync as mkdirSync19 } from "node:fs";
48548
48660
  import { existsSync as existsSync42 } from "node:fs";
48549
48661
  import { homedir as homedir13 } from "node:os";
48550
48662
  function formatTimeAgo(date) {
@@ -48785,7 +48897,7 @@ function gatherMemorySnippets(root) {
48785
48897
  continue;
48786
48898
  try {
48787
48899
  for (const f of readdirSync16(dir).filter((f2) => f2.endsWith(".json"))) {
48788
- const data = JSON.parse(readFileSync30(join51(dir, f), "utf-8"));
48900
+ const data = JSON.parse(readFileSync31(join51(dir, f), "utf-8"));
48789
48901
  for (const val of Object.values(data)) {
48790
48902
  const v = typeof val === "object" && val !== null && "value" in val ? String(val.value) : String(val);
48791
48903
  if (v.length > 10)
@@ -49236,12 +49348,6 @@ ${entry.fullContent}`
49236
49348
  }
49237
49349
  }
49238
49350
  }
49239
- if (isNeovimActive()) {
49240
- const toolName = event.toolName ?? "unknown";
49241
- const argSummary = Object.keys(event.toolArgs ?? {}).join(", ");
49242
- writeToNeovimOutput(`\x1B[33m\u25B6 ${toolName}\x1B[0m(${argSummary})\r
49243
- `);
49244
- }
49245
49351
  getActivityFeed().push({
49246
49352
  ts: Date.now(),
49247
49353
  source: "main",
@@ -49253,16 +49359,23 @@ ${entry.fullContent}`
49253
49359
  statusBar?.recordSpeedToolCall(event.toolName ?? "unknown");
49254
49360
  toolCallStartMs = Date.now();
49255
49361
  statusBar?.setActiveTool(event.toolName ?? null);
49256
- contentWrite(() => {
49257
- if (voice?.enabled && (voice.voiceMode === "action" || voice.voiceMode === "verbose")) {
49258
- const emoState = emotionEngine?.getState();
49259
- const emoCtx = emoState ? { valence: emoState.valence, arousal: emoState.arousal, label: emoState.label, emoji: emoState.emoji } : void 0;
49260
- const desc = describeToolCall(event.toolName ?? "unknown", event.toolArgs ?? {}, vLevel, emoCtx, isStark);
49261
- renderVoiceText(desc);
49262
- voice.speakSubordinate(desc, emoCtx);
49263
- }
49264
- renderToolCallStart(event.toolName ?? "unknown", event.toolArgs ?? {}, config.verbose);
49265
- });
49362
+ if (isNeovimActive()) {
49363
+ const toolName = event.toolName ?? "unknown";
49364
+ const argSummary = Object.keys(event.toolArgs ?? {}).join(", ");
49365
+ writeToNeovimOutput(`\x1B[33m\u25B6 ${toolName}\x1B[0m(${argSummary})\r
49366
+ `);
49367
+ } else {
49368
+ contentWrite(() => {
49369
+ if (voice?.enabled && (voice.voiceMode === "action" || voice.voiceMode === "verbose")) {
49370
+ const emoState = emotionEngine?.getState();
49371
+ const emoCtx = emoState ? { valence: emoState.valence, arousal: emoState.arousal, label: emoState.label, emoji: emoState.emoji } : void 0;
49372
+ const desc = describeToolCall(event.toolName ?? "unknown", event.toolArgs ?? {}, vLevel, emoCtx, isStark);
49373
+ renderVoiceText(desc);
49374
+ voice.speakSubordinate(desc, emoCtx);
49375
+ }
49376
+ renderToolCallStart(event.toolName ?? "unknown", event.toolArgs ?? {}, config.verbose);
49377
+ });
49378
+ }
49266
49379
  break;
49267
49380
  case "tool_result": {
49268
49381
  if (lastToolCall) {
@@ -49284,57 +49397,63 @@ ${entry.fullContent}`
49284
49397
  statusBar?.setActiveTool(null);
49285
49398
  const toolDurationMs = toolCallStartMs > 0 ? Date.now() - toolCallStartMs : 0;
49286
49399
  toolCallStartMs = 0;
49287
- contentWrite(() => {
49288
- renderToolResult(event.toolName ?? "unknown", event.success ?? false, event.content ?? "", config.verbose);
49289
- if (config.verbose && toolDurationMs > 0) {
49290
- const durStr = toolDurationMs < 1e3 ? `${toolDurationMs}ms` : `${(toolDurationMs / 1e3).toFixed(1)}s`;
49291
- const sizeStr = resultLen > 0 ? ` | ${resultLen.toLocaleString()} chars (~${Math.ceil(resultLen / 4).toLocaleString()} tokens)` : "";
49292
- renderVerbose(`${event.toolName ?? "unknown"}: ${durStr}${sizeStr}`);
49293
- }
49294
- if (voice?.enabled && event.toolName !== "task_complete" && (voice.voiceMode === "action" || voice.voiceMode === "verbose")) {
49295
- const emoState2 = emotionEngine?.getState();
49296
- const emoCtx2 = emoState2 ? { valence: emoState2.valence, arousal: emoState2.arousal, label: emoState2.label, emoji: emoState2.emoji } : void 0;
49297
- const desc = describeToolResult(event.toolName ?? "unknown", event.success ?? false, vLevel, event.content ?? void 0, emoCtx2, isStark);
49298
- if (desc) {
49299
- renderVoiceText(desc);
49300
- voice.speakSubordinate(desc, emoCtx2);
49301
- }
49302
- }
49303
- });
49304
49400
  if (isNeovimActive()) {
49305
49401
  const ok = event.success ?? false;
49306
49402
  const prefix = ok ? "\x1B[32m\u2713\x1B[0m" : "\x1B[31m\u2717\x1B[0m";
49307
49403
  const preview = (event.content ?? "").slice(0, 120).replace(/\n/g, " ");
49308
49404
  writeToNeovimOutput(` ${prefix} ${preview}\r
49309
49405
  `);
49406
+ } else {
49407
+ contentWrite(() => {
49408
+ renderToolResult(event.toolName ?? "unknown", event.success ?? false, event.content ?? "", config.verbose);
49409
+ if (config.verbose && toolDurationMs > 0) {
49410
+ const durStr = toolDurationMs < 1e3 ? `${toolDurationMs}ms` : `${(toolDurationMs / 1e3).toFixed(1)}s`;
49411
+ const sizeStr = resultLen > 0 ? ` | ${resultLen.toLocaleString()} chars (~${Math.ceil(resultLen / 4).toLocaleString()} tokens)` : "";
49412
+ renderVerbose(`${event.toolName ?? "unknown"}: ${durStr}${sizeStr}`);
49413
+ }
49414
+ if (voice?.enabled && event.toolName !== "task_complete" && (voice.voiceMode === "action" || voice.voiceMode === "verbose")) {
49415
+ const emoState2 = emotionEngine?.getState();
49416
+ const emoCtx2 = emoState2 ? { valence: emoState2.valence, arousal: emoState2.arousal, label: emoState2.label, emoji: emoState2.emoji } : void 0;
49417
+ const desc = describeToolResult(event.toolName ?? "unknown", event.success ?? false, vLevel, event.content ?? void 0, emoCtx2, isStark);
49418
+ if (desc) {
49419
+ renderVoiceText(desc);
49420
+ voice.speakSubordinate(desc, emoCtx2);
49421
+ }
49422
+ }
49423
+ });
49310
49424
  }
49311
49425
  break;
49312
49426
  }
49313
49427
  case "model_response":
49314
49428
  statusBar?.recordSpeedTurn();
49315
- if (config.verbose && !stream?.enabled && event.content) {
49429
+ if (!isNeovimActive() && config.verbose && !stream?.enabled && event.content) {
49316
49430
  contentWrite(() => renderAssistantText(event.content));
49317
49431
  }
49318
49432
  break;
49319
49433
  case "stream_start":
49320
49434
  streamStartMs = Date.now();
49321
49435
  streamTextBuffer = "";
49322
- if (stream?.enabled) {
49323
- if (statusBar?.isActive)
49324
- statusBar.beginContentWrite();
49325
- stream.renderer.onStreamStart();
49326
- }
49327
- if (config.verbose) {
49328
- contentWrite(() => renderVerbose(`Stream started (turn ${event.turn ?? "?"})`));
49436
+ if (!isNeovimActive()) {
49437
+ if (stream?.enabled) {
49438
+ if (statusBar?.isActive)
49439
+ statusBar.beginContentWrite();
49440
+ stream.renderer.onStreamStart();
49441
+ }
49442
+ if (config.verbose) {
49443
+ contentWrite(() => renderVerbose(`Stream started (turn ${event.turn ?? "?"})`));
49444
+ }
49445
+ } else {
49446
+ writeToNeovimOutput("\r\n\x1B[36m\u2500\u2500 Stream \u2500\u2500\x1B[0m\r\n");
49329
49447
  }
49330
49448
  break;
49331
49449
  case "stream_token":
49332
- if (stream?.enabled) {
49450
+ if (isNeovimActive()) {
49451
+ if (event.content && (event.streamKind ?? "content") === "content") {
49452
+ writeToNeovimOutput(event.content);
49453
+ }
49454
+ } else if (stream?.enabled) {
49333
49455
  stream.renderer.write(event.content ?? "", event.streamKind ?? "content");
49334
49456
  }
49335
- if (isNeovimActive() && event.content && (event.streamKind ?? "content") === "content") {
49336
- writeToNeovimOutput(event.content);
49337
- }
49338
49457
  if (voice?.enabled && (voice.voiceMode === "chat" || voice.voiceMode === "verbose")) {
49339
49458
  if (event.content && (event.streamKind ?? "content") === "content") {
49340
49459
  streamTextBuffer += event.content;
@@ -49348,10 +49467,20 @@ ${entry.fullContent}`
49348
49467
  case "stream_end": {
49349
49468
  const streamDurationMs = streamStartMs > 0 ? Date.now() - streamStartMs : 0;
49350
49469
  streamStartMs = 0;
49351
- if (stream?.enabled) {
49352
- stream.renderer.onStreamEnd();
49353
- if (statusBar?.isActive)
49354
- statusBar.endContentWrite();
49470
+ if (isNeovimActive()) {
49471
+ writeToNeovimOutput("\r\n");
49472
+ } else {
49473
+ if (stream?.enabled) {
49474
+ stream.renderer.onStreamEnd();
49475
+ if (statusBar?.isActive)
49476
+ statusBar.endContentWrite();
49477
+ }
49478
+ if (config.verbose && streamDurationMs > 0) {
49479
+ const streamChars = event.content?.length ?? 0;
49480
+ const estTokens = Math.ceil(streamChars / 4);
49481
+ const tokPerSec = streamDurationMs > 0 ? (estTokens / (streamDurationMs / 1e3)).toFixed(1) : "?";
49482
+ contentWrite(() => renderVerbose(`Stream ended: ~${estTokens.toLocaleString()} tokens in ${(streamDurationMs / 1e3).toFixed(1)}s (${tokPerSec} tok/s)`));
49483
+ }
49355
49484
  }
49356
49485
  if (voice?.enabled && (voice.voiceMode === "chat" || voice.voiceMode === "verbose")) {
49357
49486
  const chatText = (streamTextBuffer || event.content || "").trim();
@@ -49360,26 +49489,34 @@ ${entry.fullContent}`
49360
49489
  voice.speak(chatText);
49361
49490
  }
49362
49491
  }
49363
- if (config.verbose && streamDurationMs > 0) {
49364
- const streamChars = event.content?.length ?? 0;
49365
- const estTokens = Math.ceil(streamChars / 4);
49366
- const tokPerSec = streamDurationMs > 0 ? (estTokens / (streamDurationMs / 1e3)).toFixed(1) : "?";
49367
- contentWrite(() => renderVerbose(`Stream ended: ~${estTokens.toLocaleString()} tokens in ${(streamDurationMs / 1e3).toFixed(1)}s (${tokPerSec} tok/s)`));
49368
- }
49369
49492
  break;
49370
49493
  }
49371
49494
  case "user_interrupt":
49372
49495
  break;
49373
49496
  case "compaction":
49374
- contentWrite(() => renderWarning(`Context compacted: ${event.content}`));
49497
+ if (isNeovimActive()) {
49498
+ writeToNeovimOutput("\x1B[33m\u26A0 Context compacted\x1B[0m\r\n");
49499
+ } else {
49500
+ contentWrite(() => renderWarning(`Context compacted: ${event.content}`));
49501
+ }
49375
49502
  if (onCompaction)
49376
49503
  onCompaction();
49377
49504
  break;
49378
49505
  case "status":
49379
- contentWrite(() => renderInfo(event.content ?? ""));
49506
+ if (isNeovimActive()) {
49507
+ writeToNeovimOutput(`\x1B[2m${event.content ?? ""}\x1B[0m\r
49508
+ `);
49509
+ } else {
49510
+ contentWrite(() => renderInfo(event.content ?? ""));
49511
+ }
49380
49512
  break;
49381
49513
  case "error":
49382
- contentWrite(() => renderError(event.content ?? "Unknown error"));
49514
+ if (isNeovimActive()) {
49515
+ writeToNeovimOutput(`\x1B[31m\u2717 ${event.content ?? "Unknown error"}\x1B[0m\r
49516
+ `);
49517
+ } else {
49518
+ contentWrite(() => renderError(event.content ?? "Unknown error"));
49519
+ }
49383
49520
  break;
49384
49521
  case "token_usage":
49385
49522
  if (statusBar && event.tokenUsage) {
@@ -49912,7 +50049,7 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
49912
50049
  let savedHistory = [];
49913
50050
  try {
49914
50051
  if (existsSync42(HISTORY_FILE)) {
49915
- const raw = readFileSync30(HISTORY_FILE, "utf8").trim();
50052
+ const raw = readFileSync31(HISTORY_FILE, "utf8").trim();
49916
50053
  if (raw)
49917
50054
  savedHistory = raw.split("\n").reverse();
49918
50055
  }
@@ -49932,9 +50069,9 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
49932
50069
  return;
49933
50070
  try {
49934
50071
  mkdirSync19(HISTORY_DIR, { recursive: true });
49935
- appendFileSync3(HISTORY_FILE, line + "\n", "utf8");
50072
+ appendFileSync4(HISTORY_FILE, line + "\n", "utf8");
49936
50073
  if (Math.random() < 0.02) {
49937
- const all = readFileSync30(HISTORY_FILE, "utf8").trim().split("\n");
50074
+ const all = readFileSync31(HISTORY_FILE, "utf8").trim().split("\n");
49938
50075
  if (all.length > MAX_HISTORY_LINES) {
49939
50076
  writeFileSync17(HISTORY_FILE, all.slice(-MAX_HISTORY_LINES).join("\n") + "\n", "utf8");
49940
50077
  }
@@ -51531,7 +51668,7 @@ Execute this skill now. Follow the behavioral guidance above.`;
51531
51668
  if (isImage) {
51532
51669
  try {
51533
51670
  const imgPath = resolve29(repoRoot, cleanPath);
51534
- const imgBuffer = readFileSync30(imgPath);
51671
+ const imgBuffer = readFileSync31(imgPath);
51535
51672
  const base64 = imgBuffer.toString("base64");
51536
51673
  const ext = extname10(cleanPath).toLowerCase();
51537
51674
  const mime = ext === ".png" ? "image/png" : ext === ".gif" ? "image/gif" : ext === ".webp" ? "image/webp" : "image/jpeg";
@@ -52033,7 +52170,7 @@ async function runWithTUI(task, config, repoPath) {
52033
52170
  }
52034
52171
  var taskManager;
52035
52172
  var init_interactive = __esm({
52036
- "packages/cli/dist/tui/interactive.js"() {
52173
+ "dist/tui/interactive.js"() {
52037
52174
  "use strict";
52038
52175
  init_dist5();
52039
52176
  init_dist5();
@@ -52073,7 +52210,7 @@ var init_interactive = __esm({
52073
52210
  }
52074
52211
  });
52075
52212
 
52076
- // packages/cli/dist/commands/run.js
52213
+ // dist/commands/run.js
52077
52214
  var run_exports = {};
52078
52215
  __export(run_exports, {
52079
52216
  runCommand: () => runCommand
@@ -52093,13 +52230,13 @@ async function runCommand(opts, config) {
52093
52230
  }
52094
52231
  }
52095
52232
  var init_run = __esm({
52096
- "packages/cli/dist/commands/run.js"() {
52233
+ "dist/commands/run.js"() {
52097
52234
  "use strict";
52098
52235
  init_interactive();
52099
52236
  }
52100
52237
  });
52101
52238
 
52102
- // packages/indexer/dist/codebase-indexer.js
52239
+ // ../indexer/dist/codebase-indexer.js
52103
52240
  import { glob } from "glob";
52104
52241
  import ignore from "ignore";
52105
52242
  import { readFile as readFile17, stat as stat4 } from "node:fs/promises";
@@ -52107,7 +52244,7 @@ import { createHash as createHash4 } from "node:crypto";
52107
52244
  import { join as join52, relative as relative3, extname as extname11, basename as basename15 } from "node:path";
52108
52245
  var DEFAULT_EXCLUDE, LANGUAGE_MAP, CodebaseIndexer;
52109
52246
  var init_codebase_indexer = __esm({
52110
- "packages/indexer/dist/codebase-indexer.js"() {
52247
+ "../indexer/dist/codebase-indexer.js"() {
52111
52248
  "use strict";
52112
52249
  DEFAULT_EXCLUDE = [
52113
52250
  "node_modules",
@@ -52225,25 +52362,25 @@ var init_codebase_indexer = __esm({
52225
52362
  }
52226
52363
  });
52227
52364
 
52228
- // packages/indexer/dist/repoScanner.js
52365
+ // ../indexer/dist/repoScanner.js
52229
52366
  import ignore2 from "ignore";
52230
52367
  var init_repoScanner = __esm({
52231
- "packages/indexer/dist/repoScanner.js"() {
52368
+ "../indexer/dist/repoScanner.js"() {
52232
52369
  "use strict";
52233
52370
  }
52234
52371
  });
52235
52372
 
52236
- // packages/indexer/dist/symbolExtractor.js
52373
+ // ../indexer/dist/symbolExtractor.js
52237
52374
  var init_symbolExtractor = __esm({
52238
- "packages/indexer/dist/symbolExtractor.js"() {
52375
+ "../indexer/dist/symbolExtractor.js"() {
52239
52376
  "use strict";
52240
52377
  }
52241
52378
  });
52242
52379
 
52243
- // packages/indexer/dist/graphBuilder.js
52380
+ // ../indexer/dist/graphBuilder.js
52244
52381
  var TS_EXTENSIONS, JS_EXTENSIONS, ALL_EXTENSIONS;
52245
52382
  var init_graphBuilder = __esm({
52246
- "packages/indexer/dist/graphBuilder.js"() {
52383
+ "../indexer/dist/graphBuilder.js"() {
52247
52384
  "use strict";
52248
52385
  TS_EXTENSIONS = [".ts", ".tsx", ".mts", ".cts"];
52249
52386
  JS_EXTENSIONS = [".js", ".jsx", ".mjs", ".cjs"];
@@ -52251,30 +52388,30 @@ var init_graphBuilder = __esm({
52251
52388
  }
52252
52389
  });
52253
52390
 
52254
- // packages/indexer/dist/fileSummarizer.js
52391
+ // ../indexer/dist/fileSummarizer.js
52255
52392
  var init_fileSummarizer = __esm({
52256
- "packages/indexer/dist/fileSummarizer.js"() {
52393
+ "../indexer/dist/fileSummarizer.js"() {
52257
52394
  "use strict";
52258
52395
  }
52259
52396
  });
52260
52397
 
52261
- // packages/indexer/dist/embeddings.js
52398
+ // ../indexer/dist/embeddings.js
52262
52399
  var init_embeddings = __esm({
52263
- "packages/indexer/dist/embeddings.js"() {
52400
+ "../indexer/dist/embeddings.js"() {
52264
52401
  "use strict";
52265
52402
  }
52266
52403
  });
52267
52404
 
52268
- // packages/indexer/dist/ollamaEmbeddings.js
52405
+ // ../indexer/dist/ollamaEmbeddings.js
52269
52406
  var init_ollamaEmbeddings = __esm({
52270
- "packages/indexer/dist/ollamaEmbeddings.js"() {
52407
+ "../indexer/dist/ollamaEmbeddings.js"() {
52271
52408
  "use strict";
52272
52409
  }
52273
52410
  });
52274
52411
 
52275
- // packages/indexer/dist/index.js
52412
+ // ../indexer/dist/index.js
52276
52413
  var init_dist8 = __esm({
52277
- "packages/indexer/dist/index.js"() {
52414
+ "../indexer/dist/index.js"() {
52278
52415
  "use strict";
52279
52416
  init_codebase_indexer();
52280
52417
  init_repoScanner();
@@ -52286,7 +52423,7 @@ var init_dist8 = __esm({
52286
52423
  }
52287
52424
  });
52288
52425
 
52289
- // packages/cli/dist/commands/index-repo.js
52426
+ // dist/commands/index-repo.js
52290
52427
  var index_repo_exports = {};
52291
52428
  __export(index_repo_exports, {
52292
52429
  indexRepoCommand: () => indexRepoCommand
@@ -52379,7 +52516,7 @@ async function indexRepoCommand(opts, _config) {
52379
52516
  printSuccess("Repository indexed successfully");
52380
52517
  }
52381
52518
  var init_index_repo = __esm({
52382
- "packages/cli/dist/commands/index-repo.js"() {
52519
+ "dist/commands/index-repo.js"() {
52383
52520
  "use strict";
52384
52521
  init_dist8();
52385
52522
  init_spinner();
@@ -52387,7 +52524,7 @@ var init_index_repo = __esm({
52387
52524
  }
52388
52525
  });
52389
52526
 
52390
- // packages/cli/dist/commands/status.js
52527
+ // dist/commands/status.js
52391
52528
  var status_exports = {};
52392
52529
  __export(status_exports, {
52393
52530
  statusCommand: () => statusCommand
@@ -52537,7 +52674,7 @@ async function statusVllm(opts, config) {
52537
52674
  printSuccess("vLLM backend is operational");
52538
52675
  }
52539
52676
  var init_status = __esm({
52540
- "packages/cli/dist/commands/status.js"() {
52677
+ "dist/commands/status.js"() {
52541
52678
  "use strict";
52542
52679
  init_dist();
52543
52680
  init_spinner();
@@ -52545,7 +52682,7 @@ var init_status = __esm({
52545
52682
  }
52546
52683
  });
52547
52684
 
52548
- // packages/cli/dist/commands/config.js
52685
+ // dist/commands/config.js
52549
52686
  var config_exports = {};
52550
52687
  __export(config_exports, {
52551
52688
  configCommand: () => configCommand
@@ -52720,7 +52857,7 @@ function handleKeys() {
52720
52857
  }
52721
52858
  var CONFIG_KEYS, SENSITIVE_KEYS, INT_KEYS, BOOL_KEYS, ENUM_KEYS;
52722
52859
  var init_config3 = __esm({
52723
- "packages/cli/dist/commands/config.js"() {
52860
+ "dist/commands/config.js"() {
52724
52861
  "use strict";
52725
52862
  init_config();
52726
52863
  init_oa_directory();
@@ -52767,7 +52904,7 @@ var init_config3 = __esm({
52767
52904
  }
52768
52905
  });
52769
52906
 
52770
- // packages/cli/dist/commands/serve.js
52907
+ // dist/commands/serve.js
52771
52908
  var serve_exports = {};
52772
52909
  __export(serve_exports, {
52773
52910
  serveCommand: () => serveCommand
@@ -52917,14 +53054,14 @@ async function runVllmServer(args, verbose) {
52917
53054
  });
52918
53055
  }
52919
53056
  var init_serve = __esm({
52920
- "packages/cli/dist/commands/serve.js"() {
53057
+ "dist/commands/serve.js"() {
52921
53058
  "use strict";
52922
53059
  init_dist();
52923
53060
  init_output();
52924
53061
  }
52925
53062
  });
52926
53063
 
52927
- // packages/cli/dist/commands/eval.js
53064
+ // dist/commands/eval.js
52928
53065
  var eval_exports = {};
52929
53066
  __export(eval_exports, {
52930
53067
  evalCommand: () => evalCommand
@@ -53063,7 +53200,7 @@ function createTempEvalRepo() {
53063
53200
  }
53064
53201
  var BASIC_SUITE, FULL_SUITE, SUITES;
53065
53202
  var init_eval = __esm({
53066
- "packages/cli/dist/commands/eval.js"() {
53203
+ "dist/commands/eval.js"() {
53067
53204
  "use strict";
53068
53205
  init_dist5();
53069
53206
  init_dist();
@@ -53111,7 +53248,7 @@ var init_eval = __esm({
53111
53248
  }
53112
53249
  });
53113
53250
 
53114
- // packages/cli/dist/index.js
53251
+ // dist/index.js
53115
53252
  init_config();
53116
53253
  init_output();
53117
53254
  init_updater();
@@ -53120,7 +53257,7 @@ import { createRequire as createRequire3 } from "node:module";
53120
53257
  import { fileURLToPath as fileURLToPath13 } from "node:url";
53121
53258
  import { dirname as dirname19, join as join55 } from "node:path";
53122
53259
 
53123
- // packages/cli/dist/cli.js
53260
+ // dist/cli.js
53124
53261
  import { createInterface } from "node:readline";
53125
53262
  function createCli(options) {
53126
53263
  return {
@@ -53159,10 +53296,10 @@ function createCli(options) {
53159
53296
  };
53160
53297
  }
53161
53298
 
53162
- // packages/cli/dist/args.js
53299
+ // dist/args.js
53163
53300
  import { parseArgs as nodeParseArgs } from "node:util";
53164
53301
 
53165
- // packages/cli/dist/types.js
53302
+ // dist/types.js
53166
53303
  var DEFAULT_OPTIONS = {
53167
53304
  model: "qwen-2.5-coder-32b",
53168
53305
  backendUrl: "http://localhost:8000/v1",
@@ -53172,7 +53309,7 @@ var DEFAULT_OPTIONS = {
53172
53309
  verbose: false
53173
53310
  };
53174
53311
 
53175
- // packages/cli/dist/args.js
53312
+ // dist/args.js
53176
53313
  function parseArgs(argv) {
53177
53314
  const { values } = nodeParseArgs({
53178
53315
  args: argv.slice(2),
@@ -53218,7 +53355,7 @@ Options:
53218
53355
  console.log(help.trim());
53219
53356
  }
53220
53357
 
53221
- // packages/cli/dist/index.js
53358
+ // dist/index.js
53222
53359
  init_config();
53223
53360
  init_spinner();
53224
53361
  init_output();