jinzd-ai-cli 0.4.285 → 0.4.286
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-R563COWE.js → batch-GY3I53DE.js} +13 -10
- package/dist/{chat-index-TDU3S2MG.js → chat-index-DGUOUUQW.js} +2 -2
- package/dist/{chunk-UW33KJW5.js → chunk-2YDLBM3Z.js} +1 -1
- package/dist/{chunk-3LFB4YZA.js → chunk-3ZQZO5F7.js} +3 -3
- package/dist/chunk-53V3RQY5.js +5684 -0
- package/dist/{chunk-XGRZA5V6.js → chunk-6SCELZG6.js} +3 -3
- package/dist/{chunk-DV5D7RXZ.js → chunk-7G7RZHJI.js} +1 -1
- package/dist/{chunk-KLBMKONV.js → chunk-BRLLV3FX.js} +4 -4
- package/dist/chunk-CGLYJRFA.js +95 -0
- package/dist/{chunk-WBF4AOHJ.js → chunk-D7HYLMCC.js} +18 -110
- package/dist/{chunk-5CC5HQFW.js → chunk-EYUCJBGS.js} +30 -30
- package/dist/{chunk-LF6SPK7I.js → chunk-GIJL4EFA.js} +10 -2
- package/dist/{chunk-VLM4SKKX.js → chunk-L4FDTQ42.js} +1 -1
- package/dist/{chunk-DPTEC6AQ.js → chunk-LWPWBRAC.js} +12 -10
- package/dist/chunk-RS7SKYTS.js +45 -0
- package/dist/{chunk-6G7Y2VG4.js → chunk-S7ABWTDV.js} +1 -1
- package/dist/{chunk-PHK7QQH3.js → chunk-THUXZNJL.js} +1 -1
- package/dist/{chunk-AOF4K5N7.js → chunk-UKITSNSH.js} +1 -1
- package/dist/{ci-E4CYVEOW.js → ci-JBUIVM7P.js} +4 -4
- package/dist/{ci-format-7XTLOAB5.js → ci-format-B4AHV5SI.js} +2 -2
- package/dist/{constants-L7D3IXWV.js → constants-5FYUQLKN.js} +1 -1
- package/dist/constants-P75MLFV7.js +80 -0
- package/dist/{doctor-cli-JLROIGLO.js → doctor-cli-VLFE46PX.js} +5 -4
- package/dist/electron-server.js +3549 -253
- package/dist/git-context-VNCA2GU7.js +10 -0
- package/dist/{hub-7UDPLWBI.js → hub-CNORVRYW.js} +1 -1
- package/dist/index.js +315 -3655
- package/dist/{persistent-memory-CNJOZ7U2.js → persistent-memory-3KL4N27E.js} +3 -2
- package/dist/{persistent-memory-DRXWYBJS.js → persistent-memory-LVX2OT4L.js} +2 -2
- package/dist/{pr-3W5547IS.js → pr-2YUV4KII.js} +4 -4
- package/dist/{run-tests-LP2CI4MT.js → run-tests-ERD6X534.js} +2 -2
- package/dist/{run-tests-7B7N4YAE.js → run-tests-KZ2IUZHK.js} +2 -2
- package/dist/{semantic-FF6DDJI6.js → semantic-VPNKXKKK.js} +2 -2
- package/dist/{server-NIPB62XP.js → server-7VSLW446.js} +6 -5
- package/dist/{server-YBMWBJVG.js → server-A3OX52UC.js} +21 -15
- package/dist/{task-orchestrator-RYG4ZTDO.js → task-orchestrator-XAMKOFUE.js} +6 -5
- package/dist/{usage-YDVLCZDU.js → usage-ZXNYCAZB.js} +4 -3
- package/package.json +1 -1
- package/dist/chunk-HBAYEVVJ.js +0 -2362
- package/dist/{chunk-AEAYUKSY.js → chunk-7XU4BATV.js} +3 -3
- package/dist/{chunk-YOVHMQEJ.js → chunk-I4GQRMFV.js} +3 -3
|
@@ -27,10 +27,11 @@ import {
|
|
|
27
27
|
touchMemoryReferences,
|
|
28
28
|
updateMemoryApproval,
|
|
29
29
|
updateMemoryEntry
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-D7HYLMCC.js";
|
|
31
31
|
import "./chunk-FSC6KEWU.js";
|
|
32
|
-
import "./chunk-LF6SPK7I.js";
|
|
33
32
|
import "./chunk-6BUTA5VW.js";
|
|
33
|
+
import "./chunk-CGLYJRFA.js";
|
|
34
|
+
import "./chunk-GIJL4EFA.js";
|
|
34
35
|
export {
|
|
35
36
|
addMemoryEntry,
|
|
36
37
|
backupMemoryStore,
|
|
@@ -28,11 +28,11 @@ import {
|
|
|
28
28
|
touchMemoryReferences,
|
|
29
29
|
updateMemoryApproval,
|
|
30
30
|
updateMemoryEntry
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-UKITSNSH.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-THUXZNJL.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-3ZQZO5F7.js";
|
|
6
|
+
import "./chunk-2YDLBM3Z.js";
|
|
7
7
|
import {
|
|
8
8
|
buildReviewPrompt,
|
|
9
9
|
buildSecurityReviewPrompt,
|
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
} from "./chunk-UGY5SVNX.js";
|
|
18
18
|
import {
|
|
19
19
|
ConfigManager
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7G7RZHJI.js";
|
|
21
21
|
import "./chunk-TEXT4DAT.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-THUXZNJL.js";
|
|
27
27
|
|
|
28
28
|
// src/cli/pr.ts
|
|
29
29
|
import { execFileSync } from "child_process";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
pathTokens,
|
|
5
5
|
rebuildSemanticIndex,
|
|
6
6
|
semanticSearch
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-RWM2GFRC.js";
|
|
7
|
+
} from "./chunk-7XU4BATV.js";
|
|
9
8
|
import "./chunk-IEQAE3QG.js";
|
|
10
9
|
import "./chunk-JV5N65KN.js";
|
|
10
|
+
import "./chunk-RWM2GFRC.js";
|
|
11
11
|
import "./chunk-6BUTA5VW.js";
|
|
12
12
|
export {
|
|
13
13
|
buildEmbeddingText,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
ToolRegistry
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BRLLV3FX.js";
|
|
5
5
|
import "./chunk-GHWZVPUV.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-UKITSNSH.js";
|
|
7
7
|
import "./chunk-4DEMGCK4.js";
|
|
8
8
|
import "./chunk-UUSRWSSX.js";
|
|
9
9
|
import "./chunk-CKH4KQ4E.js";
|
|
@@ -14,7 +14,8 @@ import "./chunk-NYNSYLFY.js";
|
|
|
14
14
|
import "./chunk-3FEZSLGI.js";
|
|
15
15
|
import {
|
|
16
16
|
runTool
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-EYUCJBGS.js";
|
|
18
|
+
import "./chunk-RS7SKYTS.js";
|
|
18
19
|
import {
|
|
19
20
|
getDangerLevel,
|
|
20
21
|
schemaToJsonSchema
|
|
@@ -23,10 +24,10 @@ import "./chunk-TU3L3PW7.js";
|
|
|
23
24
|
import "./chunk-HOSJZMQS.js";
|
|
24
25
|
import "./chunk-IW3Q7AE5.js";
|
|
25
26
|
import "./chunk-4BKXL7SM.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-S7ABWTDV.js";
|
|
27
28
|
import {
|
|
28
29
|
VERSION
|
|
29
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-THUXZNJL.js";
|
|
30
31
|
|
|
31
32
|
// src/mcp/server.ts
|
|
32
33
|
import { createInterface } from "readline";
|
|
@@ -35,6 +35,7 @@ import {
|
|
|
35
35
|
checkpointSavedMessage,
|
|
36
36
|
clearedSessionMessage,
|
|
37
37
|
costSourceNote,
|
|
38
|
+
createDefaultCommands,
|
|
38
39
|
decideDeferredSave,
|
|
39
40
|
decideModel,
|
|
40
41
|
describeRouting,
|
|
@@ -80,7 +81,7 @@ import {
|
|
|
80
81
|
skillHistoryNote,
|
|
81
82
|
snapshotFile,
|
|
82
83
|
stripRoutingTags
|
|
83
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-53V3RQY5.js";
|
|
84
85
|
import {
|
|
85
86
|
CNY_PER_USD,
|
|
86
87
|
CostTracker,
|
|
@@ -89,7 +90,7 @@ import {
|
|
|
89
90
|
getCostCurrency,
|
|
90
91
|
getPricing,
|
|
91
92
|
setCostCurrency
|
|
92
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-LWPWBRAC.js";
|
|
93
94
|
import {
|
|
94
95
|
ToolExecutor,
|
|
95
96
|
ToolRegistry,
|
|
@@ -122,7 +123,7 @@ import {
|
|
|
122
123
|
spawnAgentContext,
|
|
123
124
|
truncateOutput,
|
|
124
125
|
undoStack
|
|
125
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-BRLLV3FX.js";
|
|
126
127
|
import {
|
|
127
128
|
buildReviewPrompt,
|
|
128
129
|
buildSecurityReviewPrompt
|
|
@@ -149,7 +150,7 @@ import {
|
|
|
149
150
|
restoreMemoryEntries,
|
|
150
151
|
updateMemoryApproval,
|
|
151
152
|
updateMemoryEntry
|
|
152
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-UKITSNSH.js";
|
|
153
154
|
import "./chunk-4DEMGCK4.js";
|
|
154
155
|
import "./chunk-UUSRWSSX.js";
|
|
155
156
|
import "./chunk-CKH4KQ4E.js";
|
|
@@ -168,7 +169,7 @@ import {
|
|
|
168
169
|
buildDoctorReport,
|
|
169
170
|
formatDoctorReport,
|
|
170
171
|
loadContextFiles
|
|
171
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-6SCELZG6.js";
|
|
172
173
|
import {
|
|
173
174
|
describePlugin,
|
|
174
175
|
getActivePluginAssets,
|
|
@@ -183,13 +184,14 @@ import {
|
|
|
183
184
|
runTool,
|
|
184
185
|
setPluginEnabled,
|
|
185
186
|
trustPlugin
|
|
186
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-EYUCJBGS.js";
|
|
188
|
+
import "./chunk-RS7SKYTS.js";
|
|
187
189
|
import {
|
|
188
190
|
ProviderRegistry
|
|
189
191
|
} from "./chunk-UGY5SVNX.js";
|
|
190
192
|
import {
|
|
191
193
|
ConfigManager
|
|
192
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-7G7RZHJI.js";
|
|
193
195
|
import {
|
|
194
196
|
CONTENT_ONLY_STREAM_REMINDER,
|
|
195
197
|
TEE_FINAL_USER_NUDGE,
|
|
@@ -219,7 +221,7 @@ import {
|
|
|
219
221
|
maskConfigSecrets
|
|
220
222
|
} from "./chunk-XNFIYS7G.js";
|
|
221
223
|
import "./chunk-4BKXL7SM.js";
|
|
222
|
-
import "./chunk-
|
|
224
|
+
import "./chunk-S7ABWTDV.js";
|
|
223
225
|
import {
|
|
224
226
|
AGENTIC_BEHAVIOR_GUIDELINE,
|
|
225
227
|
AUTHOR,
|
|
@@ -235,7 +237,7 @@ import {
|
|
|
235
237
|
SKILLS_DIR_NAME,
|
|
236
238
|
VERSION,
|
|
237
239
|
buildUserIdentityPrompt
|
|
238
|
-
} from "./chunk-
|
|
240
|
+
} from "./chunk-THUXZNJL.js";
|
|
239
241
|
|
|
240
242
|
// src/web/server.ts
|
|
241
243
|
import express from "express";
|
|
@@ -993,7 +995,7 @@ Cache: write=${cacheCreate} read=${cacheRead}` : "";
|
|
|
993
995
|
Cost: ${formatCost(cost)}` : "";
|
|
994
996
|
let memoryLine = "";
|
|
995
997
|
try {
|
|
996
|
-
const { countPendingMemories: countPendingMemories2 } = await import("./persistent-memory-
|
|
998
|
+
const { countPendingMemories: countPendingMemories2 } = await import("./persistent-memory-LVX2OT4L.js");
|
|
997
999
|
const pending = countPendingMemories2(ctx.config.getConfigDir());
|
|
998
1000
|
if (pending > 0) memoryLine = `
|
|
999
1001
|
Memory: \u26A0 ${pending} pending approval \u2014 see the Memory panel or /memory`;
|
|
@@ -1917,7 +1919,7 @@ async function handleTest(args, ctx) {
|
|
|
1917
1919
|
const isCommand = argStr.includes(" ") || /^(mvn|gradle|npm|pytest|cargo|go)\b/.test(argStr);
|
|
1918
1920
|
testArgs = isCommand ? { command: argStr } : { filter: argStr };
|
|
1919
1921
|
}
|
|
1920
|
-
const runTests = ctx.runTests ?? (await import("./run-tests-
|
|
1922
|
+
const runTests = ctx.runTests ?? (await import("./run-tests-KZ2IUZHK.js")).executeTests;
|
|
1921
1923
|
const report = await runTests(testArgs);
|
|
1922
1924
|
ctx.send({ type: "info", message: report });
|
|
1923
1925
|
} catch (err) {
|
|
@@ -2192,7 +2194,7 @@ async function handleMemory(args, ctx) {
|
|
|
2192
2194
|
}
|
|
2193
2195
|
if (intent.kind === "status") {
|
|
2194
2196
|
const { getChatIndexStatus } = await import("./chat-index-2D5GK2DB.js");
|
|
2195
|
-
const { listMemoryEntries: listMemoryEntries2, isMemoryExpired: isMemoryExpired2, formatMemoryForPrompt: formatMemoryForPrompt2 } = await import("./persistent-memory-
|
|
2197
|
+
const { listMemoryEntries: listMemoryEntries2, isMemoryExpired: isMemoryExpired2, formatMemoryForPrompt: formatMemoryForPrompt2 } = await import("./persistent-memory-LVX2OT4L.js");
|
|
2196
2198
|
const memories = listMemoryEntries2(configDir, { includeExpired: true, includeRejected: true });
|
|
2197
2199
|
const injected = formatMemoryForPrompt2(configDir, process.cwd(), ctx.config.get("memory")?.maxChars);
|
|
2198
2200
|
const view = buildMemoryStatusView({
|
|
@@ -2215,7 +2217,7 @@ async function handleMemory(args, ctx) {
|
|
|
2215
2217
|
return;
|
|
2216
2218
|
}
|
|
2217
2219
|
if (intent.kind === "recall") {
|
|
2218
|
-
const { searchPersistentMemories, touchMemoryReferences } = await import("./persistent-memory-
|
|
2220
|
+
const { searchPersistentMemories, touchMemoryReferences } = await import("./persistent-memory-LVX2OT4L.js");
|
|
2219
2221
|
const { searchChatMemory } = await import("./chat-index-2D5GK2DB.js");
|
|
2220
2222
|
const persistentHits = searchPersistentMemories(configDir, intent.query, process.cwd(), 3);
|
|
2221
2223
|
if (persistentHits.length > 0) {
|
|
@@ -2336,7 +2338,7 @@ async function handleMemory(args, ctx) {
|
|
|
2336
2338
|
ctx.handleMemoryManage(intent.action, args[1], intent.action === "expire" ? args[2] : void 0);
|
|
2337
2339
|
} else if (intent.kind === "export") {
|
|
2338
2340
|
if (args[1] === "md") {
|
|
2339
|
-
const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-
|
|
2341
|
+
const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-LVX2OT4L.js");
|
|
2340
2342
|
ctx.send({
|
|
2341
2343
|
type: "export_data",
|
|
2342
2344
|
format: "md",
|
|
@@ -2620,7 +2622,11 @@ async function handleAbout(_args, ctx) {
|
|
|
2620
2622
|
"",
|
|
2621
2623
|
`**Providers:** ${providerList.length} (${providerList.map((p) => p.id).join(", ")})`,
|
|
2622
2624
|
`**Tools:** ${toolCount + mcpTools} (${toolCount} built-in${mcpTools > 0 ? ` + ${mcpTools} MCP` : ""})`,
|
|
2623
|
-
|
|
2625
|
+
// 审计 P1-02:此前这里硬编码 37。v0.4.183 的题目正是「/about 去硬编码,计数从
|
|
2626
|
+
// registry 动态派生」,但只改了 REPL 那一半(repl/renderer.ts),Web 这半的数字
|
|
2627
|
+
// 就停在了当时的 37,漂了六十多个版本没人发现(docs-drift 守卫只校验文档里的
|
|
2628
|
+
// 计数标记,不校验源码里的展示串)。
|
|
2629
|
+
`**REPL Commands:** ${createDefaultCommands().length}`,
|
|
2624
2630
|
"",
|
|
2625
2631
|
`GitHub: https://github.com/jinzhengdong/ai-cli`
|
|
2626
2632
|
];
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
googleSearchContext,
|
|
5
5
|
isToolCapableProvider,
|
|
6
6
|
truncateOutput
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BRLLV3FX.js";
|
|
8
8
|
import "./chunk-GHWZVPUV.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-UKITSNSH.js";
|
|
10
10
|
import "./chunk-4DEMGCK4.js";
|
|
11
11
|
import "./chunk-UUSRWSSX.js";
|
|
12
12
|
import "./chunk-CKH4KQ4E.js";
|
|
@@ -17,7 +17,8 @@ import "./chunk-NYNSYLFY.js";
|
|
|
17
17
|
import "./chunk-3FEZSLGI.js";
|
|
18
18
|
import {
|
|
19
19
|
runTool
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-EYUCJBGS.js";
|
|
21
|
+
import "./chunk-RS7SKYTS.js";
|
|
21
22
|
import {
|
|
22
23
|
getDangerLevel,
|
|
23
24
|
runLeanAgentLoop
|
|
@@ -28,10 +29,10 @@ import {
|
|
|
28
29
|
atomicWriteFileSync
|
|
29
30
|
} from "./chunk-IW3Q7AE5.js";
|
|
30
31
|
import "./chunk-4BKXL7SM.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-S7ABWTDV.js";
|
|
32
33
|
import {
|
|
33
34
|
SUBAGENT_ALLOWED_TOOLS
|
|
34
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-THUXZNJL.js";
|
|
35
36
|
|
|
36
37
|
// src/hub/task-orchestrator.ts
|
|
37
38
|
import { createInterface } from "readline";
|
|
@@ -5,13 +5,14 @@ import {
|
|
|
5
5
|
formatCost,
|
|
6
6
|
getPricing,
|
|
7
7
|
setCostCurrency
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LWPWBRAC.js";
|
|
9
|
+
import "./chunk-RS7SKYTS.js";
|
|
9
10
|
import {
|
|
10
11
|
ConfigManager
|
|
11
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7G7RZHJI.js";
|
|
12
13
|
import "./chunk-TU3L3PW7.js";
|
|
13
14
|
import "./chunk-IW3Q7AE5.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-THUXZNJL.js";
|
|
15
16
|
|
|
16
17
|
// src/cli/usage.ts
|
|
17
18
|
function classifyRowCost(row) {
|