jinzd-ai-cli 0.4.334 → 0.4.338
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-6UJGEEVB.js → batch-N4DOEUEW.js} +2 -2
- package/dist/{chunk-W4P2KJZN.js → chunk-7BOHS5IX.js} +72 -0
- package/dist/{chunk-SZQ2C3HH.js → chunk-ATOF545W.js} +1 -1
- package/dist/{chunk-7GGWVBHG.js → chunk-DCWBDSMO.js} +2 -2
- package/dist/{chunk-RQOOEXDU.js → chunk-DOO4QAGJ.js} +2 -2
- package/dist/{chunk-XMHVHS2X.js → chunk-DRCN44SZ.js} +4 -4
- package/dist/{chunk-YTAYWGS4.js → chunk-JUYK4OML.js} +1 -1
- package/dist/{chunk-DPUZ22D7.js → chunk-KGHVSYGI.js} +27 -23
- package/dist/{chunk-EOYIIGBJ.js → chunk-NJREBH6A.js} +5 -5
- package/dist/{chunk-FHHBPCCZ.js → chunk-NRFAGZVJ.js} +1 -1
- package/dist/{chunk-YVEBRHSV.js → chunk-OXVJZLJM.js} +6 -5
- package/dist/{chunk-YY4QFBBZ.js → chunk-PKYNCSQC.js} +475 -240
- package/dist/{chunk-KSZEQADY.js → chunk-RIDNF4G2.js} +1 -1
- package/dist/{chunk-27RTBMY7.js → chunk-TTLLXFJC.js} +40 -3
- package/dist/{chunk-DX4Y4CRH.js → chunk-UWEBIOHD.js} +8 -20
- package/dist/{chunk-ZK5VCQD2.js → chunk-WQAUMAEV.js} +1 -1
- package/dist/{ci-S7WXRTZ6.js → ci-HFAPFMZY.js} +6 -6
- package/dist/{ci-format-TPCL2KWQ.js → ci-format-QTRMHY3N.js} +2 -2
- package/dist/{constants-WJAUJAQQ.js → constants-JZH2QKMQ.js} +1 -1
- package/dist/{constants-5VQMHBFU.js → constants-QJNJFMC6.js} +1 -1
- package/dist/{doctor-cli-DYQLNMPT.js → doctor-cli-FZ4IVZ6H.js} +6 -6
- package/dist/electron-server.js +622 -285
- package/dist/{hub-A7P2ZBYB.js → hub-IRILXTL3.js} +1 -1
- package/dist/index.js +25 -23
- package/dist/{persistent-memory-WFGBTGWT.js → persistent-memory-UZIZVHRT.js} +2 -2
- package/dist/{persistent-memory-SKGOCEGT.js → persistent-memory-VRBNWOWN.js} +2 -2
- package/dist/{pr-IPXLVP2K.js → pr-4KNQWYC6.js} +7 -7
- package/dist/{run-tests-BG6SGRWQ.js → run-tests-N2VKD7BU.js} +2 -2
- package/dist/{run-tests-TUTI7HIN.js → run-tests-UXEOFPAW.js} +2 -2
- package/dist/{server-4QJPQBEW.js → server-2VSO2ZX4.js} +6 -6
- package/dist/{server-S6OROC7S.js → server-HWKYWQEP.js} +21 -20
- package/dist/{task-orchestrator-6JG5GAXU.js → task-orchestrator-SC42LAFG.js} +6 -6
- package/dist/{usage-LPQQ6NGG.js → usage-ZVV27BHD.js} +2 -2
- package/dist/web/client/vendor/purify.es.mjs +272 -196
- package/dist/web/client/vendor/purify.es.mjs.br +0 -0
- package/dist/web/client/vendor/purify.es.mjs.gz +0 -0
- package/package.json +6 -3
|
@@ -148,7 +148,7 @@ ${content}`);
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
async function runTaskMode(config, providers, configManager, topic) {
|
|
151
|
-
const { TaskOrchestrator } = await import("./task-orchestrator-
|
|
151
|
+
const { TaskOrchestrator } = await import("./task-orchestrator-SC42LAFG.js");
|
|
152
152
|
const orchestrator = new TaskOrchestrator(config, providers, configManager);
|
|
153
153
|
let interrupted = false;
|
|
154
154
|
const onSigint = () => {
|
package/dist/index.js
CHANGED
|
@@ -21,10 +21,9 @@ import {
|
|
|
21
21
|
readGitDiff,
|
|
22
22
|
saveDevState,
|
|
23
23
|
sessionHasMeaningfulContent,
|
|
24
|
-
setupProxy,
|
|
25
24
|
snapshotFile,
|
|
26
25
|
stripRoutingTags
|
|
27
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-UWEBIOHD.js";
|
|
28
27
|
import {
|
|
29
28
|
CostTracker,
|
|
30
29
|
getPricing,
|
|
@@ -47,7 +46,7 @@ import {
|
|
|
47
46
|
setMaxOutputCap,
|
|
48
47
|
spawnAgentContext,
|
|
49
48
|
undoStack
|
|
50
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-PKYNCSQC.js";
|
|
51
50
|
import "./chunk-HLWUDRBO.js";
|
|
52
51
|
import {
|
|
53
52
|
NO_THINKING,
|
|
@@ -60,7 +59,7 @@ import {
|
|
|
60
59
|
countPendingMemories,
|
|
61
60
|
detectStaleLegacyMarkdownEdit,
|
|
62
61
|
formatMemoryForPrompt
|
|
63
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-WQAUMAEV.js";
|
|
64
63
|
import "./chunk-RWRZVQCB.js";
|
|
65
64
|
import "./chunk-B3MPYI4E.js";
|
|
66
65
|
import "./chunk-M6HLYG33.js";
|
|
@@ -81,23 +80,24 @@ import {
|
|
|
81
80
|
import {
|
|
82
81
|
loadContextFiles,
|
|
83
82
|
writeCrashLog
|
|
84
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-DRCN44SZ.js";
|
|
85
84
|
import {
|
|
86
85
|
getActivePluginAssets,
|
|
87
86
|
getPendingHookTrust,
|
|
88
87
|
installFlushOnExit,
|
|
89
88
|
mergePluginHooks,
|
|
90
89
|
runLifecycleHooks
|
|
91
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-NJREBH6A.js";
|
|
92
91
|
import "./chunk-RS7SKYTS.js";
|
|
93
92
|
import {
|
|
94
93
|
ProviderRegistry,
|
|
95
|
-
listBuiltInProviderMetadata
|
|
96
|
-
|
|
94
|
+
listBuiltInProviderMetadata,
|
|
95
|
+
setupProxy
|
|
96
|
+
} from "./chunk-TTLLXFJC.js";
|
|
97
97
|
import {
|
|
98
98
|
ConfigManager
|
|
99
|
-
} from "./chunk-
|
|
100
|
-
import "./chunk-
|
|
99
|
+
} from "./chunk-KGHVSYGI.js";
|
|
100
|
+
import "./chunk-7BOHS5IX.js";
|
|
101
101
|
import {
|
|
102
102
|
CONTENT_ONLY_STREAM_REMINDER,
|
|
103
103
|
TEE_FINAL_USER_NUDGE,
|
|
@@ -135,7 +135,7 @@ import {
|
|
|
135
135
|
isInterrupted,
|
|
136
136
|
requestInterrupt,
|
|
137
137
|
resetInterrupt
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-DOO4QAGJ.js";
|
|
139
139
|
import {
|
|
140
140
|
AGENTIC_BEHAVIOR_GUIDELINE,
|
|
141
141
|
AUTHOR,
|
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
SKILLS_DIR_NAME,
|
|
154
154
|
VERSION,
|
|
155
155
|
buildUserIdentityPrompt
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-NRFAGZVJ.js";
|
|
157
157
|
import "./chunk-SXIJLSVF.js";
|
|
158
158
|
|
|
159
159
|
// src/index.ts
|
|
@@ -4119,7 +4119,7 @@ program.command("web").description("Start Web UI server with browser-based chat
|
|
|
4119
4119
|
console.error("Error: Invalid port number. Must be between 1 and 65535.");
|
|
4120
4120
|
process.exit(1);
|
|
4121
4121
|
}
|
|
4122
|
-
const { startWebServer, WebStartupError } = await import("./server-
|
|
4122
|
+
const { startWebServer, WebStartupError } = await import("./server-HWKYWQEP.js");
|
|
4123
4123
|
try {
|
|
4124
4124
|
await startWebServer({ port, host: options.host, externalOrigin: options.externalOrigin });
|
|
4125
4125
|
} catch (err) {
|
|
@@ -4296,11 +4296,11 @@ program.command("sessions").description("List recent conversation sessions").opt
|
|
|
4296
4296
|
console.log(footer + "\n");
|
|
4297
4297
|
});
|
|
4298
4298
|
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) => {
|
|
4299
|
-
const { runUsageCli } = await import("./usage-
|
|
4299
|
+
const { runUsageCli } = await import("./usage-ZVV27BHD.js");
|
|
4300
4300
|
await runUsageCli(options);
|
|
4301
4301
|
});
|
|
4302
4302
|
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) => {
|
|
4303
|
-
const { runDoctorCli } = await import("./doctor-cli-
|
|
4303
|
+
const { runDoctorCli } = await import("./doctor-cli-FZ4IVZ6H.js");
|
|
4304
4304
|
const argv = process.argv.slice(2);
|
|
4305
4305
|
await runDoctorCli({
|
|
4306
4306
|
json: !!options.json || argv.includes("--json"),
|
|
@@ -4309,7 +4309,7 @@ program.command("doctor").description("Health check: API keys, config, MCP, rece
|
|
|
4309
4309
|
});
|
|
4310
4310
|
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) => {
|
|
4311
4311
|
try {
|
|
4312
|
-
const batch = await import("./batch-
|
|
4312
|
+
const batch = await import("./batch-N4DOEUEW.js");
|
|
4313
4313
|
switch (action) {
|
|
4314
4314
|
case "submit":
|
|
4315
4315
|
if (!arg) {
|
|
@@ -4352,7 +4352,7 @@ program.command("batch <action> [arg] [arg2]").description("Anthropic Message Ba
|
|
|
4352
4352
|
}
|
|
4353
4353
|
});
|
|
4354
4354
|
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) => {
|
|
4355
|
-
const { startMcpServer } = await import("./server-
|
|
4355
|
+
const { startMcpServer } = await import("./server-2VSO2ZX4.js");
|
|
4356
4356
|
await startMcpServer({
|
|
4357
4357
|
allowDestructive: !!options.allowDestructive,
|
|
4358
4358
|
allowOutsideCwd: !!options.allowOutsideCwd,
|
|
@@ -4365,7 +4365,7 @@ program.command("pr <action> [target]").description("PR review helpers: review |
|
|
|
4365
4365
|
console.error(`Unknown pr action: ${action}. Use review | security-review | summarize.`);
|
|
4366
4366
|
process.exit(1);
|
|
4367
4367
|
}
|
|
4368
|
-
const { runPrCli } = await import("./pr-
|
|
4368
|
+
const { runPrCli } = await import("./pr-4KNQWYC6.js");
|
|
4369
4369
|
const result = await runPrCli({
|
|
4370
4370
|
action,
|
|
4371
4371
|
target,
|
|
@@ -4385,8 +4385,8 @@ program.command("pr <action> [target]").description("PR review helpers: review |
|
|
|
4385
4385
|
process.exit(result.exitCode);
|
|
4386
4386
|
});
|
|
4387
4387
|
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) => {
|
|
4388
|
-
const { runCi } = await import("./ci-
|
|
4389
|
-
const { formatCiResult } = await import("./ci-format-
|
|
4388
|
+
const { runCi } = await import("./ci-HFAPFMZY.js");
|
|
4389
|
+
const { formatCiResult } = await import("./ci-format-QTRMHY3N.js");
|
|
4390
4390
|
const formats = [options.json, options.markdown, options.sarif].filter(Boolean).length;
|
|
4391
4391
|
if (formats > 1) {
|
|
4392
4392
|
console.error("Choose only one output format: --json, --markdown, or --sarif.");
|
|
@@ -4545,7 +4545,7 @@ program.command("hub [topic]").description("Start multi-agent hub (discuss / bra
|
|
|
4545
4545
|
config.get("customProviders"),
|
|
4546
4546
|
config.getConfigDir()
|
|
4547
4547
|
);
|
|
4548
|
-
const { startHub } = await import("./hub-
|
|
4548
|
+
const { startHub } = await import("./hub-IRILXTL3.js");
|
|
4549
4549
|
await startHub(
|
|
4550
4550
|
{
|
|
4551
4551
|
topic: topic ?? "",
|
|
@@ -4618,7 +4618,8 @@ async function runHeadless(options) {
|
|
|
4618
4618
|
(id) => ({
|
|
4619
4619
|
baseUrl: config.get("customBaseUrls")[id],
|
|
4620
4620
|
timeout: config.get("timeouts")[id],
|
|
4621
|
-
proxy: config.get("proxy")
|
|
4621
|
+
proxy: config.get("proxy"),
|
|
4622
|
+
noProxy: config.get("noProxy")
|
|
4622
4623
|
}),
|
|
4623
4624
|
config.get("customProviders"),
|
|
4624
4625
|
config.getConfigDir()
|
|
@@ -4833,7 +4834,8 @@ async function startRepl(options) {
|
|
|
4833
4834
|
(id) => ({
|
|
4834
4835
|
baseUrl: config.get("customBaseUrls")[id],
|
|
4835
4836
|
timeout: config.get("timeouts")[id],
|
|
4836
|
-
proxy: config.get("proxy")
|
|
4837
|
+
proxy: config.get("proxy"),
|
|
4838
|
+
noProxy: config.get("noProxy")
|
|
4837
4839
|
}),
|
|
4838
4840
|
config.get("customProviders"),
|
|
4839
4841
|
config.getConfigDir()
|
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
touchMemoryReferences,
|
|
28
28
|
updateMemoryApproval,
|
|
29
29
|
updateMemoryEntry
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-JUYK4OML.js";
|
|
31
31
|
import "./chunk-FSC6KEWU.js";
|
|
32
32
|
import "./chunk-2XMUCC42.js";
|
|
33
33
|
import "./chunk-CGLYJRFA.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-ATOF545W.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-WQAUMAEV.js";
|
|
32
32
|
import "./chunk-3FEZSLGI.js";
|
|
33
33
|
import "./chunk-HOSJZMQS.js";
|
|
34
34
|
import "./chunk-BMLQPSHP.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-NRFAGZVJ.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-OXVJZLJM.js";
|
|
6
|
+
import "./chunk-RIDNF4G2.js";
|
|
7
7
|
import {
|
|
8
8
|
buildReviewPrompt,
|
|
9
9
|
buildSecurityReviewPrompt,
|
|
@@ -14,17 +14,17 @@ import {
|
|
|
14
14
|
} from "./chunk-6YZEZFX5.js";
|
|
15
15
|
import {
|
|
16
16
|
ProviderRegistry
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TTLLXFJC.js";
|
|
18
18
|
import {
|
|
19
19
|
ConfigManager
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-KGHVSYGI.js";
|
|
21
|
+
import "./chunk-7BOHS5IX.js";
|
|
22
22
|
import "./chunk-C6GA7H5D.js";
|
|
23
23
|
import "./chunk-TU3L3PW7.js";
|
|
24
24
|
import "./chunk-BMLQPSHP.js";
|
|
25
25
|
import {
|
|
26
26
|
VERSION
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-NRFAGZVJ.js";
|
|
28
28
|
|
|
29
29
|
// src/cli/pr.ts
|
|
30
30
|
import { execFileSync } from "child_process";
|
|
@@ -182,7 +182,7 @@ async function getProvider(opts) {
|
|
|
182
182
|
const registry = new ProviderRegistry();
|
|
183
183
|
await registry.initialize(
|
|
184
184
|
(id) => config.getApiKey(id),
|
|
185
|
-
(id) => ({ baseUrl: config.get("customBaseUrls")[id], timeout: config.get("timeouts")[id], proxy: config.get("proxy") }),
|
|
185
|
+
(id) => ({ baseUrl: config.get("customBaseUrls")[id], timeout: config.get("timeouts")[id], proxy: config.get("proxy"), noProxy: config.get("noProxy") }),
|
|
186
186
|
config.get("customProviders"),
|
|
187
187
|
config.getConfigDir()
|
|
188
188
|
);
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
executeTests,
|
|
3
3
|
runTestProcess,
|
|
4
4
|
runTestsTool
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DCWBDSMO.js";
|
|
6
6
|
import "./chunk-QMFMST2T.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-ATOF545W.js";
|
|
8
8
|
export {
|
|
9
9
|
executeTests,
|
|
10
10
|
runTestProcess,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
ToolRegistry
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PKYNCSQC.js";
|
|
5
5
|
import "./chunk-6JHACXB3.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-WQAUMAEV.js";
|
|
7
7
|
import "./chunk-RWRZVQCB.js";
|
|
8
8
|
import "./chunk-B3MPYI4E.js";
|
|
9
9
|
import "./chunk-M6HLYG33.js";
|
|
@@ -14,21 +14,21 @@ import "./chunk-JL44HGZC.js";
|
|
|
14
14
|
import "./chunk-3FEZSLGI.js";
|
|
15
15
|
import {
|
|
16
16
|
runTool
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NJREBH6A.js";
|
|
18
18
|
import "./chunk-RS7SKYTS.js";
|
|
19
19
|
import {
|
|
20
20
|
getDangerLevel,
|
|
21
21
|
schemaToJsonSchema
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7BOHS5IX.js";
|
|
23
23
|
import "./chunk-C6GA7H5D.js";
|
|
24
24
|
import "./chunk-TU3L3PW7.js";
|
|
25
25
|
import "./chunk-HOSJZMQS.js";
|
|
26
26
|
import "./chunk-BMLQPSHP.js";
|
|
27
27
|
import "./chunk-JJFJWD35.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-DOO4QAGJ.js";
|
|
29
29
|
import {
|
|
30
30
|
VERSION
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-NRFAGZVJ.js";
|
|
32
32
|
import "./chunk-SXIJLSVF.js";
|
|
33
33
|
|
|
34
34
|
// src/mcp/server.ts
|
|
@@ -84,11 +84,10 @@ import {
|
|
|
84
84
|
sessionListJsonRow,
|
|
85
85
|
sessionListNeedsFileSize,
|
|
86
86
|
sessionListSummary,
|
|
87
|
-
setupProxy,
|
|
88
87
|
skillHistoryNote,
|
|
89
88
|
snapshotFile,
|
|
90
89
|
stripRoutingTags
|
|
91
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-UWEBIOHD.js";
|
|
92
91
|
import {
|
|
93
92
|
CNY_PER_USD,
|
|
94
93
|
CostTracker,
|
|
@@ -132,7 +131,7 @@ import {
|
|
|
132
131
|
spawnAgentContext,
|
|
133
132
|
truncateOutput,
|
|
134
133
|
undoStack
|
|
135
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-PKYNCSQC.js";
|
|
136
135
|
import {
|
|
137
136
|
buildReviewPrompt,
|
|
138
137
|
buildSecurityReviewPrompt
|
|
@@ -159,7 +158,7 @@ import {
|
|
|
159
158
|
restoreMemoryEntries,
|
|
160
159
|
updateMemoryApproval,
|
|
161
160
|
updateMemoryEntry
|
|
162
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-WQAUMAEV.js";
|
|
163
162
|
import "./chunk-RWRZVQCB.js";
|
|
164
163
|
import "./chunk-B3MPYI4E.js";
|
|
165
164
|
import "./chunk-M6HLYG33.js";
|
|
@@ -178,7 +177,7 @@ import {
|
|
|
178
177
|
buildDoctorReport,
|
|
179
178
|
formatDoctorReport,
|
|
180
179
|
loadContextFiles
|
|
181
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-DRCN44SZ.js";
|
|
182
181
|
import {
|
|
183
182
|
describePlugin,
|
|
184
183
|
getActivePluginAssets,
|
|
@@ -193,17 +192,18 @@ import {
|
|
|
193
192
|
runTool,
|
|
194
193
|
setPluginEnabled,
|
|
195
194
|
trustPlugin
|
|
196
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-NJREBH6A.js";
|
|
197
196
|
import "./chunk-RS7SKYTS.js";
|
|
198
197
|
import {
|
|
199
|
-
ProviderRegistry
|
|
200
|
-
|
|
198
|
+
ProviderRegistry,
|
|
199
|
+
setupProxy
|
|
200
|
+
} from "./chunk-TTLLXFJC.js";
|
|
201
201
|
import {
|
|
202
202
|
ConfigManager
|
|
203
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-KGHVSYGI.js";
|
|
204
204
|
import {
|
|
205
205
|
getDangerLevel
|
|
206
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-7BOHS5IX.js";
|
|
207
207
|
import {
|
|
208
208
|
CONTENT_ONLY_STREAM_REMINDER,
|
|
209
209
|
TEE_FINAL_USER_NUDGE,
|
|
@@ -235,7 +235,7 @@ import {
|
|
|
235
235
|
import {
|
|
236
236
|
assertReadablePath
|
|
237
237
|
} from "./chunk-JJFJWD35.js";
|
|
238
|
-
import "./chunk-
|
|
238
|
+
import "./chunk-DOO4QAGJ.js";
|
|
239
239
|
import {
|
|
240
240
|
AGENTIC_BEHAVIOR_GUIDELINE,
|
|
241
241
|
AUTHOR,
|
|
@@ -251,7 +251,7 @@ import {
|
|
|
251
251
|
SKILLS_DIR_NAME,
|
|
252
252
|
VERSION,
|
|
253
253
|
buildUserIdentityPrompt
|
|
254
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-NRFAGZVJ.js";
|
|
255
255
|
import {
|
|
256
256
|
runWithExecutionContext,
|
|
257
257
|
runWithSessionKey
|
|
@@ -983,7 +983,7 @@ Cache: write=${cacheCreate} read=${cacheRead}` : "";
|
|
|
983
983
|
Cost: ${formatCost(cost)}` : "";
|
|
984
984
|
let memoryLine = "";
|
|
985
985
|
try {
|
|
986
|
-
const { countPendingMemories: countPendingMemories2 } = await import("./persistent-memory-
|
|
986
|
+
const { countPendingMemories: countPendingMemories2 } = await import("./persistent-memory-VRBNWOWN.js");
|
|
987
987
|
const pending = countPendingMemories2(ctx.config.getConfigDir());
|
|
988
988
|
if (pending > 0) memoryLine = `
|
|
989
989
|
Memory: \u26A0 ${pending} pending approval \u2014 see the Memory panel or /memory`;
|
|
@@ -1912,7 +1912,7 @@ async function handleTest(args, ctx) {
|
|
|
1912
1912
|
const isCommand = argStr.includes(" ") || /^(mvn|gradle|npm|pytest|cargo|go)\b/.test(argStr);
|
|
1913
1913
|
testArgs = isCommand ? { command: argStr } : { filter: argStr };
|
|
1914
1914
|
}
|
|
1915
|
-
const runTests = ctx.runTests ?? (await import("./run-tests-
|
|
1915
|
+
const runTests = ctx.runTests ?? (await import("./run-tests-N2VKD7BU.js")).executeTests;
|
|
1916
1916
|
const report = await runTests(testArgs);
|
|
1917
1917
|
ctx.send({ type: "info", message: report });
|
|
1918
1918
|
} catch (err) {
|
|
@@ -2188,7 +2188,7 @@ async function handleMemory(args, ctx) {
|
|
|
2188
2188
|
}
|
|
2189
2189
|
if (intent.kind === "status") {
|
|
2190
2190
|
const { getChatIndexStatus } = await import("./chat-index-7CLR4CBG.js");
|
|
2191
|
-
const { listMemoryEntries: listMemoryEntries2, isMemoryExpired: isMemoryExpired2, formatMemoryForPrompt: formatMemoryForPrompt2 } = await import("./persistent-memory-
|
|
2191
|
+
const { listMemoryEntries: listMemoryEntries2, isMemoryExpired: isMemoryExpired2, formatMemoryForPrompt: formatMemoryForPrompt2 } = await import("./persistent-memory-VRBNWOWN.js");
|
|
2192
2192
|
const memories = listMemoryEntries2(configDir, { includeExpired: true, includeRejected: true });
|
|
2193
2193
|
const injected = formatMemoryForPrompt2(configDir, process.cwd(), ctx.config.get("memory")?.maxChars);
|
|
2194
2194
|
const view = buildMemoryStatusView({
|
|
@@ -2211,7 +2211,7 @@ async function handleMemory(args, ctx) {
|
|
|
2211
2211
|
return;
|
|
2212
2212
|
}
|
|
2213
2213
|
if (intent.kind === "recall") {
|
|
2214
|
-
const { searchPersistentMemories, touchMemoryReferences } = await import("./persistent-memory-
|
|
2214
|
+
const { searchPersistentMemories, touchMemoryReferences } = await import("./persistent-memory-VRBNWOWN.js");
|
|
2215
2215
|
const { searchChatMemory } = await import("./chat-index-7CLR4CBG.js");
|
|
2216
2216
|
const persistentHits = searchPersistentMemories(configDir, intent.query, process.cwd(), 3);
|
|
2217
2217
|
if (persistentHits.length > 0) {
|
|
@@ -2332,7 +2332,7 @@ async function handleMemory(args, ctx) {
|
|
|
2332
2332
|
ctx.handleMemoryManage(intent.action, args[1], intent.action === "expire" ? args[2] : void 0);
|
|
2333
2333
|
} else if (intent.kind === "export") {
|
|
2334
2334
|
if (args[1] === "md") {
|
|
2335
|
-
const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-
|
|
2335
|
+
const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-VRBNWOWN.js");
|
|
2336
2336
|
ctx.send({
|
|
2337
2337
|
type: "export_data",
|
|
2338
2338
|
format: "md",
|
|
@@ -3063,7 +3063,8 @@ var SessionHandler = class _SessionHandler {
|
|
|
3063
3063
|
return;
|
|
3064
3064
|
}
|
|
3065
3065
|
case "interjection":
|
|
3066
|
-
this.userInterjection =
|
|
3066
|
+
this.userInterjection = this.userInterjection ? `${this.userInterjection}
|
|
3067
|
+
${msg.content}` : msg.content;
|
|
3067
3068
|
return;
|
|
3068
3069
|
}
|
|
3069
3070
|
}
|
|
@@ -3531,7 +3532,6 @@ ${systemPromptVolatile}` : systemPrompt;
|
|
|
3531
3532
|
if (!this.userInterjection) return null;
|
|
3532
3533
|
const msg = this.userInterjection;
|
|
3533
3534
|
this.userInterjection = null;
|
|
3534
|
-
this.send({ type: "info", message: `\u26A1 Interjection: "${msg}"` });
|
|
3535
3535
|
return msg;
|
|
3536
3536
|
},
|
|
3537
3537
|
onRoundStart: (round, total) => {
|
|
@@ -4427,7 +4427,8 @@ async function startWebServer(options = {}) {
|
|
|
4427
4427
|
(id) => ({
|
|
4428
4428
|
baseUrl: config.get("customBaseUrls")[id],
|
|
4429
4429
|
timeout: config.get("timeouts")[id],
|
|
4430
|
-
proxy: config.get("proxy")
|
|
4430
|
+
proxy: config.get("proxy"),
|
|
4431
|
+
noProxy: config.get("noProxy")
|
|
4431
4432
|
}),
|
|
4432
4433
|
config.get("customProviders"),
|
|
4433
4434
|
config.getConfigDir()
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
googleSearchContext,
|
|
5
5
|
isToolCapableProvider,
|
|
6
6
|
truncateOutput
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PKYNCSQC.js";
|
|
8
8
|
import "./chunk-6JHACXB3.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-WQAUMAEV.js";
|
|
10
10
|
import "./chunk-RWRZVQCB.js";
|
|
11
11
|
import "./chunk-B3MPYI4E.js";
|
|
12
12
|
import "./chunk-M6HLYG33.js";
|
|
@@ -17,11 +17,11 @@ import "./chunk-JL44HGZC.js";
|
|
|
17
17
|
import "./chunk-3FEZSLGI.js";
|
|
18
18
|
import {
|
|
19
19
|
runTool
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-NJREBH6A.js";
|
|
21
21
|
import "./chunk-RS7SKYTS.js";
|
|
22
22
|
import {
|
|
23
23
|
getDangerLevel
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-7BOHS5IX.js";
|
|
25
25
|
import {
|
|
26
26
|
runLeanAgentLoop
|
|
27
27
|
} from "./chunk-C6GA7H5D.js";
|
|
@@ -31,10 +31,10 @@ import {
|
|
|
31
31
|
atomicWriteFileSync
|
|
32
32
|
} from "./chunk-BMLQPSHP.js";
|
|
33
33
|
import "./chunk-JJFJWD35.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-DOO4QAGJ.js";
|
|
35
35
|
import {
|
|
36
36
|
SUBAGENT_ALLOWED_TOOLS
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-NRFAGZVJ.js";
|
|
38
38
|
import "./chunk-SXIJLSVF.js";
|
|
39
39
|
|
|
40
40
|
// src/hub/task-orchestrator.ts
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
import "./chunk-RS7SKYTS.js";
|
|
10
10
|
import {
|
|
11
11
|
ConfigManager
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KGHVSYGI.js";
|
|
13
13
|
import "./chunk-TU3L3PW7.js";
|
|
14
14
|
import "./chunk-BMLQPSHP.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-NRFAGZVJ.js";
|
|
16
16
|
|
|
17
17
|
// src/cli/usage.ts
|
|
18
18
|
function classifyRowCost(row) {
|