open-agents-ai 0.103.65 → 0.103.67

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 +472 -409
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -39,7 +39,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
39
39
  mod
40
40
  ));
41
41
 
42
- // ../packages/cli/dist/config.js
42
+ // packages/cli/dist/config.js
43
43
  import { readFileSync, existsSync, mkdirSync, writeFileSync } from "node:fs";
44
44
  import { homedir } from "node:os";
45
45
  import { join } from "node:path";
@@ -126,7 +126,7 @@ function coerceConfigValue(key, value) {
126
126
  }
127
127
  var DEFAULT_CONFIG, VALID_BACKEND_TYPES;
128
128
  var init_config = __esm({
129
- "../packages/cli/dist/config.js"() {
129
+ "packages/cli/dist/config.js"() {
130
130
  "use strict";
131
131
  DEFAULT_CONFIG = Object.freeze({
132
132
  backendUrl: "http://127.0.0.1:11434",
@@ -143,7 +143,7 @@ var init_config = __esm({
143
143
  }
144
144
  });
145
145
 
146
- // ../packages/cli/dist/ui/output.js
146
+ // packages/cli/dist/ui/output.js
147
147
  function ansi(code, text, tty) {
148
148
  return tty ? `\x1B[${code}m${text}\x1B[0m` : text;
149
149
  }
@@ -222,7 +222,7 @@ function printReport(opts) {
222
222
  }
223
223
  var isTTY, isStderrTTY, c, STATUS_ICON, STATUS_COLOR;
224
224
  var init_output = __esm({
225
- "../packages/cli/dist/ui/output.js"() {
225
+ "packages/cli/dist/ui/output.js"() {
226
226
  "use strict";
227
227
  isTTY = process.stdout.isTTY;
228
228
  isStderrTTY = process.stderr.isTTY;
@@ -254,7 +254,7 @@ var init_output = __esm({
254
254
  }
255
255
  });
256
256
 
257
- // ../packages/cli/dist/updater.js
257
+ // packages/cli/dist/updater.js
258
258
  import { execSync } from "node:child_process";
259
259
  import { existsSync as existsSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
260
260
  import { join as join2 } from "node:path";
@@ -362,7 +362,7 @@ function formatUpdateBanner(info) {
362
362
  }
363
363
  var PACKAGE_NAME, CHECK_INTERVAL_MS, CACHE_DIR, CACHE_FILE;
364
364
  var init_updater = __esm({
365
- "../packages/cli/dist/updater.js"() {
365
+ "packages/cli/dist/updater.js"() {
366
366
  "use strict";
367
367
  PACKAGE_NAME = "open-agents-ai";
368
368
  CHECK_INTERVAL_MS = 60 * 60 * 1e3;
@@ -371,10 +371,10 @@ var init_updater = __esm({
371
371
  }
372
372
  });
373
373
 
374
- // ../packages/cli/dist/ui/spinner.js
374
+ // packages/cli/dist/ui/spinner.js
375
375
  var FRAMES, INTERVAL_MS, Spinner;
376
376
  var init_spinner = __esm({
377
- "../packages/cli/dist/ui/spinner.js"() {
377
+ "packages/cli/dist/ui/spinner.js"() {
378
378
  "use strict";
379
379
  FRAMES = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
380
380
  INTERVAL_MS = 80;
@@ -472,10 +472,10 @@ var init_spinner = __esm({
472
472
  }
473
473
  });
474
474
 
475
- // ../packages/backend-vllm/dist/sleep.js
475
+ // packages/backend-vllm/dist/sleep.js
476
476
  var SleepManager;
477
477
  var init_sleep = __esm({
478
- "../packages/backend-vllm/dist/sleep.js"() {
478
+ "packages/backend-vllm/dist/sleep.js"() {
479
479
  "use strict";
480
480
  SleepManager = class {
481
481
  baseUrl;
@@ -551,7 +551,7 @@ var init_sleep = __esm({
551
551
  }
552
552
  });
553
553
 
554
- // ../packages/backend-vllm/dist/normalizeUrl.js
554
+ // packages/backend-vllm/dist/normalizeUrl.js
555
555
  function normalizeBaseUrl(url) {
556
556
  let u = url.trim();
557
557
  u = u.replace(/\/+$/, "");
@@ -583,7 +583,7 @@ function detectProvider(url) {
583
583
  }
584
584
  var PROVIDERS;
585
585
  var init_normalizeUrl = __esm({
586
- "../packages/backend-vllm/dist/normalizeUrl.js"() {
586
+ "packages/backend-vllm/dist/normalizeUrl.js"() {
587
587
  "use strict";
588
588
  PROVIDERS = [
589
589
  // --- Cloud providers (specific domains) ---
@@ -652,7 +652,7 @@ var init_normalizeUrl = __esm({
652
652
  }
653
653
  });
654
654
 
655
- // ../packages/backend-vllm/dist/VllmBackend.js
655
+ // packages/backend-vllm/dist/VllmBackend.js
656
656
  function agentMessageToChatMessage(msg) {
657
657
  return {
658
658
  role: msg.role,
@@ -664,7 +664,7 @@ function buildEmptyUsage() {
664
664
  }
665
665
  var VllmBackend;
666
666
  var init_VllmBackend = __esm({
667
- "../packages/backend-vllm/dist/VllmBackend.js"() {
667
+ "packages/backend-vllm/dist/VllmBackend.js"() {
668
668
  "use strict";
669
669
  init_sleep();
670
670
  init_normalizeUrl();
@@ -807,7 +807,7 @@ var init_VllmBackend = __esm({
807
807
  }
808
808
  });
809
809
 
810
- // ../packages/backend-vllm/dist/OllamaBackend.js
810
+ // packages/backend-vllm/dist/OllamaBackend.js
811
811
  function agentMessageToChatMessage2(msg) {
812
812
  return {
813
813
  role: msg.role,
@@ -819,7 +819,7 @@ function buildEmptyUsage2() {
819
819
  }
820
820
  var OllamaBackend;
821
821
  var init_OllamaBackend = __esm({
822
- "../packages/backend-vllm/dist/OllamaBackend.js"() {
822
+ "packages/backend-vllm/dist/OllamaBackend.js"() {
823
823
  "use strict";
824
824
  init_normalizeUrl();
825
825
  OllamaBackend = class _OllamaBackend {
@@ -998,7 +998,7 @@ var init_OllamaBackend = __esm({
998
998
  }
999
999
  });
1000
1000
 
1001
- // ../packages/backend-vllm/dist/FakeBackend.js
1001
+ // packages/backend-vllm/dist/FakeBackend.js
1002
1002
  function fnv1a32(input) {
1003
1003
  const FNV_PRIME = 16777619;
1004
1004
  const FNV_OFFSET_BASIS = 2166136261;
@@ -1011,7 +1011,7 @@ function fnv1a32(input) {
1011
1011
  }
1012
1012
  var FakeBackend;
1013
1013
  var init_FakeBackend = __esm({
1014
- "../packages/backend-vllm/dist/FakeBackend.js"() {
1014
+ "packages/backend-vllm/dist/FakeBackend.js"() {
1015
1015
  "use strict";
1016
1016
  FakeBackend = class {
1017
1017
  options;
@@ -1111,7 +1111,7 @@ var init_FakeBackend = __esm({
1111
1111
  }
1112
1112
  });
1113
1113
 
1114
- // ../packages/backend-vllm/dist/backendFactory.js
1114
+ // packages/backend-vllm/dist/backendFactory.js
1115
1115
  function detectBackendType(baseUrl) {
1116
1116
  if (!baseUrl) {
1117
1117
  return "ollama";
@@ -1150,7 +1150,7 @@ function createBackend(opts) {
1150
1150
  }
1151
1151
  }
1152
1152
  var init_backendFactory = __esm({
1153
- "../packages/backend-vllm/dist/backendFactory.js"() {
1153
+ "packages/backend-vllm/dist/backendFactory.js"() {
1154
1154
  "use strict";
1155
1155
  init_OllamaBackend();
1156
1156
  init_VllmBackend();
@@ -1158,7 +1158,7 @@ var init_backendFactory = __esm({
1158
1158
  }
1159
1159
  });
1160
1160
 
1161
- // ../packages/backend-vllm/dist/metrics.js
1161
+ // packages/backend-vllm/dist/metrics.js
1162
1162
  function parseMetricValue(prometheusText, metricName) {
1163
1163
  const lines = prometheusText.split("\n");
1164
1164
  for (const line of lines) {
@@ -1179,7 +1179,7 @@ function parseMetricValue(prometheusText, metricName) {
1179
1179
  }
1180
1180
  var MetricsCollector;
1181
1181
  var init_metrics = __esm({
1182
- "../packages/backend-vllm/dist/metrics.js"() {
1182
+ "packages/backend-vllm/dist/metrics.js"() {
1183
1183
  "use strict";
1184
1184
  MetricsCollector = class {
1185
1185
  metricsUrl;
@@ -1234,16 +1234,16 @@ var init_metrics = __esm({
1234
1234
  }
1235
1235
  });
1236
1236
 
1237
- // ../packages/backend-vllm/dist/routing.js
1237
+ // packages/backend-vllm/dist/routing.js
1238
1238
  var init_routing = __esm({
1239
- "../packages/backend-vllm/dist/routing.js"() {
1239
+ "packages/backend-vllm/dist/routing.js"() {
1240
1240
  "use strict";
1241
1241
  }
1242
1242
  });
1243
1243
 
1244
- // ../packages/backend-vllm/dist/index.js
1244
+ // packages/backend-vllm/dist/index.js
1245
1245
  var init_dist = __esm({
1246
- "../packages/backend-vllm/dist/index.js"() {
1246
+ "packages/backend-vllm/dist/index.js"() {
1247
1247
  "use strict";
1248
1248
  init_VllmBackend();
1249
1249
  init_OllamaBackend();
@@ -1256,10 +1256,10 @@ var init_dist = __esm({
1256
1256
  }
1257
1257
  });
1258
1258
 
1259
- // ../packages/execution/dist/tool-executor.js
1259
+ // packages/execution/dist/tool-executor.js
1260
1260
  var DEFAULT_CONFIG2, ToolExecutor;
1261
1261
  var init_tool_executor = __esm({
1262
- "../packages/execution/dist/tool-executor.js"() {
1262
+ "packages/execution/dist/tool-executor.js"() {
1263
1263
  "use strict";
1264
1264
  DEFAULT_CONFIG2 = {
1265
1265
  workingDir: ".",
@@ -1312,11 +1312,11 @@ var init_tool_executor = __esm({
1312
1312
  }
1313
1313
  });
1314
1314
 
1315
- // ../packages/execution/dist/tools/shell.js
1315
+ // packages/execution/dist/tools/shell.js
1316
1316
  import { spawn } from "node:child_process";
1317
1317
  var PERMISSION_ERROR_RE, ShellTool;
1318
1318
  var init_shell = __esm({
1319
- "../packages/execution/dist/tools/shell.js"() {
1319
+ "packages/execution/dist/tools/shell.js"() {
1320
1320
  "use strict";
1321
1321
  PERMISSION_ERROR_RE = /Permission denied|Operation not permitted|EACCES|EPERM|PermissionError|sudo:|not permitted|password is required|authentication failure/i;
1322
1322
  ShellTool = class {
@@ -1513,7 +1513,7 @@ ${stderr}` : ""),
1513
1513
  }
1514
1514
  });
1515
1515
 
1516
- // ../packages/execution/dist/tools/file-read.js
1516
+ // packages/execution/dist/tools/file-read.js
1517
1517
  import { readFile } from "node:fs/promises";
1518
1518
  import { resolve } from "node:path";
1519
1519
  function extractPath(args) {
@@ -1542,7 +1542,7 @@ function extractPath(args) {
1542
1542
  }
1543
1543
  var FileReadTool;
1544
1544
  var init_file_read = __esm({
1545
- "../packages/execution/dist/tools/file-read.js"() {
1545
+ "packages/execution/dist/tools/file-read.js"() {
1546
1546
  "use strict";
1547
1547
  FileReadTool = class {
1548
1548
  name = "file_read";
@@ -1630,7 +1630,7 @@ var init_file_read = __esm({
1630
1630
  }
1631
1631
  });
1632
1632
 
1633
- // ../packages/execution/dist/tools/file-write.js
1633
+ // packages/execution/dist/tools/file-write.js
1634
1634
  import { writeFile, mkdir } from "node:fs/promises";
1635
1635
  import { resolve as resolve2, dirname } from "node:path";
1636
1636
  function extractWritePath(args) {
@@ -1643,7 +1643,7 @@ function extractWritePath(args) {
1643
1643
  }
1644
1644
  var FileWriteTool;
1645
1645
  var init_file_write = __esm({
1646
- "../packages/execution/dist/tools/file-write.js"() {
1646
+ "packages/execution/dist/tools/file-write.js"() {
1647
1647
  "use strict";
1648
1648
  FileWriteTool = class {
1649
1649
  name = "file_write";
@@ -1702,13 +1702,13 @@ var init_file_write = __esm({
1702
1702
  }
1703
1703
  });
1704
1704
 
1705
- // ../packages/execution/dist/tools/grep-search.js
1705
+ // packages/execution/dist/tools/grep-search.js
1706
1706
  import { execFile } from "node:child_process";
1707
1707
  import { promisify } from "node:util";
1708
1708
  import { resolve as resolve3 } from "node:path";
1709
1709
  var execFileAsync, MAX_OUTPUT_LINES, GrepSearchTool;
1710
1710
  var init_grep_search = __esm({
1711
- "../packages/execution/dist/tools/grep-search.js"() {
1711
+ "packages/execution/dist/tools/grep-search.js"() {
1712
1712
  "use strict";
1713
1713
  execFileAsync = promisify(execFile);
1714
1714
  MAX_OUTPUT_LINES = 100;
@@ -1807,13 +1807,13 @@ var init_grep_search = __esm({
1807
1807
  }
1808
1808
  });
1809
1809
 
1810
- // ../packages/execution/dist/tools/glob-find.js
1810
+ // packages/execution/dist/tools/glob-find.js
1811
1811
  import { execFile as execFile2 } from "node:child_process";
1812
1812
  import { promisify as promisify2 } from "node:util";
1813
1813
  import { resolve as resolve4 } from "node:path";
1814
1814
  var execFileAsync2, MAX_RESULTS, GlobFindTool;
1815
1815
  var init_glob_find = __esm({
1816
- "../packages/execution/dist/tools/glob-find.js"() {
1816
+ "packages/execution/dist/tools/glob-find.js"() {
1817
1817
  "use strict";
1818
1818
  execFileAsync2 = promisify2(execFile2);
1819
1819
  MAX_RESULTS = 50;
@@ -1884,10 +1884,10 @@ var init_glob_find = __esm({
1884
1884
  }
1885
1885
  });
1886
1886
 
1887
- // ../packages/execution/dist/tools/web-fetch.js
1887
+ // packages/execution/dist/tools/web-fetch.js
1888
1888
  var DEFAULT_MAX_LENGTH, WebFetchTool;
1889
1889
  var init_web_fetch = __esm({
1890
- "../packages/execution/dist/tools/web-fetch.js"() {
1890
+ "packages/execution/dist/tools/web-fetch.js"() {
1891
1891
  "use strict";
1892
1892
  DEFAULT_MAX_LENGTH = 5e3;
1893
1893
  WebFetchTool = class {
@@ -1959,7 +1959,7 @@ var init_web_fetch = __esm({
1959
1959
  }
1960
1960
  });
1961
1961
 
1962
- // ../packages/execution/dist/tools/web-search.js
1962
+ // packages/execution/dist/tools/web-search.js
1963
1963
  function detectSearchProvider() {
1964
1964
  if (process.env["TAVILY_API_KEY"])
1965
1965
  return "tavily";
@@ -1969,7 +1969,7 @@ function detectSearchProvider() {
1969
1969
  }
1970
1970
  var DEFAULT_NUM_RESULTS, DUCKDUCKGO_HTML_URL, TAVILY_API_URL, JINA_SEARCH_URL, WebSearchTool;
1971
1971
  var init_web_search = __esm({
1972
- "../packages/execution/dist/tools/web-search.js"() {
1972
+ "packages/execution/dist/tools/web-search.js"() {
1973
1973
  "use strict";
1974
1974
  DEFAULT_NUM_RESULTS = 5;
1975
1975
  DUCKDUCKGO_HTML_URL = "https://html.duckduckgo.com/html/";
@@ -2233,14 +2233,14 @@ ${formatted}`,
2233
2233
  }
2234
2234
  });
2235
2235
 
2236
- // ../packages/execution/dist/tools/web-crawl.js
2236
+ // packages/execution/dist/tools/web-crawl.js
2237
2237
  import { execFile as execFile3 } from "node:child_process";
2238
2238
  import { dirname as dirname2, join as join3 } from "node:path";
2239
2239
  import { fileURLToPath } from "node:url";
2240
2240
  import { existsSync as existsSync3 } from "node:fs";
2241
2241
  var DEFAULT_MAX_LENGTH2, WebCrawlTool;
2242
2242
  var init_web_crawl = __esm({
2243
- "../packages/execution/dist/tools/web-crawl.js"() {
2243
+ "packages/execution/dist/tools/web-crawl.js"() {
2244
2244
  "use strict";
2245
2245
  DEFAULT_MAX_LENGTH2 = 8e3;
2246
2246
  WebCrawlTool = class {
@@ -2514,7 +2514,7 @@ Meta: ${metaKeys.map((k) => `${k}="${meta[k]?.slice(0, 80)}"`).join(", ")}`);
2514
2514
  }
2515
2515
  });
2516
2516
 
2517
- // ../packages/execution/dist/tools/file-edit.js
2517
+ // packages/execution/dist/tools/file-edit.js
2518
2518
  import { readFile as readFile2, writeFile as writeFile2 } from "node:fs/promises";
2519
2519
  import { resolve as resolve5 } from "node:path";
2520
2520
  function extractEditPath(args) {
@@ -2549,7 +2549,7 @@ function replaceAllOccurrences(haystack, needle, replacement) {
2549
2549
  }
2550
2550
  var FileEditTool;
2551
2551
  var init_file_edit = __esm({
2552
- "../packages/execution/dist/tools/file-edit.js"() {
2552
+ "packages/execution/dist/tools/file-edit.js"() {
2553
2553
  "use strict";
2554
2554
  FileEditTool = class {
2555
2555
  name = "file_edit";
@@ -2659,12 +2659,12 @@ var init_file_edit = __esm({
2659
2659
  }
2660
2660
  });
2661
2661
 
2662
- // ../packages/execution/dist/tools/memory-read.js
2662
+ // packages/execution/dist/tools/memory-read.js
2663
2663
  import { readFile as readFile3 } from "node:fs/promises";
2664
2664
  import { resolve as resolve6, join as join4 } from "node:path";
2665
2665
  var MemoryReadTool;
2666
2666
  var init_memory_read = __esm({
2667
- "../packages/execution/dist/tools/memory-read.js"() {
2667
+ "packages/execution/dist/tools/memory-read.js"() {
2668
2668
  "use strict";
2669
2669
  MemoryReadTool = class {
2670
2670
  name = "memory_read";
@@ -2754,13 +2754,13 @@ ${JSON.stringify(entries, null, 2)}`,
2754
2754
  }
2755
2755
  });
2756
2756
 
2757
- // ../packages/execution/dist/tools/memory-write.js
2757
+ // packages/execution/dist/tools/memory-write.js
2758
2758
  import { readFile as readFile4, writeFile as writeFile3, mkdir as mkdir2 } from "node:fs/promises";
2759
2759
  import { resolve as resolve7, join as join5 } from "node:path";
2760
2760
  import { randomBytes } from "node:crypto";
2761
2761
  var MemoryWriteTool;
2762
2762
  var init_memory_write = __esm({
2763
- "../packages/execution/dist/tools/memory-write.js"() {
2763
+ "packages/execution/dist/tools/memory-write.js"() {
2764
2764
  "use strict";
2765
2765
  MemoryWriteTool = class {
2766
2766
  name = "memory_write";
@@ -2845,7 +2845,7 @@ var init_memory_write = __esm({
2845
2845
  }
2846
2846
  });
2847
2847
 
2848
- // ../packages/execution/dist/tools/memory-search.js
2848
+ // packages/execution/dist/tools/memory-search.js
2849
2849
  import { readFile as readFile5, readdir } from "node:fs/promises";
2850
2850
  import { resolve as resolve8, join as join6, basename } from "node:path";
2851
2851
  import { existsSync as existsSync4 } from "node:fs";
@@ -2951,7 +2951,7 @@ function tokenize(text) {
2951
2951
  }
2952
2952
  var MemorySearchTool;
2953
2953
  var init_memory_search = __esm({
2954
- "../packages/execution/dist/tools/memory-search.js"() {
2954
+ "packages/execution/dist/tools/memory-search.js"() {
2955
2955
  "use strict";
2956
2956
  MemorySearchTool = class {
2957
2957
  name = "memory_search";
@@ -3075,10 +3075,10 @@ Try broader terms or use memory_read with a specific topic.`,
3075
3075
  }
3076
3076
  });
3077
3077
 
3078
- // ../packages/execution/dist/tools/explore-tools.js
3078
+ // packages/execution/dist/tools/explore-tools.js
3079
3079
  var TOOL_CATALOG, ExploreToolsTool;
3080
3080
  var init_explore_tools = __esm({
3081
- "../packages/execution/dist/tools/explore-tools.js"() {
3081
+ "packages/execution/dist/tools/explore-tools.js"() {
3082
3082
  "use strict";
3083
3083
  TOOL_CATALOG = {
3084
3084
  grep_search: "Search file contents with regex patterns",
@@ -3242,12 +3242,12 @@ Examples:`);
3242
3242
  }
3243
3243
  });
3244
3244
 
3245
- // ../packages/execution/dist/tools/list-directory.js
3245
+ // packages/execution/dist/tools/list-directory.js
3246
3246
  import { readdirSync, statSync } from "node:fs";
3247
3247
  import { resolve as resolve9, join as join7 } from "node:path";
3248
3248
  var EXCLUDED, MAX_ENTRIES, ListDirectoryTool;
3249
3249
  var init_list_directory = __esm({
3250
- "../packages/execution/dist/tools/list-directory.js"() {
3250
+ "packages/execution/dist/tools/list-directory.js"() {
3251
3251
  "use strict";
3252
3252
  EXCLUDED = /* @__PURE__ */ new Set(["node_modules", ".git"]);
3253
3253
  MAX_ENTRIES = 100;
@@ -3329,11 +3329,11 @@ var init_list_directory = __esm({
3329
3329
  }
3330
3330
  });
3331
3331
 
3332
- // ../packages/execution/dist/tools/aiwg-setup.js
3332
+ // packages/execution/dist/tools/aiwg-setup.js
3333
3333
  import { execSync as execSync2 } from "node:child_process";
3334
3334
  var AiwgSetupTool;
3335
3335
  var init_aiwg_setup = __esm({
3336
- "../packages/execution/dist/tools/aiwg-setup.js"() {
3336
+ "packages/execution/dist/tools/aiwg-setup.js"() {
3337
3337
  "use strict";
3338
3338
  AiwgSetupTool = class {
3339
3339
  name = "aiwg_setup";
@@ -3407,13 +3407,13 @@ ${output}`,
3407
3407
  }
3408
3408
  });
3409
3409
 
3410
- // ../packages/execution/dist/tools/aiwg-health.js
3410
+ // packages/execution/dist/tools/aiwg-health.js
3411
3411
  import { execSync as execSync3 } from "node:child_process";
3412
3412
  import { existsSync as existsSync5, readdirSync as readdirSync2, readFileSync as readFileSync3, statSync as statSync2 } from "node:fs";
3413
3413
  import { join as join8 } from "node:path";
3414
3414
  var AiwgHealthTool;
3415
3415
  var init_aiwg_health = __esm({
3416
- "../packages/execution/dist/tools/aiwg-health.js"() {
3416
+ "packages/execution/dist/tools/aiwg-health.js"() {
3417
3417
  "use strict";
3418
3418
  AiwgHealthTool = class {
3419
3419
  name = "aiwg_health";
@@ -3619,11 +3619,11 @@ var init_aiwg_health = __esm({
3619
3619
  }
3620
3620
  });
3621
3621
 
3622
- // ../packages/execution/dist/tools/aiwg-workflow.js
3622
+ // packages/execution/dist/tools/aiwg-workflow.js
3623
3623
  import { execSync as execSync4 } from "node:child_process";
3624
3624
  var AiwgWorkflowTool;
3625
3625
  var init_aiwg_workflow = __esm({
3626
- "../packages/execution/dist/tools/aiwg-workflow.js"() {
3626
+ "packages/execution/dist/tools/aiwg-workflow.js"() {
3627
3627
  "use strict";
3628
3628
  AiwgWorkflowTool = class {
3629
3629
  name = "aiwg_workflow";
@@ -3704,7 +3704,7 @@ var init_aiwg_workflow = __esm({
3704
3704
  }
3705
3705
  });
3706
3706
 
3707
- // ../packages/execution/dist/tools/batch-edit.js
3707
+ // packages/execution/dist/tools/batch-edit.js
3708
3708
  import { readFile as readFile6, writeFile as writeFile4 } from "node:fs/promises";
3709
3709
  import { resolve as resolve10 } from "node:path";
3710
3710
  function countOccurrences2(haystack, needle) {
@@ -3718,7 +3718,7 @@ function countOccurrences2(haystack, needle) {
3718
3718
  }
3719
3719
  var BatchEditTool;
3720
3720
  var init_batch_edit = __esm({
3721
- "../packages/execution/dist/tools/batch-edit.js"() {
3721
+ "packages/execution/dist/tools/batch-edit.js"() {
3722
3722
  "use strict";
3723
3723
  BatchEditTool = class {
3724
3724
  name = "batch_edit";
@@ -3830,12 +3830,12 @@ ${results.join("\n")}`,
3830
3830
  }
3831
3831
  });
3832
3832
 
3833
- // ../packages/execution/dist/tools/file-patch.js
3833
+ // packages/execution/dist/tools/file-patch.js
3834
3834
  import { readFile as readFile7, writeFile as writeFile5, copyFile } from "node:fs/promises";
3835
3835
  import { resolve as resolve11 } from "node:path";
3836
3836
  var FilePatchTool;
3837
3837
  var init_file_patch = __esm({
3838
- "../packages/execution/dist/tools/file-patch.js"() {
3838
+ "packages/execution/dist/tools/file-patch.js"() {
3839
3839
  "use strict";
3840
3840
  FilePatchTool = class {
3841
3841
  name = "file_patch";
@@ -4002,12 +4002,12 @@ ${diff}`,
4002
4002
  }
4003
4003
  });
4004
4004
 
4005
- // ../packages/execution/dist/tools/codebase-map.js
4005
+ // packages/execution/dist/tools/codebase-map.js
4006
4006
  import { readdirSync as readdirSync3, statSync as statSync3, readFileSync as readFileSync4, existsSync as existsSync6 } from "node:fs";
4007
4007
  import { join as join9, relative, extname } from "node:path";
4008
4008
  var CodebaseMapTool;
4009
4009
  var init_codebase_map = __esm({
4010
- "../packages/execution/dist/tools/codebase-map.js"() {
4010
+ "packages/execution/dist/tools/codebase-map.js"() {
4011
4011
  "use strict";
4012
4012
  CodebaseMapTool = class {
4013
4013
  name = "codebase_map";
@@ -4290,13 +4290,13 @@ var init_codebase_map = __esm({
4290
4290
  }
4291
4291
  });
4292
4292
 
4293
- // ../packages/execution/dist/tools/diagnostic.js
4293
+ // packages/execution/dist/tools/diagnostic.js
4294
4294
  import { execSync as execSync5 } from "node:child_process";
4295
4295
  import { existsSync as existsSync7, readFileSync as readFileSync5 } from "node:fs";
4296
4296
  import { join as join10 } from "node:path";
4297
4297
  var DiagnosticTool;
4298
4298
  var init_diagnostic = __esm({
4299
- "../packages/execution/dist/tools/diagnostic.js"() {
4299
+ "packages/execution/dist/tools/diagnostic.js"() {
4300
4300
  "use strict";
4301
4301
  DiagnosticTool = class {
4302
4302
  name = "diagnostic";
@@ -4435,13 +4435,13 @@ ${err.stderr ?? ""}`.trim(),
4435
4435
  }
4436
4436
  });
4437
4437
 
4438
- // ../packages/execution/dist/tools/git-info.js
4438
+ // packages/execution/dist/tools/git-info.js
4439
4439
  import { execSync as execSync6 } from "node:child_process";
4440
4440
  import { existsSync as existsSync8 } from "node:fs";
4441
4441
  import { join as join11 } from "node:path";
4442
4442
  var GitInfoTool;
4443
4443
  var init_git_info = __esm({
4444
- "../packages/execution/dist/tools/git-info.js"() {
4444
+ "packages/execution/dist/tools/git-info.js"() {
4445
4445
  "use strict";
4446
4446
  GitInfoTool = class {
4447
4447
  name = "git_info";
@@ -4566,7 +4566,7 @@ var init_git_info = __esm({
4566
4566
  }
4567
4567
  });
4568
4568
 
4569
- // ../packages/execution/dist/tools/background-task.js
4569
+ // packages/execution/dist/tools/background-task.js
4570
4570
  import { spawn as spawn2 } from "node:child_process";
4571
4571
  function toInfo(entry) {
4572
4572
  return {
@@ -4582,7 +4582,7 @@ function toInfo(entry) {
4582
4582
  }
4583
4583
  var BackgroundTaskManager, BackgroundRunTool, TaskStatusTool, TaskOutputTool, TaskStopTool;
4584
4584
  var init_background_task = __esm({
4585
- "../packages/execution/dist/tools/background-task.js"() {
4585
+ "packages/execution/dist/tools/background-task.js"() {
4586
4586
  "use strict";
4587
4587
  BackgroundTaskManager = class {
4588
4588
  tasks = /* @__PURE__ */ new Map();
@@ -4854,7 +4854,7 @@ Exit code: ${task.exitCode ?? "N/A"}`,
4854
4854
  }
4855
4855
  });
4856
4856
 
4857
- // ../packages/execution/dist/system-deps.js
4857
+ // packages/execution/dist/system-deps.js
4858
4858
  import { execSync as execSync7 } from "node:child_process";
4859
4859
  function detectPackageManager() {
4860
4860
  if (_detectedPkgManager !== void 0)
@@ -5046,7 +5046,7 @@ function resetDepCache() {
5046
5046
  }
5047
5047
  var DESKTOP_DEPS, _detectedPkgManager, _cache, _sudoPassword;
5048
5048
  var init_system_deps = __esm({
5049
- "../packages/execution/dist/system-deps.js"() {
5049
+ "packages/execution/dist/system-deps.js"() {
5050
5050
  "use strict";
5051
5051
  DESKTOP_DEPS = [
5052
5052
  {
@@ -5097,7 +5097,7 @@ var init_system_deps = __esm({
5097
5097
  }
5098
5098
  });
5099
5099
 
5100
- // ../packages/execution/dist/tools/image.js
5100
+ // packages/execution/dist/tools/image.js
5101
5101
  import { existsSync as existsSync9, readFileSync as readFileSync6, statSync as statSync4 } from "node:fs";
5102
5102
  import { resolve as resolve12, extname as extname2, basename as basename2 } from "node:path";
5103
5103
  import { execSync as execSync8 } from "node:child_process";
@@ -5186,7 +5186,7 @@ function runOCR(filePath) {
5186
5186
  }
5187
5187
  var IMAGE_EXTENSIONS, ImageReadTool, ScreenshotTool, OCRTool;
5188
5188
  var init_image = __esm({
5189
- "../packages/execution/dist/tools/image.js"() {
5189
+ "packages/execution/dist/tools/image.js"() {
5190
5190
  "use strict";
5191
5191
  init_system_deps();
5192
5192
  IMAGE_EXTENSIONS = /* @__PURE__ */ new Set([
@@ -5476,7 +5476,7 @@ ${text}`,
5476
5476
  }
5477
5477
  });
5478
5478
 
5479
- // ../packages/execution/dist/tools/custom-tool.js
5479
+ // packages/execution/dist/tools/custom-tool.js
5480
5480
  var custom_tool_exports = {};
5481
5481
  __export(custom_tool_exports, {
5482
5482
  CustomTool: () => CustomTool,
@@ -5579,7 +5579,7 @@ function loadFromDirectory(dir) {
5579
5579
  }
5580
5580
  var CustomTool;
5581
5581
  var init_custom_tool = __esm({
5582
- "../packages/execution/dist/tools/custom-tool.js"() {
5582
+ "packages/execution/dist/tools/custom-tool.js"() {
5583
5583
  "use strict";
5584
5584
  CustomTool = class {
5585
5585
  name;
@@ -5688,10 +5688,10 @@ ${stderr}` : ""),
5688
5688
  }
5689
5689
  });
5690
5690
 
5691
- // ../packages/execution/dist/tools/tool-creator.js
5691
+ // packages/execution/dist/tools/tool-creator.js
5692
5692
  var CreateToolTool, ManageToolsTool;
5693
5693
  var init_tool_creator = __esm({
5694
- "../packages/execution/dist/tools/tool-creator.js"() {
5694
+ "packages/execution/dist/tools/tool-creator.js"() {
5695
5695
  "use strict";
5696
5696
  init_custom_tool();
5697
5697
  CreateToolTool = class {
@@ -5982,7 +5982,7 @@ var init_tool_creator = __esm({
5982
5982
  }
5983
5983
  });
5984
5984
 
5985
- // ../packages/execution/dist/tools/skill-tools.js
5985
+ // packages/execution/dist/tools/skill-tools.js
5986
5986
  import { existsSync as existsSync11, readdirSync as readdirSync5, readFileSync as readFileSync8 } from "node:fs";
5987
5987
  import { join as join14, basename as basename3, dirname as dirname3 } from "node:path";
5988
5988
  import { homedir as homedir5 } from "node:os";
@@ -6297,7 +6297,7 @@ function parseTriggers(filePath) {
6297
6297
  }
6298
6298
  var _cachedAiwgPkgRoot, SkillListTool, SkillExecuteTool;
6299
6299
  var init_skill_tools = __esm({
6300
- "../packages/execution/dist/tools/skill-tools.js"() {
6300
+ "packages/execution/dist/tools/skill-tools.js"() {
6301
6301
  "use strict";
6302
6302
  SkillListTool = class {
6303
6303
  name = "skill_list";
@@ -6422,7 +6422,7 @@ ${content}`,
6422
6422
  }
6423
6423
  });
6424
6424
 
6425
- // ../packages/execution/dist/tools/skill-builder.js
6425
+ // packages/execution/dist/tools/skill-builder.js
6426
6426
  import { existsSync as existsSync12, mkdirSync as mkdirSync4, readFileSync as readFileSync9, writeFileSync as writeFileSync4 } from "node:fs";
6427
6427
  import { join as join15, dirname as dirname4 } from "node:path";
6428
6428
  function loadBuilderPrompt(name, vars) {
@@ -6460,7 +6460,7 @@ function extractJSON(text) {
6460
6460
  }
6461
6461
  var SkillBuildTool;
6462
6462
  var init_skill_builder = __esm({
6463
- "../packages/execution/dist/tools/skill-builder.js"() {
6463
+ "packages/execution/dist/tools/skill-builder.js"() {
6464
6464
  "use strict";
6465
6465
  SkillBuildTool = class {
6466
6466
  name = "skill_build";
@@ -6667,7 +6667,7 @@ ${content}`
6667
6667
  }
6668
6668
  });
6669
6669
 
6670
- // ../packages/execution/dist/tools/transcribe-tool.js
6670
+ // packages/execution/dist/tools/transcribe-tool.js
6671
6671
  import { existsSync as existsSync13, mkdirSync as mkdirSync5, writeFileSync as writeFileSync5, readFileSync as readFileSync10, unlinkSync } from "node:fs";
6672
6672
  import { join as join16, basename as basename4, extname as extname3, resolve as resolve13 } from "node:path";
6673
6673
  import { homedir as homedir6 } from "node:os";
@@ -6720,7 +6720,7 @@ function formatTime(seconds) {
6720
6720
  }
6721
6721
  var AUDIO_EXTS, VIDEO_EXTS, _tcModule, _tcChecked, TranscribeFileTool, TranscribeUrlTool;
6722
6722
  var init_transcribe_tool = __esm({
6723
- "../packages/execution/dist/tools/transcribe-tool.js"() {
6723
+ "packages/execution/dist/tools/transcribe-tool.js"() {
6724
6724
  "use strict";
6725
6725
  AUDIO_EXTS = /* @__PURE__ */ new Set([
6726
6726
  ".mp3",
@@ -6961,7 +6961,7 @@ ${result.output}`,
6961
6961
  }
6962
6962
  });
6963
6963
 
6964
- // ../packages/execution/dist/tools/structured-file.js
6964
+ // packages/execution/dist/tools/structured-file.js
6965
6965
  import { writeFile as writeFile6, mkdir as mkdir3 } from "node:fs/promises";
6966
6966
  import { resolve as resolve14, dirname as dirname5, extname as extname4 } from "node:path";
6967
6967
  function jsonToCSV(data, separator = ",") {
@@ -6998,7 +6998,7 @@ function jsonToMarkdownTable(data) {
6998
6998
  }
6999
6999
  var StructuredFileTool;
7000
7000
  var init_structured_file = __esm({
7001
- "../packages/execution/dist/tools/structured-file.js"() {
7001
+ "packages/execution/dist/tools/structured-file.js"() {
7002
7002
  "use strict";
7003
7003
  StructuredFileTool = class {
7004
7004
  name = "create_structured_file";
@@ -7141,7 +7141,7 @@ var init_structured_file = __esm({
7141
7141
  }
7142
7142
  });
7143
7143
 
7144
- // ../packages/execution/dist/tools/code-sandbox.js
7144
+ // packages/execution/dist/tools/code-sandbox.js
7145
7145
  import { spawn as spawn5 } from "node:child_process";
7146
7146
  import { writeFile as writeFile7, mkdtemp, rm, readdir as readdir2, stat } from "node:fs/promises";
7147
7147
  import { join as join17 } from "node:path";
@@ -7222,7 +7222,7 @@ async function listCreatedFiles(dir) {
7222
7222
  }
7223
7223
  var LANGUAGE_CONFIG, CodeSandboxTool;
7224
7224
  var init_code_sandbox = __esm({
7225
- "../packages/execution/dist/tools/code-sandbox.js"() {
7225
+ "packages/execution/dist/tools/code-sandbox.js"() {
7226
7226
  "use strict";
7227
7227
  LANGUAGE_CONFIG = {
7228
7228
  javascript: { ext: ".js", cmd: "node", args: (f) => [f] },
@@ -7394,7 +7394,7 @@ ${result.filesCreated.join("\n")}`);
7394
7394
  }
7395
7395
  });
7396
7396
 
7397
- // ../packages/execution/dist/tools/structured-read.js
7397
+ // packages/execution/dist/tools/structured-read.js
7398
7398
  import { readFile as readFile8, stat as stat2 } from "node:fs/promises";
7399
7399
  import { resolve as resolve15, extname as extname5 } from "node:path";
7400
7400
  function parseCSV(text, separator = ",") {
@@ -7502,7 +7502,7 @@ function detectBinaryFormat(buffer) {
7502
7502
  }
7503
7503
  var StructuredReadTool;
7504
7504
  var init_structured_read = __esm({
7505
- "../packages/execution/dist/tools/structured-read.js"() {
7505
+ "packages/execution/dist/tools/structured-read.js"() {
7506
7506
  "use strict";
7507
7507
  StructuredReadTool = class {
7508
7508
  name = "read_structured_file";
@@ -7729,7 +7729,7 @@ ${parts.join("\n\n")}`,
7729
7729
  }
7730
7730
  });
7731
7731
 
7732
- // ../packages/execution/dist/tools/vision.js
7732
+ // packages/execution/dist/tools/vision.js
7733
7733
  import { readFileSync as readFileSync11, existsSync as existsSync14, statSync as statSync5 } from "node:fs";
7734
7734
  import { execSync as execSync11, spawn as spawn6 } from "node:child_process";
7735
7735
  import { resolve as resolve16, extname as extname6, basename as basename5, dirname as dirname6, join as join18 } from "node:path";
@@ -7880,7 +7880,7 @@ function loadImageBuffer(workingDir, rawPath) {
7880
7880
  }
7881
7881
  var moondreamClient, moondreamError, stationProcess, IMAGE_EXTENSIONS2, VisionTool;
7882
7882
  var init_vision = __esm({
7883
- "../packages/execution/dist/tools/vision.js"() {
7883
+ "packages/execution/dist/tools/vision.js"() {
7884
7884
  "use strict";
7885
7885
  moondreamClient = null;
7886
7886
  moondreamError = null;
@@ -8103,7 +8103,7 @@ ${response}`, durationMs: performance.now() - start };
8103
8103
  }
8104
8104
  });
8105
8105
 
8106
- // ../packages/execution/dist/tools/desktop-click.js
8106
+ // packages/execution/dist/tools/desktop-click.js
8107
8107
  import { readFileSync as readFileSync12, existsSync as existsSync15 } from "node:fs";
8108
8108
  import { execSync as execSync12 } from "node:child_process";
8109
8109
  import { tmpdir as tmpdir3 } from "node:os";
@@ -8256,7 +8256,7 @@ for i in range(${clicks}):
8256
8256
  }
8257
8257
  var __dirname2, DesktopClickTool, DesktopDescribeTool;
8258
8258
  var init_desktop_click = __esm({
8259
- "../packages/execution/dist/tools/desktop-click.js"() {
8259
+ "packages/execution/dist/tools/desktop-click.js"() {
8260
8260
  "use strict";
8261
8261
  init_system_deps();
8262
8262
  __dirname2 = dirname7(fileURLToPath3(import.meta.url));
@@ -8612,13 +8612,13 @@ Screen: ${dims.width}x${dims.height}`);
8612
8612
  }
8613
8613
  });
8614
8614
 
8615
- // ../packages/execution/dist/tools/ocr-pdf.js
8615
+ // packages/execution/dist/tools/ocr-pdf.js
8616
8616
  import { existsSync as existsSync16, statSync as statSync6 } from "node:fs";
8617
8617
  import { resolve as resolve17, basename as basename6 } from "node:path";
8618
8618
  import { execSync as execSync13 } from "node:child_process";
8619
8619
  var OcrPdfTool;
8620
8620
  var init_ocr_pdf = __esm({
8621
- "../packages/execution/dist/tools/ocr-pdf.js"() {
8621
+ "packages/execution/dist/tools/ocr-pdf.js"() {
8622
8622
  "use strict";
8623
8623
  init_system_deps();
8624
8624
  OcrPdfTool = class {
@@ -8735,14 +8735,14 @@ Language: ${language}
8735
8735
  }
8736
8736
  });
8737
8737
 
8738
- // ../packages/execution/dist/tools/pdf-to-text.js
8738
+ // packages/execution/dist/tools/pdf-to-text.js
8739
8739
  import { existsSync as existsSync17, statSync as statSync7, readFileSync as readFileSync13, unlinkSync as unlinkSync2 } from "node:fs";
8740
8740
  import { resolve as resolve18, basename as basename7, join as join20 } from "node:path";
8741
8741
  import { execSync as execSync14 } from "node:child_process";
8742
8742
  import { tmpdir as tmpdir4 } from "node:os";
8743
8743
  var PdfToTextTool;
8744
8744
  var init_pdf_to_text = __esm({
8745
- "../packages/execution/dist/tools/pdf-to-text.js"() {
8745
+ "packages/execution/dist/tools/pdf-to-text.js"() {
8746
8746
  "use strict";
8747
8747
  init_system_deps();
8748
8748
  PdfToTextTool = class {
@@ -8920,7 +8920,7 @@ ${text}`,
8920
8920
  }
8921
8921
  });
8922
8922
 
8923
- // ../packages/execution/dist/tools/ocr-image-advanced.js
8923
+ // packages/execution/dist/tools/ocr-image-advanced.js
8924
8924
  import { existsSync as existsSync18, statSync as statSync8 } from "node:fs";
8925
8925
  import { resolve as resolve19, basename as basename8, dirname as dirname8, join as join21 } from "node:path";
8926
8926
  import { execSync as execSync15 } from "node:child_process";
@@ -8963,7 +8963,7 @@ function findPython() {
8963
8963
  }
8964
8964
  var OcrImageAdvancedTool;
8965
8965
  var init_ocr_image_advanced = __esm({
8966
- "../packages/execution/dist/tools/ocr-image-advanced.js"() {
8966
+ "packages/execution/dist/tools/ocr-image-advanced.js"() {
8967
8967
  "use strict";
8968
8968
  init_system_deps();
8969
8969
  OcrImageAdvancedTool = class {
@@ -9223,7 +9223,7 @@ Note: Advanced Python pipeline not available \u2014 install pytesseract, opencv-
9223
9223
  }
9224
9224
  });
9225
9225
 
9226
- // ../packages/execution/dist/tools/browser-action.js
9226
+ // packages/execution/dist/tools/browser-action.js
9227
9227
  import { execSync as execSync16, spawn as spawn7 } from "node:child_process";
9228
9228
  import { existsSync as existsSync19, readFileSync as readFileSync14 } from "node:fs";
9229
9229
  import { join as join22, dirname as dirname9 } from "node:path";
@@ -9315,7 +9315,7 @@ async function apiCall(endpoint, method = "POST", body) {
9315
9315
  }
9316
9316
  var __dirname3, SCRAPE_SCRIPT, DEFAULT_PORT, BASE_URL, serviceProcess, activeSessionId, BrowserActionTool;
9317
9317
  var init_browser_action = __esm({
9318
- "../packages/execution/dist/tools/browser-action.js"() {
9318
+ "packages/execution/dist/tools/browser-action.js"() {
9319
9319
  "use strict";
9320
9320
  __dirname3 = dirname9(fileURLToPath5(import.meta.url));
9321
9321
  SCRAPE_SCRIPT = join22(__dirname3, "..", "..", "scripts", "web_scrape.py");
@@ -9476,7 +9476,7 @@ var init_browser_action = __esm({
9476
9476
  }
9477
9477
  });
9478
9478
 
9479
- // ../packages/execution/dist/tools/autoresearch.js
9479
+ // packages/execution/dist/tools/autoresearch.js
9480
9480
  import { execSync as execSync17, spawn as spawn8 } from "node:child_process";
9481
9481
  import { existsSync as existsSync20, readFileSync as readFileSync15, writeFileSync as writeFileSync6, mkdirSync as mkdirSync6, appendFileSync, copyFileSync } from "node:fs";
9482
9482
  import { join as join23, resolve as resolve20, dirname as dirname10 } from "node:path";
@@ -9519,7 +9519,7 @@ function parseRunLog(logContent) {
9519
9519
  }
9520
9520
  var AutoresearchTool;
9521
9521
  var init_autoresearch = __esm({
9522
- "../packages/execution/dist/tools/autoresearch.js"() {
9522
+ "packages/execution/dist/tools/autoresearch.js"() {
9523
9523
  "use strict";
9524
9524
  AutoresearchTool = class {
9525
9525
  repoRoot;
@@ -9996,7 +9996,7 @@ train.py reverted to last kept state. Ready for next experiment.`,
9996
9996
  }
9997
9997
  });
9998
9998
 
9999
- // ../packages/execution/dist/tools/scheduler.js
9999
+ // packages/execution/dist/tools/scheduler.js
10000
10000
  import { execSync as execSync18, exec as execCb } from "node:child_process";
10001
10001
  import { readFile as readFile9, writeFile as writeFile8, mkdir as mkdir4 } from "node:fs/promises";
10002
10002
  import { resolve as resolve21, join as join24 } from "node:path";
@@ -10131,7 +10131,7 @@ async function saveStore(workingDir, store) {
10131
10131
  }
10132
10132
  var SCHEDULE_PRESETS, CRON_MARKER, SchedulerTool;
10133
10133
  var init_scheduler = __esm({
10134
- "../packages/execution/dist/tools/scheduler.js"() {
10134
+ "packages/execution/dist/tools/scheduler.js"() {
10135
10135
  "use strict";
10136
10136
  SCHEDULE_PRESETS = {
10137
10137
  "every minute": "* * * * *",
@@ -10359,7 +10359,7 @@ ${truncated}`, durationMs: performance.now() - start };
10359
10359
  }
10360
10360
  });
10361
10361
 
10362
- // ../packages/execution/dist/tools/reminder.js
10362
+ // packages/execution/dist/tools/reminder.js
10363
10363
  import { readFile as readFile10, writeFile as writeFile9, mkdir as mkdir5 } from "node:fs/promises";
10364
10364
  import { resolve as resolve22, join as join25 } from "node:path";
10365
10365
  import { randomBytes as randomBytes3 } from "node:crypto";
@@ -10453,7 +10453,7 @@ async function markRemindersSeen(workingDir, ids) {
10453
10453
  }
10454
10454
  var STORE_FILE, ReminderTool;
10455
10455
  var init_reminder = __esm({
10456
- "../packages/execution/dist/tools/reminder.js"() {
10456
+ "packages/execution/dist/tools/reminder.js"() {
10457
10457
  "use strict";
10458
10458
  STORE_FILE = "reminders.json";
10459
10459
  ReminderTool = class {
@@ -10672,7 +10672,7 @@ var init_reminder = __esm({
10672
10672
  }
10673
10673
  });
10674
10674
 
10675
- // ../packages/execution/dist/tools/agenda.js
10675
+ // packages/execution/dist/tools/agenda.js
10676
10676
  import { readFile as readFile11, writeFile as writeFile10, mkdir as mkdir6 } from "node:fs/promises";
10677
10677
  import { resolve as resolve23, join as join26 } from "node:path";
10678
10678
  import { randomBytes as randomBytes4 } from "node:crypto";
@@ -10707,7 +10707,7 @@ async function getActiveAttentionItems(workingDir) {
10707
10707
  }
10708
10708
  var AgendaTool;
10709
10709
  var init_agenda = __esm({
10710
- "../packages/execution/dist/tools/agenda.js"() {
10710
+ "packages/execution/dist/tools/agenda.js"() {
10711
10711
  "use strict";
10712
10712
  init_reminder();
10713
10713
  AgendaTool = class {
@@ -10996,7 +10996,7 @@ ${sections.join("\n")}`,
10996
10996
  }
10997
10997
  });
10998
10998
 
10999
- // ../packages/execution/dist/tools/opencode.js
10999
+ // packages/execution/dist/tools/opencode.js
11000
11000
  import { execSync as execSync19, spawn as spawn9 } from "node:child_process";
11001
11001
  import { existsSync as existsSync21 } from "node:fs";
11002
11002
  import { join as join27, resolve as resolve24 } from "node:path";
@@ -11057,7 +11057,7 @@ function installOpencode() {
11057
11057
  }
11058
11058
  var OpenCodeTool;
11059
11059
  var init_opencode = __esm({
11060
- "../packages/execution/dist/tools/opencode.js"() {
11060
+ "packages/execution/dist/tools/opencode.js"() {
11061
11061
  "use strict";
11062
11062
  OpenCodeTool = class {
11063
11063
  name = "opencode";
@@ -11270,7 +11270,7 @@ var init_opencode = __esm({
11270
11270
  }
11271
11271
  });
11272
11272
 
11273
- // ../packages/execution/dist/tools/factory.js
11273
+ // packages/execution/dist/tools/factory.js
11274
11274
  import { execSync as execSync20, spawn as spawn10 } from "node:child_process";
11275
11275
  import { existsSync as existsSync22 } from "node:fs";
11276
11276
  import { join as join28 } from "node:path";
@@ -11331,7 +11331,7 @@ function installDroid() {
11331
11331
  }
11332
11332
  var FactoryTool;
11333
11333
  var init_factory = __esm({
11334
- "../packages/execution/dist/tools/factory.js"() {
11334
+ "packages/execution/dist/tools/factory.js"() {
11335
11335
  "use strict";
11336
11336
  FactoryTool = class {
11337
11337
  name = "factory";
@@ -11579,7 +11579,7 @@ var init_factory = __esm({
11579
11579
  }
11580
11580
  });
11581
11581
 
11582
- // ../packages/execution/dist/tools/cron-agent.js
11582
+ // packages/execution/dist/tools/cron-agent.js
11583
11583
  import { execSync as execSync21 } from "node:child_process";
11584
11584
  import { readFile as readFile12, writeFile as writeFile11, mkdir as mkdir7 } from "node:fs/promises";
11585
11585
  import { resolve as resolve25, join as join29 } from "node:path";
@@ -11713,7 +11713,7 @@ async function saveStore2(workingDir, store) {
11713
11713
  }
11714
11714
  var LONG_HORIZON_PRESETS, CRON_AGENT_MARKER, CronAgentTool;
11715
11715
  var init_cron_agent = __esm({
11716
- "../packages/execution/dist/tools/cron-agent.js"() {
11716
+ "packages/execution/dist/tools/cron-agent.js"() {
11717
11717
  "use strict";
11718
11718
  LONG_HORIZON_PRESETS = {
11719
11719
  "every hour": "0 * * * *",
@@ -12044,7 +12044,7 @@ ${truncated}`, durationMs: performance.now() - start };
12044
12044
  }
12045
12045
  });
12046
12046
 
12047
- // ../packages/execution/dist/tools/nexus.js
12047
+ // packages/execution/dist/tools/nexus.js
12048
12048
  import { readFile as readFile13, writeFile as writeFile12, mkdir as mkdir8, chmod, unlink, readdir as readdir3, open as fsOpen } from "node:fs/promises";
12049
12049
  import { existsSync as existsSync23, readFileSync as readFileSync16, watch as fsWatchLocal } from "node:fs";
12050
12050
  import { resolve as resolve26, join as join30 } from "node:path";
@@ -12060,7 +12060,7 @@ function containsKeyMaterial(input) {
12060
12060
  }
12061
12061
  var DAEMON_SCRIPT, KEY_PATTERNS, NexusTool;
12062
12062
  var init_nexus = __esm({
12063
- "../packages/execution/dist/tools/nexus.js"() {
12063
+ "packages/execution/dist/tools/nexus.js"() {
12064
12064
  "use strict";
12065
12065
  DAEMON_SCRIPT = `#!/usr/bin/env node
12066
12066
  /**
@@ -12402,14 +12402,28 @@ async function handleCmd(cmd) {
12402
12402
  }
12403
12403
 
12404
12404
  // riResult and riTargetPeer are available from either path above
12405
- // Check if the invoke returned an error message instead of real data
12405
+ // Check if the invoke returned an error message instead of real data.
12406
+ // IMPORTANT: Only flag short non-JSON strings as errors. Valid inference
12407
+ // responses are JSON with model/response/choices \u2014 the model's natural
12408
+ // language output often contains words like "error" or "not found" which
12409
+ // would cause false positives if we checked the entire JSON string.
12406
12410
  var riIsError = false;
12407
12411
  if (typeof riResult === 'string') {
12408
- var riLower = riResult.toLowerCase();
12409
- if (riLower.includes('unauthorized') || riLower.includes('forbidden') ||
12410
- riLower.includes('not found') || riLower.includes('error') ||
12411
- riLower.includes('payment') || riLower.includes('rejected')) {
12412
- riIsError = true;
12412
+ // Try to parse as JSON \u2014 if it has model+response or choices, it's valid
12413
+ var riParsedCheck = null;
12414
+ try { riParsedCheck = JSON.parse(riResult); } catch {}
12415
+ if (riParsedCheck && typeof riParsedCheck === 'object' &&
12416
+ (riParsedCheck.model || riParsedCheck.choices || riParsedCheck.response !== undefined)) {
12417
+ // Valid inference response \u2014 NOT an error
12418
+ riIsError = false;
12419
+ } else {
12420
+ // Non-JSON or unstructured response \u2014 check for error keywords
12421
+ var riLower = riResult.toLowerCase();
12422
+ if (riLower.includes('unauthorized') || riLower.includes('forbidden') ||
12423
+ riLower.includes('not found') || riLower.includes('error') ||
12424
+ riLower.includes('payment') || riLower.includes('rejected')) {
12425
+ riIsError = true;
12426
+ }
12413
12427
  }
12414
12428
  }
12415
12429
  if (riIsError) {
@@ -12993,22 +13007,51 @@ async function handleCmd(cmd) {
12993
13007
  // Register system_metrics capability \u2014 returns CPU/GPU/memory utilization
12994
13008
  if (typeof nexus.registerCapability === 'function') {
12995
13009
  nexus.registerCapability('system_metrics', async (request, stream) => {
12996
- // Auth check for system_metrics too
13010
+ // Collect input via stream data events (auth_key arrives in invoke.chunk, NOT invoke.open)
13011
+ var smDataChunks = [];
13012
+ var smInputDone = false;
13013
+ stream.onData(function(msg) {
13014
+ if (msg.type === 'invoke.chunk') {
13015
+ smDataChunks.push(typeof msg.data === 'string' ? msg.data : JSON.stringify(msg.data));
13016
+ }
13017
+ if (msg.type === 'invoke.done' || msg.type === 'invoke.end') {
13018
+ smInputDone = true;
13019
+ }
13020
+ });
13021
+
13022
+ // Accept invocation so consumer sends data
13023
+ await stream.write({ type: 'invoke.accept', version: 1, requestId: request.requestId, accepted: true });
13024
+
13025
+ // Wait briefly for data (auth key arrives in chunk)
13026
+ var smWait = 0;
13027
+ while (!smInputDone && smDataChunks.length === 0 && smWait < 2000) {
13028
+ await new Promise(function(r) { setTimeout(r, 10); });
13029
+ smWait += 10;
13030
+ }
13031
+
13032
+ // Auth check \u2014 extract auth_key from chunk data
12997
13033
  if (exposeAuthKey) {
12998
13034
  var smAuthKey = '';
12999
- if (request.data && typeof request.data === 'object' && request.data.auth_key) {
13000
- smAuthKey = request.data.auth_key;
13001
- } else if (request.metadata && request.metadata.auth_key) {
13035
+ var smPayload = smDataChunks.join('');
13036
+ try {
13037
+ var smParsed = JSON.parse(smPayload);
13038
+ if (smParsed && typeof smParsed === 'object' && smParsed.auth_key) {
13039
+ smAuthKey = smParsed.auth_key;
13040
+ }
13041
+ } catch {}
13042
+ // Fallback: check invoke.open metadata (future-proofing)
13043
+ if (!smAuthKey && request.metadata && request.metadata.auth_key) {
13002
13044
  smAuthKey = request.metadata.auth_key;
13003
13045
  }
13004
13046
  if (smAuthKey !== exposeAuthKey) {
13005
- await stream.write({ type: 'invoke.accept', version: 1, requestId: request.requestId, accepted: false });
13047
+ dlog('system_metrics: auth REJECTED from ' + (request.from || 'unknown'));
13048
+ await stream.write({ type: 'invoke.event', version: 1, requestId: request.requestId, seq: 0, event: 'error', data: 'Unauthorized' });
13006
13049
  await stream.write({ type: 'invoke.done', version: 1, requestId: request.requestId, usage: { inputBytes: 0, outputBytes: 0 } });
13007
13050
  stream.close();
13008
13051
  return;
13009
13052
  }
13053
+ dlog('system_metrics: auth OK');
13010
13054
  }
13011
- await stream.write({ type: 'invoke.accept', version: 1, requestId: request.requestId, accepted: true });
13012
13055
  try {
13013
13056
  var os = require('os');
13014
13057
  var loads = os.loadavg();
@@ -13884,21 +13927,26 @@ process.on('SIGINT', () => process.emit('SIGTERM'));
13884
13927
  nodePaths.push(globalDir);
13885
13928
  } catch {
13886
13929
  }
13930
+ const { openSync, closeSync } = await import("node:fs");
13931
+ const daemonLogPath = join30(this.nexusDir, "daemon.log");
13932
+ const daemonErrPath = join30(this.nexusDir, "daemon.err");
13933
+ const outFd = openSync(daemonLogPath, "w");
13934
+ const errFd = openSync(daemonErrPath, "w");
13887
13935
  const child = spawn11("node", [daemonPath, this.nexusDir, agentName, agentType], {
13888
13936
  detached: true,
13889
- stdio: ["ignore", "pipe", "pipe"],
13937
+ stdio: ["ignore", outFd, errFd],
13890
13938
  cwd: this.repoRoot,
13891
13939
  env: { ...process.env, NODE_PATH: nodePaths.join(":") }
13892
13940
  });
13893
13941
  child.unref();
13894
- let earlyOutput = "";
13895
- let earlyError = "";
13896
- child.stdout?.on("data", (d) => {
13897
- earlyOutput += d.toString();
13898
- });
13899
- child.stderr?.on("data", (d) => {
13900
- earlyError += d.toString();
13901
- });
13942
+ try {
13943
+ closeSync(outFd);
13944
+ } catch {
13945
+ }
13946
+ try {
13947
+ closeSync(errFd);
13948
+ } catch {
13949
+ }
13902
13950
  const statusFile = join30(this.nexusDir, "status.json");
13903
13951
  for (let i = 0; i < 40; i++) {
13904
13952
  await new Promise((r) => setTimeout(r, 500));
@@ -13906,7 +13954,12 @@ process.on('SIGINT', () => process.emit('SIGTERM'));
13906
13954
  try {
13907
13955
  const status = JSON.parse(await readFile13(statusFile, "utf8"));
13908
13956
  if (status.error) {
13909
- return `Nexus daemon failed to connect: ${status.error}`;
13957
+ let errTail = "";
13958
+ try {
13959
+ errTail = (await readFile13(daemonErrPath, "utf8")).slice(-300);
13960
+ } catch {
13961
+ }
13962
+ return `Nexus daemon failed to connect: ${status.error}${errTail ? "\n" + errTail : ""}`;
13910
13963
  }
13911
13964
  if (status.connected && status.peerId) {
13912
13965
  return [
@@ -13923,10 +13976,20 @@ process.on('SIGINT', () => process.emit('SIGTERM'));
13923
13976
  }
13924
13977
  }
13925
13978
  const pid = this.getDaemonPid();
13979
+ let earlyError = "";
13980
+ try {
13981
+ earlyError = (await readFile13(daemonErrPath, "utf8")).slice(-500);
13982
+ } catch {
13983
+ }
13984
+ let earlyOutput = "";
13985
+ try {
13986
+ earlyOutput = (await readFile13(daemonLogPath, "utf8")).slice(-500);
13987
+ } catch {
13988
+ }
13926
13989
  if (pid) {
13927
13990
  return `Daemon spawned (pid: ${pid}) but still connecting. Check status in a moment.${earlyError ? "\nStderr: " + earlyError.slice(0, 200) : ""}`;
13928
13991
  }
13929
- return `Daemon failed to start.${earlyError ? "\n" + earlyError.slice(0, 500) : ""}${earlyOutput ? "\n" + earlyOutput.slice(0, 500) : ""}`;
13992
+ return `Daemon failed to start.${earlyError ? "\n" + earlyError : ""}${earlyOutput ? "\n" + earlyOutput : ""}`;
13930
13993
  }
13931
13994
  async doDisconnect() {
13932
13995
  const pid = this.getDaemonPid();
@@ -14760,7 +14823,7 @@ process.on('SIGINT', () => process.emit('SIGTERM'));
14760
14823
  }
14761
14824
  });
14762
14825
 
14763
- // ../packages/execution/dist/shellRunner.js
14826
+ // packages/execution/dist/shellRunner.js
14764
14827
  import { spawn as spawn12 } from "node:child_process";
14765
14828
  async function runShell(options) {
14766
14829
  const { command, args = [], cwd: cwd4, env, timeoutMs = DEFAULT_TIMEOUT_MS } = options;
@@ -14814,13 +14877,13 @@ async function runShell(options) {
14814
14877
  }
14815
14878
  var DEFAULT_TIMEOUT_MS;
14816
14879
  var init_shellRunner = __esm({
14817
- "../packages/execution/dist/shellRunner.js"() {
14880
+ "packages/execution/dist/shellRunner.js"() {
14818
14881
  "use strict";
14819
14882
  DEFAULT_TIMEOUT_MS = 6e4;
14820
14883
  }
14821
14884
  });
14822
14885
 
14823
- // ../packages/execution/dist/gitWorktree.js
14886
+ // packages/execution/dist/gitWorktree.js
14824
14887
  async function createWorktree(options) {
14825
14888
  const { repoPath, worktreePath, branch, timeoutMs = DEFAULT_GIT_TIMEOUT_MS } = options;
14826
14889
  const result = await runShell({
@@ -14857,14 +14920,14 @@ async function removeWorktree(options) {
14857
14920
  }
14858
14921
  var DEFAULT_GIT_TIMEOUT_MS;
14859
14922
  var init_gitWorktree = __esm({
14860
- "../packages/execution/dist/gitWorktree.js"() {
14923
+ "packages/execution/dist/gitWorktree.js"() {
14861
14924
  "use strict";
14862
14925
  init_shellRunner();
14863
14926
  DEFAULT_GIT_TIMEOUT_MS = 3e4;
14864
14927
  }
14865
14928
  });
14866
14929
 
14867
- // ../packages/execution/dist/patchApplier.js
14930
+ // packages/execution/dist/patchApplier.js
14868
14931
  import { readFileSync as readFileSync17, writeFileSync as writeFileSync7, existsSync as existsSync24, mkdirSync as mkdirSync7 } from "node:fs";
14869
14932
  import { dirname as dirname11 } from "node:path";
14870
14933
  import { spawn as spawn13 } from "node:child_process";
@@ -14941,12 +15004,12 @@ function runWithStdin(options) {
14941
15004
  });
14942
15005
  }
14943
15006
  var init_patchApplier = __esm({
14944
- "../packages/execution/dist/patchApplier.js"() {
15007
+ "packages/execution/dist/patchApplier.js"() {
14945
15008
  "use strict";
14946
15009
  }
14947
15010
  });
14948
15011
 
14949
- // ../packages/execution/dist/formatterRunner.js
15012
+ // packages/execution/dist/formatterRunner.js
14950
15013
  function buildFormatterCommand(formatter, extraArgs) {
14951
15014
  switch (formatter) {
14952
15015
  case "prettier":
@@ -14997,13 +15060,13 @@ async function runFormatter(options) {
14997
15060
  };
14998
15061
  }
14999
15062
  var init_formatterRunner = __esm({
15000
- "../packages/execution/dist/formatterRunner.js"() {
15063
+ "packages/execution/dist/formatterRunner.js"() {
15001
15064
  "use strict";
15002
15065
  init_shellRunner();
15003
15066
  }
15004
15067
  });
15005
15068
 
15006
- // ../packages/execution/dist/linterRunner.js
15069
+ // packages/execution/dist/linterRunner.js
15007
15070
  function buildLinterCommand(linter, extraArgs) {
15008
15071
  switch (linter) {
15009
15072
  case "eslint":
@@ -15059,13 +15122,13 @@ async function runLinter(options) {
15059
15122
  };
15060
15123
  }
15061
15124
  var init_linterRunner = __esm({
15062
- "../packages/execution/dist/linterRunner.js"() {
15125
+ "packages/execution/dist/linterRunner.js"() {
15063
15126
  "use strict";
15064
15127
  init_shellRunner();
15065
15128
  }
15066
15129
  });
15067
15130
 
15068
- // ../packages/execution/dist/typecheckRunner.js
15131
+ // packages/execution/dist/typecheckRunner.js
15069
15132
  function buildTypecheckerCommand(typechecker, extraArgs) {
15070
15133
  switch (typechecker) {
15071
15134
  case "tsc":
@@ -15111,13 +15174,13 @@ async function runTypecheck(options) {
15111
15174
  };
15112
15175
  }
15113
15176
  var init_typecheckRunner = __esm({
15114
- "../packages/execution/dist/typecheckRunner.js"() {
15177
+ "packages/execution/dist/typecheckRunner.js"() {
15115
15178
  "use strict";
15116
15179
  init_shellRunner();
15117
15180
  }
15118
15181
  });
15119
15182
 
15120
- // ../packages/execution/dist/testRunner.js
15183
+ // packages/execution/dist/testRunner.js
15121
15184
  function buildTestRunnerCommand(testRunner, extraArgs) {
15122
15185
  switch (testRunner) {
15123
15186
  case "jest":
@@ -15173,13 +15236,13 @@ async function runTests(options) {
15173
15236
  };
15174
15237
  }
15175
15238
  var init_testRunner = __esm({
15176
- "../packages/execution/dist/testRunner.js"() {
15239
+ "packages/execution/dist/testRunner.js"() {
15177
15240
  "use strict";
15178
15241
  init_shellRunner();
15179
15242
  }
15180
15243
  });
15181
15244
 
15182
- // ../packages/execution/dist/buildRunner.js
15245
+ // packages/execution/dist/buildRunner.js
15183
15246
  function buildBuilderCommand(profile, extraArgs) {
15184
15247
  switch (profile.builder) {
15185
15248
  case "tsc":
@@ -15246,13 +15309,13 @@ async function runBuild(options) {
15246
15309
  };
15247
15310
  }
15248
15311
  var init_buildRunner = __esm({
15249
- "../packages/execution/dist/buildRunner.js"() {
15312
+ "packages/execution/dist/buildRunner.js"() {
15250
15313
  "use strict";
15251
15314
  init_shellRunner();
15252
15315
  }
15253
15316
  });
15254
15317
 
15255
- // ../packages/execution/dist/validationPipeline.js
15318
+ // packages/execution/dist/validationPipeline.js
15256
15319
  async function runValidationPipeline(config) {
15257
15320
  const { projectRoot, profile, stopOnFirstFailure = true } = config;
15258
15321
  const formatterProfile = {
@@ -15348,7 +15411,7 @@ async function runValidationPipeline(config) {
15348
15411
  };
15349
15412
  }
15350
15413
  var init_validationPipeline = __esm({
15351
- "../packages/execution/dist/validationPipeline.js"() {
15414
+ "packages/execution/dist/validationPipeline.js"() {
15352
15415
  "use strict";
15353
15416
  init_formatterRunner();
15354
15417
  init_linterRunner();
@@ -15358,7 +15421,7 @@ var init_validationPipeline = __esm({
15358
15421
  }
15359
15422
  });
15360
15423
 
15361
- // ../packages/execution/dist/index.js
15424
+ // packages/execution/dist/index.js
15362
15425
  var dist_exports = {};
15363
15426
  __export(dist_exports, {
15364
15427
  AgendaTool: () => AgendaTool,
@@ -15451,7 +15514,7 @@ __export(dist_exports, {
15451
15514
  setSudoPassword: () => setSudoPassword
15452
15515
  });
15453
15516
  var init_dist2 = __esm({
15454
- "../packages/execution/dist/index.js"() {
15517
+ "packages/execution/dist/index.js"() {
15455
15518
  "use strict";
15456
15519
  init_tool_executor();
15457
15520
  init_shell();
@@ -15513,9 +15576,9 @@ var init_dist2 = __esm({
15513
15576
  }
15514
15577
  });
15515
15578
 
15516
- // ../packages/orchestrator/dist/agent-loop.js
15579
+ // packages/orchestrator/dist/agent-loop.js
15517
15580
  var init_agent_loop = __esm({
15518
- "../packages/orchestrator/dist/agent-loop.js"() {
15581
+ "packages/orchestrator/dist/agent-loop.js"() {
15519
15582
  "use strict";
15520
15583
  init_dist();
15521
15584
  init_dist2();
@@ -15523,11 +15586,11 @@ var init_agent_loop = __esm({
15523
15586
  }
15524
15587
  });
15525
15588
 
15526
- // ../packages/schemas/dist/messages.js
15589
+ // packages/schemas/dist/messages.js
15527
15590
  import { z } from "zod";
15528
15591
  var AgentMessageSchema;
15529
15592
  var init_messages = __esm({
15530
- "../packages/schemas/dist/messages.js"() {
15593
+ "packages/schemas/dist/messages.js"() {
15531
15594
  "use strict";
15532
15595
  AgentMessageSchema = z.object({
15533
15596
  id: z.string().uuid(),
@@ -15540,11 +15603,11 @@ var init_messages = __esm({
15540
15603
  }
15541
15604
  });
15542
15605
 
15543
- // ../packages/schemas/dist/tools.js
15606
+ // packages/schemas/dist/tools.js
15544
15607
  import { z as z2 } from "zod";
15545
15608
  var ToolCallSchema;
15546
15609
  var init_tools = __esm({
15547
- "../packages/schemas/dist/tools.js"() {
15610
+ "packages/schemas/dist/tools.js"() {
15548
15611
  "use strict";
15549
15612
  ToolCallSchema = z2.object({
15550
15613
  id: z2.string().uuid(),
@@ -15558,11 +15621,11 @@ var init_tools = __esm({
15558
15621
  }
15559
15622
  });
15560
15623
 
15561
- // ../packages/schemas/dist/session.js
15624
+ // packages/schemas/dist/session.js
15562
15625
  import { z as z3 } from "zod";
15563
15626
  var SessionSchema;
15564
15627
  var init_session = __esm({
15565
- "../packages/schemas/dist/session.js"() {
15628
+ "packages/schemas/dist/session.js"() {
15566
15629
  "use strict";
15567
15630
  SessionSchema = z3.object({
15568
15631
  id: z3.string().uuid(),
@@ -15576,11 +15639,11 @@ var init_session = __esm({
15576
15639
  }
15577
15640
  });
15578
15641
 
15579
- // ../packages/schemas/dist/task.js
15642
+ // packages/schemas/dist/task.js
15580
15643
  import { z as z4 } from "zod";
15581
15644
  var TaskClassSchema, UrgencySchema, NormalizedTaskSchema, TaskStatusSchema;
15582
15645
  var init_task = __esm({
15583
- "../packages/schemas/dist/task.js"() {
15646
+ "packages/schemas/dist/task.js"() {
15584
15647
  "use strict";
15585
15648
  TaskClassSchema = z4.enum([
15586
15649
  "bugfix",
@@ -15625,11 +15688,11 @@ var init_task = __esm({
15625
15688
  }
15626
15689
  });
15627
15690
 
15628
- // ../packages/schemas/dist/plan.js
15691
+ // packages/schemas/dist/plan.js
15629
15692
  import { z as z5 } from "zod";
15630
15693
  var SubtaskKindSchema, SubtaskSchema, PlanSchema;
15631
15694
  var init_plan = __esm({
15632
- "../packages/schemas/dist/plan.js"() {
15695
+ "packages/schemas/dist/plan.js"() {
15633
15696
  "use strict";
15634
15697
  SubtaskKindSchema = z5.enum([
15635
15698
  "inspect",
@@ -15663,11 +15726,11 @@ var init_plan = __esm({
15663
15726
  }
15664
15727
  });
15665
15728
 
15666
- // ../packages/schemas/dist/patch.js
15729
+ // packages/schemas/dist/patch.js
15667
15730
  import { z as z6 } from "zod";
15668
15731
  var EditOperationSchema, FileEditSchema, NeedsMoreContextSchema, PatchProposalSchema;
15669
15732
  var init_patch = __esm({
15670
- "../packages/schemas/dist/patch.js"() {
15733
+ "packages/schemas/dist/patch.js"() {
15671
15734
  "use strict";
15672
15735
  EditOperationSchema = z6.enum([
15673
15736
  "diff",
@@ -15706,11 +15769,11 @@ var init_patch = __esm({
15706
15769
  }
15707
15770
  });
15708
15771
 
15709
- // ../packages/schemas/dist/verification.js
15772
+ // packages/schemas/dist/verification.js
15710
15773
  import { z as z7 } from "zod";
15711
15774
  var VerificationStatusSchema, VerificationNextActionSchema, VerificationDecisionSchema;
15712
15775
  var init_verification = __esm({
15713
- "../packages/schemas/dist/verification.js"() {
15776
+ "packages/schemas/dist/verification.js"() {
15714
15777
  "use strict";
15715
15778
  VerificationStatusSchema = z7.enum(["pass", "fail", "partial"]);
15716
15779
  VerificationNextActionSchema = z7.enum([
@@ -15735,11 +15798,11 @@ var init_verification = __esm({
15735
15798
  }
15736
15799
  });
15737
15800
 
15738
- // ../packages/schemas/dist/repoProfile.js
15801
+ // packages/schemas/dist/repoProfile.js
15739
15802
  import { z as z8 } from "zod";
15740
15803
  var LanguageSchema, PackageManagerSchema, BuildSystemSchema, MigrationSystemSchema, RepoProfileSchema;
15741
15804
  var init_repoProfile = __esm({
15742
- "../packages/schemas/dist/repoProfile.js"() {
15805
+ "packages/schemas/dist/repoProfile.js"() {
15743
15806
  "use strict";
15744
15807
  LanguageSchema = z8.enum([
15745
15808
  "typescript",
@@ -15817,11 +15880,11 @@ var init_repoProfile = __esm({
15817
15880
  }
15818
15881
  });
15819
15882
 
15820
- // ../packages/schemas/dist/retrieval.js
15883
+ // packages/schemas/dist/retrieval.js
15821
15884
  import { z as z9 } from "zod";
15822
15885
  var RetrievalRequestSchema, SnippetSchema, RetrievalPacketSchema;
15823
15886
  var init_retrieval = __esm({
15824
- "../packages/schemas/dist/retrieval.js"() {
15887
+ "packages/schemas/dist/retrieval.js"() {
15825
15888
  "use strict";
15826
15889
  RetrievalRequestSchema = z9.object({
15827
15890
  /** Natural language description of what information is needed */
@@ -15869,11 +15932,11 @@ var init_retrieval = __esm({
15869
15932
  }
15870
15933
  });
15871
15934
 
15872
- // ../packages/schemas/dist/dispatch.js
15935
+ // packages/schemas/dist/dispatch.js
15873
15936
  import { z as z10 } from "zod";
15874
15937
  var DispatchModeSchema, TaskComplexitySchema, AgentRoleSchema, BudgetsSchema, DispatchDecisionSchema;
15875
15938
  var init_dispatch = __esm({
15876
- "../packages/schemas/dist/dispatch.js"() {
15939
+ "packages/schemas/dist/dispatch.js"() {
15877
15940
  "use strict";
15878
15941
  DispatchModeSchema = z10.enum([
15879
15942
  "single_pass",
@@ -15907,11 +15970,11 @@ var init_dispatch = __esm({
15907
15970
  }
15908
15971
  });
15909
15972
 
15910
- // ../packages/schemas/dist/memory.js
15973
+ // packages/schemas/dist/memory.js
15911
15974
  import { z as z11 } from "zod";
15912
15975
  var RiskLevelSchema, FileSummarySchema, FailureCategorySchema, FailureFingerprintSchema, TaskMemorySchema;
15913
15976
  var init_memory = __esm({
15914
- "../packages/schemas/dist/memory.js"() {
15977
+ "packages/schemas/dist/memory.js"() {
15915
15978
  "use strict";
15916
15979
  RiskLevelSchema = z11.enum(["low", "medium", "high", "critical"]);
15917
15980
  FileSummarySchema = z11.object({
@@ -15987,11 +16050,11 @@ var init_memory = __esm({
15987
16050
  }
15988
16051
  });
15989
16052
 
15990
- // ../packages/schemas/dist/backend.js
16053
+ // packages/schemas/dist/backend.js
15991
16054
  import { z as z12 } from "zod";
15992
16055
  var MessageRoleSchema, ChatMessageSchema, CompletionRequestSchema, TokenUsageSchema, CompletionResponseSchema, StructuredCompletionRequestSchema, BackendHealthSchema, BackendMetricsSchema;
15993
16056
  var init_backend = __esm({
15994
- "../packages/schemas/dist/backend.js"() {
16057
+ "packages/schemas/dist/backend.js"() {
15995
16058
  "use strict";
15996
16059
  MessageRoleSchema = z12.enum([
15997
16060
  "system",
@@ -16076,11 +16139,11 @@ var init_backend = __esm({
16076
16139
  }
16077
16140
  });
16078
16141
 
16079
- // ../packages/schemas/dist/config.js
16142
+ // packages/schemas/dist/config.js
16080
16143
  import { z as z13 } from "zod";
16081
16144
  var AgentConfigSchema;
16082
16145
  var init_config2 = __esm({
16083
- "../packages/schemas/dist/config.js"() {
16146
+ "packages/schemas/dist/config.js"() {
16084
16147
  "use strict";
16085
16148
  AgentConfigSchema = z13.object({
16086
16149
  // -----------------------------------------------------------------------
@@ -16139,11 +16202,11 @@ var init_config2 = __esm({
16139
16202
  }
16140
16203
  });
16141
16204
 
16142
- // ../packages/schemas/dist/queue.js
16205
+ // packages/schemas/dist/queue.js
16143
16206
  import { z as z14 } from "zod";
16144
16207
  var QueueClassSchema;
16145
16208
  var init_queue = __esm({
16146
- "../packages/schemas/dist/queue.js"() {
16209
+ "packages/schemas/dist/queue.js"() {
16147
16210
  "use strict";
16148
16211
  QueueClassSchema = z14.enum([
16149
16212
  /** CLI and direct user-facing requests; lowest latency target */
@@ -16162,9 +16225,9 @@ var init_queue = __esm({
16162
16225
  }
16163
16226
  });
16164
16227
 
16165
- // ../packages/schemas/dist/index.js
16228
+ // packages/schemas/dist/index.js
16166
16229
  var init_dist3 = __esm({
16167
- "../packages/schemas/dist/index.js"() {
16230
+ "packages/schemas/dist/index.js"() {
16168
16231
  "use strict";
16169
16232
  init_messages();
16170
16233
  init_tools();
@@ -16183,7 +16246,7 @@ var init_dist3 = __esm({
16183
16246
  }
16184
16247
  });
16185
16248
 
16186
- // ../packages/orchestrator/dist/promptLoader.js
16249
+ // packages/orchestrator/dist/promptLoader.js
16187
16250
  import { readFileSync as readFileSync18, existsSync as existsSync25 } from "node:fs";
16188
16251
  import { join as join31, dirname as dirname12 } from "node:path";
16189
16252
  import { fileURLToPath as fileURLToPath7 } from "node:url";
@@ -16203,7 +16266,7 @@ function loadPrompt(promptPath, vars) {
16203
16266
  }
16204
16267
  var __filename, __dirname4, PROMPTS_DIR, cache;
16205
16268
  var init_promptLoader = __esm({
16206
- "../packages/orchestrator/dist/promptLoader.js"() {
16269
+ "packages/orchestrator/dist/promptLoader.js"() {
16207
16270
  "use strict";
16208
16271
  __filename = fileURLToPath7(import.meta.url);
16209
16272
  __dirname4 = dirname12(__filename);
@@ -16212,7 +16275,7 @@ var init_promptLoader = __esm({
16212
16275
  }
16213
16276
  });
16214
16277
 
16215
- // ../packages/orchestrator/dist/taskNormalizer.js
16278
+ // packages/orchestrator/dist/taskNormalizer.js
16216
16279
  function parseJsonFromContent(content) {
16217
16280
  const fencedMatch = content.match(/```(?:json)?\s*([\s\S]*?)```/);
16218
16281
  const raw = fencedMatch ? fencedMatch[1] : content;
@@ -16227,7 +16290,7 @@ function normalizationPrompt(rawRequest, repoRoot) {
16227
16290
  }
16228
16291
  var TaskNormalizer;
16229
16292
  var init_taskNormalizer = __esm({
16230
- "../packages/orchestrator/dist/taskNormalizer.js"() {
16293
+ "packages/orchestrator/dist/taskNormalizer.js"() {
16231
16294
  "use strict";
16232
16295
  init_dist3();
16233
16296
  init_promptLoader();
@@ -16279,7 +16342,7 @@ var init_taskNormalizer = __esm({
16279
16342
  }
16280
16343
  });
16281
16344
 
16282
- // ../packages/orchestrator/dist/dispatcher.js
16345
+ // packages/orchestrator/dist/dispatcher.js
16283
16346
  function estimateComplexity(task) {
16284
16347
  const text = `${task.goal} ${task.constraints.join(" ")} ${task.successCriteria.join(" ")}`;
16285
16348
  const wordCount = text.split(/\s+/).length;
@@ -16346,7 +16409,7 @@ function parseJsonFromContent2(content) {
16346
16409
  }
16347
16410
  var Dispatcher;
16348
16411
  var init_dispatcher = __esm({
16349
- "../packages/orchestrator/dist/dispatcher.js"() {
16412
+ "packages/orchestrator/dist/dispatcher.js"() {
16350
16413
  "use strict";
16351
16414
  init_dist3();
16352
16415
  init_promptLoader();
@@ -16406,7 +16469,7 @@ var init_dispatcher = __esm({
16406
16469
  }
16407
16470
  });
16408
16471
 
16409
- // ../packages/orchestrator/dist/plannerRunner.js
16472
+ // packages/orchestrator/dist/plannerRunner.js
16410
16473
  function plannerPrompt(task, repoProfile, retrievalPacket) {
16411
16474
  const profileSection = repoProfile ? `REPOSITORY PROFILE:
16412
16475
  ${JSON.stringify(repoProfile, null, 2)}` : "REPOSITORY PROFILE: (not available)";
@@ -16427,7 +16490,7 @@ function parseJsonFromContent3(content) {
16427
16490
  }
16428
16491
  var PlannerRunner;
16429
16492
  var init_plannerRunner = __esm({
16430
- "../packages/orchestrator/dist/plannerRunner.js"() {
16493
+ "packages/orchestrator/dist/plannerRunner.js"() {
16431
16494
  "use strict";
16432
16495
  init_dist3();
16433
16496
  init_promptLoader();
@@ -16480,12 +16543,12 @@ var init_plannerRunner = __esm({
16480
16543
  }
16481
16544
  });
16482
16545
 
16483
- // ../packages/retrieval/dist/grep-search.js
16546
+ // packages/retrieval/dist/grep-search.js
16484
16547
  import { execFile as execFile4 } from "node:child_process";
16485
16548
  import { promisify as promisify3 } from "node:util";
16486
16549
  var execFileAsync3, GrepSearch;
16487
16550
  var init_grep_search2 = __esm({
16488
- "../packages/retrieval/dist/grep-search.js"() {
16551
+ "packages/retrieval/dist/grep-search.js"() {
16489
16552
  "use strict";
16490
16553
  execFileAsync3 = promisify3(execFile4);
16491
16554
  GrepSearch = class {
@@ -16542,10 +16605,10 @@ var init_grep_search2 = __esm({
16542
16605
  }
16543
16606
  });
16544
16607
 
16545
- // ../packages/retrieval/dist/code-retriever.js
16608
+ // packages/retrieval/dist/code-retriever.js
16546
16609
  var DEFAULT_CONFIG3, CodeRetriever;
16547
16610
  var init_code_retriever = __esm({
16548
- "../packages/retrieval/dist/code-retriever.js"() {
16611
+ "packages/retrieval/dist/code-retriever.js"() {
16549
16612
  "use strict";
16550
16613
  init_grep_search2();
16551
16614
  DEFAULT_CONFIG3 = {
@@ -16583,7 +16646,7 @@ var init_code_retriever = __esm({
16583
16646
  }
16584
16647
  });
16585
16648
 
16586
- // ../packages/retrieval/dist/lexicalSearch.js
16649
+ // packages/retrieval/dist/lexicalSearch.js
16587
16650
  import { execFile as execFile5 } from "node:child_process";
16588
16651
  import { promisify as promisify4 } from "node:util";
16589
16652
  import { readFile as readFile14, readdir as readdir4, stat as stat3 } from "node:fs/promises";
@@ -16761,7 +16824,7 @@ function matchesGlob(filePath, glob2) {
16761
16824
  }
16762
16825
  var execFileAsync4, DEFAULT_INCLUDE_GLOBS, DEFAULT_EXCLUDE_GLOBS, DEFAULT_MAX_MATCHES, ALWAYS_SKIP, ALL_CODE_EXTS;
16763
16826
  var init_lexicalSearch = __esm({
16764
- "../packages/retrieval/dist/lexicalSearch.js"() {
16827
+ "packages/retrieval/dist/lexicalSearch.js"() {
16765
16828
  "use strict";
16766
16829
  execFileAsync4 = promisify4(execFile5);
16767
16830
  DEFAULT_INCLUDE_GLOBS = ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx", "**/*.py"];
@@ -16772,7 +16835,7 @@ var init_lexicalSearch = __esm({
16772
16835
  }
16773
16836
  });
16774
16837
 
16775
- // ../packages/retrieval/dist/semanticSearch.js
16838
+ // packages/retrieval/dist/semanticSearch.js
16776
16839
  function parseTagFilter(query) {
16777
16840
  const required = [];
16778
16841
  const anyOf = [];
@@ -16849,7 +16912,7 @@ function makePlaceholderSummary(filePath) {
16849
16912
  }
16850
16913
  var StubSemanticSearchEngine, IndexBackedSemanticSearchEngine, LazySemanticSearchEngine;
16851
16914
  var init_semanticSearch = __esm({
16852
- "../packages/retrieval/dist/semanticSearch.js"() {
16915
+ "packages/retrieval/dist/semanticSearch.js"() {
16853
16916
  "use strict";
16854
16917
  StubSemanticSearchEngine = class {
16855
16918
  isAvailable = false;
@@ -16969,7 +17032,7 @@ var init_semanticSearch = __esm({
16969
17032
  }
16970
17033
  });
16971
17034
 
16972
- // ../packages/retrieval/dist/graphExpand.js
17035
+ // packages/retrieval/dist/graphExpand.js
16973
17036
  function expandGraph(seeds, graph, opts = {}) {
16974
17037
  const { direction = "both", maxHops = 1, maxNeighbors = 20, includeSeeds = false } = opts;
16975
17038
  const seedSet = new Set(seeds);
@@ -17029,12 +17092,12 @@ function bfsExpand(seeds, adjacency, maxHops, maxNeighbors, excludeSet, result)
17029
17092
  }
17030
17093
  }
17031
17094
  var init_graphExpand = __esm({
17032
- "../packages/retrieval/dist/graphExpand.js"() {
17095
+ "packages/retrieval/dist/graphExpand.js"() {
17033
17096
  "use strict";
17034
17097
  }
17035
17098
  });
17036
17099
 
17037
- // ../packages/retrieval/dist/snippetPacker.js
17100
+ // packages/retrieval/dist/snippetPacker.js
17038
17101
  import { readFile as readFile15 } from "node:fs/promises";
17039
17102
  import { join as join33 } from "node:path";
17040
17103
  async function packSnippets(requests, opts = {}) {
@@ -17097,7 +17160,7 @@ async function packFiles(filePaths, repoRoot, maxTokens = DEFAULT_MAX_TOKENS) {
17097
17160
  }
17098
17161
  var DEFAULT_MAX_TOKENS, DEFAULT_CONTEXT_LINES, CHARS_PER_TOKEN;
17099
17162
  var init_snippetPacker = __esm({
17100
- "../packages/retrieval/dist/snippetPacker.js"() {
17163
+ "packages/retrieval/dist/snippetPacker.js"() {
17101
17164
  "use strict";
17102
17165
  DEFAULT_MAX_TOKENS = 32e3;
17103
17166
  DEFAULT_CONTEXT_LINES = 2;
@@ -17105,7 +17168,7 @@ var init_snippetPacker = __esm({
17105
17168
  }
17106
17169
  });
17107
17170
 
17108
- // ../packages/retrieval/dist/contextAssembler.js
17171
+ // packages/retrieval/dist/contextAssembler.js
17109
17172
  async function assembleContext(request, opts) {
17110
17173
  const { repoRoot, graph, semanticEngine, summaryMap, maxFiles = 8, maxSnippets = 20, maxLogs = 3, maxTokens = 24e3, expandNeighbors = true, architectureNote, priorAttemptNote } = opts;
17111
17174
  const lexOpts = {
@@ -17261,7 +17324,7 @@ function estimatePacketTokens(packet) {
17261
17324
  return fileTokens + snippetTokens;
17262
17325
  }
17263
17326
  var init_contextAssembler = __esm({
17264
- "../packages/retrieval/dist/contextAssembler.js"() {
17327
+ "packages/retrieval/dist/contextAssembler.js"() {
17265
17328
  "use strict";
17266
17329
  init_lexicalSearch();
17267
17330
  init_graphExpand();
@@ -17269,7 +17332,7 @@ var init_contextAssembler = __esm({
17269
17332
  }
17270
17333
  });
17271
17334
 
17272
- // ../packages/retrieval/dist/index.js
17335
+ // packages/retrieval/dist/index.js
17273
17336
  var dist_exports2 = {};
17274
17337
  __export(dist_exports2, {
17275
17338
  CodeRetriever: () => CodeRetriever,
@@ -17294,7 +17357,7 @@ __export(dist_exports2, {
17294
17357
  testsForFiles: () => testsForFiles
17295
17358
  });
17296
17359
  var init_dist4 = __esm({
17297
- "../packages/retrieval/dist/index.js"() {
17360
+ "packages/retrieval/dist/index.js"() {
17298
17361
  "use strict";
17299
17362
  init_code_retriever();
17300
17363
  init_grep_search2();
@@ -17306,7 +17369,7 @@ var init_dist4 = __esm({
17306
17369
  }
17307
17370
  });
17308
17371
 
17309
- // ../packages/orchestrator/dist/scoutRunner.js
17372
+ // packages/orchestrator/dist/scoutRunner.js
17310
17373
  async function loadCodeRetriever(rootDir) {
17311
17374
  const mod = await Promise.resolve().then(() => (init_dist4(), dist_exports2));
17312
17375
  return new mod.CodeRetriever({ rootDir });
@@ -17337,7 +17400,7 @@ function scoutPrompt(task, repoProfile, candidateFiles, subtasks) {
17337
17400
  }
17338
17401
  var ScoutRunner;
17339
17402
  var init_scoutRunner = __esm({
17340
- "../packages/orchestrator/dist/scoutRunner.js"() {
17403
+ "packages/orchestrator/dist/scoutRunner.js"() {
17341
17404
  "use strict";
17342
17405
  init_dist3();
17343
17406
  init_promptLoader();
@@ -17443,7 +17506,7 @@ var init_scoutRunner = __esm({
17443
17506
  }
17444
17507
  });
17445
17508
 
17446
- // ../packages/orchestrator/dist/editorRunner.js
17509
+ // packages/orchestrator/dist/editorRunner.js
17447
17510
  function editorPrompt(task, subtask, retrievalPacket, previousVerification, retryNumber) {
17448
17511
  const filesSection = Object.entries(retrievalPacket.files).map(([path, content]) => `=== ${path} ===
17449
17512
  ${content}`).join("\n\n");
@@ -17471,7 +17534,7 @@ function parseJsonFromContent5(content) {
17471
17534
  }
17472
17535
  var EditorRunner;
17473
17536
  var init_editorRunner = __esm({
17474
- "../packages/orchestrator/dist/editorRunner.js"() {
17537
+ "packages/orchestrator/dist/editorRunner.js"() {
17475
17538
  "use strict";
17476
17539
  init_dist3();
17477
17540
  init_promptLoader();
@@ -17529,7 +17592,7 @@ var init_editorRunner = __esm({
17529
17592
  }
17530
17593
  });
17531
17594
 
17532
- // ../packages/orchestrator/dist/verifierRunner.js
17595
+ // packages/orchestrator/dist/verifierRunner.js
17533
17596
  function verifierPrompt(task, subtask, patch, toolOutput) {
17534
17597
  const toolSection = toolOutput ? `TOOL EXECUTION OUTPUT:
17535
17598
  ${toolOutput}` : "TOOL EXECUTION OUTPUT: (not executed)";
@@ -17557,7 +17620,7 @@ function parseJsonFromContent6(content) {
17557
17620
  }
17558
17621
  var VerifierRunner;
17559
17622
  var init_verifierRunner = __esm({
17560
- "../packages/orchestrator/dist/verifierRunner.js"() {
17623
+ "packages/orchestrator/dist/verifierRunner.js"() {
17561
17624
  "use strict";
17562
17625
  init_dist3();
17563
17626
  init_promptLoader();
@@ -17652,10 +17715,10 @@ FAILED: ${execError.stderr ?? execError.stdout ?? execError.message ?? "unknown
17652
17715
  }
17653
17716
  });
17654
17717
 
17655
- // ../packages/orchestrator/dist/mergeRunner.js
17718
+ // packages/orchestrator/dist/mergeRunner.js
17656
17719
  var MergeRunner;
17657
17720
  var init_mergeRunner = __esm({
17658
- "../packages/orchestrator/dist/mergeRunner.js"() {
17721
+ "packages/orchestrator/dist/mergeRunner.js"() {
17659
17722
  "use strict";
17660
17723
  init_promptLoader();
17661
17724
  MergeRunner = class {
@@ -17740,10 +17803,10 @@ var init_mergeRunner = __esm({
17740
17803
  }
17741
17804
  });
17742
17805
 
17743
- // ../packages/orchestrator/dist/retryController.js
17806
+ // packages/orchestrator/dist/retryController.js
17744
17807
  var RetryController;
17745
17808
  var init_retryController = __esm({
17746
- "../packages/orchestrator/dist/retryController.js"() {
17809
+ "packages/orchestrator/dist/retryController.js"() {
17747
17810
  "use strict";
17748
17811
  RetryController = class {
17749
17812
  maxRetries;
@@ -17840,7 +17903,7 @@ var init_retryController = __esm({
17840
17903
  }
17841
17904
  });
17842
17905
 
17843
- // ../packages/orchestrator/dist/ralphLoop.js
17906
+ // packages/orchestrator/dist/ralphLoop.js
17844
17907
  function isoNow() {
17845
17908
  return (/* @__PURE__ */ new Date()).toISOString();
17846
17909
  }
@@ -17888,7 +17951,7 @@ function deriveTerminalStatus(executions) {
17888
17951
  }
17889
17952
  var RalphLoop;
17890
17953
  var init_ralphLoop = __esm({
17891
- "../packages/orchestrator/dist/ralphLoop.js"() {
17954
+ "packages/orchestrator/dist/ralphLoop.js"() {
17892
17955
  "use strict";
17893
17956
  init_taskNormalizer();
17894
17957
  init_dispatcher();
@@ -18171,7 +18234,7 @@ var init_ralphLoop = __esm({
18171
18234
  }
18172
18235
  });
18173
18236
 
18174
- // ../packages/orchestrator/dist/personality.js
18237
+ // packages/orchestrator/dist/personality.js
18175
18238
  function compilePersonalityPrompt(profile, presetName) {
18176
18239
  if (presetName === "stark") {
18177
18240
  return loadPrompt("personality/level-stark.md");
@@ -18199,7 +18262,7 @@ function getPreset(name) {
18199
18262
  }
18200
18263
  var PERSONALITY_PRESETS, PRESET_NAMES;
18201
18264
  var init_personality = __esm({
18202
- "../packages/orchestrator/dist/personality.js"() {
18265
+ "packages/orchestrator/dist/personality.js"() {
18203
18266
  "use strict";
18204
18267
  init_promptLoader();
18205
18268
  PERSONALITY_PRESETS = {
@@ -18220,7 +18283,7 @@ var init_personality = __esm({
18220
18283
  }
18221
18284
  });
18222
18285
 
18223
- // ../packages/orchestrator/dist/agenticRunner.js
18286
+ // packages/orchestrator/dist/agenticRunner.js
18224
18287
  function repairJson(raw) {
18225
18288
  if (!raw || typeof raw !== "string")
18226
18289
  return null;
@@ -18286,7 +18349,7 @@ function getSystemPromptForTier(tier) {
18286
18349
  }
18287
18350
  var SYSTEM_PROMPT, SYSTEM_PROMPT_MEDIUM, SYSTEM_PROMPT_SMALL, AgenticRunner, OllamaAgenticBackend;
18288
18351
  var init_agenticRunner = __esm({
18289
- "../packages/orchestrator/dist/agenticRunner.js"() {
18352
+ "packages/orchestrator/dist/agenticRunner.js"() {
18290
18353
  "use strict";
18291
18354
  init_dist();
18292
18355
  init_personality();
@@ -20817,10 +20880,10 @@ ${transcript}`
20817
20880
  }
20818
20881
  });
20819
20882
 
20820
- // ../packages/orchestrator/dist/nexusBackend.js
20883
+ // packages/orchestrator/dist/nexusBackend.js
20821
20884
  var NexusAgenticBackend;
20822
20885
  var init_nexusBackend = __esm({
20823
- "../packages/orchestrator/dist/nexusBackend.js"() {
20886
+ "packages/orchestrator/dist/nexusBackend.js"() {
20824
20887
  "use strict";
20825
20888
  NexusAgenticBackend = class _NexusAgenticBackend {
20826
20889
  sendFn;
@@ -20996,10 +21059,10 @@ var init_nexusBackend = __esm({
20996
21059
  }
20997
21060
  });
20998
21061
 
20999
- // ../packages/orchestrator/dist/cascadeBackend.js
21062
+ // packages/orchestrator/dist/cascadeBackend.js
21000
21063
  var CascadeBackend;
21001
21064
  var init_cascadeBackend = __esm({
21002
- "../packages/orchestrator/dist/cascadeBackend.js"() {
21065
+ "packages/orchestrator/dist/cascadeBackend.js"() {
21003
21066
  "use strict";
21004
21067
  init_agenticRunner();
21005
21068
  init_nexusBackend();
@@ -21263,10 +21326,10 @@ var init_cascadeBackend = __esm({
21263
21326
  }
21264
21327
  });
21265
21328
 
21266
- // ../packages/orchestrator/dist/flowstatePrompt.js
21329
+ // packages/orchestrator/dist/flowstatePrompt.js
21267
21330
  var FLOWSTATE_PROMPT;
21268
21331
  var init_flowstatePrompt = __esm({
21269
- "../packages/orchestrator/dist/flowstatePrompt.js"() {
21332
+ "packages/orchestrator/dist/flowstatePrompt.js"() {
21270
21333
  "use strict";
21271
21334
  FLOWSTATE_PROMPT = `## FlowState Protocol (Active)
21272
21335
 
@@ -21317,10 +21380,10 @@ Constrain your context. Clarify your target. Focus your tools. Flow will follow.
21317
21380
  }
21318
21381
  });
21319
21382
 
21320
- // ../packages/orchestrator/dist/costTracker.js
21383
+ // packages/orchestrator/dist/costTracker.js
21321
21384
  var DEFAULT_PRICING, CostTracker;
21322
21385
  var init_costTracker = __esm({
21323
- "../packages/orchestrator/dist/costTracker.js"() {
21386
+ "packages/orchestrator/dist/costTracker.js"() {
21324
21387
  "use strict";
21325
21388
  DEFAULT_PRICING = [
21326
21389
  // Cloud providers — typical pricing tiers
@@ -21468,7 +21531,7 @@ var init_costTracker = __esm({
21468
21531
  }
21469
21532
  });
21470
21533
 
21471
- // ../packages/orchestrator/dist/workEvaluator.js
21534
+ // packages/orchestrator/dist/workEvaluator.js
21472
21535
  function detectTaskType(taskDescription) {
21473
21536
  let bestType = "general";
21474
21537
  let bestScore = 0;
@@ -21503,7 +21566,7 @@ function buildEvaluationPrompt(task, summary, rubric) {
21503
21566
  }
21504
21567
  var RUBRICS, TASK_TYPE_PATTERNS, WorkEvaluator;
21505
21568
  var init_workEvaluator = __esm({
21506
- "../packages/orchestrator/dist/workEvaluator.js"() {
21569
+ "packages/orchestrator/dist/workEvaluator.js"() {
21507
21570
  "use strict";
21508
21571
  init_promptLoader();
21509
21572
  RUBRICS = {
@@ -21674,10 +21737,10 @@ var init_workEvaluator = __esm({
21674
21737
  }
21675
21738
  });
21676
21739
 
21677
- // ../packages/orchestrator/dist/sessionMetrics.js
21740
+ // packages/orchestrator/dist/sessionMetrics.js
21678
21741
  var SessionMetrics;
21679
21742
  var init_sessionMetrics = __esm({
21680
- "../packages/orchestrator/dist/sessionMetrics.js"() {
21743
+ "packages/orchestrator/dist/sessionMetrics.js"() {
21681
21744
  "use strict";
21682
21745
  SessionMetrics = class {
21683
21746
  sessionStart;
@@ -21774,16 +21837,16 @@ var init_sessionMetrics = __esm({
21774
21837
  }
21775
21838
  });
21776
21839
 
21777
- // ../packages/orchestrator/dist/taskLearning.js
21840
+ // packages/orchestrator/dist/taskLearning.js
21778
21841
  var init_taskLearning = __esm({
21779
- "../packages/orchestrator/dist/taskLearning.js"() {
21842
+ "packages/orchestrator/dist/taskLearning.js"() {
21780
21843
  "use strict";
21781
21844
  }
21782
21845
  });
21783
21846
 
21784
- // ../packages/orchestrator/dist/index.js
21847
+ // packages/orchestrator/dist/index.js
21785
21848
  var init_dist5 = __esm({
21786
- "../packages/orchestrator/dist/index.js"() {
21849
+ "packages/orchestrator/dist/index.js"() {
21787
21850
  "use strict";
21788
21851
  init_agent_loop();
21789
21852
  init_ralphLoop();
@@ -21807,7 +21870,7 @@ var init_dist5 = __esm({
21807
21870
  }
21808
21871
  });
21809
21872
 
21810
- // ../packages/cli/dist/tui/listen.js
21873
+ // packages/cli/dist/tui/listen.js
21811
21874
  var listen_exports = {};
21812
21875
  __export(listen_exports, {
21813
21876
  ListenEngine: () => ListenEngine,
@@ -21987,7 +22050,7 @@ function getListenEngine(config) {
21987
22050
  }
21988
22051
  var AUDIO_EXTENSIONS, VIDEO_EXTENSIONS, WhisperFallbackTranscriber, ListenEngine, _bgInstallPromise, _engine;
21989
22052
  var init_listen = __esm({
21990
- "../packages/cli/dist/tui/listen.js"() {
22053
+ "packages/cli/dist/tui/listen.js"() {
21991
22054
  "use strict";
21992
22055
  AUDIO_EXTENSIONS = /* @__PURE__ */ new Set([
21993
22056
  ".mp3",
@@ -22526,9 +22589,9 @@ transcribe-cli error: ${transcribeCliError}` : "";
22526
22589
  }
22527
22590
  });
22528
22591
 
22529
- // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/constants.js
22592
+ // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/constants.js
22530
22593
  var require_constants = __commonJS({
22531
- "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/constants.js"(exports, module) {
22594
+ "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/constants.js"(exports, module) {
22532
22595
  "use strict";
22533
22596
  var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
22534
22597
  var hasBlob = typeof Blob !== "undefined";
@@ -22549,9 +22612,9 @@ var require_constants = __commonJS({
22549
22612
  }
22550
22613
  });
22551
22614
 
22552
- // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/buffer-util.js
22615
+ // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/buffer-util.js
22553
22616
  var require_buffer_util = __commonJS({
22554
- "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/buffer-util.js"(exports, module) {
22617
+ "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/buffer-util.js"(exports, module) {
22555
22618
  "use strict";
22556
22619
  var { EMPTY_BUFFER } = require_constants();
22557
22620
  var FastBuffer = Buffer[Symbol.species];
@@ -22624,9 +22687,9 @@ var require_buffer_util = __commonJS({
22624
22687
  }
22625
22688
  });
22626
22689
 
22627
- // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/limiter.js
22690
+ // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/limiter.js
22628
22691
  var require_limiter = __commonJS({
22629
- "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/limiter.js"(exports, module) {
22692
+ "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/limiter.js"(exports, module) {
22630
22693
  "use strict";
22631
22694
  var kDone = /* @__PURE__ */ Symbol("kDone");
22632
22695
  var kRun = /* @__PURE__ */ Symbol("kRun");
@@ -22674,9 +22737,9 @@ var require_limiter = __commonJS({
22674
22737
  }
22675
22738
  });
22676
22739
 
22677
- // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js
22740
+ // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js
22678
22741
  var require_permessage_deflate = __commonJS({
22679
- "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js"(exports, module) {
22742
+ "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js"(exports, module) {
22680
22743
  "use strict";
22681
22744
  var zlib = __require("zlib");
22682
22745
  var bufferUtil = require_buffer_util();
@@ -23057,9 +23120,9 @@ var require_permessage_deflate = __commonJS({
23057
23120
  }
23058
23121
  });
23059
23122
 
23060
- // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/validation.js
23123
+ // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/validation.js
23061
23124
  var require_validation = __commonJS({
23062
- "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/validation.js"(exports, module) {
23125
+ "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/validation.js"(exports, module) {
23063
23126
  "use strict";
23064
23127
  var { isUtf8 } = __require("buffer");
23065
23128
  var { hasBlob } = require_constants();
@@ -23258,9 +23321,9 @@ var require_validation = __commonJS({
23258
23321
  }
23259
23322
  });
23260
23323
 
23261
- // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/receiver.js
23324
+ // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/receiver.js
23262
23325
  var require_receiver = __commonJS({
23263
- "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/receiver.js"(exports, module) {
23326
+ "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/receiver.js"(exports, module) {
23264
23327
  "use strict";
23265
23328
  var { Writable: Writable2 } = __require("stream");
23266
23329
  var PerMessageDeflate = require_permessage_deflate();
@@ -23850,9 +23913,9 @@ var require_receiver = __commonJS({
23850
23913
  }
23851
23914
  });
23852
23915
 
23853
- // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/sender.js
23916
+ // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/sender.js
23854
23917
  var require_sender = __commonJS({
23855
- "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/sender.js"(exports, module) {
23918
+ "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/sender.js"(exports, module) {
23856
23919
  "use strict";
23857
23920
  var { Duplex } = __require("stream");
23858
23921
  var { randomFillSync } = __require("crypto");
@@ -24338,9 +24401,9 @@ var require_sender = __commonJS({
24338
24401
  }
24339
24402
  });
24340
24403
 
24341
- // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/event-target.js
24404
+ // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/event-target.js
24342
24405
  var require_event_target = __commonJS({
24343
- "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/event-target.js"(exports, module) {
24406
+ "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/event-target.js"(exports, module) {
24344
24407
  "use strict";
24345
24408
  var { kForOnEventAttribute, kListener } = require_constants();
24346
24409
  var kCode = /* @__PURE__ */ Symbol("kCode");
@@ -24567,9 +24630,9 @@ var require_event_target = __commonJS({
24567
24630
  }
24568
24631
  });
24569
24632
 
24570
- // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/extension.js
24633
+ // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/extension.js
24571
24634
  var require_extension = __commonJS({
24572
- "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/extension.js"(exports, module) {
24635
+ "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/extension.js"(exports, module) {
24573
24636
  "use strict";
24574
24637
  var { tokenChars } = require_validation();
24575
24638
  function push(dest, name, elem) {
@@ -24720,9 +24783,9 @@ var require_extension = __commonJS({
24720
24783
  }
24721
24784
  });
24722
24785
 
24723
- // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket.js
24786
+ // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket.js
24724
24787
  var require_websocket = __commonJS({
24725
- "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket.js"(exports, module) {
24788
+ "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket.js"(exports, module) {
24726
24789
  "use strict";
24727
24790
  var EventEmitter7 = __require("events");
24728
24791
  var https = __require("https");
@@ -25606,9 +25669,9 @@ var require_websocket = __commonJS({
25606
25669
  }
25607
25670
  });
25608
25671
 
25609
- // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/stream.js
25672
+ // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/stream.js
25610
25673
  var require_stream = __commonJS({
25611
- "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/stream.js"(exports, module) {
25674
+ "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/stream.js"(exports, module) {
25612
25675
  "use strict";
25613
25676
  var WebSocket2 = require_websocket();
25614
25677
  var { Duplex } = __require("stream");
@@ -25704,9 +25767,9 @@ var require_stream = __commonJS({
25704
25767
  }
25705
25768
  });
25706
25769
 
25707
- // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/subprotocol.js
25770
+ // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/subprotocol.js
25708
25771
  var require_subprotocol = __commonJS({
25709
- "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/subprotocol.js"(exports, module) {
25772
+ "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/subprotocol.js"(exports, module) {
25710
25773
  "use strict";
25711
25774
  var { tokenChars } = require_validation();
25712
25775
  function parse(header) {
@@ -25749,9 +25812,9 @@ var require_subprotocol = __commonJS({
25749
25812
  }
25750
25813
  });
25751
25814
 
25752
- // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket-server.js
25815
+ // node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket-server.js
25753
25816
  var require_websocket_server = __commonJS({
25754
- "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket-server.js"(exports, module) {
25817
+ "node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket-server.js"(exports, module) {
25755
25818
  "use strict";
25756
25819
  var EventEmitter7 = __require("events");
25757
25820
  var http = __require("http");
@@ -26142,10 +26205,10 @@ var require_websocket_server = __commonJS({
26142
26205
  }
26143
26206
  });
26144
26207
 
26145
- // ../node_modules/.pnpm/ws@8.19.0/node_modules/ws/wrapper.mjs
26208
+ // node_modules/.pnpm/ws@8.19.0/node_modules/ws/wrapper.mjs
26146
26209
  var import_stream, import_receiver, import_sender, import_websocket, import_websocket_server;
26147
26210
  var init_wrapper = __esm({
26148
- "../node_modules/.pnpm/ws@8.19.0/node_modules/ws/wrapper.mjs"() {
26211
+ "node_modules/.pnpm/ws@8.19.0/node_modules/ws/wrapper.mjs"() {
26149
26212
  import_stream = __toESM(require_stream(), 1);
26150
26213
  import_receiver = __toESM(require_receiver(), 1);
26151
26214
  import_sender = __toESM(require_sender(), 1);
@@ -26154,7 +26217,7 @@ var init_wrapper = __esm({
26154
26217
  }
26155
26218
  });
26156
26219
 
26157
- // ../packages/cli/dist/tui/render.js
26220
+ // packages/cli/dist/tui/render.js
26158
26221
  function ansi2(code, text) {
26159
26222
  return isTTY2 ? `\x1B[${code}m${text}\x1B[0m` : text;
26160
26223
  }
@@ -26835,7 +26898,7 @@ function formatDuration2(ms) {
26835
26898
  }
26836
26899
  var isTTY2, c2, pastel, _emojisEnabled, _colorsEnabled, MD, TOOL_ICONS, TOOL_LABELS, TOOL_COLORS, _contentWriteHook, HINTS, TOOL_NAMES, COMMAND_NAMES;
26837
26900
  var init_render = __esm({
26838
- "../packages/cli/dist/tui/render.js"() {
26901
+ "packages/cli/dist/tui/render.js"() {
26839
26902
  "use strict";
26840
26903
  isTTY2 = process.stdout.isTTY ?? false;
26841
26904
  c2 = {
@@ -27060,7 +27123,7 @@ var init_render = __esm({
27060
27123
  }
27061
27124
  });
27062
27125
 
27063
- // ../packages/cli/dist/tui/voice-session.js
27126
+ // packages/cli/dist/tui/voice-session.js
27064
27127
  import { createServer } from "node:http";
27065
27128
  import { spawn as spawn15, execSync as execSync24 } from "node:child_process";
27066
27129
  import { EventEmitter as EventEmitter2 } from "node:events";
@@ -27441,7 +27504,7 @@ function renderVoiceSessionTranscript(speaker, text) {
27441
27504
  }
27442
27505
  var VoiceSession;
27443
27506
  var init_voice_session = __esm({
27444
- "../packages/cli/dist/tui/voice-session.js"() {
27507
+ "packages/cli/dist/tui/voice-session.js"() {
27445
27508
  "use strict";
27446
27509
  init_wrapper();
27447
27510
  init_render();
@@ -27788,7 +27851,7 @@ var init_voice_session = __esm({
27788
27851
  }
27789
27852
  });
27790
27853
 
27791
- // ../packages/cli/dist/tui/expose.js
27854
+ // packages/cli/dist/tui/expose.js
27792
27855
  import { createServer as createServer2, request as httpRequest } from "node:http";
27793
27856
  import { spawn as spawn16, exec } from "node:child_process";
27794
27857
  import { EventEmitter as EventEmitter3 } from "node:events";
@@ -27961,7 +28024,7 @@ function removeP2PExposeState(stateDir) {
27961
28024
  }
27962
28025
  var HOP_BY_HOP_HEADERS, CF_HEADERS_PREFIX, INTERNAL_CAPABILITIES, DEFAULT_TARGETS, STATE_FILE_NAME, ExposeGateway, P2P_STATE_FILE_NAME, ExposeP2PGateway;
27963
28026
  var init_expose = __esm({
27964
- "../packages/cli/dist/tui/expose.js"() {
28027
+ "packages/cli/dist/tui/expose.js"() {
27965
28028
  "use strict";
27966
28029
  init_render();
27967
28030
  HOP_BY_HOP_HEADERS = /* @__PURE__ */ new Set([
@@ -29108,25 +29171,25 @@ ${this.formatConnectionInfo()}`);
29108
29171
  }
29109
29172
  });
29110
29173
 
29111
- // ../packages/cli/dist/tui/p2p/types.js
29174
+ // packages/cli/dist/tui/p2p/types.js
29112
29175
  function trustLevel(tier) {
29113
29176
  return TRUST_ORDER.indexOf(tier);
29114
29177
  }
29115
29178
  var TRUST_ORDER;
29116
29179
  var init_types = __esm({
29117
- "../packages/cli/dist/tui/p2p/types.js"() {
29180
+ "packages/cli/dist/tui/p2p/types.js"() {
29118
29181
  "use strict";
29119
29182
  TRUST_ORDER = ["public", "verified", "tee", "local"];
29120
29183
  }
29121
29184
  });
29122
29185
 
29123
- // ../packages/cli/dist/tui/p2p/secret-vault.js
29186
+ // packages/cli/dist/tui/p2p/secret-vault.js
29124
29187
  import { createCipheriv as createCipheriv2, createDecipheriv as createDecipheriv2, randomBytes as randomBytes8, scryptSync as scryptSync2, createHash as createHash2 } from "node:crypto";
29125
29188
  import { readFileSync as readFileSync20, writeFileSync as writeFileSync10, existsSync as existsSync28, mkdirSync as mkdirSync10 } from "node:fs";
29126
29189
  import { join as join36, dirname as dirname14 } from "node:path";
29127
29190
  var PLACEHOLDER_PREFIX, PLACEHOLDER_SUFFIX, CIPHER_ALGO, SALT_LEN, IV_LEN, KEY_LEN, SecretVault;
29128
29191
  var init_secret_vault = __esm({
29129
- "../packages/cli/dist/tui/p2p/secret-vault.js"() {
29192
+ "packages/cli/dist/tui/p2p/secret-vault.js"() {
29130
29193
  "use strict";
29131
29194
  init_types();
29132
29195
  PLACEHOLDER_PREFIX = "{{OA_VAR_";
@@ -29384,13 +29447,13 @@ var init_secret_vault = __esm({
29384
29447
  }
29385
29448
  });
29386
29449
 
29387
- // ../packages/cli/dist/tui/p2p/peer-mesh.js
29450
+ // packages/cli/dist/tui/p2p/peer-mesh.js
29388
29451
  import { EventEmitter as EventEmitter4 } from "node:events";
29389
29452
  import { createServer as createServer3 } from "node:http";
29390
29453
  import { randomBytes as randomBytes9, createHash as createHash3, generateKeyPairSync } from "node:crypto";
29391
29454
  var PING_INTERVAL_MS, PEER_TIMEOUT_MS, GOSSIP_INTERVAL_MS, MAX_PEERS, PeerMesh;
29392
29455
  var init_peer_mesh = __esm({
29393
- "../packages/cli/dist/tui/p2p/peer-mesh.js"() {
29456
+ "packages/cli/dist/tui/p2p/peer-mesh.js"() {
29394
29457
  "use strict";
29395
29458
  init_wrapper();
29396
29459
  PING_INTERVAL_MS = 3e4;
@@ -29849,11 +29912,11 @@ var init_peer_mesh = __esm({
29849
29912
  }
29850
29913
  });
29851
29914
 
29852
- // ../packages/cli/dist/tui/p2p/inference-router.js
29915
+ // packages/cli/dist/tui/p2p/inference-router.js
29853
29916
  import { EventEmitter as EventEmitter5 } from "node:events";
29854
29917
  var TRUST_WEIGHTS, InferenceRouter;
29855
29918
  var init_inference_router = __esm({
29856
- "../packages/cli/dist/tui/p2p/inference-router.js"() {
29919
+ "packages/cli/dist/tui/p2p/inference-router.js"() {
29857
29920
  "use strict";
29858
29921
  init_types();
29859
29922
  TRUST_WEIGHTS = {
@@ -30047,9 +30110,9 @@ var init_inference_router = __esm({
30047
30110
  }
30048
30111
  });
30049
30112
 
30050
- // ../packages/cli/dist/tui/p2p/index.js
30113
+ // packages/cli/dist/tui/p2p/index.js
30051
30114
  var init_p2p = __esm({
30052
- "../packages/cli/dist/tui/p2p/index.js"() {
30115
+ "packages/cli/dist/tui/p2p/index.js"() {
30053
30116
  "use strict";
30054
30117
  init_secret_vault();
30055
30118
  init_peer_mesh();
@@ -30058,7 +30121,7 @@ var init_p2p = __esm({
30058
30121
  }
30059
30122
  });
30060
30123
 
30061
- // ../packages/cli/dist/tui/call-agent.js
30124
+ // packages/cli/dist/tui/call-agent.js
30062
30125
  import { EventEmitter as EventEmitter6 } from "node:events";
30063
30126
  import crypto2 from "node:crypto";
30064
30127
  function adaptTool(tool) {
@@ -30082,7 +30145,7 @@ function generateSessionKey() {
30082
30145
  }
30083
30146
  var ActivityFeed, _globalFeed, CallSubAgent;
30084
30147
  var init_call_agent = __esm({
30085
- "../packages/cli/dist/tui/call-agent.js"() {
30148
+ "packages/cli/dist/tui/call-agent.js"() {
30086
30149
  "use strict";
30087
30150
  init_dist5();
30088
30151
  init_dist2();
@@ -30340,7 +30403,7 @@ ${activitySummary}
30340
30403
  }
30341
30404
  });
30342
30405
 
30343
- // ../packages/cli/dist/tui/model-picker.js
30406
+ // packages/cli/dist/tui/model-picker.js
30344
30407
  async function fetchOllamaModels(baseUrl) {
30345
30408
  const url = `${normalizeBaseUrl(baseUrl)}/api/tags`;
30346
30409
  const resp = await fetch(url, {
@@ -30742,27 +30805,27 @@ function formatRelativeTime(iso) {
30742
30805
  return `${months}mo ago`;
30743
30806
  }
30744
30807
  var init_model_picker = __esm({
30745
- "../packages/cli/dist/tui/model-picker.js"() {
30808
+ "packages/cli/dist/tui/model-picker.js"() {
30746
30809
  "use strict";
30747
30810
  init_dist();
30748
30811
  }
30749
30812
  });
30750
30813
 
30751
- // ../packages/prompts/dist/loader.js
30814
+ // packages/prompts/dist/loader.js
30752
30815
  var init_loader = __esm({
30753
- "../packages/prompts/dist/loader.js"() {
30816
+ "packages/prompts/dist/loader.js"() {
30754
30817
  "use strict";
30755
30818
  }
30756
30819
  });
30757
30820
 
30758
- // ../packages/prompts/dist/render.js
30821
+ // packages/prompts/dist/render.js
30759
30822
  var init_render2 = __esm({
30760
- "../packages/prompts/dist/render.js"() {
30823
+ "packages/prompts/dist/render.js"() {
30761
30824
  "use strict";
30762
30825
  }
30763
30826
  });
30764
30827
 
30765
- // ../packages/prompts/dist/promptLoader.js
30828
+ // packages/prompts/dist/promptLoader.js
30766
30829
  import { readFileSync as readFileSync21, existsSync as existsSync29 } from "node:fs";
30767
30830
  import { join as join37, dirname as dirname15 } from "node:path";
30768
30831
  import { fileURLToPath as fileURLToPath9 } from "node:url";
@@ -30782,7 +30845,7 @@ function loadPrompt2(promptPath, vars) {
30782
30845
  }
30783
30846
  var __filename2, __dirname5, devPath, publishedPath, PROMPTS_DIR2, cache2;
30784
30847
  var init_promptLoader2 = __esm({
30785
- "../packages/prompts/dist/promptLoader.js"() {
30848
+ "packages/prompts/dist/promptLoader.js"() {
30786
30849
  "use strict";
30787
30850
  __filename2 = fileURLToPath9(import.meta.url);
30788
30851
  __dirname5 = dirname15(__filename2);
@@ -30793,7 +30856,7 @@ var init_promptLoader2 = __esm({
30793
30856
  }
30794
30857
  });
30795
30858
 
30796
- // ../packages/prompts/dist/task-templates.js
30859
+ // packages/prompts/dist/task-templates.js
30797
30860
  function getTaskTemplate(type) {
30798
30861
  return TEMPLATES[type];
30799
30862
  }
@@ -30809,7 +30872,7 @@ ${template.outputGuidance}`;
30809
30872
  }
30810
30873
  var TEMPLATES;
30811
30874
  var init_task_templates = __esm({
30812
- "../packages/prompts/dist/task-templates.js"() {
30875
+ "packages/prompts/dist/task-templates.js"() {
30813
30876
  "use strict";
30814
30877
  init_promptLoader2();
30815
30878
  TEMPLATES = {
@@ -30898,12 +30961,12 @@ var init_task_templates = __esm({
30898
30961
  }
30899
30962
  });
30900
30963
 
30901
- // ../packages/prompts/dist/index.js
30964
+ // packages/prompts/dist/index.js
30902
30965
  import { join as join38, dirname as dirname16 } from "node:path";
30903
30966
  import { fileURLToPath as fileURLToPath10 } from "node:url";
30904
30967
  var _dir, _packageRoot;
30905
30968
  var init_dist6 = __esm({
30906
- "../packages/prompts/dist/index.js"() {
30969
+ "packages/prompts/dist/index.js"() {
30907
30970
  "use strict";
30908
30971
  init_loader();
30909
30972
  init_render2();
@@ -30914,7 +30977,7 @@ var init_dist6 = __esm({
30914
30977
  }
30915
30978
  });
30916
30979
 
30917
- // ../packages/cli/dist/tui/oa-directory.js
30980
+ // packages/cli/dist/tui/oa-directory.js
30918
30981
  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";
30919
30982
  import { join as join39, relative as relative2, basename as basename9, extname as extname8 } from "node:path";
30920
30983
  import { homedir as homedir9 } from "node:os";
@@ -31376,7 +31439,7 @@ function deleteUsageRecord(kind, value, repoRoot) {
31376
31439
  }
31377
31440
  var OA_DIR, SUBDIRS, CONTEXT_FILES, PENDING_TASK_FILE, CONTEXT_SAVE_FILE, MAX_CONTEXT_ENTRIES, SKIP_DIRS, USAGE_HISTORY_FILE, MAX_HISTORY_RECORDS;
31378
31441
  var init_oa_directory = __esm({
31379
- "../packages/cli/dist/tui/oa-directory.js"() {
31442
+ "packages/cli/dist/tui/oa-directory.js"() {
31380
31443
  "use strict";
31381
31444
  OA_DIR = ".oa";
31382
31445
  SUBDIRS = ["memory", "index", "context", "history", "notes", "embedded", "provenance", "tools", "dreams"];
@@ -31417,7 +31480,7 @@ var init_oa_directory = __esm({
31417
31480
  }
31418
31481
  });
31419
31482
 
31420
- // ../packages/cli/dist/tui/setup.js
31483
+ // packages/cli/dist/tui/setup.js
31421
31484
  import * as readline from "node:readline";
31422
31485
  import { execSync as execSync25, spawn as spawn17, exec as exec2 } from "node:child_process";
31423
31486
  import { promisify as promisify5 } from "node:util";
@@ -32946,7 +33009,7 @@ async function ensureExpandedContext(modelName, backendUrl) {
32946
33009
  }
32947
33010
  var execAsync, QWEN_VARIANTS, TOOL_CALLING_MODELS, _cloudflaredInstallPromise;
32948
33011
  var init_setup = __esm({
32949
- "../packages/cli/dist/tui/setup.js"() {
33012
+ "packages/cli/dist/tui/setup.js"() {
32950
33013
  "use strict";
32951
33014
  init_model_picker();
32952
33015
  init_render();
@@ -32981,7 +33044,7 @@ var init_setup = __esm({
32981
33044
  }
32982
33045
  });
32983
33046
 
32984
- // ../packages/cli/dist/tui/tui-select.js
33047
+ // packages/cli/dist/tui/tui-select.js
32985
33048
  function ansi3(code, text) {
32986
33049
  return isTTY3 ? `\x1B[${code}m${text}\x1B[0m` : text;
32987
33050
  }
@@ -33350,7 +33413,7 @@ function tuiSelect(opts) {
33350
33413
  }
33351
33414
  var isTTY3, selectColors;
33352
33415
  var init_tui_select = __esm({
33353
- "../packages/cli/dist/tui/tui-select.js"() {
33416
+ "packages/cli/dist/tui/tui-select.js"() {
33354
33417
  "use strict";
33355
33418
  isTTY3 = process.stdout.isTTY ?? false;
33356
33419
  selectColors = {
@@ -33367,7 +33430,7 @@ var init_tui_select = __esm({
33367
33430
  }
33368
33431
  });
33369
33432
 
33370
- // ../packages/cli/dist/tui/commands.js
33433
+ // packages/cli/dist/tui/commands.js
33371
33434
  async function handleSlashCommand(input, ctx) {
33372
33435
  const trimmed = input.trim();
33373
33436
  if (!trimmed.startsWith("/"))
@@ -35768,7 +35831,7 @@ async function showExposeDashboard(gateway, rl) {
35768
35831
  }
35769
35832
  var DASH_INTERNAL;
35770
35833
  var init_commands = __esm({
35771
- "../packages/cli/dist/tui/commands.js"() {
35834
+ "packages/cli/dist/tui/commands.js"() {
35772
35835
  "use strict";
35773
35836
  init_model_picker();
35774
35837
  init_render();
@@ -35786,7 +35849,7 @@ var init_commands = __esm({
35786
35849
  }
35787
35850
  });
35788
35851
 
35789
- // ../packages/cli/dist/tui/project-context.js
35852
+ // packages/cli/dist/tui/project-context.js
35790
35853
  import { existsSync as existsSync32, readFileSync as readFileSync23, readdirSync as readdirSync9 } from "node:fs";
35791
35854
  import { join as join41, basename as basename10 } from "node:path";
35792
35855
  import { execSync as execSync26 } from "node:child_process";
@@ -36091,14 +36154,14 @@ These patterns have been repeated 3+ times. Consider using create_tool to automa
36091
36154
  return sections.join("\n\n");
36092
36155
  }
36093
36156
  var init_project_context = __esm({
36094
- "../packages/cli/dist/tui/project-context.js"() {
36157
+ "packages/cli/dist/tui/project-context.js"() {
36095
36158
  "use strict";
36096
36159
  init_oa_directory();
36097
36160
  init_dist2();
36098
36161
  }
36099
36162
  });
36100
36163
 
36101
- // ../packages/memory/dist/db.js
36164
+ // packages/memory/dist/db.js
36102
36165
  import Database from "better-sqlite3";
36103
36166
  function initDb(dbPath) {
36104
36167
  const db = new Database(dbPath);
@@ -36253,26 +36316,26 @@ function runMigrations(db) {
36253
36316
  `);
36254
36317
  }
36255
36318
  var init_db = __esm({
36256
- "../packages/memory/dist/db.js"() {
36319
+ "packages/memory/dist/db.js"() {
36257
36320
  "use strict";
36258
36321
  }
36259
36322
  });
36260
36323
 
36261
- // ../packages/memory/dist/repoProfileStore.js
36324
+ // packages/memory/dist/repoProfileStore.js
36262
36325
  var init_repoProfileStore = __esm({
36263
- "../packages/memory/dist/repoProfileStore.js"() {
36326
+ "packages/memory/dist/repoProfileStore.js"() {
36264
36327
  "use strict";
36265
36328
  }
36266
36329
  });
36267
36330
 
36268
- // ../packages/memory/dist/fileSummaryStore.js
36331
+ // packages/memory/dist/fileSummaryStore.js
36269
36332
  var init_fileSummaryStore = __esm({
36270
- "../packages/memory/dist/fileSummaryStore.js"() {
36333
+ "packages/memory/dist/fileSummaryStore.js"() {
36271
36334
  "use strict";
36272
36335
  }
36273
36336
  });
36274
36337
 
36275
- // ../packages/memory/dist/taskMemoryStore.js
36338
+ // packages/memory/dist/taskMemoryStore.js
36276
36339
  import { randomUUID } from "node:crypto";
36277
36340
  function rowToTask(row) {
36278
36341
  return {
@@ -36291,7 +36354,7 @@ function rowToTask(row) {
36291
36354
  }
36292
36355
  var TaskMemoryStore;
36293
36356
  var init_taskMemoryStore = __esm({
36294
- "../packages/memory/dist/taskMemoryStore.js"() {
36357
+ "packages/memory/dist/taskMemoryStore.js"() {
36295
36358
  "use strict";
36296
36359
  TaskMemoryStore = class {
36297
36360
  db;
@@ -36342,14 +36405,14 @@ var init_taskMemoryStore = __esm({
36342
36405
  }
36343
36406
  });
36344
36407
 
36345
- // ../packages/memory/dist/patchHistoryStore.js
36408
+ // packages/memory/dist/patchHistoryStore.js
36346
36409
  var init_patchHistoryStore = __esm({
36347
- "../packages/memory/dist/patchHistoryStore.js"() {
36410
+ "packages/memory/dist/patchHistoryStore.js"() {
36348
36411
  "use strict";
36349
36412
  }
36350
36413
  });
36351
36414
 
36352
- // ../packages/memory/dist/failureStore.js
36415
+ // packages/memory/dist/failureStore.js
36353
36416
  import { randomUUID as randomUUID2 } from "node:crypto";
36354
36417
  function rowToFailure(row) {
36355
36418
  return {
@@ -36370,7 +36433,7 @@ function rowToFailure(row) {
36370
36433
  }
36371
36434
  var FailureStore;
36372
36435
  var init_failureStore = __esm({
36373
- "../packages/memory/dist/failureStore.js"() {
36436
+ "packages/memory/dist/failureStore.js"() {
36374
36437
  "use strict";
36375
36438
  FailureStore = class {
36376
36439
  db;
@@ -36425,18 +36488,18 @@ var init_failureStore = __esm({
36425
36488
  }
36426
36489
  });
36427
36490
 
36428
- // ../packages/memory/dist/validationStore.js
36491
+ // packages/memory/dist/validationStore.js
36429
36492
  var init_validationStore = __esm({
36430
- "../packages/memory/dist/validationStore.js"() {
36493
+ "packages/memory/dist/validationStore.js"() {
36431
36494
  "use strict";
36432
36495
  }
36433
36496
  });
36434
36497
 
36435
- // ../packages/memory/dist/toolPatternStore.js
36498
+ // packages/memory/dist/toolPatternStore.js
36436
36499
  import { randomUUID as randomUUID3 } from "node:crypto";
36437
36500
  var ToolPatternStore;
36438
36501
  var init_toolPatternStore = __esm({
36439
- "../packages/memory/dist/toolPatternStore.js"() {
36502
+ "packages/memory/dist/toolPatternStore.js"() {
36440
36503
  "use strict";
36441
36504
  ToolPatternStore = class {
36442
36505
  db;
@@ -36615,9 +36678,9 @@ var init_toolPatternStore = __esm({
36615
36678
  }
36616
36679
  });
36617
36680
 
36618
- // ../packages/memory/dist/index.js
36681
+ // packages/memory/dist/index.js
36619
36682
  var init_dist7 = __esm({
36620
- "../packages/memory/dist/index.js"() {
36683
+ "packages/memory/dist/index.js"() {
36621
36684
  "use strict";
36622
36685
  init_db();
36623
36686
  init_repoProfileStore();
@@ -36630,7 +36693,7 @@ var init_dist7 = __esm({
36630
36693
  }
36631
36694
  });
36632
36695
 
36633
- // ../packages/cli/dist/tui/carousel.js
36696
+ // packages/cli/dist/tui/carousel.js
36634
36697
  function fg(code, text) {
36635
36698
  return isTTY4 ? `\x1B[38;5;${code}m${text}\x1B[0m` : text;
36636
36699
  }
@@ -36672,7 +36735,7 @@ function createRow(phraseIndices, speed, direction, bank) {
36672
36735
  }
36673
36736
  var isTTY4, PHRASES, Carousel;
36674
36737
  var init_carousel = __esm({
36675
- "../packages/cli/dist/tui/carousel.js"() {
36738
+ "packages/cli/dist/tui/carousel.js"() {
36676
36739
  "use strict";
36677
36740
  isTTY4 = process.stdout.isTTY ?? false;
36678
36741
  PHRASES = [
@@ -36913,7 +36976,7 @@ var init_carousel = __esm({
36913
36976
  }
36914
36977
  });
36915
36978
 
36916
- // ../packages/cli/dist/tui/carousel-descriptors.js
36979
+ // packages/cli/dist/tui/carousel-descriptors.js
36917
36980
  import { existsSync as existsSync33, readFileSync as readFileSync24, writeFileSync as writeFileSync13, mkdirSync as mkdirSync13, readdirSync as readdirSync10 } from "node:fs";
36918
36981
  import { join as join42, basename as basename11 } from "node:path";
36919
36982
  function loadToolProfile(repoRoot) {
@@ -37160,7 +37223,7 @@ function extractFromToolProfile(profile, tags) {
37160
37223
  }
37161
37224
  var TOOL_CATEGORIES, TOOL_PROFILE_FILE, DESCRIPTOR_FILE, CATEGORY_LABELS, STOP_WORDS;
37162
37225
  var init_carousel_descriptors = __esm({
37163
- "../packages/cli/dist/tui/carousel-descriptors.js"() {
37226
+ "packages/cli/dist/tui/carousel-descriptors.js"() {
37164
37227
  "use strict";
37165
37228
  init_oa_directory();
37166
37229
  TOOL_CATEGORIES = [
@@ -37266,7 +37329,7 @@ var init_carousel_descriptors = __esm({
37266
37329
  }
37267
37330
  });
37268
37331
 
37269
- // ../packages/cli/dist/tui/voice.js
37332
+ // packages/cli/dist/tui/voice.js
37270
37333
  import { existsSync as existsSync34, mkdirSync as mkdirSync14, writeFileSync as writeFileSync14, readFileSync as readFileSync25, unlinkSync as unlinkSync5 } from "node:fs";
37271
37334
  import { join as join43 } from "node:path";
37272
37335
  import { homedir as homedir12, tmpdir as tmpdir6, platform as platform3 } from "node:os";
@@ -37924,7 +37987,7 @@ function formatBytes2(bytes) {
37924
37987
  }
37925
37988
  var VOICE_MODELS, VoiceEngine, RING_BUFFER_SIZE, narration;
37926
37989
  var init_voice = __esm({
37927
- "../packages/cli/dist/tui/voice.js"() {
37990
+ "packages/cli/dist/tui/voice.js"() {
37928
37991
  "use strict";
37929
37992
  init_render();
37930
37993
  VOICE_MODELS = {
@@ -39321,7 +39384,7 @@ Error: ${err instanceof Error ? err.message : String(err)}`);
39321
39384
  }
39322
39385
  });
39323
39386
 
39324
- // ../packages/cli/dist/tui/stream-renderer.js
39387
+ // packages/cli/dist/tui/stream-renderer.js
39325
39388
  function fg2563(code, text) {
39326
39389
  return isTTY5 ? `\x1B[38;5;${code}m${text}\x1B[0m` : text;
39327
39390
  }
@@ -39339,7 +39402,7 @@ function boldText(text) {
39339
39402
  }
39340
39403
  var isTTY5, PASTEL, StreamRenderer;
39341
39404
  var init_stream_renderer = __esm({
39342
- "../packages/cli/dist/tui/stream-renderer.js"() {
39405
+ "packages/cli/dist/tui/stream-renderer.js"() {
39343
39406
  "use strict";
39344
39407
  isTTY5 = process.stdout.isTTY ?? false;
39345
39408
  PASTEL = {
@@ -39808,7 +39871,7 @@ var init_stream_renderer = __esm({
39808
39871
  }
39809
39872
  });
39810
39873
 
39811
- // ../packages/cli/dist/tui/edit-history.js
39874
+ // packages/cli/dist/tui/edit-history.js
39812
39875
  import { appendFileSync as appendFileSync2, mkdirSync as mkdirSync15 } from "node:fs";
39813
39876
  import { join as join44 } from "node:path";
39814
39877
  function createEditHistoryLogger(repoRoot, sessionId) {
@@ -39912,7 +39975,7 @@ function sanitizeArgs(tool, args) {
39912
39975
  }
39913
39976
  var EDIT_TOOLS;
39914
39977
  var init_edit_history = __esm({
39915
- "../packages/cli/dist/tui/edit-history.js"() {
39978
+ "packages/cli/dist/tui/edit-history.js"() {
39916
39979
  "use strict";
39917
39980
  EDIT_TOOLS = /* @__PURE__ */ new Set([
39918
39981
  "file_edit",
@@ -39923,7 +39986,7 @@ var init_edit_history = __esm({
39923
39986
  }
39924
39987
  });
39925
39988
 
39926
- // ../packages/cli/dist/tui/promptLoader.js
39989
+ // packages/cli/dist/tui/promptLoader.js
39927
39990
  import { readFileSync as readFileSync26, existsSync as existsSync35 } from "node:fs";
39928
39991
  import { join as join45, dirname as dirname17 } from "node:path";
39929
39992
  import { fileURLToPath as fileURLToPath11 } from "node:url";
@@ -39943,7 +40006,7 @@ function loadPrompt3(promptPath, vars) {
39943
40006
  }
39944
40007
  var __filename3, __dirname6, devPath2, publishedPath2, PROMPTS_DIR3, cache3;
39945
40008
  var init_promptLoader3 = __esm({
39946
- "../packages/cli/dist/tui/promptLoader.js"() {
40009
+ "packages/cli/dist/tui/promptLoader.js"() {
39947
40010
  "use strict";
39948
40011
  __filename3 = fileURLToPath11(import.meta.url);
39949
40012
  __dirname6 = dirname17(__filename3);
@@ -39954,7 +40017,7 @@ var init_promptLoader3 = __esm({
39954
40017
  }
39955
40018
  });
39956
40019
 
39957
- // ../packages/cli/dist/tui/dream-engine.js
40020
+ // packages/cli/dist/tui/dream-engine.js
39958
40021
  import { mkdirSync as mkdirSync16, writeFileSync as writeFileSync15, readFileSync as readFileSync27, existsSync as existsSync36, cpSync, rmSync, readdirSync as readdirSync11 } from "node:fs";
39959
40022
  import { join as join46, basename as basename12 } from "node:path";
39960
40023
  import { execSync as execSync28 } from "node:child_process";
@@ -40117,7 +40180,7 @@ function renderSwarmComplete(workspace) {
40117
40180
  }
40118
40181
  var SWARM_ROLE_CONFIG, AutoresearchFileWriteTool, AutoresearchFileEditTool, AUTORESEARCH_MEMORY_KEYS, SLEEP_STAGES, DreamFileWriteTool, DreamFileEditTool, DreamShellTool, DreamEngine;
40119
40182
  var init_dream_engine = __esm({
40120
- "../packages/cli/dist/tui/dream-engine.js"() {
40183
+ "packages/cli/dist/tui/dream-engine.js"() {
40121
40184
  "use strict";
40122
40185
  init_dist5();
40123
40186
  init_dist2();
@@ -41197,7 +41260,7 @@ ${files.map((f) => `- [\`${f}\`](./${f})`).join("\n")}
41197
41260
  }
41198
41261
  });
41199
41262
 
41200
- // ../packages/cli/dist/tui/priority-ingress.js
41263
+ // packages/cli/dist/tui/priority-ingress.js
41201
41264
  function classifyPriority(prompt, source, origin) {
41202
41265
  for (const rule of CLASSIFICATION_RULES) {
41203
41266
  if (rule.sourceType !== "any" && rule.sourceType !== source)
@@ -41222,7 +41285,7 @@ function classifyPriority(prompt, source, origin) {
41222
41285
  }
41223
41286
  var PRIORITY_WEIGHT, PRIORITY_POLICIES, CLASSIFICATION_RULES, PriorityIngressEngine;
41224
41287
  var init_priority_ingress = __esm({
41225
- "../packages/cli/dist/tui/priority-ingress.js"() {
41288
+ "packages/cli/dist/tui/priority-ingress.js"() {
41226
41289
  "use strict";
41227
41290
  PRIORITY_WEIGHT = {
41228
41291
  critical: 100,
@@ -41407,7 +41470,7 @@ var init_priority_ingress = __esm({
41407
41470
  }
41408
41471
  });
41409
41472
 
41410
- // ../packages/cli/dist/tui/bless-engine.js
41473
+ // packages/cli/dist/tui/bless-engine.js
41411
41474
  function renderBlessStart() {
41412
41475
  process.stdout.write(`
41413
41476
  ${c2.green("\u26A1")} ${c2.bold("BLESSED")} \u2014 Infinite warm loop activated
@@ -41431,7 +41494,7 @@ function renderBlessStop(state) {
41431
41494
  }
41432
41495
  var BlessEngine;
41433
41496
  var init_bless_engine = __esm({
41434
- "../packages/cli/dist/tui/bless-engine.js"() {
41497
+ "packages/cli/dist/tui/bless-engine.js"() {
41435
41498
  "use strict";
41436
41499
  init_render();
41437
41500
  init_dist2();
@@ -41562,7 +41625,7 @@ var init_bless_engine = __esm({
41562
41625
  }
41563
41626
  });
41564
41627
 
41565
- // ../packages/cli/dist/tui/dmn-engine.js
41628
+ // packages/cli/dist/tui/dmn-engine.js
41566
41629
  import { existsSync as existsSync37, readFileSync as readFileSync28, writeFileSync as writeFileSync16, mkdirSync as mkdirSync17, readdirSync as readdirSync12, unlinkSync as unlinkSync6 } from "node:fs";
41567
41630
  import { join as join47, basename as basename13 } from "node:path";
41568
41631
  function buildDMNGatherPrompt(recentTaskSummaries, dueReminders, attentionItems, memoryTopics, capabilities, competence, reflectionBuffer) {
@@ -41650,7 +41713,7 @@ function renderDMNResting(consecutiveNulls) {
41650
41713
  }
41651
41714
  var DMNEngine;
41652
41715
  var init_dmn_engine = __esm({
41653
- "../packages/cli/dist/tui/dmn-engine.js"() {
41716
+ "packages/cli/dist/tui/dmn-engine.js"() {
41654
41717
  "use strict";
41655
41718
  init_dist5();
41656
41719
  init_dist2();
@@ -42322,7 +42385,7 @@ OUTPUT: Call task_complete with JSON:
42322
42385
  }
42323
42386
  });
42324
42387
 
42325
- // ../packages/cli/dist/tui/snr-engine.js
42388
+ // packages/cli/dist/tui/snr-engine.js
42326
42389
  import { existsSync as existsSync38, readdirSync as readdirSync13, readFileSync as readFileSync29 } from "node:fs";
42327
42390
  import { join as join48, basename as basename14 } from "node:path";
42328
42391
  function computeDPrime(signalScores, noiseScores) {
@@ -42382,7 +42445,7 @@ function adaptTool4(tool) {
42382
42445
  }
42383
42446
  var SNREngine;
42384
42447
  var init_snr_engine = __esm({
42385
- "../packages/cli/dist/tui/snr-engine.js"() {
42448
+ "packages/cli/dist/tui/snr-engine.js"() {
42386
42449
  "use strict";
42387
42450
  init_dist5();
42388
42451
  init_dist2();
@@ -42657,7 +42720,7 @@ Call task_complete with the JSON array when done.`, onEvent)
42657
42720
  }
42658
42721
  });
42659
42722
 
42660
- // ../packages/cli/dist/tui/emotion-engine.js
42723
+ // packages/cli/dist/tui/emotion-engine.js
42661
42724
  function labelFromCoordinates(valence, arousal) {
42662
42725
  if (valence > 0.6 && arousal > 0.6)
42663
42726
  return { label: "exhilarated", emoji: "\u{1F929}" };
@@ -42718,7 +42781,7 @@ function clamp(value, min, max) {
42718
42781
  }
42719
42782
  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;
42720
42783
  var init_emotion_engine = __esm({
42721
- "../packages/cli/dist/tui/emotion-engine.js"() {
42784
+ "packages/cli/dist/tui/emotion-engine.js"() {
42722
42785
  "use strict";
42723
42786
  init_dist5();
42724
42787
  init_promptLoader3();
@@ -43064,7 +43127,7 @@ var init_emotion_engine = __esm({
43064
43127
  }
43065
43128
  });
43066
43129
 
43067
- // ../packages/cli/dist/tui/tool-policy.js
43130
+ // packages/cli/dist/tui/tool-policy.js
43068
43131
  function getDefaultPolicy(context) {
43069
43132
  switch (context) {
43070
43133
  case "terminal":
@@ -43114,7 +43177,7 @@ function applyToolPolicy(tools, context, userConfig) {
43114
43177
  }
43115
43178
  var SAFE_PUBLIC_TOOLS, SAFE_GROUP_ADMIN_TOOLS;
43116
43179
  var init_tool_policy = __esm({
43117
- "../packages/cli/dist/tui/tool-policy.js"() {
43180
+ "packages/cli/dist/tui/tool-policy.js"() {
43118
43181
  "use strict";
43119
43182
  SAFE_PUBLIC_TOOLS = /* @__PURE__ */ new Set([
43120
43183
  "memory_read",
@@ -43143,7 +43206,7 @@ var init_tool_policy = __esm({
43143
43206
  }
43144
43207
  });
43145
43208
 
43146
- // ../packages/cli/dist/tui/telegram-bridge.js
43209
+ // packages/cli/dist/tui/telegram-bridge.js
43147
43210
  import { mkdirSync as mkdirSync18, existsSync as existsSync39, unlinkSync as unlinkSync7, readdirSync as readdirSync14, statSync as statSync10 } from "node:fs";
43148
43211
  import { join as join49, resolve as resolve27 } from "node:path";
43149
43212
  import { writeFile as writeFileAsync } from "node:fs/promises";
@@ -43280,7 +43343,7 @@ function renderTelegramSubAgentError(username, error) {
43280
43343
  }
43281
43344
  var TELEGRAM_SAFETY_PROMPT, ADMIN_DM_PROMPT, ADMIN_GROUP_PROMPT, GROUP_REPLY_DISCRETION_PROMPT, MEDIA_CACHE_TTL_MS, TelegramBridge;
43282
43345
  var init_telegram_bridge = __esm({
43283
- "../packages/cli/dist/tui/telegram-bridge.js"() {
43346
+ "packages/cli/dist/tui/telegram-bridge.js"() {
43284
43347
  "use strict";
43285
43348
  init_dist5();
43286
43349
  init_dist2();
@@ -44319,7 +44382,7 @@ ${caption}\r
44319
44382
  }
44320
44383
  });
44321
44384
 
44322
- // ../packages/cli/dist/tui/braille-spinner.js
44385
+ // packages/cli/dist/tui/braille-spinner.js
44323
44386
  function buildColorRamp(ramp) {
44324
44387
  return [...ramp, ...ramp.slice(1, -1).reverse()];
44325
44388
  }
@@ -44361,7 +44424,7 @@ function themeForTool(toolName) {
44361
44424
  }
44362
44425
  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;
44363
44426
  var init_braille_spinner = __esm({
44364
- "../packages/cli/dist/tui/braille-spinner.js"() {
44427
+ "packages/cli/dist/tui/braille-spinner.js"() {
44365
44428
  "use strict";
44366
44429
  DENSITY = [
44367
44430
  "\u2800",
@@ -44558,10 +44621,10 @@ var init_braille_spinner = __esm({
44558
44621
  }
44559
44622
  });
44560
44623
 
44561
- // ../packages/cli/dist/tui/status-bar.js
44624
+ // packages/cli/dist/tui/status-bar.js
44562
44625
  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;
44563
44626
  var init_status_bar = __esm({
44564
- "../packages/cli/dist/tui/status-bar.js"() {
44627
+ "packages/cli/dist/tui/status-bar.js"() {
44565
44628
  "use strict";
44566
44629
  init_render();
44567
44630
  init_braille_spinner();
@@ -45864,7 +45927,7 @@ var init_status_bar = __esm({
45864
45927
  }
45865
45928
  });
45866
45929
 
45867
- // ../packages/cli/dist/tui/interactive.js
45930
+ // packages/cli/dist/tui/interactive.js
45868
45931
  import * as readline2 from "node:readline";
45869
45932
  import { Writable } from "node:stream";
45870
45933
  import { cwd } from "node:process";
@@ -49060,7 +49123,7 @@ async function runWithTUI(task, config, repoPath) {
49060
49123
  }
49061
49124
  var taskManager;
49062
49125
  var init_interactive = __esm({
49063
- "../packages/cli/dist/tui/interactive.js"() {
49126
+ "packages/cli/dist/tui/interactive.js"() {
49064
49127
  "use strict";
49065
49128
  init_dist5();
49066
49129
  init_dist5();
@@ -49097,7 +49160,7 @@ var init_interactive = __esm({
49097
49160
  }
49098
49161
  });
49099
49162
 
49100
- // ../packages/cli/dist/commands/run.js
49163
+ // packages/cli/dist/commands/run.js
49101
49164
  var run_exports = {};
49102
49165
  __export(run_exports, {
49103
49166
  runCommand: () => runCommand
@@ -49117,13 +49180,13 @@ async function runCommand(opts, config) {
49117
49180
  }
49118
49181
  }
49119
49182
  var init_run = __esm({
49120
- "../packages/cli/dist/commands/run.js"() {
49183
+ "packages/cli/dist/commands/run.js"() {
49121
49184
  "use strict";
49122
49185
  init_interactive();
49123
49186
  }
49124
49187
  });
49125
49188
 
49126
- // ../packages/indexer/dist/codebase-indexer.js
49189
+ // packages/indexer/dist/codebase-indexer.js
49127
49190
  import { glob } from "glob";
49128
49191
  import ignore from "ignore";
49129
49192
  import { readFile as readFile16, stat as stat4 } from "node:fs/promises";
@@ -49131,7 +49194,7 @@ import { createHash as createHash4 } from "node:crypto";
49131
49194
  import { join as join51, relative as relative3, extname as extname10, basename as basename15 } from "node:path";
49132
49195
  var DEFAULT_EXCLUDE, LANGUAGE_MAP, CodebaseIndexer;
49133
49196
  var init_codebase_indexer = __esm({
49134
- "../packages/indexer/dist/codebase-indexer.js"() {
49197
+ "packages/indexer/dist/codebase-indexer.js"() {
49135
49198
  "use strict";
49136
49199
  DEFAULT_EXCLUDE = [
49137
49200
  "node_modules",
@@ -49249,25 +49312,25 @@ var init_codebase_indexer = __esm({
49249
49312
  }
49250
49313
  });
49251
49314
 
49252
- // ../packages/indexer/dist/repoScanner.js
49315
+ // packages/indexer/dist/repoScanner.js
49253
49316
  import ignore2 from "ignore";
49254
49317
  var init_repoScanner = __esm({
49255
- "../packages/indexer/dist/repoScanner.js"() {
49318
+ "packages/indexer/dist/repoScanner.js"() {
49256
49319
  "use strict";
49257
49320
  }
49258
49321
  });
49259
49322
 
49260
- // ../packages/indexer/dist/symbolExtractor.js
49323
+ // packages/indexer/dist/symbolExtractor.js
49261
49324
  var init_symbolExtractor = __esm({
49262
- "../packages/indexer/dist/symbolExtractor.js"() {
49325
+ "packages/indexer/dist/symbolExtractor.js"() {
49263
49326
  "use strict";
49264
49327
  }
49265
49328
  });
49266
49329
 
49267
- // ../packages/indexer/dist/graphBuilder.js
49330
+ // packages/indexer/dist/graphBuilder.js
49268
49331
  var TS_EXTENSIONS, JS_EXTENSIONS, ALL_EXTENSIONS;
49269
49332
  var init_graphBuilder = __esm({
49270
- "../packages/indexer/dist/graphBuilder.js"() {
49333
+ "packages/indexer/dist/graphBuilder.js"() {
49271
49334
  "use strict";
49272
49335
  TS_EXTENSIONS = [".ts", ".tsx", ".mts", ".cts"];
49273
49336
  JS_EXTENSIONS = [".js", ".jsx", ".mjs", ".cjs"];
@@ -49275,30 +49338,30 @@ var init_graphBuilder = __esm({
49275
49338
  }
49276
49339
  });
49277
49340
 
49278
- // ../packages/indexer/dist/fileSummarizer.js
49341
+ // packages/indexer/dist/fileSummarizer.js
49279
49342
  var init_fileSummarizer = __esm({
49280
- "../packages/indexer/dist/fileSummarizer.js"() {
49343
+ "packages/indexer/dist/fileSummarizer.js"() {
49281
49344
  "use strict";
49282
49345
  }
49283
49346
  });
49284
49347
 
49285
- // ../packages/indexer/dist/embeddings.js
49348
+ // packages/indexer/dist/embeddings.js
49286
49349
  var init_embeddings = __esm({
49287
- "../packages/indexer/dist/embeddings.js"() {
49350
+ "packages/indexer/dist/embeddings.js"() {
49288
49351
  "use strict";
49289
49352
  }
49290
49353
  });
49291
49354
 
49292
- // ../packages/indexer/dist/ollamaEmbeddings.js
49355
+ // packages/indexer/dist/ollamaEmbeddings.js
49293
49356
  var init_ollamaEmbeddings = __esm({
49294
- "../packages/indexer/dist/ollamaEmbeddings.js"() {
49357
+ "packages/indexer/dist/ollamaEmbeddings.js"() {
49295
49358
  "use strict";
49296
49359
  }
49297
49360
  });
49298
49361
 
49299
- // ../packages/indexer/dist/index.js
49362
+ // packages/indexer/dist/index.js
49300
49363
  var init_dist8 = __esm({
49301
- "../packages/indexer/dist/index.js"() {
49364
+ "packages/indexer/dist/index.js"() {
49302
49365
  "use strict";
49303
49366
  init_codebase_indexer();
49304
49367
  init_repoScanner();
@@ -49310,7 +49373,7 @@ var init_dist8 = __esm({
49310
49373
  }
49311
49374
  });
49312
49375
 
49313
- // ../packages/cli/dist/commands/index-repo.js
49376
+ // packages/cli/dist/commands/index-repo.js
49314
49377
  var index_repo_exports = {};
49315
49378
  __export(index_repo_exports, {
49316
49379
  indexRepoCommand: () => indexRepoCommand
@@ -49403,7 +49466,7 @@ async function indexRepoCommand(opts, _config) {
49403
49466
  printSuccess("Repository indexed successfully");
49404
49467
  }
49405
49468
  var init_index_repo = __esm({
49406
- "../packages/cli/dist/commands/index-repo.js"() {
49469
+ "packages/cli/dist/commands/index-repo.js"() {
49407
49470
  "use strict";
49408
49471
  init_dist8();
49409
49472
  init_spinner();
@@ -49411,7 +49474,7 @@ var init_index_repo = __esm({
49411
49474
  }
49412
49475
  });
49413
49476
 
49414
- // ../packages/cli/dist/commands/status.js
49477
+ // packages/cli/dist/commands/status.js
49415
49478
  var status_exports = {};
49416
49479
  __export(status_exports, {
49417
49480
  statusCommand: () => statusCommand
@@ -49561,7 +49624,7 @@ async function statusVllm(opts, config) {
49561
49624
  printSuccess("vLLM backend is operational");
49562
49625
  }
49563
49626
  var init_status = __esm({
49564
- "../packages/cli/dist/commands/status.js"() {
49627
+ "packages/cli/dist/commands/status.js"() {
49565
49628
  "use strict";
49566
49629
  init_dist();
49567
49630
  init_spinner();
@@ -49569,7 +49632,7 @@ var init_status = __esm({
49569
49632
  }
49570
49633
  });
49571
49634
 
49572
- // ../packages/cli/dist/commands/config.js
49635
+ // packages/cli/dist/commands/config.js
49573
49636
  var config_exports = {};
49574
49637
  __export(config_exports, {
49575
49638
  configCommand: () => configCommand
@@ -49744,7 +49807,7 @@ function handleKeys() {
49744
49807
  }
49745
49808
  var CONFIG_KEYS, SENSITIVE_KEYS, INT_KEYS, BOOL_KEYS, ENUM_KEYS;
49746
49809
  var init_config3 = __esm({
49747
- "../packages/cli/dist/commands/config.js"() {
49810
+ "packages/cli/dist/commands/config.js"() {
49748
49811
  "use strict";
49749
49812
  init_config();
49750
49813
  init_oa_directory();
@@ -49791,7 +49854,7 @@ var init_config3 = __esm({
49791
49854
  }
49792
49855
  });
49793
49856
 
49794
- // ../packages/cli/dist/commands/serve.js
49857
+ // packages/cli/dist/commands/serve.js
49795
49858
  var serve_exports = {};
49796
49859
  __export(serve_exports, {
49797
49860
  serveCommand: () => serveCommand
@@ -49941,14 +50004,14 @@ async function runVllmServer(args, verbose) {
49941
50004
  });
49942
50005
  }
49943
50006
  var init_serve = __esm({
49944
- "../packages/cli/dist/commands/serve.js"() {
50007
+ "packages/cli/dist/commands/serve.js"() {
49945
50008
  "use strict";
49946
50009
  init_dist();
49947
50010
  init_output();
49948
50011
  }
49949
50012
  });
49950
50013
 
49951
- // ../packages/cli/dist/commands/eval.js
50014
+ // packages/cli/dist/commands/eval.js
49952
50015
  var eval_exports = {};
49953
50016
  __export(eval_exports, {
49954
50017
  evalCommand: () => evalCommand
@@ -50087,7 +50150,7 @@ function createTempEvalRepo() {
50087
50150
  }
50088
50151
  var BASIC_SUITE, FULL_SUITE, SUITES;
50089
50152
  var init_eval = __esm({
50090
- "../packages/cli/dist/commands/eval.js"() {
50153
+ "packages/cli/dist/commands/eval.js"() {
50091
50154
  "use strict";
50092
50155
  init_dist5();
50093
50156
  init_dist();
@@ -50135,7 +50198,7 @@ var init_eval = __esm({
50135
50198
  }
50136
50199
  });
50137
50200
 
50138
- // ../packages/cli/dist/index.js
50201
+ // packages/cli/dist/index.js
50139
50202
  init_config();
50140
50203
  init_output();
50141
50204
  init_updater();
@@ -50144,7 +50207,7 @@ import { createRequire as createRequire3 } from "node:module";
50144
50207
  import { fileURLToPath as fileURLToPath13 } from "node:url";
50145
50208
  import { dirname as dirname19, join as join54 } from "node:path";
50146
50209
 
50147
- // ../packages/cli/dist/cli.js
50210
+ // packages/cli/dist/cli.js
50148
50211
  import { createInterface } from "node:readline";
50149
50212
  function createCli(options) {
50150
50213
  return {
@@ -50183,10 +50246,10 @@ function createCli(options) {
50183
50246
  };
50184
50247
  }
50185
50248
 
50186
- // ../packages/cli/dist/args.js
50249
+ // packages/cli/dist/args.js
50187
50250
  import { parseArgs as nodeParseArgs } from "node:util";
50188
50251
 
50189
- // ../packages/cli/dist/types.js
50252
+ // packages/cli/dist/types.js
50190
50253
  var DEFAULT_OPTIONS = {
50191
50254
  model: "qwen-2.5-coder-32b",
50192
50255
  backendUrl: "http://localhost:8000/v1",
@@ -50196,7 +50259,7 @@ var DEFAULT_OPTIONS = {
50196
50259
  verbose: false
50197
50260
  };
50198
50261
 
50199
- // ../packages/cli/dist/args.js
50262
+ // packages/cli/dist/args.js
50200
50263
  function parseArgs(argv) {
50201
50264
  const { values } = nodeParseArgs({
50202
50265
  args: argv.slice(2),
@@ -50242,7 +50305,7 @@ Options:
50242
50305
  console.log(help.trim());
50243
50306
  }
50244
50307
 
50245
- // ../packages/cli/dist/index.js
50308
+ // packages/cli/dist/index.js
50246
50309
  init_config();
50247
50310
  init_spinner();
50248
50311
  init_output();