open-agents-ai 0.104.7 → 0.104.8
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 +443 -401
- 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
|
-
// dist/config.js
|
|
42
|
+
// packages/cli/dist/config.js
|
|
43
43
|
import { readFileSync, existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
44
44
|
import { homedir } from "node:os";
|
|
45
45
|
import { join } from "node:path";
|
|
@@ -126,7 +126,7 @@ function coerceConfigValue(key, value) {
|
|
|
126
126
|
}
|
|
127
127
|
var DEFAULT_CONFIG, VALID_BACKEND_TYPES;
|
|
128
128
|
var init_config = __esm({
|
|
129
|
-
"dist/config.js"() {
|
|
129
|
+
"packages/cli/dist/config.js"() {
|
|
130
130
|
"use strict";
|
|
131
131
|
DEFAULT_CONFIG = Object.freeze({
|
|
132
132
|
backendUrl: "http://127.0.0.1:11434",
|
|
@@ -143,7 +143,7 @@ var init_config = __esm({
|
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
145
|
|
|
146
|
-
// dist/ui/output.js
|
|
146
|
+
// packages/cli/dist/ui/output.js
|
|
147
147
|
function ansi(code, text, tty) {
|
|
148
148
|
return tty ? `\x1B[${code}m${text}\x1B[0m` : text;
|
|
149
149
|
}
|
|
@@ -222,7 +222,7 @@ function printReport(opts) {
|
|
|
222
222
|
}
|
|
223
223
|
var isTTY, isStderrTTY, c, STATUS_ICON, STATUS_COLOR;
|
|
224
224
|
var init_output = __esm({
|
|
225
|
-
"dist/ui/output.js"() {
|
|
225
|
+
"packages/cli/dist/ui/output.js"() {
|
|
226
226
|
"use strict";
|
|
227
227
|
isTTY = process.stdout.isTTY;
|
|
228
228
|
isStderrTTY = process.stderr.isTTY;
|
|
@@ -254,7 +254,7 @@ var init_output = __esm({
|
|
|
254
254
|
}
|
|
255
255
|
});
|
|
256
256
|
|
|
257
|
-
// dist/updater.js
|
|
257
|
+
// packages/cli/dist/updater.js
|
|
258
258
|
import { execSync } from "node:child_process";
|
|
259
259
|
import { existsSync as existsSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
260
260
|
import { join as join2 } from "node:path";
|
|
@@ -362,7 +362,7 @@ function formatUpdateBanner(info) {
|
|
|
362
362
|
}
|
|
363
363
|
var PACKAGE_NAME, CHECK_INTERVAL_MS, CACHE_DIR, CACHE_FILE;
|
|
364
364
|
var init_updater = __esm({
|
|
365
|
-
"dist/updater.js"() {
|
|
365
|
+
"packages/cli/dist/updater.js"() {
|
|
366
366
|
"use strict";
|
|
367
367
|
PACKAGE_NAME = "open-agents-ai";
|
|
368
368
|
CHECK_INTERVAL_MS = 60 * 60 * 1e3;
|
|
@@ -371,10 +371,10 @@ var init_updater = __esm({
|
|
|
371
371
|
}
|
|
372
372
|
});
|
|
373
373
|
|
|
374
|
-
// dist/ui/spinner.js
|
|
374
|
+
// packages/cli/dist/ui/spinner.js
|
|
375
375
|
var FRAMES, INTERVAL_MS, Spinner;
|
|
376
376
|
var init_spinner = __esm({
|
|
377
|
-
"dist/ui/spinner.js"() {
|
|
377
|
+
"packages/cli/dist/ui/spinner.js"() {
|
|
378
378
|
"use strict";
|
|
379
379
|
FRAMES = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
|
|
380
380
|
INTERVAL_MS = 80;
|
|
@@ -472,10 +472,10 @@ var init_spinner = __esm({
|
|
|
472
472
|
}
|
|
473
473
|
});
|
|
474
474
|
|
|
475
|
-
//
|
|
475
|
+
// packages/backend-vllm/dist/sleep.js
|
|
476
476
|
var SleepManager;
|
|
477
477
|
var init_sleep = __esm({
|
|
478
|
-
"
|
|
478
|
+
"packages/backend-vllm/dist/sleep.js"() {
|
|
479
479
|
"use strict";
|
|
480
480
|
SleepManager = class {
|
|
481
481
|
baseUrl;
|
|
@@ -551,7 +551,7 @@ var init_sleep = __esm({
|
|
|
551
551
|
}
|
|
552
552
|
});
|
|
553
553
|
|
|
554
|
-
//
|
|
554
|
+
// packages/backend-vllm/dist/normalizeUrl.js
|
|
555
555
|
function normalizeBaseUrl(url) {
|
|
556
556
|
let u = url.trim();
|
|
557
557
|
u = u.replace(/\/+$/, "");
|
|
@@ -583,7 +583,7 @@ function detectProvider(url) {
|
|
|
583
583
|
}
|
|
584
584
|
var PROVIDERS;
|
|
585
585
|
var init_normalizeUrl = __esm({
|
|
586
|
-
"
|
|
586
|
+
"packages/backend-vllm/dist/normalizeUrl.js"() {
|
|
587
587
|
"use strict";
|
|
588
588
|
PROVIDERS = [
|
|
589
589
|
// --- Cloud providers (specific domains) ---
|
|
@@ -652,7 +652,7 @@ var init_normalizeUrl = __esm({
|
|
|
652
652
|
}
|
|
653
653
|
});
|
|
654
654
|
|
|
655
|
-
//
|
|
655
|
+
// packages/backend-vllm/dist/VllmBackend.js
|
|
656
656
|
function agentMessageToChatMessage(msg) {
|
|
657
657
|
return {
|
|
658
658
|
role: msg.role,
|
|
@@ -664,7 +664,7 @@ function buildEmptyUsage() {
|
|
|
664
664
|
}
|
|
665
665
|
var VllmBackend;
|
|
666
666
|
var init_VllmBackend = __esm({
|
|
667
|
-
"
|
|
667
|
+
"packages/backend-vllm/dist/VllmBackend.js"() {
|
|
668
668
|
"use strict";
|
|
669
669
|
init_sleep();
|
|
670
670
|
init_normalizeUrl();
|
|
@@ -807,7 +807,7 @@ var init_VllmBackend = __esm({
|
|
|
807
807
|
}
|
|
808
808
|
});
|
|
809
809
|
|
|
810
|
-
//
|
|
810
|
+
// packages/backend-vllm/dist/OllamaBackend.js
|
|
811
811
|
function agentMessageToChatMessage2(msg) {
|
|
812
812
|
return {
|
|
813
813
|
role: msg.role,
|
|
@@ -819,7 +819,7 @@ function buildEmptyUsage2() {
|
|
|
819
819
|
}
|
|
820
820
|
var OllamaBackend;
|
|
821
821
|
var init_OllamaBackend = __esm({
|
|
822
|
-
"
|
|
822
|
+
"packages/backend-vllm/dist/OllamaBackend.js"() {
|
|
823
823
|
"use strict";
|
|
824
824
|
init_normalizeUrl();
|
|
825
825
|
OllamaBackend = class _OllamaBackend {
|
|
@@ -998,7 +998,7 @@ var init_OllamaBackend = __esm({
|
|
|
998
998
|
}
|
|
999
999
|
});
|
|
1000
1000
|
|
|
1001
|
-
//
|
|
1001
|
+
// packages/backend-vllm/dist/FakeBackend.js
|
|
1002
1002
|
function fnv1a32(input) {
|
|
1003
1003
|
const FNV_PRIME = 16777619;
|
|
1004
1004
|
const FNV_OFFSET_BASIS = 2166136261;
|
|
@@ -1011,7 +1011,7 @@ function fnv1a32(input) {
|
|
|
1011
1011
|
}
|
|
1012
1012
|
var FakeBackend;
|
|
1013
1013
|
var init_FakeBackend = __esm({
|
|
1014
|
-
"
|
|
1014
|
+
"packages/backend-vllm/dist/FakeBackend.js"() {
|
|
1015
1015
|
"use strict";
|
|
1016
1016
|
FakeBackend = class {
|
|
1017
1017
|
options;
|
|
@@ -1111,7 +1111,7 @@ var init_FakeBackend = __esm({
|
|
|
1111
1111
|
}
|
|
1112
1112
|
});
|
|
1113
1113
|
|
|
1114
|
-
//
|
|
1114
|
+
// packages/backend-vllm/dist/backendFactory.js
|
|
1115
1115
|
function detectBackendType(baseUrl) {
|
|
1116
1116
|
if (!baseUrl) {
|
|
1117
1117
|
return "ollama";
|
|
@@ -1150,7 +1150,7 @@ function createBackend(opts) {
|
|
|
1150
1150
|
}
|
|
1151
1151
|
}
|
|
1152
1152
|
var init_backendFactory = __esm({
|
|
1153
|
-
"
|
|
1153
|
+
"packages/backend-vllm/dist/backendFactory.js"() {
|
|
1154
1154
|
"use strict";
|
|
1155
1155
|
init_OllamaBackend();
|
|
1156
1156
|
init_VllmBackend();
|
|
@@ -1158,7 +1158,7 @@ var init_backendFactory = __esm({
|
|
|
1158
1158
|
}
|
|
1159
1159
|
});
|
|
1160
1160
|
|
|
1161
|
-
//
|
|
1161
|
+
// packages/backend-vllm/dist/metrics.js
|
|
1162
1162
|
function parseMetricValue(prometheusText, metricName) {
|
|
1163
1163
|
const lines = prometheusText.split("\n");
|
|
1164
1164
|
for (const line of lines) {
|
|
@@ -1179,7 +1179,7 @@ function parseMetricValue(prometheusText, metricName) {
|
|
|
1179
1179
|
}
|
|
1180
1180
|
var MetricsCollector;
|
|
1181
1181
|
var init_metrics = __esm({
|
|
1182
|
-
"
|
|
1182
|
+
"packages/backend-vllm/dist/metrics.js"() {
|
|
1183
1183
|
"use strict";
|
|
1184
1184
|
MetricsCollector = class {
|
|
1185
1185
|
metricsUrl;
|
|
@@ -1234,16 +1234,16 @@ var init_metrics = __esm({
|
|
|
1234
1234
|
}
|
|
1235
1235
|
});
|
|
1236
1236
|
|
|
1237
|
-
//
|
|
1237
|
+
// packages/backend-vllm/dist/routing.js
|
|
1238
1238
|
var init_routing = __esm({
|
|
1239
|
-
"
|
|
1239
|
+
"packages/backend-vllm/dist/routing.js"() {
|
|
1240
1240
|
"use strict";
|
|
1241
1241
|
}
|
|
1242
1242
|
});
|
|
1243
1243
|
|
|
1244
|
-
//
|
|
1244
|
+
// packages/backend-vllm/dist/index.js
|
|
1245
1245
|
var init_dist = __esm({
|
|
1246
|
-
"
|
|
1246
|
+
"packages/backend-vllm/dist/index.js"() {
|
|
1247
1247
|
"use strict";
|
|
1248
1248
|
init_VllmBackend();
|
|
1249
1249
|
init_OllamaBackend();
|
|
@@ -1256,10 +1256,10 @@ var init_dist = __esm({
|
|
|
1256
1256
|
}
|
|
1257
1257
|
});
|
|
1258
1258
|
|
|
1259
|
-
//
|
|
1259
|
+
// packages/execution/dist/tool-executor.js
|
|
1260
1260
|
var DEFAULT_CONFIG2, ToolExecutor;
|
|
1261
1261
|
var init_tool_executor = __esm({
|
|
1262
|
-
"
|
|
1262
|
+
"packages/execution/dist/tool-executor.js"() {
|
|
1263
1263
|
"use strict";
|
|
1264
1264
|
DEFAULT_CONFIG2 = {
|
|
1265
1265
|
workingDir: ".",
|
|
@@ -1312,11 +1312,11 @@ var init_tool_executor = __esm({
|
|
|
1312
1312
|
}
|
|
1313
1313
|
});
|
|
1314
1314
|
|
|
1315
|
-
//
|
|
1315
|
+
// packages/execution/dist/tools/shell.js
|
|
1316
1316
|
import { spawn } from "node:child_process";
|
|
1317
1317
|
var PERMISSION_ERROR_RE, ShellTool;
|
|
1318
1318
|
var init_shell = __esm({
|
|
1319
|
-
"
|
|
1319
|
+
"packages/execution/dist/tools/shell.js"() {
|
|
1320
1320
|
"use strict";
|
|
1321
1321
|
PERMISSION_ERROR_RE = /Permission denied|Operation not permitted|EACCES|EPERM|PermissionError|sudo:|not permitted|password is required|authentication failure/i;
|
|
1322
1322
|
ShellTool = class {
|
|
@@ -1523,7 +1523,7 @@ ${stderr}` : ""),
|
|
|
1523
1523
|
}
|
|
1524
1524
|
});
|
|
1525
1525
|
|
|
1526
|
-
//
|
|
1526
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/execution/dist/tools/explore-tools.js
|
|
3178
3178
|
var TOOL_CATALOG, ExploreToolsTool;
|
|
3179
3179
|
var init_explore_tools = __esm({
|
|
3180
|
-
"
|
|
3180
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/execution/dist/tools/tool-creator.js
|
|
5809
5809
|
var CreateToolTool, ManageToolsTool;
|
|
5810
5810
|
var init_tool_creator = __esm({
|
|
5811
|
-
"
|
|
5811
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/execution/dist/shellRunner.js"() {
|
|
15275
15275
|
"use strict";
|
|
15276
15276
|
DEFAULT_TIMEOUT_MS = 6e4;
|
|
15277
15277
|
}
|
|
15278
15278
|
});
|
|
15279
15279
|
|
|
15280
|
-
//
|
|
15280
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/execution/dist/patchApplier.js"() {
|
|
15402
15402
|
"use strict";
|
|
15403
15403
|
}
|
|
15404
15404
|
});
|
|
15405
15405
|
|
|
15406
|
-
//
|
|
15406
|
+
// packages/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
|
+
"packages/execution/dist/formatterRunner.js"() {
|
|
15458
15458
|
"use strict";
|
|
15459
15459
|
init_shellRunner();
|
|
15460
15460
|
}
|
|
15461
15461
|
});
|
|
15462
15462
|
|
|
15463
|
-
//
|
|
15463
|
+
// packages/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
|
+
"packages/execution/dist/linterRunner.js"() {
|
|
15520
15520
|
"use strict";
|
|
15521
15521
|
init_shellRunner();
|
|
15522
15522
|
}
|
|
15523
15523
|
});
|
|
15524
15524
|
|
|
15525
|
-
//
|
|
15525
|
+
// packages/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
|
+
"packages/execution/dist/typecheckRunner.js"() {
|
|
15572
15572
|
"use strict";
|
|
15573
15573
|
init_shellRunner();
|
|
15574
15574
|
}
|
|
15575
15575
|
});
|
|
15576
15576
|
|
|
15577
|
-
//
|
|
15577
|
+
// packages/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
|
+
"packages/execution/dist/testRunner.js"() {
|
|
15634
15634
|
"use strict";
|
|
15635
15635
|
init_shellRunner();
|
|
15636
15636
|
}
|
|
15637
15637
|
});
|
|
15638
15638
|
|
|
15639
|
-
//
|
|
15639
|
+
// packages/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
|
+
"packages/execution/dist/buildRunner.js"() {
|
|
15707
15707
|
"use strict";
|
|
15708
15708
|
init_shellRunner();
|
|
15709
15709
|
}
|
|
15710
15710
|
});
|
|
15711
15711
|
|
|
15712
|
-
//
|
|
15712
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/orchestrator/dist/agent-loop.js
|
|
15974
15974
|
var init_agent_loop = __esm({
|
|
15975
|
-
"
|
|
15975
|
+
"packages/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
|
+
// packages/schemas/dist/messages.js
|
|
15984
15984
|
import { z } from "zod";
|
|
15985
15985
|
var AgentMessageSchema;
|
|
15986
15986
|
var init_messages = __esm({
|
|
15987
|
-
"
|
|
15987
|
+
"packages/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
|
+
// packages/schemas/dist/tools.js
|
|
16001
16001
|
import { z as z2 } from "zod";
|
|
16002
16002
|
var ToolCallSchema;
|
|
16003
16003
|
var init_tools = __esm({
|
|
16004
|
-
"
|
|
16004
|
+
"packages/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
|
+
// packages/schemas/dist/session.js
|
|
16019
16019
|
import { z as z3 } from "zod";
|
|
16020
16020
|
var SessionSchema;
|
|
16021
16021
|
var init_session = __esm({
|
|
16022
|
-
"
|
|
16022
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/schemas/dist/config.js
|
|
16537
16537
|
import { z as z13 } from "zod";
|
|
16538
16538
|
var AgentConfigSchema;
|
|
16539
16539
|
var init_config2 = __esm({
|
|
16540
|
-
"
|
|
16540
|
+
"packages/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
|
+
// packages/schemas/dist/queue.js
|
|
16600
16600
|
import { z as z14 } from "zod";
|
|
16601
16601
|
var QueueClassSchema;
|
|
16602
16602
|
var init_queue = __esm({
|
|
16603
|
-
"
|
|
16603
|
+
"packages/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
|
+
// packages/schemas/dist/index.js
|
|
16623
16623
|
var init_dist3 = __esm({
|
|
16624
|
-
"
|
|
16624
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/retrieval/dist/code-retriever.js
|
|
17003
17003
|
var DEFAULT_CONFIG3, CodeRetriever;
|
|
17004
17004
|
var init_code_retriever = __esm({
|
|
17005
|
-
"
|
|
17005
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/retrieval/dist/graphExpand.js"() {
|
|
17490
17490
|
"use strict";
|
|
17491
17491
|
}
|
|
17492
17492
|
});
|
|
17493
17493
|
|
|
17494
|
-
//
|
|
17494
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/orchestrator/dist/mergeRunner.js
|
|
18113
18113
|
var MergeRunner;
|
|
18114
18114
|
var init_mergeRunner = __esm({
|
|
18115
|
-
"
|
|
18115
|
+
"packages/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
|
+
// packages/orchestrator/dist/retryController.js
|
|
18201
18201
|
var RetryController;
|
|
18202
18202
|
var init_retryController = __esm({
|
|
18203
|
-
"
|
|
18203
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/orchestrator/dist/nexusBackend.js
|
|
21343
21343
|
var NexusAgenticBackend;
|
|
21344
21344
|
var init_nexusBackend = __esm({
|
|
21345
|
-
"
|
|
21345
|
+
"packages/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
|
+
// packages/orchestrator/dist/cascadeBackend.js
|
|
21537
21537
|
var CascadeBackend;
|
|
21538
21538
|
var init_cascadeBackend = __esm({
|
|
21539
|
-
"
|
|
21539
|
+
"packages/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
|
+
// packages/orchestrator/dist/flowstatePrompt.js
|
|
21804
21804
|
var FLOWSTATE_PROMPT;
|
|
21805
21805
|
var init_flowstatePrompt = __esm({
|
|
21806
|
-
"
|
|
21806
|
+
"packages/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
|
+
// packages/orchestrator/dist/costTracker.js
|
|
21858
21858
|
var DEFAULT_PRICING, CostTracker;
|
|
21859
21859
|
var init_costTracker = __esm({
|
|
21860
|
-
"
|
|
21860
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/orchestrator/dist/sessionMetrics.js
|
|
22215
22215
|
var SessionMetrics;
|
|
22216
22216
|
var init_sessionMetrics = __esm({
|
|
22217
|
-
"
|
|
22217
|
+
"packages/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
|
+
// packages/orchestrator/dist/taskLearning.js
|
|
22315
22315
|
var init_taskLearning = __esm({
|
|
22316
|
-
"
|
|
22316
|
+
"packages/orchestrator/dist/taskLearning.js"() {
|
|
22317
22317
|
"use strict";
|
|
22318
22318
|
}
|
|
22319
22319
|
});
|
|
22320
22320
|
|
|
22321
|
-
//
|
|
22321
|
+
// packages/orchestrator/dist/index.js
|
|
22322
22322
|
var init_dist5 = __esm({
|
|
22323
|
-
"
|
|
22323
|
+
"packages/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
|
-
// dist/tui/listen.js
|
|
22347
|
+
// packages/cli/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
|
-
"dist/tui/listen.js"() {
|
|
22527
|
+
"packages/cli/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
|
-
//
|
|
23066
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/constants.js
|
|
23067
23067
|
var require_constants = __commonJS({
|
|
23068
|
-
"
|
|
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
|
-
//
|
|
23089
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/buffer-util.js
|
|
23090
23090
|
var require_buffer_util = __commonJS({
|
|
23091
|
-
"
|
|
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
|
-
//
|
|
23164
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/limiter.js
|
|
23165
23165
|
var require_limiter = __commonJS({
|
|
23166
|
-
"
|
|
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
|
-
//
|
|
23214
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js
|
|
23215
23215
|
var require_permessage_deflate = __commonJS({
|
|
23216
|
-
"
|
|
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
|
-
//
|
|
23597
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/validation.js
|
|
23598
23598
|
var require_validation = __commonJS({
|
|
23599
|
-
"
|
|
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
|
-
//
|
|
23798
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/receiver.js
|
|
23799
23799
|
var require_receiver = __commonJS({
|
|
23800
|
-
"
|
|
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
|
-
//
|
|
24390
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/sender.js
|
|
24391
24391
|
var require_sender = __commonJS({
|
|
24392
|
-
"
|
|
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
|
-
//
|
|
24878
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/event-target.js
|
|
24879
24879
|
var require_event_target = __commonJS({
|
|
24880
|
-
"
|
|
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
|
-
//
|
|
25107
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/extension.js
|
|
25108
25108
|
var require_extension = __commonJS({
|
|
25109
|
-
"
|
|
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
|
-
//
|
|
25260
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket.js
|
|
25261
25261
|
var require_websocket = __commonJS({
|
|
25262
|
-
"
|
|
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
|
-
//
|
|
26146
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/stream.js
|
|
26147
26147
|
var require_stream = __commonJS({
|
|
26148
|
-
"
|
|
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
|
-
//
|
|
26244
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/subprotocol.js
|
|
26245
26245
|
var require_subprotocol = __commonJS({
|
|
26246
|
-
"
|
|
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
|
-
//
|
|
26289
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket-server.js
|
|
26290
26290
|
var require_websocket_server = __commonJS({
|
|
26291
|
-
"
|
|
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
|
-
//
|
|
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
|
-
"
|
|
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
|
-
// dist/tui/render.js
|
|
26694
|
+
// packages/cli/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
|
-
"dist/tui/render.js"() {
|
|
27386
|
+
"packages/cli/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
|
-
// dist/tui/voice-session.js
|
|
27617
|
+
// packages/cli/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
|
-
"dist/tui/voice-session.js"() {
|
|
27998
|
+
"packages/cli/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
|
-
// dist/tui/expose.js
|
|
28345
|
+
// packages/cli/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
|
-
"dist/tui/expose.js"() {
|
|
28518
|
+
"packages/cli/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
|
-
// dist/tui/p2p/types.js
|
|
29665
|
+
// packages/cli/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
|
-
"dist/tui/p2p/types.js"() {
|
|
29671
|
+
"packages/cli/dist/tui/p2p/types.js"() {
|
|
29672
29672
|
"use strict";
|
|
29673
29673
|
TRUST_ORDER = ["public", "verified", "tee", "local"];
|
|
29674
29674
|
}
|
|
29675
29675
|
});
|
|
29676
29676
|
|
|
29677
|
-
// dist/tui/p2p/secret-vault.js
|
|
29677
|
+
// packages/cli/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
|
-
"dist/tui/p2p/secret-vault.js"() {
|
|
29683
|
+
"packages/cli/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
|
-
// dist/tui/p2p/peer-mesh.js
|
|
29941
|
+
// packages/cli/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
|
-
"dist/tui/p2p/peer-mesh.js"() {
|
|
29947
|
+
"packages/cli/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
|
-
// dist/tui/p2p/inference-router.js
|
|
30406
|
+
// packages/cli/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
|
-
"dist/tui/p2p/inference-router.js"() {
|
|
30410
|
+
"packages/cli/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
|
-
// dist/tui/p2p/index.js
|
|
30604
|
+
// packages/cli/dist/tui/p2p/index.js
|
|
30605
30605
|
var init_p2p = __esm({
|
|
30606
|
-
"dist/tui/p2p/index.js"() {
|
|
30606
|
+
"packages/cli/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
|
-
// dist/tui/call-agent.js
|
|
30615
|
+
// packages/cli/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
|
-
"dist/tui/call-agent.js"() {
|
|
30639
|
+
"packages/cli/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
|
-
// dist/tui/model-picker.js
|
|
30897
|
+
// packages/cli/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
|
-
"dist/tui/model-picker.js"() {
|
|
31418
|
+
"packages/cli/dist/tui/model-picker.js"() {
|
|
31419
31419
|
"use strict";
|
|
31420
31420
|
init_dist();
|
|
31421
31421
|
}
|
|
31422
31422
|
});
|
|
31423
31423
|
|
|
31424
|
-
//
|
|
31424
|
+
// packages/prompts/dist/loader.js
|
|
31425
31425
|
var init_loader = __esm({
|
|
31426
|
-
"
|
|
31426
|
+
"packages/prompts/dist/loader.js"() {
|
|
31427
31427
|
"use strict";
|
|
31428
31428
|
}
|
|
31429
31429
|
});
|
|
31430
31430
|
|
|
31431
|
-
//
|
|
31431
|
+
// packages/prompts/dist/render.js
|
|
31432
31432
|
var init_render2 = __esm({
|
|
31433
|
-
"
|
|
31433
|
+
"packages/prompts/dist/render.js"() {
|
|
31434
31434
|
"use strict";
|
|
31435
31435
|
}
|
|
31436
31436
|
});
|
|
31437
31437
|
|
|
31438
|
-
//
|
|
31438
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
+
// packages/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
|
+
"packages/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
|
-
// dist/tui/oa-directory.js
|
|
31590
|
+
// packages/cli/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
|
-
"dist/tui/oa-directory.js"() {
|
|
32052
|
+
"packages/cli/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
|
-
// dist/tui/setup.js
|
|
32093
|
+
// packages/cli/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
|
-
"dist/tui/setup.js"() {
|
|
33776
|
+
"packages/cli/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
|
-
// dist/tui/overlay-lock.js
|
|
33811
|
+
// packages/cli/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
|
-
"dist/tui/overlay-lock.js"() {
|
|
33874
|
+
"packages/cli/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
|
-
// dist/tui/tui-select.js
|
|
33884
|
+
// packages/cli/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
|
-
"dist/tui/tui-select.js"() {
|
|
34326
|
+
"packages/cli/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
|
-
// dist/tui/drop-panel.js
|
|
34344
|
+
// packages/cli/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
|
-
"dist/tui/drop-panel.js"() {
|
|
34515
|
+
"packages/cli/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
|
-
// dist/tui/neovim-mode.js
|
|
34530
|
+
// packages/cli/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";
|
|
@@ -34614,16 +34614,20 @@ async function startNeovimMode(opts) {
|
|
|
34614
34614
|
opts,
|
|
34615
34615
|
stdinHandler: null,
|
|
34616
34616
|
savedRlListeners: [],
|
|
34617
|
+
installedFilteredListeners: [],
|
|
34617
34618
|
cleanedUp: false
|
|
34618
34619
|
};
|
|
34619
34620
|
_state = state;
|
|
34620
34621
|
nvimPty.onData((data) => {
|
|
34621
34622
|
if (state.cleanedUp)
|
|
34622
34623
|
return;
|
|
34624
|
+
const filtered = data.replace(PTY_MODE_ENABLE_RE, "");
|
|
34625
|
+
if (!filtered)
|
|
34626
|
+
return;
|
|
34623
34627
|
if (!state.focused) {
|
|
34624
|
-
process.stdout.write("\x1B7" +
|
|
34628
|
+
process.stdout.write("\x1B7" + filtered + "\x1B8");
|
|
34625
34629
|
} else {
|
|
34626
|
-
process.stdout.write(
|
|
34630
|
+
process.stdout.write(filtered);
|
|
34627
34631
|
}
|
|
34628
34632
|
});
|
|
34629
34633
|
nvimPty.onExit(() => {
|
|
@@ -34744,6 +34748,8 @@ async function connectRPC(state, neovimPkg, cols) {
|
|
|
34744
34748
|
await nvim.command("wincmd h");
|
|
34745
34749
|
await nvim.command("set autoread");
|
|
34746
34750
|
await nvim.command("autocmd FocusGained,BufEnter,CursorHold * silent! checktime");
|
|
34751
|
+
await nvim.command("set mouse=");
|
|
34752
|
+
await nvim.command("autocmd BufEnter,WinEnter * set mouse=");
|
|
34747
34753
|
} catch {
|
|
34748
34754
|
}
|
|
34749
34755
|
}
|
|
@@ -34751,15 +34757,38 @@ function toggleFocus(state) {
|
|
|
34751
34757
|
const stdin = process.stdin;
|
|
34752
34758
|
if (state.focused) {
|
|
34753
34759
|
state.focused = false;
|
|
34754
|
-
process.stdout.write("\x1B[?1000l\x1B[?1002l\x1B[?1003l\x1B[?1006l");
|
|
34760
|
+
process.stdout.write("\x1B[?1000l\x1B[?1002l\x1B[?1003l\x1B[?1004l\x1B[?1006l\x1B[?1015l\x1B[?2004l");
|
|
34755
34761
|
if (state.stdinHandler) {
|
|
34756
34762
|
stdin.removeListener("data", state.stdinHandler);
|
|
34757
34763
|
}
|
|
34758
34764
|
if (typeof stdin.setRawMode === "function") {
|
|
34759
34765
|
stdin.setRawMode(false);
|
|
34760
34766
|
}
|
|
34767
|
+
state.installedFilteredListeners = [];
|
|
34761
34768
|
for (const { event, fn } of state.savedRlListeners) {
|
|
34762
|
-
|
|
34769
|
+
if (event === "data") {
|
|
34770
|
+
const filtered = (...args) => {
|
|
34771
|
+
if (args[0] instanceof Buffer) {
|
|
34772
|
+
const raw = args[0].toString("utf8");
|
|
34773
|
+
const clean = raw.replace(STDIN_MOUSE_FOCUS_RE, "");
|
|
34774
|
+
if (!clean)
|
|
34775
|
+
return;
|
|
34776
|
+
fn(Buffer.from(clean));
|
|
34777
|
+
} else if (typeof args[0] === "string") {
|
|
34778
|
+
const clean = args[0].replace(STDIN_MOUSE_FOCUS_RE, "");
|
|
34779
|
+
if (!clean)
|
|
34780
|
+
return;
|
|
34781
|
+
fn(clean);
|
|
34782
|
+
} else {
|
|
34783
|
+
fn(...args);
|
|
34784
|
+
}
|
|
34785
|
+
};
|
|
34786
|
+
stdin.on(event, filtered);
|
|
34787
|
+
state.installedFilteredListeners.push({ event, fn: filtered });
|
|
34788
|
+
} else {
|
|
34789
|
+
stdin.on(event, fn);
|
|
34790
|
+
state.installedFilteredListeners.push({ event, fn });
|
|
34791
|
+
}
|
|
34763
34792
|
}
|
|
34764
34793
|
if (state.opts.rl) {
|
|
34765
34794
|
state.opts.rl.resume();
|
|
@@ -34770,6 +34799,10 @@ function toggleFocus(state) {
|
|
|
34770
34799
|
if (state.opts.rl) {
|
|
34771
34800
|
state.opts.rl.pause();
|
|
34772
34801
|
}
|
|
34802
|
+
for (const { event, fn } of state.installedFilteredListeners) {
|
|
34803
|
+
stdin.removeListener(event, fn);
|
|
34804
|
+
}
|
|
34805
|
+
state.installedFilteredListeners = [];
|
|
34773
34806
|
state.savedRlListeners = [];
|
|
34774
34807
|
for (const event of ["keypress", "data"]) {
|
|
34775
34808
|
const listeners = stdin.listeners(event);
|
|
@@ -34785,7 +34818,10 @@ function toggleFocus(state) {
|
|
|
34785
34818
|
if (state.stdinHandler) {
|
|
34786
34819
|
stdin.on("data", state.stdinHandler);
|
|
34787
34820
|
}
|
|
34788
|
-
state.
|
|
34821
|
+
if (state.nvim) {
|
|
34822
|
+
state.nvim.command("redraw!").catch(() => {
|
|
34823
|
+
});
|
|
34824
|
+
}
|
|
34789
34825
|
}
|
|
34790
34826
|
}
|
|
34791
34827
|
function doCleanup(state) {
|
|
@@ -34816,6 +34852,10 @@ function doCleanup(state) {
|
|
|
34816
34852
|
stdin.removeListener("data", state.stdinHandler);
|
|
34817
34853
|
state.stdinHandler = null;
|
|
34818
34854
|
}
|
|
34855
|
+
for (const { event, fn } of state.installedFilteredListeners) {
|
|
34856
|
+
stdin.removeListener(event, fn);
|
|
34857
|
+
}
|
|
34858
|
+
state.installedFilteredListeners = [];
|
|
34819
34859
|
if (typeof stdin.setRawMode === "function") {
|
|
34820
34860
|
try {
|
|
34821
34861
|
stdin.setRawMode(false);
|
|
@@ -34830,20 +34870,22 @@ function doCleanup(state) {
|
|
|
34830
34870
|
state.opts.rl.prompt(false);
|
|
34831
34871
|
}
|
|
34832
34872
|
_state = null;
|
|
34833
|
-
process.stdout.write("\x1B[?1000l\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?1004l\x1B[H\x1B[J");
|
|
34873
|
+
process.stdout.write("\x1B[?1000l\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?1015l\x1B[?1004l\x1B[?2004l\x1B[H\x1B[J");
|
|
34834
34874
|
state.opts.onExit?.();
|
|
34835
34875
|
}
|
|
34836
|
-
var isTTY5, _state;
|
|
34876
|
+
var isTTY5, PTY_MODE_ENABLE_RE, STDIN_MOUSE_FOCUS_RE, _state;
|
|
34837
34877
|
var init_neovim_mode = __esm({
|
|
34838
|
-
"dist/tui/neovim-mode.js"() {
|
|
34878
|
+
"packages/cli/dist/tui/neovim-mode.js"() {
|
|
34839
34879
|
"use strict";
|
|
34840
34880
|
init_setup();
|
|
34841
34881
|
isTTY5 = process.stdout.isTTY ?? false;
|
|
34882
|
+
PTY_MODE_ENABLE_RE = /\x1B\[\?(?:1000|1002|1003|1004|1005|1006|1015|2004)h/g;
|
|
34883
|
+
STDIN_MOUSE_FOCUS_RE = /\x1B\[<[\d;]+[Mm]|\x1B\[M[\s\S]{3}|\x1B\[[IO]/g;
|
|
34842
34884
|
_state = null;
|
|
34843
34885
|
}
|
|
34844
34886
|
});
|
|
34845
34887
|
|
|
34846
|
-
// dist/tui/voice.js
|
|
34888
|
+
// packages/cli/dist/tui/voice.js
|
|
34847
34889
|
var voice_exports = {};
|
|
34848
34890
|
__export(voice_exports, {
|
|
34849
34891
|
VoiceEngine: () => VoiceEngine,
|
|
@@ -35542,7 +35584,7 @@ function formatBytes2(bytes) {
|
|
|
35542
35584
|
}
|
|
35543
35585
|
var VOICE_MODELS, VoiceEngine, RING_BUFFER_SIZE, narration;
|
|
35544
35586
|
var init_voice = __esm({
|
|
35545
|
-
"dist/tui/voice.js"() {
|
|
35587
|
+
"packages/cli/dist/tui/voice.js"() {
|
|
35546
35588
|
"use strict";
|
|
35547
35589
|
init_render();
|
|
35548
35590
|
VOICE_MODELS = {
|
|
@@ -37268,7 +37310,7 @@ Error: ${err instanceof Error ? err.message : String(err)}`);
|
|
|
37268
37310
|
}
|
|
37269
37311
|
});
|
|
37270
37312
|
|
|
37271
|
-
// dist/tui/commands.js
|
|
37313
|
+
// packages/cli/dist/tui/commands.js
|
|
37272
37314
|
async function handleSlashCommand(input, ctx) {
|
|
37273
37315
|
const trimmed = input.trim();
|
|
37274
37316
|
if (!trimmed.startsWith("/"))
|
|
@@ -40219,7 +40261,7 @@ async function showExposeDashboard(gateway, rl) {
|
|
|
40219
40261
|
}
|
|
40220
40262
|
var DASH_INTERNAL;
|
|
40221
40263
|
var init_commands = __esm({
|
|
40222
|
-
"dist/tui/commands.js"() {
|
|
40264
|
+
"packages/cli/dist/tui/commands.js"() {
|
|
40223
40265
|
"use strict";
|
|
40224
40266
|
init_model_picker();
|
|
40225
40267
|
init_render();
|
|
@@ -40239,7 +40281,7 @@ var init_commands = __esm({
|
|
|
40239
40281
|
}
|
|
40240
40282
|
});
|
|
40241
40283
|
|
|
40242
|
-
// dist/tui/project-context.js
|
|
40284
|
+
// packages/cli/dist/tui/project-context.js
|
|
40243
40285
|
import { existsSync as existsSync35, readFileSync as readFileSync25, readdirSync as readdirSync10 } from "node:fs";
|
|
40244
40286
|
import { join as join43, basename as basename10 } from "node:path";
|
|
40245
40287
|
import { execSync as execSync28 } from "node:child_process";
|
|
@@ -40544,14 +40586,14 @@ These patterns have been repeated 3+ times. Consider using create_tool to automa
|
|
|
40544
40586
|
return sections.join("\n\n");
|
|
40545
40587
|
}
|
|
40546
40588
|
var init_project_context = __esm({
|
|
40547
|
-
"dist/tui/project-context.js"() {
|
|
40589
|
+
"packages/cli/dist/tui/project-context.js"() {
|
|
40548
40590
|
"use strict";
|
|
40549
40591
|
init_oa_directory();
|
|
40550
40592
|
init_dist2();
|
|
40551
40593
|
}
|
|
40552
40594
|
});
|
|
40553
40595
|
|
|
40554
|
-
//
|
|
40596
|
+
// packages/memory/dist/db.js
|
|
40555
40597
|
import Database from "better-sqlite3";
|
|
40556
40598
|
function initDb(dbPath) {
|
|
40557
40599
|
const db = new Database(dbPath);
|
|
@@ -40706,26 +40748,26 @@ function runMigrations(db) {
|
|
|
40706
40748
|
`);
|
|
40707
40749
|
}
|
|
40708
40750
|
var init_db = __esm({
|
|
40709
|
-
"
|
|
40751
|
+
"packages/memory/dist/db.js"() {
|
|
40710
40752
|
"use strict";
|
|
40711
40753
|
}
|
|
40712
40754
|
});
|
|
40713
40755
|
|
|
40714
|
-
//
|
|
40756
|
+
// packages/memory/dist/repoProfileStore.js
|
|
40715
40757
|
var init_repoProfileStore = __esm({
|
|
40716
|
-
"
|
|
40758
|
+
"packages/memory/dist/repoProfileStore.js"() {
|
|
40717
40759
|
"use strict";
|
|
40718
40760
|
}
|
|
40719
40761
|
});
|
|
40720
40762
|
|
|
40721
|
-
//
|
|
40763
|
+
// packages/memory/dist/fileSummaryStore.js
|
|
40722
40764
|
var init_fileSummaryStore = __esm({
|
|
40723
|
-
"
|
|
40765
|
+
"packages/memory/dist/fileSummaryStore.js"() {
|
|
40724
40766
|
"use strict";
|
|
40725
40767
|
}
|
|
40726
40768
|
});
|
|
40727
40769
|
|
|
40728
|
-
//
|
|
40770
|
+
// packages/memory/dist/taskMemoryStore.js
|
|
40729
40771
|
import { randomUUID } from "node:crypto";
|
|
40730
40772
|
function rowToTask(row) {
|
|
40731
40773
|
return {
|
|
@@ -40744,7 +40786,7 @@ function rowToTask(row) {
|
|
|
40744
40786
|
}
|
|
40745
40787
|
var TaskMemoryStore;
|
|
40746
40788
|
var init_taskMemoryStore = __esm({
|
|
40747
|
-
"
|
|
40789
|
+
"packages/memory/dist/taskMemoryStore.js"() {
|
|
40748
40790
|
"use strict";
|
|
40749
40791
|
TaskMemoryStore = class {
|
|
40750
40792
|
db;
|
|
@@ -40795,14 +40837,14 @@ var init_taskMemoryStore = __esm({
|
|
|
40795
40837
|
}
|
|
40796
40838
|
});
|
|
40797
40839
|
|
|
40798
|
-
//
|
|
40840
|
+
// packages/memory/dist/patchHistoryStore.js
|
|
40799
40841
|
var init_patchHistoryStore = __esm({
|
|
40800
|
-
"
|
|
40842
|
+
"packages/memory/dist/patchHistoryStore.js"() {
|
|
40801
40843
|
"use strict";
|
|
40802
40844
|
}
|
|
40803
40845
|
});
|
|
40804
40846
|
|
|
40805
|
-
//
|
|
40847
|
+
// packages/memory/dist/failureStore.js
|
|
40806
40848
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
40807
40849
|
function rowToFailure(row) {
|
|
40808
40850
|
return {
|
|
@@ -40823,7 +40865,7 @@ function rowToFailure(row) {
|
|
|
40823
40865
|
}
|
|
40824
40866
|
var FailureStore;
|
|
40825
40867
|
var init_failureStore = __esm({
|
|
40826
|
-
"
|
|
40868
|
+
"packages/memory/dist/failureStore.js"() {
|
|
40827
40869
|
"use strict";
|
|
40828
40870
|
FailureStore = class {
|
|
40829
40871
|
db;
|
|
@@ -40878,18 +40920,18 @@ var init_failureStore = __esm({
|
|
|
40878
40920
|
}
|
|
40879
40921
|
});
|
|
40880
40922
|
|
|
40881
|
-
//
|
|
40923
|
+
// packages/memory/dist/validationStore.js
|
|
40882
40924
|
var init_validationStore = __esm({
|
|
40883
|
-
"
|
|
40925
|
+
"packages/memory/dist/validationStore.js"() {
|
|
40884
40926
|
"use strict";
|
|
40885
40927
|
}
|
|
40886
40928
|
});
|
|
40887
40929
|
|
|
40888
|
-
//
|
|
40930
|
+
// packages/memory/dist/toolPatternStore.js
|
|
40889
40931
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
40890
40932
|
var ToolPatternStore;
|
|
40891
40933
|
var init_toolPatternStore = __esm({
|
|
40892
|
-
"
|
|
40934
|
+
"packages/memory/dist/toolPatternStore.js"() {
|
|
40893
40935
|
"use strict";
|
|
40894
40936
|
ToolPatternStore = class {
|
|
40895
40937
|
db;
|
|
@@ -41068,9 +41110,9 @@ var init_toolPatternStore = __esm({
|
|
|
41068
41110
|
}
|
|
41069
41111
|
});
|
|
41070
41112
|
|
|
41071
|
-
//
|
|
41113
|
+
// packages/memory/dist/index.js
|
|
41072
41114
|
var init_dist7 = __esm({
|
|
41073
|
-
"
|
|
41115
|
+
"packages/memory/dist/index.js"() {
|
|
41074
41116
|
"use strict";
|
|
41075
41117
|
init_db();
|
|
41076
41118
|
init_repoProfileStore();
|
|
@@ -41083,7 +41125,7 @@ var init_dist7 = __esm({
|
|
|
41083
41125
|
}
|
|
41084
41126
|
});
|
|
41085
41127
|
|
|
41086
|
-
// dist/tui/carousel.js
|
|
41128
|
+
// packages/cli/dist/tui/carousel.js
|
|
41087
41129
|
function fg(code, text) {
|
|
41088
41130
|
return isTTY6 ? `\x1B[38;5;${code}m${text}\x1B[0m` : text;
|
|
41089
41131
|
}
|
|
@@ -41125,7 +41167,7 @@ function createRow(phraseIndices, speed, direction, bank) {
|
|
|
41125
41167
|
}
|
|
41126
41168
|
var isTTY6, PHRASES, Carousel;
|
|
41127
41169
|
var init_carousel = __esm({
|
|
41128
|
-
"dist/tui/carousel.js"() {
|
|
41170
|
+
"packages/cli/dist/tui/carousel.js"() {
|
|
41129
41171
|
"use strict";
|
|
41130
41172
|
isTTY6 = process.stdout.isTTY ?? false;
|
|
41131
41173
|
PHRASES = [
|
|
@@ -41366,7 +41408,7 @@ var init_carousel = __esm({
|
|
|
41366
41408
|
}
|
|
41367
41409
|
});
|
|
41368
41410
|
|
|
41369
|
-
// dist/tui/carousel-descriptors.js
|
|
41411
|
+
// packages/cli/dist/tui/carousel-descriptors.js
|
|
41370
41412
|
import { existsSync as existsSync36, readFileSync as readFileSync26, writeFileSync as writeFileSync14, mkdirSync as mkdirSync14, readdirSync as readdirSync11 } from "node:fs";
|
|
41371
41413
|
import { join as join44, basename as basename11 } from "node:path";
|
|
41372
41414
|
function loadToolProfile(repoRoot) {
|
|
@@ -41613,7 +41655,7 @@ function extractFromToolProfile(profile, tags) {
|
|
|
41613
41655
|
}
|
|
41614
41656
|
var TOOL_CATEGORIES, TOOL_PROFILE_FILE, DESCRIPTOR_FILE, CATEGORY_LABELS, STOP_WORDS;
|
|
41615
41657
|
var init_carousel_descriptors = __esm({
|
|
41616
|
-
"dist/tui/carousel-descriptors.js"() {
|
|
41658
|
+
"packages/cli/dist/tui/carousel-descriptors.js"() {
|
|
41617
41659
|
"use strict";
|
|
41618
41660
|
init_oa_directory();
|
|
41619
41661
|
TOOL_CATEGORIES = [
|
|
@@ -41719,7 +41761,7 @@ var init_carousel_descriptors = __esm({
|
|
|
41719
41761
|
}
|
|
41720
41762
|
});
|
|
41721
41763
|
|
|
41722
|
-
// dist/tui/stream-renderer.js
|
|
41764
|
+
// packages/cli/dist/tui/stream-renderer.js
|
|
41723
41765
|
function fg2563(code, text) {
|
|
41724
41766
|
return isTTY7 ? `\x1B[38;5;${code}m${text}\x1B[0m` : text;
|
|
41725
41767
|
}
|
|
@@ -41737,7 +41779,7 @@ function boldText(text) {
|
|
|
41737
41779
|
}
|
|
41738
41780
|
var isTTY7, PASTEL, StreamRenderer;
|
|
41739
41781
|
var init_stream_renderer = __esm({
|
|
41740
|
-
"dist/tui/stream-renderer.js"() {
|
|
41782
|
+
"packages/cli/dist/tui/stream-renderer.js"() {
|
|
41741
41783
|
"use strict";
|
|
41742
41784
|
isTTY7 = process.stdout.isTTY ?? false;
|
|
41743
41785
|
PASTEL = {
|
|
@@ -42206,7 +42248,7 @@ var init_stream_renderer = __esm({
|
|
|
42206
42248
|
}
|
|
42207
42249
|
});
|
|
42208
42250
|
|
|
42209
|
-
// dist/tui/edit-history.js
|
|
42251
|
+
// packages/cli/dist/tui/edit-history.js
|
|
42210
42252
|
import { appendFileSync as appendFileSync3, mkdirSync as mkdirSync15 } from "node:fs";
|
|
42211
42253
|
import { join as join45 } from "node:path";
|
|
42212
42254
|
function createEditHistoryLogger(repoRoot, sessionId) {
|
|
@@ -42310,7 +42352,7 @@ function sanitizeArgs(tool, args) {
|
|
|
42310
42352
|
}
|
|
42311
42353
|
var EDIT_TOOLS;
|
|
42312
42354
|
var init_edit_history = __esm({
|
|
42313
|
-
"dist/tui/edit-history.js"() {
|
|
42355
|
+
"packages/cli/dist/tui/edit-history.js"() {
|
|
42314
42356
|
"use strict";
|
|
42315
42357
|
EDIT_TOOLS = /* @__PURE__ */ new Set([
|
|
42316
42358
|
"file_edit",
|
|
@@ -42321,7 +42363,7 @@ var init_edit_history = __esm({
|
|
|
42321
42363
|
}
|
|
42322
42364
|
});
|
|
42323
42365
|
|
|
42324
|
-
// dist/tui/promptLoader.js
|
|
42366
|
+
// packages/cli/dist/tui/promptLoader.js
|
|
42325
42367
|
import { readFileSync as readFileSync27, existsSync as existsSync37 } from "node:fs";
|
|
42326
42368
|
import { join as join46, dirname as dirname17 } from "node:path";
|
|
42327
42369
|
import { fileURLToPath as fileURLToPath11 } from "node:url";
|
|
@@ -42341,7 +42383,7 @@ function loadPrompt3(promptPath, vars) {
|
|
|
42341
42383
|
}
|
|
42342
42384
|
var __filename3, __dirname6, devPath2, publishedPath2, PROMPTS_DIR3, cache3;
|
|
42343
42385
|
var init_promptLoader3 = __esm({
|
|
42344
|
-
"dist/tui/promptLoader.js"() {
|
|
42386
|
+
"packages/cli/dist/tui/promptLoader.js"() {
|
|
42345
42387
|
"use strict";
|
|
42346
42388
|
__filename3 = fileURLToPath11(import.meta.url);
|
|
42347
42389
|
__dirname6 = dirname17(__filename3);
|
|
@@ -42352,7 +42394,7 @@ var init_promptLoader3 = __esm({
|
|
|
42352
42394
|
}
|
|
42353
42395
|
});
|
|
42354
42396
|
|
|
42355
|
-
// dist/tui/dream-engine.js
|
|
42397
|
+
// packages/cli/dist/tui/dream-engine.js
|
|
42356
42398
|
import { mkdirSync as mkdirSync16, writeFileSync as writeFileSync15, readFileSync as readFileSync28, existsSync as existsSync38, cpSync, rmSync, readdirSync as readdirSync12 } from "node:fs";
|
|
42357
42399
|
import { join as join47, basename as basename12 } from "node:path";
|
|
42358
42400
|
import { execSync as execSync29 } from "node:child_process";
|
|
@@ -42515,7 +42557,7 @@ function renderSwarmComplete(workspace) {
|
|
|
42515
42557
|
}
|
|
42516
42558
|
var SWARM_ROLE_CONFIG, AutoresearchFileWriteTool, AutoresearchFileEditTool, AUTORESEARCH_MEMORY_KEYS, SLEEP_STAGES, DreamFileWriteTool, DreamFileEditTool, DreamShellTool, DreamEngine;
|
|
42517
42559
|
var init_dream_engine = __esm({
|
|
42518
|
-
"dist/tui/dream-engine.js"() {
|
|
42560
|
+
"packages/cli/dist/tui/dream-engine.js"() {
|
|
42519
42561
|
"use strict";
|
|
42520
42562
|
init_dist5();
|
|
42521
42563
|
init_dist2();
|
|
@@ -43595,7 +43637,7 @@ ${files.map((f) => `- [\`${f}\`](./${f})`).join("\n")}
|
|
|
43595
43637
|
}
|
|
43596
43638
|
});
|
|
43597
43639
|
|
|
43598
|
-
// dist/tui/priority-ingress.js
|
|
43640
|
+
// packages/cli/dist/tui/priority-ingress.js
|
|
43599
43641
|
function classifyPriority(prompt, source, origin) {
|
|
43600
43642
|
for (const rule of CLASSIFICATION_RULES) {
|
|
43601
43643
|
if (rule.sourceType !== "any" && rule.sourceType !== source)
|
|
@@ -43620,7 +43662,7 @@ function classifyPriority(prompt, source, origin) {
|
|
|
43620
43662
|
}
|
|
43621
43663
|
var PRIORITY_WEIGHT, PRIORITY_POLICIES, CLASSIFICATION_RULES, PriorityIngressEngine;
|
|
43622
43664
|
var init_priority_ingress = __esm({
|
|
43623
|
-
"dist/tui/priority-ingress.js"() {
|
|
43665
|
+
"packages/cli/dist/tui/priority-ingress.js"() {
|
|
43624
43666
|
"use strict";
|
|
43625
43667
|
PRIORITY_WEIGHT = {
|
|
43626
43668
|
critical: 100,
|
|
@@ -43805,7 +43847,7 @@ var init_priority_ingress = __esm({
|
|
|
43805
43847
|
}
|
|
43806
43848
|
});
|
|
43807
43849
|
|
|
43808
|
-
// dist/tui/bless-engine.js
|
|
43850
|
+
// packages/cli/dist/tui/bless-engine.js
|
|
43809
43851
|
function renderBlessStart() {
|
|
43810
43852
|
process.stdout.write(`
|
|
43811
43853
|
${c2.green("\u26A1")} ${c2.bold("BLESSED")} \u2014 Infinite warm loop activated
|
|
@@ -43829,7 +43871,7 @@ function renderBlessStop(state) {
|
|
|
43829
43871
|
}
|
|
43830
43872
|
var BlessEngine;
|
|
43831
43873
|
var init_bless_engine = __esm({
|
|
43832
|
-
"dist/tui/bless-engine.js"() {
|
|
43874
|
+
"packages/cli/dist/tui/bless-engine.js"() {
|
|
43833
43875
|
"use strict";
|
|
43834
43876
|
init_render();
|
|
43835
43877
|
init_dist2();
|
|
@@ -43960,7 +44002,7 @@ var init_bless_engine = __esm({
|
|
|
43960
44002
|
}
|
|
43961
44003
|
});
|
|
43962
44004
|
|
|
43963
|
-
// dist/tui/dmn-engine.js
|
|
44005
|
+
// packages/cli/dist/tui/dmn-engine.js
|
|
43964
44006
|
import { existsSync as existsSync39, readFileSync as readFileSync29, writeFileSync as writeFileSync16, mkdirSync as mkdirSync17, readdirSync as readdirSync13, unlinkSync as unlinkSync7 } from "node:fs";
|
|
43965
44007
|
import { join as join48, basename as basename13 } from "node:path";
|
|
43966
44008
|
function buildDMNGatherPrompt(recentTaskSummaries, dueReminders, attentionItems, memoryTopics, capabilities, competence, reflectionBuffer) {
|
|
@@ -44048,7 +44090,7 @@ function renderDMNResting(consecutiveNulls) {
|
|
|
44048
44090
|
}
|
|
44049
44091
|
var DMNEngine;
|
|
44050
44092
|
var init_dmn_engine = __esm({
|
|
44051
|
-
"dist/tui/dmn-engine.js"() {
|
|
44093
|
+
"packages/cli/dist/tui/dmn-engine.js"() {
|
|
44052
44094
|
"use strict";
|
|
44053
44095
|
init_dist5();
|
|
44054
44096
|
init_dist2();
|
|
@@ -44720,7 +44762,7 @@ OUTPUT: Call task_complete with JSON:
|
|
|
44720
44762
|
}
|
|
44721
44763
|
});
|
|
44722
44764
|
|
|
44723
|
-
// dist/tui/snr-engine.js
|
|
44765
|
+
// packages/cli/dist/tui/snr-engine.js
|
|
44724
44766
|
import { existsSync as existsSync40, readdirSync as readdirSync14, readFileSync as readFileSync30 } from "node:fs";
|
|
44725
44767
|
import { join as join49, basename as basename14 } from "node:path";
|
|
44726
44768
|
function computeDPrime(signalScores, noiseScores) {
|
|
@@ -44780,7 +44822,7 @@ function adaptTool4(tool) {
|
|
|
44780
44822
|
}
|
|
44781
44823
|
var SNREngine;
|
|
44782
44824
|
var init_snr_engine = __esm({
|
|
44783
|
-
"dist/tui/snr-engine.js"() {
|
|
44825
|
+
"packages/cli/dist/tui/snr-engine.js"() {
|
|
44784
44826
|
"use strict";
|
|
44785
44827
|
init_dist5();
|
|
44786
44828
|
init_dist2();
|
|
@@ -45055,7 +45097,7 @@ Call task_complete with the JSON array when done.`, onEvent)
|
|
|
45055
45097
|
}
|
|
45056
45098
|
});
|
|
45057
45099
|
|
|
45058
|
-
// dist/tui/emotion-engine.js
|
|
45100
|
+
// packages/cli/dist/tui/emotion-engine.js
|
|
45059
45101
|
function labelFromCoordinates(valence, arousal) {
|
|
45060
45102
|
if (valence > 0.6 && arousal > 0.6)
|
|
45061
45103
|
return { label: "exhilarated", emoji: "\u{1F929}" };
|
|
@@ -45116,7 +45158,7 @@ function clamp(value, min, max) {
|
|
|
45116
45158
|
}
|
|
45117
45159
|
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;
|
|
45118
45160
|
var init_emotion_engine = __esm({
|
|
45119
|
-
"dist/tui/emotion-engine.js"() {
|
|
45161
|
+
"packages/cli/dist/tui/emotion-engine.js"() {
|
|
45120
45162
|
"use strict";
|
|
45121
45163
|
init_dist5();
|
|
45122
45164
|
init_promptLoader3();
|
|
@@ -45462,7 +45504,7 @@ var init_emotion_engine = __esm({
|
|
|
45462
45504
|
}
|
|
45463
45505
|
});
|
|
45464
45506
|
|
|
45465
|
-
// dist/tui/tool-policy.js
|
|
45507
|
+
// packages/cli/dist/tui/tool-policy.js
|
|
45466
45508
|
function getDefaultPolicy(context) {
|
|
45467
45509
|
switch (context) {
|
|
45468
45510
|
case "terminal":
|
|
@@ -45512,7 +45554,7 @@ function applyToolPolicy(tools, context, userConfig) {
|
|
|
45512
45554
|
}
|
|
45513
45555
|
var SAFE_PUBLIC_TOOLS, SAFE_GROUP_ADMIN_TOOLS;
|
|
45514
45556
|
var init_tool_policy = __esm({
|
|
45515
|
-
"dist/tui/tool-policy.js"() {
|
|
45557
|
+
"packages/cli/dist/tui/tool-policy.js"() {
|
|
45516
45558
|
"use strict";
|
|
45517
45559
|
SAFE_PUBLIC_TOOLS = /* @__PURE__ */ new Set([
|
|
45518
45560
|
"memory_read",
|
|
@@ -45541,7 +45583,7 @@ var init_tool_policy = __esm({
|
|
|
45541
45583
|
}
|
|
45542
45584
|
});
|
|
45543
45585
|
|
|
45544
|
-
// dist/tui/telegram-bridge.js
|
|
45586
|
+
// packages/cli/dist/tui/telegram-bridge.js
|
|
45545
45587
|
import { mkdirSync as mkdirSync18, existsSync as existsSync41, unlinkSync as unlinkSync8, readdirSync as readdirSync15, statSync as statSync11 } from "node:fs";
|
|
45546
45588
|
import { join as join50, resolve as resolve28 } from "node:path";
|
|
45547
45589
|
import { writeFile as writeFileAsync } from "node:fs/promises";
|
|
@@ -45678,7 +45720,7 @@ function renderTelegramSubAgentError(username, error) {
|
|
|
45678
45720
|
}
|
|
45679
45721
|
var TELEGRAM_SAFETY_PROMPT, ADMIN_DM_PROMPT, ADMIN_GROUP_PROMPT, GROUP_REPLY_DISCRETION_PROMPT, MEDIA_CACHE_TTL_MS, TelegramBridge;
|
|
45680
45722
|
var init_telegram_bridge = __esm({
|
|
45681
|
-
"dist/tui/telegram-bridge.js"() {
|
|
45723
|
+
"packages/cli/dist/tui/telegram-bridge.js"() {
|
|
45682
45724
|
"use strict";
|
|
45683
45725
|
init_dist5();
|
|
45684
45726
|
init_dist2();
|
|
@@ -46717,7 +46759,7 @@ ${caption}\r
|
|
|
46717
46759
|
}
|
|
46718
46760
|
});
|
|
46719
46761
|
|
|
46720
|
-
// dist/tui/braille-spinner.js
|
|
46762
|
+
// packages/cli/dist/tui/braille-spinner.js
|
|
46721
46763
|
function buildColorRamp(ramp) {
|
|
46722
46764
|
return [...ramp, ...ramp.slice(1, -1).reverse()];
|
|
46723
46765
|
}
|
|
@@ -46759,7 +46801,7 @@ function themeForTool(toolName) {
|
|
|
46759
46801
|
}
|
|
46760
46802
|
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;
|
|
46761
46803
|
var init_braille_spinner = __esm({
|
|
46762
|
-
"dist/tui/braille-spinner.js"() {
|
|
46804
|
+
"packages/cli/dist/tui/braille-spinner.js"() {
|
|
46763
46805
|
"use strict";
|
|
46764
46806
|
DENSITY = [
|
|
46765
46807
|
"\u2800",
|
|
@@ -46956,7 +46998,7 @@ var init_braille_spinner = __esm({
|
|
|
46956
46998
|
}
|
|
46957
46999
|
});
|
|
46958
47000
|
|
|
46959
|
-
// dist/tui/system-metrics.js
|
|
47001
|
+
// packages/cli/dist/tui/system-metrics.js
|
|
46960
47002
|
import { loadavg as loadavg2, cpus as cpus2, totalmem as totalmem3, freemem as freemem2, platform as platform4 } from "node:os";
|
|
46961
47003
|
import { exec as exec3 } from "node:child_process";
|
|
46962
47004
|
import { readFile as readFile16 } from "node:fs/promises";
|
|
@@ -47128,7 +47170,7 @@ async function collectLocalMetrics() {
|
|
|
47128
47170
|
}
|
|
47129
47171
|
var _lastNetSnapshot, _nvidiaSmiAvailable, SystemMetricsCollector;
|
|
47130
47172
|
var init_system_metrics = __esm({
|
|
47131
|
-
"dist/tui/system-metrics.js"() {
|
|
47173
|
+
"packages/cli/dist/tui/system-metrics.js"() {
|
|
47132
47174
|
"use strict";
|
|
47133
47175
|
_lastNetSnapshot = null;
|
|
47134
47176
|
_nvidiaSmiAvailable = null;
|
|
@@ -47237,10 +47279,10 @@ var init_system_metrics = __esm({
|
|
|
47237
47279
|
}
|
|
47238
47280
|
});
|
|
47239
47281
|
|
|
47240
|
-
// dist/tui/status-bar.js
|
|
47282
|
+
// packages/cli/dist/tui/status-bar.js
|
|
47241
47283
|
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;
|
|
47242
47284
|
var init_status_bar = __esm({
|
|
47243
|
-
"dist/tui/status-bar.js"() {
|
|
47285
|
+
"packages/cli/dist/tui/status-bar.js"() {
|
|
47244
47286
|
"use strict";
|
|
47245
47287
|
init_render();
|
|
47246
47288
|
init_braille_spinner();
|
|
@@ -48649,7 +48691,7 @@ var init_status_bar = __esm({
|
|
|
48649
48691
|
}
|
|
48650
48692
|
});
|
|
48651
48693
|
|
|
48652
|
-
// dist/tui/interactive.js
|
|
48694
|
+
// packages/cli/dist/tui/interactive.js
|
|
48653
48695
|
import * as readline2 from "node:readline";
|
|
48654
48696
|
import { Writable } from "node:stream";
|
|
48655
48697
|
import { cwd } from "node:process";
|
|
@@ -52170,7 +52212,7 @@ async function runWithTUI(task, config, repoPath) {
|
|
|
52170
52212
|
}
|
|
52171
52213
|
var taskManager;
|
|
52172
52214
|
var init_interactive = __esm({
|
|
52173
|
-
"dist/tui/interactive.js"() {
|
|
52215
|
+
"packages/cli/dist/tui/interactive.js"() {
|
|
52174
52216
|
"use strict";
|
|
52175
52217
|
init_dist5();
|
|
52176
52218
|
init_dist5();
|
|
@@ -52210,7 +52252,7 @@ var init_interactive = __esm({
|
|
|
52210
52252
|
}
|
|
52211
52253
|
});
|
|
52212
52254
|
|
|
52213
|
-
// dist/commands/run.js
|
|
52255
|
+
// packages/cli/dist/commands/run.js
|
|
52214
52256
|
var run_exports = {};
|
|
52215
52257
|
__export(run_exports, {
|
|
52216
52258
|
runCommand: () => runCommand
|
|
@@ -52230,13 +52272,13 @@ async function runCommand(opts, config) {
|
|
|
52230
52272
|
}
|
|
52231
52273
|
}
|
|
52232
52274
|
var init_run = __esm({
|
|
52233
|
-
"dist/commands/run.js"() {
|
|
52275
|
+
"packages/cli/dist/commands/run.js"() {
|
|
52234
52276
|
"use strict";
|
|
52235
52277
|
init_interactive();
|
|
52236
52278
|
}
|
|
52237
52279
|
});
|
|
52238
52280
|
|
|
52239
|
-
//
|
|
52281
|
+
// packages/indexer/dist/codebase-indexer.js
|
|
52240
52282
|
import { glob } from "glob";
|
|
52241
52283
|
import ignore from "ignore";
|
|
52242
52284
|
import { readFile as readFile17, stat as stat4 } from "node:fs/promises";
|
|
@@ -52244,7 +52286,7 @@ import { createHash as createHash4 } from "node:crypto";
|
|
|
52244
52286
|
import { join as join52, relative as relative3, extname as extname11, basename as basename15 } from "node:path";
|
|
52245
52287
|
var DEFAULT_EXCLUDE, LANGUAGE_MAP, CodebaseIndexer;
|
|
52246
52288
|
var init_codebase_indexer = __esm({
|
|
52247
|
-
"
|
|
52289
|
+
"packages/indexer/dist/codebase-indexer.js"() {
|
|
52248
52290
|
"use strict";
|
|
52249
52291
|
DEFAULT_EXCLUDE = [
|
|
52250
52292
|
"node_modules",
|
|
@@ -52362,25 +52404,25 @@ var init_codebase_indexer = __esm({
|
|
|
52362
52404
|
}
|
|
52363
52405
|
});
|
|
52364
52406
|
|
|
52365
|
-
//
|
|
52407
|
+
// packages/indexer/dist/repoScanner.js
|
|
52366
52408
|
import ignore2 from "ignore";
|
|
52367
52409
|
var init_repoScanner = __esm({
|
|
52368
|
-
"
|
|
52410
|
+
"packages/indexer/dist/repoScanner.js"() {
|
|
52369
52411
|
"use strict";
|
|
52370
52412
|
}
|
|
52371
52413
|
});
|
|
52372
52414
|
|
|
52373
|
-
//
|
|
52415
|
+
// packages/indexer/dist/symbolExtractor.js
|
|
52374
52416
|
var init_symbolExtractor = __esm({
|
|
52375
|
-
"
|
|
52417
|
+
"packages/indexer/dist/symbolExtractor.js"() {
|
|
52376
52418
|
"use strict";
|
|
52377
52419
|
}
|
|
52378
52420
|
});
|
|
52379
52421
|
|
|
52380
|
-
//
|
|
52422
|
+
// packages/indexer/dist/graphBuilder.js
|
|
52381
52423
|
var TS_EXTENSIONS, JS_EXTENSIONS, ALL_EXTENSIONS;
|
|
52382
52424
|
var init_graphBuilder = __esm({
|
|
52383
|
-
"
|
|
52425
|
+
"packages/indexer/dist/graphBuilder.js"() {
|
|
52384
52426
|
"use strict";
|
|
52385
52427
|
TS_EXTENSIONS = [".ts", ".tsx", ".mts", ".cts"];
|
|
52386
52428
|
JS_EXTENSIONS = [".js", ".jsx", ".mjs", ".cjs"];
|
|
@@ -52388,30 +52430,30 @@ var init_graphBuilder = __esm({
|
|
|
52388
52430
|
}
|
|
52389
52431
|
});
|
|
52390
52432
|
|
|
52391
|
-
//
|
|
52433
|
+
// packages/indexer/dist/fileSummarizer.js
|
|
52392
52434
|
var init_fileSummarizer = __esm({
|
|
52393
|
-
"
|
|
52435
|
+
"packages/indexer/dist/fileSummarizer.js"() {
|
|
52394
52436
|
"use strict";
|
|
52395
52437
|
}
|
|
52396
52438
|
});
|
|
52397
52439
|
|
|
52398
|
-
//
|
|
52440
|
+
// packages/indexer/dist/embeddings.js
|
|
52399
52441
|
var init_embeddings = __esm({
|
|
52400
|
-
"
|
|
52442
|
+
"packages/indexer/dist/embeddings.js"() {
|
|
52401
52443
|
"use strict";
|
|
52402
52444
|
}
|
|
52403
52445
|
});
|
|
52404
52446
|
|
|
52405
|
-
//
|
|
52447
|
+
// packages/indexer/dist/ollamaEmbeddings.js
|
|
52406
52448
|
var init_ollamaEmbeddings = __esm({
|
|
52407
|
-
"
|
|
52449
|
+
"packages/indexer/dist/ollamaEmbeddings.js"() {
|
|
52408
52450
|
"use strict";
|
|
52409
52451
|
}
|
|
52410
52452
|
});
|
|
52411
52453
|
|
|
52412
|
-
//
|
|
52454
|
+
// packages/indexer/dist/index.js
|
|
52413
52455
|
var init_dist8 = __esm({
|
|
52414
|
-
"
|
|
52456
|
+
"packages/indexer/dist/index.js"() {
|
|
52415
52457
|
"use strict";
|
|
52416
52458
|
init_codebase_indexer();
|
|
52417
52459
|
init_repoScanner();
|
|
@@ -52423,7 +52465,7 @@ var init_dist8 = __esm({
|
|
|
52423
52465
|
}
|
|
52424
52466
|
});
|
|
52425
52467
|
|
|
52426
|
-
// dist/commands/index-repo.js
|
|
52468
|
+
// packages/cli/dist/commands/index-repo.js
|
|
52427
52469
|
var index_repo_exports = {};
|
|
52428
52470
|
__export(index_repo_exports, {
|
|
52429
52471
|
indexRepoCommand: () => indexRepoCommand
|
|
@@ -52516,7 +52558,7 @@ async function indexRepoCommand(opts, _config) {
|
|
|
52516
52558
|
printSuccess("Repository indexed successfully");
|
|
52517
52559
|
}
|
|
52518
52560
|
var init_index_repo = __esm({
|
|
52519
|
-
"dist/commands/index-repo.js"() {
|
|
52561
|
+
"packages/cli/dist/commands/index-repo.js"() {
|
|
52520
52562
|
"use strict";
|
|
52521
52563
|
init_dist8();
|
|
52522
52564
|
init_spinner();
|
|
@@ -52524,7 +52566,7 @@ var init_index_repo = __esm({
|
|
|
52524
52566
|
}
|
|
52525
52567
|
});
|
|
52526
52568
|
|
|
52527
|
-
// dist/commands/status.js
|
|
52569
|
+
// packages/cli/dist/commands/status.js
|
|
52528
52570
|
var status_exports = {};
|
|
52529
52571
|
__export(status_exports, {
|
|
52530
52572
|
statusCommand: () => statusCommand
|
|
@@ -52674,7 +52716,7 @@ async function statusVllm(opts, config) {
|
|
|
52674
52716
|
printSuccess("vLLM backend is operational");
|
|
52675
52717
|
}
|
|
52676
52718
|
var init_status = __esm({
|
|
52677
|
-
"dist/commands/status.js"() {
|
|
52719
|
+
"packages/cli/dist/commands/status.js"() {
|
|
52678
52720
|
"use strict";
|
|
52679
52721
|
init_dist();
|
|
52680
52722
|
init_spinner();
|
|
@@ -52682,7 +52724,7 @@ var init_status = __esm({
|
|
|
52682
52724
|
}
|
|
52683
52725
|
});
|
|
52684
52726
|
|
|
52685
|
-
// dist/commands/config.js
|
|
52727
|
+
// packages/cli/dist/commands/config.js
|
|
52686
52728
|
var config_exports = {};
|
|
52687
52729
|
__export(config_exports, {
|
|
52688
52730
|
configCommand: () => configCommand
|
|
@@ -52857,7 +52899,7 @@ function handleKeys() {
|
|
|
52857
52899
|
}
|
|
52858
52900
|
var CONFIG_KEYS, SENSITIVE_KEYS, INT_KEYS, BOOL_KEYS, ENUM_KEYS;
|
|
52859
52901
|
var init_config3 = __esm({
|
|
52860
|
-
"dist/commands/config.js"() {
|
|
52902
|
+
"packages/cli/dist/commands/config.js"() {
|
|
52861
52903
|
"use strict";
|
|
52862
52904
|
init_config();
|
|
52863
52905
|
init_oa_directory();
|
|
@@ -52904,7 +52946,7 @@ var init_config3 = __esm({
|
|
|
52904
52946
|
}
|
|
52905
52947
|
});
|
|
52906
52948
|
|
|
52907
|
-
// dist/commands/serve.js
|
|
52949
|
+
// packages/cli/dist/commands/serve.js
|
|
52908
52950
|
var serve_exports = {};
|
|
52909
52951
|
__export(serve_exports, {
|
|
52910
52952
|
serveCommand: () => serveCommand
|
|
@@ -53054,14 +53096,14 @@ async function runVllmServer(args, verbose) {
|
|
|
53054
53096
|
});
|
|
53055
53097
|
}
|
|
53056
53098
|
var init_serve = __esm({
|
|
53057
|
-
"dist/commands/serve.js"() {
|
|
53099
|
+
"packages/cli/dist/commands/serve.js"() {
|
|
53058
53100
|
"use strict";
|
|
53059
53101
|
init_dist();
|
|
53060
53102
|
init_output();
|
|
53061
53103
|
}
|
|
53062
53104
|
});
|
|
53063
53105
|
|
|
53064
|
-
// dist/commands/eval.js
|
|
53106
|
+
// packages/cli/dist/commands/eval.js
|
|
53065
53107
|
var eval_exports = {};
|
|
53066
53108
|
__export(eval_exports, {
|
|
53067
53109
|
evalCommand: () => evalCommand
|
|
@@ -53200,7 +53242,7 @@ function createTempEvalRepo() {
|
|
|
53200
53242
|
}
|
|
53201
53243
|
var BASIC_SUITE, FULL_SUITE, SUITES;
|
|
53202
53244
|
var init_eval = __esm({
|
|
53203
|
-
"dist/commands/eval.js"() {
|
|
53245
|
+
"packages/cli/dist/commands/eval.js"() {
|
|
53204
53246
|
"use strict";
|
|
53205
53247
|
init_dist5();
|
|
53206
53248
|
init_dist();
|
|
@@ -53248,7 +53290,7 @@ var init_eval = __esm({
|
|
|
53248
53290
|
}
|
|
53249
53291
|
});
|
|
53250
53292
|
|
|
53251
|
-
// dist/index.js
|
|
53293
|
+
// packages/cli/dist/index.js
|
|
53252
53294
|
init_config();
|
|
53253
53295
|
init_output();
|
|
53254
53296
|
init_updater();
|
|
@@ -53257,7 +53299,7 @@ import { createRequire as createRequire3 } from "node:module";
|
|
|
53257
53299
|
import { fileURLToPath as fileURLToPath13 } from "node:url";
|
|
53258
53300
|
import { dirname as dirname19, join as join55 } from "node:path";
|
|
53259
53301
|
|
|
53260
|
-
// dist/cli.js
|
|
53302
|
+
// packages/cli/dist/cli.js
|
|
53261
53303
|
import { createInterface } from "node:readline";
|
|
53262
53304
|
function createCli(options) {
|
|
53263
53305
|
return {
|
|
@@ -53296,10 +53338,10 @@ function createCli(options) {
|
|
|
53296
53338
|
};
|
|
53297
53339
|
}
|
|
53298
53340
|
|
|
53299
|
-
// dist/args.js
|
|
53341
|
+
// packages/cli/dist/args.js
|
|
53300
53342
|
import { parseArgs as nodeParseArgs } from "node:util";
|
|
53301
53343
|
|
|
53302
|
-
// dist/types.js
|
|
53344
|
+
// packages/cli/dist/types.js
|
|
53303
53345
|
var DEFAULT_OPTIONS = {
|
|
53304
53346
|
model: "qwen-2.5-coder-32b",
|
|
53305
53347
|
backendUrl: "http://localhost:8000/v1",
|
|
@@ -53309,7 +53351,7 @@ var DEFAULT_OPTIONS = {
|
|
|
53309
53351
|
verbose: false
|
|
53310
53352
|
};
|
|
53311
53353
|
|
|
53312
|
-
// dist/args.js
|
|
53354
|
+
// packages/cli/dist/args.js
|
|
53313
53355
|
function parseArgs(argv) {
|
|
53314
53356
|
const { values } = nodeParseArgs({
|
|
53315
53357
|
args: argv.slice(2),
|
|
@@ -53355,7 +53397,7 @@ Options:
|
|
|
53355
53397
|
console.log(help.trim());
|
|
53356
53398
|
}
|
|
53357
53399
|
|
|
53358
|
-
// dist/index.js
|
|
53400
|
+
// packages/cli/dist/index.js
|
|
53359
53401
|
init_config();
|
|
53360
53402
|
init_spinner();
|
|
53361
53403
|
init_output();
|