open-agents-ai 0.104.6 → 0.104.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +495 -462
- 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
|
-
//
|
|
42
|
+
// dist/config.js
|
|
43
43
|
import { readFileSync, existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
44
44
|
import { homedir } from "node:os";
|
|
45
45
|
import { join } from "node:path";
|
|
@@ -126,7 +126,7 @@ function coerceConfigValue(key, value) {
|
|
|
126
126
|
}
|
|
127
127
|
var DEFAULT_CONFIG, VALID_BACKEND_TYPES;
|
|
128
128
|
var init_config = __esm({
|
|
129
|
-
"
|
|
129
|
+
"dist/config.js"() {
|
|
130
130
|
"use strict";
|
|
131
131
|
DEFAULT_CONFIG = Object.freeze({
|
|
132
132
|
backendUrl: "http://127.0.0.1:11434",
|
|
@@ -143,7 +143,7 @@ var init_config = __esm({
|
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
145
|
|
|
146
|
-
//
|
|
146
|
+
// dist/ui/output.js
|
|
147
147
|
function ansi(code, text, tty) {
|
|
148
148
|
return tty ? `\x1B[${code}m${text}\x1B[0m` : text;
|
|
149
149
|
}
|
|
@@ -222,7 +222,7 @@ function printReport(opts) {
|
|
|
222
222
|
}
|
|
223
223
|
var isTTY, isStderrTTY, c, STATUS_ICON, STATUS_COLOR;
|
|
224
224
|
var init_output = __esm({
|
|
225
|
-
"
|
|
225
|
+
"dist/ui/output.js"() {
|
|
226
226
|
"use strict";
|
|
227
227
|
isTTY = process.stdout.isTTY;
|
|
228
228
|
isStderrTTY = process.stderr.isTTY;
|
|
@@ -254,7 +254,7 @@ var init_output = __esm({
|
|
|
254
254
|
}
|
|
255
255
|
});
|
|
256
256
|
|
|
257
|
-
//
|
|
257
|
+
// dist/updater.js
|
|
258
258
|
import { execSync } from "node:child_process";
|
|
259
259
|
import { existsSync as existsSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
260
260
|
import { join as join2 } from "node:path";
|
|
@@ -362,7 +362,7 @@ function formatUpdateBanner(info) {
|
|
|
362
362
|
}
|
|
363
363
|
var PACKAGE_NAME, CHECK_INTERVAL_MS, CACHE_DIR, CACHE_FILE;
|
|
364
364
|
var init_updater = __esm({
|
|
365
|
-
"
|
|
365
|
+
"dist/updater.js"() {
|
|
366
366
|
"use strict";
|
|
367
367
|
PACKAGE_NAME = "open-agents-ai";
|
|
368
368
|
CHECK_INTERVAL_MS = 60 * 60 * 1e3;
|
|
@@ -371,10 +371,10 @@ var init_updater = __esm({
|
|
|
371
371
|
}
|
|
372
372
|
});
|
|
373
373
|
|
|
374
|
-
//
|
|
374
|
+
// dist/ui/spinner.js
|
|
375
375
|
var FRAMES, INTERVAL_MS, Spinner;
|
|
376
376
|
var init_spinner = __esm({
|
|
377
|
-
"
|
|
377
|
+
"dist/ui/spinner.js"() {
|
|
378
378
|
"use strict";
|
|
379
379
|
FRAMES = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
|
|
380
380
|
INTERVAL_MS = 80;
|
|
@@ -472,10 +472,10 @@ var init_spinner = __esm({
|
|
|
472
472
|
}
|
|
473
473
|
});
|
|
474
474
|
|
|
475
|
-
//
|
|
475
|
+
// ../backend-vllm/dist/sleep.js
|
|
476
476
|
var SleepManager;
|
|
477
477
|
var init_sleep = __esm({
|
|
478
|
-
"
|
|
478
|
+
"../backend-vllm/dist/sleep.js"() {
|
|
479
479
|
"use strict";
|
|
480
480
|
SleepManager = class {
|
|
481
481
|
baseUrl;
|
|
@@ -551,7 +551,7 @@ var init_sleep = __esm({
|
|
|
551
551
|
}
|
|
552
552
|
});
|
|
553
553
|
|
|
554
|
-
//
|
|
554
|
+
// ../backend-vllm/dist/normalizeUrl.js
|
|
555
555
|
function normalizeBaseUrl(url) {
|
|
556
556
|
let u = url.trim();
|
|
557
557
|
u = u.replace(/\/+$/, "");
|
|
@@ -583,7 +583,7 @@ function detectProvider(url) {
|
|
|
583
583
|
}
|
|
584
584
|
var PROVIDERS;
|
|
585
585
|
var init_normalizeUrl = __esm({
|
|
586
|
-
"
|
|
586
|
+
"../backend-vllm/dist/normalizeUrl.js"() {
|
|
587
587
|
"use strict";
|
|
588
588
|
PROVIDERS = [
|
|
589
589
|
// --- Cloud providers (specific domains) ---
|
|
@@ -652,7 +652,7 @@ var init_normalizeUrl = __esm({
|
|
|
652
652
|
}
|
|
653
653
|
});
|
|
654
654
|
|
|
655
|
-
//
|
|
655
|
+
// ../backend-vllm/dist/VllmBackend.js
|
|
656
656
|
function agentMessageToChatMessage(msg) {
|
|
657
657
|
return {
|
|
658
658
|
role: msg.role,
|
|
@@ -664,7 +664,7 @@ function buildEmptyUsage() {
|
|
|
664
664
|
}
|
|
665
665
|
var VllmBackend;
|
|
666
666
|
var init_VllmBackend = __esm({
|
|
667
|
-
"
|
|
667
|
+
"../backend-vllm/dist/VllmBackend.js"() {
|
|
668
668
|
"use strict";
|
|
669
669
|
init_sleep();
|
|
670
670
|
init_normalizeUrl();
|
|
@@ -807,7 +807,7 @@ var init_VllmBackend = __esm({
|
|
|
807
807
|
}
|
|
808
808
|
});
|
|
809
809
|
|
|
810
|
-
//
|
|
810
|
+
// ../backend-vllm/dist/OllamaBackend.js
|
|
811
811
|
function agentMessageToChatMessage2(msg) {
|
|
812
812
|
return {
|
|
813
813
|
role: msg.role,
|
|
@@ -819,7 +819,7 @@ function buildEmptyUsage2() {
|
|
|
819
819
|
}
|
|
820
820
|
var OllamaBackend;
|
|
821
821
|
var init_OllamaBackend = __esm({
|
|
822
|
-
"
|
|
822
|
+
"../backend-vllm/dist/OllamaBackend.js"() {
|
|
823
823
|
"use strict";
|
|
824
824
|
init_normalizeUrl();
|
|
825
825
|
OllamaBackend = class _OllamaBackend {
|
|
@@ -998,7 +998,7 @@ var init_OllamaBackend = __esm({
|
|
|
998
998
|
}
|
|
999
999
|
});
|
|
1000
1000
|
|
|
1001
|
-
//
|
|
1001
|
+
// ../backend-vllm/dist/FakeBackend.js
|
|
1002
1002
|
function fnv1a32(input) {
|
|
1003
1003
|
const FNV_PRIME = 16777619;
|
|
1004
1004
|
const FNV_OFFSET_BASIS = 2166136261;
|
|
@@ -1011,7 +1011,7 @@ function fnv1a32(input) {
|
|
|
1011
1011
|
}
|
|
1012
1012
|
var FakeBackend;
|
|
1013
1013
|
var init_FakeBackend = __esm({
|
|
1014
|
-
"
|
|
1014
|
+
"../backend-vllm/dist/FakeBackend.js"() {
|
|
1015
1015
|
"use strict";
|
|
1016
1016
|
FakeBackend = class {
|
|
1017
1017
|
options;
|
|
@@ -1111,7 +1111,7 @@ var init_FakeBackend = __esm({
|
|
|
1111
1111
|
}
|
|
1112
1112
|
});
|
|
1113
1113
|
|
|
1114
|
-
//
|
|
1114
|
+
// ../backend-vllm/dist/backendFactory.js
|
|
1115
1115
|
function detectBackendType(baseUrl) {
|
|
1116
1116
|
if (!baseUrl) {
|
|
1117
1117
|
return "ollama";
|
|
@@ -1150,7 +1150,7 @@ function createBackend(opts) {
|
|
|
1150
1150
|
}
|
|
1151
1151
|
}
|
|
1152
1152
|
var init_backendFactory = __esm({
|
|
1153
|
-
"
|
|
1153
|
+
"../backend-vllm/dist/backendFactory.js"() {
|
|
1154
1154
|
"use strict";
|
|
1155
1155
|
init_OllamaBackend();
|
|
1156
1156
|
init_VllmBackend();
|
|
@@ -1158,7 +1158,7 @@ var init_backendFactory = __esm({
|
|
|
1158
1158
|
}
|
|
1159
1159
|
});
|
|
1160
1160
|
|
|
1161
|
-
//
|
|
1161
|
+
// ../backend-vllm/dist/metrics.js
|
|
1162
1162
|
function parseMetricValue(prometheusText, metricName) {
|
|
1163
1163
|
const lines = prometheusText.split("\n");
|
|
1164
1164
|
for (const line of lines) {
|
|
@@ -1179,7 +1179,7 @@ function parseMetricValue(prometheusText, metricName) {
|
|
|
1179
1179
|
}
|
|
1180
1180
|
var MetricsCollector;
|
|
1181
1181
|
var init_metrics = __esm({
|
|
1182
|
-
"
|
|
1182
|
+
"../backend-vllm/dist/metrics.js"() {
|
|
1183
1183
|
"use strict";
|
|
1184
1184
|
MetricsCollector = class {
|
|
1185
1185
|
metricsUrl;
|
|
@@ -1234,16 +1234,16 @@ var init_metrics = __esm({
|
|
|
1234
1234
|
}
|
|
1235
1235
|
});
|
|
1236
1236
|
|
|
1237
|
-
//
|
|
1237
|
+
// ../backend-vllm/dist/routing.js
|
|
1238
1238
|
var init_routing = __esm({
|
|
1239
|
-
"
|
|
1239
|
+
"../backend-vllm/dist/routing.js"() {
|
|
1240
1240
|
"use strict";
|
|
1241
1241
|
}
|
|
1242
1242
|
});
|
|
1243
1243
|
|
|
1244
|
-
//
|
|
1244
|
+
// ../backend-vllm/dist/index.js
|
|
1245
1245
|
var init_dist = __esm({
|
|
1246
|
-
"
|
|
1246
|
+
"../backend-vllm/dist/index.js"() {
|
|
1247
1247
|
"use strict";
|
|
1248
1248
|
init_VllmBackend();
|
|
1249
1249
|
init_OllamaBackend();
|
|
@@ -1256,10 +1256,10 @@ var init_dist = __esm({
|
|
|
1256
1256
|
}
|
|
1257
1257
|
});
|
|
1258
1258
|
|
|
1259
|
-
//
|
|
1259
|
+
// ../execution/dist/tool-executor.js
|
|
1260
1260
|
var DEFAULT_CONFIG2, ToolExecutor;
|
|
1261
1261
|
var init_tool_executor = __esm({
|
|
1262
|
-
"
|
|
1262
|
+
"../execution/dist/tool-executor.js"() {
|
|
1263
1263
|
"use strict";
|
|
1264
1264
|
DEFAULT_CONFIG2 = {
|
|
1265
1265
|
workingDir: ".",
|
|
@@ -1312,11 +1312,11 @@ var init_tool_executor = __esm({
|
|
|
1312
1312
|
}
|
|
1313
1313
|
});
|
|
1314
1314
|
|
|
1315
|
-
//
|
|
1315
|
+
// ../execution/dist/tools/shell.js
|
|
1316
1316
|
import { spawn } from "node:child_process";
|
|
1317
1317
|
var PERMISSION_ERROR_RE, ShellTool;
|
|
1318
1318
|
var init_shell = __esm({
|
|
1319
|
-
"
|
|
1319
|
+
"../execution/dist/tools/shell.js"() {
|
|
1320
1320
|
"use strict";
|
|
1321
1321
|
PERMISSION_ERROR_RE = /Permission denied|Operation not permitted|EACCES|EPERM|PermissionError|sudo:|not permitted|password is required|authentication failure/i;
|
|
1322
1322
|
ShellTool = class {
|
|
@@ -1523,7 +1523,7 @@ ${stderr}` : ""),
|
|
|
1523
1523
|
}
|
|
1524
1524
|
});
|
|
1525
1525
|
|
|
1526
|
-
//
|
|
1526
|
+
// ../execution/dist/tools/file-read.js
|
|
1527
1527
|
import { readFile } from "node:fs/promises";
|
|
1528
1528
|
import { resolve } from "node:path";
|
|
1529
1529
|
function extractPath(args) {
|
|
@@ -1552,7 +1552,7 @@ function extractPath(args) {
|
|
|
1552
1552
|
}
|
|
1553
1553
|
var FileReadTool;
|
|
1554
1554
|
var init_file_read = __esm({
|
|
1555
|
-
"
|
|
1555
|
+
"../execution/dist/tools/file-read.js"() {
|
|
1556
1556
|
"use strict";
|
|
1557
1557
|
FileReadTool = class {
|
|
1558
1558
|
name = "file_read";
|
|
@@ -1640,7 +1640,7 @@ var init_file_read = __esm({
|
|
|
1640
1640
|
}
|
|
1641
1641
|
});
|
|
1642
1642
|
|
|
1643
|
-
//
|
|
1643
|
+
// ../execution/dist/tools/file-write.js
|
|
1644
1644
|
import { writeFile, mkdir } from "node:fs/promises";
|
|
1645
1645
|
import { resolve as resolve2, dirname } from "node:path";
|
|
1646
1646
|
function extractWritePath(args) {
|
|
@@ -1653,7 +1653,7 @@ function extractWritePath(args) {
|
|
|
1653
1653
|
}
|
|
1654
1654
|
var FileWriteTool;
|
|
1655
1655
|
var init_file_write = __esm({
|
|
1656
|
-
"
|
|
1656
|
+
"../execution/dist/tools/file-write.js"() {
|
|
1657
1657
|
"use strict";
|
|
1658
1658
|
FileWriteTool = class {
|
|
1659
1659
|
name = "file_write";
|
|
@@ -1712,13 +1712,13 @@ var init_file_write = __esm({
|
|
|
1712
1712
|
}
|
|
1713
1713
|
});
|
|
1714
1714
|
|
|
1715
|
-
//
|
|
1715
|
+
// ../execution/dist/tools/grep-search.js
|
|
1716
1716
|
import { execFile } from "node:child_process";
|
|
1717
1717
|
import { promisify } from "node:util";
|
|
1718
1718
|
import { resolve as resolve3 } from "node:path";
|
|
1719
1719
|
var execFileAsync, MAX_OUTPUT_LINES, GrepSearchTool;
|
|
1720
1720
|
var init_grep_search = __esm({
|
|
1721
|
-
"
|
|
1721
|
+
"../execution/dist/tools/grep-search.js"() {
|
|
1722
1722
|
"use strict";
|
|
1723
1723
|
execFileAsync = promisify(execFile);
|
|
1724
1724
|
MAX_OUTPUT_LINES = 100;
|
|
@@ -1817,13 +1817,13 @@ var init_grep_search = __esm({
|
|
|
1817
1817
|
}
|
|
1818
1818
|
});
|
|
1819
1819
|
|
|
1820
|
-
//
|
|
1820
|
+
// ../execution/dist/tools/glob-find.js
|
|
1821
1821
|
import { execFile as execFile2 } from "node:child_process";
|
|
1822
1822
|
import { promisify as promisify2 } from "node:util";
|
|
1823
1823
|
import { resolve as resolve4 } from "node:path";
|
|
1824
1824
|
var execFileAsync2, MAX_RESULTS, GlobFindTool;
|
|
1825
1825
|
var init_glob_find = __esm({
|
|
1826
|
-
"
|
|
1826
|
+
"../execution/dist/tools/glob-find.js"() {
|
|
1827
1827
|
"use strict";
|
|
1828
1828
|
execFileAsync2 = promisify2(execFile2);
|
|
1829
1829
|
MAX_RESULTS = 50;
|
|
@@ -1894,10 +1894,10 @@ var init_glob_find = __esm({
|
|
|
1894
1894
|
}
|
|
1895
1895
|
});
|
|
1896
1896
|
|
|
1897
|
-
//
|
|
1897
|
+
// ../execution/dist/tools/web-fetch.js
|
|
1898
1898
|
var DEFAULT_MAX_LENGTH, JINA_READER_BASE, SHORT_CONTENT_THRESHOLD, WebFetchTool;
|
|
1899
1899
|
var init_web_fetch = __esm({
|
|
1900
|
-
"
|
|
1900
|
+
"../execution/dist/tools/web-fetch.js"() {
|
|
1901
1901
|
"use strict";
|
|
1902
1902
|
DEFAULT_MAX_LENGTH = 5e3;
|
|
1903
1903
|
JINA_READER_BASE = "https://r.jina.ai/";
|
|
@@ -2024,7 +2024,7 @@ ${jinaResult.output}`;
|
|
|
2024
2024
|
}
|
|
2025
2025
|
});
|
|
2026
2026
|
|
|
2027
|
-
//
|
|
2027
|
+
// ../execution/dist/tools/web-search.js
|
|
2028
2028
|
function detectSearchProvider() {
|
|
2029
2029
|
if (process.env["TAVILY_API_KEY"])
|
|
2030
2030
|
return "tavily";
|
|
@@ -2034,7 +2034,7 @@ function detectSearchProvider() {
|
|
|
2034
2034
|
}
|
|
2035
2035
|
var DEFAULT_NUM_RESULTS, DUCKDUCKGO_HTML_URL, TAVILY_API_URL, JINA_SEARCH_URL, WebSearchTool;
|
|
2036
2036
|
var init_web_search = __esm({
|
|
2037
|
-
"
|
|
2037
|
+
"../execution/dist/tools/web-search.js"() {
|
|
2038
2038
|
"use strict";
|
|
2039
2039
|
DEFAULT_NUM_RESULTS = 5;
|
|
2040
2040
|
DUCKDUCKGO_HTML_URL = "https://html.duckduckgo.com/html/";
|
|
@@ -2298,14 +2298,14 @@ ${formatted}`,
|
|
|
2298
2298
|
}
|
|
2299
2299
|
});
|
|
2300
2300
|
|
|
2301
|
-
//
|
|
2301
|
+
// ../execution/dist/tools/web-crawl.js
|
|
2302
2302
|
import { execFile as execFile3 } from "node:child_process";
|
|
2303
2303
|
import { dirname as dirname2, join as join3 } from "node:path";
|
|
2304
2304
|
import { fileURLToPath } from "node:url";
|
|
2305
2305
|
import { existsSync as existsSync3 } from "node:fs";
|
|
2306
2306
|
var DEFAULT_MAX_LENGTH2, WebCrawlTool;
|
|
2307
2307
|
var init_web_crawl = __esm({
|
|
2308
|
-
"
|
|
2308
|
+
"../execution/dist/tools/web-crawl.js"() {
|
|
2309
2309
|
"use strict";
|
|
2310
2310
|
DEFAULT_MAX_LENGTH2 = 8e3;
|
|
2311
2311
|
WebCrawlTool = class {
|
|
@@ -2613,7 +2613,7 @@ ${JSON.stringify(extracted, null, 2)}`);
|
|
|
2613
2613
|
}
|
|
2614
2614
|
});
|
|
2615
2615
|
|
|
2616
|
-
//
|
|
2616
|
+
// ../execution/dist/tools/file-edit.js
|
|
2617
2617
|
import { readFile as readFile2, writeFile as writeFile2 } from "node:fs/promises";
|
|
2618
2618
|
import { resolve as resolve5 } from "node:path";
|
|
2619
2619
|
function extractEditPath(args) {
|
|
@@ -2648,7 +2648,7 @@ function replaceAllOccurrences(haystack, needle, replacement) {
|
|
|
2648
2648
|
}
|
|
2649
2649
|
var FileEditTool;
|
|
2650
2650
|
var init_file_edit = __esm({
|
|
2651
|
-
"
|
|
2651
|
+
"../execution/dist/tools/file-edit.js"() {
|
|
2652
2652
|
"use strict";
|
|
2653
2653
|
FileEditTool = class {
|
|
2654
2654
|
name = "file_edit";
|
|
@@ -2758,12 +2758,12 @@ var init_file_edit = __esm({
|
|
|
2758
2758
|
}
|
|
2759
2759
|
});
|
|
2760
2760
|
|
|
2761
|
-
//
|
|
2761
|
+
// ../execution/dist/tools/memory-read.js
|
|
2762
2762
|
import { readFile as readFile3 } from "node:fs/promises";
|
|
2763
2763
|
import { resolve as resolve6, join as join4 } from "node:path";
|
|
2764
2764
|
var MemoryReadTool;
|
|
2765
2765
|
var init_memory_read = __esm({
|
|
2766
|
-
"
|
|
2766
|
+
"../execution/dist/tools/memory-read.js"() {
|
|
2767
2767
|
"use strict";
|
|
2768
2768
|
MemoryReadTool = class {
|
|
2769
2769
|
name = "memory_read";
|
|
@@ -2853,13 +2853,13 @@ ${JSON.stringify(entries, null, 2)}`,
|
|
|
2853
2853
|
}
|
|
2854
2854
|
});
|
|
2855
2855
|
|
|
2856
|
-
//
|
|
2856
|
+
// ../execution/dist/tools/memory-write.js
|
|
2857
2857
|
import { readFile as readFile4, writeFile as writeFile3, mkdir as mkdir2 } from "node:fs/promises";
|
|
2858
2858
|
import { resolve as resolve7, join as join5 } from "node:path";
|
|
2859
2859
|
import { randomBytes } from "node:crypto";
|
|
2860
2860
|
var MemoryWriteTool;
|
|
2861
2861
|
var init_memory_write = __esm({
|
|
2862
|
-
"
|
|
2862
|
+
"../execution/dist/tools/memory-write.js"() {
|
|
2863
2863
|
"use strict";
|
|
2864
2864
|
MemoryWriteTool = class {
|
|
2865
2865
|
name = "memory_write";
|
|
@@ -2944,7 +2944,7 @@ var init_memory_write = __esm({
|
|
|
2944
2944
|
}
|
|
2945
2945
|
});
|
|
2946
2946
|
|
|
2947
|
-
//
|
|
2947
|
+
// ../execution/dist/tools/memory-search.js
|
|
2948
2948
|
import { readFile as readFile5, readdir } from "node:fs/promises";
|
|
2949
2949
|
import { resolve as resolve8, join as join6, basename } from "node:path";
|
|
2950
2950
|
import { existsSync as existsSync4 } from "node:fs";
|
|
@@ -3050,7 +3050,7 @@ function tokenize(text) {
|
|
|
3050
3050
|
}
|
|
3051
3051
|
var MemorySearchTool;
|
|
3052
3052
|
var init_memory_search = __esm({
|
|
3053
|
-
"
|
|
3053
|
+
"../execution/dist/tools/memory-search.js"() {
|
|
3054
3054
|
"use strict";
|
|
3055
3055
|
MemorySearchTool = class {
|
|
3056
3056
|
name = "memory_search";
|
|
@@ -3174,10 +3174,10 @@ Try broader terms or use memory_read with a specific topic.`,
|
|
|
3174
3174
|
}
|
|
3175
3175
|
});
|
|
3176
3176
|
|
|
3177
|
-
//
|
|
3177
|
+
// ../execution/dist/tools/explore-tools.js
|
|
3178
3178
|
var TOOL_CATALOG, ExploreToolsTool;
|
|
3179
3179
|
var init_explore_tools = __esm({
|
|
3180
|
-
"
|
|
3180
|
+
"../execution/dist/tools/explore-tools.js"() {
|
|
3181
3181
|
"use strict";
|
|
3182
3182
|
TOOL_CATALOG = {
|
|
3183
3183
|
grep_search: "Search file contents with regex patterns",
|
|
@@ -3341,12 +3341,12 @@ Examples:`);
|
|
|
3341
3341
|
}
|
|
3342
3342
|
});
|
|
3343
3343
|
|
|
3344
|
-
//
|
|
3344
|
+
// ../execution/dist/tools/list-directory.js
|
|
3345
3345
|
import { readdirSync, statSync } from "node:fs";
|
|
3346
3346
|
import { resolve as resolve9, join as join7 } from "node:path";
|
|
3347
3347
|
var EXCLUDED, MAX_ENTRIES, ListDirectoryTool;
|
|
3348
3348
|
var init_list_directory = __esm({
|
|
3349
|
-
"
|
|
3349
|
+
"../execution/dist/tools/list-directory.js"() {
|
|
3350
3350
|
"use strict";
|
|
3351
3351
|
EXCLUDED = /* @__PURE__ */ new Set(["node_modules", ".git"]);
|
|
3352
3352
|
MAX_ENTRIES = 100;
|
|
@@ -3428,11 +3428,11 @@ var init_list_directory = __esm({
|
|
|
3428
3428
|
}
|
|
3429
3429
|
});
|
|
3430
3430
|
|
|
3431
|
-
//
|
|
3431
|
+
// ../execution/dist/tools/aiwg-setup.js
|
|
3432
3432
|
import { execSync as execSync2 } from "node:child_process";
|
|
3433
3433
|
var AiwgSetupTool;
|
|
3434
3434
|
var init_aiwg_setup = __esm({
|
|
3435
|
-
"
|
|
3435
|
+
"../execution/dist/tools/aiwg-setup.js"() {
|
|
3436
3436
|
"use strict";
|
|
3437
3437
|
AiwgSetupTool = class {
|
|
3438
3438
|
name = "aiwg_setup";
|
|
@@ -3506,13 +3506,13 @@ ${output}`,
|
|
|
3506
3506
|
}
|
|
3507
3507
|
});
|
|
3508
3508
|
|
|
3509
|
-
//
|
|
3509
|
+
// ../execution/dist/tools/aiwg-health.js
|
|
3510
3510
|
import { execSync as execSync3 } from "node:child_process";
|
|
3511
3511
|
import { existsSync as existsSync5, readdirSync as readdirSync2, readFileSync as readFileSync3, statSync as statSync2 } from "node:fs";
|
|
3512
3512
|
import { join as join8 } from "node:path";
|
|
3513
3513
|
var AiwgHealthTool;
|
|
3514
3514
|
var init_aiwg_health = __esm({
|
|
3515
|
-
"
|
|
3515
|
+
"../execution/dist/tools/aiwg-health.js"() {
|
|
3516
3516
|
"use strict";
|
|
3517
3517
|
AiwgHealthTool = class {
|
|
3518
3518
|
name = "aiwg_health";
|
|
@@ -3718,11 +3718,11 @@ var init_aiwg_health = __esm({
|
|
|
3718
3718
|
}
|
|
3719
3719
|
});
|
|
3720
3720
|
|
|
3721
|
-
//
|
|
3721
|
+
// ../execution/dist/tools/aiwg-workflow.js
|
|
3722
3722
|
import { execSync as execSync4 } from "node:child_process";
|
|
3723
3723
|
var AiwgWorkflowTool;
|
|
3724
3724
|
var init_aiwg_workflow = __esm({
|
|
3725
|
-
"
|
|
3725
|
+
"../execution/dist/tools/aiwg-workflow.js"() {
|
|
3726
3726
|
"use strict";
|
|
3727
3727
|
AiwgWorkflowTool = class {
|
|
3728
3728
|
name = "aiwg_workflow";
|
|
@@ -3803,7 +3803,7 @@ var init_aiwg_workflow = __esm({
|
|
|
3803
3803
|
}
|
|
3804
3804
|
});
|
|
3805
3805
|
|
|
3806
|
-
//
|
|
3806
|
+
// ../execution/dist/tools/batch-edit.js
|
|
3807
3807
|
import { readFile as readFile6, writeFile as writeFile4 } from "node:fs/promises";
|
|
3808
3808
|
import { resolve as resolve10 } from "node:path";
|
|
3809
3809
|
function countOccurrences2(haystack, needle) {
|
|
@@ -3817,7 +3817,7 @@ function countOccurrences2(haystack, needle) {
|
|
|
3817
3817
|
}
|
|
3818
3818
|
var BatchEditTool;
|
|
3819
3819
|
var init_batch_edit = __esm({
|
|
3820
|
-
"
|
|
3820
|
+
"../execution/dist/tools/batch-edit.js"() {
|
|
3821
3821
|
"use strict";
|
|
3822
3822
|
BatchEditTool = class {
|
|
3823
3823
|
name = "batch_edit";
|
|
@@ -3929,12 +3929,12 @@ ${results.join("\n")}`,
|
|
|
3929
3929
|
}
|
|
3930
3930
|
});
|
|
3931
3931
|
|
|
3932
|
-
//
|
|
3932
|
+
// ../execution/dist/tools/file-patch.js
|
|
3933
3933
|
import { readFile as readFile7, writeFile as writeFile5, copyFile } from "node:fs/promises";
|
|
3934
3934
|
import { resolve as resolve11 } from "node:path";
|
|
3935
3935
|
var FilePatchTool;
|
|
3936
3936
|
var init_file_patch = __esm({
|
|
3937
|
-
"
|
|
3937
|
+
"../execution/dist/tools/file-patch.js"() {
|
|
3938
3938
|
"use strict";
|
|
3939
3939
|
FilePatchTool = class {
|
|
3940
3940
|
name = "file_patch";
|
|
@@ -4101,12 +4101,12 @@ ${diff}`,
|
|
|
4101
4101
|
}
|
|
4102
4102
|
});
|
|
4103
4103
|
|
|
4104
|
-
//
|
|
4104
|
+
// ../execution/dist/tools/codebase-map.js
|
|
4105
4105
|
import { readdirSync as readdirSync3, statSync as statSync3, readFileSync as readFileSync4, existsSync as existsSync6 } from "node:fs";
|
|
4106
4106
|
import { join as join9, relative, extname } from "node:path";
|
|
4107
4107
|
var CodebaseMapTool;
|
|
4108
4108
|
var init_codebase_map = __esm({
|
|
4109
|
-
"
|
|
4109
|
+
"../execution/dist/tools/codebase-map.js"() {
|
|
4110
4110
|
"use strict";
|
|
4111
4111
|
CodebaseMapTool = class {
|
|
4112
4112
|
name = "codebase_map";
|
|
@@ -4389,13 +4389,13 @@ var init_codebase_map = __esm({
|
|
|
4389
4389
|
}
|
|
4390
4390
|
});
|
|
4391
4391
|
|
|
4392
|
-
//
|
|
4392
|
+
// ../execution/dist/tools/diagnostic.js
|
|
4393
4393
|
import { execSync as execSync5 } from "node:child_process";
|
|
4394
4394
|
import { existsSync as existsSync7, readFileSync as readFileSync5 } from "node:fs";
|
|
4395
4395
|
import { join as join10 } from "node:path";
|
|
4396
4396
|
var DiagnosticTool;
|
|
4397
4397
|
var init_diagnostic = __esm({
|
|
4398
|
-
"
|
|
4398
|
+
"../execution/dist/tools/diagnostic.js"() {
|
|
4399
4399
|
"use strict";
|
|
4400
4400
|
DiagnosticTool = class {
|
|
4401
4401
|
name = "diagnostic";
|
|
@@ -4534,13 +4534,13 @@ ${err.stderr ?? ""}`.trim(),
|
|
|
4534
4534
|
}
|
|
4535
4535
|
});
|
|
4536
4536
|
|
|
4537
|
-
//
|
|
4537
|
+
// ../execution/dist/tools/git-info.js
|
|
4538
4538
|
import { execSync as execSync6 } from "node:child_process";
|
|
4539
4539
|
import { existsSync as existsSync8 } from "node:fs";
|
|
4540
4540
|
import { join as join11 } from "node:path";
|
|
4541
4541
|
var GitInfoTool;
|
|
4542
4542
|
var init_git_info = __esm({
|
|
4543
|
-
"
|
|
4543
|
+
"../execution/dist/tools/git-info.js"() {
|
|
4544
4544
|
"use strict";
|
|
4545
4545
|
GitInfoTool = class {
|
|
4546
4546
|
name = "git_info";
|
|
@@ -4665,7 +4665,7 @@ var init_git_info = __esm({
|
|
|
4665
4665
|
}
|
|
4666
4666
|
});
|
|
4667
4667
|
|
|
4668
|
-
//
|
|
4668
|
+
// ../execution/dist/tools/background-task.js
|
|
4669
4669
|
import { spawn as spawn2 } from "node:child_process";
|
|
4670
4670
|
function toInfo(entry) {
|
|
4671
4671
|
return {
|
|
@@ -4681,7 +4681,7 @@ function toInfo(entry) {
|
|
|
4681
4681
|
}
|
|
4682
4682
|
var BackgroundTaskManager, BackgroundRunTool, TaskStatusTool, TaskOutputTool, TaskStopTool;
|
|
4683
4683
|
var init_background_task = __esm({
|
|
4684
|
-
"
|
|
4684
|
+
"../execution/dist/tools/background-task.js"() {
|
|
4685
4685
|
"use strict";
|
|
4686
4686
|
BackgroundTaskManager = class {
|
|
4687
4687
|
tasks = /* @__PURE__ */ new Map();
|
|
@@ -4971,7 +4971,7 @@ Exit code: ${task.exitCode ?? "N/A"}`,
|
|
|
4971
4971
|
}
|
|
4972
4972
|
});
|
|
4973
4973
|
|
|
4974
|
-
//
|
|
4974
|
+
// ../execution/dist/system-deps.js
|
|
4975
4975
|
import { execSync as execSync7 } from "node:child_process";
|
|
4976
4976
|
function detectPackageManager() {
|
|
4977
4977
|
if (_detectedPkgManager !== void 0)
|
|
@@ -5163,7 +5163,7 @@ function resetDepCache() {
|
|
|
5163
5163
|
}
|
|
5164
5164
|
var DESKTOP_DEPS, _detectedPkgManager, _cache, _sudoPassword;
|
|
5165
5165
|
var init_system_deps = __esm({
|
|
5166
|
-
"
|
|
5166
|
+
"../execution/dist/system-deps.js"() {
|
|
5167
5167
|
"use strict";
|
|
5168
5168
|
DESKTOP_DEPS = [
|
|
5169
5169
|
{
|
|
@@ -5214,7 +5214,7 @@ var init_system_deps = __esm({
|
|
|
5214
5214
|
}
|
|
5215
5215
|
});
|
|
5216
5216
|
|
|
5217
|
-
//
|
|
5217
|
+
// ../execution/dist/tools/image.js
|
|
5218
5218
|
import { existsSync as existsSync9, readFileSync as readFileSync6, statSync as statSync4 } from "node:fs";
|
|
5219
5219
|
import { resolve as resolve12, extname as extname2, basename as basename2 } from "node:path";
|
|
5220
5220
|
import { execSync as execSync8 } from "node:child_process";
|
|
@@ -5303,7 +5303,7 @@ function runOCR(filePath) {
|
|
|
5303
5303
|
}
|
|
5304
5304
|
var IMAGE_EXTENSIONS, ImageReadTool, ScreenshotTool, OCRTool;
|
|
5305
5305
|
var init_image = __esm({
|
|
5306
|
-
"
|
|
5306
|
+
"../execution/dist/tools/image.js"() {
|
|
5307
5307
|
"use strict";
|
|
5308
5308
|
init_system_deps();
|
|
5309
5309
|
IMAGE_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
@@ -5593,7 +5593,7 @@ ${text}`,
|
|
|
5593
5593
|
}
|
|
5594
5594
|
});
|
|
5595
5595
|
|
|
5596
|
-
//
|
|
5596
|
+
// ../execution/dist/tools/custom-tool.js
|
|
5597
5597
|
var custom_tool_exports = {};
|
|
5598
5598
|
__export(custom_tool_exports, {
|
|
5599
5599
|
CustomTool: () => CustomTool,
|
|
@@ -5696,7 +5696,7 @@ function loadFromDirectory(dir) {
|
|
|
5696
5696
|
}
|
|
5697
5697
|
var CustomTool;
|
|
5698
5698
|
var init_custom_tool = __esm({
|
|
5699
|
-
"
|
|
5699
|
+
"../execution/dist/tools/custom-tool.js"() {
|
|
5700
5700
|
"use strict";
|
|
5701
5701
|
CustomTool = class {
|
|
5702
5702
|
name;
|
|
@@ -5805,10 +5805,10 @@ ${stderr}` : ""),
|
|
|
5805
5805
|
}
|
|
5806
5806
|
});
|
|
5807
5807
|
|
|
5808
|
-
//
|
|
5808
|
+
// ../execution/dist/tools/tool-creator.js
|
|
5809
5809
|
var CreateToolTool, ManageToolsTool;
|
|
5810
5810
|
var init_tool_creator = __esm({
|
|
5811
|
-
"
|
|
5811
|
+
"../execution/dist/tools/tool-creator.js"() {
|
|
5812
5812
|
"use strict";
|
|
5813
5813
|
init_custom_tool();
|
|
5814
5814
|
CreateToolTool = class {
|
|
@@ -6099,7 +6099,7 @@ var init_tool_creator = __esm({
|
|
|
6099
6099
|
}
|
|
6100
6100
|
});
|
|
6101
6101
|
|
|
6102
|
-
//
|
|
6102
|
+
// ../execution/dist/tools/skill-tools.js
|
|
6103
6103
|
import { existsSync as existsSync11, readdirSync as readdirSync5, readFileSync as readFileSync8 } from "node:fs";
|
|
6104
6104
|
import { join as join14, basename as basename3, dirname as dirname3 } from "node:path";
|
|
6105
6105
|
import { homedir as homedir5 } from "node:os";
|
|
@@ -6414,7 +6414,7 @@ function parseTriggers(filePath) {
|
|
|
6414
6414
|
}
|
|
6415
6415
|
var _cachedAiwgPkgRoot, SkillListTool, SkillExecuteTool;
|
|
6416
6416
|
var init_skill_tools = __esm({
|
|
6417
|
-
"
|
|
6417
|
+
"../execution/dist/tools/skill-tools.js"() {
|
|
6418
6418
|
"use strict";
|
|
6419
6419
|
SkillListTool = class {
|
|
6420
6420
|
name = "skill_list";
|
|
@@ -6539,7 +6539,7 @@ ${content}`,
|
|
|
6539
6539
|
}
|
|
6540
6540
|
});
|
|
6541
6541
|
|
|
6542
|
-
//
|
|
6542
|
+
// ../execution/dist/tools/skill-builder.js
|
|
6543
6543
|
import { existsSync as existsSync12, mkdirSync as mkdirSync4, readFileSync as readFileSync9, writeFileSync as writeFileSync4 } from "node:fs";
|
|
6544
6544
|
import { join as join15, dirname as dirname4 } from "node:path";
|
|
6545
6545
|
function loadBuilderPrompt(name, vars) {
|
|
@@ -6577,7 +6577,7 @@ function extractJSON(text) {
|
|
|
6577
6577
|
}
|
|
6578
6578
|
var SkillBuildTool;
|
|
6579
6579
|
var init_skill_builder = __esm({
|
|
6580
|
-
"
|
|
6580
|
+
"../execution/dist/tools/skill-builder.js"() {
|
|
6581
6581
|
"use strict";
|
|
6582
6582
|
SkillBuildTool = class {
|
|
6583
6583
|
name = "skill_build";
|
|
@@ -6784,7 +6784,7 @@ ${content}`
|
|
|
6784
6784
|
}
|
|
6785
6785
|
});
|
|
6786
6786
|
|
|
6787
|
-
//
|
|
6787
|
+
// ../execution/dist/tools/transcribe-tool.js
|
|
6788
6788
|
import { existsSync as existsSync13, mkdirSync as mkdirSync5, writeFileSync as writeFileSync5, readFileSync as readFileSync10, unlinkSync } from "node:fs";
|
|
6789
6789
|
import { join as join16, basename as basename4, extname as extname3, resolve as resolve13 } from "node:path";
|
|
6790
6790
|
import { homedir as homedir6 } from "node:os";
|
|
@@ -6837,7 +6837,7 @@ function formatTime(seconds) {
|
|
|
6837
6837
|
}
|
|
6838
6838
|
var AUDIO_EXTS, VIDEO_EXTS, _tcModule, _tcChecked, TranscribeFileTool, TranscribeUrlTool;
|
|
6839
6839
|
var init_transcribe_tool = __esm({
|
|
6840
|
-
"
|
|
6840
|
+
"../execution/dist/tools/transcribe-tool.js"() {
|
|
6841
6841
|
"use strict";
|
|
6842
6842
|
AUDIO_EXTS = /* @__PURE__ */ new Set([
|
|
6843
6843
|
".mp3",
|
|
@@ -7078,7 +7078,7 @@ ${result.output}`,
|
|
|
7078
7078
|
}
|
|
7079
7079
|
});
|
|
7080
7080
|
|
|
7081
|
-
//
|
|
7081
|
+
// ../execution/dist/tools/structured-file.js
|
|
7082
7082
|
import { writeFile as writeFile6, mkdir as mkdir3 } from "node:fs/promises";
|
|
7083
7083
|
import { resolve as resolve14, dirname as dirname5, extname as extname4 } from "node:path";
|
|
7084
7084
|
function jsonToCSV(data, separator = ",") {
|
|
@@ -7115,7 +7115,7 @@ function jsonToMarkdownTable(data) {
|
|
|
7115
7115
|
}
|
|
7116
7116
|
var StructuredFileTool;
|
|
7117
7117
|
var init_structured_file = __esm({
|
|
7118
|
-
"
|
|
7118
|
+
"../execution/dist/tools/structured-file.js"() {
|
|
7119
7119
|
"use strict";
|
|
7120
7120
|
StructuredFileTool = class {
|
|
7121
7121
|
name = "create_structured_file";
|
|
@@ -7258,7 +7258,7 @@ var init_structured_file = __esm({
|
|
|
7258
7258
|
}
|
|
7259
7259
|
});
|
|
7260
7260
|
|
|
7261
|
-
//
|
|
7261
|
+
// ../execution/dist/tools/code-sandbox.js
|
|
7262
7262
|
import { spawn as spawn5 } from "node:child_process";
|
|
7263
7263
|
import { writeFile as writeFile7, mkdtemp, rm, readdir as readdir2, stat } from "node:fs/promises";
|
|
7264
7264
|
import { join as join17 } from "node:path";
|
|
@@ -7339,7 +7339,7 @@ async function listCreatedFiles(dir) {
|
|
|
7339
7339
|
}
|
|
7340
7340
|
var LANGUAGE_CONFIG, CodeSandboxTool;
|
|
7341
7341
|
var init_code_sandbox = __esm({
|
|
7342
|
-
"
|
|
7342
|
+
"../execution/dist/tools/code-sandbox.js"() {
|
|
7343
7343
|
"use strict";
|
|
7344
7344
|
LANGUAGE_CONFIG = {
|
|
7345
7345
|
javascript: { ext: ".js", cmd: "node", args: (f) => [f] },
|
|
@@ -7511,7 +7511,7 @@ ${result.filesCreated.join("\n")}`);
|
|
|
7511
7511
|
}
|
|
7512
7512
|
});
|
|
7513
7513
|
|
|
7514
|
-
//
|
|
7514
|
+
// ../execution/dist/tools/structured-read.js
|
|
7515
7515
|
import { readFile as readFile8, stat as stat2 } from "node:fs/promises";
|
|
7516
7516
|
import { resolve as resolve15, extname as extname5 } from "node:path";
|
|
7517
7517
|
function parseCSV(text, separator = ",") {
|
|
@@ -7619,7 +7619,7 @@ function detectBinaryFormat(buffer) {
|
|
|
7619
7619
|
}
|
|
7620
7620
|
var StructuredReadTool;
|
|
7621
7621
|
var init_structured_read = __esm({
|
|
7622
|
-
"
|
|
7622
|
+
"../execution/dist/tools/structured-read.js"() {
|
|
7623
7623
|
"use strict";
|
|
7624
7624
|
StructuredReadTool = class {
|
|
7625
7625
|
name = "read_structured_file";
|
|
@@ -7846,7 +7846,7 @@ ${parts.join("\n\n")}`,
|
|
|
7846
7846
|
}
|
|
7847
7847
|
});
|
|
7848
7848
|
|
|
7849
|
-
//
|
|
7849
|
+
// ../execution/dist/tools/vision.js
|
|
7850
7850
|
import { readFileSync as readFileSync11, existsSync as existsSync14, statSync as statSync5 } from "node:fs";
|
|
7851
7851
|
import { execSync as execSync11, spawn as spawn6 } from "node:child_process";
|
|
7852
7852
|
import { resolve as resolve16, extname as extname6, basename as basename5, dirname as dirname6, join as join18 } from "node:path";
|
|
@@ -7997,7 +7997,7 @@ function loadImageBuffer(workingDir, rawPath) {
|
|
|
7997
7997
|
}
|
|
7998
7998
|
var moondreamClient, moondreamError, stationProcess, IMAGE_EXTENSIONS2, VisionTool;
|
|
7999
7999
|
var init_vision = __esm({
|
|
8000
|
-
"
|
|
8000
|
+
"../execution/dist/tools/vision.js"() {
|
|
8001
8001
|
"use strict";
|
|
8002
8002
|
moondreamClient = null;
|
|
8003
8003
|
moondreamError = null;
|
|
@@ -8220,7 +8220,7 @@ ${response}`, durationMs: performance.now() - start };
|
|
|
8220
8220
|
}
|
|
8221
8221
|
});
|
|
8222
8222
|
|
|
8223
|
-
//
|
|
8223
|
+
// ../execution/dist/tools/desktop-click.js
|
|
8224
8224
|
import { readFileSync as readFileSync12, existsSync as existsSync15 } from "node:fs";
|
|
8225
8225
|
import { execSync as execSync12 } from "node:child_process";
|
|
8226
8226
|
import { tmpdir as tmpdir3 } from "node:os";
|
|
@@ -8373,7 +8373,7 @@ for i in range(${clicks}):
|
|
|
8373
8373
|
}
|
|
8374
8374
|
var __dirname2, DesktopClickTool, DesktopDescribeTool;
|
|
8375
8375
|
var init_desktop_click = __esm({
|
|
8376
|
-
"
|
|
8376
|
+
"../execution/dist/tools/desktop-click.js"() {
|
|
8377
8377
|
"use strict";
|
|
8378
8378
|
init_system_deps();
|
|
8379
8379
|
__dirname2 = dirname7(fileURLToPath3(import.meta.url));
|
|
@@ -8729,13 +8729,13 @@ Screen: ${dims.width}x${dims.height}`);
|
|
|
8729
8729
|
}
|
|
8730
8730
|
});
|
|
8731
8731
|
|
|
8732
|
-
//
|
|
8732
|
+
// ../execution/dist/tools/ocr-pdf.js
|
|
8733
8733
|
import { existsSync as existsSync16, statSync as statSync6 } from "node:fs";
|
|
8734
8734
|
import { resolve as resolve17, basename as basename6 } from "node:path";
|
|
8735
8735
|
import { execSync as execSync13 } from "node:child_process";
|
|
8736
8736
|
var OcrPdfTool;
|
|
8737
8737
|
var init_ocr_pdf = __esm({
|
|
8738
|
-
"
|
|
8738
|
+
"../execution/dist/tools/ocr-pdf.js"() {
|
|
8739
8739
|
"use strict";
|
|
8740
8740
|
init_system_deps();
|
|
8741
8741
|
OcrPdfTool = class {
|
|
@@ -8852,14 +8852,14 @@ Language: ${language}
|
|
|
8852
8852
|
}
|
|
8853
8853
|
});
|
|
8854
8854
|
|
|
8855
|
-
//
|
|
8855
|
+
// ../execution/dist/tools/pdf-to-text.js
|
|
8856
8856
|
import { existsSync as existsSync17, statSync as statSync7, readFileSync as readFileSync13, unlinkSync as unlinkSync2 } from "node:fs";
|
|
8857
8857
|
import { resolve as resolve18, basename as basename7, join as join20 } from "node:path";
|
|
8858
8858
|
import { execSync as execSync14 } from "node:child_process";
|
|
8859
8859
|
import { tmpdir as tmpdir4 } from "node:os";
|
|
8860
8860
|
var PdfToTextTool;
|
|
8861
8861
|
var init_pdf_to_text = __esm({
|
|
8862
|
-
"
|
|
8862
|
+
"../execution/dist/tools/pdf-to-text.js"() {
|
|
8863
8863
|
"use strict";
|
|
8864
8864
|
init_system_deps();
|
|
8865
8865
|
PdfToTextTool = class {
|
|
@@ -9037,7 +9037,7 @@ ${text}`,
|
|
|
9037
9037
|
}
|
|
9038
9038
|
});
|
|
9039
9039
|
|
|
9040
|
-
//
|
|
9040
|
+
// ../execution/dist/tools/ocr-image-advanced.js
|
|
9041
9041
|
import { existsSync as existsSync18, statSync as statSync8 } from "node:fs";
|
|
9042
9042
|
import { resolve as resolve19, basename as basename8, dirname as dirname8, join as join21 } from "node:path";
|
|
9043
9043
|
import { execSync as execSync15 } from "node:child_process";
|
|
@@ -9080,7 +9080,7 @@ function findPython() {
|
|
|
9080
9080
|
}
|
|
9081
9081
|
var OcrImageAdvancedTool;
|
|
9082
9082
|
var init_ocr_image_advanced = __esm({
|
|
9083
|
-
"
|
|
9083
|
+
"../execution/dist/tools/ocr-image-advanced.js"() {
|
|
9084
9084
|
"use strict";
|
|
9085
9085
|
init_system_deps();
|
|
9086
9086
|
OcrImageAdvancedTool = class {
|
|
@@ -9340,7 +9340,7 @@ Note: Advanced Python pipeline not available \u2014 install pytesseract, opencv-
|
|
|
9340
9340
|
}
|
|
9341
9341
|
});
|
|
9342
9342
|
|
|
9343
|
-
//
|
|
9343
|
+
// ../execution/dist/tools/browser-action.js
|
|
9344
9344
|
import { execSync as execSync16, spawn as spawn7 } from "node:child_process";
|
|
9345
9345
|
import { existsSync as existsSync19, readFileSync as readFileSync14 } from "node:fs";
|
|
9346
9346
|
import { join as join22, dirname as dirname9 } from "node:path";
|
|
@@ -9445,7 +9445,7 @@ async function apiCall(endpoint, method = "POST", body) {
|
|
|
9445
9445
|
}
|
|
9446
9446
|
var __dirname3, DEFAULT_PORT, SCRAPE_SCRIPT, BASE_URL, serviceProcess, activeSessionId, BrowserActionTool;
|
|
9447
9447
|
var init_browser_action = __esm({
|
|
9448
|
-
"
|
|
9448
|
+
"../execution/dist/tools/browser-action.js"() {
|
|
9449
9449
|
"use strict";
|
|
9450
9450
|
__dirname3 = dirname9(fileURLToPath5(import.meta.url));
|
|
9451
9451
|
DEFAULT_PORT = 8130;
|
|
@@ -9606,7 +9606,7 @@ var init_browser_action = __esm({
|
|
|
9606
9606
|
}
|
|
9607
9607
|
});
|
|
9608
9608
|
|
|
9609
|
-
//
|
|
9609
|
+
// ../execution/dist/tools/autoresearch.js
|
|
9610
9610
|
import { execSync as execSync17, spawn as spawn8 } from "node:child_process";
|
|
9611
9611
|
import { existsSync as existsSync20, readFileSync as readFileSync15, writeFileSync as writeFileSync6, mkdirSync as mkdirSync6, appendFileSync, copyFileSync } from "node:fs";
|
|
9612
9612
|
import { join as join23, resolve as resolve20, dirname as dirname10 } from "node:path";
|
|
@@ -9649,7 +9649,7 @@ function parseRunLog(logContent) {
|
|
|
9649
9649
|
}
|
|
9650
9650
|
var AutoresearchTool;
|
|
9651
9651
|
var init_autoresearch = __esm({
|
|
9652
|
-
"
|
|
9652
|
+
"../execution/dist/tools/autoresearch.js"() {
|
|
9653
9653
|
"use strict";
|
|
9654
9654
|
AutoresearchTool = class {
|
|
9655
9655
|
repoRoot;
|
|
@@ -10126,7 +10126,7 @@ train.py reverted to last kept state. Ready for next experiment.`,
|
|
|
10126
10126
|
}
|
|
10127
10127
|
});
|
|
10128
10128
|
|
|
10129
|
-
//
|
|
10129
|
+
// ../execution/dist/tools/scheduler.js
|
|
10130
10130
|
import { execSync as execSync18, exec as execCb } from "node:child_process";
|
|
10131
10131
|
import { readFile as readFile9, writeFile as writeFile8, mkdir as mkdir4 } from "node:fs/promises";
|
|
10132
10132
|
import { resolve as resolve21, join as join24 } from "node:path";
|
|
@@ -10261,7 +10261,7 @@ async function saveStore(workingDir, store) {
|
|
|
10261
10261
|
}
|
|
10262
10262
|
var SCHEDULE_PRESETS, CRON_MARKER, SchedulerTool;
|
|
10263
10263
|
var init_scheduler = __esm({
|
|
10264
|
-
"
|
|
10264
|
+
"../execution/dist/tools/scheduler.js"() {
|
|
10265
10265
|
"use strict";
|
|
10266
10266
|
SCHEDULE_PRESETS = {
|
|
10267
10267
|
"every minute": "* * * * *",
|
|
@@ -10489,7 +10489,7 @@ ${truncated}`, durationMs: performance.now() - start };
|
|
|
10489
10489
|
}
|
|
10490
10490
|
});
|
|
10491
10491
|
|
|
10492
|
-
//
|
|
10492
|
+
// ../execution/dist/tools/reminder.js
|
|
10493
10493
|
import { readFile as readFile10, writeFile as writeFile9, mkdir as mkdir5 } from "node:fs/promises";
|
|
10494
10494
|
import { resolve as resolve22, join as join25 } from "node:path";
|
|
10495
10495
|
import { randomBytes as randomBytes3 } from "node:crypto";
|
|
@@ -10583,7 +10583,7 @@ async function markRemindersSeen(workingDir, ids) {
|
|
|
10583
10583
|
}
|
|
10584
10584
|
var STORE_FILE, ReminderTool;
|
|
10585
10585
|
var init_reminder = __esm({
|
|
10586
|
-
"
|
|
10586
|
+
"../execution/dist/tools/reminder.js"() {
|
|
10587
10587
|
"use strict";
|
|
10588
10588
|
STORE_FILE = "reminders.json";
|
|
10589
10589
|
ReminderTool = class {
|
|
@@ -10802,7 +10802,7 @@ var init_reminder = __esm({
|
|
|
10802
10802
|
}
|
|
10803
10803
|
});
|
|
10804
10804
|
|
|
10805
|
-
//
|
|
10805
|
+
// ../execution/dist/tools/agenda.js
|
|
10806
10806
|
import { readFile as readFile11, writeFile as writeFile10, mkdir as mkdir6 } from "node:fs/promises";
|
|
10807
10807
|
import { resolve as resolve23, join as join26 } from "node:path";
|
|
10808
10808
|
import { randomBytes as randomBytes4 } from "node:crypto";
|
|
@@ -10837,7 +10837,7 @@ async function getActiveAttentionItems(workingDir) {
|
|
|
10837
10837
|
}
|
|
10838
10838
|
var AgendaTool;
|
|
10839
10839
|
var init_agenda = __esm({
|
|
10840
|
-
"
|
|
10840
|
+
"../execution/dist/tools/agenda.js"() {
|
|
10841
10841
|
"use strict";
|
|
10842
10842
|
init_reminder();
|
|
10843
10843
|
AgendaTool = class {
|
|
@@ -11126,7 +11126,7 @@ ${sections.join("\n")}`,
|
|
|
11126
11126
|
}
|
|
11127
11127
|
});
|
|
11128
11128
|
|
|
11129
|
-
//
|
|
11129
|
+
// ../execution/dist/tools/opencode.js
|
|
11130
11130
|
import { execSync as execSync19, spawn as spawn9 } from "node:child_process";
|
|
11131
11131
|
import { existsSync as existsSync21 } from "node:fs";
|
|
11132
11132
|
import { join as join27, resolve as resolve24 } from "node:path";
|
|
@@ -11187,7 +11187,7 @@ function installOpencode() {
|
|
|
11187
11187
|
}
|
|
11188
11188
|
var OpenCodeTool;
|
|
11189
11189
|
var init_opencode = __esm({
|
|
11190
|
-
"
|
|
11190
|
+
"../execution/dist/tools/opencode.js"() {
|
|
11191
11191
|
"use strict";
|
|
11192
11192
|
OpenCodeTool = class {
|
|
11193
11193
|
name = "opencode";
|
|
@@ -11400,7 +11400,7 @@ var init_opencode = __esm({
|
|
|
11400
11400
|
}
|
|
11401
11401
|
});
|
|
11402
11402
|
|
|
11403
|
-
//
|
|
11403
|
+
// ../execution/dist/tools/factory.js
|
|
11404
11404
|
import { execSync as execSync20, spawn as spawn10 } from "node:child_process";
|
|
11405
11405
|
import { existsSync as existsSync22 } from "node:fs";
|
|
11406
11406
|
import { join as join28 } from "node:path";
|
|
@@ -11461,7 +11461,7 @@ function installDroid() {
|
|
|
11461
11461
|
}
|
|
11462
11462
|
var FactoryTool;
|
|
11463
11463
|
var init_factory = __esm({
|
|
11464
|
-
"
|
|
11464
|
+
"../execution/dist/tools/factory.js"() {
|
|
11465
11465
|
"use strict";
|
|
11466
11466
|
FactoryTool = class {
|
|
11467
11467
|
name = "factory";
|
|
@@ -11709,7 +11709,7 @@ var init_factory = __esm({
|
|
|
11709
11709
|
}
|
|
11710
11710
|
});
|
|
11711
11711
|
|
|
11712
|
-
//
|
|
11712
|
+
// ../execution/dist/tools/cron-agent.js
|
|
11713
11713
|
import { execSync as execSync21 } from "node:child_process";
|
|
11714
11714
|
import { readFile as readFile12, writeFile as writeFile11, mkdir as mkdir7 } from "node:fs/promises";
|
|
11715
11715
|
import { resolve as resolve25, join as join29 } from "node:path";
|
|
@@ -11843,7 +11843,7 @@ async function saveStore2(workingDir, store) {
|
|
|
11843
11843
|
}
|
|
11844
11844
|
var LONG_HORIZON_PRESETS, CRON_AGENT_MARKER, CronAgentTool;
|
|
11845
11845
|
var init_cron_agent = __esm({
|
|
11846
|
-
"
|
|
11846
|
+
"../execution/dist/tools/cron-agent.js"() {
|
|
11847
11847
|
"use strict";
|
|
11848
11848
|
LONG_HORIZON_PRESETS = {
|
|
11849
11849
|
"every hour": "0 * * * *",
|
|
@@ -12174,7 +12174,7 @@ ${truncated}`, durationMs: performance.now() - start };
|
|
|
12174
12174
|
}
|
|
12175
12175
|
});
|
|
12176
12176
|
|
|
12177
|
-
//
|
|
12177
|
+
// ../execution/dist/tools/nexus.js
|
|
12178
12178
|
import { readFile as readFile13, writeFile as writeFile12, mkdir as mkdir8, chmod, unlink, readdir as readdir3, open as fsOpen } from "node:fs/promises";
|
|
12179
12179
|
import { existsSync as existsSync23, readFileSync as readFileSync16, watch as fsWatchLocal } from "node:fs";
|
|
12180
12180
|
import { resolve as resolve26, join as join30 } from "node:path";
|
|
@@ -12190,7 +12190,7 @@ function containsKeyMaterial(input) {
|
|
|
12190
12190
|
}
|
|
12191
12191
|
var DAEMON_SCRIPT, KEY_PATTERNS, NexusTool;
|
|
12192
12192
|
var init_nexus = __esm({
|
|
12193
|
-
"
|
|
12193
|
+
"../execution/dist/tools/nexus.js"() {
|
|
12194
12194
|
"use strict";
|
|
12195
12195
|
DAEMON_SCRIPT = `#!/usr/bin/env node
|
|
12196
12196
|
/**
|
|
@@ -15217,7 +15217,7 @@ process.on('SIGINT', () => process.emit('SIGTERM'));
|
|
|
15217
15217
|
}
|
|
15218
15218
|
});
|
|
15219
15219
|
|
|
15220
|
-
//
|
|
15220
|
+
// ../execution/dist/shellRunner.js
|
|
15221
15221
|
import { spawn as spawn12 } from "node:child_process";
|
|
15222
15222
|
async function runShell(options) {
|
|
15223
15223
|
const { command, args = [], cwd: cwd4, env, timeoutMs = DEFAULT_TIMEOUT_MS } = options;
|
|
@@ -15271,13 +15271,13 @@ async function runShell(options) {
|
|
|
15271
15271
|
}
|
|
15272
15272
|
var DEFAULT_TIMEOUT_MS;
|
|
15273
15273
|
var init_shellRunner = __esm({
|
|
15274
|
-
"
|
|
15274
|
+
"../execution/dist/shellRunner.js"() {
|
|
15275
15275
|
"use strict";
|
|
15276
15276
|
DEFAULT_TIMEOUT_MS = 6e4;
|
|
15277
15277
|
}
|
|
15278
15278
|
});
|
|
15279
15279
|
|
|
15280
|
-
//
|
|
15280
|
+
// ../execution/dist/gitWorktree.js
|
|
15281
15281
|
async function createWorktree(options) {
|
|
15282
15282
|
const { repoPath, worktreePath, branch, timeoutMs = DEFAULT_GIT_TIMEOUT_MS } = options;
|
|
15283
15283
|
const result = await runShell({
|
|
@@ -15314,14 +15314,14 @@ async function removeWorktree(options) {
|
|
|
15314
15314
|
}
|
|
15315
15315
|
var DEFAULT_GIT_TIMEOUT_MS;
|
|
15316
15316
|
var init_gitWorktree = __esm({
|
|
15317
|
-
"
|
|
15317
|
+
"../execution/dist/gitWorktree.js"() {
|
|
15318
15318
|
"use strict";
|
|
15319
15319
|
init_shellRunner();
|
|
15320
15320
|
DEFAULT_GIT_TIMEOUT_MS = 3e4;
|
|
15321
15321
|
}
|
|
15322
15322
|
});
|
|
15323
15323
|
|
|
15324
|
-
//
|
|
15324
|
+
// ../execution/dist/patchApplier.js
|
|
15325
15325
|
import { readFileSync as readFileSync17, writeFileSync as writeFileSync7, existsSync as existsSync24, mkdirSync as mkdirSync7 } from "node:fs";
|
|
15326
15326
|
import { dirname as dirname11 } from "node:path";
|
|
15327
15327
|
import { spawn as spawn13 } from "node:child_process";
|
|
@@ -15398,12 +15398,12 @@ function runWithStdin(options) {
|
|
|
15398
15398
|
});
|
|
15399
15399
|
}
|
|
15400
15400
|
var init_patchApplier = __esm({
|
|
15401
|
-
"
|
|
15401
|
+
"../execution/dist/patchApplier.js"() {
|
|
15402
15402
|
"use strict";
|
|
15403
15403
|
}
|
|
15404
15404
|
});
|
|
15405
15405
|
|
|
15406
|
-
//
|
|
15406
|
+
// ../execution/dist/formatterRunner.js
|
|
15407
15407
|
function buildFormatterCommand(formatter, extraArgs) {
|
|
15408
15408
|
switch (formatter) {
|
|
15409
15409
|
case "prettier":
|
|
@@ -15454,13 +15454,13 @@ async function runFormatter(options) {
|
|
|
15454
15454
|
};
|
|
15455
15455
|
}
|
|
15456
15456
|
var init_formatterRunner = __esm({
|
|
15457
|
-
"
|
|
15457
|
+
"../execution/dist/formatterRunner.js"() {
|
|
15458
15458
|
"use strict";
|
|
15459
15459
|
init_shellRunner();
|
|
15460
15460
|
}
|
|
15461
15461
|
});
|
|
15462
15462
|
|
|
15463
|
-
//
|
|
15463
|
+
// ../execution/dist/linterRunner.js
|
|
15464
15464
|
function buildLinterCommand(linter, extraArgs) {
|
|
15465
15465
|
switch (linter) {
|
|
15466
15466
|
case "eslint":
|
|
@@ -15516,13 +15516,13 @@ async function runLinter(options) {
|
|
|
15516
15516
|
};
|
|
15517
15517
|
}
|
|
15518
15518
|
var init_linterRunner = __esm({
|
|
15519
|
-
"
|
|
15519
|
+
"../execution/dist/linterRunner.js"() {
|
|
15520
15520
|
"use strict";
|
|
15521
15521
|
init_shellRunner();
|
|
15522
15522
|
}
|
|
15523
15523
|
});
|
|
15524
15524
|
|
|
15525
|
-
//
|
|
15525
|
+
// ../execution/dist/typecheckRunner.js
|
|
15526
15526
|
function buildTypecheckerCommand(typechecker, extraArgs) {
|
|
15527
15527
|
switch (typechecker) {
|
|
15528
15528
|
case "tsc":
|
|
@@ -15568,13 +15568,13 @@ async function runTypecheck(options) {
|
|
|
15568
15568
|
};
|
|
15569
15569
|
}
|
|
15570
15570
|
var init_typecheckRunner = __esm({
|
|
15571
|
-
"
|
|
15571
|
+
"../execution/dist/typecheckRunner.js"() {
|
|
15572
15572
|
"use strict";
|
|
15573
15573
|
init_shellRunner();
|
|
15574
15574
|
}
|
|
15575
15575
|
});
|
|
15576
15576
|
|
|
15577
|
-
//
|
|
15577
|
+
// ../execution/dist/testRunner.js
|
|
15578
15578
|
function buildTestRunnerCommand(testRunner, extraArgs) {
|
|
15579
15579
|
switch (testRunner) {
|
|
15580
15580
|
case "jest":
|
|
@@ -15630,13 +15630,13 @@ async function runTests(options) {
|
|
|
15630
15630
|
};
|
|
15631
15631
|
}
|
|
15632
15632
|
var init_testRunner = __esm({
|
|
15633
|
-
"
|
|
15633
|
+
"../execution/dist/testRunner.js"() {
|
|
15634
15634
|
"use strict";
|
|
15635
15635
|
init_shellRunner();
|
|
15636
15636
|
}
|
|
15637
15637
|
});
|
|
15638
15638
|
|
|
15639
|
-
//
|
|
15639
|
+
// ../execution/dist/buildRunner.js
|
|
15640
15640
|
function buildBuilderCommand(profile, extraArgs) {
|
|
15641
15641
|
switch (profile.builder) {
|
|
15642
15642
|
case "tsc":
|
|
@@ -15703,13 +15703,13 @@ async function runBuild(options) {
|
|
|
15703
15703
|
};
|
|
15704
15704
|
}
|
|
15705
15705
|
var init_buildRunner = __esm({
|
|
15706
|
-
"
|
|
15706
|
+
"../execution/dist/buildRunner.js"() {
|
|
15707
15707
|
"use strict";
|
|
15708
15708
|
init_shellRunner();
|
|
15709
15709
|
}
|
|
15710
15710
|
});
|
|
15711
15711
|
|
|
15712
|
-
//
|
|
15712
|
+
// ../execution/dist/validationPipeline.js
|
|
15713
15713
|
async function runValidationPipeline(config) {
|
|
15714
15714
|
const { projectRoot, profile, stopOnFirstFailure = true } = config;
|
|
15715
15715
|
const formatterProfile = {
|
|
@@ -15805,7 +15805,7 @@ async function runValidationPipeline(config) {
|
|
|
15805
15805
|
};
|
|
15806
15806
|
}
|
|
15807
15807
|
var init_validationPipeline = __esm({
|
|
15808
|
-
"
|
|
15808
|
+
"../execution/dist/validationPipeline.js"() {
|
|
15809
15809
|
"use strict";
|
|
15810
15810
|
init_formatterRunner();
|
|
15811
15811
|
init_linterRunner();
|
|
@@ -15815,7 +15815,7 @@ var init_validationPipeline = __esm({
|
|
|
15815
15815
|
}
|
|
15816
15816
|
});
|
|
15817
15817
|
|
|
15818
|
-
//
|
|
15818
|
+
// ../execution/dist/index.js
|
|
15819
15819
|
var dist_exports = {};
|
|
15820
15820
|
__export(dist_exports, {
|
|
15821
15821
|
AgendaTool: () => AgendaTool,
|
|
@@ -15908,7 +15908,7 @@ __export(dist_exports, {
|
|
|
15908
15908
|
setSudoPassword: () => setSudoPassword
|
|
15909
15909
|
});
|
|
15910
15910
|
var init_dist2 = __esm({
|
|
15911
|
-
"
|
|
15911
|
+
"../execution/dist/index.js"() {
|
|
15912
15912
|
"use strict";
|
|
15913
15913
|
init_tool_executor();
|
|
15914
15914
|
init_shell();
|
|
@@ -15970,9 +15970,9 @@ var init_dist2 = __esm({
|
|
|
15970
15970
|
}
|
|
15971
15971
|
});
|
|
15972
15972
|
|
|
15973
|
-
//
|
|
15973
|
+
// ../orchestrator/dist/agent-loop.js
|
|
15974
15974
|
var init_agent_loop = __esm({
|
|
15975
|
-
"
|
|
15975
|
+
"../orchestrator/dist/agent-loop.js"() {
|
|
15976
15976
|
"use strict";
|
|
15977
15977
|
init_dist();
|
|
15978
15978
|
init_dist2();
|
|
@@ -15980,11 +15980,11 @@ var init_agent_loop = __esm({
|
|
|
15980
15980
|
}
|
|
15981
15981
|
});
|
|
15982
15982
|
|
|
15983
|
-
//
|
|
15983
|
+
// ../schemas/dist/messages.js
|
|
15984
15984
|
import { z } from "zod";
|
|
15985
15985
|
var AgentMessageSchema;
|
|
15986
15986
|
var init_messages = __esm({
|
|
15987
|
-
"
|
|
15987
|
+
"../schemas/dist/messages.js"() {
|
|
15988
15988
|
"use strict";
|
|
15989
15989
|
AgentMessageSchema = z.object({
|
|
15990
15990
|
id: z.string().uuid(),
|
|
@@ -15997,11 +15997,11 @@ var init_messages = __esm({
|
|
|
15997
15997
|
}
|
|
15998
15998
|
});
|
|
15999
15999
|
|
|
16000
|
-
//
|
|
16000
|
+
// ../schemas/dist/tools.js
|
|
16001
16001
|
import { z as z2 } from "zod";
|
|
16002
16002
|
var ToolCallSchema;
|
|
16003
16003
|
var init_tools = __esm({
|
|
16004
|
-
"
|
|
16004
|
+
"../schemas/dist/tools.js"() {
|
|
16005
16005
|
"use strict";
|
|
16006
16006
|
ToolCallSchema = z2.object({
|
|
16007
16007
|
id: z2.string().uuid(),
|
|
@@ -16015,11 +16015,11 @@ var init_tools = __esm({
|
|
|
16015
16015
|
}
|
|
16016
16016
|
});
|
|
16017
16017
|
|
|
16018
|
-
//
|
|
16018
|
+
// ../schemas/dist/session.js
|
|
16019
16019
|
import { z as z3 } from "zod";
|
|
16020
16020
|
var SessionSchema;
|
|
16021
16021
|
var init_session = __esm({
|
|
16022
|
-
"
|
|
16022
|
+
"../schemas/dist/session.js"() {
|
|
16023
16023
|
"use strict";
|
|
16024
16024
|
SessionSchema = z3.object({
|
|
16025
16025
|
id: z3.string().uuid(),
|
|
@@ -16033,11 +16033,11 @@ var init_session = __esm({
|
|
|
16033
16033
|
}
|
|
16034
16034
|
});
|
|
16035
16035
|
|
|
16036
|
-
//
|
|
16036
|
+
// ../schemas/dist/task.js
|
|
16037
16037
|
import { z as z4 } from "zod";
|
|
16038
16038
|
var TaskClassSchema, UrgencySchema, NormalizedTaskSchema, TaskStatusSchema;
|
|
16039
16039
|
var init_task = __esm({
|
|
16040
|
-
"
|
|
16040
|
+
"../schemas/dist/task.js"() {
|
|
16041
16041
|
"use strict";
|
|
16042
16042
|
TaskClassSchema = z4.enum([
|
|
16043
16043
|
"bugfix",
|
|
@@ -16082,11 +16082,11 @@ var init_task = __esm({
|
|
|
16082
16082
|
}
|
|
16083
16083
|
});
|
|
16084
16084
|
|
|
16085
|
-
//
|
|
16085
|
+
// ../schemas/dist/plan.js
|
|
16086
16086
|
import { z as z5 } from "zod";
|
|
16087
16087
|
var SubtaskKindSchema, SubtaskSchema, PlanSchema;
|
|
16088
16088
|
var init_plan = __esm({
|
|
16089
|
-
"
|
|
16089
|
+
"../schemas/dist/plan.js"() {
|
|
16090
16090
|
"use strict";
|
|
16091
16091
|
SubtaskKindSchema = z5.enum([
|
|
16092
16092
|
"inspect",
|
|
@@ -16120,11 +16120,11 @@ var init_plan = __esm({
|
|
|
16120
16120
|
}
|
|
16121
16121
|
});
|
|
16122
16122
|
|
|
16123
|
-
//
|
|
16123
|
+
// ../schemas/dist/patch.js
|
|
16124
16124
|
import { z as z6 } from "zod";
|
|
16125
16125
|
var EditOperationSchema, FileEditSchema, NeedsMoreContextSchema, PatchProposalSchema;
|
|
16126
16126
|
var init_patch = __esm({
|
|
16127
|
-
"
|
|
16127
|
+
"../schemas/dist/patch.js"() {
|
|
16128
16128
|
"use strict";
|
|
16129
16129
|
EditOperationSchema = z6.enum([
|
|
16130
16130
|
"diff",
|
|
@@ -16163,11 +16163,11 @@ var init_patch = __esm({
|
|
|
16163
16163
|
}
|
|
16164
16164
|
});
|
|
16165
16165
|
|
|
16166
|
-
//
|
|
16166
|
+
// ../schemas/dist/verification.js
|
|
16167
16167
|
import { z as z7 } from "zod";
|
|
16168
16168
|
var VerificationStatusSchema, VerificationNextActionSchema, VerificationDecisionSchema;
|
|
16169
16169
|
var init_verification = __esm({
|
|
16170
|
-
"
|
|
16170
|
+
"../schemas/dist/verification.js"() {
|
|
16171
16171
|
"use strict";
|
|
16172
16172
|
VerificationStatusSchema = z7.enum(["pass", "fail", "partial"]);
|
|
16173
16173
|
VerificationNextActionSchema = z7.enum([
|
|
@@ -16192,11 +16192,11 @@ var init_verification = __esm({
|
|
|
16192
16192
|
}
|
|
16193
16193
|
});
|
|
16194
16194
|
|
|
16195
|
-
//
|
|
16195
|
+
// ../schemas/dist/repoProfile.js
|
|
16196
16196
|
import { z as z8 } from "zod";
|
|
16197
16197
|
var LanguageSchema, PackageManagerSchema, BuildSystemSchema, MigrationSystemSchema, RepoProfileSchema;
|
|
16198
16198
|
var init_repoProfile = __esm({
|
|
16199
|
-
"
|
|
16199
|
+
"../schemas/dist/repoProfile.js"() {
|
|
16200
16200
|
"use strict";
|
|
16201
16201
|
LanguageSchema = z8.enum([
|
|
16202
16202
|
"typescript",
|
|
@@ -16274,11 +16274,11 @@ var init_repoProfile = __esm({
|
|
|
16274
16274
|
}
|
|
16275
16275
|
});
|
|
16276
16276
|
|
|
16277
|
-
//
|
|
16277
|
+
// ../schemas/dist/retrieval.js
|
|
16278
16278
|
import { z as z9 } from "zod";
|
|
16279
16279
|
var RetrievalRequestSchema, SnippetSchema, RetrievalPacketSchema;
|
|
16280
16280
|
var init_retrieval = __esm({
|
|
16281
|
-
"
|
|
16281
|
+
"../schemas/dist/retrieval.js"() {
|
|
16282
16282
|
"use strict";
|
|
16283
16283
|
RetrievalRequestSchema = z9.object({
|
|
16284
16284
|
/** Natural language description of what information is needed */
|
|
@@ -16326,11 +16326,11 @@ var init_retrieval = __esm({
|
|
|
16326
16326
|
}
|
|
16327
16327
|
});
|
|
16328
16328
|
|
|
16329
|
-
//
|
|
16329
|
+
// ../schemas/dist/dispatch.js
|
|
16330
16330
|
import { z as z10 } from "zod";
|
|
16331
16331
|
var DispatchModeSchema, TaskComplexitySchema, AgentRoleSchema, BudgetsSchema, DispatchDecisionSchema;
|
|
16332
16332
|
var init_dispatch = __esm({
|
|
16333
|
-
"
|
|
16333
|
+
"../schemas/dist/dispatch.js"() {
|
|
16334
16334
|
"use strict";
|
|
16335
16335
|
DispatchModeSchema = z10.enum([
|
|
16336
16336
|
"single_pass",
|
|
@@ -16364,11 +16364,11 @@ var init_dispatch = __esm({
|
|
|
16364
16364
|
}
|
|
16365
16365
|
});
|
|
16366
16366
|
|
|
16367
|
-
//
|
|
16367
|
+
// ../schemas/dist/memory.js
|
|
16368
16368
|
import { z as z11 } from "zod";
|
|
16369
16369
|
var RiskLevelSchema, FileSummarySchema, FailureCategorySchema, FailureFingerprintSchema, TaskMemorySchema;
|
|
16370
16370
|
var init_memory = __esm({
|
|
16371
|
-
"
|
|
16371
|
+
"../schemas/dist/memory.js"() {
|
|
16372
16372
|
"use strict";
|
|
16373
16373
|
RiskLevelSchema = z11.enum(["low", "medium", "high", "critical"]);
|
|
16374
16374
|
FileSummarySchema = z11.object({
|
|
@@ -16444,11 +16444,11 @@ var init_memory = __esm({
|
|
|
16444
16444
|
}
|
|
16445
16445
|
});
|
|
16446
16446
|
|
|
16447
|
-
//
|
|
16447
|
+
// ../schemas/dist/backend.js
|
|
16448
16448
|
import { z as z12 } from "zod";
|
|
16449
16449
|
var MessageRoleSchema, ChatMessageSchema, CompletionRequestSchema, TokenUsageSchema, CompletionResponseSchema, StructuredCompletionRequestSchema, BackendHealthSchema, BackendMetricsSchema;
|
|
16450
16450
|
var init_backend = __esm({
|
|
16451
|
-
"
|
|
16451
|
+
"../schemas/dist/backend.js"() {
|
|
16452
16452
|
"use strict";
|
|
16453
16453
|
MessageRoleSchema = z12.enum([
|
|
16454
16454
|
"system",
|
|
@@ -16533,11 +16533,11 @@ var init_backend = __esm({
|
|
|
16533
16533
|
}
|
|
16534
16534
|
});
|
|
16535
16535
|
|
|
16536
|
-
//
|
|
16536
|
+
// ../schemas/dist/config.js
|
|
16537
16537
|
import { z as z13 } from "zod";
|
|
16538
16538
|
var AgentConfigSchema;
|
|
16539
16539
|
var init_config2 = __esm({
|
|
16540
|
-
"
|
|
16540
|
+
"../schemas/dist/config.js"() {
|
|
16541
16541
|
"use strict";
|
|
16542
16542
|
AgentConfigSchema = z13.object({
|
|
16543
16543
|
// -----------------------------------------------------------------------
|
|
@@ -16596,11 +16596,11 @@ var init_config2 = __esm({
|
|
|
16596
16596
|
}
|
|
16597
16597
|
});
|
|
16598
16598
|
|
|
16599
|
-
//
|
|
16599
|
+
// ../schemas/dist/queue.js
|
|
16600
16600
|
import { z as z14 } from "zod";
|
|
16601
16601
|
var QueueClassSchema;
|
|
16602
16602
|
var init_queue = __esm({
|
|
16603
|
-
"
|
|
16603
|
+
"../schemas/dist/queue.js"() {
|
|
16604
16604
|
"use strict";
|
|
16605
16605
|
QueueClassSchema = z14.enum([
|
|
16606
16606
|
/** CLI and direct user-facing requests; lowest latency target */
|
|
@@ -16619,9 +16619,9 @@ var init_queue = __esm({
|
|
|
16619
16619
|
}
|
|
16620
16620
|
});
|
|
16621
16621
|
|
|
16622
|
-
//
|
|
16622
|
+
// ../schemas/dist/index.js
|
|
16623
16623
|
var init_dist3 = __esm({
|
|
16624
|
-
"
|
|
16624
|
+
"../schemas/dist/index.js"() {
|
|
16625
16625
|
"use strict";
|
|
16626
16626
|
init_messages();
|
|
16627
16627
|
init_tools();
|
|
@@ -16640,7 +16640,7 @@ var init_dist3 = __esm({
|
|
|
16640
16640
|
}
|
|
16641
16641
|
});
|
|
16642
16642
|
|
|
16643
|
-
//
|
|
16643
|
+
// ../orchestrator/dist/promptLoader.js
|
|
16644
16644
|
import { readFileSync as readFileSync18, existsSync as existsSync25 } from "node:fs";
|
|
16645
16645
|
import { join as join31, dirname as dirname12 } from "node:path";
|
|
16646
16646
|
import { fileURLToPath as fileURLToPath7 } from "node:url";
|
|
@@ -16660,7 +16660,7 @@ function loadPrompt(promptPath, vars) {
|
|
|
16660
16660
|
}
|
|
16661
16661
|
var __filename, __dirname4, PROMPTS_DIR, cache;
|
|
16662
16662
|
var init_promptLoader = __esm({
|
|
16663
|
-
"
|
|
16663
|
+
"../orchestrator/dist/promptLoader.js"() {
|
|
16664
16664
|
"use strict";
|
|
16665
16665
|
__filename = fileURLToPath7(import.meta.url);
|
|
16666
16666
|
__dirname4 = dirname12(__filename);
|
|
@@ -16669,7 +16669,7 @@ var init_promptLoader = __esm({
|
|
|
16669
16669
|
}
|
|
16670
16670
|
});
|
|
16671
16671
|
|
|
16672
|
-
//
|
|
16672
|
+
// ../orchestrator/dist/taskNormalizer.js
|
|
16673
16673
|
function parseJsonFromContent(content) {
|
|
16674
16674
|
const fencedMatch = content.match(/```(?:json)?\s*([\s\S]*?)```/);
|
|
16675
16675
|
const raw = fencedMatch ? fencedMatch[1] : content;
|
|
@@ -16684,7 +16684,7 @@ function normalizationPrompt(rawRequest, repoRoot) {
|
|
|
16684
16684
|
}
|
|
16685
16685
|
var TaskNormalizer;
|
|
16686
16686
|
var init_taskNormalizer = __esm({
|
|
16687
|
-
"
|
|
16687
|
+
"../orchestrator/dist/taskNormalizer.js"() {
|
|
16688
16688
|
"use strict";
|
|
16689
16689
|
init_dist3();
|
|
16690
16690
|
init_promptLoader();
|
|
@@ -16736,7 +16736,7 @@ var init_taskNormalizer = __esm({
|
|
|
16736
16736
|
}
|
|
16737
16737
|
});
|
|
16738
16738
|
|
|
16739
|
-
//
|
|
16739
|
+
// ../orchestrator/dist/dispatcher.js
|
|
16740
16740
|
function estimateComplexity(task) {
|
|
16741
16741
|
const text = `${task.goal} ${task.constraints.join(" ")} ${task.successCriteria.join(" ")}`;
|
|
16742
16742
|
const wordCount = text.split(/\s+/).length;
|
|
@@ -16803,7 +16803,7 @@ function parseJsonFromContent2(content) {
|
|
|
16803
16803
|
}
|
|
16804
16804
|
var Dispatcher;
|
|
16805
16805
|
var init_dispatcher = __esm({
|
|
16806
|
-
"
|
|
16806
|
+
"../orchestrator/dist/dispatcher.js"() {
|
|
16807
16807
|
"use strict";
|
|
16808
16808
|
init_dist3();
|
|
16809
16809
|
init_promptLoader();
|
|
@@ -16863,7 +16863,7 @@ var init_dispatcher = __esm({
|
|
|
16863
16863
|
}
|
|
16864
16864
|
});
|
|
16865
16865
|
|
|
16866
|
-
//
|
|
16866
|
+
// ../orchestrator/dist/plannerRunner.js
|
|
16867
16867
|
function plannerPrompt(task, repoProfile, retrievalPacket) {
|
|
16868
16868
|
const profileSection = repoProfile ? `REPOSITORY PROFILE:
|
|
16869
16869
|
${JSON.stringify(repoProfile, null, 2)}` : "REPOSITORY PROFILE: (not available)";
|
|
@@ -16884,7 +16884,7 @@ function parseJsonFromContent3(content) {
|
|
|
16884
16884
|
}
|
|
16885
16885
|
var PlannerRunner;
|
|
16886
16886
|
var init_plannerRunner = __esm({
|
|
16887
|
-
"
|
|
16887
|
+
"../orchestrator/dist/plannerRunner.js"() {
|
|
16888
16888
|
"use strict";
|
|
16889
16889
|
init_dist3();
|
|
16890
16890
|
init_promptLoader();
|
|
@@ -16937,12 +16937,12 @@ var init_plannerRunner = __esm({
|
|
|
16937
16937
|
}
|
|
16938
16938
|
});
|
|
16939
16939
|
|
|
16940
|
-
//
|
|
16940
|
+
// ../retrieval/dist/grep-search.js
|
|
16941
16941
|
import { execFile as execFile4 } from "node:child_process";
|
|
16942
16942
|
import { promisify as promisify3 } from "node:util";
|
|
16943
16943
|
var execFileAsync3, GrepSearch;
|
|
16944
16944
|
var init_grep_search2 = __esm({
|
|
16945
|
-
"
|
|
16945
|
+
"../retrieval/dist/grep-search.js"() {
|
|
16946
16946
|
"use strict";
|
|
16947
16947
|
execFileAsync3 = promisify3(execFile4);
|
|
16948
16948
|
GrepSearch = class {
|
|
@@ -16999,10 +16999,10 @@ var init_grep_search2 = __esm({
|
|
|
16999
16999
|
}
|
|
17000
17000
|
});
|
|
17001
17001
|
|
|
17002
|
-
//
|
|
17002
|
+
// ../retrieval/dist/code-retriever.js
|
|
17003
17003
|
var DEFAULT_CONFIG3, CodeRetriever;
|
|
17004
17004
|
var init_code_retriever = __esm({
|
|
17005
|
-
"
|
|
17005
|
+
"../retrieval/dist/code-retriever.js"() {
|
|
17006
17006
|
"use strict";
|
|
17007
17007
|
init_grep_search2();
|
|
17008
17008
|
DEFAULT_CONFIG3 = {
|
|
@@ -17040,7 +17040,7 @@ var init_code_retriever = __esm({
|
|
|
17040
17040
|
}
|
|
17041
17041
|
});
|
|
17042
17042
|
|
|
17043
|
-
//
|
|
17043
|
+
// ../retrieval/dist/lexicalSearch.js
|
|
17044
17044
|
import { execFile as execFile5 } from "node:child_process";
|
|
17045
17045
|
import { promisify as promisify4 } from "node:util";
|
|
17046
17046
|
import { readFile as readFile14, readdir as readdir4, stat as stat3 } from "node:fs/promises";
|
|
@@ -17218,7 +17218,7 @@ function matchesGlob(filePath, glob2) {
|
|
|
17218
17218
|
}
|
|
17219
17219
|
var execFileAsync4, DEFAULT_INCLUDE_GLOBS, DEFAULT_EXCLUDE_GLOBS, DEFAULT_MAX_MATCHES, ALWAYS_SKIP, ALL_CODE_EXTS;
|
|
17220
17220
|
var init_lexicalSearch = __esm({
|
|
17221
|
-
"
|
|
17221
|
+
"../retrieval/dist/lexicalSearch.js"() {
|
|
17222
17222
|
"use strict";
|
|
17223
17223
|
execFileAsync4 = promisify4(execFile5);
|
|
17224
17224
|
DEFAULT_INCLUDE_GLOBS = ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx", "**/*.py"];
|
|
@@ -17229,7 +17229,7 @@ var init_lexicalSearch = __esm({
|
|
|
17229
17229
|
}
|
|
17230
17230
|
});
|
|
17231
17231
|
|
|
17232
|
-
//
|
|
17232
|
+
// ../retrieval/dist/semanticSearch.js
|
|
17233
17233
|
function parseTagFilter(query) {
|
|
17234
17234
|
const required = [];
|
|
17235
17235
|
const anyOf = [];
|
|
@@ -17306,7 +17306,7 @@ function makePlaceholderSummary(filePath) {
|
|
|
17306
17306
|
}
|
|
17307
17307
|
var StubSemanticSearchEngine, IndexBackedSemanticSearchEngine, LazySemanticSearchEngine;
|
|
17308
17308
|
var init_semanticSearch = __esm({
|
|
17309
|
-
"
|
|
17309
|
+
"../retrieval/dist/semanticSearch.js"() {
|
|
17310
17310
|
"use strict";
|
|
17311
17311
|
StubSemanticSearchEngine = class {
|
|
17312
17312
|
isAvailable = false;
|
|
@@ -17426,7 +17426,7 @@ var init_semanticSearch = __esm({
|
|
|
17426
17426
|
}
|
|
17427
17427
|
});
|
|
17428
17428
|
|
|
17429
|
-
//
|
|
17429
|
+
// ../retrieval/dist/graphExpand.js
|
|
17430
17430
|
function expandGraph(seeds, graph, opts = {}) {
|
|
17431
17431
|
const { direction = "both", maxHops = 1, maxNeighbors = 20, includeSeeds = false } = opts;
|
|
17432
17432
|
const seedSet = new Set(seeds);
|
|
@@ -17486,12 +17486,12 @@ function bfsExpand(seeds, adjacency, maxHops, maxNeighbors, excludeSet, result)
|
|
|
17486
17486
|
}
|
|
17487
17487
|
}
|
|
17488
17488
|
var init_graphExpand = __esm({
|
|
17489
|
-
"
|
|
17489
|
+
"../retrieval/dist/graphExpand.js"() {
|
|
17490
17490
|
"use strict";
|
|
17491
17491
|
}
|
|
17492
17492
|
});
|
|
17493
17493
|
|
|
17494
|
-
//
|
|
17494
|
+
// ../retrieval/dist/snippetPacker.js
|
|
17495
17495
|
import { readFile as readFile15 } from "node:fs/promises";
|
|
17496
17496
|
import { join as join33 } from "node:path";
|
|
17497
17497
|
async function packSnippets(requests, opts = {}) {
|
|
@@ -17554,7 +17554,7 @@ async function packFiles(filePaths, repoRoot, maxTokens = DEFAULT_MAX_TOKENS) {
|
|
|
17554
17554
|
}
|
|
17555
17555
|
var DEFAULT_MAX_TOKENS, DEFAULT_CONTEXT_LINES, CHARS_PER_TOKEN;
|
|
17556
17556
|
var init_snippetPacker = __esm({
|
|
17557
|
-
"
|
|
17557
|
+
"../retrieval/dist/snippetPacker.js"() {
|
|
17558
17558
|
"use strict";
|
|
17559
17559
|
DEFAULT_MAX_TOKENS = 32e3;
|
|
17560
17560
|
DEFAULT_CONTEXT_LINES = 2;
|
|
@@ -17562,7 +17562,7 @@ var init_snippetPacker = __esm({
|
|
|
17562
17562
|
}
|
|
17563
17563
|
});
|
|
17564
17564
|
|
|
17565
|
-
//
|
|
17565
|
+
// ../retrieval/dist/contextAssembler.js
|
|
17566
17566
|
async function assembleContext(request, opts) {
|
|
17567
17567
|
const { repoRoot, graph, semanticEngine, summaryMap, maxFiles = 8, maxSnippets = 20, maxLogs = 3, maxTokens = 24e3, expandNeighbors = true, architectureNote, priorAttemptNote } = opts;
|
|
17568
17568
|
const lexOpts = {
|
|
@@ -17718,7 +17718,7 @@ function estimatePacketTokens(packet) {
|
|
|
17718
17718
|
return fileTokens + snippetTokens;
|
|
17719
17719
|
}
|
|
17720
17720
|
var init_contextAssembler = __esm({
|
|
17721
|
-
"
|
|
17721
|
+
"../retrieval/dist/contextAssembler.js"() {
|
|
17722
17722
|
"use strict";
|
|
17723
17723
|
init_lexicalSearch();
|
|
17724
17724
|
init_graphExpand();
|
|
@@ -17726,7 +17726,7 @@ var init_contextAssembler = __esm({
|
|
|
17726
17726
|
}
|
|
17727
17727
|
});
|
|
17728
17728
|
|
|
17729
|
-
//
|
|
17729
|
+
// ../retrieval/dist/index.js
|
|
17730
17730
|
var dist_exports2 = {};
|
|
17731
17731
|
__export(dist_exports2, {
|
|
17732
17732
|
CodeRetriever: () => CodeRetriever,
|
|
@@ -17751,7 +17751,7 @@ __export(dist_exports2, {
|
|
|
17751
17751
|
testsForFiles: () => testsForFiles
|
|
17752
17752
|
});
|
|
17753
17753
|
var init_dist4 = __esm({
|
|
17754
|
-
"
|
|
17754
|
+
"../retrieval/dist/index.js"() {
|
|
17755
17755
|
"use strict";
|
|
17756
17756
|
init_code_retriever();
|
|
17757
17757
|
init_grep_search2();
|
|
@@ -17763,7 +17763,7 @@ var init_dist4 = __esm({
|
|
|
17763
17763
|
}
|
|
17764
17764
|
});
|
|
17765
17765
|
|
|
17766
|
-
//
|
|
17766
|
+
// ../orchestrator/dist/scoutRunner.js
|
|
17767
17767
|
async function loadCodeRetriever(rootDir) {
|
|
17768
17768
|
const mod = await Promise.resolve().then(() => (init_dist4(), dist_exports2));
|
|
17769
17769
|
return new mod.CodeRetriever({ rootDir });
|
|
@@ -17794,7 +17794,7 @@ function scoutPrompt(task, repoProfile, candidateFiles, subtasks) {
|
|
|
17794
17794
|
}
|
|
17795
17795
|
var ScoutRunner;
|
|
17796
17796
|
var init_scoutRunner = __esm({
|
|
17797
|
-
"
|
|
17797
|
+
"../orchestrator/dist/scoutRunner.js"() {
|
|
17798
17798
|
"use strict";
|
|
17799
17799
|
init_dist3();
|
|
17800
17800
|
init_promptLoader();
|
|
@@ -17900,7 +17900,7 @@ var init_scoutRunner = __esm({
|
|
|
17900
17900
|
}
|
|
17901
17901
|
});
|
|
17902
17902
|
|
|
17903
|
-
//
|
|
17903
|
+
// ../orchestrator/dist/editorRunner.js
|
|
17904
17904
|
function editorPrompt(task, subtask, retrievalPacket, previousVerification, retryNumber) {
|
|
17905
17905
|
const filesSection = Object.entries(retrievalPacket.files).map(([path, content]) => `=== ${path} ===
|
|
17906
17906
|
${content}`).join("\n\n");
|
|
@@ -17928,7 +17928,7 @@ function parseJsonFromContent5(content) {
|
|
|
17928
17928
|
}
|
|
17929
17929
|
var EditorRunner;
|
|
17930
17930
|
var init_editorRunner = __esm({
|
|
17931
|
-
"
|
|
17931
|
+
"../orchestrator/dist/editorRunner.js"() {
|
|
17932
17932
|
"use strict";
|
|
17933
17933
|
init_dist3();
|
|
17934
17934
|
init_promptLoader();
|
|
@@ -17986,7 +17986,7 @@ var init_editorRunner = __esm({
|
|
|
17986
17986
|
}
|
|
17987
17987
|
});
|
|
17988
17988
|
|
|
17989
|
-
//
|
|
17989
|
+
// ../orchestrator/dist/verifierRunner.js
|
|
17990
17990
|
function verifierPrompt(task, subtask, patch, toolOutput) {
|
|
17991
17991
|
const toolSection = toolOutput ? `TOOL EXECUTION OUTPUT:
|
|
17992
17992
|
${toolOutput}` : "TOOL EXECUTION OUTPUT: (not executed)";
|
|
@@ -18014,7 +18014,7 @@ function parseJsonFromContent6(content) {
|
|
|
18014
18014
|
}
|
|
18015
18015
|
var VerifierRunner;
|
|
18016
18016
|
var init_verifierRunner = __esm({
|
|
18017
|
-
"
|
|
18017
|
+
"../orchestrator/dist/verifierRunner.js"() {
|
|
18018
18018
|
"use strict";
|
|
18019
18019
|
init_dist3();
|
|
18020
18020
|
init_promptLoader();
|
|
@@ -18109,10 +18109,10 @@ FAILED: ${execError.stderr ?? execError.stdout ?? execError.message ?? "unknown
|
|
|
18109
18109
|
}
|
|
18110
18110
|
});
|
|
18111
18111
|
|
|
18112
|
-
//
|
|
18112
|
+
// ../orchestrator/dist/mergeRunner.js
|
|
18113
18113
|
var MergeRunner;
|
|
18114
18114
|
var init_mergeRunner = __esm({
|
|
18115
|
-
"
|
|
18115
|
+
"../orchestrator/dist/mergeRunner.js"() {
|
|
18116
18116
|
"use strict";
|
|
18117
18117
|
init_promptLoader();
|
|
18118
18118
|
MergeRunner = class {
|
|
@@ -18197,10 +18197,10 @@ var init_mergeRunner = __esm({
|
|
|
18197
18197
|
}
|
|
18198
18198
|
});
|
|
18199
18199
|
|
|
18200
|
-
//
|
|
18200
|
+
// ../orchestrator/dist/retryController.js
|
|
18201
18201
|
var RetryController;
|
|
18202
18202
|
var init_retryController = __esm({
|
|
18203
|
-
"
|
|
18203
|
+
"../orchestrator/dist/retryController.js"() {
|
|
18204
18204
|
"use strict";
|
|
18205
18205
|
RetryController = class {
|
|
18206
18206
|
maxRetries;
|
|
@@ -18297,7 +18297,7 @@ var init_retryController = __esm({
|
|
|
18297
18297
|
}
|
|
18298
18298
|
});
|
|
18299
18299
|
|
|
18300
|
-
//
|
|
18300
|
+
// ../orchestrator/dist/ralphLoop.js
|
|
18301
18301
|
function isoNow() {
|
|
18302
18302
|
return (/* @__PURE__ */ new Date()).toISOString();
|
|
18303
18303
|
}
|
|
@@ -18345,7 +18345,7 @@ function deriveTerminalStatus(executions) {
|
|
|
18345
18345
|
}
|
|
18346
18346
|
var RalphLoop;
|
|
18347
18347
|
var init_ralphLoop = __esm({
|
|
18348
|
-
"
|
|
18348
|
+
"../orchestrator/dist/ralphLoop.js"() {
|
|
18349
18349
|
"use strict";
|
|
18350
18350
|
init_taskNormalizer();
|
|
18351
18351
|
init_dispatcher();
|
|
@@ -18628,7 +18628,7 @@ var init_ralphLoop = __esm({
|
|
|
18628
18628
|
}
|
|
18629
18629
|
});
|
|
18630
18630
|
|
|
18631
|
-
//
|
|
18631
|
+
// ../orchestrator/dist/personality.js
|
|
18632
18632
|
function compilePersonalityPrompt(profile, presetName) {
|
|
18633
18633
|
if (presetName === "stark") {
|
|
18634
18634
|
return loadPrompt("personality/level-stark.md");
|
|
@@ -18656,7 +18656,7 @@ function getPreset(name) {
|
|
|
18656
18656
|
}
|
|
18657
18657
|
var PERSONALITY_PRESETS, PRESET_NAMES;
|
|
18658
18658
|
var init_personality = __esm({
|
|
18659
|
-
"
|
|
18659
|
+
"../orchestrator/dist/personality.js"() {
|
|
18660
18660
|
"use strict";
|
|
18661
18661
|
init_promptLoader();
|
|
18662
18662
|
PERSONALITY_PRESETS = {
|
|
@@ -18677,7 +18677,7 @@ var init_personality = __esm({
|
|
|
18677
18677
|
}
|
|
18678
18678
|
});
|
|
18679
18679
|
|
|
18680
|
-
//
|
|
18680
|
+
// ../orchestrator/dist/agenticRunner.js
|
|
18681
18681
|
function repairJson(raw) {
|
|
18682
18682
|
if (!raw || typeof raw !== "string")
|
|
18683
18683
|
return null;
|
|
@@ -18743,7 +18743,7 @@ function getSystemPromptForTier(tier) {
|
|
|
18743
18743
|
}
|
|
18744
18744
|
var SYSTEM_PROMPT, SYSTEM_PROMPT_MEDIUM, SYSTEM_PROMPT_SMALL, AgenticRunner, OllamaAgenticBackend;
|
|
18745
18745
|
var init_agenticRunner = __esm({
|
|
18746
|
-
"
|
|
18746
|
+
"../orchestrator/dist/agenticRunner.js"() {
|
|
18747
18747
|
"use strict";
|
|
18748
18748
|
init_dist();
|
|
18749
18749
|
init_personality();
|
|
@@ -21339,10 +21339,10 @@ ${transcript}`
|
|
|
21339
21339
|
}
|
|
21340
21340
|
});
|
|
21341
21341
|
|
|
21342
|
-
//
|
|
21342
|
+
// ../orchestrator/dist/nexusBackend.js
|
|
21343
21343
|
var NexusAgenticBackend;
|
|
21344
21344
|
var init_nexusBackend = __esm({
|
|
21345
|
-
"
|
|
21345
|
+
"../orchestrator/dist/nexusBackend.js"() {
|
|
21346
21346
|
"use strict";
|
|
21347
21347
|
NexusAgenticBackend = class _NexusAgenticBackend {
|
|
21348
21348
|
sendFn;
|
|
@@ -21533,10 +21533,10 @@ var init_nexusBackend = __esm({
|
|
|
21533
21533
|
}
|
|
21534
21534
|
});
|
|
21535
21535
|
|
|
21536
|
-
//
|
|
21536
|
+
// ../orchestrator/dist/cascadeBackend.js
|
|
21537
21537
|
var CascadeBackend;
|
|
21538
21538
|
var init_cascadeBackend = __esm({
|
|
21539
|
-
"
|
|
21539
|
+
"../orchestrator/dist/cascadeBackend.js"() {
|
|
21540
21540
|
"use strict";
|
|
21541
21541
|
init_agenticRunner();
|
|
21542
21542
|
init_nexusBackend();
|
|
@@ -21800,10 +21800,10 @@ var init_cascadeBackend = __esm({
|
|
|
21800
21800
|
}
|
|
21801
21801
|
});
|
|
21802
21802
|
|
|
21803
|
-
//
|
|
21803
|
+
// ../orchestrator/dist/flowstatePrompt.js
|
|
21804
21804
|
var FLOWSTATE_PROMPT;
|
|
21805
21805
|
var init_flowstatePrompt = __esm({
|
|
21806
|
-
"
|
|
21806
|
+
"../orchestrator/dist/flowstatePrompt.js"() {
|
|
21807
21807
|
"use strict";
|
|
21808
21808
|
FLOWSTATE_PROMPT = `## FlowState Protocol (Active)
|
|
21809
21809
|
|
|
@@ -21854,10 +21854,10 @@ Constrain your context. Clarify your target. Focus your tools. Flow will follow.
|
|
|
21854
21854
|
}
|
|
21855
21855
|
});
|
|
21856
21856
|
|
|
21857
|
-
//
|
|
21857
|
+
// ../orchestrator/dist/costTracker.js
|
|
21858
21858
|
var DEFAULT_PRICING, CostTracker;
|
|
21859
21859
|
var init_costTracker = __esm({
|
|
21860
|
-
"
|
|
21860
|
+
"../orchestrator/dist/costTracker.js"() {
|
|
21861
21861
|
"use strict";
|
|
21862
21862
|
DEFAULT_PRICING = [
|
|
21863
21863
|
// Cloud providers — typical pricing tiers
|
|
@@ -22005,7 +22005,7 @@ var init_costTracker = __esm({
|
|
|
22005
22005
|
}
|
|
22006
22006
|
});
|
|
22007
22007
|
|
|
22008
|
-
//
|
|
22008
|
+
// ../orchestrator/dist/workEvaluator.js
|
|
22009
22009
|
function detectTaskType(taskDescription) {
|
|
22010
22010
|
let bestType = "general";
|
|
22011
22011
|
let bestScore = 0;
|
|
@@ -22040,7 +22040,7 @@ function buildEvaluationPrompt(task, summary, rubric) {
|
|
|
22040
22040
|
}
|
|
22041
22041
|
var RUBRICS, TASK_TYPE_PATTERNS, WorkEvaluator;
|
|
22042
22042
|
var init_workEvaluator = __esm({
|
|
22043
|
-
"
|
|
22043
|
+
"../orchestrator/dist/workEvaluator.js"() {
|
|
22044
22044
|
"use strict";
|
|
22045
22045
|
init_promptLoader();
|
|
22046
22046
|
RUBRICS = {
|
|
@@ -22211,10 +22211,10 @@ var init_workEvaluator = __esm({
|
|
|
22211
22211
|
}
|
|
22212
22212
|
});
|
|
22213
22213
|
|
|
22214
|
-
//
|
|
22214
|
+
// ../orchestrator/dist/sessionMetrics.js
|
|
22215
22215
|
var SessionMetrics;
|
|
22216
22216
|
var init_sessionMetrics = __esm({
|
|
22217
|
-
"
|
|
22217
|
+
"../orchestrator/dist/sessionMetrics.js"() {
|
|
22218
22218
|
"use strict";
|
|
22219
22219
|
SessionMetrics = class {
|
|
22220
22220
|
sessionStart;
|
|
@@ -22311,16 +22311,16 @@ var init_sessionMetrics = __esm({
|
|
|
22311
22311
|
}
|
|
22312
22312
|
});
|
|
22313
22313
|
|
|
22314
|
-
//
|
|
22314
|
+
// ../orchestrator/dist/taskLearning.js
|
|
22315
22315
|
var init_taskLearning = __esm({
|
|
22316
|
-
"
|
|
22316
|
+
"../orchestrator/dist/taskLearning.js"() {
|
|
22317
22317
|
"use strict";
|
|
22318
22318
|
}
|
|
22319
22319
|
});
|
|
22320
22320
|
|
|
22321
|
-
//
|
|
22321
|
+
// ../orchestrator/dist/index.js
|
|
22322
22322
|
var init_dist5 = __esm({
|
|
22323
|
-
"
|
|
22323
|
+
"../orchestrator/dist/index.js"() {
|
|
22324
22324
|
"use strict";
|
|
22325
22325
|
init_agent_loop();
|
|
22326
22326
|
init_ralphLoop();
|
|
@@ -22344,7 +22344,7 @@ var init_dist5 = __esm({
|
|
|
22344
22344
|
}
|
|
22345
22345
|
});
|
|
22346
22346
|
|
|
22347
|
-
//
|
|
22347
|
+
// dist/tui/listen.js
|
|
22348
22348
|
var listen_exports = {};
|
|
22349
22349
|
__export(listen_exports, {
|
|
22350
22350
|
ListenEngine: () => ListenEngine,
|
|
@@ -22524,7 +22524,7 @@ function getListenEngine(config) {
|
|
|
22524
22524
|
}
|
|
22525
22525
|
var AUDIO_EXTENSIONS, VIDEO_EXTENSIONS, WhisperFallbackTranscriber, ListenEngine, _bgInstallPromise, _engine;
|
|
22526
22526
|
var init_listen = __esm({
|
|
22527
|
-
"
|
|
22527
|
+
"dist/tui/listen.js"() {
|
|
22528
22528
|
"use strict";
|
|
22529
22529
|
AUDIO_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
22530
22530
|
".mp3",
|
|
@@ -23063,9 +23063,9 @@ transcribe-cli error: ${transcribeCliError}` : "";
|
|
|
23063
23063
|
}
|
|
23064
23064
|
});
|
|
23065
23065
|
|
|
23066
|
-
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/constants.js
|
|
23066
|
+
// ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/constants.js
|
|
23067
23067
|
var require_constants = __commonJS({
|
|
23068
|
-
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/constants.js"(exports, module) {
|
|
23068
|
+
"../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/constants.js"(exports, module) {
|
|
23069
23069
|
"use strict";
|
|
23070
23070
|
var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
|
|
23071
23071
|
var hasBlob = typeof Blob !== "undefined";
|
|
@@ -23086,9 +23086,9 @@ var require_constants = __commonJS({
|
|
|
23086
23086
|
}
|
|
23087
23087
|
});
|
|
23088
23088
|
|
|
23089
|
-
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/buffer-util.js
|
|
23089
|
+
// ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/buffer-util.js
|
|
23090
23090
|
var require_buffer_util = __commonJS({
|
|
23091
|
-
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/buffer-util.js"(exports, module) {
|
|
23091
|
+
"../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/buffer-util.js"(exports, module) {
|
|
23092
23092
|
"use strict";
|
|
23093
23093
|
var { EMPTY_BUFFER } = require_constants();
|
|
23094
23094
|
var FastBuffer = Buffer[Symbol.species];
|
|
@@ -23161,9 +23161,9 @@ var require_buffer_util = __commonJS({
|
|
|
23161
23161
|
}
|
|
23162
23162
|
});
|
|
23163
23163
|
|
|
23164
|
-
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/limiter.js
|
|
23164
|
+
// ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/limiter.js
|
|
23165
23165
|
var require_limiter = __commonJS({
|
|
23166
|
-
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/limiter.js"(exports, module) {
|
|
23166
|
+
"../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/limiter.js"(exports, module) {
|
|
23167
23167
|
"use strict";
|
|
23168
23168
|
var kDone = /* @__PURE__ */ Symbol("kDone");
|
|
23169
23169
|
var kRun = /* @__PURE__ */ Symbol("kRun");
|
|
@@ -23211,9 +23211,9 @@ var require_limiter = __commonJS({
|
|
|
23211
23211
|
}
|
|
23212
23212
|
});
|
|
23213
23213
|
|
|
23214
|
-
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js
|
|
23214
|
+
// ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js
|
|
23215
23215
|
var require_permessage_deflate = __commonJS({
|
|
23216
|
-
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js"(exports, module) {
|
|
23216
|
+
"../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js"(exports, module) {
|
|
23217
23217
|
"use strict";
|
|
23218
23218
|
var zlib = __require("zlib");
|
|
23219
23219
|
var bufferUtil = require_buffer_util();
|
|
@@ -23594,9 +23594,9 @@ var require_permessage_deflate = __commonJS({
|
|
|
23594
23594
|
}
|
|
23595
23595
|
});
|
|
23596
23596
|
|
|
23597
|
-
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/validation.js
|
|
23597
|
+
// ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/validation.js
|
|
23598
23598
|
var require_validation = __commonJS({
|
|
23599
|
-
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/validation.js"(exports, module) {
|
|
23599
|
+
"../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/validation.js"(exports, module) {
|
|
23600
23600
|
"use strict";
|
|
23601
23601
|
var { isUtf8 } = __require("buffer");
|
|
23602
23602
|
var { hasBlob } = require_constants();
|
|
@@ -23795,9 +23795,9 @@ var require_validation = __commonJS({
|
|
|
23795
23795
|
}
|
|
23796
23796
|
});
|
|
23797
23797
|
|
|
23798
|
-
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/receiver.js
|
|
23798
|
+
// ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/receiver.js
|
|
23799
23799
|
var require_receiver = __commonJS({
|
|
23800
|
-
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/receiver.js"(exports, module) {
|
|
23800
|
+
"../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/receiver.js"(exports, module) {
|
|
23801
23801
|
"use strict";
|
|
23802
23802
|
var { Writable: Writable2 } = __require("stream");
|
|
23803
23803
|
var PerMessageDeflate = require_permessage_deflate();
|
|
@@ -24387,9 +24387,9 @@ var require_receiver = __commonJS({
|
|
|
24387
24387
|
}
|
|
24388
24388
|
});
|
|
24389
24389
|
|
|
24390
|
-
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/sender.js
|
|
24390
|
+
// ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/sender.js
|
|
24391
24391
|
var require_sender = __commonJS({
|
|
24392
|
-
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/sender.js"(exports, module) {
|
|
24392
|
+
"../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/sender.js"(exports, module) {
|
|
24393
24393
|
"use strict";
|
|
24394
24394
|
var { Duplex } = __require("stream");
|
|
24395
24395
|
var { randomFillSync } = __require("crypto");
|
|
@@ -24875,9 +24875,9 @@ var require_sender = __commonJS({
|
|
|
24875
24875
|
}
|
|
24876
24876
|
});
|
|
24877
24877
|
|
|
24878
|
-
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/event-target.js
|
|
24878
|
+
// ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/event-target.js
|
|
24879
24879
|
var require_event_target = __commonJS({
|
|
24880
|
-
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/event-target.js"(exports, module) {
|
|
24880
|
+
"../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/event-target.js"(exports, module) {
|
|
24881
24881
|
"use strict";
|
|
24882
24882
|
var { kForOnEventAttribute, kListener } = require_constants();
|
|
24883
24883
|
var kCode = /* @__PURE__ */ Symbol("kCode");
|
|
@@ -25104,9 +25104,9 @@ var require_event_target = __commonJS({
|
|
|
25104
25104
|
}
|
|
25105
25105
|
});
|
|
25106
25106
|
|
|
25107
|
-
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/extension.js
|
|
25107
|
+
// ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/extension.js
|
|
25108
25108
|
var require_extension = __commonJS({
|
|
25109
|
-
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/extension.js"(exports, module) {
|
|
25109
|
+
"../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/extension.js"(exports, module) {
|
|
25110
25110
|
"use strict";
|
|
25111
25111
|
var { tokenChars } = require_validation();
|
|
25112
25112
|
function push(dest, name, elem) {
|
|
@@ -25257,9 +25257,9 @@ var require_extension = __commonJS({
|
|
|
25257
25257
|
}
|
|
25258
25258
|
});
|
|
25259
25259
|
|
|
25260
|
-
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket.js
|
|
25260
|
+
// ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket.js
|
|
25261
25261
|
var require_websocket = __commonJS({
|
|
25262
|
-
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket.js"(exports, module) {
|
|
25262
|
+
"../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket.js"(exports, module) {
|
|
25263
25263
|
"use strict";
|
|
25264
25264
|
var EventEmitter7 = __require("events");
|
|
25265
25265
|
var https = __require("https");
|
|
@@ -26143,9 +26143,9 @@ var require_websocket = __commonJS({
|
|
|
26143
26143
|
}
|
|
26144
26144
|
});
|
|
26145
26145
|
|
|
26146
|
-
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/stream.js
|
|
26146
|
+
// ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/stream.js
|
|
26147
26147
|
var require_stream = __commonJS({
|
|
26148
|
-
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/stream.js"(exports, module) {
|
|
26148
|
+
"../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/stream.js"(exports, module) {
|
|
26149
26149
|
"use strict";
|
|
26150
26150
|
var WebSocket2 = require_websocket();
|
|
26151
26151
|
var { Duplex } = __require("stream");
|
|
@@ -26241,9 +26241,9 @@ var require_stream = __commonJS({
|
|
|
26241
26241
|
}
|
|
26242
26242
|
});
|
|
26243
26243
|
|
|
26244
|
-
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/subprotocol.js
|
|
26244
|
+
// ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/subprotocol.js
|
|
26245
26245
|
var require_subprotocol = __commonJS({
|
|
26246
|
-
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/subprotocol.js"(exports, module) {
|
|
26246
|
+
"../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/subprotocol.js"(exports, module) {
|
|
26247
26247
|
"use strict";
|
|
26248
26248
|
var { tokenChars } = require_validation();
|
|
26249
26249
|
function parse(header) {
|
|
@@ -26286,9 +26286,9 @@ var require_subprotocol = __commonJS({
|
|
|
26286
26286
|
}
|
|
26287
26287
|
});
|
|
26288
26288
|
|
|
26289
|
-
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket-server.js
|
|
26289
|
+
// ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket-server.js
|
|
26290
26290
|
var require_websocket_server = __commonJS({
|
|
26291
|
-
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket-server.js"(exports, module) {
|
|
26291
|
+
"../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket-server.js"(exports, module) {
|
|
26292
26292
|
"use strict";
|
|
26293
26293
|
var EventEmitter7 = __require("events");
|
|
26294
26294
|
var http = __require("http");
|
|
@@ -26679,10 +26679,10 @@ var require_websocket_server = __commonJS({
|
|
|
26679
26679
|
}
|
|
26680
26680
|
});
|
|
26681
26681
|
|
|
26682
|
-
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/wrapper.mjs
|
|
26682
|
+
// ../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/wrapper.mjs
|
|
26683
26683
|
var import_stream, import_receiver, import_sender, import_websocket, import_websocket_server;
|
|
26684
26684
|
var init_wrapper = __esm({
|
|
26685
|
-
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/wrapper.mjs"() {
|
|
26685
|
+
"../../node_modules/.pnpm/ws@8.19.0/node_modules/ws/wrapper.mjs"() {
|
|
26686
26686
|
import_stream = __toESM(require_stream(), 1);
|
|
26687
26687
|
import_receiver = __toESM(require_receiver(), 1);
|
|
26688
26688
|
import_sender = __toESM(require_sender(), 1);
|
|
@@ -26691,7 +26691,7 @@ var init_wrapper = __esm({
|
|
|
26691
26691
|
}
|
|
26692
26692
|
});
|
|
26693
26693
|
|
|
26694
|
-
//
|
|
26694
|
+
// dist/tui/render.js
|
|
26695
26695
|
function ansi2(code, text) {
|
|
26696
26696
|
return isTTY2 ? `\x1B[${code}m${text}\x1B[0m` : text;
|
|
26697
26697
|
}
|
|
@@ -27383,7 +27383,7 @@ function formatDuration2(ms) {
|
|
|
27383
27383
|
}
|
|
27384
27384
|
var isTTY2, c2, pastel, _emojisEnabled, _colorsEnabled, MD, TOOL_ICONS, TOOL_LABELS, TOOL_COLORS, _contentWriteHook, HINTS, TOOL_NAMES, COMMAND_NAMES;
|
|
27385
27385
|
var init_render = __esm({
|
|
27386
|
-
"
|
|
27386
|
+
"dist/tui/render.js"() {
|
|
27387
27387
|
"use strict";
|
|
27388
27388
|
isTTY2 = process.stdout.isTTY ?? false;
|
|
27389
27389
|
c2 = {
|
|
@@ -27614,7 +27614,7 @@ var init_render = __esm({
|
|
|
27614
27614
|
}
|
|
27615
27615
|
});
|
|
27616
27616
|
|
|
27617
|
-
//
|
|
27617
|
+
// dist/tui/voice-session.js
|
|
27618
27618
|
import { createServer } from "node:http";
|
|
27619
27619
|
import { spawn as spawn15, execSync as execSync24 } from "node:child_process";
|
|
27620
27620
|
import { EventEmitter as EventEmitter2 } from "node:events";
|
|
@@ -27995,7 +27995,7 @@ function renderVoiceSessionTranscript(speaker, text) {
|
|
|
27995
27995
|
}
|
|
27996
27996
|
var VoiceSession;
|
|
27997
27997
|
var init_voice_session = __esm({
|
|
27998
|
-
"
|
|
27998
|
+
"dist/tui/voice-session.js"() {
|
|
27999
27999
|
"use strict";
|
|
28000
28000
|
init_wrapper();
|
|
28001
28001
|
init_render();
|
|
@@ -28342,7 +28342,7 @@ var init_voice_session = __esm({
|
|
|
28342
28342
|
}
|
|
28343
28343
|
});
|
|
28344
28344
|
|
|
28345
|
-
//
|
|
28345
|
+
// dist/tui/expose.js
|
|
28346
28346
|
import { createServer as createServer2, request as httpRequest } from "node:http";
|
|
28347
28347
|
import { spawn as spawn16, exec } from "node:child_process";
|
|
28348
28348
|
import { EventEmitter as EventEmitter3 } from "node:events";
|
|
@@ -28515,7 +28515,7 @@ function removeP2PExposeState(stateDir) {
|
|
|
28515
28515
|
}
|
|
28516
28516
|
var HOP_BY_HOP_HEADERS, CF_HEADERS_PREFIX, INTERNAL_CAPABILITIES, DEFAULT_TARGETS, STATE_FILE_NAME, ExposeGateway, P2P_STATE_FILE_NAME, ExposeP2PGateway;
|
|
28517
28517
|
var init_expose = __esm({
|
|
28518
|
-
"
|
|
28518
|
+
"dist/tui/expose.js"() {
|
|
28519
28519
|
"use strict";
|
|
28520
28520
|
init_render();
|
|
28521
28521
|
HOP_BY_HOP_HEADERS = /* @__PURE__ */ new Set([
|
|
@@ -29662,25 +29662,25 @@ ${this.formatConnectionInfo()}`);
|
|
|
29662
29662
|
}
|
|
29663
29663
|
});
|
|
29664
29664
|
|
|
29665
|
-
//
|
|
29665
|
+
// dist/tui/p2p/types.js
|
|
29666
29666
|
function trustLevel(tier) {
|
|
29667
29667
|
return TRUST_ORDER.indexOf(tier);
|
|
29668
29668
|
}
|
|
29669
29669
|
var TRUST_ORDER;
|
|
29670
29670
|
var init_types = __esm({
|
|
29671
|
-
"
|
|
29671
|
+
"dist/tui/p2p/types.js"() {
|
|
29672
29672
|
"use strict";
|
|
29673
29673
|
TRUST_ORDER = ["public", "verified", "tee", "local"];
|
|
29674
29674
|
}
|
|
29675
29675
|
});
|
|
29676
29676
|
|
|
29677
|
-
//
|
|
29677
|
+
// dist/tui/p2p/secret-vault.js
|
|
29678
29678
|
import { createCipheriv as createCipheriv2, createDecipheriv as createDecipheriv2, randomBytes as randomBytes8, scryptSync as scryptSync2, createHash as createHash2 } from "node:crypto";
|
|
29679
29679
|
import { readFileSync as readFileSync20, writeFileSync as writeFileSync10, existsSync as existsSync28, mkdirSync as mkdirSync10 } from "node:fs";
|
|
29680
29680
|
import { join as join36, dirname as dirname14 } from "node:path";
|
|
29681
29681
|
var PLACEHOLDER_PREFIX, PLACEHOLDER_SUFFIX, CIPHER_ALGO, SALT_LEN, IV_LEN, KEY_LEN, SecretVault;
|
|
29682
29682
|
var init_secret_vault = __esm({
|
|
29683
|
-
"
|
|
29683
|
+
"dist/tui/p2p/secret-vault.js"() {
|
|
29684
29684
|
"use strict";
|
|
29685
29685
|
init_types();
|
|
29686
29686
|
PLACEHOLDER_PREFIX = "{{OA_VAR_";
|
|
@@ -29938,13 +29938,13 @@ var init_secret_vault = __esm({
|
|
|
29938
29938
|
}
|
|
29939
29939
|
});
|
|
29940
29940
|
|
|
29941
|
-
//
|
|
29941
|
+
// dist/tui/p2p/peer-mesh.js
|
|
29942
29942
|
import { EventEmitter as EventEmitter4 } from "node:events";
|
|
29943
29943
|
import { createServer as createServer3 } from "node:http";
|
|
29944
29944
|
import { randomBytes as randomBytes9, createHash as createHash3, generateKeyPairSync } from "node:crypto";
|
|
29945
29945
|
var PING_INTERVAL_MS, PEER_TIMEOUT_MS, GOSSIP_INTERVAL_MS, MAX_PEERS, PeerMesh;
|
|
29946
29946
|
var init_peer_mesh = __esm({
|
|
29947
|
-
"
|
|
29947
|
+
"dist/tui/p2p/peer-mesh.js"() {
|
|
29948
29948
|
"use strict";
|
|
29949
29949
|
init_wrapper();
|
|
29950
29950
|
PING_INTERVAL_MS = 3e4;
|
|
@@ -30403,11 +30403,11 @@ var init_peer_mesh = __esm({
|
|
|
30403
30403
|
}
|
|
30404
30404
|
});
|
|
30405
30405
|
|
|
30406
|
-
//
|
|
30406
|
+
// dist/tui/p2p/inference-router.js
|
|
30407
30407
|
import { EventEmitter as EventEmitter5 } from "node:events";
|
|
30408
30408
|
var TRUST_WEIGHTS, InferenceRouter;
|
|
30409
30409
|
var init_inference_router = __esm({
|
|
30410
|
-
"
|
|
30410
|
+
"dist/tui/p2p/inference-router.js"() {
|
|
30411
30411
|
"use strict";
|
|
30412
30412
|
init_types();
|
|
30413
30413
|
TRUST_WEIGHTS = {
|
|
@@ -30601,9 +30601,9 @@ var init_inference_router = __esm({
|
|
|
30601
30601
|
}
|
|
30602
30602
|
});
|
|
30603
30603
|
|
|
30604
|
-
//
|
|
30604
|
+
// dist/tui/p2p/index.js
|
|
30605
30605
|
var init_p2p = __esm({
|
|
30606
|
-
"
|
|
30606
|
+
"dist/tui/p2p/index.js"() {
|
|
30607
30607
|
"use strict";
|
|
30608
30608
|
init_secret_vault();
|
|
30609
30609
|
init_peer_mesh();
|
|
@@ -30612,7 +30612,7 @@ var init_p2p = __esm({
|
|
|
30612
30612
|
}
|
|
30613
30613
|
});
|
|
30614
30614
|
|
|
30615
|
-
//
|
|
30615
|
+
// dist/tui/call-agent.js
|
|
30616
30616
|
import { EventEmitter as EventEmitter6 } from "node:events";
|
|
30617
30617
|
import crypto2 from "node:crypto";
|
|
30618
30618
|
function adaptTool(tool) {
|
|
@@ -30636,7 +30636,7 @@ function generateSessionKey() {
|
|
|
30636
30636
|
}
|
|
30637
30637
|
var ActivityFeed, _globalFeed, CallSubAgent;
|
|
30638
30638
|
var init_call_agent = __esm({
|
|
30639
|
-
"
|
|
30639
|
+
"dist/tui/call-agent.js"() {
|
|
30640
30640
|
"use strict";
|
|
30641
30641
|
init_dist5();
|
|
30642
30642
|
init_dist2();
|
|
@@ -30894,7 +30894,7 @@ ${activitySummary}
|
|
|
30894
30894
|
}
|
|
30895
30895
|
});
|
|
30896
30896
|
|
|
30897
|
-
//
|
|
30897
|
+
// dist/tui/model-picker.js
|
|
30898
30898
|
import { totalmem as totalmem2 } from "node:os";
|
|
30899
30899
|
async function fetchOllamaModels(baseUrl) {
|
|
30900
30900
|
const url = `${normalizeBaseUrl(baseUrl)}/api/tags`;
|
|
@@ -31415,27 +31415,27 @@ function formatRelativeTime(iso) {
|
|
|
31415
31415
|
return `${months}mo ago`;
|
|
31416
31416
|
}
|
|
31417
31417
|
var init_model_picker = __esm({
|
|
31418
|
-
"
|
|
31418
|
+
"dist/tui/model-picker.js"() {
|
|
31419
31419
|
"use strict";
|
|
31420
31420
|
init_dist();
|
|
31421
31421
|
}
|
|
31422
31422
|
});
|
|
31423
31423
|
|
|
31424
|
-
//
|
|
31424
|
+
// ../prompts/dist/loader.js
|
|
31425
31425
|
var init_loader = __esm({
|
|
31426
|
-
"
|
|
31426
|
+
"../prompts/dist/loader.js"() {
|
|
31427
31427
|
"use strict";
|
|
31428
31428
|
}
|
|
31429
31429
|
});
|
|
31430
31430
|
|
|
31431
|
-
//
|
|
31431
|
+
// ../prompts/dist/render.js
|
|
31432
31432
|
var init_render2 = __esm({
|
|
31433
|
-
"
|
|
31433
|
+
"../prompts/dist/render.js"() {
|
|
31434
31434
|
"use strict";
|
|
31435
31435
|
}
|
|
31436
31436
|
});
|
|
31437
31437
|
|
|
31438
|
-
//
|
|
31438
|
+
// ../prompts/dist/promptLoader.js
|
|
31439
31439
|
import { readFileSync as readFileSync21, existsSync as existsSync29 } from "node:fs";
|
|
31440
31440
|
import { join as join37, dirname as dirname15 } from "node:path";
|
|
31441
31441
|
import { fileURLToPath as fileURLToPath9 } from "node:url";
|
|
@@ -31455,7 +31455,7 @@ function loadPrompt2(promptPath, vars) {
|
|
|
31455
31455
|
}
|
|
31456
31456
|
var __filename2, __dirname5, devPath, publishedPath, PROMPTS_DIR2, cache2;
|
|
31457
31457
|
var init_promptLoader2 = __esm({
|
|
31458
|
-
"
|
|
31458
|
+
"../prompts/dist/promptLoader.js"() {
|
|
31459
31459
|
"use strict";
|
|
31460
31460
|
__filename2 = fileURLToPath9(import.meta.url);
|
|
31461
31461
|
__dirname5 = dirname15(__filename2);
|
|
@@ -31466,7 +31466,7 @@ var init_promptLoader2 = __esm({
|
|
|
31466
31466
|
}
|
|
31467
31467
|
});
|
|
31468
31468
|
|
|
31469
|
-
//
|
|
31469
|
+
// ../prompts/dist/task-templates.js
|
|
31470
31470
|
function getTaskTemplate(type) {
|
|
31471
31471
|
return TEMPLATES[type];
|
|
31472
31472
|
}
|
|
@@ -31482,7 +31482,7 @@ ${template.outputGuidance}`;
|
|
|
31482
31482
|
}
|
|
31483
31483
|
var TEMPLATES;
|
|
31484
31484
|
var init_task_templates = __esm({
|
|
31485
|
-
"
|
|
31485
|
+
"../prompts/dist/task-templates.js"() {
|
|
31486
31486
|
"use strict";
|
|
31487
31487
|
init_promptLoader2();
|
|
31488
31488
|
TEMPLATES = {
|
|
@@ -31571,12 +31571,12 @@ var init_task_templates = __esm({
|
|
|
31571
31571
|
}
|
|
31572
31572
|
});
|
|
31573
31573
|
|
|
31574
|
-
//
|
|
31574
|
+
// ../prompts/dist/index.js
|
|
31575
31575
|
import { join as join38, dirname as dirname16 } from "node:path";
|
|
31576
31576
|
import { fileURLToPath as fileURLToPath10 } from "node:url";
|
|
31577
31577
|
var _dir, _packageRoot;
|
|
31578
31578
|
var init_dist6 = __esm({
|
|
31579
|
-
"
|
|
31579
|
+
"../prompts/dist/index.js"() {
|
|
31580
31580
|
"use strict";
|
|
31581
31581
|
init_loader();
|
|
31582
31582
|
init_render2();
|
|
@@ -31587,7 +31587,7 @@ var init_dist6 = __esm({
|
|
|
31587
31587
|
}
|
|
31588
31588
|
});
|
|
31589
31589
|
|
|
31590
|
-
//
|
|
31590
|
+
// dist/tui/oa-directory.js
|
|
31591
31591
|
import { existsSync as existsSync30, mkdirSync as mkdirSync11, readFileSync as readFileSync22, writeFileSync as writeFileSync11, readdirSync as readdirSync8, statSync as statSync9, unlinkSync as unlinkSync4 } from "node:fs";
|
|
31592
31592
|
import { join as join39, relative as relative2, basename as basename9, extname as extname8 } from "node:path";
|
|
31593
31593
|
import { homedir as homedir9 } from "node:os";
|
|
@@ -32049,7 +32049,7 @@ function deleteUsageRecord(kind, value, repoRoot) {
|
|
|
32049
32049
|
}
|
|
32050
32050
|
var OA_DIR, SUBDIRS, CONTEXT_FILES, PENDING_TASK_FILE, CONTEXT_SAVE_FILE, MAX_CONTEXT_ENTRIES, SKIP_DIRS, USAGE_HISTORY_FILE, MAX_HISTORY_RECORDS;
|
|
32051
32051
|
var init_oa_directory = __esm({
|
|
32052
|
-
"
|
|
32052
|
+
"dist/tui/oa-directory.js"() {
|
|
32053
32053
|
"use strict";
|
|
32054
32054
|
OA_DIR = ".oa";
|
|
32055
32055
|
SUBDIRS = ["memory", "index", "context", "history", "notes", "embedded", "provenance", "tools", "dreams"];
|
|
@@ -32090,7 +32090,7 @@ var init_oa_directory = __esm({
|
|
|
32090
32090
|
}
|
|
32091
32091
|
});
|
|
32092
32092
|
|
|
32093
|
-
//
|
|
32093
|
+
// dist/tui/setup.js
|
|
32094
32094
|
import * as readline from "node:readline";
|
|
32095
32095
|
import { execSync as execSync25, spawn as spawn17, exec as exec2 } from "node:child_process";
|
|
32096
32096
|
import { promisify as promisify5 } from "node:util";
|
|
@@ -33773,7 +33773,7 @@ export PATH="${binDir}:$PATH" # Added by open-agents for nvim
|
|
|
33773
33773
|
}
|
|
33774
33774
|
var execAsync, QWEN_VARIANTS, TOOL_CALLING_MODELS, _cloudflaredInstallPromise;
|
|
33775
33775
|
var init_setup = __esm({
|
|
33776
|
-
"
|
|
33776
|
+
"dist/tui/setup.js"() {
|
|
33777
33777
|
"use strict";
|
|
33778
33778
|
init_model_picker();
|
|
33779
33779
|
init_render();
|
|
@@ -33808,7 +33808,7 @@ var init_setup = __esm({
|
|
|
33808
33808
|
}
|
|
33809
33809
|
});
|
|
33810
33810
|
|
|
33811
|
-
//
|
|
33811
|
+
// dist/tui/overlay-lock.js
|
|
33812
33812
|
function isOverlayActive() {
|
|
33813
33813
|
return _overlayActive;
|
|
33814
33814
|
}
|
|
@@ -33871,7 +33871,7 @@ function leaveOverlay() {
|
|
|
33871
33871
|
}
|
|
33872
33872
|
var _overlayActive, _depth, _buffer, _origStdoutWrite, _origStderrWrite;
|
|
33873
33873
|
var init_overlay_lock = __esm({
|
|
33874
|
-
"
|
|
33874
|
+
"dist/tui/overlay-lock.js"() {
|
|
33875
33875
|
"use strict";
|
|
33876
33876
|
_overlayActive = false;
|
|
33877
33877
|
_depth = 0;
|
|
@@ -33881,7 +33881,7 @@ var init_overlay_lock = __esm({
|
|
|
33881
33881
|
}
|
|
33882
33882
|
});
|
|
33883
33883
|
|
|
33884
|
-
//
|
|
33884
|
+
// dist/tui/tui-select.js
|
|
33885
33885
|
function ansi3(code, text) {
|
|
33886
33886
|
return isTTY3 ? `\x1B[${code}m${text}\x1B[0m` : text;
|
|
33887
33887
|
}
|
|
@@ -34323,7 +34323,7 @@ function tuiSelect(opts) {
|
|
|
34323
34323
|
}
|
|
34324
34324
|
var isTTY3, selectColors;
|
|
34325
34325
|
var init_tui_select = __esm({
|
|
34326
|
-
"
|
|
34326
|
+
"dist/tui/tui-select.js"() {
|
|
34327
34327
|
"use strict";
|
|
34328
34328
|
init_overlay_lock();
|
|
34329
34329
|
isTTY3 = process.stdout.isTTY ?? false;
|
|
@@ -34341,7 +34341,7 @@ var init_tui_select = __esm({
|
|
|
34341
34341
|
}
|
|
34342
34342
|
});
|
|
34343
34343
|
|
|
34344
|
-
//
|
|
34344
|
+
// dist/tui/drop-panel.js
|
|
34345
34345
|
import { existsSync as existsSync32 } from "node:fs";
|
|
34346
34346
|
import { extname as extname9, resolve as resolve27 } from "node:path";
|
|
34347
34347
|
function ansi4(code, text) {
|
|
@@ -34512,7 +34512,7 @@ function showDropPanel(opts) {
|
|
|
34512
34512
|
}
|
|
34513
34513
|
var isTTY4, dc;
|
|
34514
34514
|
var init_drop_panel = __esm({
|
|
34515
|
-
"
|
|
34515
|
+
"dist/tui/drop-panel.js"() {
|
|
34516
34516
|
"use strict";
|
|
34517
34517
|
init_overlay_lock();
|
|
34518
34518
|
isTTY4 = process.stdout.isTTY ?? false;
|
|
@@ -34527,7 +34527,7 @@ var init_drop_panel = __esm({
|
|
|
34527
34527
|
}
|
|
34528
34528
|
});
|
|
34529
34529
|
|
|
34530
|
-
//
|
|
34530
|
+
// dist/tui/neovim-mode.js
|
|
34531
34531
|
import { existsSync as existsSync33, unlinkSync as unlinkSync5 } from "node:fs";
|
|
34532
34532
|
import { tmpdir as tmpdir6 } from "node:os";
|
|
34533
34533
|
import { join as join41 } from "node:path";
|
|
@@ -34578,11 +34578,20 @@ async function startNeovimMode(opts) {
|
|
|
34578
34578
|
}
|
|
34579
34579
|
const ptyCols = opts.cols;
|
|
34580
34580
|
const ptyRows = Math.max(5, opts.contentRows);
|
|
34581
|
+
const initVimCmd = "set mouse= autoread updatetime=300 signcolumn=no noswapfile";
|
|
34582
|
+
const luaBootstrap = [
|
|
34583
|
+
'lua local lp = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"',
|
|
34584
|
+
'if not vim.loop.fs_stat(lp) then pcall(vim.fn.system, {"git", "clone", "--filter=blob:none", "--depth=1", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lp}) end',
|
|
34585
|
+
"vim.opt.rtp:prepend(lp)",
|
|
34586
|
+
'pcall(function() require("lazy").setup({{"nvim-neo-tree/neo-tree.nvim", branch="v3.x", dependencies={"nvim-lua/plenary.nvim","MunifTanjim/nui.nvim"},config=function() require("neo-tree").setup({close_if_last_window=true,filesystem={follow_current_file={enabled=true},use_libuv_file_watcher=true},window={position="left",width=30}}) end}},{install={colorscheme={}},checker={enabled=false}}) end)'
|
|
34587
|
+
].join(" | ");
|
|
34581
34588
|
const nvimArgs = [
|
|
34582
34589
|
"--listen",
|
|
34583
34590
|
socketPath,
|
|
34584
34591
|
"--cmd",
|
|
34585
|
-
|
|
34592
|
+
initVimCmd,
|
|
34593
|
+
"-c",
|
|
34594
|
+
luaBootstrap
|
|
34586
34595
|
];
|
|
34587
34596
|
if (opts.initialFile) {
|
|
34588
34597
|
nvimArgs.push(opts.initialFile);
|
|
@@ -34660,14 +34669,15 @@ function stopNeovimMode() {
|
|
|
34660
34669
|
if (!_state || _state.cleanedUp)
|
|
34661
34670
|
return;
|
|
34662
34671
|
try {
|
|
34663
|
-
_state.pty?.write(":qa!\r");
|
|
34672
|
+
_state.pty?.write("\x1B:qa!\r");
|
|
34664
34673
|
} catch {
|
|
34665
34674
|
}
|
|
34675
|
+
const s = _state;
|
|
34666
34676
|
setTimeout(() => {
|
|
34667
|
-
if (
|
|
34668
|
-
doCleanup(
|
|
34677
|
+
if (s && !s.cleanedUp) {
|
|
34678
|
+
doCleanup(s);
|
|
34669
34679
|
}
|
|
34670
|
-
},
|
|
34680
|
+
}, 300);
|
|
34671
34681
|
}
|
|
34672
34682
|
function writeToNeovimOutput(text) {
|
|
34673
34683
|
if (!_state || _state.cleanedUp || !_state.nvim || !_state.outputChanId)
|
|
@@ -34741,6 +34751,7 @@ function toggleFocus(state) {
|
|
|
34741
34751
|
const stdin = process.stdin;
|
|
34742
34752
|
if (state.focused) {
|
|
34743
34753
|
state.focused = false;
|
|
34754
|
+
process.stdout.write("\x1B[?1000l\x1B[?1002l\x1B[?1003l\x1B[?1006l");
|
|
34744
34755
|
if (state.stdinHandler) {
|
|
34745
34756
|
stdin.removeListener("data", state.stdinHandler);
|
|
34746
34757
|
}
|
|
@@ -34774,10 +34785,7 @@ function toggleFocus(state) {
|
|
|
34774
34785
|
if (state.stdinHandler) {
|
|
34775
34786
|
stdin.on("data", state.stdinHandler);
|
|
34776
34787
|
}
|
|
34777
|
-
|
|
34778
|
-
state.nvim.command("echo ''").catch(() => {
|
|
34779
|
-
});
|
|
34780
|
-
}
|
|
34788
|
+
state.pty?.write("\x1B[c");
|
|
34781
34789
|
}
|
|
34782
34790
|
}
|
|
34783
34791
|
function doCleanup(state) {
|
|
@@ -34822,12 +34830,12 @@ function doCleanup(state) {
|
|
|
34822
34830
|
state.opts.rl.prompt(false);
|
|
34823
34831
|
}
|
|
34824
34832
|
_state = null;
|
|
34825
|
-
process.stdout.write("\x1B[H\x1B[J");
|
|
34833
|
+
process.stdout.write("\x1B[?1000l\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?1004l\x1B[H\x1B[J");
|
|
34826
34834
|
state.opts.onExit?.();
|
|
34827
34835
|
}
|
|
34828
34836
|
var isTTY5, _state;
|
|
34829
34837
|
var init_neovim_mode = __esm({
|
|
34830
|
-
"
|
|
34838
|
+
"dist/tui/neovim-mode.js"() {
|
|
34831
34839
|
"use strict";
|
|
34832
34840
|
init_setup();
|
|
34833
34841
|
isTTY5 = process.stdout.isTTY ?? false;
|
|
@@ -34835,7 +34843,7 @@ var init_neovim_mode = __esm({
|
|
|
34835
34843
|
}
|
|
34836
34844
|
});
|
|
34837
34845
|
|
|
34838
|
-
//
|
|
34846
|
+
// dist/tui/voice.js
|
|
34839
34847
|
var voice_exports = {};
|
|
34840
34848
|
__export(voice_exports, {
|
|
34841
34849
|
VoiceEngine: () => VoiceEngine,
|
|
@@ -35534,7 +35542,7 @@ function formatBytes2(bytes) {
|
|
|
35534
35542
|
}
|
|
35535
35543
|
var VOICE_MODELS, VoiceEngine, RING_BUFFER_SIZE, narration;
|
|
35536
35544
|
var init_voice = __esm({
|
|
35537
|
-
"
|
|
35545
|
+
"dist/tui/voice.js"() {
|
|
35538
35546
|
"use strict";
|
|
35539
35547
|
init_render();
|
|
35540
35548
|
VOICE_MODELS = {
|
|
@@ -37260,7 +37268,7 @@ Error: ${err instanceof Error ? err.message : String(err)}`);
|
|
|
37260
37268
|
}
|
|
37261
37269
|
});
|
|
37262
37270
|
|
|
37263
|
-
//
|
|
37271
|
+
// dist/tui/commands.js
|
|
37264
37272
|
async function handleSlashCommand(input, ctx) {
|
|
37265
37273
|
const trimmed = input.trim();
|
|
37266
37274
|
if (!trimmed.startsWith("/"))
|
|
@@ -40211,7 +40219,7 @@ async function showExposeDashboard(gateway, rl) {
|
|
|
40211
40219
|
}
|
|
40212
40220
|
var DASH_INTERNAL;
|
|
40213
40221
|
var init_commands = __esm({
|
|
40214
|
-
"
|
|
40222
|
+
"dist/tui/commands.js"() {
|
|
40215
40223
|
"use strict";
|
|
40216
40224
|
init_model_picker();
|
|
40217
40225
|
init_render();
|
|
@@ -40231,7 +40239,7 @@ var init_commands = __esm({
|
|
|
40231
40239
|
}
|
|
40232
40240
|
});
|
|
40233
40241
|
|
|
40234
|
-
//
|
|
40242
|
+
// dist/tui/project-context.js
|
|
40235
40243
|
import { existsSync as existsSync35, readFileSync as readFileSync25, readdirSync as readdirSync10 } from "node:fs";
|
|
40236
40244
|
import { join as join43, basename as basename10 } from "node:path";
|
|
40237
40245
|
import { execSync as execSync28 } from "node:child_process";
|
|
@@ -40536,14 +40544,14 @@ These patterns have been repeated 3+ times. Consider using create_tool to automa
|
|
|
40536
40544
|
return sections.join("\n\n");
|
|
40537
40545
|
}
|
|
40538
40546
|
var init_project_context = __esm({
|
|
40539
|
-
"
|
|
40547
|
+
"dist/tui/project-context.js"() {
|
|
40540
40548
|
"use strict";
|
|
40541
40549
|
init_oa_directory();
|
|
40542
40550
|
init_dist2();
|
|
40543
40551
|
}
|
|
40544
40552
|
});
|
|
40545
40553
|
|
|
40546
|
-
//
|
|
40554
|
+
// ../memory/dist/db.js
|
|
40547
40555
|
import Database from "better-sqlite3";
|
|
40548
40556
|
function initDb(dbPath) {
|
|
40549
40557
|
const db = new Database(dbPath);
|
|
@@ -40698,26 +40706,26 @@ function runMigrations(db) {
|
|
|
40698
40706
|
`);
|
|
40699
40707
|
}
|
|
40700
40708
|
var init_db = __esm({
|
|
40701
|
-
"
|
|
40709
|
+
"../memory/dist/db.js"() {
|
|
40702
40710
|
"use strict";
|
|
40703
40711
|
}
|
|
40704
40712
|
});
|
|
40705
40713
|
|
|
40706
|
-
//
|
|
40714
|
+
// ../memory/dist/repoProfileStore.js
|
|
40707
40715
|
var init_repoProfileStore = __esm({
|
|
40708
|
-
"
|
|
40716
|
+
"../memory/dist/repoProfileStore.js"() {
|
|
40709
40717
|
"use strict";
|
|
40710
40718
|
}
|
|
40711
40719
|
});
|
|
40712
40720
|
|
|
40713
|
-
//
|
|
40721
|
+
// ../memory/dist/fileSummaryStore.js
|
|
40714
40722
|
var init_fileSummaryStore = __esm({
|
|
40715
|
-
"
|
|
40723
|
+
"../memory/dist/fileSummaryStore.js"() {
|
|
40716
40724
|
"use strict";
|
|
40717
40725
|
}
|
|
40718
40726
|
});
|
|
40719
40727
|
|
|
40720
|
-
//
|
|
40728
|
+
// ../memory/dist/taskMemoryStore.js
|
|
40721
40729
|
import { randomUUID } from "node:crypto";
|
|
40722
40730
|
function rowToTask(row) {
|
|
40723
40731
|
return {
|
|
@@ -40736,7 +40744,7 @@ function rowToTask(row) {
|
|
|
40736
40744
|
}
|
|
40737
40745
|
var TaskMemoryStore;
|
|
40738
40746
|
var init_taskMemoryStore = __esm({
|
|
40739
|
-
"
|
|
40747
|
+
"../memory/dist/taskMemoryStore.js"() {
|
|
40740
40748
|
"use strict";
|
|
40741
40749
|
TaskMemoryStore = class {
|
|
40742
40750
|
db;
|
|
@@ -40787,14 +40795,14 @@ var init_taskMemoryStore = __esm({
|
|
|
40787
40795
|
}
|
|
40788
40796
|
});
|
|
40789
40797
|
|
|
40790
|
-
//
|
|
40798
|
+
// ../memory/dist/patchHistoryStore.js
|
|
40791
40799
|
var init_patchHistoryStore = __esm({
|
|
40792
|
-
"
|
|
40800
|
+
"../memory/dist/patchHistoryStore.js"() {
|
|
40793
40801
|
"use strict";
|
|
40794
40802
|
}
|
|
40795
40803
|
});
|
|
40796
40804
|
|
|
40797
|
-
//
|
|
40805
|
+
// ../memory/dist/failureStore.js
|
|
40798
40806
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
40799
40807
|
function rowToFailure(row) {
|
|
40800
40808
|
return {
|
|
@@ -40815,7 +40823,7 @@ function rowToFailure(row) {
|
|
|
40815
40823
|
}
|
|
40816
40824
|
var FailureStore;
|
|
40817
40825
|
var init_failureStore = __esm({
|
|
40818
|
-
"
|
|
40826
|
+
"../memory/dist/failureStore.js"() {
|
|
40819
40827
|
"use strict";
|
|
40820
40828
|
FailureStore = class {
|
|
40821
40829
|
db;
|
|
@@ -40870,18 +40878,18 @@ var init_failureStore = __esm({
|
|
|
40870
40878
|
}
|
|
40871
40879
|
});
|
|
40872
40880
|
|
|
40873
|
-
//
|
|
40881
|
+
// ../memory/dist/validationStore.js
|
|
40874
40882
|
var init_validationStore = __esm({
|
|
40875
|
-
"
|
|
40883
|
+
"../memory/dist/validationStore.js"() {
|
|
40876
40884
|
"use strict";
|
|
40877
40885
|
}
|
|
40878
40886
|
});
|
|
40879
40887
|
|
|
40880
|
-
//
|
|
40888
|
+
// ../memory/dist/toolPatternStore.js
|
|
40881
40889
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
40882
40890
|
var ToolPatternStore;
|
|
40883
40891
|
var init_toolPatternStore = __esm({
|
|
40884
|
-
"
|
|
40892
|
+
"../memory/dist/toolPatternStore.js"() {
|
|
40885
40893
|
"use strict";
|
|
40886
40894
|
ToolPatternStore = class {
|
|
40887
40895
|
db;
|
|
@@ -41060,9 +41068,9 @@ var init_toolPatternStore = __esm({
|
|
|
41060
41068
|
}
|
|
41061
41069
|
});
|
|
41062
41070
|
|
|
41063
|
-
//
|
|
41071
|
+
// ../memory/dist/index.js
|
|
41064
41072
|
var init_dist7 = __esm({
|
|
41065
|
-
"
|
|
41073
|
+
"../memory/dist/index.js"() {
|
|
41066
41074
|
"use strict";
|
|
41067
41075
|
init_db();
|
|
41068
41076
|
init_repoProfileStore();
|
|
@@ -41075,7 +41083,7 @@ var init_dist7 = __esm({
|
|
|
41075
41083
|
}
|
|
41076
41084
|
});
|
|
41077
41085
|
|
|
41078
|
-
//
|
|
41086
|
+
// dist/tui/carousel.js
|
|
41079
41087
|
function fg(code, text) {
|
|
41080
41088
|
return isTTY6 ? `\x1B[38;5;${code}m${text}\x1B[0m` : text;
|
|
41081
41089
|
}
|
|
@@ -41117,7 +41125,7 @@ function createRow(phraseIndices, speed, direction, bank) {
|
|
|
41117
41125
|
}
|
|
41118
41126
|
var isTTY6, PHRASES, Carousel;
|
|
41119
41127
|
var init_carousel = __esm({
|
|
41120
|
-
"
|
|
41128
|
+
"dist/tui/carousel.js"() {
|
|
41121
41129
|
"use strict";
|
|
41122
41130
|
isTTY6 = process.stdout.isTTY ?? false;
|
|
41123
41131
|
PHRASES = [
|
|
@@ -41358,7 +41366,7 @@ var init_carousel = __esm({
|
|
|
41358
41366
|
}
|
|
41359
41367
|
});
|
|
41360
41368
|
|
|
41361
|
-
//
|
|
41369
|
+
// dist/tui/carousel-descriptors.js
|
|
41362
41370
|
import { existsSync as existsSync36, readFileSync as readFileSync26, writeFileSync as writeFileSync14, mkdirSync as mkdirSync14, readdirSync as readdirSync11 } from "node:fs";
|
|
41363
41371
|
import { join as join44, basename as basename11 } from "node:path";
|
|
41364
41372
|
function loadToolProfile(repoRoot) {
|
|
@@ -41605,7 +41613,7 @@ function extractFromToolProfile(profile, tags) {
|
|
|
41605
41613
|
}
|
|
41606
41614
|
var TOOL_CATEGORIES, TOOL_PROFILE_FILE, DESCRIPTOR_FILE, CATEGORY_LABELS, STOP_WORDS;
|
|
41607
41615
|
var init_carousel_descriptors = __esm({
|
|
41608
|
-
"
|
|
41616
|
+
"dist/tui/carousel-descriptors.js"() {
|
|
41609
41617
|
"use strict";
|
|
41610
41618
|
init_oa_directory();
|
|
41611
41619
|
TOOL_CATEGORIES = [
|
|
@@ -41711,7 +41719,7 @@ var init_carousel_descriptors = __esm({
|
|
|
41711
41719
|
}
|
|
41712
41720
|
});
|
|
41713
41721
|
|
|
41714
|
-
//
|
|
41722
|
+
// dist/tui/stream-renderer.js
|
|
41715
41723
|
function fg2563(code, text) {
|
|
41716
41724
|
return isTTY7 ? `\x1B[38;5;${code}m${text}\x1B[0m` : text;
|
|
41717
41725
|
}
|
|
@@ -41729,7 +41737,7 @@ function boldText(text) {
|
|
|
41729
41737
|
}
|
|
41730
41738
|
var isTTY7, PASTEL, StreamRenderer;
|
|
41731
41739
|
var init_stream_renderer = __esm({
|
|
41732
|
-
"
|
|
41740
|
+
"dist/tui/stream-renderer.js"() {
|
|
41733
41741
|
"use strict";
|
|
41734
41742
|
isTTY7 = process.stdout.isTTY ?? false;
|
|
41735
41743
|
PASTEL = {
|
|
@@ -42198,7 +42206,7 @@ var init_stream_renderer = __esm({
|
|
|
42198
42206
|
}
|
|
42199
42207
|
});
|
|
42200
42208
|
|
|
42201
|
-
//
|
|
42209
|
+
// dist/tui/edit-history.js
|
|
42202
42210
|
import { appendFileSync as appendFileSync3, mkdirSync as mkdirSync15 } from "node:fs";
|
|
42203
42211
|
import { join as join45 } from "node:path";
|
|
42204
42212
|
function createEditHistoryLogger(repoRoot, sessionId) {
|
|
@@ -42302,7 +42310,7 @@ function sanitizeArgs(tool, args) {
|
|
|
42302
42310
|
}
|
|
42303
42311
|
var EDIT_TOOLS;
|
|
42304
42312
|
var init_edit_history = __esm({
|
|
42305
|
-
"
|
|
42313
|
+
"dist/tui/edit-history.js"() {
|
|
42306
42314
|
"use strict";
|
|
42307
42315
|
EDIT_TOOLS = /* @__PURE__ */ new Set([
|
|
42308
42316
|
"file_edit",
|
|
@@ -42313,7 +42321,7 @@ var init_edit_history = __esm({
|
|
|
42313
42321
|
}
|
|
42314
42322
|
});
|
|
42315
42323
|
|
|
42316
|
-
//
|
|
42324
|
+
// dist/tui/promptLoader.js
|
|
42317
42325
|
import { readFileSync as readFileSync27, existsSync as existsSync37 } from "node:fs";
|
|
42318
42326
|
import { join as join46, dirname as dirname17 } from "node:path";
|
|
42319
42327
|
import { fileURLToPath as fileURLToPath11 } from "node:url";
|
|
@@ -42333,7 +42341,7 @@ function loadPrompt3(promptPath, vars) {
|
|
|
42333
42341
|
}
|
|
42334
42342
|
var __filename3, __dirname6, devPath2, publishedPath2, PROMPTS_DIR3, cache3;
|
|
42335
42343
|
var init_promptLoader3 = __esm({
|
|
42336
|
-
"
|
|
42344
|
+
"dist/tui/promptLoader.js"() {
|
|
42337
42345
|
"use strict";
|
|
42338
42346
|
__filename3 = fileURLToPath11(import.meta.url);
|
|
42339
42347
|
__dirname6 = dirname17(__filename3);
|
|
@@ -42344,7 +42352,7 @@ var init_promptLoader3 = __esm({
|
|
|
42344
42352
|
}
|
|
42345
42353
|
});
|
|
42346
42354
|
|
|
42347
|
-
//
|
|
42355
|
+
// dist/tui/dream-engine.js
|
|
42348
42356
|
import { mkdirSync as mkdirSync16, writeFileSync as writeFileSync15, readFileSync as readFileSync28, existsSync as existsSync38, cpSync, rmSync, readdirSync as readdirSync12 } from "node:fs";
|
|
42349
42357
|
import { join as join47, basename as basename12 } from "node:path";
|
|
42350
42358
|
import { execSync as execSync29 } from "node:child_process";
|
|
@@ -42507,7 +42515,7 @@ function renderSwarmComplete(workspace) {
|
|
|
42507
42515
|
}
|
|
42508
42516
|
var SWARM_ROLE_CONFIG, AutoresearchFileWriteTool, AutoresearchFileEditTool, AUTORESEARCH_MEMORY_KEYS, SLEEP_STAGES, DreamFileWriteTool, DreamFileEditTool, DreamShellTool, DreamEngine;
|
|
42509
42517
|
var init_dream_engine = __esm({
|
|
42510
|
-
"
|
|
42518
|
+
"dist/tui/dream-engine.js"() {
|
|
42511
42519
|
"use strict";
|
|
42512
42520
|
init_dist5();
|
|
42513
42521
|
init_dist2();
|
|
@@ -43587,7 +43595,7 @@ ${files.map((f) => `- [\`${f}\`](./${f})`).join("\n")}
|
|
|
43587
43595
|
}
|
|
43588
43596
|
});
|
|
43589
43597
|
|
|
43590
|
-
//
|
|
43598
|
+
// dist/tui/priority-ingress.js
|
|
43591
43599
|
function classifyPriority(prompt, source, origin) {
|
|
43592
43600
|
for (const rule of CLASSIFICATION_RULES) {
|
|
43593
43601
|
if (rule.sourceType !== "any" && rule.sourceType !== source)
|
|
@@ -43612,7 +43620,7 @@ function classifyPriority(prompt, source, origin) {
|
|
|
43612
43620
|
}
|
|
43613
43621
|
var PRIORITY_WEIGHT, PRIORITY_POLICIES, CLASSIFICATION_RULES, PriorityIngressEngine;
|
|
43614
43622
|
var init_priority_ingress = __esm({
|
|
43615
|
-
"
|
|
43623
|
+
"dist/tui/priority-ingress.js"() {
|
|
43616
43624
|
"use strict";
|
|
43617
43625
|
PRIORITY_WEIGHT = {
|
|
43618
43626
|
critical: 100,
|
|
@@ -43797,7 +43805,7 @@ var init_priority_ingress = __esm({
|
|
|
43797
43805
|
}
|
|
43798
43806
|
});
|
|
43799
43807
|
|
|
43800
|
-
//
|
|
43808
|
+
// dist/tui/bless-engine.js
|
|
43801
43809
|
function renderBlessStart() {
|
|
43802
43810
|
process.stdout.write(`
|
|
43803
43811
|
${c2.green("\u26A1")} ${c2.bold("BLESSED")} \u2014 Infinite warm loop activated
|
|
@@ -43821,7 +43829,7 @@ function renderBlessStop(state) {
|
|
|
43821
43829
|
}
|
|
43822
43830
|
var BlessEngine;
|
|
43823
43831
|
var init_bless_engine = __esm({
|
|
43824
|
-
"
|
|
43832
|
+
"dist/tui/bless-engine.js"() {
|
|
43825
43833
|
"use strict";
|
|
43826
43834
|
init_render();
|
|
43827
43835
|
init_dist2();
|
|
@@ -43952,7 +43960,7 @@ var init_bless_engine = __esm({
|
|
|
43952
43960
|
}
|
|
43953
43961
|
});
|
|
43954
43962
|
|
|
43955
|
-
//
|
|
43963
|
+
// dist/tui/dmn-engine.js
|
|
43956
43964
|
import { existsSync as existsSync39, readFileSync as readFileSync29, writeFileSync as writeFileSync16, mkdirSync as mkdirSync17, readdirSync as readdirSync13, unlinkSync as unlinkSync7 } from "node:fs";
|
|
43957
43965
|
import { join as join48, basename as basename13 } from "node:path";
|
|
43958
43966
|
function buildDMNGatherPrompt(recentTaskSummaries, dueReminders, attentionItems, memoryTopics, capabilities, competence, reflectionBuffer) {
|
|
@@ -44040,7 +44048,7 @@ function renderDMNResting(consecutiveNulls) {
|
|
|
44040
44048
|
}
|
|
44041
44049
|
var DMNEngine;
|
|
44042
44050
|
var init_dmn_engine = __esm({
|
|
44043
|
-
"
|
|
44051
|
+
"dist/tui/dmn-engine.js"() {
|
|
44044
44052
|
"use strict";
|
|
44045
44053
|
init_dist5();
|
|
44046
44054
|
init_dist2();
|
|
@@ -44712,7 +44720,7 @@ OUTPUT: Call task_complete with JSON:
|
|
|
44712
44720
|
}
|
|
44713
44721
|
});
|
|
44714
44722
|
|
|
44715
|
-
//
|
|
44723
|
+
// dist/tui/snr-engine.js
|
|
44716
44724
|
import { existsSync as existsSync40, readdirSync as readdirSync14, readFileSync as readFileSync30 } from "node:fs";
|
|
44717
44725
|
import { join as join49, basename as basename14 } from "node:path";
|
|
44718
44726
|
function computeDPrime(signalScores, noiseScores) {
|
|
@@ -44772,7 +44780,7 @@ function adaptTool4(tool) {
|
|
|
44772
44780
|
}
|
|
44773
44781
|
var SNREngine;
|
|
44774
44782
|
var init_snr_engine = __esm({
|
|
44775
|
-
"
|
|
44783
|
+
"dist/tui/snr-engine.js"() {
|
|
44776
44784
|
"use strict";
|
|
44777
44785
|
init_dist5();
|
|
44778
44786
|
init_dist2();
|
|
@@ -45047,7 +45055,7 @@ Call task_complete with the JSON array when done.`, onEvent)
|
|
|
45047
45055
|
}
|
|
45048
45056
|
});
|
|
45049
45057
|
|
|
45050
|
-
//
|
|
45058
|
+
// dist/tui/emotion-engine.js
|
|
45051
45059
|
function labelFromCoordinates(valence, arousal) {
|
|
45052
45060
|
if (valence > 0.6 && arousal > 0.6)
|
|
45053
45061
|
return { label: "exhilarated", emoji: "\u{1F929}" };
|
|
@@ -45108,7 +45116,7 @@ function clamp(value, min, max) {
|
|
|
45108
45116
|
}
|
|
45109
45117
|
var BASELINE_VALENCE, BASELINE_AROUSAL, DECAY_HALF_LIFE_MS, LABEL_UPDATE_INTERVAL_MS, EXCITEMENT_THRESHOLD, DISTRESS_THRESHOLD, OUTREACH_COOLDOWN_MS, OUTREACH_MIN_STREAK, LABEL_REGEN_THRESHOLD, EmotionEngine;
|
|
45110
45118
|
var init_emotion_engine = __esm({
|
|
45111
|
-
"
|
|
45119
|
+
"dist/tui/emotion-engine.js"() {
|
|
45112
45120
|
"use strict";
|
|
45113
45121
|
init_dist5();
|
|
45114
45122
|
init_promptLoader3();
|
|
@@ -45454,7 +45462,7 @@ var init_emotion_engine = __esm({
|
|
|
45454
45462
|
}
|
|
45455
45463
|
});
|
|
45456
45464
|
|
|
45457
|
-
//
|
|
45465
|
+
// dist/tui/tool-policy.js
|
|
45458
45466
|
function getDefaultPolicy(context) {
|
|
45459
45467
|
switch (context) {
|
|
45460
45468
|
case "terminal":
|
|
@@ -45504,7 +45512,7 @@ function applyToolPolicy(tools, context, userConfig) {
|
|
|
45504
45512
|
}
|
|
45505
45513
|
var SAFE_PUBLIC_TOOLS, SAFE_GROUP_ADMIN_TOOLS;
|
|
45506
45514
|
var init_tool_policy = __esm({
|
|
45507
|
-
"
|
|
45515
|
+
"dist/tui/tool-policy.js"() {
|
|
45508
45516
|
"use strict";
|
|
45509
45517
|
SAFE_PUBLIC_TOOLS = /* @__PURE__ */ new Set([
|
|
45510
45518
|
"memory_read",
|
|
@@ -45533,7 +45541,7 @@ var init_tool_policy = __esm({
|
|
|
45533
45541
|
}
|
|
45534
45542
|
});
|
|
45535
45543
|
|
|
45536
|
-
//
|
|
45544
|
+
// dist/tui/telegram-bridge.js
|
|
45537
45545
|
import { mkdirSync as mkdirSync18, existsSync as existsSync41, unlinkSync as unlinkSync8, readdirSync as readdirSync15, statSync as statSync11 } from "node:fs";
|
|
45538
45546
|
import { join as join50, resolve as resolve28 } from "node:path";
|
|
45539
45547
|
import { writeFile as writeFileAsync } from "node:fs/promises";
|
|
@@ -45670,7 +45678,7 @@ function renderTelegramSubAgentError(username, error) {
|
|
|
45670
45678
|
}
|
|
45671
45679
|
var TELEGRAM_SAFETY_PROMPT, ADMIN_DM_PROMPT, ADMIN_GROUP_PROMPT, GROUP_REPLY_DISCRETION_PROMPT, MEDIA_CACHE_TTL_MS, TelegramBridge;
|
|
45672
45680
|
var init_telegram_bridge = __esm({
|
|
45673
|
-
"
|
|
45681
|
+
"dist/tui/telegram-bridge.js"() {
|
|
45674
45682
|
"use strict";
|
|
45675
45683
|
init_dist5();
|
|
45676
45684
|
init_dist2();
|
|
@@ -46709,7 +46717,7 @@ ${caption}\r
|
|
|
46709
46717
|
}
|
|
46710
46718
|
});
|
|
46711
46719
|
|
|
46712
|
-
//
|
|
46720
|
+
// dist/tui/braille-spinner.js
|
|
46713
46721
|
function buildColorRamp(ramp) {
|
|
46714
46722
|
return [...ramp, ...ramp.slice(1, -1).reverse()];
|
|
46715
46723
|
}
|
|
@@ -46751,7 +46759,7 @@ function themeForTool(toolName) {
|
|
|
46751
46759
|
}
|
|
46752
46760
|
var DENSITY, WAVE, THEME_DEFAULT, THEME_FILE, THEME_SHELL, THEME_WEB, THEME_SEARCH, THEME_MEMORY, THEME_SKILL, THEME_TOOL_CREATE, THEME_DREAM, DEFAULT_METRICS, BrailleSpinner;
|
|
46753
46761
|
var init_braille_spinner = __esm({
|
|
46754
|
-
"
|
|
46762
|
+
"dist/tui/braille-spinner.js"() {
|
|
46755
46763
|
"use strict";
|
|
46756
46764
|
DENSITY = [
|
|
46757
46765
|
"\u2800",
|
|
@@ -46948,7 +46956,7 @@ var init_braille_spinner = __esm({
|
|
|
46948
46956
|
}
|
|
46949
46957
|
});
|
|
46950
46958
|
|
|
46951
|
-
//
|
|
46959
|
+
// dist/tui/system-metrics.js
|
|
46952
46960
|
import { loadavg as loadavg2, cpus as cpus2, totalmem as totalmem3, freemem as freemem2, platform as platform4 } from "node:os";
|
|
46953
46961
|
import { exec as exec3 } from "node:child_process";
|
|
46954
46962
|
import { readFile as readFile16 } from "node:fs/promises";
|
|
@@ -47120,7 +47128,7 @@ async function collectLocalMetrics() {
|
|
|
47120
47128
|
}
|
|
47121
47129
|
var _lastNetSnapshot, _nvidiaSmiAvailable, SystemMetricsCollector;
|
|
47122
47130
|
var init_system_metrics = __esm({
|
|
47123
|
-
"
|
|
47131
|
+
"dist/tui/system-metrics.js"() {
|
|
47124
47132
|
"use strict";
|
|
47125
47133
|
_lastNetSnapshot = null;
|
|
47126
47134
|
_nvidiaSmiAvailable = null;
|
|
@@ -47229,10 +47237,10 @@ var init_system_metrics = __esm({
|
|
|
47229
47237
|
}
|
|
47230
47238
|
});
|
|
47231
47239
|
|
|
47232
|
-
//
|
|
47240
|
+
// dist/tui/status-bar.js
|
|
47233
47241
|
var EXPERT_TOOL_BASELINES, CONTEXT_SWITCH_OVERHEAD, TURN_PLANNING_OVERHEAD, DEFAULT_TOOL_BASELINE, CODE_READ_CHARS_PER_SEC, PROSE_READ_CHARS_PER_SEC, MIN_CONTENT_FOR_READING, CODE_CONTENT_TOOLS, PROSE_CONTENT_TOOLS, HumanSpeedTracker, StatusBar;
|
|
47234
47242
|
var init_status_bar = __esm({
|
|
47235
|
-
"
|
|
47243
|
+
"dist/tui/status-bar.js"() {
|
|
47236
47244
|
"use strict";
|
|
47237
47245
|
init_render();
|
|
47238
47246
|
init_braille_spinner();
|
|
@@ -48641,7 +48649,7 @@ var init_status_bar = __esm({
|
|
|
48641
48649
|
}
|
|
48642
48650
|
});
|
|
48643
48651
|
|
|
48644
|
-
//
|
|
48652
|
+
// dist/tui/interactive.js
|
|
48645
48653
|
import * as readline2 from "node:readline";
|
|
48646
48654
|
import { Writable } from "node:stream";
|
|
48647
48655
|
import { cwd } from "node:process";
|
|
@@ -49340,12 +49348,6 @@ ${entry.fullContent}`
|
|
|
49340
49348
|
}
|
|
49341
49349
|
}
|
|
49342
49350
|
}
|
|
49343
|
-
if (isNeovimActive()) {
|
|
49344
|
-
const toolName = event.toolName ?? "unknown";
|
|
49345
|
-
const argSummary = Object.keys(event.toolArgs ?? {}).join(", ");
|
|
49346
|
-
writeToNeovimOutput(`\x1B[33m\u25B6 ${toolName}\x1B[0m(${argSummary})\r
|
|
49347
|
-
`);
|
|
49348
|
-
}
|
|
49349
49351
|
getActivityFeed().push({
|
|
49350
49352
|
ts: Date.now(),
|
|
49351
49353
|
source: "main",
|
|
@@ -49357,16 +49359,23 @@ ${entry.fullContent}`
|
|
|
49357
49359
|
statusBar?.recordSpeedToolCall(event.toolName ?? "unknown");
|
|
49358
49360
|
toolCallStartMs = Date.now();
|
|
49359
49361
|
statusBar?.setActiveTool(event.toolName ?? null);
|
|
49360
|
-
|
|
49361
|
-
|
|
49362
|
-
|
|
49363
|
-
|
|
49364
|
-
|
|
49365
|
-
|
|
49366
|
-
|
|
49367
|
-
|
|
49368
|
-
|
|
49369
|
-
|
|
49362
|
+
if (isNeovimActive()) {
|
|
49363
|
+
const toolName = event.toolName ?? "unknown";
|
|
49364
|
+
const argSummary = Object.keys(event.toolArgs ?? {}).join(", ");
|
|
49365
|
+
writeToNeovimOutput(`\x1B[33m\u25B6 ${toolName}\x1B[0m(${argSummary})\r
|
|
49366
|
+
`);
|
|
49367
|
+
} else {
|
|
49368
|
+
contentWrite(() => {
|
|
49369
|
+
if (voice?.enabled && (voice.voiceMode === "action" || voice.voiceMode === "verbose")) {
|
|
49370
|
+
const emoState = emotionEngine?.getState();
|
|
49371
|
+
const emoCtx = emoState ? { valence: emoState.valence, arousal: emoState.arousal, label: emoState.label, emoji: emoState.emoji } : void 0;
|
|
49372
|
+
const desc = describeToolCall(event.toolName ?? "unknown", event.toolArgs ?? {}, vLevel, emoCtx, isStark);
|
|
49373
|
+
renderVoiceText(desc);
|
|
49374
|
+
voice.speakSubordinate(desc, emoCtx);
|
|
49375
|
+
}
|
|
49376
|
+
renderToolCallStart(event.toolName ?? "unknown", event.toolArgs ?? {}, config.verbose);
|
|
49377
|
+
});
|
|
49378
|
+
}
|
|
49370
49379
|
break;
|
|
49371
49380
|
case "tool_result": {
|
|
49372
49381
|
if (lastToolCall) {
|
|
@@ -49388,57 +49397,63 @@ ${entry.fullContent}`
|
|
|
49388
49397
|
statusBar?.setActiveTool(null);
|
|
49389
49398
|
const toolDurationMs = toolCallStartMs > 0 ? Date.now() - toolCallStartMs : 0;
|
|
49390
49399
|
toolCallStartMs = 0;
|
|
49391
|
-
contentWrite(() => {
|
|
49392
|
-
renderToolResult(event.toolName ?? "unknown", event.success ?? false, event.content ?? "", config.verbose);
|
|
49393
|
-
if (config.verbose && toolDurationMs > 0) {
|
|
49394
|
-
const durStr = toolDurationMs < 1e3 ? `${toolDurationMs}ms` : `${(toolDurationMs / 1e3).toFixed(1)}s`;
|
|
49395
|
-
const sizeStr = resultLen > 0 ? ` | ${resultLen.toLocaleString()} chars (~${Math.ceil(resultLen / 4).toLocaleString()} tokens)` : "";
|
|
49396
|
-
renderVerbose(`${event.toolName ?? "unknown"}: ${durStr}${sizeStr}`);
|
|
49397
|
-
}
|
|
49398
|
-
if (voice?.enabled && event.toolName !== "task_complete" && (voice.voiceMode === "action" || voice.voiceMode === "verbose")) {
|
|
49399
|
-
const emoState2 = emotionEngine?.getState();
|
|
49400
|
-
const emoCtx2 = emoState2 ? { valence: emoState2.valence, arousal: emoState2.arousal, label: emoState2.label, emoji: emoState2.emoji } : void 0;
|
|
49401
|
-
const desc = describeToolResult(event.toolName ?? "unknown", event.success ?? false, vLevel, event.content ?? void 0, emoCtx2, isStark);
|
|
49402
|
-
if (desc) {
|
|
49403
|
-
renderVoiceText(desc);
|
|
49404
|
-
voice.speakSubordinate(desc, emoCtx2);
|
|
49405
|
-
}
|
|
49406
|
-
}
|
|
49407
|
-
});
|
|
49408
49400
|
if (isNeovimActive()) {
|
|
49409
49401
|
const ok = event.success ?? false;
|
|
49410
49402
|
const prefix = ok ? "\x1B[32m\u2713\x1B[0m" : "\x1B[31m\u2717\x1B[0m";
|
|
49411
49403
|
const preview = (event.content ?? "").slice(0, 120).replace(/\n/g, " ");
|
|
49412
49404
|
writeToNeovimOutput(` ${prefix} ${preview}\r
|
|
49413
49405
|
`);
|
|
49406
|
+
} else {
|
|
49407
|
+
contentWrite(() => {
|
|
49408
|
+
renderToolResult(event.toolName ?? "unknown", event.success ?? false, event.content ?? "", config.verbose);
|
|
49409
|
+
if (config.verbose && toolDurationMs > 0) {
|
|
49410
|
+
const durStr = toolDurationMs < 1e3 ? `${toolDurationMs}ms` : `${(toolDurationMs / 1e3).toFixed(1)}s`;
|
|
49411
|
+
const sizeStr = resultLen > 0 ? ` | ${resultLen.toLocaleString()} chars (~${Math.ceil(resultLen / 4).toLocaleString()} tokens)` : "";
|
|
49412
|
+
renderVerbose(`${event.toolName ?? "unknown"}: ${durStr}${sizeStr}`);
|
|
49413
|
+
}
|
|
49414
|
+
if (voice?.enabled && event.toolName !== "task_complete" && (voice.voiceMode === "action" || voice.voiceMode === "verbose")) {
|
|
49415
|
+
const emoState2 = emotionEngine?.getState();
|
|
49416
|
+
const emoCtx2 = emoState2 ? { valence: emoState2.valence, arousal: emoState2.arousal, label: emoState2.label, emoji: emoState2.emoji } : void 0;
|
|
49417
|
+
const desc = describeToolResult(event.toolName ?? "unknown", event.success ?? false, vLevel, event.content ?? void 0, emoCtx2, isStark);
|
|
49418
|
+
if (desc) {
|
|
49419
|
+
renderVoiceText(desc);
|
|
49420
|
+
voice.speakSubordinate(desc, emoCtx2);
|
|
49421
|
+
}
|
|
49422
|
+
}
|
|
49423
|
+
});
|
|
49414
49424
|
}
|
|
49415
49425
|
break;
|
|
49416
49426
|
}
|
|
49417
49427
|
case "model_response":
|
|
49418
49428
|
statusBar?.recordSpeedTurn();
|
|
49419
|
-
if (config.verbose && !stream?.enabled && event.content) {
|
|
49429
|
+
if (!isNeovimActive() && config.verbose && !stream?.enabled && event.content) {
|
|
49420
49430
|
contentWrite(() => renderAssistantText(event.content));
|
|
49421
49431
|
}
|
|
49422
49432
|
break;
|
|
49423
49433
|
case "stream_start":
|
|
49424
49434
|
streamStartMs = Date.now();
|
|
49425
49435
|
streamTextBuffer = "";
|
|
49426
|
-
if (
|
|
49427
|
-
if (
|
|
49428
|
-
statusBar
|
|
49429
|
-
|
|
49430
|
-
|
|
49431
|
-
|
|
49432
|
-
|
|
49436
|
+
if (!isNeovimActive()) {
|
|
49437
|
+
if (stream?.enabled) {
|
|
49438
|
+
if (statusBar?.isActive)
|
|
49439
|
+
statusBar.beginContentWrite();
|
|
49440
|
+
stream.renderer.onStreamStart();
|
|
49441
|
+
}
|
|
49442
|
+
if (config.verbose) {
|
|
49443
|
+
contentWrite(() => renderVerbose(`Stream started (turn ${event.turn ?? "?"})`));
|
|
49444
|
+
}
|
|
49445
|
+
} else {
|
|
49446
|
+
writeToNeovimOutput("\r\n\x1B[36m\u2500\u2500 Stream \u2500\u2500\x1B[0m\r\n");
|
|
49433
49447
|
}
|
|
49434
49448
|
break;
|
|
49435
49449
|
case "stream_token":
|
|
49436
|
-
if (
|
|
49450
|
+
if (isNeovimActive()) {
|
|
49451
|
+
if (event.content && (event.streamKind ?? "content") === "content") {
|
|
49452
|
+
writeToNeovimOutput(event.content);
|
|
49453
|
+
}
|
|
49454
|
+
} else if (stream?.enabled) {
|
|
49437
49455
|
stream.renderer.write(event.content ?? "", event.streamKind ?? "content");
|
|
49438
49456
|
}
|
|
49439
|
-
if (isNeovimActive() && event.content && (event.streamKind ?? "content") === "content") {
|
|
49440
|
-
writeToNeovimOutput(event.content);
|
|
49441
|
-
}
|
|
49442
49457
|
if (voice?.enabled && (voice.voiceMode === "chat" || voice.voiceMode === "verbose")) {
|
|
49443
49458
|
if (event.content && (event.streamKind ?? "content") === "content") {
|
|
49444
49459
|
streamTextBuffer += event.content;
|
|
@@ -49452,10 +49467,20 @@ ${entry.fullContent}`
|
|
|
49452
49467
|
case "stream_end": {
|
|
49453
49468
|
const streamDurationMs = streamStartMs > 0 ? Date.now() - streamStartMs : 0;
|
|
49454
49469
|
streamStartMs = 0;
|
|
49455
|
-
if (
|
|
49456
|
-
|
|
49457
|
-
|
|
49458
|
-
|
|
49470
|
+
if (isNeovimActive()) {
|
|
49471
|
+
writeToNeovimOutput("\r\n");
|
|
49472
|
+
} else {
|
|
49473
|
+
if (stream?.enabled) {
|
|
49474
|
+
stream.renderer.onStreamEnd();
|
|
49475
|
+
if (statusBar?.isActive)
|
|
49476
|
+
statusBar.endContentWrite();
|
|
49477
|
+
}
|
|
49478
|
+
if (config.verbose && streamDurationMs > 0) {
|
|
49479
|
+
const streamChars = event.content?.length ?? 0;
|
|
49480
|
+
const estTokens = Math.ceil(streamChars / 4);
|
|
49481
|
+
const tokPerSec = streamDurationMs > 0 ? (estTokens / (streamDurationMs / 1e3)).toFixed(1) : "?";
|
|
49482
|
+
contentWrite(() => renderVerbose(`Stream ended: ~${estTokens.toLocaleString()} tokens in ${(streamDurationMs / 1e3).toFixed(1)}s (${tokPerSec} tok/s)`));
|
|
49483
|
+
}
|
|
49459
49484
|
}
|
|
49460
49485
|
if (voice?.enabled && (voice.voiceMode === "chat" || voice.voiceMode === "verbose")) {
|
|
49461
49486
|
const chatText = (streamTextBuffer || event.content || "").trim();
|
|
@@ -49464,26 +49489,34 @@ ${entry.fullContent}`
|
|
|
49464
49489
|
voice.speak(chatText);
|
|
49465
49490
|
}
|
|
49466
49491
|
}
|
|
49467
|
-
if (config.verbose && streamDurationMs > 0) {
|
|
49468
|
-
const streamChars = event.content?.length ?? 0;
|
|
49469
|
-
const estTokens = Math.ceil(streamChars / 4);
|
|
49470
|
-
const tokPerSec = streamDurationMs > 0 ? (estTokens / (streamDurationMs / 1e3)).toFixed(1) : "?";
|
|
49471
|
-
contentWrite(() => renderVerbose(`Stream ended: ~${estTokens.toLocaleString()} tokens in ${(streamDurationMs / 1e3).toFixed(1)}s (${tokPerSec} tok/s)`));
|
|
49472
|
-
}
|
|
49473
49492
|
break;
|
|
49474
49493
|
}
|
|
49475
49494
|
case "user_interrupt":
|
|
49476
49495
|
break;
|
|
49477
49496
|
case "compaction":
|
|
49478
|
-
|
|
49497
|
+
if (isNeovimActive()) {
|
|
49498
|
+
writeToNeovimOutput("\x1B[33m\u26A0 Context compacted\x1B[0m\r\n");
|
|
49499
|
+
} else {
|
|
49500
|
+
contentWrite(() => renderWarning(`Context compacted: ${event.content}`));
|
|
49501
|
+
}
|
|
49479
49502
|
if (onCompaction)
|
|
49480
49503
|
onCompaction();
|
|
49481
49504
|
break;
|
|
49482
49505
|
case "status":
|
|
49483
|
-
|
|
49506
|
+
if (isNeovimActive()) {
|
|
49507
|
+
writeToNeovimOutput(`\x1B[2m${event.content ?? ""}\x1B[0m\r
|
|
49508
|
+
`);
|
|
49509
|
+
} else {
|
|
49510
|
+
contentWrite(() => renderInfo(event.content ?? ""));
|
|
49511
|
+
}
|
|
49484
49512
|
break;
|
|
49485
49513
|
case "error":
|
|
49486
|
-
|
|
49514
|
+
if (isNeovimActive()) {
|
|
49515
|
+
writeToNeovimOutput(`\x1B[31m\u2717 ${event.content ?? "Unknown error"}\x1B[0m\r
|
|
49516
|
+
`);
|
|
49517
|
+
} else {
|
|
49518
|
+
contentWrite(() => renderError(event.content ?? "Unknown error"));
|
|
49519
|
+
}
|
|
49487
49520
|
break;
|
|
49488
49521
|
case "token_usage":
|
|
49489
49522
|
if (statusBar && event.tokenUsage) {
|
|
@@ -52137,7 +52170,7 @@ async function runWithTUI(task, config, repoPath) {
|
|
|
52137
52170
|
}
|
|
52138
52171
|
var taskManager;
|
|
52139
52172
|
var init_interactive = __esm({
|
|
52140
|
-
"
|
|
52173
|
+
"dist/tui/interactive.js"() {
|
|
52141
52174
|
"use strict";
|
|
52142
52175
|
init_dist5();
|
|
52143
52176
|
init_dist5();
|
|
@@ -52177,7 +52210,7 @@ var init_interactive = __esm({
|
|
|
52177
52210
|
}
|
|
52178
52211
|
});
|
|
52179
52212
|
|
|
52180
|
-
//
|
|
52213
|
+
// dist/commands/run.js
|
|
52181
52214
|
var run_exports = {};
|
|
52182
52215
|
__export(run_exports, {
|
|
52183
52216
|
runCommand: () => runCommand
|
|
@@ -52197,13 +52230,13 @@ async function runCommand(opts, config) {
|
|
|
52197
52230
|
}
|
|
52198
52231
|
}
|
|
52199
52232
|
var init_run = __esm({
|
|
52200
|
-
"
|
|
52233
|
+
"dist/commands/run.js"() {
|
|
52201
52234
|
"use strict";
|
|
52202
52235
|
init_interactive();
|
|
52203
52236
|
}
|
|
52204
52237
|
});
|
|
52205
52238
|
|
|
52206
|
-
//
|
|
52239
|
+
// ../indexer/dist/codebase-indexer.js
|
|
52207
52240
|
import { glob } from "glob";
|
|
52208
52241
|
import ignore from "ignore";
|
|
52209
52242
|
import { readFile as readFile17, stat as stat4 } from "node:fs/promises";
|
|
@@ -52211,7 +52244,7 @@ import { createHash as createHash4 } from "node:crypto";
|
|
|
52211
52244
|
import { join as join52, relative as relative3, extname as extname11, basename as basename15 } from "node:path";
|
|
52212
52245
|
var DEFAULT_EXCLUDE, LANGUAGE_MAP, CodebaseIndexer;
|
|
52213
52246
|
var init_codebase_indexer = __esm({
|
|
52214
|
-
"
|
|
52247
|
+
"../indexer/dist/codebase-indexer.js"() {
|
|
52215
52248
|
"use strict";
|
|
52216
52249
|
DEFAULT_EXCLUDE = [
|
|
52217
52250
|
"node_modules",
|
|
@@ -52329,25 +52362,25 @@ var init_codebase_indexer = __esm({
|
|
|
52329
52362
|
}
|
|
52330
52363
|
});
|
|
52331
52364
|
|
|
52332
|
-
//
|
|
52365
|
+
// ../indexer/dist/repoScanner.js
|
|
52333
52366
|
import ignore2 from "ignore";
|
|
52334
52367
|
var init_repoScanner = __esm({
|
|
52335
|
-
"
|
|
52368
|
+
"../indexer/dist/repoScanner.js"() {
|
|
52336
52369
|
"use strict";
|
|
52337
52370
|
}
|
|
52338
52371
|
});
|
|
52339
52372
|
|
|
52340
|
-
//
|
|
52373
|
+
// ../indexer/dist/symbolExtractor.js
|
|
52341
52374
|
var init_symbolExtractor = __esm({
|
|
52342
|
-
"
|
|
52375
|
+
"../indexer/dist/symbolExtractor.js"() {
|
|
52343
52376
|
"use strict";
|
|
52344
52377
|
}
|
|
52345
52378
|
});
|
|
52346
52379
|
|
|
52347
|
-
//
|
|
52380
|
+
// ../indexer/dist/graphBuilder.js
|
|
52348
52381
|
var TS_EXTENSIONS, JS_EXTENSIONS, ALL_EXTENSIONS;
|
|
52349
52382
|
var init_graphBuilder = __esm({
|
|
52350
|
-
"
|
|
52383
|
+
"../indexer/dist/graphBuilder.js"() {
|
|
52351
52384
|
"use strict";
|
|
52352
52385
|
TS_EXTENSIONS = [".ts", ".tsx", ".mts", ".cts"];
|
|
52353
52386
|
JS_EXTENSIONS = [".js", ".jsx", ".mjs", ".cjs"];
|
|
@@ -52355,30 +52388,30 @@ var init_graphBuilder = __esm({
|
|
|
52355
52388
|
}
|
|
52356
52389
|
});
|
|
52357
52390
|
|
|
52358
|
-
//
|
|
52391
|
+
// ../indexer/dist/fileSummarizer.js
|
|
52359
52392
|
var init_fileSummarizer = __esm({
|
|
52360
|
-
"
|
|
52393
|
+
"../indexer/dist/fileSummarizer.js"() {
|
|
52361
52394
|
"use strict";
|
|
52362
52395
|
}
|
|
52363
52396
|
});
|
|
52364
52397
|
|
|
52365
|
-
//
|
|
52398
|
+
// ../indexer/dist/embeddings.js
|
|
52366
52399
|
var init_embeddings = __esm({
|
|
52367
|
-
"
|
|
52400
|
+
"../indexer/dist/embeddings.js"() {
|
|
52368
52401
|
"use strict";
|
|
52369
52402
|
}
|
|
52370
52403
|
});
|
|
52371
52404
|
|
|
52372
|
-
//
|
|
52405
|
+
// ../indexer/dist/ollamaEmbeddings.js
|
|
52373
52406
|
var init_ollamaEmbeddings = __esm({
|
|
52374
|
-
"
|
|
52407
|
+
"../indexer/dist/ollamaEmbeddings.js"() {
|
|
52375
52408
|
"use strict";
|
|
52376
52409
|
}
|
|
52377
52410
|
});
|
|
52378
52411
|
|
|
52379
|
-
//
|
|
52412
|
+
// ../indexer/dist/index.js
|
|
52380
52413
|
var init_dist8 = __esm({
|
|
52381
|
-
"
|
|
52414
|
+
"../indexer/dist/index.js"() {
|
|
52382
52415
|
"use strict";
|
|
52383
52416
|
init_codebase_indexer();
|
|
52384
52417
|
init_repoScanner();
|
|
@@ -52390,7 +52423,7 @@ var init_dist8 = __esm({
|
|
|
52390
52423
|
}
|
|
52391
52424
|
});
|
|
52392
52425
|
|
|
52393
|
-
//
|
|
52426
|
+
// dist/commands/index-repo.js
|
|
52394
52427
|
var index_repo_exports = {};
|
|
52395
52428
|
__export(index_repo_exports, {
|
|
52396
52429
|
indexRepoCommand: () => indexRepoCommand
|
|
@@ -52483,7 +52516,7 @@ async function indexRepoCommand(opts, _config) {
|
|
|
52483
52516
|
printSuccess("Repository indexed successfully");
|
|
52484
52517
|
}
|
|
52485
52518
|
var init_index_repo = __esm({
|
|
52486
|
-
"
|
|
52519
|
+
"dist/commands/index-repo.js"() {
|
|
52487
52520
|
"use strict";
|
|
52488
52521
|
init_dist8();
|
|
52489
52522
|
init_spinner();
|
|
@@ -52491,7 +52524,7 @@ var init_index_repo = __esm({
|
|
|
52491
52524
|
}
|
|
52492
52525
|
});
|
|
52493
52526
|
|
|
52494
|
-
//
|
|
52527
|
+
// dist/commands/status.js
|
|
52495
52528
|
var status_exports = {};
|
|
52496
52529
|
__export(status_exports, {
|
|
52497
52530
|
statusCommand: () => statusCommand
|
|
@@ -52641,7 +52674,7 @@ async function statusVllm(opts, config) {
|
|
|
52641
52674
|
printSuccess("vLLM backend is operational");
|
|
52642
52675
|
}
|
|
52643
52676
|
var init_status = __esm({
|
|
52644
|
-
"
|
|
52677
|
+
"dist/commands/status.js"() {
|
|
52645
52678
|
"use strict";
|
|
52646
52679
|
init_dist();
|
|
52647
52680
|
init_spinner();
|
|
@@ -52649,7 +52682,7 @@ var init_status = __esm({
|
|
|
52649
52682
|
}
|
|
52650
52683
|
});
|
|
52651
52684
|
|
|
52652
|
-
//
|
|
52685
|
+
// dist/commands/config.js
|
|
52653
52686
|
var config_exports = {};
|
|
52654
52687
|
__export(config_exports, {
|
|
52655
52688
|
configCommand: () => configCommand
|
|
@@ -52824,7 +52857,7 @@ function handleKeys() {
|
|
|
52824
52857
|
}
|
|
52825
52858
|
var CONFIG_KEYS, SENSITIVE_KEYS, INT_KEYS, BOOL_KEYS, ENUM_KEYS;
|
|
52826
52859
|
var init_config3 = __esm({
|
|
52827
|
-
"
|
|
52860
|
+
"dist/commands/config.js"() {
|
|
52828
52861
|
"use strict";
|
|
52829
52862
|
init_config();
|
|
52830
52863
|
init_oa_directory();
|
|
@@ -52871,7 +52904,7 @@ var init_config3 = __esm({
|
|
|
52871
52904
|
}
|
|
52872
52905
|
});
|
|
52873
52906
|
|
|
52874
|
-
//
|
|
52907
|
+
// dist/commands/serve.js
|
|
52875
52908
|
var serve_exports = {};
|
|
52876
52909
|
__export(serve_exports, {
|
|
52877
52910
|
serveCommand: () => serveCommand
|
|
@@ -53021,14 +53054,14 @@ async function runVllmServer(args, verbose) {
|
|
|
53021
53054
|
});
|
|
53022
53055
|
}
|
|
53023
53056
|
var init_serve = __esm({
|
|
53024
|
-
"
|
|
53057
|
+
"dist/commands/serve.js"() {
|
|
53025
53058
|
"use strict";
|
|
53026
53059
|
init_dist();
|
|
53027
53060
|
init_output();
|
|
53028
53061
|
}
|
|
53029
53062
|
});
|
|
53030
53063
|
|
|
53031
|
-
//
|
|
53064
|
+
// dist/commands/eval.js
|
|
53032
53065
|
var eval_exports = {};
|
|
53033
53066
|
__export(eval_exports, {
|
|
53034
53067
|
evalCommand: () => evalCommand
|
|
@@ -53167,7 +53200,7 @@ function createTempEvalRepo() {
|
|
|
53167
53200
|
}
|
|
53168
53201
|
var BASIC_SUITE, FULL_SUITE, SUITES;
|
|
53169
53202
|
var init_eval = __esm({
|
|
53170
|
-
"
|
|
53203
|
+
"dist/commands/eval.js"() {
|
|
53171
53204
|
"use strict";
|
|
53172
53205
|
init_dist5();
|
|
53173
53206
|
init_dist();
|
|
@@ -53215,7 +53248,7 @@ var init_eval = __esm({
|
|
|
53215
53248
|
}
|
|
53216
53249
|
});
|
|
53217
53250
|
|
|
53218
|
-
//
|
|
53251
|
+
// dist/index.js
|
|
53219
53252
|
init_config();
|
|
53220
53253
|
init_output();
|
|
53221
53254
|
init_updater();
|
|
@@ -53224,7 +53257,7 @@ import { createRequire as createRequire3 } from "node:module";
|
|
|
53224
53257
|
import { fileURLToPath as fileURLToPath13 } from "node:url";
|
|
53225
53258
|
import { dirname as dirname19, join as join55 } from "node:path";
|
|
53226
53259
|
|
|
53227
|
-
//
|
|
53260
|
+
// dist/cli.js
|
|
53228
53261
|
import { createInterface } from "node:readline";
|
|
53229
53262
|
function createCli(options) {
|
|
53230
53263
|
return {
|
|
@@ -53263,10 +53296,10 @@ function createCli(options) {
|
|
|
53263
53296
|
};
|
|
53264
53297
|
}
|
|
53265
53298
|
|
|
53266
|
-
//
|
|
53299
|
+
// dist/args.js
|
|
53267
53300
|
import { parseArgs as nodeParseArgs } from "node:util";
|
|
53268
53301
|
|
|
53269
|
-
//
|
|
53302
|
+
// dist/types.js
|
|
53270
53303
|
var DEFAULT_OPTIONS = {
|
|
53271
53304
|
model: "qwen-2.5-coder-32b",
|
|
53272
53305
|
backendUrl: "http://localhost:8000/v1",
|
|
@@ -53276,7 +53309,7 @@ var DEFAULT_OPTIONS = {
|
|
|
53276
53309
|
verbose: false
|
|
53277
53310
|
};
|
|
53278
53311
|
|
|
53279
|
-
//
|
|
53312
|
+
// dist/args.js
|
|
53280
53313
|
function parseArgs(argv) {
|
|
53281
53314
|
const { values } = nodeParseArgs({
|
|
53282
53315
|
args: argv.slice(2),
|
|
@@ -53322,7 +53355,7 @@ Options:
|
|
|
53322
53355
|
console.log(help.trim());
|
|
53323
53356
|
}
|
|
53324
53357
|
|
|
53325
|
-
//
|
|
53358
|
+
// dist/index.js
|
|
53326
53359
|
init_config();
|
|
53327
53360
|
init_spinner();
|
|
53328
53361
|
init_output();
|