jinzd-ai-cli 0.4.298 → 0.4.300
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/{batch-UFTO2RGM.js → batch-ESHQ5NMB.js} +2 -2
- package/dist/{chunk-543ON5UN.js → chunk-2MOYOMY5.js} +1 -1
- package/dist/{chunk-2HRGMGPB.js → chunk-34TV5BBH.js} +3 -3
- package/dist/{chunk-D2D65MIH.js → chunk-4CEF4ROO.js} +52 -6
- package/dist/{chunk-WAXJFG2Q.js → chunk-KQLKS3ZQ.js} +1 -1
- package/dist/{chunk-COEXRESK.js → chunk-LNGH6PEC.js} +1 -1
- package/dist/{chunk-PSAPNEQI.js → chunk-MZCMJC3K.js} +1 -1
- package/dist/{chunk-PNV7E7UZ.js → chunk-NJ2E3ZYE.js} +1 -1
- package/dist/{chunk-OJNKVVD6.js → chunk-QL5HASTV.js} +1 -1
- package/dist/{chunk-6ILVIYFW.js → chunk-RPI74YNP.js} +1 -1
- package/dist/{chunk-BFWARWZ6.js → chunk-RXK3SNCO.js} +1 -1
- package/dist/{chunk-TEXCRSK5.js → chunk-YFCGMH2R.js} +3 -3
- package/dist/{chunk-BT4JXLQU.js → chunk-ZBFNKCH4.js} +7 -7
- package/dist/{chunk-UI7I4T7J.js → chunk-ZMIAVBFY.js} +1 -1
- package/dist/{ci-I2UICVIW.js → ci-5NGCQYUX.js} +4 -4
- package/dist/{ci-format-BMQRW4WC.js → ci-format-EKOB2WRP.js} +2 -2
- package/dist/{constants-SYTUPV5I.js → constants-3VGUBD6L.js} +1 -1
- package/dist/{constants-H4QGG5YE.js → constants-LZ5UUYEY.js} +1 -1
- package/dist/{doctor-cli-SZSIME44.js → doctor-cli-5KEROB3Z.js} +4 -4
- package/dist/electron-server.js +58 -12
- package/dist/{hub-3RKL7J3R.js → hub-ARZNS7IH.js} +1 -1
- package/dist/index.js +17 -17
- package/dist/{persistent-memory-IGWFOLMR.js → persistent-memory-2AWOTKKK.js} +2 -2
- package/dist/{persistent-memory-6S5GO7FQ.js → persistent-memory-KKEM3K5D.js} +2 -2
- package/dist/{pr-BCFZ6HZJ.js → pr-IFMDC3I4.js} +4 -4
- package/dist/{run-tests-DVEVNMTC.js → run-tests-3JIOK2H4.js} +2 -2
- package/dist/{run-tests-G2BVEVOQ.js → run-tests-LEY4IOUG.js} +2 -2
- package/dist/{server-PXZ6FI65.js → server-4V3F2WSC.js} +13 -13
- package/dist/{server-6LKW6APS.js → server-L53NTLYW.js} +5 -5
- package/dist/{task-orchestrator-UYABIWYV.js → task-orchestrator-ZNLQD2SM.js} +5 -5
- package/dist/{usage-H6MA2L6M.js → usage-ZS3LZOUI.js} +2 -2
- package/package.json +1 -1
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
} from "./chunk-RS7SKYTS.js";
|
|
5
5
|
import {
|
|
6
6
|
ConfigManager
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RPI74YNP.js";
|
|
8
8
|
import "./chunk-TU3L3PW7.js";
|
|
9
9
|
import {
|
|
10
10
|
atomicWriteFileSync
|
|
11
11
|
} from "./chunk-IW3Q7AE5.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-2MOYOMY5.js";
|
|
13
13
|
|
|
14
14
|
// src/cli/batch.ts
|
|
15
15
|
import Anthropic from "@anthropic-ai/sdk";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
evaluateCiGate,
|
|
4
4
|
normalizeCiThresholds
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZMIAVBFY.js";
|
|
6
6
|
import {
|
|
7
7
|
buildReviewPrompt,
|
|
8
8
|
buildSecurityReviewPrompt,
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
} from "./chunk-FBOVBL7P.js";
|
|
17
17
|
import {
|
|
18
18
|
ConfigManager
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RPI74YNP.js";
|
|
20
20
|
import {
|
|
21
21
|
VERSION
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2MOYOMY5.js";
|
|
23
23
|
|
|
24
24
|
// src/cli/ci.ts
|
|
25
25
|
import { execFileSync } from "child_process";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
searchPersistentMemories,
|
|
12
12
|
touchMemoryReferences,
|
|
13
13
|
updateMemoryEntry
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NJ2E3ZYE.js";
|
|
15
15
|
import {
|
|
16
16
|
indexProject
|
|
17
17
|
} from "./chunk-4DEMGCK4.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
runHook,
|
|
31
31
|
runLifecycleHooks,
|
|
32
32
|
runTool
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-LNGH6PEC.js";
|
|
34
34
|
import {
|
|
35
35
|
buildTruncatedArgumentsError,
|
|
36
36
|
getDangerLevel,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
} from "./chunk-4BKXL7SM.js";
|
|
51
51
|
import {
|
|
52
52
|
runTestsTool
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-MZCMJC3K.js";
|
|
54
54
|
import {
|
|
55
55
|
CONFIG_DIR_NAME,
|
|
56
56
|
DEFAULT_MAX_TOOL_OUTPUT_CHARS_CAP,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
SUBAGENT_ALLOWED_TOOLS,
|
|
59
59
|
SUBAGENT_DEFAULT_MAX_ROUNDS,
|
|
60
60
|
SUBAGENT_MAX_ROUNDS_LIMIT
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-2MOYOMY5.js";
|
|
62
62
|
|
|
63
63
|
// src/tools/shell-pool.ts
|
|
64
64
|
import { spawn as spawn2 } from "child_process";
|
|
@@ -2253,11 +2253,57 @@ var RuleBasedActionClassifier = class {
|
|
|
2253
2253
|
var defaultActionClassifier = new RuleBasedActionClassifier();
|
|
2254
2254
|
|
|
2255
2255
|
// src/tools/executor.ts
|
|
2256
|
+
var PS_ERROR_RECORD_HEAD = /^(?:At line:\d+ char:\d+|所在位置\s+行:\d+\s+字符:\d+)\s*$/;
|
|
2257
|
+
var ERROR_SIGNATURE = new RegExp(
|
|
2258
|
+
[
|
|
2259
|
+
// Python / .NET / Java: "OSError: …", "pkg.SomeException: …"
|
|
2260
|
+
String.raw`^\s*[\w.]*(?:Error|Exception|Fault)\s*:`,
|
|
2261
|
+
// Compilers and POSIX tooling: "cc1: error: …", "foo.ts(3,5): error TS2345: …"
|
|
2262
|
+
String.raw`\berror\b\s*:`,
|
|
2263
|
+
// Windows PowerShell native-command stderr header: "python.exe : <first stderr line>".
|
|
2264
|
+
// Anchored + no ':' or '\' in the name part so a bare path (C:\...\python.exe) can't match.
|
|
2265
|
+
String.raw`^[\w.\-]+\.exe\s:\s`,
|
|
2266
|
+
// Common single-line failures that carry no "Type:" prefix
|
|
2267
|
+
String.raw`command not found|is not recognized|permission denied|no such file or directory|cannot find path`
|
|
2268
|
+
].join("|"),
|
|
2269
|
+
"i"
|
|
2270
|
+
);
|
|
2271
|
+
var PY_TRACEBACK_FRAME = /^\s*File ".*", line \d+/;
|
|
2256
2272
|
function buildErrorPreview(content) {
|
|
2257
|
-
const
|
|
2273
|
+
const raw = content.split("\n");
|
|
2274
|
+
const undecorated = [];
|
|
2275
|
+
for (let i = 0; i < raw.length; i++) {
|
|
2276
|
+
if (PS_ERROR_RECORD_HEAD.test(raw[i])) {
|
|
2277
|
+
i++;
|
|
2278
|
+
while (i < raw.length && /^\s*\+ /.test(raw[i])) i++;
|
|
2279
|
+
i--;
|
|
2280
|
+
continue;
|
|
2281
|
+
}
|
|
2282
|
+
undecorated.push(raw[i]);
|
|
2283
|
+
}
|
|
2284
|
+
const meaningful = undecorated.filter(
|
|
2258
2285
|
(l) => !/^(?:\[[^\]]+\]\s*)?Exit code \d+:$/.test(l.trim()) && !/^Traceback \(most recent call last\):$/.test(l.trim()) && !l.startsWith("[Command failed") && !l.startsWith("\u{1F4A1} ") && l.trim() !== ""
|
|
2259
2286
|
);
|
|
2260
|
-
|
|
2287
|
+
let primary = -1;
|
|
2288
|
+
for (let i = meaningful.length - 1; i >= 0; i--) {
|
|
2289
|
+
if (ERROR_SIGNATURE.test(meaningful[i])) {
|
|
2290
|
+
primary = i;
|
|
2291
|
+
break;
|
|
2292
|
+
}
|
|
2293
|
+
}
|
|
2294
|
+
let previewLines;
|
|
2295
|
+
if (primary >= 0) {
|
|
2296
|
+
let frame = null;
|
|
2297
|
+
for (let i = primary - 1; i >= 0 && i >= primary - 3; i--) {
|
|
2298
|
+
if (PY_TRACEBACK_FRAME.test(meaningful[i])) {
|
|
2299
|
+
frame = meaningful[i];
|
|
2300
|
+
break;
|
|
2301
|
+
}
|
|
2302
|
+
}
|
|
2303
|
+
previewLines = frame !== null ? [frame, meaningful[primary]] : [meaningful[primary]];
|
|
2304
|
+
} else {
|
|
2305
|
+
previewLines = meaningful.length > 2 ? [meaningful[0], meaningful[meaningful.length - 1]] : meaningful.slice(0, 2);
|
|
2306
|
+
}
|
|
2261
2307
|
const preview = previewLines.map((l) => l.length > 160 ? l.slice(0, 160) + "\u2026" : l).join(" \xB7 ") || content.slice(0, 120);
|
|
2262
2308
|
return preview.slice(0, 240);
|
|
2263
2309
|
}
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
MEMORY_FILE_NAME,
|
|
14
14
|
MEMORY_MAX_CHARS,
|
|
15
15
|
MEMORY_STORE_FILE_NAME
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2MOYOMY5.js";
|
|
17
17
|
|
|
18
18
|
// src/memory/persistent-memory.ts
|
|
19
19
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, statSync } from "fs";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
MEMORY_FILE_NAME,
|
|
13
13
|
MEMORY_MAX_CHARS,
|
|
14
14
|
MEMORY_STORE_FILE_NAME
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KQLKS3ZQ.js";
|
|
16
16
|
|
|
17
17
|
// src/memory/persistent-memory.ts
|
|
18
18
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, statSync } from "fs";
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
listHooks,
|
|
9
9
|
listInstalledPlugins,
|
|
10
10
|
resetStats
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LNGH6PEC.js";
|
|
12
12
|
import {
|
|
13
13
|
ProviderRegistry
|
|
14
14
|
} from "./chunk-FBOVBL7P.js";
|
|
15
15
|
import {
|
|
16
16
|
ConfigManager
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RPI74YNP.js";
|
|
18
18
|
import {
|
|
19
19
|
getGitRoot
|
|
20
20
|
} from "./chunk-HOSJZMQS.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
MCP_PROJECT_CONFIG_NAME,
|
|
27
27
|
MEMORY_FILE_NAME,
|
|
28
28
|
VERSION
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-2MOYOMY5.js";
|
|
30
30
|
|
|
31
31
|
// src/diagnostics/doctor-report.ts
|
|
32
32
|
import { existsSync as existsSync3, statSync as statSync2 } from "fs";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
setPreferredAgentName,
|
|
17
17
|
truncateForPersist,
|
|
18
18
|
undoStack
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4CEF4ROO.js";
|
|
20
20
|
import {
|
|
21
21
|
buildReviewPrompt,
|
|
22
22
|
buildSecurityReviewPrompt
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
touchMemoryReferences,
|
|
52
52
|
updateMemoryApproval,
|
|
53
53
|
updateMemoryEntry
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-NJ2E3ZYE.js";
|
|
55
55
|
import {
|
|
56
56
|
theme
|
|
57
57
|
} from "./chunk-5C76XDDF.js";
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
import {
|
|
66
66
|
buildDoctorReport,
|
|
67
67
|
formatDoctorReport
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-YFCGMH2R.js";
|
|
69
69
|
import {
|
|
70
70
|
describePlugin,
|
|
71
71
|
getActivePluginAssets,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
trustHook,
|
|
81
81
|
trustPlugin,
|
|
82
82
|
untrustHook
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-LNGH6PEC.js";
|
|
84
84
|
import {
|
|
85
85
|
isCleanDocumentBody,
|
|
86
86
|
stripOuterCodeFence
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
MCP_TOOL_PREFIX,
|
|
110
110
|
REPO_URL,
|
|
111
111
|
VERSION
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-2MOYOMY5.js";
|
|
113
113
|
|
|
114
114
|
// src/skills/manager.ts
|
|
115
115
|
import { existsSync, readdirSync, mkdirSync, statSync } from "fs";
|
|
@@ -2426,7 +2426,7 @@ No tools match "${filter}".
|
|
|
2426
2426
|
const { join: join6 } = await import("path");
|
|
2427
2427
|
const { existsSync: existsSync6 } = await import("fs");
|
|
2428
2428
|
const { getGitRoot } = await import("./git-context-EXOEHQSF.js");
|
|
2429
|
-
const { MCP_PROJECT_CONFIG_NAME } = await import("./constants-
|
|
2429
|
+
const { MCP_PROJECT_CONFIG_NAME } = await import("./constants-LZ5UUYEY.js");
|
|
2430
2430
|
const { approveProject, hashMcpFile } = await import("./project-trust-NKYHL3VZ.js");
|
|
2431
2431
|
const cwd = process.cwd();
|
|
2432
2432
|
const projectRoot = getGitRoot(cwd) ?? cwd;
|
|
@@ -3534,7 +3534,7 @@ function createReviewCommands() {
|
|
|
3534
3534
|
usage: "/test [command|filter]",
|
|
3535
3535
|
async execute(args, ctx) {
|
|
3536
3536
|
try {
|
|
3537
|
-
const { executeTests } = await import("./run-tests-
|
|
3537
|
+
const { executeTests } = await import("./run-tests-LEY4IOUG.js");
|
|
3538
3538
|
const argStr = args.join(" ").trim();
|
|
3539
3539
|
let testArgs = {};
|
|
3540
3540
|
if (argStr) {
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
CI_COMMENT_MARKER,
|
|
4
4
|
countSeverity,
|
|
5
5
|
runCi
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-34TV5BBH.js";
|
|
7
|
+
import "./chunk-ZMIAVBFY.js";
|
|
8
8
|
import "./chunk-HLWUDRBO.js";
|
|
9
9
|
import "./chunk-6YZEZFX5.js";
|
|
10
10
|
import "./chunk-FBOVBL7P.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-RPI74YNP.js";
|
|
12
12
|
import "./chunk-Y56UGZPX.js";
|
|
13
13
|
import "./chunk-TU3L3PW7.js";
|
|
14
14
|
import "./chunk-IW3Q7AE5.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-2MOYOMY5.js";
|
|
16
16
|
export {
|
|
17
17
|
CI_COMMENT_MARKER,
|
|
18
18
|
countSeverity,
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import {
|
|
3
3
|
formatDoctorReport,
|
|
4
4
|
runDoctorCli
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-YFCGMH2R.js";
|
|
6
|
+
import "./chunk-LNGH6PEC.js";
|
|
7
7
|
import "./chunk-RS7SKYTS.js";
|
|
8
8
|
import "./chunk-FBOVBL7P.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-RPI74YNP.js";
|
|
10
10
|
import "./chunk-Y56UGZPX.js";
|
|
11
11
|
import "./chunk-TU3L3PW7.js";
|
|
12
12
|
import "./chunk-HOSJZMQS.js";
|
|
13
13
|
import "./chunk-IW3Q7AE5.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-2MOYOMY5.js";
|
|
15
15
|
export {
|
|
16
16
|
formatDoctorReport,
|
|
17
17
|
runDoctorCli
|
package/dist/electron-server.js
CHANGED
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
touchMemoryReferences,
|
|
51
51
|
updateMemoryApproval,
|
|
52
52
|
updateMemoryEntry
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-QL5HASTV.js";
|
|
54
54
|
import {
|
|
55
55
|
DEFAULT_PATTERNS,
|
|
56
56
|
redactJson,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
} from "./chunk-CGLYJRFA.js";
|
|
67
67
|
import {
|
|
68
68
|
runTestsTool
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-RXK3SNCO.js";
|
|
70
70
|
import {
|
|
71
71
|
AGENTIC_BEHAVIOR_GUIDELINE,
|
|
72
72
|
APP_NAME,
|
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
SUBAGENT_MAX_ROUNDS_LIMIT,
|
|
101
101
|
VERSION,
|
|
102
102
|
buildUserIdentityPrompt
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-KQLKS3ZQ.js";
|
|
104
104
|
|
|
105
105
|
// src/web/server.ts
|
|
106
106
|
import express from "express";
|
|
@@ -8078,11 +8078,57 @@ var RuleBasedActionClassifier = class {
|
|
|
8078
8078
|
var defaultActionClassifier = new RuleBasedActionClassifier();
|
|
8079
8079
|
|
|
8080
8080
|
// src/tools/executor.ts
|
|
8081
|
+
var PS_ERROR_RECORD_HEAD = /^(?:At line:\d+ char:\d+|所在位置\s+行:\d+\s+字符:\d+)\s*$/;
|
|
8082
|
+
var ERROR_SIGNATURE = new RegExp(
|
|
8083
|
+
[
|
|
8084
|
+
// Python / .NET / Java: "OSError: …", "pkg.SomeException: …"
|
|
8085
|
+
String.raw`^\s*[\w.]*(?:Error|Exception|Fault)\s*:`,
|
|
8086
|
+
// Compilers and POSIX tooling: "cc1: error: …", "foo.ts(3,5): error TS2345: …"
|
|
8087
|
+
String.raw`\berror\b\s*:`,
|
|
8088
|
+
// Windows PowerShell native-command stderr header: "python.exe : <first stderr line>".
|
|
8089
|
+
// Anchored + no ':' or '\' in the name part so a bare path (C:\...\python.exe) can't match.
|
|
8090
|
+
String.raw`^[\w.\-]+\.exe\s:\s`,
|
|
8091
|
+
// Common single-line failures that carry no "Type:" prefix
|
|
8092
|
+
String.raw`command not found|is not recognized|permission denied|no such file or directory|cannot find path`
|
|
8093
|
+
].join("|"),
|
|
8094
|
+
"i"
|
|
8095
|
+
);
|
|
8096
|
+
var PY_TRACEBACK_FRAME = /^\s*File ".*", line \d+/;
|
|
8081
8097
|
function buildErrorPreview(content) {
|
|
8082
|
-
const
|
|
8098
|
+
const raw = content.split("\n");
|
|
8099
|
+
const undecorated = [];
|
|
8100
|
+
for (let i = 0; i < raw.length; i++) {
|
|
8101
|
+
if (PS_ERROR_RECORD_HEAD.test(raw[i])) {
|
|
8102
|
+
i++;
|
|
8103
|
+
while (i < raw.length && /^\s*\+ /.test(raw[i])) i++;
|
|
8104
|
+
i--;
|
|
8105
|
+
continue;
|
|
8106
|
+
}
|
|
8107
|
+
undecorated.push(raw[i]);
|
|
8108
|
+
}
|
|
8109
|
+
const meaningful = undecorated.filter(
|
|
8083
8110
|
(l) => !/^(?:\[[^\]]+\]\s*)?Exit code \d+:$/.test(l.trim()) && !/^Traceback \(most recent call last\):$/.test(l.trim()) && !l.startsWith("[Command failed") && !l.startsWith("\u{1F4A1} ") && l.trim() !== ""
|
|
8084
8111
|
);
|
|
8085
|
-
|
|
8112
|
+
let primary = -1;
|
|
8113
|
+
for (let i = meaningful.length - 1; i >= 0; i--) {
|
|
8114
|
+
if (ERROR_SIGNATURE.test(meaningful[i])) {
|
|
8115
|
+
primary = i;
|
|
8116
|
+
break;
|
|
8117
|
+
}
|
|
8118
|
+
}
|
|
8119
|
+
let previewLines;
|
|
8120
|
+
if (primary >= 0) {
|
|
8121
|
+
let frame = null;
|
|
8122
|
+
for (let i = primary - 1; i >= 0 && i >= primary - 3; i--) {
|
|
8123
|
+
if (PY_TRACEBACK_FRAME.test(meaningful[i])) {
|
|
8124
|
+
frame = meaningful[i];
|
|
8125
|
+
break;
|
|
8126
|
+
}
|
|
8127
|
+
}
|
|
8128
|
+
previewLines = frame !== null ? [frame, meaningful[primary]] : [meaningful[primary]];
|
|
8129
|
+
} else {
|
|
8130
|
+
previewLines = meaningful.length > 2 ? [meaningful[0], meaningful[meaningful.length - 1]] : meaningful.slice(0, 2);
|
|
8131
|
+
}
|
|
8086
8132
|
const preview = previewLines.map((l) => l.length > 160 ? l.slice(0, 160) + "\u2026" : l).join(" \xB7 ") || content.slice(0, 120);
|
|
8087
8133
|
return preview.slice(0, 240);
|
|
8088
8134
|
}
|
|
@@ -17031,7 +17077,7 @@ Cache: write=${cacheCreate} read=${cacheRead}` : "";
|
|
|
17031
17077
|
Cost: ${formatCost(cost)}` : "";
|
|
17032
17078
|
let memoryLine = "";
|
|
17033
17079
|
try {
|
|
17034
|
-
const { countPendingMemories: countPendingMemories2 } = await import("./persistent-memory-
|
|
17080
|
+
const { countPendingMemories: countPendingMemories2 } = await import("./persistent-memory-2AWOTKKK.js");
|
|
17035
17081
|
const pending = countPendingMemories2(ctx.config.getConfigDir());
|
|
17036
17082
|
if (pending > 0) memoryLine = `
|
|
17037
17083
|
Memory: \u26A0 ${pending} pending approval \u2014 see the Memory panel or /memory`;
|
|
@@ -18014,7 +18060,7 @@ async function handleTest(args, ctx) {
|
|
|
18014
18060
|
const isCommand = argStr.includes(" ") || /^(mvn|gradle|npm|pytest|cargo|go)\b/.test(argStr);
|
|
18015
18061
|
testArgs = isCommand ? { command: argStr } : { filter: argStr };
|
|
18016
18062
|
}
|
|
18017
|
-
const runTests = ctx.runTests ?? (await import("./run-tests-
|
|
18063
|
+
const runTests = ctx.runTests ?? (await import("./run-tests-3JIOK2H4.js")).executeTests;
|
|
18018
18064
|
const report = await runTests(testArgs);
|
|
18019
18065
|
ctx.send({ type: "info", message: report });
|
|
18020
18066
|
} catch (err) {
|
|
@@ -18404,7 +18450,7 @@ async function handleMemory(args, ctx) {
|
|
|
18404
18450
|
}
|
|
18405
18451
|
if (intent.kind === "status") {
|
|
18406
18452
|
const { getChatIndexStatus: getChatIndexStatus2 } = await import("./chat-index-DGUOUUQW.js");
|
|
18407
|
-
const { listMemoryEntries: listMemoryEntries2, isMemoryExpired: isMemoryExpired2, formatMemoryForPrompt: formatMemoryForPrompt2 } = await import("./persistent-memory-
|
|
18453
|
+
const { listMemoryEntries: listMemoryEntries2, isMemoryExpired: isMemoryExpired2, formatMemoryForPrompt: formatMemoryForPrompt2 } = await import("./persistent-memory-2AWOTKKK.js");
|
|
18408
18454
|
const memories = listMemoryEntries2(configDir, { includeExpired: true, includeRejected: true });
|
|
18409
18455
|
const injected = formatMemoryForPrompt2(configDir, process.cwd(), ctx.config.get("memory")?.maxChars);
|
|
18410
18456
|
const view = buildMemoryStatusView({
|
|
@@ -18427,7 +18473,7 @@ async function handleMemory(args, ctx) {
|
|
|
18427
18473
|
return;
|
|
18428
18474
|
}
|
|
18429
18475
|
if (intent.kind === "recall") {
|
|
18430
|
-
const { searchPersistentMemories: searchPersistentMemories2, touchMemoryReferences: touchMemoryReferences2 } = await import("./persistent-memory-
|
|
18476
|
+
const { searchPersistentMemories: searchPersistentMemories2, touchMemoryReferences: touchMemoryReferences2 } = await import("./persistent-memory-2AWOTKKK.js");
|
|
18431
18477
|
const { searchChatMemory: searchChatMemory2 } = await import("./chat-index-DGUOUUQW.js");
|
|
18432
18478
|
const persistentHits = searchPersistentMemories2(configDir, intent.query, process.cwd(), 3);
|
|
18433
18479
|
if (persistentHits.length > 0) {
|
|
@@ -18548,7 +18594,7 @@ async function handleMemory(args, ctx) {
|
|
|
18548
18594
|
ctx.handleMemoryManage(intent.action, args[1], intent.action === "expire" ? args[2] : void 0);
|
|
18549
18595
|
} else if (intent.kind === "export") {
|
|
18550
18596
|
if (args[1] === "md") {
|
|
18551
|
-
const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-
|
|
18597
|
+
const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-2AWOTKKK.js");
|
|
18552
18598
|
ctx.send({
|
|
18553
18599
|
type: "export_data",
|
|
18554
18600
|
format: "md",
|
|
@@ -19553,7 +19599,7 @@ No tools match "${filter}".
|
|
|
19553
19599
|
const { join: join29 } = await import("path");
|
|
19554
19600
|
const { existsSync: existsSync33 } = await import("fs");
|
|
19555
19601
|
const { getGitRoot: getGitRoot2 } = await import("./git-context-VNCA2GU7.js");
|
|
19556
|
-
const { MCP_PROJECT_CONFIG_NAME: MCP_PROJECT_CONFIG_NAME2 } = await import("./constants-
|
|
19602
|
+
const { MCP_PROJECT_CONFIG_NAME: MCP_PROJECT_CONFIG_NAME2 } = await import("./constants-3VGUBD6L.js");
|
|
19557
19603
|
const { approveProject, hashMcpFile } = await import("./project-trust-MUG325AW.js");
|
|
19558
19604
|
const cwd = process.cwd();
|
|
19559
19605
|
const projectRoot = getGitRoot2(cwd) ?? cwd;
|
|
@@ -20472,7 +20518,7 @@ function createReviewCommands() {
|
|
|
20472
20518
|
usage: "/test [command|filter]",
|
|
20473
20519
|
async execute(args, ctx) {
|
|
20474
20520
|
try {
|
|
20475
|
-
const { executeTests } = await import("./run-tests-
|
|
20521
|
+
const { executeTests } = await import("./run-tests-3JIOK2H4.js");
|
|
20476
20522
|
const argStr = args.join(" ").trim();
|
|
20477
20523
|
let testArgs = {};
|
|
20478
20524
|
if (argStr) {
|
|
@@ -158,7 +158,7 @@ ${content}`);
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
async function runTaskMode(config, providers, configManager, topic) {
|
|
161
|
-
const { TaskOrchestrator } = await import("./task-orchestrator-
|
|
161
|
+
const { TaskOrchestrator } = await import("./task-orchestrator-ZNLQD2SM.js");
|
|
162
162
|
const orchestrator = new TaskOrchestrator(config, providers, configManager);
|
|
163
163
|
let interrupted = false;
|
|
164
164
|
const onSigint = () => {
|
package/dist/index.js
CHANGED
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
setupProxy,
|
|
25
25
|
snapshotFile,
|
|
26
26
|
stripRoutingTags
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ZBFNKCH4.js";
|
|
28
28
|
import {
|
|
29
29
|
CostTracker,
|
|
30
30
|
getPricing,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
setMaxOutputCap,
|
|
50
50
|
spawnAgentContext,
|
|
51
51
|
undoStack
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-4CEF4ROO.js";
|
|
53
53
|
import "./chunk-HLWUDRBO.js";
|
|
54
54
|
import {
|
|
55
55
|
NO_THINKING,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
countPendingMemories,
|
|
63
63
|
detectStaleLegacyMarkdownEdit,
|
|
64
64
|
formatMemoryForPrompt
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-NJ2E3ZYE.js";
|
|
66
66
|
import "./chunk-4DEMGCK4.js";
|
|
67
67
|
import "./chunk-UUSRWSSX.js";
|
|
68
68
|
import "./chunk-CKH4KQ4E.js";
|
|
@@ -83,14 +83,14 @@ import {
|
|
|
83
83
|
import {
|
|
84
84
|
loadContextFiles,
|
|
85
85
|
writeCrashLog
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-YFCGMH2R.js";
|
|
87
87
|
import {
|
|
88
88
|
getActivePluginAssets,
|
|
89
89
|
getPendingHookTrust,
|
|
90
90
|
installFlushOnExit,
|
|
91
91
|
mergePluginHooks,
|
|
92
92
|
runLifecycleHooks
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-LNGH6PEC.js";
|
|
94
94
|
import "./chunk-RS7SKYTS.js";
|
|
95
95
|
import {
|
|
96
96
|
ProviderRegistry,
|
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
} from "./chunk-FBOVBL7P.js";
|
|
99
99
|
import {
|
|
100
100
|
ConfigManager
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-RPI74YNP.js";
|
|
102
102
|
import {
|
|
103
103
|
CONTENT_ONLY_STREAM_REMINDER,
|
|
104
104
|
TEE_FINAL_USER_NUDGE,
|
|
@@ -132,7 +132,7 @@ import {
|
|
|
132
132
|
} from "./chunk-IW3Q7AE5.js";
|
|
133
133
|
import "./chunk-XNFIYS7G.js";
|
|
134
134
|
import "./chunk-4BKXL7SM.js";
|
|
135
|
-
import "./chunk-
|
|
135
|
+
import "./chunk-MZCMJC3K.js";
|
|
136
136
|
import {
|
|
137
137
|
AGENTIC_BEHAVIOR_GUIDELINE,
|
|
138
138
|
AUTHOR,
|
|
@@ -149,7 +149,7 @@ import {
|
|
|
149
149
|
SKILLS_DIR_NAME,
|
|
150
150
|
VERSION,
|
|
151
151
|
buildUserIdentityPrompt
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-2MOYOMY5.js";
|
|
153
153
|
|
|
154
154
|
// src/index.ts
|
|
155
155
|
import { program } from "commander";
|
|
@@ -4005,7 +4005,7 @@ program.command("web").description("Start Web UI server with browser-based chat
|
|
|
4005
4005
|
console.error("Error: Invalid port number. Must be between 1 and 65535.");
|
|
4006
4006
|
process.exit(1);
|
|
4007
4007
|
}
|
|
4008
|
-
const { startWebServer } = await import("./server-
|
|
4008
|
+
const { startWebServer } = await import("./server-4V3F2WSC.js");
|
|
4009
4009
|
await startWebServer({ port, host: options.host });
|
|
4010
4010
|
});
|
|
4011
4011
|
program.command("user [action] [username]").description("Manage Web UI users (list | create <name> | delete <name> | reset-password <name> | logout-all <name> | migrate <name>)").action(async (action, username) => {
|
|
@@ -4172,11 +4172,11 @@ program.command("sessions").description("List recent conversation sessions").opt
|
|
|
4172
4172
|
console.log(footer + "\n");
|
|
4173
4173
|
});
|
|
4174
4174
|
program.command("usage").description("Show token + cost usage grouped by provider/model (cross-session)").option("--days <n>", "Only the last N days (inclusive of today)").option("--month <ym>", "Only a specific month, format YYYY-MM (e.g. 2026-06)").option("--json", "Output as JSON (for scripting)").action(async (options) => {
|
|
4175
|
-
const { runUsageCli } = await import("./usage-
|
|
4175
|
+
const { runUsageCli } = await import("./usage-ZS3LZOUI.js");
|
|
4176
4176
|
await runUsageCli(options);
|
|
4177
4177
|
});
|
|
4178
4178
|
program.command("doctor").description("Health check: API keys, config, MCP, recent crashes, tool usage, disk usage").option("--json", "Output as JSON (for scripting)").option("--reset-stats", "Reset accumulated tool usage statistics").action(async (options) => {
|
|
4179
|
-
const { runDoctorCli } = await import("./doctor-cli-
|
|
4179
|
+
const { runDoctorCli } = await import("./doctor-cli-5KEROB3Z.js");
|
|
4180
4180
|
const argv = process.argv.slice(2);
|
|
4181
4181
|
await runDoctorCli({
|
|
4182
4182
|
json: !!options.json || argv.includes("--json"),
|
|
@@ -4185,7 +4185,7 @@ program.command("doctor").description("Health check: API keys, config, MCP, rece
|
|
|
4185
4185
|
});
|
|
4186
4186
|
program.command("batch <action> [arg] [arg2]").description("Anthropic Message Batches: submit | list | status <id> | results <id> [out] | cancel <id>").option("--dry-run", "Parse and validate input without submitting (submit only)").action(async (action, arg, arg2, options) => {
|
|
4187
4187
|
try {
|
|
4188
|
-
const batch = await import("./batch-
|
|
4188
|
+
const batch = await import("./batch-ESHQ5NMB.js");
|
|
4189
4189
|
switch (action) {
|
|
4190
4190
|
case "submit":
|
|
4191
4191
|
if (!arg) {
|
|
@@ -4228,7 +4228,7 @@ program.command("batch <action> [arg] [arg2]").description("Anthropic Message Ba
|
|
|
4228
4228
|
}
|
|
4229
4229
|
});
|
|
4230
4230
|
program.command("mcp-serve").description("Start an MCP server over STDIO, exposing aicli's built-in tools to Claude Desktop / Cursor / other MCP clients").option("--allow-destructive", "Allow bash / run_interactive / task_create (always destructive in MCP mode)").option("--allow-outside-cwd", "Allow tool path arguments to escape the sandbox root \u2014 disabled by default").option("--tools <list>", "Comma-separated whitelist of tools to expose (default: all eligible tools)").option("--cwd <path>", "Working directory AND sandbox root (default: current directory)").action(async (options) => {
|
|
4231
|
-
const { startMcpServer } = await import("./server-
|
|
4231
|
+
const { startMcpServer } = await import("./server-L53NTLYW.js");
|
|
4232
4232
|
await startMcpServer({
|
|
4233
4233
|
allowDestructive: !!options.allowDestructive,
|
|
4234
4234
|
allowOutsideCwd: !!options.allowOutsideCwd,
|
|
@@ -4241,7 +4241,7 @@ program.command("pr <action> [target]").description("PR review helpers: review |
|
|
|
4241
4241
|
console.error(`Unknown pr action: ${action}. Use review | security-review | summarize.`);
|
|
4242
4242
|
process.exit(1);
|
|
4243
4243
|
}
|
|
4244
|
-
const { runPrCli } = await import("./pr-
|
|
4244
|
+
const { runPrCli } = await import("./pr-IFMDC3I4.js");
|
|
4245
4245
|
const result = await runPrCli({
|
|
4246
4246
|
action,
|
|
4247
4247
|
target,
|
|
@@ -4261,8 +4261,8 @@ program.command("pr <action> [target]").description("PR review helpers: review |
|
|
|
4261
4261
|
process.exit(result.exitCode);
|
|
4262
4262
|
});
|
|
4263
4263
|
program.command("ci").description("Headless PR review (code + security) \u2014 reads git/gh diff, optionally posts to PR. Designed for GitHub Actions.").option("--pr <num>", "PR number or URL; diff fetched via gh pr diff <value>", (v) => /^#?\d+$/.test(v) ? parseInt(v.replace(/^#/, ""), 10) : v).option("--base <ref>", "Base ref for git diff <ref>...HEAD (ignored when --pr set)").option("--post", "Post review as a PR comment (requires gh CLI + GH_TOKEN, needs --pr)").option("--no-update", "Always create a new comment instead of updating the previous aicli review").option("--skip-code", "Skip the code review section").option("--skip-security", "Skip the security review section").option("--detailed", "Use the detailed code-review prompt").option("--max-diff <n>", "Max diff chars sent to the model (default 30000)", (v) => parseInt(v, 10)).option("--provider <id>", "Override provider (default: config.defaultProvider)").option("--model <id>", "Override model").option("--dry-run", "Print result to stdout instead of posting (overrides --post)").option("--json", "Output a structured JSON report").option("--markdown", "Output Markdown report (default)").option("--sarif", "Output SARIF 2.1.0 for code scanning artifacts").option("--fail-on-security-high", "Fail when the security review contains HIGH/CRITICAL findings (default)").option("--no-fail-on-security-high", "Do not fail on security HIGH/CRITICAL findings").option("--fail-on-test-failure", "Fail when the report mentions test failures (default)").option("--no-fail-on-test-failure", "Do not fail on test failure findings").option("--fail-on-lint-failure", "Fail when the report mentions lint/typecheck failures (default)").option("--no-fail-on-lint-failure", "Do not fail on lint/typecheck failure findings").action(async (options) => {
|
|
4264
|
-
const { runCi } = await import("./ci-
|
|
4265
|
-
const { formatCiResult } = await import("./ci-format-
|
|
4264
|
+
const { runCi } = await import("./ci-5NGCQYUX.js");
|
|
4265
|
+
const { formatCiResult } = await import("./ci-format-EKOB2WRP.js");
|
|
4266
4266
|
const formats = [options.json, options.markdown, options.sarif].filter(Boolean).length;
|
|
4267
4267
|
if (formats > 1) {
|
|
4268
4268
|
console.error("Choose only one output format: --json, --markdown, or --sarif.");
|
|
@@ -4421,7 +4421,7 @@ program.command("hub [topic]").description("Start multi-agent hub (discuss / bra
|
|
|
4421
4421
|
config.get("customProviders"),
|
|
4422
4422
|
config.getConfigDir()
|
|
4423
4423
|
);
|
|
4424
|
-
const { startHub } = await import("./hub-
|
|
4424
|
+
const { startHub } = await import("./hub-ARZNS7IH.js");
|
|
4425
4425
|
await startHub(
|
|
4426
4426
|
{
|
|
4427
4427
|
topic: topic ?? "",
|
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
touchMemoryReferences,
|
|
28
28
|
updateMemoryApproval,
|
|
29
29
|
updateMemoryEntry
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-QL5HASTV.js";
|
|
31
31
|
import "./chunk-FSC6KEWU.js";
|
|
32
32
|
import "./chunk-6BUTA5VW.js";
|
|
33
33
|
import "./chunk-CGLYJRFA.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-KQLKS3ZQ.js";
|
|
35
35
|
export {
|
|
36
36
|
addMemoryEntry,
|
|
37
37
|
backupMemoryStore,
|
|
@@ -28,11 +28,11 @@ import {
|
|
|
28
28
|
touchMemoryReferences,
|
|
29
29
|
updateMemoryApproval,
|
|
30
30
|
updateMemoryEntry
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-NJ2E3ZYE.js";
|
|
32
32
|
import "./chunk-3FEZSLGI.js";
|
|
33
33
|
import "./chunk-HOSJZMQS.js";
|
|
34
34
|
import "./chunk-IW3Q7AE5.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-2MOYOMY5.js";
|
|
36
36
|
export {
|
|
37
37
|
addMemoryEntry,
|
|
38
38
|
backupMemoryStore,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import {
|
|
3
3
|
countSeverity,
|
|
4
4
|
runCi
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-34TV5BBH.js";
|
|
6
|
+
import "./chunk-ZMIAVBFY.js";
|
|
7
7
|
import {
|
|
8
8
|
buildReviewPrompt,
|
|
9
9
|
buildSecurityReviewPrompt,
|
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
} from "./chunk-FBOVBL7P.js";
|
|
18
18
|
import {
|
|
19
19
|
ConfigManager
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-RPI74YNP.js";
|
|
21
21
|
import "./chunk-Y56UGZPX.js";
|
|
22
22
|
import "./chunk-TU3L3PW7.js";
|
|
23
23
|
import "./chunk-IW3Q7AE5.js";
|
|
24
24
|
import {
|
|
25
25
|
VERSION
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-2MOYOMY5.js";
|
|
27
27
|
|
|
28
28
|
// src/cli/pr.ts
|
|
29
29
|
import { execFileSync } from "child_process";
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
skillHistoryNote,
|
|
82
82
|
snapshotFile,
|
|
83
83
|
stripRoutingTags
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-ZBFNKCH4.js";
|
|
85
85
|
import {
|
|
86
86
|
CNY_PER_USD,
|
|
87
87
|
CostTracker,
|
|
@@ -126,7 +126,7 @@ import {
|
|
|
126
126
|
spawnAgentContext,
|
|
127
127
|
truncateOutput,
|
|
128
128
|
undoStack
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-4CEF4ROO.js";
|
|
130
130
|
import {
|
|
131
131
|
buildReviewPrompt,
|
|
132
132
|
buildSecurityReviewPrompt
|
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
restoreMemoryEntries,
|
|
154
154
|
updateMemoryApproval,
|
|
155
155
|
updateMemoryEntry
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-NJ2E3ZYE.js";
|
|
157
157
|
import "./chunk-4DEMGCK4.js";
|
|
158
158
|
import "./chunk-UUSRWSSX.js";
|
|
159
159
|
import "./chunk-CKH4KQ4E.js";
|
|
@@ -172,7 +172,7 @@ import {
|
|
|
172
172
|
buildDoctorReport,
|
|
173
173
|
formatDoctorReport,
|
|
174
174
|
loadContextFiles
|
|
175
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-YFCGMH2R.js";
|
|
176
176
|
import {
|
|
177
177
|
describePlugin,
|
|
178
178
|
getActivePluginAssets,
|
|
@@ -187,14 +187,14 @@ import {
|
|
|
187
187
|
runTool,
|
|
188
188
|
setPluginEnabled,
|
|
189
189
|
trustPlugin
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-LNGH6PEC.js";
|
|
191
191
|
import "./chunk-RS7SKYTS.js";
|
|
192
192
|
import {
|
|
193
193
|
ProviderRegistry
|
|
194
194
|
} from "./chunk-FBOVBL7P.js";
|
|
195
195
|
import {
|
|
196
196
|
ConfigManager
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-RPI74YNP.js";
|
|
198
198
|
import {
|
|
199
199
|
CONTENT_ONLY_STREAM_REMINDER,
|
|
200
200
|
TEE_FINAL_USER_NUDGE,
|
|
@@ -225,7 +225,7 @@ import {
|
|
|
225
225
|
maskConfigSecrets
|
|
226
226
|
} from "./chunk-XNFIYS7G.js";
|
|
227
227
|
import "./chunk-4BKXL7SM.js";
|
|
228
|
-
import "./chunk-
|
|
228
|
+
import "./chunk-MZCMJC3K.js";
|
|
229
229
|
import {
|
|
230
230
|
AGENTIC_BEHAVIOR_GUIDELINE,
|
|
231
231
|
AUTHOR,
|
|
@@ -241,7 +241,7 @@ import {
|
|
|
241
241
|
SKILLS_DIR_NAME,
|
|
242
242
|
VERSION,
|
|
243
243
|
buildUserIdentityPrompt
|
|
244
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-2MOYOMY5.js";
|
|
245
245
|
|
|
246
246
|
// src/web/server.ts
|
|
247
247
|
import express from "express";
|
|
@@ -930,7 +930,7 @@ Cache: write=${cacheCreate} read=${cacheRead}` : "";
|
|
|
930
930
|
Cost: ${formatCost(cost)}` : "";
|
|
931
931
|
let memoryLine = "";
|
|
932
932
|
try {
|
|
933
|
-
const { countPendingMemories: countPendingMemories2 } = await import("./persistent-memory-
|
|
933
|
+
const { countPendingMemories: countPendingMemories2 } = await import("./persistent-memory-KKEM3K5D.js");
|
|
934
934
|
const pending = countPendingMemories2(ctx.config.getConfigDir());
|
|
935
935
|
if (pending > 0) memoryLine = `
|
|
936
936
|
Memory: \u26A0 ${pending} pending approval \u2014 see the Memory panel or /memory`;
|
|
@@ -1854,7 +1854,7 @@ async function handleTest(args, ctx) {
|
|
|
1854
1854
|
const isCommand = argStr.includes(" ") || /^(mvn|gradle|npm|pytest|cargo|go)\b/.test(argStr);
|
|
1855
1855
|
testArgs = isCommand ? { command: argStr } : { filter: argStr };
|
|
1856
1856
|
}
|
|
1857
|
-
const runTests = ctx.runTests ?? (await import("./run-tests-
|
|
1857
|
+
const runTests = ctx.runTests ?? (await import("./run-tests-LEY4IOUG.js")).executeTests;
|
|
1858
1858
|
const report = await runTests(testArgs);
|
|
1859
1859
|
ctx.send({ type: "info", message: report });
|
|
1860
1860
|
} catch (err) {
|
|
@@ -2129,7 +2129,7 @@ async function handleMemory(args, ctx) {
|
|
|
2129
2129
|
}
|
|
2130
2130
|
if (intent.kind === "status") {
|
|
2131
2131
|
const { getChatIndexStatus } = await import("./chat-index-2D5GK2DB.js");
|
|
2132
|
-
const { listMemoryEntries: listMemoryEntries2, isMemoryExpired: isMemoryExpired2, formatMemoryForPrompt: formatMemoryForPrompt2 } = await import("./persistent-memory-
|
|
2132
|
+
const { listMemoryEntries: listMemoryEntries2, isMemoryExpired: isMemoryExpired2, formatMemoryForPrompt: formatMemoryForPrompt2 } = await import("./persistent-memory-KKEM3K5D.js");
|
|
2133
2133
|
const memories = listMemoryEntries2(configDir, { includeExpired: true, includeRejected: true });
|
|
2134
2134
|
const injected = formatMemoryForPrompt2(configDir, process.cwd(), ctx.config.get("memory")?.maxChars);
|
|
2135
2135
|
const view = buildMemoryStatusView({
|
|
@@ -2152,7 +2152,7 @@ async function handleMemory(args, ctx) {
|
|
|
2152
2152
|
return;
|
|
2153
2153
|
}
|
|
2154
2154
|
if (intent.kind === "recall") {
|
|
2155
|
-
const { searchPersistentMemories, touchMemoryReferences } = await import("./persistent-memory-
|
|
2155
|
+
const { searchPersistentMemories, touchMemoryReferences } = await import("./persistent-memory-KKEM3K5D.js");
|
|
2156
2156
|
const { searchChatMemory } = await import("./chat-index-2D5GK2DB.js");
|
|
2157
2157
|
const persistentHits = searchPersistentMemories(configDir, intent.query, process.cwd(), 3);
|
|
2158
2158
|
if (persistentHits.length > 0) {
|
|
@@ -2273,7 +2273,7 @@ async function handleMemory(args, ctx) {
|
|
|
2273
2273
|
ctx.handleMemoryManage(intent.action, args[1], intent.action === "expire" ? args[2] : void 0);
|
|
2274
2274
|
} else if (intent.kind === "export") {
|
|
2275
2275
|
if (args[1] === "md") {
|
|
2276
|
-
const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-
|
|
2276
|
+
const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-KKEM3K5D.js");
|
|
2277
2277
|
ctx.send({
|
|
2278
2278
|
type: "export_data",
|
|
2279
2279
|
format: "md",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
ToolRegistry
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4CEF4ROO.js";
|
|
5
5
|
import "./chunk-GHWZVPUV.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-NJ2E3ZYE.js";
|
|
7
7
|
import "./chunk-4DEMGCK4.js";
|
|
8
8
|
import "./chunk-UUSRWSSX.js";
|
|
9
9
|
import "./chunk-CKH4KQ4E.js";
|
|
@@ -14,7 +14,7 @@ import "./chunk-NYNSYLFY.js";
|
|
|
14
14
|
import "./chunk-3FEZSLGI.js";
|
|
15
15
|
import {
|
|
16
16
|
runTool
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LNGH6PEC.js";
|
|
18
18
|
import "./chunk-RS7SKYTS.js";
|
|
19
19
|
import {
|
|
20
20
|
getDangerLevel,
|
|
@@ -24,10 +24,10 @@ import "./chunk-TU3L3PW7.js";
|
|
|
24
24
|
import "./chunk-HOSJZMQS.js";
|
|
25
25
|
import "./chunk-IW3Q7AE5.js";
|
|
26
26
|
import "./chunk-4BKXL7SM.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-MZCMJC3K.js";
|
|
28
28
|
import {
|
|
29
29
|
VERSION
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-2MOYOMY5.js";
|
|
31
31
|
|
|
32
32
|
// src/mcp/server.ts
|
|
33
33
|
import { createInterface } from "readline";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
googleSearchContext,
|
|
5
5
|
isToolCapableProvider,
|
|
6
6
|
truncateOutput
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4CEF4ROO.js";
|
|
8
8
|
import "./chunk-GHWZVPUV.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-NJ2E3ZYE.js";
|
|
10
10
|
import "./chunk-4DEMGCK4.js";
|
|
11
11
|
import "./chunk-UUSRWSSX.js";
|
|
12
12
|
import "./chunk-CKH4KQ4E.js";
|
|
@@ -17,7 +17,7 @@ import "./chunk-NYNSYLFY.js";
|
|
|
17
17
|
import "./chunk-3FEZSLGI.js";
|
|
18
18
|
import {
|
|
19
19
|
runTool
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-LNGH6PEC.js";
|
|
21
21
|
import "./chunk-RS7SKYTS.js";
|
|
22
22
|
import {
|
|
23
23
|
getDangerLevel,
|
|
@@ -29,10 +29,10 @@ import {
|
|
|
29
29
|
atomicWriteFileSync
|
|
30
30
|
} from "./chunk-IW3Q7AE5.js";
|
|
31
31
|
import "./chunk-4BKXL7SM.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-MZCMJC3K.js";
|
|
33
33
|
import {
|
|
34
34
|
SUBAGENT_ALLOWED_TOOLS
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-2MOYOMY5.js";
|
|
36
36
|
|
|
37
37
|
// src/hub/task-orchestrator.ts
|
|
38
38
|
import { createInterface } from "readline";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
import "./chunk-RS7SKYTS.js";
|
|
10
10
|
import {
|
|
11
11
|
ConfigManager
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RPI74YNP.js";
|
|
13
13
|
import "./chunk-TU3L3PW7.js";
|
|
14
14
|
import "./chunk-IW3Q7AE5.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-2MOYOMY5.js";
|
|
16
16
|
|
|
17
17
|
// src/cli/usage.ts
|
|
18
18
|
function classifyRowCost(row) {
|