open-agents-ai 0.103.65 → 0.103.66
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 +417 -397
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39,7 +39,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
39
39
|
mod
|
|
40
40
|
));
|
|
41
41
|
|
|
42
|
-
//
|
|
42
|
+
// 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
|
-
"
|
|
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
|
-
//
|
|
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
|
-
"
|
|
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
|
-
//
|
|
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
|
-
"
|
|
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
|
-
//
|
|
374
|
+
// packages/cli/dist/ui/spinner.js
|
|
375
375
|
var FRAMES, INTERVAL_MS, Spinner;
|
|
376
376
|
var init_spinner = __esm({
|
|
377
|
-
"
|
|
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 {
|
|
@@ -1513,7 +1513,7 @@ ${stderr}` : ""),
|
|
|
1513
1513
|
}
|
|
1514
1514
|
});
|
|
1515
1515
|
|
|
1516
|
-
//
|
|
1516
|
+
// packages/execution/dist/tools/file-read.js
|
|
1517
1517
|
import { readFile } from "node:fs/promises";
|
|
1518
1518
|
import { resolve } from "node:path";
|
|
1519
1519
|
function extractPath(args) {
|
|
@@ -1542,7 +1542,7 @@ function extractPath(args) {
|
|
|
1542
1542
|
}
|
|
1543
1543
|
var FileReadTool;
|
|
1544
1544
|
var init_file_read = __esm({
|
|
1545
|
-
"
|
|
1545
|
+
"packages/execution/dist/tools/file-read.js"() {
|
|
1546
1546
|
"use strict";
|
|
1547
1547
|
FileReadTool = class {
|
|
1548
1548
|
name = "file_read";
|
|
@@ -1630,7 +1630,7 @@ var init_file_read = __esm({
|
|
|
1630
1630
|
}
|
|
1631
1631
|
});
|
|
1632
1632
|
|
|
1633
|
-
//
|
|
1633
|
+
// packages/execution/dist/tools/file-write.js
|
|
1634
1634
|
import { writeFile, mkdir } from "node:fs/promises";
|
|
1635
1635
|
import { resolve as resolve2, dirname } from "node:path";
|
|
1636
1636
|
function extractWritePath(args) {
|
|
@@ -1643,7 +1643,7 @@ function extractWritePath(args) {
|
|
|
1643
1643
|
}
|
|
1644
1644
|
var FileWriteTool;
|
|
1645
1645
|
var init_file_write = __esm({
|
|
1646
|
-
"
|
|
1646
|
+
"packages/execution/dist/tools/file-write.js"() {
|
|
1647
1647
|
"use strict";
|
|
1648
1648
|
FileWriteTool = class {
|
|
1649
1649
|
name = "file_write";
|
|
@@ -1702,13 +1702,13 @@ var init_file_write = __esm({
|
|
|
1702
1702
|
}
|
|
1703
1703
|
});
|
|
1704
1704
|
|
|
1705
|
-
//
|
|
1705
|
+
// packages/execution/dist/tools/grep-search.js
|
|
1706
1706
|
import { execFile } from "node:child_process";
|
|
1707
1707
|
import { promisify } from "node:util";
|
|
1708
1708
|
import { resolve as resolve3 } from "node:path";
|
|
1709
1709
|
var execFileAsync, MAX_OUTPUT_LINES, GrepSearchTool;
|
|
1710
1710
|
var init_grep_search = __esm({
|
|
1711
|
-
"
|
|
1711
|
+
"packages/execution/dist/tools/grep-search.js"() {
|
|
1712
1712
|
"use strict";
|
|
1713
1713
|
execFileAsync = promisify(execFile);
|
|
1714
1714
|
MAX_OUTPUT_LINES = 100;
|
|
@@ -1807,13 +1807,13 @@ var init_grep_search = __esm({
|
|
|
1807
1807
|
}
|
|
1808
1808
|
});
|
|
1809
1809
|
|
|
1810
|
-
//
|
|
1810
|
+
// packages/execution/dist/tools/glob-find.js
|
|
1811
1811
|
import { execFile as execFile2 } from "node:child_process";
|
|
1812
1812
|
import { promisify as promisify2 } from "node:util";
|
|
1813
1813
|
import { resolve as resolve4 } from "node:path";
|
|
1814
1814
|
var execFileAsync2, MAX_RESULTS, GlobFindTool;
|
|
1815
1815
|
var init_glob_find = __esm({
|
|
1816
|
-
"
|
|
1816
|
+
"packages/execution/dist/tools/glob-find.js"() {
|
|
1817
1817
|
"use strict";
|
|
1818
1818
|
execFileAsync2 = promisify2(execFile2);
|
|
1819
1819
|
MAX_RESULTS = 50;
|
|
@@ -1884,10 +1884,10 @@ var init_glob_find = __esm({
|
|
|
1884
1884
|
}
|
|
1885
1885
|
});
|
|
1886
1886
|
|
|
1887
|
-
//
|
|
1887
|
+
// packages/execution/dist/tools/web-fetch.js
|
|
1888
1888
|
var DEFAULT_MAX_LENGTH, WebFetchTool;
|
|
1889
1889
|
var init_web_fetch = __esm({
|
|
1890
|
-
"
|
|
1890
|
+
"packages/execution/dist/tools/web-fetch.js"() {
|
|
1891
1891
|
"use strict";
|
|
1892
1892
|
DEFAULT_MAX_LENGTH = 5e3;
|
|
1893
1893
|
WebFetchTool = class {
|
|
@@ -1959,7 +1959,7 @@ var init_web_fetch = __esm({
|
|
|
1959
1959
|
}
|
|
1960
1960
|
});
|
|
1961
1961
|
|
|
1962
|
-
//
|
|
1962
|
+
// packages/execution/dist/tools/web-search.js
|
|
1963
1963
|
function detectSearchProvider() {
|
|
1964
1964
|
if (process.env["TAVILY_API_KEY"])
|
|
1965
1965
|
return "tavily";
|
|
@@ -1969,7 +1969,7 @@ function detectSearchProvider() {
|
|
|
1969
1969
|
}
|
|
1970
1970
|
var DEFAULT_NUM_RESULTS, DUCKDUCKGO_HTML_URL, TAVILY_API_URL, JINA_SEARCH_URL, WebSearchTool;
|
|
1971
1971
|
var init_web_search = __esm({
|
|
1972
|
-
"
|
|
1972
|
+
"packages/execution/dist/tools/web-search.js"() {
|
|
1973
1973
|
"use strict";
|
|
1974
1974
|
DEFAULT_NUM_RESULTS = 5;
|
|
1975
1975
|
DUCKDUCKGO_HTML_URL = "https://html.duckduckgo.com/html/";
|
|
@@ -2233,14 +2233,14 @@ ${formatted}`,
|
|
|
2233
2233
|
}
|
|
2234
2234
|
});
|
|
2235
2235
|
|
|
2236
|
-
//
|
|
2236
|
+
// packages/execution/dist/tools/web-crawl.js
|
|
2237
2237
|
import { execFile as execFile3 } from "node:child_process";
|
|
2238
2238
|
import { dirname as dirname2, join as join3 } from "node:path";
|
|
2239
2239
|
import { fileURLToPath } from "node:url";
|
|
2240
2240
|
import { existsSync as existsSync3 } from "node:fs";
|
|
2241
2241
|
var DEFAULT_MAX_LENGTH2, WebCrawlTool;
|
|
2242
2242
|
var init_web_crawl = __esm({
|
|
2243
|
-
"
|
|
2243
|
+
"packages/execution/dist/tools/web-crawl.js"() {
|
|
2244
2244
|
"use strict";
|
|
2245
2245
|
DEFAULT_MAX_LENGTH2 = 8e3;
|
|
2246
2246
|
WebCrawlTool = class {
|
|
@@ -2514,7 +2514,7 @@ Meta: ${metaKeys.map((k) => `${k}="${meta[k]?.slice(0, 80)}"`).join(", ")}`);
|
|
|
2514
2514
|
}
|
|
2515
2515
|
});
|
|
2516
2516
|
|
|
2517
|
-
//
|
|
2517
|
+
// packages/execution/dist/tools/file-edit.js
|
|
2518
2518
|
import { readFile as readFile2, writeFile as writeFile2 } from "node:fs/promises";
|
|
2519
2519
|
import { resolve as resolve5 } from "node:path";
|
|
2520
2520
|
function extractEditPath(args) {
|
|
@@ -2549,7 +2549,7 @@ function replaceAllOccurrences(haystack, needle, replacement) {
|
|
|
2549
2549
|
}
|
|
2550
2550
|
var FileEditTool;
|
|
2551
2551
|
var init_file_edit = __esm({
|
|
2552
|
-
"
|
|
2552
|
+
"packages/execution/dist/tools/file-edit.js"() {
|
|
2553
2553
|
"use strict";
|
|
2554
2554
|
FileEditTool = class {
|
|
2555
2555
|
name = "file_edit";
|
|
@@ -2659,12 +2659,12 @@ var init_file_edit = __esm({
|
|
|
2659
2659
|
}
|
|
2660
2660
|
});
|
|
2661
2661
|
|
|
2662
|
-
//
|
|
2662
|
+
// packages/execution/dist/tools/memory-read.js
|
|
2663
2663
|
import { readFile as readFile3 } from "node:fs/promises";
|
|
2664
2664
|
import { resolve as resolve6, join as join4 } from "node:path";
|
|
2665
2665
|
var MemoryReadTool;
|
|
2666
2666
|
var init_memory_read = __esm({
|
|
2667
|
-
"
|
|
2667
|
+
"packages/execution/dist/tools/memory-read.js"() {
|
|
2668
2668
|
"use strict";
|
|
2669
2669
|
MemoryReadTool = class {
|
|
2670
2670
|
name = "memory_read";
|
|
@@ -2754,13 +2754,13 @@ ${JSON.stringify(entries, null, 2)}`,
|
|
|
2754
2754
|
}
|
|
2755
2755
|
});
|
|
2756
2756
|
|
|
2757
|
-
//
|
|
2757
|
+
// packages/execution/dist/tools/memory-write.js
|
|
2758
2758
|
import { readFile as readFile4, writeFile as writeFile3, mkdir as mkdir2 } from "node:fs/promises";
|
|
2759
2759
|
import { resolve as resolve7, join as join5 } from "node:path";
|
|
2760
2760
|
import { randomBytes } from "node:crypto";
|
|
2761
2761
|
var MemoryWriteTool;
|
|
2762
2762
|
var init_memory_write = __esm({
|
|
2763
|
-
"
|
|
2763
|
+
"packages/execution/dist/tools/memory-write.js"() {
|
|
2764
2764
|
"use strict";
|
|
2765
2765
|
MemoryWriteTool = class {
|
|
2766
2766
|
name = "memory_write";
|
|
@@ -2845,7 +2845,7 @@ var init_memory_write = __esm({
|
|
|
2845
2845
|
}
|
|
2846
2846
|
});
|
|
2847
2847
|
|
|
2848
|
-
//
|
|
2848
|
+
// packages/execution/dist/tools/memory-search.js
|
|
2849
2849
|
import { readFile as readFile5, readdir } from "node:fs/promises";
|
|
2850
2850
|
import { resolve as resolve8, join as join6, basename } from "node:path";
|
|
2851
2851
|
import { existsSync as existsSync4 } from "node:fs";
|
|
@@ -2951,7 +2951,7 @@ function tokenize(text) {
|
|
|
2951
2951
|
}
|
|
2952
2952
|
var MemorySearchTool;
|
|
2953
2953
|
var init_memory_search = __esm({
|
|
2954
|
-
"
|
|
2954
|
+
"packages/execution/dist/tools/memory-search.js"() {
|
|
2955
2955
|
"use strict";
|
|
2956
2956
|
MemorySearchTool = class {
|
|
2957
2957
|
name = "memory_search";
|
|
@@ -3075,10 +3075,10 @@ Try broader terms or use memory_read with a specific topic.`,
|
|
|
3075
3075
|
}
|
|
3076
3076
|
});
|
|
3077
3077
|
|
|
3078
|
-
//
|
|
3078
|
+
// packages/execution/dist/tools/explore-tools.js
|
|
3079
3079
|
var TOOL_CATALOG, ExploreToolsTool;
|
|
3080
3080
|
var init_explore_tools = __esm({
|
|
3081
|
-
"
|
|
3081
|
+
"packages/execution/dist/tools/explore-tools.js"() {
|
|
3082
3082
|
"use strict";
|
|
3083
3083
|
TOOL_CATALOG = {
|
|
3084
3084
|
grep_search: "Search file contents with regex patterns",
|
|
@@ -3242,12 +3242,12 @@ Examples:`);
|
|
|
3242
3242
|
}
|
|
3243
3243
|
});
|
|
3244
3244
|
|
|
3245
|
-
//
|
|
3245
|
+
// packages/execution/dist/tools/list-directory.js
|
|
3246
3246
|
import { readdirSync, statSync } from "node:fs";
|
|
3247
3247
|
import { resolve as resolve9, join as join7 } from "node:path";
|
|
3248
3248
|
var EXCLUDED, MAX_ENTRIES, ListDirectoryTool;
|
|
3249
3249
|
var init_list_directory = __esm({
|
|
3250
|
-
"
|
|
3250
|
+
"packages/execution/dist/tools/list-directory.js"() {
|
|
3251
3251
|
"use strict";
|
|
3252
3252
|
EXCLUDED = /* @__PURE__ */ new Set(["node_modules", ".git"]);
|
|
3253
3253
|
MAX_ENTRIES = 100;
|
|
@@ -3329,11 +3329,11 @@ var init_list_directory = __esm({
|
|
|
3329
3329
|
}
|
|
3330
3330
|
});
|
|
3331
3331
|
|
|
3332
|
-
//
|
|
3332
|
+
// packages/execution/dist/tools/aiwg-setup.js
|
|
3333
3333
|
import { execSync as execSync2 } from "node:child_process";
|
|
3334
3334
|
var AiwgSetupTool;
|
|
3335
3335
|
var init_aiwg_setup = __esm({
|
|
3336
|
-
"
|
|
3336
|
+
"packages/execution/dist/tools/aiwg-setup.js"() {
|
|
3337
3337
|
"use strict";
|
|
3338
3338
|
AiwgSetupTool = class {
|
|
3339
3339
|
name = "aiwg_setup";
|
|
@@ -3407,13 +3407,13 @@ ${output}`,
|
|
|
3407
3407
|
}
|
|
3408
3408
|
});
|
|
3409
3409
|
|
|
3410
|
-
//
|
|
3410
|
+
// packages/execution/dist/tools/aiwg-health.js
|
|
3411
3411
|
import { execSync as execSync3 } from "node:child_process";
|
|
3412
3412
|
import { existsSync as existsSync5, readdirSync as readdirSync2, readFileSync as readFileSync3, statSync as statSync2 } from "node:fs";
|
|
3413
3413
|
import { join as join8 } from "node:path";
|
|
3414
3414
|
var AiwgHealthTool;
|
|
3415
3415
|
var init_aiwg_health = __esm({
|
|
3416
|
-
"
|
|
3416
|
+
"packages/execution/dist/tools/aiwg-health.js"() {
|
|
3417
3417
|
"use strict";
|
|
3418
3418
|
AiwgHealthTool = class {
|
|
3419
3419
|
name = "aiwg_health";
|
|
@@ -3619,11 +3619,11 @@ var init_aiwg_health = __esm({
|
|
|
3619
3619
|
}
|
|
3620
3620
|
});
|
|
3621
3621
|
|
|
3622
|
-
//
|
|
3622
|
+
// packages/execution/dist/tools/aiwg-workflow.js
|
|
3623
3623
|
import { execSync as execSync4 } from "node:child_process";
|
|
3624
3624
|
var AiwgWorkflowTool;
|
|
3625
3625
|
var init_aiwg_workflow = __esm({
|
|
3626
|
-
"
|
|
3626
|
+
"packages/execution/dist/tools/aiwg-workflow.js"() {
|
|
3627
3627
|
"use strict";
|
|
3628
3628
|
AiwgWorkflowTool = class {
|
|
3629
3629
|
name = "aiwg_workflow";
|
|
@@ -3704,7 +3704,7 @@ var init_aiwg_workflow = __esm({
|
|
|
3704
3704
|
}
|
|
3705
3705
|
});
|
|
3706
3706
|
|
|
3707
|
-
//
|
|
3707
|
+
// packages/execution/dist/tools/batch-edit.js
|
|
3708
3708
|
import { readFile as readFile6, writeFile as writeFile4 } from "node:fs/promises";
|
|
3709
3709
|
import { resolve as resolve10 } from "node:path";
|
|
3710
3710
|
function countOccurrences2(haystack, needle) {
|
|
@@ -3718,7 +3718,7 @@ function countOccurrences2(haystack, needle) {
|
|
|
3718
3718
|
}
|
|
3719
3719
|
var BatchEditTool;
|
|
3720
3720
|
var init_batch_edit = __esm({
|
|
3721
|
-
"
|
|
3721
|
+
"packages/execution/dist/tools/batch-edit.js"() {
|
|
3722
3722
|
"use strict";
|
|
3723
3723
|
BatchEditTool = class {
|
|
3724
3724
|
name = "batch_edit";
|
|
@@ -3830,12 +3830,12 @@ ${results.join("\n")}`,
|
|
|
3830
3830
|
}
|
|
3831
3831
|
});
|
|
3832
3832
|
|
|
3833
|
-
//
|
|
3833
|
+
// packages/execution/dist/tools/file-patch.js
|
|
3834
3834
|
import { readFile as readFile7, writeFile as writeFile5, copyFile } from "node:fs/promises";
|
|
3835
3835
|
import { resolve as resolve11 } from "node:path";
|
|
3836
3836
|
var FilePatchTool;
|
|
3837
3837
|
var init_file_patch = __esm({
|
|
3838
|
-
"
|
|
3838
|
+
"packages/execution/dist/tools/file-patch.js"() {
|
|
3839
3839
|
"use strict";
|
|
3840
3840
|
FilePatchTool = class {
|
|
3841
3841
|
name = "file_patch";
|
|
@@ -4002,12 +4002,12 @@ ${diff}`,
|
|
|
4002
4002
|
}
|
|
4003
4003
|
});
|
|
4004
4004
|
|
|
4005
|
-
//
|
|
4005
|
+
// packages/execution/dist/tools/codebase-map.js
|
|
4006
4006
|
import { readdirSync as readdirSync3, statSync as statSync3, readFileSync as readFileSync4, existsSync as existsSync6 } from "node:fs";
|
|
4007
4007
|
import { join as join9, relative, extname } from "node:path";
|
|
4008
4008
|
var CodebaseMapTool;
|
|
4009
4009
|
var init_codebase_map = __esm({
|
|
4010
|
-
"
|
|
4010
|
+
"packages/execution/dist/tools/codebase-map.js"() {
|
|
4011
4011
|
"use strict";
|
|
4012
4012
|
CodebaseMapTool = class {
|
|
4013
4013
|
name = "codebase_map";
|
|
@@ -4290,13 +4290,13 @@ var init_codebase_map = __esm({
|
|
|
4290
4290
|
}
|
|
4291
4291
|
});
|
|
4292
4292
|
|
|
4293
|
-
//
|
|
4293
|
+
// packages/execution/dist/tools/diagnostic.js
|
|
4294
4294
|
import { execSync as execSync5 } from "node:child_process";
|
|
4295
4295
|
import { existsSync as existsSync7, readFileSync as readFileSync5 } from "node:fs";
|
|
4296
4296
|
import { join as join10 } from "node:path";
|
|
4297
4297
|
var DiagnosticTool;
|
|
4298
4298
|
var init_diagnostic = __esm({
|
|
4299
|
-
"
|
|
4299
|
+
"packages/execution/dist/tools/diagnostic.js"() {
|
|
4300
4300
|
"use strict";
|
|
4301
4301
|
DiagnosticTool = class {
|
|
4302
4302
|
name = "diagnostic";
|
|
@@ -4435,13 +4435,13 @@ ${err.stderr ?? ""}`.trim(),
|
|
|
4435
4435
|
}
|
|
4436
4436
|
});
|
|
4437
4437
|
|
|
4438
|
-
//
|
|
4438
|
+
// packages/execution/dist/tools/git-info.js
|
|
4439
4439
|
import { execSync as execSync6 } from "node:child_process";
|
|
4440
4440
|
import { existsSync as existsSync8 } from "node:fs";
|
|
4441
4441
|
import { join as join11 } from "node:path";
|
|
4442
4442
|
var GitInfoTool;
|
|
4443
4443
|
var init_git_info = __esm({
|
|
4444
|
-
"
|
|
4444
|
+
"packages/execution/dist/tools/git-info.js"() {
|
|
4445
4445
|
"use strict";
|
|
4446
4446
|
GitInfoTool = class {
|
|
4447
4447
|
name = "git_info";
|
|
@@ -4566,7 +4566,7 @@ var init_git_info = __esm({
|
|
|
4566
4566
|
}
|
|
4567
4567
|
});
|
|
4568
4568
|
|
|
4569
|
-
//
|
|
4569
|
+
// packages/execution/dist/tools/background-task.js
|
|
4570
4570
|
import { spawn as spawn2 } from "node:child_process";
|
|
4571
4571
|
function toInfo(entry) {
|
|
4572
4572
|
return {
|
|
@@ -4582,7 +4582,7 @@ function toInfo(entry) {
|
|
|
4582
4582
|
}
|
|
4583
4583
|
var BackgroundTaskManager, BackgroundRunTool, TaskStatusTool, TaskOutputTool, TaskStopTool;
|
|
4584
4584
|
var init_background_task = __esm({
|
|
4585
|
-
"
|
|
4585
|
+
"packages/execution/dist/tools/background-task.js"() {
|
|
4586
4586
|
"use strict";
|
|
4587
4587
|
BackgroundTaskManager = class {
|
|
4588
4588
|
tasks = /* @__PURE__ */ new Map();
|
|
@@ -4854,7 +4854,7 @@ Exit code: ${task.exitCode ?? "N/A"}`,
|
|
|
4854
4854
|
}
|
|
4855
4855
|
});
|
|
4856
4856
|
|
|
4857
|
-
//
|
|
4857
|
+
// packages/execution/dist/system-deps.js
|
|
4858
4858
|
import { execSync as execSync7 } from "node:child_process";
|
|
4859
4859
|
function detectPackageManager() {
|
|
4860
4860
|
if (_detectedPkgManager !== void 0)
|
|
@@ -5046,7 +5046,7 @@ function resetDepCache() {
|
|
|
5046
5046
|
}
|
|
5047
5047
|
var DESKTOP_DEPS, _detectedPkgManager, _cache, _sudoPassword;
|
|
5048
5048
|
var init_system_deps = __esm({
|
|
5049
|
-
"
|
|
5049
|
+
"packages/execution/dist/system-deps.js"() {
|
|
5050
5050
|
"use strict";
|
|
5051
5051
|
DESKTOP_DEPS = [
|
|
5052
5052
|
{
|
|
@@ -5097,7 +5097,7 @@ var init_system_deps = __esm({
|
|
|
5097
5097
|
}
|
|
5098
5098
|
});
|
|
5099
5099
|
|
|
5100
|
-
//
|
|
5100
|
+
// packages/execution/dist/tools/image.js
|
|
5101
5101
|
import { existsSync as existsSync9, readFileSync as readFileSync6, statSync as statSync4 } from "node:fs";
|
|
5102
5102
|
import { resolve as resolve12, extname as extname2, basename as basename2 } from "node:path";
|
|
5103
5103
|
import { execSync as execSync8 } from "node:child_process";
|
|
@@ -5186,7 +5186,7 @@ function runOCR(filePath) {
|
|
|
5186
5186
|
}
|
|
5187
5187
|
var IMAGE_EXTENSIONS, ImageReadTool, ScreenshotTool, OCRTool;
|
|
5188
5188
|
var init_image = __esm({
|
|
5189
|
-
"
|
|
5189
|
+
"packages/execution/dist/tools/image.js"() {
|
|
5190
5190
|
"use strict";
|
|
5191
5191
|
init_system_deps();
|
|
5192
5192
|
IMAGE_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
@@ -5476,7 +5476,7 @@ ${text}`,
|
|
|
5476
5476
|
}
|
|
5477
5477
|
});
|
|
5478
5478
|
|
|
5479
|
-
//
|
|
5479
|
+
// packages/execution/dist/tools/custom-tool.js
|
|
5480
5480
|
var custom_tool_exports = {};
|
|
5481
5481
|
__export(custom_tool_exports, {
|
|
5482
5482
|
CustomTool: () => CustomTool,
|
|
@@ -5579,7 +5579,7 @@ function loadFromDirectory(dir) {
|
|
|
5579
5579
|
}
|
|
5580
5580
|
var CustomTool;
|
|
5581
5581
|
var init_custom_tool = __esm({
|
|
5582
|
-
"
|
|
5582
|
+
"packages/execution/dist/tools/custom-tool.js"() {
|
|
5583
5583
|
"use strict";
|
|
5584
5584
|
CustomTool = class {
|
|
5585
5585
|
name;
|
|
@@ -5688,10 +5688,10 @@ ${stderr}` : ""),
|
|
|
5688
5688
|
}
|
|
5689
5689
|
});
|
|
5690
5690
|
|
|
5691
|
-
//
|
|
5691
|
+
// packages/execution/dist/tools/tool-creator.js
|
|
5692
5692
|
var CreateToolTool, ManageToolsTool;
|
|
5693
5693
|
var init_tool_creator = __esm({
|
|
5694
|
-
"
|
|
5694
|
+
"packages/execution/dist/tools/tool-creator.js"() {
|
|
5695
5695
|
"use strict";
|
|
5696
5696
|
init_custom_tool();
|
|
5697
5697
|
CreateToolTool = class {
|
|
@@ -5982,7 +5982,7 @@ var init_tool_creator = __esm({
|
|
|
5982
5982
|
}
|
|
5983
5983
|
});
|
|
5984
5984
|
|
|
5985
|
-
//
|
|
5985
|
+
// packages/execution/dist/tools/skill-tools.js
|
|
5986
5986
|
import { existsSync as existsSync11, readdirSync as readdirSync5, readFileSync as readFileSync8 } from "node:fs";
|
|
5987
5987
|
import { join as join14, basename as basename3, dirname as dirname3 } from "node:path";
|
|
5988
5988
|
import { homedir as homedir5 } from "node:os";
|
|
@@ -6297,7 +6297,7 @@ function parseTriggers(filePath) {
|
|
|
6297
6297
|
}
|
|
6298
6298
|
var _cachedAiwgPkgRoot, SkillListTool, SkillExecuteTool;
|
|
6299
6299
|
var init_skill_tools = __esm({
|
|
6300
|
-
"
|
|
6300
|
+
"packages/execution/dist/tools/skill-tools.js"() {
|
|
6301
6301
|
"use strict";
|
|
6302
6302
|
SkillListTool = class {
|
|
6303
6303
|
name = "skill_list";
|
|
@@ -6422,7 +6422,7 @@ ${content}`,
|
|
|
6422
6422
|
}
|
|
6423
6423
|
});
|
|
6424
6424
|
|
|
6425
|
-
//
|
|
6425
|
+
// packages/execution/dist/tools/skill-builder.js
|
|
6426
6426
|
import { existsSync as existsSync12, mkdirSync as mkdirSync4, readFileSync as readFileSync9, writeFileSync as writeFileSync4 } from "node:fs";
|
|
6427
6427
|
import { join as join15, dirname as dirname4 } from "node:path";
|
|
6428
6428
|
function loadBuilderPrompt(name, vars) {
|
|
@@ -6460,7 +6460,7 @@ function extractJSON(text) {
|
|
|
6460
6460
|
}
|
|
6461
6461
|
var SkillBuildTool;
|
|
6462
6462
|
var init_skill_builder = __esm({
|
|
6463
|
-
"
|
|
6463
|
+
"packages/execution/dist/tools/skill-builder.js"() {
|
|
6464
6464
|
"use strict";
|
|
6465
6465
|
SkillBuildTool = class {
|
|
6466
6466
|
name = "skill_build";
|
|
@@ -6667,7 +6667,7 @@ ${content}`
|
|
|
6667
6667
|
}
|
|
6668
6668
|
});
|
|
6669
6669
|
|
|
6670
|
-
//
|
|
6670
|
+
// packages/execution/dist/tools/transcribe-tool.js
|
|
6671
6671
|
import { existsSync as existsSync13, mkdirSync as mkdirSync5, writeFileSync as writeFileSync5, readFileSync as readFileSync10, unlinkSync } from "node:fs";
|
|
6672
6672
|
import { join as join16, basename as basename4, extname as extname3, resolve as resolve13 } from "node:path";
|
|
6673
6673
|
import { homedir as homedir6 } from "node:os";
|
|
@@ -6720,7 +6720,7 @@ function formatTime(seconds) {
|
|
|
6720
6720
|
}
|
|
6721
6721
|
var AUDIO_EXTS, VIDEO_EXTS, _tcModule, _tcChecked, TranscribeFileTool, TranscribeUrlTool;
|
|
6722
6722
|
var init_transcribe_tool = __esm({
|
|
6723
|
-
"
|
|
6723
|
+
"packages/execution/dist/tools/transcribe-tool.js"() {
|
|
6724
6724
|
"use strict";
|
|
6725
6725
|
AUDIO_EXTS = /* @__PURE__ */ new Set([
|
|
6726
6726
|
".mp3",
|
|
@@ -6961,7 +6961,7 @@ ${result.output}`,
|
|
|
6961
6961
|
}
|
|
6962
6962
|
});
|
|
6963
6963
|
|
|
6964
|
-
//
|
|
6964
|
+
// packages/execution/dist/tools/structured-file.js
|
|
6965
6965
|
import { writeFile as writeFile6, mkdir as mkdir3 } from "node:fs/promises";
|
|
6966
6966
|
import { resolve as resolve14, dirname as dirname5, extname as extname4 } from "node:path";
|
|
6967
6967
|
function jsonToCSV(data, separator = ",") {
|
|
@@ -6998,7 +6998,7 @@ function jsonToMarkdownTable(data) {
|
|
|
6998
6998
|
}
|
|
6999
6999
|
var StructuredFileTool;
|
|
7000
7000
|
var init_structured_file = __esm({
|
|
7001
|
-
"
|
|
7001
|
+
"packages/execution/dist/tools/structured-file.js"() {
|
|
7002
7002
|
"use strict";
|
|
7003
7003
|
StructuredFileTool = class {
|
|
7004
7004
|
name = "create_structured_file";
|
|
@@ -7141,7 +7141,7 @@ var init_structured_file = __esm({
|
|
|
7141
7141
|
}
|
|
7142
7142
|
});
|
|
7143
7143
|
|
|
7144
|
-
//
|
|
7144
|
+
// packages/execution/dist/tools/code-sandbox.js
|
|
7145
7145
|
import { spawn as spawn5 } from "node:child_process";
|
|
7146
7146
|
import { writeFile as writeFile7, mkdtemp, rm, readdir as readdir2, stat } from "node:fs/promises";
|
|
7147
7147
|
import { join as join17 } from "node:path";
|
|
@@ -7222,7 +7222,7 @@ async function listCreatedFiles(dir) {
|
|
|
7222
7222
|
}
|
|
7223
7223
|
var LANGUAGE_CONFIG, CodeSandboxTool;
|
|
7224
7224
|
var init_code_sandbox = __esm({
|
|
7225
|
-
"
|
|
7225
|
+
"packages/execution/dist/tools/code-sandbox.js"() {
|
|
7226
7226
|
"use strict";
|
|
7227
7227
|
LANGUAGE_CONFIG = {
|
|
7228
7228
|
javascript: { ext: ".js", cmd: "node", args: (f) => [f] },
|
|
@@ -7394,7 +7394,7 @@ ${result.filesCreated.join("\n")}`);
|
|
|
7394
7394
|
}
|
|
7395
7395
|
});
|
|
7396
7396
|
|
|
7397
|
-
//
|
|
7397
|
+
// packages/execution/dist/tools/structured-read.js
|
|
7398
7398
|
import { readFile as readFile8, stat as stat2 } from "node:fs/promises";
|
|
7399
7399
|
import { resolve as resolve15, extname as extname5 } from "node:path";
|
|
7400
7400
|
function parseCSV(text, separator = ",") {
|
|
@@ -7502,7 +7502,7 @@ function detectBinaryFormat(buffer) {
|
|
|
7502
7502
|
}
|
|
7503
7503
|
var StructuredReadTool;
|
|
7504
7504
|
var init_structured_read = __esm({
|
|
7505
|
-
"
|
|
7505
|
+
"packages/execution/dist/tools/structured-read.js"() {
|
|
7506
7506
|
"use strict";
|
|
7507
7507
|
StructuredReadTool = class {
|
|
7508
7508
|
name = "read_structured_file";
|
|
@@ -7729,7 +7729,7 @@ ${parts.join("\n\n")}`,
|
|
|
7729
7729
|
}
|
|
7730
7730
|
});
|
|
7731
7731
|
|
|
7732
|
-
//
|
|
7732
|
+
// packages/execution/dist/tools/vision.js
|
|
7733
7733
|
import { readFileSync as readFileSync11, existsSync as existsSync14, statSync as statSync5 } from "node:fs";
|
|
7734
7734
|
import { execSync as execSync11, spawn as spawn6 } from "node:child_process";
|
|
7735
7735
|
import { resolve as resolve16, extname as extname6, basename as basename5, dirname as dirname6, join as join18 } from "node:path";
|
|
@@ -7880,7 +7880,7 @@ function loadImageBuffer(workingDir, rawPath) {
|
|
|
7880
7880
|
}
|
|
7881
7881
|
var moondreamClient, moondreamError, stationProcess, IMAGE_EXTENSIONS2, VisionTool;
|
|
7882
7882
|
var init_vision = __esm({
|
|
7883
|
-
"
|
|
7883
|
+
"packages/execution/dist/tools/vision.js"() {
|
|
7884
7884
|
"use strict";
|
|
7885
7885
|
moondreamClient = null;
|
|
7886
7886
|
moondreamError = null;
|
|
@@ -8103,7 +8103,7 @@ ${response}`, durationMs: performance.now() - start };
|
|
|
8103
8103
|
}
|
|
8104
8104
|
});
|
|
8105
8105
|
|
|
8106
|
-
//
|
|
8106
|
+
// packages/execution/dist/tools/desktop-click.js
|
|
8107
8107
|
import { readFileSync as readFileSync12, existsSync as existsSync15 } from "node:fs";
|
|
8108
8108
|
import { execSync as execSync12 } from "node:child_process";
|
|
8109
8109
|
import { tmpdir as tmpdir3 } from "node:os";
|
|
@@ -8256,7 +8256,7 @@ for i in range(${clicks}):
|
|
|
8256
8256
|
}
|
|
8257
8257
|
var __dirname2, DesktopClickTool, DesktopDescribeTool;
|
|
8258
8258
|
var init_desktop_click = __esm({
|
|
8259
|
-
"
|
|
8259
|
+
"packages/execution/dist/tools/desktop-click.js"() {
|
|
8260
8260
|
"use strict";
|
|
8261
8261
|
init_system_deps();
|
|
8262
8262
|
__dirname2 = dirname7(fileURLToPath3(import.meta.url));
|
|
@@ -8612,13 +8612,13 @@ Screen: ${dims.width}x${dims.height}`);
|
|
|
8612
8612
|
}
|
|
8613
8613
|
});
|
|
8614
8614
|
|
|
8615
|
-
//
|
|
8615
|
+
// packages/execution/dist/tools/ocr-pdf.js
|
|
8616
8616
|
import { existsSync as existsSync16, statSync as statSync6 } from "node:fs";
|
|
8617
8617
|
import { resolve as resolve17, basename as basename6 } from "node:path";
|
|
8618
8618
|
import { execSync as execSync13 } from "node:child_process";
|
|
8619
8619
|
var OcrPdfTool;
|
|
8620
8620
|
var init_ocr_pdf = __esm({
|
|
8621
|
-
"
|
|
8621
|
+
"packages/execution/dist/tools/ocr-pdf.js"() {
|
|
8622
8622
|
"use strict";
|
|
8623
8623
|
init_system_deps();
|
|
8624
8624
|
OcrPdfTool = class {
|
|
@@ -8735,14 +8735,14 @@ Language: ${language}
|
|
|
8735
8735
|
}
|
|
8736
8736
|
});
|
|
8737
8737
|
|
|
8738
|
-
//
|
|
8738
|
+
// packages/execution/dist/tools/pdf-to-text.js
|
|
8739
8739
|
import { existsSync as existsSync17, statSync as statSync7, readFileSync as readFileSync13, unlinkSync as unlinkSync2 } from "node:fs";
|
|
8740
8740
|
import { resolve as resolve18, basename as basename7, join as join20 } from "node:path";
|
|
8741
8741
|
import { execSync as execSync14 } from "node:child_process";
|
|
8742
8742
|
import { tmpdir as tmpdir4 } from "node:os";
|
|
8743
8743
|
var PdfToTextTool;
|
|
8744
8744
|
var init_pdf_to_text = __esm({
|
|
8745
|
-
"
|
|
8745
|
+
"packages/execution/dist/tools/pdf-to-text.js"() {
|
|
8746
8746
|
"use strict";
|
|
8747
8747
|
init_system_deps();
|
|
8748
8748
|
PdfToTextTool = class {
|
|
@@ -8920,7 +8920,7 @@ ${text}`,
|
|
|
8920
8920
|
}
|
|
8921
8921
|
});
|
|
8922
8922
|
|
|
8923
|
-
//
|
|
8923
|
+
// packages/execution/dist/tools/ocr-image-advanced.js
|
|
8924
8924
|
import { existsSync as existsSync18, statSync as statSync8 } from "node:fs";
|
|
8925
8925
|
import { resolve as resolve19, basename as basename8, dirname as dirname8, join as join21 } from "node:path";
|
|
8926
8926
|
import { execSync as execSync15 } from "node:child_process";
|
|
@@ -8963,7 +8963,7 @@ function findPython() {
|
|
|
8963
8963
|
}
|
|
8964
8964
|
var OcrImageAdvancedTool;
|
|
8965
8965
|
var init_ocr_image_advanced = __esm({
|
|
8966
|
-
"
|
|
8966
|
+
"packages/execution/dist/tools/ocr-image-advanced.js"() {
|
|
8967
8967
|
"use strict";
|
|
8968
8968
|
init_system_deps();
|
|
8969
8969
|
OcrImageAdvancedTool = class {
|
|
@@ -9223,7 +9223,7 @@ Note: Advanced Python pipeline not available \u2014 install pytesseract, opencv-
|
|
|
9223
9223
|
}
|
|
9224
9224
|
});
|
|
9225
9225
|
|
|
9226
|
-
//
|
|
9226
|
+
// packages/execution/dist/tools/browser-action.js
|
|
9227
9227
|
import { execSync as execSync16, spawn as spawn7 } from "node:child_process";
|
|
9228
9228
|
import { existsSync as existsSync19, readFileSync as readFileSync14 } from "node:fs";
|
|
9229
9229
|
import { join as join22, dirname as dirname9 } from "node:path";
|
|
@@ -9315,7 +9315,7 @@ async function apiCall(endpoint, method = "POST", body) {
|
|
|
9315
9315
|
}
|
|
9316
9316
|
var __dirname3, SCRAPE_SCRIPT, DEFAULT_PORT, BASE_URL, serviceProcess, activeSessionId, BrowserActionTool;
|
|
9317
9317
|
var init_browser_action = __esm({
|
|
9318
|
-
"
|
|
9318
|
+
"packages/execution/dist/tools/browser-action.js"() {
|
|
9319
9319
|
"use strict";
|
|
9320
9320
|
__dirname3 = dirname9(fileURLToPath5(import.meta.url));
|
|
9321
9321
|
SCRAPE_SCRIPT = join22(__dirname3, "..", "..", "scripts", "web_scrape.py");
|
|
@@ -9476,7 +9476,7 @@ var init_browser_action = __esm({
|
|
|
9476
9476
|
}
|
|
9477
9477
|
});
|
|
9478
9478
|
|
|
9479
|
-
//
|
|
9479
|
+
// packages/execution/dist/tools/autoresearch.js
|
|
9480
9480
|
import { execSync as execSync17, spawn as spawn8 } from "node:child_process";
|
|
9481
9481
|
import { existsSync as existsSync20, readFileSync as readFileSync15, writeFileSync as writeFileSync6, mkdirSync as mkdirSync6, appendFileSync, copyFileSync } from "node:fs";
|
|
9482
9482
|
import { join as join23, resolve as resolve20, dirname as dirname10 } from "node:path";
|
|
@@ -9519,7 +9519,7 @@ function parseRunLog(logContent) {
|
|
|
9519
9519
|
}
|
|
9520
9520
|
var AutoresearchTool;
|
|
9521
9521
|
var init_autoresearch = __esm({
|
|
9522
|
-
"
|
|
9522
|
+
"packages/execution/dist/tools/autoresearch.js"() {
|
|
9523
9523
|
"use strict";
|
|
9524
9524
|
AutoresearchTool = class {
|
|
9525
9525
|
repoRoot;
|
|
@@ -9996,7 +9996,7 @@ train.py reverted to last kept state. Ready for next experiment.`,
|
|
|
9996
9996
|
}
|
|
9997
9997
|
});
|
|
9998
9998
|
|
|
9999
|
-
//
|
|
9999
|
+
// packages/execution/dist/tools/scheduler.js
|
|
10000
10000
|
import { execSync as execSync18, exec as execCb } from "node:child_process";
|
|
10001
10001
|
import { readFile as readFile9, writeFile as writeFile8, mkdir as mkdir4 } from "node:fs/promises";
|
|
10002
10002
|
import { resolve as resolve21, join as join24 } from "node:path";
|
|
@@ -10131,7 +10131,7 @@ async function saveStore(workingDir, store) {
|
|
|
10131
10131
|
}
|
|
10132
10132
|
var SCHEDULE_PRESETS, CRON_MARKER, SchedulerTool;
|
|
10133
10133
|
var init_scheduler = __esm({
|
|
10134
|
-
"
|
|
10134
|
+
"packages/execution/dist/tools/scheduler.js"() {
|
|
10135
10135
|
"use strict";
|
|
10136
10136
|
SCHEDULE_PRESETS = {
|
|
10137
10137
|
"every minute": "* * * * *",
|
|
@@ -10359,7 +10359,7 @@ ${truncated}`, durationMs: performance.now() - start };
|
|
|
10359
10359
|
}
|
|
10360
10360
|
});
|
|
10361
10361
|
|
|
10362
|
-
//
|
|
10362
|
+
// packages/execution/dist/tools/reminder.js
|
|
10363
10363
|
import { readFile as readFile10, writeFile as writeFile9, mkdir as mkdir5 } from "node:fs/promises";
|
|
10364
10364
|
import { resolve as resolve22, join as join25 } from "node:path";
|
|
10365
10365
|
import { randomBytes as randomBytes3 } from "node:crypto";
|
|
@@ -10453,7 +10453,7 @@ async function markRemindersSeen(workingDir, ids) {
|
|
|
10453
10453
|
}
|
|
10454
10454
|
var STORE_FILE, ReminderTool;
|
|
10455
10455
|
var init_reminder = __esm({
|
|
10456
|
-
"
|
|
10456
|
+
"packages/execution/dist/tools/reminder.js"() {
|
|
10457
10457
|
"use strict";
|
|
10458
10458
|
STORE_FILE = "reminders.json";
|
|
10459
10459
|
ReminderTool = class {
|
|
@@ -10672,7 +10672,7 @@ var init_reminder = __esm({
|
|
|
10672
10672
|
}
|
|
10673
10673
|
});
|
|
10674
10674
|
|
|
10675
|
-
//
|
|
10675
|
+
// packages/execution/dist/tools/agenda.js
|
|
10676
10676
|
import { readFile as readFile11, writeFile as writeFile10, mkdir as mkdir6 } from "node:fs/promises";
|
|
10677
10677
|
import { resolve as resolve23, join as join26 } from "node:path";
|
|
10678
10678
|
import { randomBytes as randomBytes4 } from "node:crypto";
|
|
@@ -10707,7 +10707,7 @@ async function getActiveAttentionItems(workingDir) {
|
|
|
10707
10707
|
}
|
|
10708
10708
|
var AgendaTool;
|
|
10709
10709
|
var init_agenda = __esm({
|
|
10710
|
-
"
|
|
10710
|
+
"packages/execution/dist/tools/agenda.js"() {
|
|
10711
10711
|
"use strict";
|
|
10712
10712
|
init_reminder();
|
|
10713
10713
|
AgendaTool = class {
|
|
@@ -10996,7 +10996,7 @@ ${sections.join("\n")}`,
|
|
|
10996
10996
|
}
|
|
10997
10997
|
});
|
|
10998
10998
|
|
|
10999
|
-
//
|
|
10999
|
+
// packages/execution/dist/tools/opencode.js
|
|
11000
11000
|
import { execSync as execSync19, spawn as spawn9 } from "node:child_process";
|
|
11001
11001
|
import { existsSync as existsSync21 } from "node:fs";
|
|
11002
11002
|
import { join as join27, resolve as resolve24 } from "node:path";
|
|
@@ -11057,7 +11057,7 @@ function installOpencode() {
|
|
|
11057
11057
|
}
|
|
11058
11058
|
var OpenCodeTool;
|
|
11059
11059
|
var init_opencode = __esm({
|
|
11060
|
-
"
|
|
11060
|
+
"packages/execution/dist/tools/opencode.js"() {
|
|
11061
11061
|
"use strict";
|
|
11062
11062
|
OpenCodeTool = class {
|
|
11063
11063
|
name = "opencode";
|
|
@@ -11270,7 +11270,7 @@ var init_opencode = __esm({
|
|
|
11270
11270
|
}
|
|
11271
11271
|
});
|
|
11272
11272
|
|
|
11273
|
-
//
|
|
11273
|
+
// packages/execution/dist/tools/factory.js
|
|
11274
11274
|
import { execSync as execSync20, spawn as spawn10 } from "node:child_process";
|
|
11275
11275
|
import { existsSync as existsSync22 } from "node:fs";
|
|
11276
11276
|
import { join as join28 } from "node:path";
|
|
@@ -11331,7 +11331,7 @@ function installDroid() {
|
|
|
11331
11331
|
}
|
|
11332
11332
|
var FactoryTool;
|
|
11333
11333
|
var init_factory = __esm({
|
|
11334
|
-
"
|
|
11334
|
+
"packages/execution/dist/tools/factory.js"() {
|
|
11335
11335
|
"use strict";
|
|
11336
11336
|
FactoryTool = class {
|
|
11337
11337
|
name = "factory";
|
|
@@ -11579,7 +11579,7 @@ var init_factory = __esm({
|
|
|
11579
11579
|
}
|
|
11580
11580
|
});
|
|
11581
11581
|
|
|
11582
|
-
//
|
|
11582
|
+
// packages/execution/dist/tools/cron-agent.js
|
|
11583
11583
|
import { execSync as execSync21 } from "node:child_process";
|
|
11584
11584
|
import { readFile as readFile12, writeFile as writeFile11, mkdir as mkdir7 } from "node:fs/promises";
|
|
11585
11585
|
import { resolve as resolve25, join as join29 } from "node:path";
|
|
@@ -11713,7 +11713,7 @@ async function saveStore2(workingDir, store) {
|
|
|
11713
11713
|
}
|
|
11714
11714
|
var LONG_HORIZON_PRESETS, CRON_AGENT_MARKER, CronAgentTool;
|
|
11715
11715
|
var init_cron_agent = __esm({
|
|
11716
|
-
"
|
|
11716
|
+
"packages/execution/dist/tools/cron-agent.js"() {
|
|
11717
11717
|
"use strict";
|
|
11718
11718
|
LONG_HORIZON_PRESETS = {
|
|
11719
11719
|
"every hour": "0 * * * *",
|
|
@@ -12044,7 +12044,7 @@ ${truncated}`, durationMs: performance.now() - start };
|
|
|
12044
12044
|
}
|
|
12045
12045
|
});
|
|
12046
12046
|
|
|
12047
|
-
//
|
|
12047
|
+
// packages/execution/dist/tools/nexus.js
|
|
12048
12048
|
import { readFile as readFile13, writeFile as writeFile12, mkdir as mkdir8, chmod, unlink, readdir as readdir3, open as fsOpen } from "node:fs/promises";
|
|
12049
12049
|
import { existsSync as existsSync23, readFileSync as readFileSync16, watch as fsWatchLocal } from "node:fs";
|
|
12050
12050
|
import { resolve as resolve26, join as join30 } from "node:path";
|
|
@@ -12060,7 +12060,7 @@ function containsKeyMaterial(input) {
|
|
|
12060
12060
|
}
|
|
12061
12061
|
var DAEMON_SCRIPT, KEY_PATTERNS, NexusTool;
|
|
12062
12062
|
var init_nexus = __esm({
|
|
12063
|
-
"
|
|
12063
|
+
"packages/execution/dist/tools/nexus.js"() {
|
|
12064
12064
|
"use strict";
|
|
12065
12065
|
DAEMON_SCRIPT = `#!/usr/bin/env node
|
|
12066
12066
|
/**
|
|
@@ -13884,21 +13884,26 @@ process.on('SIGINT', () => process.emit('SIGTERM'));
|
|
|
13884
13884
|
nodePaths.push(globalDir);
|
|
13885
13885
|
} catch {
|
|
13886
13886
|
}
|
|
13887
|
+
const { openSync, closeSync } = await import("node:fs");
|
|
13888
|
+
const daemonLogPath = join30(this.nexusDir, "daemon.log");
|
|
13889
|
+
const daemonErrPath = join30(this.nexusDir, "daemon.err");
|
|
13890
|
+
const outFd = openSync(daemonLogPath, "w");
|
|
13891
|
+
const errFd = openSync(daemonErrPath, "w");
|
|
13887
13892
|
const child = spawn11("node", [daemonPath, this.nexusDir, agentName, agentType], {
|
|
13888
13893
|
detached: true,
|
|
13889
|
-
stdio: ["ignore",
|
|
13894
|
+
stdio: ["ignore", outFd, errFd],
|
|
13890
13895
|
cwd: this.repoRoot,
|
|
13891
13896
|
env: { ...process.env, NODE_PATH: nodePaths.join(":") }
|
|
13892
13897
|
});
|
|
13893
13898
|
child.unref();
|
|
13894
|
-
|
|
13895
|
-
|
|
13896
|
-
|
|
13897
|
-
|
|
13898
|
-
|
|
13899
|
-
|
|
13900
|
-
|
|
13901
|
-
}
|
|
13899
|
+
try {
|
|
13900
|
+
closeSync(outFd);
|
|
13901
|
+
} catch {
|
|
13902
|
+
}
|
|
13903
|
+
try {
|
|
13904
|
+
closeSync(errFd);
|
|
13905
|
+
} catch {
|
|
13906
|
+
}
|
|
13902
13907
|
const statusFile = join30(this.nexusDir, "status.json");
|
|
13903
13908
|
for (let i = 0; i < 40; i++) {
|
|
13904
13909
|
await new Promise((r) => setTimeout(r, 500));
|
|
@@ -13906,7 +13911,12 @@ process.on('SIGINT', () => process.emit('SIGTERM'));
|
|
|
13906
13911
|
try {
|
|
13907
13912
|
const status = JSON.parse(await readFile13(statusFile, "utf8"));
|
|
13908
13913
|
if (status.error) {
|
|
13909
|
-
|
|
13914
|
+
let errTail = "";
|
|
13915
|
+
try {
|
|
13916
|
+
errTail = (await readFile13(daemonErrPath, "utf8")).slice(-300);
|
|
13917
|
+
} catch {
|
|
13918
|
+
}
|
|
13919
|
+
return `Nexus daemon failed to connect: ${status.error}${errTail ? "\n" + errTail : ""}`;
|
|
13910
13920
|
}
|
|
13911
13921
|
if (status.connected && status.peerId) {
|
|
13912
13922
|
return [
|
|
@@ -13923,10 +13933,20 @@ process.on('SIGINT', () => process.emit('SIGTERM'));
|
|
|
13923
13933
|
}
|
|
13924
13934
|
}
|
|
13925
13935
|
const pid = this.getDaemonPid();
|
|
13936
|
+
let earlyError = "";
|
|
13937
|
+
try {
|
|
13938
|
+
earlyError = (await readFile13(daemonErrPath, "utf8")).slice(-500);
|
|
13939
|
+
} catch {
|
|
13940
|
+
}
|
|
13941
|
+
let earlyOutput = "";
|
|
13942
|
+
try {
|
|
13943
|
+
earlyOutput = (await readFile13(daemonLogPath, "utf8")).slice(-500);
|
|
13944
|
+
} catch {
|
|
13945
|
+
}
|
|
13926
13946
|
if (pid) {
|
|
13927
13947
|
return `Daemon spawned (pid: ${pid}) but still connecting. Check status in a moment.${earlyError ? "\nStderr: " + earlyError.slice(0, 200) : ""}`;
|
|
13928
13948
|
}
|
|
13929
|
-
return `Daemon failed to start.${earlyError ? "\n" + earlyError
|
|
13949
|
+
return `Daemon failed to start.${earlyError ? "\n" + earlyError : ""}${earlyOutput ? "\n" + earlyOutput : ""}`;
|
|
13930
13950
|
}
|
|
13931
13951
|
async doDisconnect() {
|
|
13932
13952
|
const pid = this.getDaemonPid();
|
|
@@ -14760,7 +14780,7 @@ process.on('SIGINT', () => process.emit('SIGTERM'));
|
|
|
14760
14780
|
}
|
|
14761
14781
|
});
|
|
14762
14782
|
|
|
14763
|
-
//
|
|
14783
|
+
// packages/execution/dist/shellRunner.js
|
|
14764
14784
|
import { spawn as spawn12 } from "node:child_process";
|
|
14765
14785
|
async function runShell(options) {
|
|
14766
14786
|
const { command, args = [], cwd: cwd4, env, timeoutMs = DEFAULT_TIMEOUT_MS } = options;
|
|
@@ -14814,13 +14834,13 @@ async function runShell(options) {
|
|
|
14814
14834
|
}
|
|
14815
14835
|
var DEFAULT_TIMEOUT_MS;
|
|
14816
14836
|
var init_shellRunner = __esm({
|
|
14817
|
-
"
|
|
14837
|
+
"packages/execution/dist/shellRunner.js"() {
|
|
14818
14838
|
"use strict";
|
|
14819
14839
|
DEFAULT_TIMEOUT_MS = 6e4;
|
|
14820
14840
|
}
|
|
14821
14841
|
});
|
|
14822
14842
|
|
|
14823
|
-
//
|
|
14843
|
+
// packages/execution/dist/gitWorktree.js
|
|
14824
14844
|
async function createWorktree(options) {
|
|
14825
14845
|
const { repoPath, worktreePath, branch, timeoutMs = DEFAULT_GIT_TIMEOUT_MS } = options;
|
|
14826
14846
|
const result = await runShell({
|
|
@@ -14857,14 +14877,14 @@ async function removeWorktree(options) {
|
|
|
14857
14877
|
}
|
|
14858
14878
|
var DEFAULT_GIT_TIMEOUT_MS;
|
|
14859
14879
|
var init_gitWorktree = __esm({
|
|
14860
|
-
"
|
|
14880
|
+
"packages/execution/dist/gitWorktree.js"() {
|
|
14861
14881
|
"use strict";
|
|
14862
14882
|
init_shellRunner();
|
|
14863
14883
|
DEFAULT_GIT_TIMEOUT_MS = 3e4;
|
|
14864
14884
|
}
|
|
14865
14885
|
});
|
|
14866
14886
|
|
|
14867
|
-
//
|
|
14887
|
+
// packages/execution/dist/patchApplier.js
|
|
14868
14888
|
import { readFileSync as readFileSync17, writeFileSync as writeFileSync7, existsSync as existsSync24, mkdirSync as mkdirSync7 } from "node:fs";
|
|
14869
14889
|
import { dirname as dirname11 } from "node:path";
|
|
14870
14890
|
import { spawn as spawn13 } from "node:child_process";
|
|
@@ -14941,12 +14961,12 @@ function runWithStdin(options) {
|
|
|
14941
14961
|
});
|
|
14942
14962
|
}
|
|
14943
14963
|
var init_patchApplier = __esm({
|
|
14944
|
-
"
|
|
14964
|
+
"packages/execution/dist/patchApplier.js"() {
|
|
14945
14965
|
"use strict";
|
|
14946
14966
|
}
|
|
14947
14967
|
});
|
|
14948
14968
|
|
|
14949
|
-
//
|
|
14969
|
+
// packages/execution/dist/formatterRunner.js
|
|
14950
14970
|
function buildFormatterCommand(formatter, extraArgs) {
|
|
14951
14971
|
switch (formatter) {
|
|
14952
14972
|
case "prettier":
|
|
@@ -14997,13 +15017,13 @@ async function runFormatter(options) {
|
|
|
14997
15017
|
};
|
|
14998
15018
|
}
|
|
14999
15019
|
var init_formatterRunner = __esm({
|
|
15000
|
-
"
|
|
15020
|
+
"packages/execution/dist/formatterRunner.js"() {
|
|
15001
15021
|
"use strict";
|
|
15002
15022
|
init_shellRunner();
|
|
15003
15023
|
}
|
|
15004
15024
|
});
|
|
15005
15025
|
|
|
15006
|
-
//
|
|
15026
|
+
// packages/execution/dist/linterRunner.js
|
|
15007
15027
|
function buildLinterCommand(linter, extraArgs) {
|
|
15008
15028
|
switch (linter) {
|
|
15009
15029
|
case "eslint":
|
|
@@ -15059,13 +15079,13 @@ async function runLinter(options) {
|
|
|
15059
15079
|
};
|
|
15060
15080
|
}
|
|
15061
15081
|
var init_linterRunner = __esm({
|
|
15062
|
-
"
|
|
15082
|
+
"packages/execution/dist/linterRunner.js"() {
|
|
15063
15083
|
"use strict";
|
|
15064
15084
|
init_shellRunner();
|
|
15065
15085
|
}
|
|
15066
15086
|
});
|
|
15067
15087
|
|
|
15068
|
-
//
|
|
15088
|
+
// packages/execution/dist/typecheckRunner.js
|
|
15069
15089
|
function buildTypecheckerCommand(typechecker, extraArgs) {
|
|
15070
15090
|
switch (typechecker) {
|
|
15071
15091
|
case "tsc":
|
|
@@ -15111,13 +15131,13 @@ async function runTypecheck(options) {
|
|
|
15111
15131
|
};
|
|
15112
15132
|
}
|
|
15113
15133
|
var init_typecheckRunner = __esm({
|
|
15114
|
-
"
|
|
15134
|
+
"packages/execution/dist/typecheckRunner.js"() {
|
|
15115
15135
|
"use strict";
|
|
15116
15136
|
init_shellRunner();
|
|
15117
15137
|
}
|
|
15118
15138
|
});
|
|
15119
15139
|
|
|
15120
|
-
//
|
|
15140
|
+
// packages/execution/dist/testRunner.js
|
|
15121
15141
|
function buildTestRunnerCommand(testRunner, extraArgs) {
|
|
15122
15142
|
switch (testRunner) {
|
|
15123
15143
|
case "jest":
|
|
@@ -15173,13 +15193,13 @@ async function runTests(options) {
|
|
|
15173
15193
|
};
|
|
15174
15194
|
}
|
|
15175
15195
|
var init_testRunner = __esm({
|
|
15176
|
-
"
|
|
15196
|
+
"packages/execution/dist/testRunner.js"() {
|
|
15177
15197
|
"use strict";
|
|
15178
15198
|
init_shellRunner();
|
|
15179
15199
|
}
|
|
15180
15200
|
});
|
|
15181
15201
|
|
|
15182
|
-
//
|
|
15202
|
+
// packages/execution/dist/buildRunner.js
|
|
15183
15203
|
function buildBuilderCommand(profile, extraArgs) {
|
|
15184
15204
|
switch (profile.builder) {
|
|
15185
15205
|
case "tsc":
|
|
@@ -15246,13 +15266,13 @@ async function runBuild(options) {
|
|
|
15246
15266
|
};
|
|
15247
15267
|
}
|
|
15248
15268
|
var init_buildRunner = __esm({
|
|
15249
|
-
"
|
|
15269
|
+
"packages/execution/dist/buildRunner.js"() {
|
|
15250
15270
|
"use strict";
|
|
15251
15271
|
init_shellRunner();
|
|
15252
15272
|
}
|
|
15253
15273
|
});
|
|
15254
15274
|
|
|
15255
|
-
//
|
|
15275
|
+
// packages/execution/dist/validationPipeline.js
|
|
15256
15276
|
async function runValidationPipeline(config) {
|
|
15257
15277
|
const { projectRoot, profile, stopOnFirstFailure = true } = config;
|
|
15258
15278
|
const formatterProfile = {
|
|
@@ -15348,7 +15368,7 @@ async function runValidationPipeline(config) {
|
|
|
15348
15368
|
};
|
|
15349
15369
|
}
|
|
15350
15370
|
var init_validationPipeline = __esm({
|
|
15351
|
-
"
|
|
15371
|
+
"packages/execution/dist/validationPipeline.js"() {
|
|
15352
15372
|
"use strict";
|
|
15353
15373
|
init_formatterRunner();
|
|
15354
15374
|
init_linterRunner();
|
|
@@ -15358,7 +15378,7 @@ var init_validationPipeline = __esm({
|
|
|
15358
15378
|
}
|
|
15359
15379
|
});
|
|
15360
15380
|
|
|
15361
|
-
//
|
|
15381
|
+
// packages/execution/dist/index.js
|
|
15362
15382
|
var dist_exports = {};
|
|
15363
15383
|
__export(dist_exports, {
|
|
15364
15384
|
AgendaTool: () => AgendaTool,
|
|
@@ -15451,7 +15471,7 @@ __export(dist_exports, {
|
|
|
15451
15471
|
setSudoPassword: () => setSudoPassword
|
|
15452
15472
|
});
|
|
15453
15473
|
var init_dist2 = __esm({
|
|
15454
|
-
"
|
|
15474
|
+
"packages/execution/dist/index.js"() {
|
|
15455
15475
|
"use strict";
|
|
15456
15476
|
init_tool_executor();
|
|
15457
15477
|
init_shell();
|
|
@@ -15513,9 +15533,9 @@ var init_dist2 = __esm({
|
|
|
15513
15533
|
}
|
|
15514
15534
|
});
|
|
15515
15535
|
|
|
15516
|
-
//
|
|
15536
|
+
// packages/orchestrator/dist/agent-loop.js
|
|
15517
15537
|
var init_agent_loop = __esm({
|
|
15518
|
-
"
|
|
15538
|
+
"packages/orchestrator/dist/agent-loop.js"() {
|
|
15519
15539
|
"use strict";
|
|
15520
15540
|
init_dist();
|
|
15521
15541
|
init_dist2();
|
|
@@ -15523,11 +15543,11 @@ var init_agent_loop = __esm({
|
|
|
15523
15543
|
}
|
|
15524
15544
|
});
|
|
15525
15545
|
|
|
15526
|
-
//
|
|
15546
|
+
// packages/schemas/dist/messages.js
|
|
15527
15547
|
import { z } from "zod";
|
|
15528
15548
|
var AgentMessageSchema;
|
|
15529
15549
|
var init_messages = __esm({
|
|
15530
|
-
"
|
|
15550
|
+
"packages/schemas/dist/messages.js"() {
|
|
15531
15551
|
"use strict";
|
|
15532
15552
|
AgentMessageSchema = z.object({
|
|
15533
15553
|
id: z.string().uuid(),
|
|
@@ -15540,11 +15560,11 @@ var init_messages = __esm({
|
|
|
15540
15560
|
}
|
|
15541
15561
|
});
|
|
15542
15562
|
|
|
15543
|
-
//
|
|
15563
|
+
// packages/schemas/dist/tools.js
|
|
15544
15564
|
import { z as z2 } from "zod";
|
|
15545
15565
|
var ToolCallSchema;
|
|
15546
15566
|
var init_tools = __esm({
|
|
15547
|
-
"
|
|
15567
|
+
"packages/schemas/dist/tools.js"() {
|
|
15548
15568
|
"use strict";
|
|
15549
15569
|
ToolCallSchema = z2.object({
|
|
15550
15570
|
id: z2.string().uuid(),
|
|
@@ -15558,11 +15578,11 @@ var init_tools = __esm({
|
|
|
15558
15578
|
}
|
|
15559
15579
|
});
|
|
15560
15580
|
|
|
15561
|
-
//
|
|
15581
|
+
// packages/schemas/dist/session.js
|
|
15562
15582
|
import { z as z3 } from "zod";
|
|
15563
15583
|
var SessionSchema;
|
|
15564
15584
|
var init_session = __esm({
|
|
15565
|
-
"
|
|
15585
|
+
"packages/schemas/dist/session.js"() {
|
|
15566
15586
|
"use strict";
|
|
15567
15587
|
SessionSchema = z3.object({
|
|
15568
15588
|
id: z3.string().uuid(),
|
|
@@ -15576,11 +15596,11 @@ var init_session = __esm({
|
|
|
15576
15596
|
}
|
|
15577
15597
|
});
|
|
15578
15598
|
|
|
15579
|
-
//
|
|
15599
|
+
// packages/schemas/dist/task.js
|
|
15580
15600
|
import { z as z4 } from "zod";
|
|
15581
15601
|
var TaskClassSchema, UrgencySchema, NormalizedTaskSchema, TaskStatusSchema;
|
|
15582
15602
|
var init_task = __esm({
|
|
15583
|
-
"
|
|
15603
|
+
"packages/schemas/dist/task.js"() {
|
|
15584
15604
|
"use strict";
|
|
15585
15605
|
TaskClassSchema = z4.enum([
|
|
15586
15606
|
"bugfix",
|
|
@@ -15625,11 +15645,11 @@ var init_task = __esm({
|
|
|
15625
15645
|
}
|
|
15626
15646
|
});
|
|
15627
15647
|
|
|
15628
|
-
//
|
|
15648
|
+
// packages/schemas/dist/plan.js
|
|
15629
15649
|
import { z as z5 } from "zod";
|
|
15630
15650
|
var SubtaskKindSchema, SubtaskSchema, PlanSchema;
|
|
15631
15651
|
var init_plan = __esm({
|
|
15632
|
-
"
|
|
15652
|
+
"packages/schemas/dist/plan.js"() {
|
|
15633
15653
|
"use strict";
|
|
15634
15654
|
SubtaskKindSchema = z5.enum([
|
|
15635
15655
|
"inspect",
|
|
@@ -15663,11 +15683,11 @@ var init_plan = __esm({
|
|
|
15663
15683
|
}
|
|
15664
15684
|
});
|
|
15665
15685
|
|
|
15666
|
-
//
|
|
15686
|
+
// packages/schemas/dist/patch.js
|
|
15667
15687
|
import { z as z6 } from "zod";
|
|
15668
15688
|
var EditOperationSchema, FileEditSchema, NeedsMoreContextSchema, PatchProposalSchema;
|
|
15669
15689
|
var init_patch = __esm({
|
|
15670
|
-
"
|
|
15690
|
+
"packages/schemas/dist/patch.js"() {
|
|
15671
15691
|
"use strict";
|
|
15672
15692
|
EditOperationSchema = z6.enum([
|
|
15673
15693
|
"diff",
|
|
@@ -15706,11 +15726,11 @@ var init_patch = __esm({
|
|
|
15706
15726
|
}
|
|
15707
15727
|
});
|
|
15708
15728
|
|
|
15709
|
-
//
|
|
15729
|
+
// packages/schemas/dist/verification.js
|
|
15710
15730
|
import { z as z7 } from "zod";
|
|
15711
15731
|
var VerificationStatusSchema, VerificationNextActionSchema, VerificationDecisionSchema;
|
|
15712
15732
|
var init_verification = __esm({
|
|
15713
|
-
"
|
|
15733
|
+
"packages/schemas/dist/verification.js"() {
|
|
15714
15734
|
"use strict";
|
|
15715
15735
|
VerificationStatusSchema = z7.enum(["pass", "fail", "partial"]);
|
|
15716
15736
|
VerificationNextActionSchema = z7.enum([
|
|
@@ -15735,11 +15755,11 @@ var init_verification = __esm({
|
|
|
15735
15755
|
}
|
|
15736
15756
|
});
|
|
15737
15757
|
|
|
15738
|
-
//
|
|
15758
|
+
// packages/schemas/dist/repoProfile.js
|
|
15739
15759
|
import { z as z8 } from "zod";
|
|
15740
15760
|
var LanguageSchema, PackageManagerSchema, BuildSystemSchema, MigrationSystemSchema, RepoProfileSchema;
|
|
15741
15761
|
var init_repoProfile = __esm({
|
|
15742
|
-
"
|
|
15762
|
+
"packages/schemas/dist/repoProfile.js"() {
|
|
15743
15763
|
"use strict";
|
|
15744
15764
|
LanguageSchema = z8.enum([
|
|
15745
15765
|
"typescript",
|
|
@@ -15817,11 +15837,11 @@ var init_repoProfile = __esm({
|
|
|
15817
15837
|
}
|
|
15818
15838
|
});
|
|
15819
15839
|
|
|
15820
|
-
//
|
|
15840
|
+
// packages/schemas/dist/retrieval.js
|
|
15821
15841
|
import { z as z9 } from "zod";
|
|
15822
15842
|
var RetrievalRequestSchema, SnippetSchema, RetrievalPacketSchema;
|
|
15823
15843
|
var init_retrieval = __esm({
|
|
15824
|
-
"
|
|
15844
|
+
"packages/schemas/dist/retrieval.js"() {
|
|
15825
15845
|
"use strict";
|
|
15826
15846
|
RetrievalRequestSchema = z9.object({
|
|
15827
15847
|
/** Natural language description of what information is needed */
|
|
@@ -15869,11 +15889,11 @@ var init_retrieval = __esm({
|
|
|
15869
15889
|
}
|
|
15870
15890
|
});
|
|
15871
15891
|
|
|
15872
|
-
//
|
|
15892
|
+
// packages/schemas/dist/dispatch.js
|
|
15873
15893
|
import { z as z10 } from "zod";
|
|
15874
15894
|
var DispatchModeSchema, TaskComplexitySchema, AgentRoleSchema, BudgetsSchema, DispatchDecisionSchema;
|
|
15875
15895
|
var init_dispatch = __esm({
|
|
15876
|
-
"
|
|
15896
|
+
"packages/schemas/dist/dispatch.js"() {
|
|
15877
15897
|
"use strict";
|
|
15878
15898
|
DispatchModeSchema = z10.enum([
|
|
15879
15899
|
"single_pass",
|
|
@@ -15907,11 +15927,11 @@ var init_dispatch = __esm({
|
|
|
15907
15927
|
}
|
|
15908
15928
|
});
|
|
15909
15929
|
|
|
15910
|
-
//
|
|
15930
|
+
// packages/schemas/dist/memory.js
|
|
15911
15931
|
import { z as z11 } from "zod";
|
|
15912
15932
|
var RiskLevelSchema, FileSummarySchema, FailureCategorySchema, FailureFingerprintSchema, TaskMemorySchema;
|
|
15913
15933
|
var init_memory = __esm({
|
|
15914
|
-
"
|
|
15934
|
+
"packages/schemas/dist/memory.js"() {
|
|
15915
15935
|
"use strict";
|
|
15916
15936
|
RiskLevelSchema = z11.enum(["low", "medium", "high", "critical"]);
|
|
15917
15937
|
FileSummarySchema = z11.object({
|
|
@@ -15987,11 +16007,11 @@ var init_memory = __esm({
|
|
|
15987
16007
|
}
|
|
15988
16008
|
});
|
|
15989
16009
|
|
|
15990
|
-
//
|
|
16010
|
+
// packages/schemas/dist/backend.js
|
|
15991
16011
|
import { z as z12 } from "zod";
|
|
15992
16012
|
var MessageRoleSchema, ChatMessageSchema, CompletionRequestSchema, TokenUsageSchema, CompletionResponseSchema, StructuredCompletionRequestSchema, BackendHealthSchema, BackendMetricsSchema;
|
|
15993
16013
|
var init_backend = __esm({
|
|
15994
|
-
"
|
|
16014
|
+
"packages/schemas/dist/backend.js"() {
|
|
15995
16015
|
"use strict";
|
|
15996
16016
|
MessageRoleSchema = z12.enum([
|
|
15997
16017
|
"system",
|
|
@@ -16076,11 +16096,11 @@ var init_backend = __esm({
|
|
|
16076
16096
|
}
|
|
16077
16097
|
});
|
|
16078
16098
|
|
|
16079
|
-
//
|
|
16099
|
+
// packages/schemas/dist/config.js
|
|
16080
16100
|
import { z as z13 } from "zod";
|
|
16081
16101
|
var AgentConfigSchema;
|
|
16082
16102
|
var init_config2 = __esm({
|
|
16083
|
-
"
|
|
16103
|
+
"packages/schemas/dist/config.js"() {
|
|
16084
16104
|
"use strict";
|
|
16085
16105
|
AgentConfigSchema = z13.object({
|
|
16086
16106
|
// -----------------------------------------------------------------------
|
|
@@ -16139,11 +16159,11 @@ var init_config2 = __esm({
|
|
|
16139
16159
|
}
|
|
16140
16160
|
});
|
|
16141
16161
|
|
|
16142
|
-
//
|
|
16162
|
+
// packages/schemas/dist/queue.js
|
|
16143
16163
|
import { z as z14 } from "zod";
|
|
16144
16164
|
var QueueClassSchema;
|
|
16145
16165
|
var init_queue = __esm({
|
|
16146
|
-
"
|
|
16166
|
+
"packages/schemas/dist/queue.js"() {
|
|
16147
16167
|
"use strict";
|
|
16148
16168
|
QueueClassSchema = z14.enum([
|
|
16149
16169
|
/** CLI and direct user-facing requests; lowest latency target */
|
|
@@ -16162,9 +16182,9 @@ var init_queue = __esm({
|
|
|
16162
16182
|
}
|
|
16163
16183
|
});
|
|
16164
16184
|
|
|
16165
|
-
//
|
|
16185
|
+
// packages/schemas/dist/index.js
|
|
16166
16186
|
var init_dist3 = __esm({
|
|
16167
|
-
"
|
|
16187
|
+
"packages/schemas/dist/index.js"() {
|
|
16168
16188
|
"use strict";
|
|
16169
16189
|
init_messages();
|
|
16170
16190
|
init_tools();
|
|
@@ -16183,7 +16203,7 @@ var init_dist3 = __esm({
|
|
|
16183
16203
|
}
|
|
16184
16204
|
});
|
|
16185
16205
|
|
|
16186
|
-
//
|
|
16206
|
+
// packages/orchestrator/dist/promptLoader.js
|
|
16187
16207
|
import { readFileSync as readFileSync18, existsSync as existsSync25 } from "node:fs";
|
|
16188
16208
|
import { join as join31, dirname as dirname12 } from "node:path";
|
|
16189
16209
|
import { fileURLToPath as fileURLToPath7 } from "node:url";
|
|
@@ -16203,7 +16223,7 @@ function loadPrompt(promptPath, vars) {
|
|
|
16203
16223
|
}
|
|
16204
16224
|
var __filename, __dirname4, PROMPTS_DIR, cache;
|
|
16205
16225
|
var init_promptLoader = __esm({
|
|
16206
|
-
"
|
|
16226
|
+
"packages/orchestrator/dist/promptLoader.js"() {
|
|
16207
16227
|
"use strict";
|
|
16208
16228
|
__filename = fileURLToPath7(import.meta.url);
|
|
16209
16229
|
__dirname4 = dirname12(__filename);
|
|
@@ -16212,7 +16232,7 @@ var init_promptLoader = __esm({
|
|
|
16212
16232
|
}
|
|
16213
16233
|
});
|
|
16214
16234
|
|
|
16215
|
-
//
|
|
16235
|
+
// packages/orchestrator/dist/taskNormalizer.js
|
|
16216
16236
|
function parseJsonFromContent(content) {
|
|
16217
16237
|
const fencedMatch = content.match(/```(?:json)?\s*([\s\S]*?)```/);
|
|
16218
16238
|
const raw = fencedMatch ? fencedMatch[1] : content;
|
|
@@ -16227,7 +16247,7 @@ function normalizationPrompt(rawRequest, repoRoot) {
|
|
|
16227
16247
|
}
|
|
16228
16248
|
var TaskNormalizer;
|
|
16229
16249
|
var init_taskNormalizer = __esm({
|
|
16230
|
-
"
|
|
16250
|
+
"packages/orchestrator/dist/taskNormalizer.js"() {
|
|
16231
16251
|
"use strict";
|
|
16232
16252
|
init_dist3();
|
|
16233
16253
|
init_promptLoader();
|
|
@@ -16279,7 +16299,7 @@ var init_taskNormalizer = __esm({
|
|
|
16279
16299
|
}
|
|
16280
16300
|
});
|
|
16281
16301
|
|
|
16282
|
-
//
|
|
16302
|
+
// packages/orchestrator/dist/dispatcher.js
|
|
16283
16303
|
function estimateComplexity(task) {
|
|
16284
16304
|
const text = `${task.goal} ${task.constraints.join(" ")} ${task.successCriteria.join(" ")}`;
|
|
16285
16305
|
const wordCount = text.split(/\s+/).length;
|
|
@@ -16346,7 +16366,7 @@ function parseJsonFromContent2(content) {
|
|
|
16346
16366
|
}
|
|
16347
16367
|
var Dispatcher;
|
|
16348
16368
|
var init_dispatcher = __esm({
|
|
16349
|
-
"
|
|
16369
|
+
"packages/orchestrator/dist/dispatcher.js"() {
|
|
16350
16370
|
"use strict";
|
|
16351
16371
|
init_dist3();
|
|
16352
16372
|
init_promptLoader();
|
|
@@ -16406,7 +16426,7 @@ var init_dispatcher = __esm({
|
|
|
16406
16426
|
}
|
|
16407
16427
|
});
|
|
16408
16428
|
|
|
16409
|
-
//
|
|
16429
|
+
// packages/orchestrator/dist/plannerRunner.js
|
|
16410
16430
|
function plannerPrompt(task, repoProfile, retrievalPacket) {
|
|
16411
16431
|
const profileSection = repoProfile ? `REPOSITORY PROFILE:
|
|
16412
16432
|
${JSON.stringify(repoProfile, null, 2)}` : "REPOSITORY PROFILE: (not available)";
|
|
@@ -16427,7 +16447,7 @@ function parseJsonFromContent3(content) {
|
|
|
16427
16447
|
}
|
|
16428
16448
|
var PlannerRunner;
|
|
16429
16449
|
var init_plannerRunner = __esm({
|
|
16430
|
-
"
|
|
16450
|
+
"packages/orchestrator/dist/plannerRunner.js"() {
|
|
16431
16451
|
"use strict";
|
|
16432
16452
|
init_dist3();
|
|
16433
16453
|
init_promptLoader();
|
|
@@ -16480,12 +16500,12 @@ var init_plannerRunner = __esm({
|
|
|
16480
16500
|
}
|
|
16481
16501
|
});
|
|
16482
16502
|
|
|
16483
|
-
//
|
|
16503
|
+
// packages/retrieval/dist/grep-search.js
|
|
16484
16504
|
import { execFile as execFile4 } from "node:child_process";
|
|
16485
16505
|
import { promisify as promisify3 } from "node:util";
|
|
16486
16506
|
var execFileAsync3, GrepSearch;
|
|
16487
16507
|
var init_grep_search2 = __esm({
|
|
16488
|
-
"
|
|
16508
|
+
"packages/retrieval/dist/grep-search.js"() {
|
|
16489
16509
|
"use strict";
|
|
16490
16510
|
execFileAsync3 = promisify3(execFile4);
|
|
16491
16511
|
GrepSearch = class {
|
|
@@ -16542,10 +16562,10 @@ var init_grep_search2 = __esm({
|
|
|
16542
16562
|
}
|
|
16543
16563
|
});
|
|
16544
16564
|
|
|
16545
|
-
//
|
|
16565
|
+
// packages/retrieval/dist/code-retriever.js
|
|
16546
16566
|
var DEFAULT_CONFIG3, CodeRetriever;
|
|
16547
16567
|
var init_code_retriever = __esm({
|
|
16548
|
-
"
|
|
16568
|
+
"packages/retrieval/dist/code-retriever.js"() {
|
|
16549
16569
|
"use strict";
|
|
16550
16570
|
init_grep_search2();
|
|
16551
16571
|
DEFAULT_CONFIG3 = {
|
|
@@ -16583,7 +16603,7 @@ var init_code_retriever = __esm({
|
|
|
16583
16603
|
}
|
|
16584
16604
|
});
|
|
16585
16605
|
|
|
16586
|
-
//
|
|
16606
|
+
// packages/retrieval/dist/lexicalSearch.js
|
|
16587
16607
|
import { execFile as execFile5 } from "node:child_process";
|
|
16588
16608
|
import { promisify as promisify4 } from "node:util";
|
|
16589
16609
|
import { readFile as readFile14, readdir as readdir4, stat as stat3 } from "node:fs/promises";
|
|
@@ -16761,7 +16781,7 @@ function matchesGlob(filePath, glob2) {
|
|
|
16761
16781
|
}
|
|
16762
16782
|
var execFileAsync4, DEFAULT_INCLUDE_GLOBS, DEFAULT_EXCLUDE_GLOBS, DEFAULT_MAX_MATCHES, ALWAYS_SKIP, ALL_CODE_EXTS;
|
|
16763
16783
|
var init_lexicalSearch = __esm({
|
|
16764
|
-
"
|
|
16784
|
+
"packages/retrieval/dist/lexicalSearch.js"() {
|
|
16765
16785
|
"use strict";
|
|
16766
16786
|
execFileAsync4 = promisify4(execFile5);
|
|
16767
16787
|
DEFAULT_INCLUDE_GLOBS = ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx", "**/*.py"];
|
|
@@ -16772,7 +16792,7 @@ var init_lexicalSearch = __esm({
|
|
|
16772
16792
|
}
|
|
16773
16793
|
});
|
|
16774
16794
|
|
|
16775
|
-
//
|
|
16795
|
+
// packages/retrieval/dist/semanticSearch.js
|
|
16776
16796
|
function parseTagFilter(query) {
|
|
16777
16797
|
const required = [];
|
|
16778
16798
|
const anyOf = [];
|
|
@@ -16849,7 +16869,7 @@ function makePlaceholderSummary(filePath) {
|
|
|
16849
16869
|
}
|
|
16850
16870
|
var StubSemanticSearchEngine, IndexBackedSemanticSearchEngine, LazySemanticSearchEngine;
|
|
16851
16871
|
var init_semanticSearch = __esm({
|
|
16852
|
-
"
|
|
16872
|
+
"packages/retrieval/dist/semanticSearch.js"() {
|
|
16853
16873
|
"use strict";
|
|
16854
16874
|
StubSemanticSearchEngine = class {
|
|
16855
16875
|
isAvailable = false;
|
|
@@ -16969,7 +16989,7 @@ var init_semanticSearch = __esm({
|
|
|
16969
16989
|
}
|
|
16970
16990
|
});
|
|
16971
16991
|
|
|
16972
|
-
//
|
|
16992
|
+
// packages/retrieval/dist/graphExpand.js
|
|
16973
16993
|
function expandGraph(seeds, graph, opts = {}) {
|
|
16974
16994
|
const { direction = "both", maxHops = 1, maxNeighbors = 20, includeSeeds = false } = opts;
|
|
16975
16995
|
const seedSet = new Set(seeds);
|
|
@@ -17029,12 +17049,12 @@ function bfsExpand(seeds, adjacency, maxHops, maxNeighbors, excludeSet, result)
|
|
|
17029
17049
|
}
|
|
17030
17050
|
}
|
|
17031
17051
|
var init_graphExpand = __esm({
|
|
17032
|
-
"
|
|
17052
|
+
"packages/retrieval/dist/graphExpand.js"() {
|
|
17033
17053
|
"use strict";
|
|
17034
17054
|
}
|
|
17035
17055
|
});
|
|
17036
17056
|
|
|
17037
|
-
//
|
|
17057
|
+
// packages/retrieval/dist/snippetPacker.js
|
|
17038
17058
|
import { readFile as readFile15 } from "node:fs/promises";
|
|
17039
17059
|
import { join as join33 } from "node:path";
|
|
17040
17060
|
async function packSnippets(requests, opts = {}) {
|
|
@@ -17097,7 +17117,7 @@ async function packFiles(filePaths, repoRoot, maxTokens = DEFAULT_MAX_TOKENS) {
|
|
|
17097
17117
|
}
|
|
17098
17118
|
var DEFAULT_MAX_TOKENS, DEFAULT_CONTEXT_LINES, CHARS_PER_TOKEN;
|
|
17099
17119
|
var init_snippetPacker = __esm({
|
|
17100
|
-
"
|
|
17120
|
+
"packages/retrieval/dist/snippetPacker.js"() {
|
|
17101
17121
|
"use strict";
|
|
17102
17122
|
DEFAULT_MAX_TOKENS = 32e3;
|
|
17103
17123
|
DEFAULT_CONTEXT_LINES = 2;
|
|
@@ -17105,7 +17125,7 @@ var init_snippetPacker = __esm({
|
|
|
17105
17125
|
}
|
|
17106
17126
|
});
|
|
17107
17127
|
|
|
17108
|
-
//
|
|
17128
|
+
// packages/retrieval/dist/contextAssembler.js
|
|
17109
17129
|
async function assembleContext(request, opts) {
|
|
17110
17130
|
const { repoRoot, graph, semanticEngine, summaryMap, maxFiles = 8, maxSnippets = 20, maxLogs = 3, maxTokens = 24e3, expandNeighbors = true, architectureNote, priorAttemptNote } = opts;
|
|
17111
17131
|
const lexOpts = {
|
|
@@ -17261,7 +17281,7 @@ function estimatePacketTokens(packet) {
|
|
|
17261
17281
|
return fileTokens + snippetTokens;
|
|
17262
17282
|
}
|
|
17263
17283
|
var init_contextAssembler = __esm({
|
|
17264
|
-
"
|
|
17284
|
+
"packages/retrieval/dist/contextAssembler.js"() {
|
|
17265
17285
|
"use strict";
|
|
17266
17286
|
init_lexicalSearch();
|
|
17267
17287
|
init_graphExpand();
|
|
@@ -17269,7 +17289,7 @@ var init_contextAssembler = __esm({
|
|
|
17269
17289
|
}
|
|
17270
17290
|
});
|
|
17271
17291
|
|
|
17272
|
-
//
|
|
17292
|
+
// packages/retrieval/dist/index.js
|
|
17273
17293
|
var dist_exports2 = {};
|
|
17274
17294
|
__export(dist_exports2, {
|
|
17275
17295
|
CodeRetriever: () => CodeRetriever,
|
|
@@ -17294,7 +17314,7 @@ __export(dist_exports2, {
|
|
|
17294
17314
|
testsForFiles: () => testsForFiles
|
|
17295
17315
|
});
|
|
17296
17316
|
var init_dist4 = __esm({
|
|
17297
|
-
"
|
|
17317
|
+
"packages/retrieval/dist/index.js"() {
|
|
17298
17318
|
"use strict";
|
|
17299
17319
|
init_code_retriever();
|
|
17300
17320
|
init_grep_search2();
|
|
@@ -17306,7 +17326,7 @@ var init_dist4 = __esm({
|
|
|
17306
17326
|
}
|
|
17307
17327
|
});
|
|
17308
17328
|
|
|
17309
|
-
//
|
|
17329
|
+
// packages/orchestrator/dist/scoutRunner.js
|
|
17310
17330
|
async function loadCodeRetriever(rootDir) {
|
|
17311
17331
|
const mod = await Promise.resolve().then(() => (init_dist4(), dist_exports2));
|
|
17312
17332
|
return new mod.CodeRetriever({ rootDir });
|
|
@@ -17337,7 +17357,7 @@ function scoutPrompt(task, repoProfile, candidateFiles, subtasks) {
|
|
|
17337
17357
|
}
|
|
17338
17358
|
var ScoutRunner;
|
|
17339
17359
|
var init_scoutRunner = __esm({
|
|
17340
|
-
"
|
|
17360
|
+
"packages/orchestrator/dist/scoutRunner.js"() {
|
|
17341
17361
|
"use strict";
|
|
17342
17362
|
init_dist3();
|
|
17343
17363
|
init_promptLoader();
|
|
@@ -17443,7 +17463,7 @@ var init_scoutRunner = __esm({
|
|
|
17443
17463
|
}
|
|
17444
17464
|
});
|
|
17445
17465
|
|
|
17446
|
-
//
|
|
17466
|
+
// packages/orchestrator/dist/editorRunner.js
|
|
17447
17467
|
function editorPrompt(task, subtask, retrievalPacket, previousVerification, retryNumber) {
|
|
17448
17468
|
const filesSection = Object.entries(retrievalPacket.files).map(([path, content]) => `=== ${path} ===
|
|
17449
17469
|
${content}`).join("\n\n");
|
|
@@ -17471,7 +17491,7 @@ function parseJsonFromContent5(content) {
|
|
|
17471
17491
|
}
|
|
17472
17492
|
var EditorRunner;
|
|
17473
17493
|
var init_editorRunner = __esm({
|
|
17474
|
-
"
|
|
17494
|
+
"packages/orchestrator/dist/editorRunner.js"() {
|
|
17475
17495
|
"use strict";
|
|
17476
17496
|
init_dist3();
|
|
17477
17497
|
init_promptLoader();
|
|
@@ -17529,7 +17549,7 @@ var init_editorRunner = __esm({
|
|
|
17529
17549
|
}
|
|
17530
17550
|
});
|
|
17531
17551
|
|
|
17532
|
-
//
|
|
17552
|
+
// packages/orchestrator/dist/verifierRunner.js
|
|
17533
17553
|
function verifierPrompt(task, subtask, patch, toolOutput) {
|
|
17534
17554
|
const toolSection = toolOutput ? `TOOL EXECUTION OUTPUT:
|
|
17535
17555
|
${toolOutput}` : "TOOL EXECUTION OUTPUT: (not executed)";
|
|
@@ -17557,7 +17577,7 @@ function parseJsonFromContent6(content) {
|
|
|
17557
17577
|
}
|
|
17558
17578
|
var VerifierRunner;
|
|
17559
17579
|
var init_verifierRunner = __esm({
|
|
17560
|
-
"
|
|
17580
|
+
"packages/orchestrator/dist/verifierRunner.js"() {
|
|
17561
17581
|
"use strict";
|
|
17562
17582
|
init_dist3();
|
|
17563
17583
|
init_promptLoader();
|
|
@@ -17652,10 +17672,10 @@ FAILED: ${execError.stderr ?? execError.stdout ?? execError.message ?? "unknown
|
|
|
17652
17672
|
}
|
|
17653
17673
|
});
|
|
17654
17674
|
|
|
17655
|
-
//
|
|
17675
|
+
// packages/orchestrator/dist/mergeRunner.js
|
|
17656
17676
|
var MergeRunner;
|
|
17657
17677
|
var init_mergeRunner = __esm({
|
|
17658
|
-
"
|
|
17678
|
+
"packages/orchestrator/dist/mergeRunner.js"() {
|
|
17659
17679
|
"use strict";
|
|
17660
17680
|
init_promptLoader();
|
|
17661
17681
|
MergeRunner = class {
|
|
@@ -17740,10 +17760,10 @@ var init_mergeRunner = __esm({
|
|
|
17740
17760
|
}
|
|
17741
17761
|
});
|
|
17742
17762
|
|
|
17743
|
-
//
|
|
17763
|
+
// packages/orchestrator/dist/retryController.js
|
|
17744
17764
|
var RetryController;
|
|
17745
17765
|
var init_retryController = __esm({
|
|
17746
|
-
"
|
|
17766
|
+
"packages/orchestrator/dist/retryController.js"() {
|
|
17747
17767
|
"use strict";
|
|
17748
17768
|
RetryController = class {
|
|
17749
17769
|
maxRetries;
|
|
@@ -17840,7 +17860,7 @@ var init_retryController = __esm({
|
|
|
17840
17860
|
}
|
|
17841
17861
|
});
|
|
17842
17862
|
|
|
17843
|
-
//
|
|
17863
|
+
// packages/orchestrator/dist/ralphLoop.js
|
|
17844
17864
|
function isoNow() {
|
|
17845
17865
|
return (/* @__PURE__ */ new Date()).toISOString();
|
|
17846
17866
|
}
|
|
@@ -17888,7 +17908,7 @@ function deriveTerminalStatus(executions) {
|
|
|
17888
17908
|
}
|
|
17889
17909
|
var RalphLoop;
|
|
17890
17910
|
var init_ralphLoop = __esm({
|
|
17891
|
-
"
|
|
17911
|
+
"packages/orchestrator/dist/ralphLoop.js"() {
|
|
17892
17912
|
"use strict";
|
|
17893
17913
|
init_taskNormalizer();
|
|
17894
17914
|
init_dispatcher();
|
|
@@ -18171,7 +18191,7 @@ var init_ralphLoop = __esm({
|
|
|
18171
18191
|
}
|
|
18172
18192
|
});
|
|
18173
18193
|
|
|
18174
|
-
//
|
|
18194
|
+
// packages/orchestrator/dist/personality.js
|
|
18175
18195
|
function compilePersonalityPrompt(profile, presetName) {
|
|
18176
18196
|
if (presetName === "stark") {
|
|
18177
18197
|
return loadPrompt("personality/level-stark.md");
|
|
@@ -18199,7 +18219,7 @@ function getPreset(name) {
|
|
|
18199
18219
|
}
|
|
18200
18220
|
var PERSONALITY_PRESETS, PRESET_NAMES;
|
|
18201
18221
|
var init_personality = __esm({
|
|
18202
|
-
"
|
|
18222
|
+
"packages/orchestrator/dist/personality.js"() {
|
|
18203
18223
|
"use strict";
|
|
18204
18224
|
init_promptLoader();
|
|
18205
18225
|
PERSONALITY_PRESETS = {
|
|
@@ -18220,7 +18240,7 @@ var init_personality = __esm({
|
|
|
18220
18240
|
}
|
|
18221
18241
|
});
|
|
18222
18242
|
|
|
18223
|
-
//
|
|
18243
|
+
// packages/orchestrator/dist/agenticRunner.js
|
|
18224
18244
|
function repairJson(raw) {
|
|
18225
18245
|
if (!raw || typeof raw !== "string")
|
|
18226
18246
|
return null;
|
|
@@ -18286,7 +18306,7 @@ function getSystemPromptForTier(tier) {
|
|
|
18286
18306
|
}
|
|
18287
18307
|
var SYSTEM_PROMPT, SYSTEM_PROMPT_MEDIUM, SYSTEM_PROMPT_SMALL, AgenticRunner, OllamaAgenticBackend;
|
|
18288
18308
|
var init_agenticRunner = __esm({
|
|
18289
|
-
"
|
|
18309
|
+
"packages/orchestrator/dist/agenticRunner.js"() {
|
|
18290
18310
|
"use strict";
|
|
18291
18311
|
init_dist();
|
|
18292
18312
|
init_personality();
|
|
@@ -20817,10 +20837,10 @@ ${transcript}`
|
|
|
20817
20837
|
}
|
|
20818
20838
|
});
|
|
20819
20839
|
|
|
20820
|
-
//
|
|
20840
|
+
// packages/orchestrator/dist/nexusBackend.js
|
|
20821
20841
|
var NexusAgenticBackend;
|
|
20822
20842
|
var init_nexusBackend = __esm({
|
|
20823
|
-
"
|
|
20843
|
+
"packages/orchestrator/dist/nexusBackend.js"() {
|
|
20824
20844
|
"use strict";
|
|
20825
20845
|
NexusAgenticBackend = class _NexusAgenticBackend {
|
|
20826
20846
|
sendFn;
|
|
@@ -20996,10 +21016,10 @@ var init_nexusBackend = __esm({
|
|
|
20996
21016
|
}
|
|
20997
21017
|
});
|
|
20998
21018
|
|
|
20999
|
-
//
|
|
21019
|
+
// packages/orchestrator/dist/cascadeBackend.js
|
|
21000
21020
|
var CascadeBackend;
|
|
21001
21021
|
var init_cascadeBackend = __esm({
|
|
21002
|
-
"
|
|
21022
|
+
"packages/orchestrator/dist/cascadeBackend.js"() {
|
|
21003
21023
|
"use strict";
|
|
21004
21024
|
init_agenticRunner();
|
|
21005
21025
|
init_nexusBackend();
|
|
@@ -21263,10 +21283,10 @@ var init_cascadeBackend = __esm({
|
|
|
21263
21283
|
}
|
|
21264
21284
|
});
|
|
21265
21285
|
|
|
21266
|
-
//
|
|
21286
|
+
// packages/orchestrator/dist/flowstatePrompt.js
|
|
21267
21287
|
var FLOWSTATE_PROMPT;
|
|
21268
21288
|
var init_flowstatePrompt = __esm({
|
|
21269
|
-
"
|
|
21289
|
+
"packages/orchestrator/dist/flowstatePrompt.js"() {
|
|
21270
21290
|
"use strict";
|
|
21271
21291
|
FLOWSTATE_PROMPT = `## FlowState Protocol (Active)
|
|
21272
21292
|
|
|
@@ -21317,10 +21337,10 @@ Constrain your context. Clarify your target. Focus your tools. Flow will follow.
|
|
|
21317
21337
|
}
|
|
21318
21338
|
});
|
|
21319
21339
|
|
|
21320
|
-
//
|
|
21340
|
+
// packages/orchestrator/dist/costTracker.js
|
|
21321
21341
|
var DEFAULT_PRICING, CostTracker;
|
|
21322
21342
|
var init_costTracker = __esm({
|
|
21323
|
-
"
|
|
21343
|
+
"packages/orchestrator/dist/costTracker.js"() {
|
|
21324
21344
|
"use strict";
|
|
21325
21345
|
DEFAULT_PRICING = [
|
|
21326
21346
|
// Cloud providers — typical pricing tiers
|
|
@@ -21468,7 +21488,7 @@ var init_costTracker = __esm({
|
|
|
21468
21488
|
}
|
|
21469
21489
|
});
|
|
21470
21490
|
|
|
21471
|
-
//
|
|
21491
|
+
// packages/orchestrator/dist/workEvaluator.js
|
|
21472
21492
|
function detectTaskType(taskDescription) {
|
|
21473
21493
|
let bestType = "general";
|
|
21474
21494
|
let bestScore = 0;
|
|
@@ -21503,7 +21523,7 @@ function buildEvaluationPrompt(task, summary, rubric) {
|
|
|
21503
21523
|
}
|
|
21504
21524
|
var RUBRICS, TASK_TYPE_PATTERNS, WorkEvaluator;
|
|
21505
21525
|
var init_workEvaluator = __esm({
|
|
21506
|
-
"
|
|
21526
|
+
"packages/orchestrator/dist/workEvaluator.js"() {
|
|
21507
21527
|
"use strict";
|
|
21508
21528
|
init_promptLoader();
|
|
21509
21529
|
RUBRICS = {
|
|
@@ -21674,10 +21694,10 @@ var init_workEvaluator = __esm({
|
|
|
21674
21694
|
}
|
|
21675
21695
|
});
|
|
21676
21696
|
|
|
21677
|
-
//
|
|
21697
|
+
// packages/orchestrator/dist/sessionMetrics.js
|
|
21678
21698
|
var SessionMetrics;
|
|
21679
21699
|
var init_sessionMetrics = __esm({
|
|
21680
|
-
"
|
|
21700
|
+
"packages/orchestrator/dist/sessionMetrics.js"() {
|
|
21681
21701
|
"use strict";
|
|
21682
21702
|
SessionMetrics = class {
|
|
21683
21703
|
sessionStart;
|
|
@@ -21774,16 +21794,16 @@ var init_sessionMetrics = __esm({
|
|
|
21774
21794
|
}
|
|
21775
21795
|
});
|
|
21776
21796
|
|
|
21777
|
-
//
|
|
21797
|
+
// packages/orchestrator/dist/taskLearning.js
|
|
21778
21798
|
var init_taskLearning = __esm({
|
|
21779
|
-
"
|
|
21799
|
+
"packages/orchestrator/dist/taskLearning.js"() {
|
|
21780
21800
|
"use strict";
|
|
21781
21801
|
}
|
|
21782
21802
|
});
|
|
21783
21803
|
|
|
21784
|
-
//
|
|
21804
|
+
// packages/orchestrator/dist/index.js
|
|
21785
21805
|
var init_dist5 = __esm({
|
|
21786
|
-
"
|
|
21806
|
+
"packages/orchestrator/dist/index.js"() {
|
|
21787
21807
|
"use strict";
|
|
21788
21808
|
init_agent_loop();
|
|
21789
21809
|
init_ralphLoop();
|
|
@@ -21807,7 +21827,7 @@ var init_dist5 = __esm({
|
|
|
21807
21827
|
}
|
|
21808
21828
|
});
|
|
21809
21829
|
|
|
21810
|
-
//
|
|
21830
|
+
// packages/cli/dist/tui/listen.js
|
|
21811
21831
|
var listen_exports = {};
|
|
21812
21832
|
__export(listen_exports, {
|
|
21813
21833
|
ListenEngine: () => ListenEngine,
|
|
@@ -21987,7 +22007,7 @@ function getListenEngine(config) {
|
|
|
21987
22007
|
}
|
|
21988
22008
|
var AUDIO_EXTENSIONS, VIDEO_EXTENSIONS, WhisperFallbackTranscriber, ListenEngine, _bgInstallPromise, _engine;
|
|
21989
22009
|
var init_listen = __esm({
|
|
21990
|
-
"
|
|
22010
|
+
"packages/cli/dist/tui/listen.js"() {
|
|
21991
22011
|
"use strict";
|
|
21992
22012
|
AUDIO_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
21993
22013
|
".mp3",
|
|
@@ -22526,9 +22546,9 @@ transcribe-cli error: ${transcribeCliError}` : "";
|
|
|
22526
22546
|
}
|
|
22527
22547
|
});
|
|
22528
22548
|
|
|
22529
|
-
//
|
|
22549
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/constants.js
|
|
22530
22550
|
var require_constants = __commonJS({
|
|
22531
|
-
"
|
|
22551
|
+
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/constants.js"(exports, module) {
|
|
22532
22552
|
"use strict";
|
|
22533
22553
|
var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
|
|
22534
22554
|
var hasBlob = typeof Blob !== "undefined";
|
|
@@ -22549,9 +22569,9 @@ var require_constants = __commonJS({
|
|
|
22549
22569
|
}
|
|
22550
22570
|
});
|
|
22551
22571
|
|
|
22552
|
-
//
|
|
22572
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/buffer-util.js
|
|
22553
22573
|
var require_buffer_util = __commonJS({
|
|
22554
|
-
"
|
|
22574
|
+
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/buffer-util.js"(exports, module) {
|
|
22555
22575
|
"use strict";
|
|
22556
22576
|
var { EMPTY_BUFFER } = require_constants();
|
|
22557
22577
|
var FastBuffer = Buffer[Symbol.species];
|
|
@@ -22624,9 +22644,9 @@ var require_buffer_util = __commonJS({
|
|
|
22624
22644
|
}
|
|
22625
22645
|
});
|
|
22626
22646
|
|
|
22627
|
-
//
|
|
22647
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/limiter.js
|
|
22628
22648
|
var require_limiter = __commonJS({
|
|
22629
|
-
"
|
|
22649
|
+
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/limiter.js"(exports, module) {
|
|
22630
22650
|
"use strict";
|
|
22631
22651
|
var kDone = /* @__PURE__ */ Symbol("kDone");
|
|
22632
22652
|
var kRun = /* @__PURE__ */ Symbol("kRun");
|
|
@@ -22674,9 +22694,9 @@ var require_limiter = __commonJS({
|
|
|
22674
22694
|
}
|
|
22675
22695
|
});
|
|
22676
22696
|
|
|
22677
|
-
//
|
|
22697
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js
|
|
22678
22698
|
var require_permessage_deflate = __commonJS({
|
|
22679
|
-
"
|
|
22699
|
+
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js"(exports, module) {
|
|
22680
22700
|
"use strict";
|
|
22681
22701
|
var zlib = __require("zlib");
|
|
22682
22702
|
var bufferUtil = require_buffer_util();
|
|
@@ -23057,9 +23077,9 @@ var require_permessage_deflate = __commonJS({
|
|
|
23057
23077
|
}
|
|
23058
23078
|
});
|
|
23059
23079
|
|
|
23060
|
-
//
|
|
23080
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/validation.js
|
|
23061
23081
|
var require_validation = __commonJS({
|
|
23062
|
-
"
|
|
23082
|
+
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/validation.js"(exports, module) {
|
|
23063
23083
|
"use strict";
|
|
23064
23084
|
var { isUtf8 } = __require("buffer");
|
|
23065
23085
|
var { hasBlob } = require_constants();
|
|
@@ -23258,9 +23278,9 @@ var require_validation = __commonJS({
|
|
|
23258
23278
|
}
|
|
23259
23279
|
});
|
|
23260
23280
|
|
|
23261
|
-
//
|
|
23281
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/receiver.js
|
|
23262
23282
|
var require_receiver = __commonJS({
|
|
23263
|
-
"
|
|
23283
|
+
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/receiver.js"(exports, module) {
|
|
23264
23284
|
"use strict";
|
|
23265
23285
|
var { Writable: Writable2 } = __require("stream");
|
|
23266
23286
|
var PerMessageDeflate = require_permessage_deflate();
|
|
@@ -23850,9 +23870,9 @@ var require_receiver = __commonJS({
|
|
|
23850
23870
|
}
|
|
23851
23871
|
});
|
|
23852
23872
|
|
|
23853
|
-
//
|
|
23873
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/sender.js
|
|
23854
23874
|
var require_sender = __commonJS({
|
|
23855
|
-
"
|
|
23875
|
+
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/sender.js"(exports, module) {
|
|
23856
23876
|
"use strict";
|
|
23857
23877
|
var { Duplex } = __require("stream");
|
|
23858
23878
|
var { randomFillSync } = __require("crypto");
|
|
@@ -24338,9 +24358,9 @@ var require_sender = __commonJS({
|
|
|
24338
24358
|
}
|
|
24339
24359
|
});
|
|
24340
24360
|
|
|
24341
|
-
//
|
|
24361
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/event-target.js
|
|
24342
24362
|
var require_event_target = __commonJS({
|
|
24343
|
-
"
|
|
24363
|
+
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/event-target.js"(exports, module) {
|
|
24344
24364
|
"use strict";
|
|
24345
24365
|
var { kForOnEventAttribute, kListener } = require_constants();
|
|
24346
24366
|
var kCode = /* @__PURE__ */ Symbol("kCode");
|
|
@@ -24567,9 +24587,9 @@ var require_event_target = __commonJS({
|
|
|
24567
24587
|
}
|
|
24568
24588
|
});
|
|
24569
24589
|
|
|
24570
|
-
//
|
|
24590
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/extension.js
|
|
24571
24591
|
var require_extension = __commonJS({
|
|
24572
|
-
"
|
|
24592
|
+
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/extension.js"(exports, module) {
|
|
24573
24593
|
"use strict";
|
|
24574
24594
|
var { tokenChars } = require_validation();
|
|
24575
24595
|
function push(dest, name, elem) {
|
|
@@ -24720,9 +24740,9 @@ var require_extension = __commonJS({
|
|
|
24720
24740
|
}
|
|
24721
24741
|
});
|
|
24722
24742
|
|
|
24723
|
-
//
|
|
24743
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket.js
|
|
24724
24744
|
var require_websocket = __commonJS({
|
|
24725
|
-
"
|
|
24745
|
+
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket.js"(exports, module) {
|
|
24726
24746
|
"use strict";
|
|
24727
24747
|
var EventEmitter7 = __require("events");
|
|
24728
24748
|
var https = __require("https");
|
|
@@ -25606,9 +25626,9 @@ var require_websocket = __commonJS({
|
|
|
25606
25626
|
}
|
|
25607
25627
|
});
|
|
25608
25628
|
|
|
25609
|
-
//
|
|
25629
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/stream.js
|
|
25610
25630
|
var require_stream = __commonJS({
|
|
25611
|
-
"
|
|
25631
|
+
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/stream.js"(exports, module) {
|
|
25612
25632
|
"use strict";
|
|
25613
25633
|
var WebSocket2 = require_websocket();
|
|
25614
25634
|
var { Duplex } = __require("stream");
|
|
@@ -25704,9 +25724,9 @@ var require_stream = __commonJS({
|
|
|
25704
25724
|
}
|
|
25705
25725
|
});
|
|
25706
25726
|
|
|
25707
|
-
//
|
|
25727
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/subprotocol.js
|
|
25708
25728
|
var require_subprotocol = __commonJS({
|
|
25709
|
-
"
|
|
25729
|
+
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/subprotocol.js"(exports, module) {
|
|
25710
25730
|
"use strict";
|
|
25711
25731
|
var { tokenChars } = require_validation();
|
|
25712
25732
|
function parse(header) {
|
|
@@ -25749,9 +25769,9 @@ var require_subprotocol = __commonJS({
|
|
|
25749
25769
|
}
|
|
25750
25770
|
});
|
|
25751
25771
|
|
|
25752
|
-
//
|
|
25772
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket-server.js
|
|
25753
25773
|
var require_websocket_server = __commonJS({
|
|
25754
|
-
"
|
|
25774
|
+
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/lib/websocket-server.js"(exports, module) {
|
|
25755
25775
|
"use strict";
|
|
25756
25776
|
var EventEmitter7 = __require("events");
|
|
25757
25777
|
var http = __require("http");
|
|
@@ -26142,10 +26162,10 @@ var require_websocket_server = __commonJS({
|
|
|
26142
26162
|
}
|
|
26143
26163
|
});
|
|
26144
26164
|
|
|
26145
|
-
//
|
|
26165
|
+
// node_modules/.pnpm/ws@8.19.0/node_modules/ws/wrapper.mjs
|
|
26146
26166
|
var import_stream, import_receiver, import_sender, import_websocket, import_websocket_server;
|
|
26147
26167
|
var init_wrapper = __esm({
|
|
26148
|
-
"
|
|
26168
|
+
"node_modules/.pnpm/ws@8.19.0/node_modules/ws/wrapper.mjs"() {
|
|
26149
26169
|
import_stream = __toESM(require_stream(), 1);
|
|
26150
26170
|
import_receiver = __toESM(require_receiver(), 1);
|
|
26151
26171
|
import_sender = __toESM(require_sender(), 1);
|
|
@@ -26154,7 +26174,7 @@ var init_wrapper = __esm({
|
|
|
26154
26174
|
}
|
|
26155
26175
|
});
|
|
26156
26176
|
|
|
26157
|
-
//
|
|
26177
|
+
// packages/cli/dist/tui/render.js
|
|
26158
26178
|
function ansi2(code, text) {
|
|
26159
26179
|
return isTTY2 ? `\x1B[${code}m${text}\x1B[0m` : text;
|
|
26160
26180
|
}
|
|
@@ -26835,7 +26855,7 @@ function formatDuration2(ms) {
|
|
|
26835
26855
|
}
|
|
26836
26856
|
var isTTY2, c2, pastel, _emojisEnabled, _colorsEnabled, MD, TOOL_ICONS, TOOL_LABELS, TOOL_COLORS, _contentWriteHook, HINTS, TOOL_NAMES, COMMAND_NAMES;
|
|
26837
26857
|
var init_render = __esm({
|
|
26838
|
-
"
|
|
26858
|
+
"packages/cli/dist/tui/render.js"() {
|
|
26839
26859
|
"use strict";
|
|
26840
26860
|
isTTY2 = process.stdout.isTTY ?? false;
|
|
26841
26861
|
c2 = {
|
|
@@ -27060,7 +27080,7 @@ var init_render = __esm({
|
|
|
27060
27080
|
}
|
|
27061
27081
|
});
|
|
27062
27082
|
|
|
27063
|
-
//
|
|
27083
|
+
// packages/cli/dist/tui/voice-session.js
|
|
27064
27084
|
import { createServer } from "node:http";
|
|
27065
27085
|
import { spawn as spawn15, execSync as execSync24 } from "node:child_process";
|
|
27066
27086
|
import { EventEmitter as EventEmitter2 } from "node:events";
|
|
@@ -27441,7 +27461,7 @@ function renderVoiceSessionTranscript(speaker, text) {
|
|
|
27441
27461
|
}
|
|
27442
27462
|
var VoiceSession;
|
|
27443
27463
|
var init_voice_session = __esm({
|
|
27444
|
-
"
|
|
27464
|
+
"packages/cli/dist/tui/voice-session.js"() {
|
|
27445
27465
|
"use strict";
|
|
27446
27466
|
init_wrapper();
|
|
27447
27467
|
init_render();
|
|
@@ -27788,7 +27808,7 @@ var init_voice_session = __esm({
|
|
|
27788
27808
|
}
|
|
27789
27809
|
});
|
|
27790
27810
|
|
|
27791
|
-
//
|
|
27811
|
+
// packages/cli/dist/tui/expose.js
|
|
27792
27812
|
import { createServer as createServer2, request as httpRequest } from "node:http";
|
|
27793
27813
|
import { spawn as spawn16, exec } from "node:child_process";
|
|
27794
27814
|
import { EventEmitter as EventEmitter3 } from "node:events";
|
|
@@ -27961,7 +27981,7 @@ function removeP2PExposeState(stateDir) {
|
|
|
27961
27981
|
}
|
|
27962
27982
|
var HOP_BY_HOP_HEADERS, CF_HEADERS_PREFIX, INTERNAL_CAPABILITIES, DEFAULT_TARGETS, STATE_FILE_NAME, ExposeGateway, P2P_STATE_FILE_NAME, ExposeP2PGateway;
|
|
27963
27983
|
var init_expose = __esm({
|
|
27964
|
-
"
|
|
27984
|
+
"packages/cli/dist/tui/expose.js"() {
|
|
27965
27985
|
"use strict";
|
|
27966
27986
|
init_render();
|
|
27967
27987
|
HOP_BY_HOP_HEADERS = /* @__PURE__ */ new Set([
|
|
@@ -29108,25 +29128,25 @@ ${this.formatConnectionInfo()}`);
|
|
|
29108
29128
|
}
|
|
29109
29129
|
});
|
|
29110
29130
|
|
|
29111
|
-
//
|
|
29131
|
+
// packages/cli/dist/tui/p2p/types.js
|
|
29112
29132
|
function trustLevel(tier) {
|
|
29113
29133
|
return TRUST_ORDER.indexOf(tier);
|
|
29114
29134
|
}
|
|
29115
29135
|
var TRUST_ORDER;
|
|
29116
29136
|
var init_types = __esm({
|
|
29117
|
-
"
|
|
29137
|
+
"packages/cli/dist/tui/p2p/types.js"() {
|
|
29118
29138
|
"use strict";
|
|
29119
29139
|
TRUST_ORDER = ["public", "verified", "tee", "local"];
|
|
29120
29140
|
}
|
|
29121
29141
|
});
|
|
29122
29142
|
|
|
29123
|
-
//
|
|
29143
|
+
// packages/cli/dist/tui/p2p/secret-vault.js
|
|
29124
29144
|
import { createCipheriv as createCipheriv2, createDecipheriv as createDecipheriv2, randomBytes as randomBytes8, scryptSync as scryptSync2, createHash as createHash2 } from "node:crypto";
|
|
29125
29145
|
import { readFileSync as readFileSync20, writeFileSync as writeFileSync10, existsSync as existsSync28, mkdirSync as mkdirSync10 } from "node:fs";
|
|
29126
29146
|
import { join as join36, dirname as dirname14 } from "node:path";
|
|
29127
29147
|
var PLACEHOLDER_PREFIX, PLACEHOLDER_SUFFIX, CIPHER_ALGO, SALT_LEN, IV_LEN, KEY_LEN, SecretVault;
|
|
29128
29148
|
var init_secret_vault = __esm({
|
|
29129
|
-
"
|
|
29149
|
+
"packages/cli/dist/tui/p2p/secret-vault.js"() {
|
|
29130
29150
|
"use strict";
|
|
29131
29151
|
init_types();
|
|
29132
29152
|
PLACEHOLDER_PREFIX = "{{OA_VAR_";
|
|
@@ -29384,13 +29404,13 @@ var init_secret_vault = __esm({
|
|
|
29384
29404
|
}
|
|
29385
29405
|
});
|
|
29386
29406
|
|
|
29387
|
-
//
|
|
29407
|
+
// packages/cli/dist/tui/p2p/peer-mesh.js
|
|
29388
29408
|
import { EventEmitter as EventEmitter4 } from "node:events";
|
|
29389
29409
|
import { createServer as createServer3 } from "node:http";
|
|
29390
29410
|
import { randomBytes as randomBytes9, createHash as createHash3, generateKeyPairSync } from "node:crypto";
|
|
29391
29411
|
var PING_INTERVAL_MS, PEER_TIMEOUT_MS, GOSSIP_INTERVAL_MS, MAX_PEERS, PeerMesh;
|
|
29392
29412
|
var init_peer_mesh = __esm({
|
|
29393
|
-
"
|
|
29413
|
+
"packages/cli/dist/tui/p2p/peer-mesh.js"() {
|
|
29394
29414
|
"use strict";
|
|
29395
29415
|
init_wrapper();
|
|
29396
29416
|
PING_INTERVAL_MS = 3e4;
|
|
@@ -29849,11 +29869,11 @@ var init_peer_mesh = __esm({
|
|
|
29849
29869
|
}
|
|
29850
29870
|
});
|
|
29851
29871
|
|
|
29852
|
-
//
|
|
29872
|
+
// packages/cli/dist/tui/p2p/inference-router.js
|
|
29853
29873
|
import { EventEmitter as EventEmitter5 } from "node:events";
|
|
29854
29874
|
var TRUST_WEIGHTS, InferenceRouter;
|
|
29855
29875
|
var init_inference_router = __esm({
|
|
29856
|
-
"
|
|
29876
|
+
"packages/cli/dist/tui/p2p/inference-router.js"() {
|
|
29857
29877
|
"use strict";
|
|
29858
29878
|
init_types();
|
|
29859
29879
|
TRUST_WEIGHTS = {
|
|
@@ -30047,9 +30067,9 @@ var init_inference_router = __esm({
|
|
|
30047
30067
|
}
|
|
30048
30068
|
});
|
|
30049
30069
|
|
|
30050
|
-
//
|
|
30070
|
+
// packages/cli/dist/tui/p2p/index.js
|
|
30051
30071
|
var init_p2p = __esm({
|
|
30052
|
-
"
|
|
30072
|
+
"packages/cli/dist/tui/p2p/index.js"() {
|
|
30053
30073
|
"use strict";
|
|
30054
30074
|
init_secret_vault();
|
|
30055
30075
|
init_peer_mesh();
|
|
@@ -30058,7 +30078,7 @@ var init_p2p = __esm({
|
|
|
30058
30078
|
}
|
|
30059
30079
|
});
|
|
30060
30080
|
|
|
30061
|
-
//
|
|
30081
|
+
// packages/cli/dist/tui/call-agent.js
|
|
30062
30082
|
import { EventEmitter as EventEmitter6 } from "node:events";
|
|
30063
30083
|
import crypto2 from "node:crypto";
|
|
30064
30084
|
function adaptTool(tool) {
|
|
@@ -30082,7 +30102,7 @@ function generateSessionKey() {
|
|
|
30082
30102
|
}
|
|
30083
30103
|
var ActivityFeed, _globalFeed, CallSubAgent;
|
|
30084
30104
|
var init_call_agent = __esm({
|
|
30085
|
-
"
|
|
30105
|
+
"packages/cli/dist/tui/call-agent.js"() {
|
|
30086
30106
|
"use strict";
|
|
30087
30107
|
init_dist5();
|
|
30088
30108
|
init_dist2();
|
|
@@ -30340,7 +30360,7 @@ ${activitySummary}
|
|
|
30340
30360
|
}
|
|
30341
30361
|
});
|
|
30342
30362
|
|
|
30343
|
-
//
|
|
30363
|
+
// packages/cli/dist/tui/model-picker.js
|
|
30344
30364
|
async function fetchOllamaModels(baseUrl) {
|
|
30345
30365
|
const url = `${normalizeBaseUrl(baseUrl)}/api/tags`;
|
|
30346
30366
|
const resp = await fetch(url, {
|
|
@@ -30742,27 +30762,27 @@ function formatRelativeTime(iso) {
|
|
|
30742
30762
|
return `${months}mo ago`;
|
|
30743
30763
|
}
|
|
30744
30764
|
var init_model_picker = __esm({
|
|
30745
|
-
"
|
|
30765
|
+
"packages/cli/dist/tui/model-picker.js"() {
|
|
30746
30766
|
"use strict";
|
|
30747
30767
|
init_dist();
|
|
30748
30768
|
}
|
|
30749
30769
|
});
|
|
30750
30770
|
|
|
30751
|
-
//
|
|
30771
|
+
// packages/prompts/dist/loader.js
|
|
30752
30772
|
var init_loader = __esm({
|
|
30753
|
-
"
|
|
30773
|
+
"packages/prompts/dist/loader.js"() {
|
|
30754
30774
|
"use strict";
|
|
30755
30775
|
}
|
|
30756
30776
|
});
|
|
30757
30777
|
|
|
30758
|
-
//
|
|
30778
|
+
// packages/prompts/dist/render.js
|
|
30759
30779
|
var init_render2 = __esm({
|
|
30760
|
-
"
|
|
30780
|
+
"packages/prompts/dist/render.js"() {
|
|
30761
30781
|
"use strict";
|
|
30762
30782
|
}
|
|
30763
30783
|
});
|
|
30764
30784
|
|
|
30765
|
-
//
|
|
30785
|
+
// packages/prompts/dist/promptLoader.js
|
|
30766
30786
|
import { readFileSync as readFileSync21, existsSync as existsSync29 } from "node:fs";
|
|
30767
30787
|
import { join as join37, dirname as dirname15 } from "node:path";
|
|
30768
30788
|
import { fileURLToPath as fileURLToPath9 } from "node:url";
|
|
@@ -30782,7 +30802,7 @@ function loadPrompt2(promptPath, vars) {
|
|
|
30782
30802
|
}
|
|
30783
30803
|
var __filename2, __dirname5, devPath, publishedPath, PROMPTS_DIR2, cache2;
|
|
30784
30804
|
var init_promptLoader2 = __esm({
|
|
30785
|
-
"
|
|
30805
|
+
"packages/prompts/dist/promptLoader.js"() {
|
|
30786
30806
|
"use strict";
|
|
30787
30807
|
__filename2 = fileURLToPath9(import.meta.url);
|
|
30788
30808
|
__dirname5 = dirname15(__filename2);
|
|
@@ -30793,7 +30813,7 @@ var init_promptLoader2 = __esm({
|
|
|
30793
30813
|
}
|
|
30794
30814
|
});
|
|
30795
30815
|
|
|
30796
|
-
//
|
|
30816
|
+
// packages/prompts/dist/task-templates.js
|
|
30797
30817
|
function getTaskTemplate(type) {
|
|
30798
30818
|
return TEMPLATES[type];
|
|
30799
30819
|
}
|
|
@@ -30809,7 +30829,7 @@ ${template.outputGuidance}`;
|
|
|
30809
30829
|
}
|
|
30810
30830
|
var TEMPLATES;
|
|
30811
30831
|
var init_task_templates = __esm({
|
|
30812
|
-
"
|
|
30832
|
+
"packages/prompts/dist/task-templates.js"() {
|
|
30813
30833
|
"use strict";
|
|
30814
30834
|
init_promptLoader2();
|
|
30815
30835
|
TEMPLATES = {
|
|
@@ -30898,12 +30918,12 @@ var init_task_templates = __esm({
|
|
|
30898
30918
|
}
|
|
30899
30919
|
});
|
|
30900
30920
|
|
|
30901
|
-
//
|
|
30921
|
+
// packages/prompts/dist/index.js
|
|
30902
30922
|
import { join as join38, dirname as dirname16 } from "node:path";
|
|
30903
30923
|
import { fileURLToPath as fileURLToPath10 } from "node:url";
|
|
30904
30924
|
var _dir, _packageRoot;
|
|
30905
30925
|
var init_dist6 = __esm({
|
|
30906
|
-
"
|
|
30926
|
+
"packages/prompts/dist/index.js"() {
|
|
30907
30927
|
"use strict";
|
|
30908
30928
|
init_loader();
|
|
30909
30929
|
init_render2();
|
|
@@ -30914,7 +30934,7 @@ var init_dist6 = __esm({
|
|
|
30914
30934
|
}
|
|
30915
30935
|
});
|
|
30916
30936
|
|
|
30917
|
-
//
|
|
30937
|
+
// packages/cli/dist/tui/oa-directory.js
|
|
30918
30938
|
import { existsSync as existsSync30, mkdirSync as mkdirSync11, readFileSync as readFileSync22, writeFileSync as writeFileSync11, readdirSync as readdirSync8, statSync as statSync9, unlinkSync as unlinkSync4 } from "node:fs";
|
|
30919
30939
|
import { join as join39, relative as relative2, basename as basename9, extname as extname8 } from "node:path";
|
|
30920
30940
|
import { homedir as homedir9 } from "node:os";
|
|
@@ -31376,7 +31396,7 @@ function deleteUsageRecord(kind, value, repoRoot) {
|
|
|
31376
31396
|
}
|
|
31377
31397
|
var OA_DIR, SUBDIRS, CONTEXT_FILES, PENDING_TASK_FILE, CONTEXT_SAVE_FILE, MAX_CONTEXT_ENTRIES, SKIP_DIRS, USAGE_HISTORY_FILE, MAX_HISTORY_RECORDS;
|
|
31378
31398
|
var init_oa_directory = __esm({
|
|
31379
|
-
"
|
|
31399
|
+
"packages/cli/dist/tui/oa-directory.js"() {
|
|
31380
31400
|
"use strict";
|
|
31381
31401
|
OA_DIR = ".oa";
|
|
31382
31402
|
SUBDIRS = ["memory", "index", "context", "history", "notes", "embedded", "provenance", "tools", "dreams"];
|
|
@@ -31417,7 +31437,7 @@ var init_oa_directory = __esm({
|
|
|
31417
31437
|
}
|
|
31418
31438
|
});
|
|
31419
31439
|
|
|
31420
|
-
//
|
|
31440
|
+
// packages/cli/dist/tui/setup.js
|
|
31421
31441
|
import * as readline from "node:readline";
|
|
31422
31442
|
import { execSync as execSync25, spawn as spawn17, exec as exec2 } from "node:child_process";
|
|
31423
31443
|
import { promisify as promisify5 } from "node:util";
|
|
@@ -32946,7 +32966,7 @@ async function ensureExpandedContext(modelName, backendUrl) {
|
|
|
32946
32966
|
}
|
|
32947
32967
|
var execAsync, QWEN_VARIANTS, TOOL_CALLING_MODELS, _cloudflaredInstallPromise;
|
|
32948
32968
|
var init_setup = __esm({
|
|
32949
|
-
"
|
|
32969
|
+
"packages/cli/dist/tui/setup.js"() {
|
|
32950
32970
|
"use strict";
|
|
32951
32971
|
init_model_picker();
|
|
32952
32972
|
init_render();
|
|
@@ -32981,7 +33001,7 @@ var init_setup = __esm({
|
|
|
32981
33001
|
}
|
|
32982
33002
|
});
|
|
32983
33003
|
|
|
32984
|
-
//
|
|
33004
|
+
// packages/cli/dist/tui/tui-select.js
|
|
32985
33005
|
function ansi3(code, text) {
|
|
32986
33006
|
return isTTY3 ? `\x1B[${code}m${text}\x1B[0m` : text;
|
|
32987
33007
|
}
|
|
@@ -33350,7 +33370,7 @@ function tuiSelect(opts) {
|
|
|
33350
33370
|
}
|
|
33351
33371
|
var isTTY3, selectColors;
|
|
33352
33372
|
var init_tui_select = __esm({
|
|
33353
|
-
"
|
|
33373
|
+
"packages/cli/dist/tui/tui-select.js"() {
|
|
33354
33374
|
"use strict";
|
|
33355
33375
|
isTTY3 = process.stdout.isTTY ?? false;
|
|
33356
33376
|
selectColors = {
|
|
@@ -33367,7 +33387,7 @@ var init_tui_select = __esm({
|
|
|
33367
33387
|
}
|
|
33368
33388
|
});
|
|
33369
33389
|
|
|
33370
|
-
//
|
|
33390
|
+
// packages/cli/dist/tui/commands.js
|
|
33371
33391
|
async function handleSlashCommand(input, ctx) {
|
|
33372
33392
|
const trimmed = input.trim();
|
|
33373
33393
|
if (!trimmed.startsWith("/"))
|
|
@@ -35768,7 +35788,7 @@ async function showExposeDashboard(gateway, rl) {
|
|
|
35768
35788
|
}
|
|
35769
35789
|
var DASH_INTERNAL;
|
|
35770
35790
|
var init_commands = __esm({
|
|
35771
|
-
"
|
|
35791
|
+
"packages/cli/dist/tui/commands.js"() {
|
|
35772
35792
|
"use strict";
|
|
35773
35793
|
init_model_picker();
|
|
35774
35794
|
init_render();
|
|
@@ -35786,7 +35806,7 @@ var init_commands = __esm({
|
|
|
35786
35806
|
}
|
|
35787
35807
|
});
|
|
35788
35808
|
|
|
35789
|
-
//
|
|
35809
|
+
// packages/cli/dist/tui/project-context.js
|
|
35790
35810
|
import { existsSync as existsSync32, readFileSync as readFileSync23, readdirSync as readdirSync9 } from "node:fs";
|
|
35791
35811
|
import { join as join41, basename as basename10 } from "node:path";
|
|
35792
35812
|
import { execSync as execSync26 } from "node:child_process";
|
|
@@ -36091,14 +36111,14 @@ These patterns have been repeated 3+ times. Consider using create_tool to automa
|
|
|
36091
36111
|
return sections.join("\n\n");
|
|
36092
36112
|
}
|
|
36093
36113
|
var init_project_context = __esm({
|
|
36094
|
-
"
|
|
36114
|
+
"packages/cli/dist/tui/project-context.js"() {
|
|
36095
36115
|
"use strict";
|
|
36096
36116
|
init_oa_directory();
|
|
36097
36117
|
init_dist2();
|
|
36098
36118
|
}
|
|
36099
36119
|
});
|
|
36100
36120
|
|
|
36101
|
-
//
|
|
36121
|
+
// packages/memory/dist/db.js
|
|
36102
36122
|
import Database from "better-sqlite3";
|
|
36103
36123
|
function initDb(dbPath) {
|
|
36104
36124
|
const db = new Database(dbPath);
|
|
@@ -36253,26 +36273,26 @@ function runMigrations(db) {
|
|
|
36253
36273
|
`);
|
|
36254
36274
|
}
|
|
36255
36275
|
var init_db = __esm({
|
|
36256
|
-
"
|
|
36276
|
+
"packages/memory/dist/db.js"() {
|
|
36257
36277
|
"use strict";
|
|
36258
36278
|
}
|
|
36259
36279
|
});
|
|
36260
36280
|
|
|
36261
|
-
//
|
|
36281
|
+
// packages/memory/dist/repoProfileStore.js
|
|
36262
36282
|
var init_repoProfileStore = __esm({
|
|
36263
|
-
"
|
|
36283
|
+
"packages/memory/dist/repoProfileStore.js"() {
|
|
36264
36284
|
"use strict";
|
|
36265
36285
|
}
|
|
36266
36286
|
});
|
|
36267
36287
|
|
|
36268
|
-
//
|
|
36288
|
+
// packages/memory/dist/fileSummaryStore.js
|
|
36269
36289
|
var init_fileSummaryStore = __esm({
|
|
36270
|
-
"
|
|
36290
|
+
"packages/memory/dist/fileSummaryStore.js"() {
|
|
36271
36291
|
"use strict";
|
|
36272
36292
|
}
|
|
36273
36293
|
});
|
|
36274
36294
|
|
|
36275
|
-
//
|
|
36295
|
+
// packages/memory/dist/taskMemoryStore.js
|
|
36276
36296
|
import { randomUUID } from "node:crypto";
|
|
36277
36297
|
function rowToTask(row) {
|
|
36278
36298
|
return {
|
|
@@ -36291,7 +36311,7 @@ function rowToTask(row) {
|
|
|
36291
36311
|
}
|
|
36292
36312
|
var TaskMemoryStore;
|
|
36293
36313
|
var init_taskMemoryStore = __esm({
|
|
36294
|
-
"
|
|
36314
|
+
"packages/memory/dist/taskMemoryStore.js"() {
|
|
36295
36315
|
"use strict";
|
|
36296
36316
|
TaskMemoryStore = class {
|
|
36297
36317
|
db;
|
|
@@ -36342,14 +36362,14 @@ var init_taskMemoryStore = __esm({
|
|
|
36342
36362
|
}
|
|
36343
36363
|
});
|
|
36344
36364
|
|
|
36345
|
-
//
|
|
36365
|
+
// packages/memory/dist/patchHistoryStore.js
|
|
36346
36366
|
var init_patchHistoryStore = __esm({
|
|
36347
|
-
"
|
|
36367
|
+
"packages/memory/dist/patchHistoryStore.js"() {
|
|
36348
36368
|
"use strict";
|
|
36349
36369
|
}
|
|
36350
36370
|
});
|
|
36351
36371
|
|
|
36352
|
-
//
|
|
36372
|
+
// packages/memory/dist/failureStore.js
|
|
36353
36373
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
36354
36374
|
function rowToFailure(row) {
|
|
36355
36375
|
return {
|
|
@@ -36370,7 +36390,7 @@ function rowToFailure(row) {
|
|
|
36370
36390
|
}
|
|
36371
36391
|
var FailureStore;
|
|
36372
36392
|
var init_failureStore = __esm({
|
|
36373
|
-
"
|
|
36393
|
+
"packages/memory/dist/failureStore.js"() {
|
|
36374
36394
|
"use strict";
|
|
36375
36395
|
FailureStore = class {
|
|
36376
36396
|
db;
|
|
@@ -36425,18 +36445,18 @@ var init_failureStore = __esm({
|
|
|
36425
36445
|
}
|
|
36426
36446
|
});
|
|
36427
36447
|
|
|
36428
|
-
//
|
|
36448
|
+
// packages/memory/dist/validationStore.js
|
|
36429
36449
|
var init_validationStore = __esm({
|
|
36430
|
-
"
|
|
36450
|
+
"packages/memory/dist/validationStore.js"() {
|
|
36431
36451
|
"use strict";
|
|
36432
36452
|
}
|
|
36433
36453
|
});
|
|
36434
36454
|
|
|
36435
|
-
//
|
|
36455
|
+
// packages/memory/dist/toolPatternStore.js
|
|
36436
36456
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
36437
36457
|
var ToolPatternStore;
|
|
36438
36458
|
var init_toolPatternStore = __esm({
|
|
36439
|
-
"
|
|
36459
|
+
"packages/memory/dist/toolPatternStore.js"() {
|
|
36440
36460
|
"use strict";
|
|
36441
36461
|
ToolPatternStore = class {
|
|
36442
36462
|
db;
|
|
@@ -36615,9 +36635,9 @@ var init_toolPatternStore = __esm({
|
|
|
36615
36635
|
}
|
|
36616
36636
|
});
|
|
36617
36637
|
|
|
36618
|
-
//
|
|
36638
|
+
// packages/memory/dist/index.js
|
|
36619
36639
|
var init_dist7 = __esm({
|
|
36620
|
-
"
|
|
36640
|
+
"packages/memory/dist/index.js"() {
|
|
36621
36641
|
"use strict";
|
|
36622
36642
|
init_db();
|
|
36623
36643
|
init_repoProfileStore();
|
|
@@ -36630,7 +36650,7 @@ var init_dist7 = __esm({
|
|
|
36630
36650
|
}
|
|
36631
36651
|
});
|
|
36632
36652
|
|
|
36633
|
-
//
|
|
36653
|
+
// packages/cli/dist/tui/carousel.js
|
|
36634
36654
|
function fg(code, text) {
|
|
36635
36655
|
return isTTY4 ? `\x1B[38;5;${code}m${text}\x1B[0m` : text;
|
|
36636
36656
|
}
|
|
@@ -36672,7 +36692,7 @@ function createRow(phraseIndices, speed, direction, bank) {
|
|
|
36672
36692
|
}
|
|
36673
36693
|
var isTTY4, PHRASES, Carousel;
|
|
36674
36694
|
var init_carousel = __esm({
|
|
36675
|
-
"
|
|
36695
|
+
"packages/cli/dist/tui/carousel.js"() {
|
|
36676
36696
|
"use strict";
|
|
36677
36697
|
isTTY4 = process.stdout.isTTY ?? false;
|
|
36678
36698
|
PHRASES = [
|
|
@@ -36913,7 +36933,7 @@ var init_carousel = __esm({
|
|
|
36913
36933
|
}
|
|
36914
36934
|
});
|
|
36915
36935
|
|
|
36916
|
-
//
|
|
36936
|
+
// packages/cli/dist/tui/carousel-descriptors.js
|
|
36917
36937
|
import { existsSync as existsSync33, readFileSync as readFileSync24, writeFileSync as writeFileSync13, mkdirSync as mkdirSync13, readdirSync as readdirSync10 } from "node:fs";
|
|
36918
36938
|
import { join as join42, basename as basename11 } from "node:path";
|
|
36919
36939
|
function loadToolProfile(repoRoot) {
|
|
@@ -37160,7 +37180,7 @@ function extractFromToolProfile(profile, tags) {
|
|
|
37160
37180
|
}
|
|
37161
37181
|
var TOOL_CATEGORIES, TOOL_PROFILE_FILE, DESCRIPTOR_FILE, CATEGORY_LABELS, STOP_WORDS;
|
|
37162
37182
|
var init_carousel_descriptors = __esm({
|
|
37163
|
-
"
|
|
37183
|
+
"packages/cli/dist/tui/carousel-descriptors.js"() {
|
|
37164
37184
|
"use strict";
|
|
37165
37185
|
init_oa_directory();
|
|
37166
37186
|
TOOL_CATEGORIES = [
|
|
@@ -37266,7 +37286,7 @@ var init_carousel_descriptors = __esm({
|
|
|
37266
37286
|
}
|
|
37267
37287
|
});
|
|
37268
37288
|
|
|
37269
|
-
//
|
|
37289
|
+
// packages/cli/dist/tui/voice.js
|
|
37270
37290
|
import { existsSync as existsSync34, mkdirSync as mkdirSync14, writeFileSync as writeFileSync14, readFileSync as readFileSync25, unlinkSync as unlinkSync5 } from "node:fs";
|
|
37271
37291
|
import { join as join43 } from "node:path";
|
|
37272
37292
|
import { homedir as homedir12, tmpdir as tmpdir6, platform as platform3 } from "node:os";
|
|
@@ -37924,7 +37944,7 @@ function formatBytes2(bytes) {
|
|
|
37924
37944
|
}
|
|
37925
37945
|
var VOICE_MODELS, VoiceEngine, RING_BUFFER_SIZE, narration;
|
|
37926
37946
|
var init_voice = __esm({
|
|
37927
|
-
"
|
|
37947
|
+
"packages/cli/dist/tui/voice.js"() {
|
|
37928
37948
|
"use strict";
|
|
37929
37949
|
init_render();
|
|
37930
37950
|
VOICE_MODELS = {
|
|
@@ -39321,7 +39341,7 @@ Error: ${err instanceof Error ? err.message : String(err)}`);
|
|
|
39321
39341
|
}
|
|
39322
39342
|
});
|
|
39323
39343
|
|
|
39324
|
-
//
|
|
39344
|
+
// packages/cli/dist/tui/stream-renderer.js
|
|
39325
39345
|
function fg2563(code, text) {
|
|
39326
39346
|
return isTTY5 ? `\x1B[38;5;${code}m${text}\x1B[0m` : text;
|
|
39327
39347
|
}
|
|
@@ -39339,7 +39359,7 @@ function boldText(text) {
|
|
|
39339
39359
|
}
|
|
39340
39360
|
var isTTY5, PASTEL, StreamRenderer;
|
|
39341
39361
|
var init_stream_renderer = __esm({
|
|
39342
|
-
"
|
|
39362
|
+
"packages/cli/dist/tui/stream-renderer.js"() {
|
|
39343
39363
|
"use strict";
|
|
39344
39364
|
isTTY5 = process.stdout.isTTY ?? false;
|
|
39345
39365
|
PASTEL = {
|
|
@@ -39808,7 +39828,7 @@ var init_stream_renderer = __esm({
|
|
|
39808
39828
|
}
|
|
39809
39829
|
});
|
|
39810
39830
|
|
|
39811
|
-
//
|
|
39831
|
+
// packages/cli/dist/tui/edit-history.js
|
|
39812
39832
|
import { appendFileSync as appendFileSync2, mkdirSync as mkdirSync15 } from "node:fs";
|
|
39813
39833
|
import { join as join44 } from "node:path";
|
|
39814
39834
|
function createEditHistoryLogger(repoRoot, sessionId) {
|
|
@@ -39912,7 +39932,7 @@ function sanitizeArgs(tool, args) {
|
|
|
39912
39932
|
}
|
|
39913
39933
|
var EDIT_TOOLS;
|
|
39914
39934
|
var init_edit_history = __esm({
|
|
39915
|
-
"
|
|
39935
|
+
"packages/cli/dist/tui/edit-history.js"() {
|
|
39916
39936
|
"use strict";
|
|
39917
39937
|
EDIT_TOOLS = /* @__PURE__ */ new Set([
|
|
39918
39938
|
"file_edit",
|
|
@@ -39923,7 +39943,7 @@ var init_edit_history = __esm({
|
|
|
39923
39943
|
}
|
|
39924
39944
|
});
|
|
39925
39945
|
|
|
39926
|
-
//
|
|
39946
|
+
// packages/cli/dist/tui/promptLoader.js
|
|
39927
39947
|
import { readFileSync as readFileSync26, existsSync as existsSync35 } from "node:fs";
|
|
39928
39948
|
import { join as join45, dirname as dirname17 } from "node:path";
|
|
39929
39949
|
import { fileURLToPath as fileURLToPath11 } from "node:url";
|
|
@@ -39943,7 +39963,7 @@ function loadPrompt3(promptPath, vars) {
|
|
|
39943
39963
|
}
|
|
39944
39964
|
var __filename3, __dirname6, devPath2, publishedPath2, PROMPTS_DIR3, cache3;
|
|
39945
39965
|
var init_promptLoader3 = __esm({
|
|
39946
|
-
"
|
|
39966
|
+
"packages/cli/dist/tui/promptLoader.js"() {
|
|
39947
39967
|
"use strict";
|
|
39948
39968
|
__filename3 = fileURLToPath11(import.meta.url);
|
|
39949
39969
|
__dirname6 = dirname17(__filename3);
|
|
@@ -39954,7 +39974,7 @@ var init_promptLoader3 = __esm({
|
|
|
39954
39974
|
}
|
|
39955
39975
|
});
|
|
39956
39976
|
|
|
39957
|
-
//
|
|
39977
|
+
// packages/cli/dist/tui/dream-engine.js
|
|
39958
39978
|
import { mkdirSync as mkdirSync16, writeFileSync as writeFileSync15, readFileSync as readFileSync27, existsSync as existsSync36, cpSync, rmSync, readdirSync as readdirSync11 } from "node:fs";
|
|
39959
39979
|
import { join as join46, basename as basename12 } from "node:path";
|
|
39960
39980
|
import { execSync as execSync28 } from "node:child_process";
|
|
@@ -40117,7 +40137,7 @@ function renderSwarmComplete(workspace) {
|
|
|
40117
40137
|
}
|
|
40118
40138
|
var SWARM_ROLE_CONFIG, AutoresearchFileWriteTool, AutoresearchFileEditTool, AUTORESEARCH_MEMORY_KEYS, SLEEP_STAGES, DreamFileWriteTool, DreamFileEditTool, DreamShellTool, DreamEngine;
|
|
40119
40139
|
var init_dream_engine = __esm({
|
|
40120
|
-
"
|
|
40140
|
+
"packages/cli/dist/tui/dream-engine.js"() {
|
|
40121
40141
|
"use strict";
|
|
40122
40142
|
init_dist5();
|
|
40123
40143
|
init_dist2();
|
|
@@ -41197,7 +41217,7 @@ ${files.map((f) => `- [\`${f}\`](./${f})`).join("\n")}
|
|
|
41197
41217
|
}
|
|
41198
41218
|
});
|
|
41199
41219
|
|
|
41200
|
-
//
|
|
41220
|
+
// packages/cli/dist/tui/priority-ingress.js
|
|
41201
41221
|
function classifyPriority(prompt, source, origin) {
|
|
41202
41222
|
for (const rule of CLASSIFICATION_RULES) {
|
|
41203
41223
|
if (rule.sourceType !== "any" && rule.sourceType !== source)
|
|
@@ -41222,7 +41242,7 @@ function classifyPriority(prompt, source, origin) {
|
|
|
41222
41242
|
}
|
|
41223
41243
|
var PRIORITY_WEIGHT, PRIORITY_POLICIES, CLASSIFICATION_RULES, PriorityIngressEngine;
|
|
41224
41244
|
var init_priority_ingress = __esm({
|
|
41225
|
-
"
|
|
41245
|
+
"packages/cli/dist/tui/priority-ingress.js"() {
|
|
41226
41246
|
"use strict";
|
|
41227
41247
|
PRIORITY_WEIGHT = {
|
|
41228
41248
|
critical: 100,
|
|
@@ -41407,7 +41427,7 @@ var init_priority_ingress = __esm({
|
|
|
41407
41427
|
}
|
|
41408
41428
|
});
|
|
41409
41429
|
|
|
41410
|
-
//
|
|
41430
|
+
// packages/cli/dist/tui/bless-engine.js
|
|
41411
41431
|
function renderBlessStart() {
|
|
41412
41432
|
process.stdout.write(`
|
|
41413
41433
|
${c2.green("\u26A1")} ${c2.bold("BLESSED")} \u2014 Infinite warm loop activated
|
|
@@ -41431,7 +41451,7 @@ function renderBlessStop(state) {
|
|
|
41431
41451
|
}
|
|
41432
41452
|
var BlessEngine;
|
|
41433
41453
|
var init_bless_engine = __esm({
|
|
41434
|
-
"
|
|
41454
|
+
"packages/cli/dist/tui/bless-engine.js"() {
|
|
41435
41455
|
"use strict";
|
|
41436
41456
|
init_render();
|
|
41437
41457
|
init_dist2();
|
|
@@ -41562,7 +41582,7 @@ var init_bless_engine = __esm({
|
|
|
41562
41582
|
}
|
|
41563
41583
|
});
|
|
41564
41584
|
|
|
41565
|
-
//
|
|
41585
|
+
// packages/cli/dist/tui/dmn-engine.js
|
|
41566
41586
|
import { existsSync as existsSync37, readFileSync as readFileSync28, writeFileSync as writeFileSync16, mkdirSync as mkdirSync17, readdirSync as readdirSync12, unlinkSync as unlinkSync6 } from "node:fs";
|
|
41567
41587
|
import { join as join47, basename as basename13 } from "node:path";
|
|
41568
41588
|
function buildDMNGatherPrompt(recentTaskSummaries, dueReminders, attentionItems, memoryTopics, capabilities, competence, reflectionBuffer) {
|
|
@@ -41650,7 +41670,7 @@ function renderDMNResting(consecutiveNulls) {
|
|
|
41650
41670
|
}
|
|
41651
41671
|
var DMNEngine;
|
|
41652
41672
|
var init_dmn_engine = __esm({
|
|
41653
|
-
"
|
|
41673
|
+
"packages/cli/dist/tui/dmn-engine.js"() {
|
|
41654
41674
|
"use strict";
|
|
41655
41675
|
init_dist5();
|
|
41656
41676
|
init_dist2();
|
|
@@ -42322,7 +42342,7 @@ OUTPUT: Call task_complete with JSON:
|
|
|
42322
42342
|
}
|
|
42323
42343
|
});
|
|
42324
42344
|
|
|
42325
|
-
//
|
|
42345
|
+
// packages/cli/dist/tui/snr-engine.js
|
|
42326
42346
|
import { existsSync as existsSync38, readdirSync as readdirSync13, readFileSync as readFileSync29 } from "node:fs";
|
|
42327
42347
|
import { join as join48, basename as basename14 } from "node:path";
|
|
42328
42348
|
function computeDPrime(signalScores, noiseScores) {
|
|
@@ -42382,7 +42402,7 @@ function adaptTool4(tool) {
|
|
|
42382
42402
|
}
|
|
42383
42403
|
var SNREngine;
|
|
42384
42404
|
var init_snr_engine = __esm({
|
|
42385
|
-
"
|
|
42405
|
+
"packages/cli/dist/tui/snr-engine.js"() {
|
|
42386
42406
|
"use strict";
|
|
42387
42407
|
init_dist5();
|
|
42388
42408
|
init_dist2();
|
|
@@ -42657,7 +42677,7 @@ Call task_complete with the JSON array when done.`, onEvent)
|
|
|
42657
42677
|
}
|
|
42658
42678
|
});
|
|
42659
42679
|
|
|
42660
|
-
//
|
|
42680
|
+
// packages/cli/dist/tui/emotion-engine.js
|
|
42661
42681
|
function labelFromCoordinates(valence, arousal) {
|
|
42662
42682
|
if (valence > 0.6 && arousal > 0.6)
|
|
42663
42683
|
return { label: "exhilarated", emoji: "\u{1F929}" };
|
|
@@ -42718,7 +42738,7 @@ function clamp(value, min, max) {
|
|
|
42718
42738
|
}
|
|
42719
42739
|
var BASELINE_VALENCE, BASELINE_AROUSAL, DECAY_HALF_LIFE_MS, LABEL_UPDATE_INTERVAL_MS, EXCITEMENT_THRESHOLD, DISTRESS_THRESHOLD, OUTREACH_COOLDOWN_MS, OUTREACH_MIN_STREAK, LABEL_REGEN_THRESHOLD, EmotionEngine;
|
|
42720
42740
|
var init_emotion_engine = __esm({
|
|
42721
|
-
"
|
|
42741
|
+
"packages/cli/dist/tui/emotion-engine.js"() {
|
|
42722
42742
|
"use strict";
|
|
42723
42743
|
init_dist5();
|
|
42724
42744
|
init_promptLoader3();
|
|
@@ -43064,7 +43084,7 @@ var init_emotion_engine = __esm({
|
|
|
43064
43084
|
}
|
|
43065
43085
|
});
|
|
43066
43086
|
|
|
43067
|
-
//
|
|
43087
|
+
// packages/cli/dist/tui/tool-policy.js
|
|
43068
43088
|
function getDefaultPolicy(context) {
|
|
43069
43089
|
switch (context) {
|
|
43070
43090
|
case "terminal":
|
|
@@ -43114,7 +43134,7 @@ function applyToolPolicy(tools, context, userConfig) {
|
|
|
43114
43134
|
}
|
|
43115
43135
|
var SAFE_PUBLIC_TOOLS, SAFE_GROUP_ADMIN_TOOLS;
|
|
43116
43136
|
var init_tool_policy = __esm({
|
|
43117
|
-
"
|
|
43137
|
+
"packages/cli/dist/tui/tool-policy.js"() {
|
|
43118
43138
|
"use strict";
|
|
43119
43139
|
SAFE_PUBLIC_TOOLS = /* @__PURE__ */ new Set([
|
|
43120
43140
|
"memory_read",
|
|
@@ -43143,7 +43163,7 @@ var init_tool_policy = __esm({
|
|
|
43143
43163
|
}
|
|
43144
43164
|
});
|
|
43145
43165
|
|
|
43146
|
-
//
|
|
43166
|
+
// packages/cli/dist/tui/telegram-bridge.js
|
|
43147
43167
|
import { mkdirSync as mkdirSync18, existsSync as existsSync39, unlinkSync as unlinkSync7, readdirSync as readdirSync14, statSync as statSync10 } from "node:fs";
|
|
43148
43168
|
import { join as join49, resolve as resolve27 } from "node:path";
|
|
43149
43169
|
import { writeFile as writeFileAsync } from "node:fs/promises";
|
|
@@ -43280,7 +43300,7 @@ function renderTelegramSubAgentError(username, error) {
|
|
|
43280
43300
|
}
|
|
43281
43301
|
var TELEGRAM_SAFETY_PROMPT, ADMIN_DM_PROMPT, ADMIN_GROUP_PROMPT, GROUP_REPLY_DISCRETION_PROMPT, MEDIA_CACHE_TTL_MS, TelegramBridge;
|
|
43282
43302
|
var init_telegram_bridge = __esm({
|
|
43283
|
-
"
|
|
43303
|
+
"packages/cli/dist/tui/telegram-bridge.js"() {
|
|
43284
43304
|
"use strict";
|
|
43285
43305
|
init_dist5();
|
|
43286
43306
|
init_dist2();
|
|
@@ -44319,7 +44339,7 @@ ${caption}\r
|
|
|
44319
44339
|
}
|
|
44320
44340
|
});
|
|
44321
44341
|
|
|
44322
|
-
//
|
|
44342
|
+
// packages/cli/dist/tui/braille-spinner.js
|
|
44323
44343
|
function buildColorRamp(ramp) {
|
|
44324
44344
|
return [...ramp, ...ramp.slice(1, -1).reverse()];
|
|
44325
44345
|
}
|
|
@@ -44361,7 +44381,7 @@ function themeForTool(toolName) {
|
|
|
44361
44381
|
}
|
|
44362
44382
|
var DENSITY, WAVE, THEME_DEFAULT, THEME_FILE, THEME_SHELL, THEME_WEB, THEME_SEARCH, THEME_MEMORY, THEME_SKILL, THEME_TOOL_CREATE, THEME_DREAM, DEFAULT_METRICS, BrailleSpinner;
|
|
44363
44383
|
var init_braille_spinner = __esm({
|
|
44364
|
-
"
|
|
44384
|
+
"packages/cli/dist/tui/braille-spinner.js"() {
|
|
44365
44385
|
"use strict";
|
|
44366
44386
|
DENSITY = [
|
|
44367
44387
|
"\u2800",
|
|
@@ -44558,10 +44578,10 @@ var init_braille_spinner = __esm({
|
|
|
44558
44578
|
}
|
|
44559
44579
|
});
|
|
44560
44580
|
|
|
44561
|
-
//
|
|
44581
|
+
// packages/cli/dist/tui/status-bar.js
|
|
44562
44582
|
var EXPERT_TOOL_BASELINES, CONTEXT_SWITCH_OVERHEAD, TURN_PLANNING_OVERHEAD, DEFAULT_TOOL_BASELINE, CODE_READ_CHARS_PER_SEC, PROSE_READ_CHARS_PER_SEC, MIN_CONTENT_FOR_READING, CODE_CONTENT_TOOLS, PROSE_CONTENT_TOOLS, HumanSpeedTracker, StatusBar;
|
|
44563
44583
|
var init_status_bar = __esm({
|
|
44564
|
-
"
|
|
44584
|
+
"packages/cli/dist/tui/status-bar.js"() {
|
|
44565
44585
|
"use strict";
|
|
44566
44586
|
init_render();
|
|
44567
44587
|
init_braille_spinner();
|
|
@@ -45864,7 +45884,7 @@ var init_status_bar = __esm({
|
|
|
45864
45884
|
}
|
|
45865
45885
|
});
|
|
45866
45886
|
|
|
45867
|
-
//
|
|
45887
|
+
// packages/cli/dist/tui/interactive.js
|
|
45868
45888
|
import * as readline2 from "node:readline";
|
|
45869
45889
|
import { Writable } from "node:stream";
|
|
45870
45890
|
import { cwd } from "node:process";
|
|
@@ -49060,7 +49080,7 @@ async function runWithTUI(task, config, repoPath) {
|
|
|
49060
49080
|
}
|
|
49061
49081
|
var taskManager;
|
|
49062
49082
|
var init_interactive = __esm({
|
|
49063
|
-
"
|
|
49083
|
+
"packages/cli/dist/tui/interactive.js"() {
|
|
49064
49084
|
"use strict";
|
|
49065
49085
|
init_dist5();
|
|
49066
49086
|
init_dist5();
|
|
@@ -49097,7 +49117,7 @@ var init_interactive = __esm({
|
|
|
49097
49117
|
}
|
|
49098
49118
|
});
|
|
49099
49119
|
|
|
49100
|
-
//
|
|
49120
|
+
// packages/cli/dist/commands/run.js
|
|
49101
49121
|
var run_exports = {};
|
|
49102
49122
|
__export(run_exports, {
|
|
49103
49123
|
runCommand: () => runCommand
|
|
@@ -49117,13 +49137,13 @@ async function runCommand(opts, config) {
|
|
|
49117
49137
|
}
|
|
49118
49138
|
}
|
|
49119
49139
|
var init_run = __esm({
|
|
49120
|
-
"
|
|
49140
|
+
"packages/cli/dist/commands/run.js"() {
|
|
49121
49141
|
"use strict";
|
|
49122
49142
|
init_interactive();
|
|
49123
49143
|
}
|
|
49124
49144
|
});
|
|
49125
49145
|
|
|
49126
|
-
//
|
|
49146
|
+
// packages/indexer/dist/codebase-indexer.js
|
|
49127
49147
|
import { glob } from "glob";
|
|
49128
49148
|
import ignore from "ignore";
|
|
49129
49149
|
import { readFile as readFile16, stat as stat4 } from "node:fs/promises";
|
|
@@ -49131,7 +49151,7 @@ import { createHash as createHash4 } from "node:crypto";
|
|
|
49131
49151
|
import { join as join51, relative as relative3, extname as extname10, basename as basename15 } from "node:path";
|
|
49132
49152
|
var DEFAULT_EXCLUDE, LANGUAGE_MAP, CodebaseIndexer;
|
|
49133
49153
|
var init_codebase_indexer = __esm({
|
|
49134
|
-
"
|
|
49154
|
+
"packages/indexer/dist/codebase-indexer.js"() {
|
|
49135
49155
|
"use strict";
|
|
49136
49156
|
DEFAULT_EXCLUDE = [
|
|
49137
49157
|
"node_modules",
|
|
@@ -49249,25 +49269,25 @@ var init_codebase_indexer = __esm({
|
|
|
49249
49269
|
}
|
|
49250
49270
|
});
|
|
49251
49271
|
|
|
49252
|
-
//
|
|
49272
|
+
// packages/indexer/dist/repoScanner.js
|
|
49253
49273
|
import ignore2 from "ignore";
|
|
49254
49274
|
var init_repoScanner = __esm({
|
|
49255
|
-
"
|
|
49275
|
+
"packages/indexer/dist/repoScanner.js"() {
|
|
49256
49276
|
"use strict";
|
|
49257
49277
|
}
|
|
49258
49278
|
});
|
|
49259
49279
|
|
|
49260
|
-
//
|
|
49280
|
+
// packages/indexer/dist/symbolExtractor.js
|
|
49261
49281
|
var init_symbolExtractor = __esm({
|
|
49262
|
-
"
|
|
49282
|
+
"packages/indexer/dist/symbolExtractor.js"() {
|
|
49263
49283
|
"use strict";
|
|
49264
49284
|
}
|
|
49265
49285
|
});
|
|
49266
49286
|
|
|
49267
|
-
//
|
|
49287
|
+
// packages/indexer/dist/graphBuilder.js
|
|
49268
49288
|
var TS_EXTENSIONS, JS_EXTENSIONS, ALL_EXTENSIONS;
|
|
49269
49289
|
var init_graphBuilder = __esm({
|
|
49270
|
-
"
|
|
49290
|
+
"packages/indexer/dist/graphBuilder.js"() {
|
|
49271
49291
|
"use strict";
|
|
49272
49292
|
TS_EXTENSIONS = [".ts", ".tsx", ".mts", ".cts"];
|
|
49273
49293
|
JS_EXTENSIONS = [".js", ".jsx", ".mjs", ".cjs"];
|
|
@@ -49275,30 +49295,30 @@ var init_graphBuilder = __esm({
|
|
|
49275
49295
|
}
|
|
49276
49296
|
});
|
|
49277
49297
|
|
|
49278
|
-
//
|
|
49298
|
+
// packages/indexer/dist/fileSummarizer.js
|
|
49279
49299
|
var init_fileSummarizer = __esm({
|
|
49280
|
-
"
|
|
49300
|
+
"packages/indexer/dist/fileSummarizer.js"() {
|
|
49281
49301
|
"use strict";
|
|
49282
49302
|
}
|
|
49283
49303
|
});
|
|
49284
49304
|
|
|
49285
|
-
//
|
|
49305
|
+
// packages/indexer/dist/embeddings.js
|
|
49286
49306
|
var init_embeddings = __esm({
|
|
49287
|
-
"
|
|
49307
|
+
"packages/indexer/dist/embeddings.js"() {
|
|
49288
49308
|
"use strict";
|
|
49289
49309
|
}
|
|
49290
49310
|
});
|
|
49291
49311
|
|
|
49292
|
-
//
|
|
49312
|
+
// packages/indexer/dist/ollamaEmbeddings.js
|
|
49293
49313
|
var init_ollamaEmbeddings = __esm({
|
|
49294
|
-
"
|
|
49314
|
+
"packages/indexer/dist/ollamaEmbeddings.js"() {
|
|
49295
49315
|
"use strict";
|
|
49296
49316
|
}
|
|
49297
49317
|
});
|
|
49298
49318
|
|
|
49299
|
-
//
|
|
49319
|
+
// packages/indexer/dist/index.js
|
|
49300
49320
|
var init_dist8 = __esm({
|
|
49301
|
-
"
|
|
49321
|
+
"packages/indexer/dist/index.js"() {
|
|
49302
49322
|
"use strict";
|
|
49303
49323
|
init_codebase_indexer();
|
|
49304
49324
|
init_repoScanner();
|
|
@@ -49310,7 +49330,7 @@ var init_dist8 = __esm({
|
|
|
49310
49330
|
}
|
|
49311
49331
|
});
|
|
49312
49332
|
|
|
49313
|
-
//
|
|
49333
|
+
// packages/cli/dist/commands/index-repo.js
|
|
49314
49334
|
var index_repo_exports = {};
|
|
49315
49335
|
__export(index_repo_exports, {
|
|
49316
49336
|
indexRepoCommand: () => indexRepoCommand
|
|
@@ -49403,7 +49423,7 @@ async function indexRepoCommand(opts, _config) {
|
|
|
49403
49423
|
printSuccess("Repository indexed successfully");
|
|
49404
49424
|
}
|
|
49405
49425
|
var init_index_repo = __esm({
|
|
49406
|
-
"
|
|
49426
|
+
"packages/cli/dist/commands/index-repo.js"() {
|
|
49407
49427
|
"use strict";
|
|
49408
49428
|
init_dist8();
|
|
49409
49429
|
init_spinner();
|
|
@@ -49411,7 +49431,7 @@ var init_index_repo = __esm({
|
|
|
49411
49431
|
}
|
|
49412
49432
|
});
|
|
49413
49433
|
|
|
49414
|
-
//
|
|
49434
|
+
// packages/cli/dist/commands/status.js
|
|
49415
49435
|
var status_exports = {};
|
|
49416
49436
|
__export(status_exports, {
|
|
49417
49437
|
statusCommand: () => statusCommand
|
|
@@ -49561,7 +49581,7 @@ async function statusVllm(opts, config) {
|
|
|
49561
49581
|
printSuccess("vLLM backend is operational");
|
|
49562
49582
|
}
|
|
49563
49583
|
var init_status = __esm({
|
|
49564
|
-
"
|
|
49584
|
+
"packages/cli/dist/commands/status.js"() {
|
|
49565
49585
|
"use strict";
|
|
49566
49586
|
init_dist();
|
|
49567
49587
|
init_spinner();
|
|
@@ -49569,7 +49589,7 @@ var init_status = __esm({
|
|
|
49569
49589
|
}
|
|
49570
49590
|
});
|
|
49571
49591
|
|
|
49572
|
-
//
|
|
49592
|
+
// packages/cli/dist/commands/config.js
|
|
49573
49593
|
var config_exports = {};
|
|
49574
49594
|
__export(config_exports, {
|
|
49575
49595
|
configCommand: () => configCommand
|
|
@@ -49744,7 +49764,7 @@ function handleKeys() {
|
|
|
49744
49764
|
}
|
|
49745
49765
|
var CONFIG_KEYS, SENSITIVE_KEYS, INT_KEYS, BOOL_KEYS, ENUM_KEYS;
|
|
49746
49766
|
var init_config3 = __esm({
|
|
49747
|
-
"
|
|
49767
|
+
"packages/cli/dist/commands/config.js"() {
|
|
49748
49768
|
"use strict";
|
|
49749
49769
|
init_config();
|
|
49750
49770
|
init_oa_directory();
|
|
@@ -49791,7 +49811,7 @@ var init_config3 = __esm({
|
|
|
49791
49811
|
}
|
|
49792
49812
|
});
|
|
49793
49813
|
|
|
49794
|
-
//
|
|
49814
|
+
// packages/cli/dist/commands/serve.js
|
|
49795
49815
|
var serve_exports = {};
|
|
49796
49816
|
__export(serve_exports, {
|
|
49797
49817
|
serveCommand: () => serveCommand
|
|
@@ -49941,14 +49961,14 @@ async function runVllmServer(args, verbose) {
|
|
|
49941
49961
|
});
|
|
49942
49962
|
}
|
|
49943
49963
|
var init_serve = __esm({
|
|
49944
|
-
"
|
|
49964
|
+
"packages/cli/dist/commands/serve.js"() {
|
|
49945
49965
|
"use strict";
|
|
49946
49966
|
init_dist();
|
|
49947
49967
|
init_output();
|
|
49948
49968
|
}
|
|
49949
49969
|
});
|
|
49950
49970
|
|
|
49951
|
-
//
|
|
49971
|
+
// packages/cli/dist/commands/eval.js
|
|
49952
49972
|
var eval_exports = {};
|
|
49953
49973
|
__export(eval_exports, {
|
|
49954
49974
|
evalCommand: () => evalCommand
|
|
@@ -50087,7 +50107,7 @@ function createTempEvalRepo() {
|
|
|
50087
50107
|
}
|
|
50088
50108
|
var BASIC_SUITE, FULL_SUITE, SUITES;
|
|
50089
50109
|
var init_eval = __esm({
|
|
50090
|
-
"
|
|
50110
|
+
"packages/cli/dist/commands/eval.js"() {
|
|
50091
50111
|
"use strict";
|
|
50092
50112
|
init_dist5();
|
|
50093
50113
|
init_dist();
|
|
@@ -50135,7 +50155,7 @@ var init_eval = __esm({
|
|
|
50135
50155
|
}
|
|
50136
50156
|
});
|
|
50137
50157
|
|
|
50138
|
-
//
|
|
50158
|
+
// packages/cli/dist/index.js
|
|
50139
50159
|
init_config();
|
|
50140
50160
|
init_output();
|
|
50141
50161
|
init_updater();
|
|
@@ -50144,7 +50164,7 @@ import { createRequire as createRequire3 } from "node:module";
|
|
|
50144
50164
|
import { fileURLToPath as fileURLToPath13 } from "node:url";
|
|
50145
50165
|
import { dirname as dirname19, join as join54 } from "node:path";
|
|
50146
50166
|
|
|
50147
|
-
//
|
|
50167
|
+
// packages/cli/dist/cli.js
|
|
50148
50168
|
import { createInterface } from "node:readline";
|
|
50149
50169
|
function createCli(options) {
|
|
50150
50170
|
return {
|
|
@@ -50183,10 +50203,10 @@ function createCli(options) {
|
|
|
50183
50203
|
};
|
|
50184
50204
|
}
|
|
50185
50205
|
|
|
50186
|
-
//
|
|
50206
|
+
// packages/cli/dist/args.js
|
|
50187
50207
|
import { parseArgs as nodeParseArgs } from "node:util";
|
|
50188
50208
|
|
|
50189
|
-
//
|
|
50209
|
+
// packages/cli/dist/types.js
|
|
50190
50210
|
var DEFAULT_OPTIONS = {
|
|
50191
50211
|
model: "qwen-2.5-coder-32b",
|
|
50192
50212
|
backendUrl: "http://localhost:8000/v1",
|
|
@@ -50196,7 +50216,7 @@ var DEFAULT_OPTIONS = {
|
|
|
50196
50216
|
verbose: false
|
|
50197
50217
|
};
|
|
50198
50218
|
|
|
50199
|
-
//
|
|
50219
|
+
// packages/cli/dist/args.js
|
|
50200
50220
|
function parseArgs(argv) {
|
|
50201
50221
|
const { values } = nodeParseArgs({
|
|
50202
50222
|
args: argv.slice(2),
|
|
@@ -50242,7 +50262,7 @@ Options:
|
|
|
50242
50262
|
console.log(help.trim());
|
|
50243
50263
|
}
|
|
50244
50264
|
|
|
50245
|
-
//
|
|
50265
|
+
// packages/cli/dist/index.js
|
|
50246
50266
|
init_config();
|
|
50247
50267
|
init_spinner();
|
|
50248
50268
|
init_output();
|