jinzd-ai-cli 0.4.333 → 0.4.337
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-TYKULVIK.js → batch-GUQLUOXL.js} +2 -2
- package/dist/{chunk-NRDCQGAN.js → chunk-56IOLQ5E.js} +1 -1
- package/dist/{chunk-ZQFOY5FB.js → chunk-5WUOBFYG.js} +23 -23
- package/dist/{chunk-W4P2KJZN.js → chunk-6SFS6IJH.js} +67 -0
- package/dist/{chunk-JTXHWIBO.js → chunk-7TU4KHMK.js} +1 -1
- package/dist/{chunk-A4KKNBG3.js → chunk-DQBWJG32.js} +422 -236
- package/dist/{chunk-K4AYNZF7.js → chunk-EGRKGP4P.js} +1 -1
- package/dist/{chunk-H4UIWMA5.js → chunk-HXENKVWP.js} +4 -4
- package/dist/{chunk-4TKEA7RE.js → chunk-MAUNCANT.js} +1 -1
- package/dist/{chunk-YIEOU7NG.js → chunk-PWXVC6UZ.js} +5 -5
- package/dist/{chunk-6WQCZTAJ.js → chunk-RVB4GCSQ.js} +4 -4
- package/dist/{chunk-5MUAJ742.js → chunk-SSQARJMS.js} +2 -2
- package/dist/{chunk-3JGBKYCN.js → chunk-VHLZ2ZUQ.js} +7 -7
- package/dist/{chunk-YUQYVOY2.js → chunk-WL4NXDYT.js} +1 -1
- package/dist/{chunk-4RVLGIK3.js → chunk-XF2F2V5Y.js} +1 -1
- package/dist/{chunk-ZQ5HR7XN.js → chunk-YYO6TMOA.js} +1 -1
- package/dist/{ci-MYKIATCI.js → ci-FSMBWLMM.js} +6 -6
- package/dist/{ci-format-QOXT6E3A.js → ci-format-BONCHM6H.js} +2 -2
- package/dist/{constants-C55HE2E5.js → constants-ARJE6QPN.js} +1 -1
- package/dist/{constants-WK2I2UCZ.js → constants-RMAQCGVM.js} +1 -1
- package/dist/{doctor-cli-63GBR2D3.js → doctor-cli-T7D4DPWU.js} +6 -6
- package/dist/electron-server.js +519 -266
- package/dist/{hub-J4FZ4GXX.js → hub-KCYDY3U6.js} +1 -1
- package/dist/index.js +19 -19
- package/dist/{persistent-memory-AEIRTKWX.js → persistent-memory-3RG5Z6WK.js} +2 -2
- package/dist/{persistent-memory-6JN7AWD6.js → persistent-memory-ZO6NGZIV.js} +2 -2
- package/dist/{pr-C53TJRXV.js → pr-W2PPGBYA.js} +6 -6
- package/dist/{run-tests-BKFV3HUZ.js → run-tests-72HGJXD4.js} +2 -2
- package/dist/{run-tests-CZLZW5RL.js → run-tests-BWJEL7PA.js} +2 -2
- package/dist/{server-2GYX4CJC.js → server-WTLNIO23.js} +6 -6
- package/dist/{server-2UB74CEK.js → server-Y3N6RMIN.js} +15 -15
- package/dist/{task-orchestrator-EVONAO6V.js → task-orchestrator-QYCG7NVG.js} +6 -6
- package/dist/{usage-6Y7K2GNN.js → usage-5L4ZQENO.js} +2 -2
- package/dist/web/client/app.js +8 -4
- package/dist/web/client/app.js.br +0 -0
- package/dist/web/client/app.js.gz +0 -0
- 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-QYCG7NVG.js");
|
|
152
152
|
const orchestrator = new TaskOrchestrator(config, providers, configManager);
|
|
153
153
|
let interrupted = false;
|
|
154
154
|
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-VHLZ2ZUQ.js";
|
|
28
28
|
import {
|
|
29
29
|
CostTracker,
|
|
30
30
|
getPricing,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
setMaxOutputCap,
|
|
48
48
|
spawnAgentContext,
|
|
49
49
|
undoStack
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-DQBWJG32.js";
|
|
51
51
|
import "./chunk-HLWUDRBO.js";
|
|
52
52
|
import {
|
|
53
53
|
NO_THINKING,
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
countPendingMemories,
|
|
61
61
|
detectStaleLegacyMarkdownEdit,
|
|
62
62
|
formatMemoryForPrompt
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-XF2F2V5Y.js";
|
|
64
64
|
import "./chunk-RWRZVQCB.js";
|
|
65
65
|
import "./chunk-B3MPYI4E.js";
|
|
66
66
|
import "./chunk-M6HLYG33.js";
|
|
@@ -81,23 +81,23 @@ import {
|
|
|
81
81
|
import {
|
|
82
82
|
loadContextFiles,
|
|
83
83
|
writeCrashLog
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-HXENKVWP.js";
|
|
85
85
|
import {
|
|
86
86
|
getActivePluginAssets,
|
|
87
87
|
getPendingHookTrust,
|
|
88
88
|
installFlushOnExit,
|
|
89
89
|
mergePluginHooks,
|
|
90
90
|
runLifecycleHooks
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-PWXVC6UZ.js";
|
|
92
92
|
import "./chunk-RS7SKYTS.js";
|
|
93
93
|
import {
|
|
94
94
|
ProviderRegistry,
|
|
95
95
|
listBuiltInProviderMetadata
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-SSQARJMS.js";
|
|
97
97
|
import {
|
|
98
98
|
ConfigManager
|
|
99
|
-
} from "./chunk-
|
|
100
|
-
import "./chunk-
|
|
99
|
+
} from "./chunk-5WUOBFYG.js";
|
|
100
|
+
import "./chunk-6SFS6IJH.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-EGRKGP4P.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-7TU4KHMK.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-Y3N6RMIN.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-5L4ZQENO.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-T7D4DPWU.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-GUQLUOXL.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-WTLNIO23.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-W2PPGBYA.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-FSMBWLMM.js");
|
|
4389
|
+
const { formatCiResult } = await import("./ci-format-BONCHM6H.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-KCYDY3U6.js");
|
|
4549
4549
|
await startHub(
|
|
4550
4550
|
{
|
|
4551
4551
|
topic: topic ?? "",
|
|
@@ -28,11 +28,11 @@ import {
|
|
|
28
28
|
touchMemoryReferences,
|
|
29
29
|
updateMemoryApproval,
|
|
30
30
|
updateMemoryEntry
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-XF2F2V5Y.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-7TU4KHMK.js";
|
|
36
36
|
export {
|
|
37
37
|
addMemoryEntry,
|
|
38
38
|
backupMemoryStore,
|
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
touchMemoryReferences,
|
|
28
28
|
updateMemoryApproval,
|
|
29
29
|
updateMemoryEntry
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-YYO6TMOA.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-WL4NXDYT.js";
|
|
35
35
|
export {
|
|
36
36
|
addMemoryEntry,
|
|
37
37
|
backupMemoryStore,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import {
|
|
3
3
|
countSeverity,
|
|
4
4
|
runCi
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-RVB4GCSQ.js";
|
|
6
|
+
import "./chunk-56IOLQ5E.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-SSQARJMS.js";
|
|
18
18
|
import {
|
|
19
19
|
ConfigManager
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-5WUOBFYG.js";
|
|
21
|
+
import "./chunk-6SFS6IJH.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-7TU4KHMK.js";
|
|
28
28
|
|
|
29
29
|
// src/cli/pr.ts
|
|
30
30
|
import { execFileSync } from "child_process";
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
executeTests,
|
|
3
3
|
runTestProcess,
|
|
4
4
|
runTestsTool
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MAUNCANT.js";
|
|
6
6
|
import "./chunk-QMFMST2T.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-WL4NXDYT.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-DQBWJG32.js";
|
|
5
5
|
import "./chunk-6JHACXB3.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-XF2F2V5Y.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-PWXVC6UZ.js";
|
|
18
18
|
import "./chunk-RS7SKYTS.js";
|
|
19
19
|
import {
|
|
20
20
|
getDangerLevel,
|
|
21
21
|
schemaToJsonSchema
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-6SFS6IJH.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-EGRKGP4P.js";
|
|
29
29
|
import {
|
|
30
30
|
VERSION
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-7TU4KHMK.js";
|
|
32
32
|
import "./chunk-SXIJLSVF.js";
|
|
33
33
|
|
|
34
34
|
// src/mcp/server.ts
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
skillHistoryNote,
|
|
89
89
|
snapshotFile,
|
|
90
90
|
stripRoutingTags
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-VHLZ2ZUQ.js";
|
|
92
92
|
import {
|
|
93
93
|
CNY_PER_USD,
|
|
94
94
|
CostTracker,
|
|
@@ -132,7 +132,7 @@ import {
|
|
|
132
132
|
spawnAgentContext,
|
|
133
133
|
truncateOutput,
|
|
134
134
|
undoStack
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-DQBWJG32.js";
|
|
136
136
|
import {
|
|
137
137
|
buildReviewPrompt,
|
|
138
138
|
buildSecurityReviewPrompt
|
|
@@ -159,7 +159,7 @@ import {
|
|
|
159
159
|
restoreMemoryEntries,
|
|
160
160
|
updateMemoryApproval,
|
|
161
161
|
updateMemoryEntry
|
|
162
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-XF2F2V5Y.js";
|
|
163
163
|
import "./chunk-RWRZVQCB.js";
|
|
164
164
|
import "./chunk-B3MPYI4E.js";
|
|
165
165
|
import "./chunk-M6HLYG33.js";
|
|
@@ -178,7 +178,7 @@ import {
|
|
|
178
178
|
buildDoctorReport,
|
|
179
179
|
formatDoctorReport,
|
|
180
180
|
loadContextFiles
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-HXENKVWP.js";
|
|
182
182
|
import {
|
|
183
183
|
describePlugin,
|
|
184
184
|
getActivePluginAssets,
|
|
@@ -193,17 +193,17 @@ import {
|
|
|
193
193
|
runTool,
|
|
194
194
|
setPluginEnabled,
|
|
195
195
|
trustPlugin
|
|
196
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-PWXVC6UZ.js";
|
|
197
197
|
import "./chunk-RS7SKYTS.js";
|
|
198
198
|
import {
|
|
199
199
|
ProviderRegistry
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-SSQARJMS.js";
|
|
201
201
|
import {
|
|
202
202
|
ConfigManager
|
|
203
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-5WUOBFYG.js";
|
|
204
204
|
import {
|
|
205
205
|
getDangerLevel
|
|
206
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-6SFS6IJH.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-EGRKGP4P.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-7TU4KHMK.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-3RG5Z6WK.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-BWJEL7PA.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-3RG5Z6WK.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-3RG5Z6WK.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-3RG5Z6WK.js");
|
|
2336
2336
|
ctx.send({
|
|
2337
2337
|
type: "export_data",
|
|
2338
2338
|
format: "md",
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
googleSearchContext,
|
|
5
5
|
isToolCapableProvider,
|
|
6
6
|
truncateOutput
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DQBWJG32.js";
|
|
8
8
|
import "./chunk-6JHACXB3.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-XF2F2V5Y.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-PWXVC6UZ.js";
|
|
21
21
|
import "./chunk-RS7SKYTS.js";
|
|
22
22
|
import {
|
|
23
23
|
getDangerLevel
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6SFS6IJH.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-EGRKGP4P.js";
|
|
35
35
|
import {
|
|
36
36
|
SUBAGENT_ALLOWED_TOOLS
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-7TU4KHMK.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-5WUOBFYG.js";
|
|
13
13
|
import "./chunk-TU3L3PW7.js";
|
|
14
14
|
import "./chunk-BMLQPSHP.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-7TU4KHMK.js";
|
|
16
16
|
|
|
17
17
|
// src/cli/usage.ts
|
|
18
18
|
function classifyRowCost(row) {
|
package/dist/web/client/app.js
CHANGED
|
@@ -3290,7 +3290,8 @@ function hubStarted(msg) {
|
|
|
3290
3290
|
const col = document.createElement('div');
|
|
3291
3291
|
col.className = 'hub-lane flex-1 min-w-[200px] border rounded-lg overflow-hidden';
|
|
3292
3292
|
col.style.borderColor = hubColor(r.color);
|
|
3293
|
-
|
|
3293
|
+
// 每列限高、内部滚动:不限高时几轮下来三列越拉越长,正在输出的那段被推出画面
|
|
3294
|
+
col.innerHTML = `<div class="text-xs font-bold px-2 py-1" style="background:${hubColor(r.color)}22;color:${hubColor(r.color)}">${escapeHtml(r.name)}</div><div class="hub-lane-body p-2 text-sm flex flex-col gap-2 overflow-y-auto" style="max-height:55vh"></div>`;
|
|
3294
3295
|
lanes.appendChild(col);
|
|
3295
3296
|
hubLaneBody[r.id] = col.querySelector('.hub-lane-body');
|
|
3296
3297
|
}
|
|
@@ -3323,6 +3324,7 @@ function hubEvent(ev) {
|
|
|
3323
3324
|
if (hubStreamRoleId !== ev.roleId || !hubStreamEl) hubOpenTurn(ev.roleId);
|
|
3324
3325
|
hubStreamEl._raw += ev.token;
|
|
3325
3326
|
appendStreamText(hubStreamEl.querySelector('.hub-body'), ev.token);
|
|
3327
|
+
if (hubLaneMode && hubLaneBody[ev.roleId]) hubLaneBody[ev.roleId].scrollTop = hubLaneBody[ev.roleId].scrollHeight;
|
|
3326
3328
|
scrollToBottom();
|
|
3327
3329
|
break;
|
|
3328
3330
|
}
|
|
@@ -3410,10 +3412,12 @@ function hubReview(msg) {
|
|
|
3410
3412
|
answered = true;
|
|
3411
3413
|
const message = input.value.trim();
|
|
3412
3414
|
send({ type: 'hub_steer', requestId: msg.requestId, action, message: message || undefined });
|
|
3413
|
-
|
|
3414
|
-
card.
|
|
3415
|
+
// 答完收成一行:整张卡片留着会一轮叠一张,把讨论内容推出画面
|
|
3416
|
+
card.className = 'hub-review hub-review-done text-xs opacity-70 my-1 pl-2';
|
|
3417
|
+
card.textContent = action === 'stop'
|
|
3415
3418
|
? '🧭 Stopping…'
|
|
3416
|
-
: (message ? `🧭 Steered: ${message}` :
|
|
3419
|
+
: (message ? `🧭 Steered: ${message}` : `🧭 Round ${msg.round}/${msg.maxRounds} → continue`);
|
|
3420
|
+
if (message) card.classList.add('font-semibold');
|
|
3417
3421
|
};
|
|
3418
3422
|
contBtn.addEventListener('click', () => finish('continue'));
|
|
3419
3423
|
stopBtn.addEventListener('click', () => finish('stop'));
|
|
Binary file
|
|
Binary file
|