jinzd-ai-cli 0.4.227 → 0.4.229
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-W2DJGST7.js → batch-XZHTNJXJ.js} +2 -2
- package/dist/{chunk-DKJ5EFKA.js → chunk-AEXWMIRE.js} +1 -1
- package/dist/{chunk-NBG2STGM.js → chunk-AXIMNQSY.js} +1 -1
- package/dist/{chunk-CYVVWFFO.js → chunk-B3POS7LB.js} +1 -1
- package/dist/{chunk-APBHCIPD.js → chunk-DMF6UHO6.js} +22 -17
- package/dist/{chunk-PUBCJF7E.js → chunk-EEQHP4GK.js} +19 -5
- package/dist/{chunk-6LQ6PUNZ.js → chunk-FEVOW3NQ.js} +31 -31
- package/dist/{chunk-2X2DOHA6.js → chunk-NR5U6LVG.js} +21 -3
- package/dist/{chunk-XPBEJB27.js → chunk-ODYTXQ26.js} +37 -0
- package/dist/{chunk-OMFVR2O7.js → chunk-PQLRX7US.js} +4 -4
- package/dist/{chunk-YK5DDJNH.js → chunk-QCGKCNBX.js} +1 -1
- package/dist/{chunk-WJJIP34H.js → chunk-QFOJ4GXC.js} +4 -4
- package/dist/{chunk-S4AKNVFK.js → chunk-SJ36SUG7.js} +2 -2
- package/dist/{chunk-7X5TVGVY.js → chunk-TEXAIWUJ.js} +1 -1
- package/dist/{chunk-CITDVXXM.js → chunk-YVMACMXW.js} +30 -1
- package/dist/{ci-PEOV2I3Z.js → ci-ZCVDKFXY.js} +6 -6
- package/dist/{ci-format-4O7SHP4F.js → ci-format-CKXDFTN3.js} +2 -2
- package/dist/{constants-HLNS4O5H.js → constants-J2MSGNFA.js} +1 -1
- package/dist/{doctor-cli-LA4AF6DK.js → doctor-cli-3VNTECP2.js} +6 -6
- package/dist/electron-server.js +110 -54
- package/dist/{hub-MAJE7GB7.js → hub-LIH5JEI7.js} +3 -3
- package/dist/{hub-server-XX36DX7O.js → hub-server-XA7HTVLD.js} +1 -1
- package/dist/index.js +21 -21
- package/dist/{pr-CDJFUPZX.js → pr-HY2QCVUY.js} +6 -6
- package/dist/{run-tests-DGV6D4L3.js → run-tests-QVXDTJ3O.js} +1 -1
- package/dist/{run-tests-QFYTNPSV.js → run-tests-WBGQI5V7.js} +2 -2
- package/dist/{server-GTIVGJ6S.js → server-5RXWIX4I.js} +5 -5
- package/dist/{server-ZQYQDQMT.js → server-LYTXYK6Y.js} +15 -15
- package/dist/{task-orchestrator-YSHHXWNT.js → task-orchestrator-FA4KOVD2.js} +7 -6
- package/dist/{usage-QDSXUKN7.js → usage-EHV6YVGH.js} +3 -3
- package/package.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
ToolRegistry
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DMF6UHO6.js";
|
|
5
5
|
import "./chunk-K3CF65QH.js";
|
|
6
6
|
import "./chunk-UUSRWSSX.js";
|
|
7
7
|
import "./chunk-CKH4KQ4E.js";
|
|
8
8
|
import "./chunk-BXP6YZ2P.js";
|
|
9
9
|
import {
|
|
10
10
|
runTool
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TEXAIWUJ.js";
|
|
12
12
|
import {
|
|
13
13
|
getDangerLevel,
|
|
14
14
|
schemaToJsonSchema
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ODYTXQ26.js";
|
|
16
16
|
import "./chunk-5ULLIOVC.js";
|
|
17
17
|
import "./chunk-HOSJZMQS.js";
|
|
18
18
|
import "./chunk-4BKXL7SM.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-AEXWMIRE.js";
|
|
20
20
|
import {
|
|
21
21
|
VERSION
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-B3POS7LB.js";
|
|
23
23
|
import "./chunk-NVUCDUXE.js";
|
|
24
24
|
import "./chunk-KHYD3WXE.js";
|
|
25
25
|
import "./chunk-B5TYJO7V.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
scanDirTree,
|
|
24
24
|
scanProject,
|
|
25
25
|
setupProxy
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-SJ36SUG7.js";
|
|
27
27
|
import {
|
|
28
28
|
buildReviewPrompt,
|
|
29
29
|
buildSecurityReviewPrompt
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
truncateOutput,
|
|
68
68
|
undoStack,
|
|
69
69
|
updateMemoryApproval
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-DMF6UHO6.js";
|
|
71
71
|
import "./chunk-K3CF65QH.js";
|
|
72
72
|
import "./chunk-UUSRWSSX.js";
|
|
73
73
|
import "./chunk-CKH4KQ4E.js";
|
|
@@ -84,10 +84,10 @@ import {
|
|
|
84
84
|
buildDoctorReport,
|
|
85
85
|
formatDoctorReport,
|
|
86
86
|
loadContextFiles
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-QFOJ4GXC.js";
|
|
88
88
|
import {
|
|
89
89
|
ProviderRegistry
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-EEQHP4GK.js";
|
|
91
91
|
import {
|
|
92
92
|
describePlugin,
|
|
93
93
|
getActivePluginAssets,
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
runTool,
|
|
103
103
|
setPluginEnabled,
|
|
104
104
|
trustPlugin
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-TEXAIWUJ.js";
|
|
106
106
|
import {
|
|
107
107
|
CONTENT_ONLY_STREAM_REMINDER,
|
|
108
108
|
TEE_FINAL_USER_NUDGE,
|
|
@@ -118,10 +118,10 @@ import {
|
|
|
118
118
|
stripOuterCodeFence,
|
|
119
119
|
stripToolCallReminder,
|
|
120
120
|
teeStreamErrorSummary
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-ODYTXQ26.js";
|
|
122
122
|
import {
|
|
123
123
|
ConfigManager
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-FEVOW3NQ.js";
|
|
125
125
|
import "./chunk-5ULLIOVC.js";
|
|
126
126
|
import {
|
|
127
127
|
formatGitContextForPrompt,
|
|
@@ -129,7 +129,7 @@ import {
|
|
|
129
129
|
getGitRoot
|
|
130
130
|
} from "./chunk-HOSJZMQS.js";
|
|
131
131
|
import "./chunk-4BKXL7SM.js";
|
|
132
|
-
import "./chunk-
|
|
132
|
+
import "./chunk-AEXWMIRE.js";
|
|
133
133
|
import {
|
|
134
134
|
AGENTIC_BEHAVIOR_GUIDELINE,
|
|
135
135
|
AUTHOR,
|
|
@@ -146,7 +146,7 @@ import {
|
|
|
146
146
|
SKILLS_DIR_NAME,
|
|
147
147
|
VERSION,
|
|
148
148
|
buildUserIdentityPrompt
|
|
149
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-B3POS7LB.js";
|
|
150
150
|
import "./chunk-NVUCDUXE.js";
|
|
151
151
|
import "./chunk-KHYD3WXE.js";
|
|
152
152
|
import {
|
|
@@ -457,7 +457,7 @@ var ToolExecutorWeb = class _ToolExecutorWeb {
|
|
|
457
457
|
runLifecycleHooks(this.hookConfig, "PostToolUse", { tool: call.name, status: "ok" }, { configDir: this.hookConfigDir });
|
|
458
458
|
return { callId: call.id, content, isError: false };
|
|
459
459
|
} catch (err) {
|
|
460
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
460
|
+
const message = err instanceof Error ? err.message : err && typeof err === "object" && "message" in err ? String(err.message) : String(err);
|
|
461
461
|
this.sendToolCallResult(call, message, true);
|
|
462
462
|
runHook(this.hookConfig?.postToolExecution, { tool: call.name, status: "error" });
|
|
463
463
|
runLifecycleHooks(this.hookConfig, "PostToolUse", { tool: call.name, status: "error", error: message }, { configDir: this.hookConfigDir });
|
|
@@ -496,7 +496,7 @@ var ToolExecutorWeb = class _ToolExecutorWeb {
|
|
|
496
496
|
runLifecycleHooks(this.hookConfig, "PostToolUse", { tool: call.name, status: "ok" }, { configDir: this.hookConfigDir });
|
|
497
497
|
return { callId: call.id, content, isError: false };
|
|
498
498
|
} catch (err) {
|
|
499
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
499
|
+
const message = err instanceof Error ? err.message : err && typeof err === "object" && "message" in err ? String(err.message) : String(err);
|
|
500
500
|
this.sendToolCallResult(call, message, true);
|
|
501
501
|
runHook(this.hookConfig?.postToolExecution, { tool: call.name, status: "error" });
|
|
502
502
|
runLifecycleHooks(this.hookConfig, "PostToolUse", { tool: call.name, status: "error", error: message }, { configDir: this.hookConfigDir });
|
|
@@ -513,7 +513,7 @@ var ToolExecutorWeb = class _ToolExecutorWeb {
|
|
|
513
513
|
runLifecycleHooks(this.hookConfig, "PostToolUse", { tool: call.name, status: "ok" }, { configDir: this.hookConfigDir });
|
|
514
514
|
return { callId: call.id, content, isError: false };
|
|
515
515
|
} catch (err) {
|
|
516
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
516
|
+
const message = err instanceof Error ? err.message : err && typeof err === "object" && "message" in err ? String(err.message) : String(err);
|
|
517
517
|
this.sendToolCallResult(call, message, true);
|
|
518
518
|
runHook(this.hookConfig?.postToolExecution, { tool: call.name, status: "error" });
|
|
519
519
|
runLifecycleHooks(this.hookConfig, "PostToolUse", { tool: call.name, status: "error", error: message }, { configDir: this.hookConfigDir });
|
|
@@ -537,7 +537,7 @@ var ToolExecutorWeb = class _ToolExecutorWeb {
|
|
|
537
537
|
runLifecycleHooks(this.hookConfig, "PostToolUse", { tool: call.name, status: "ok" }, { configDir: this.hookConfigDir });
|
|
538
538
|
return { callId: call.id, content, isError: false };
|
|
539
539
|
} catch (err) {
|
|
540
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
540
|
+
const message = err instanceof Error ? err.message : err && typeof err === "object" && "message" in err ? String(err.message) : String(err);
|
|
541
541
|
this.sendToolCallResult(call, message, true);
|
|
542
542
|
runHook(this.hookConfig?.postToolExecution, { tool: call.name, status: "error" });
|
|
543
543
|
runLifecycleHooks(this.hookConfig, "PostToolUse", { tool: call.name, status: "error", error: message }, { configDir: this.hookConfigDir });
|
|
@@ -600,7 +600,7 @@ var ToolExecutorWeb = class _ToolExecutorWeb {
|
|
|
600
600
|
this.sendToolCallResult(call, rawContent, false);
|
|
601
601
|
results[i] = { callId: call.id, content, isError: false };
|
|
602
602
|
} catch (err) {
|
|
603
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
603
|
+
const message = err instanceof Error ? err.message : err && typeof err === "object" && "message" in err ? String(err.message) : String(err);
|
|
604
604
|
this.sendToolCallResult(call, message, true);
|
|
605
605
|
results[i] = { callId: call.id, content: message, isError: true };
|
|
606
606
|
}
|
|
@@ -1598,7 +1598,7 @@ async function handleSecurityReview(args, ctx) {
|
|
|
1598
1598
|
async function handleTest(args, ctx) {
|
|
1599
1599
|
ctx.send({ type: "info", message: "\u{1F9EA} Running tests..." });
|
|
1600
1600
|
try {
|
|
1601
|
-
const { executeTests } = await import("./run-tests-
|
|
1601
|
+
const { executeTests } = await import("./run-tests-WBGQI5V7.js");
|
|
1602
1602
|
const argStr = args.join(" ").trim();
|
|
1603
1603
|
let testArgs = {};
|
|
1604
1604
|
if (argStr) {
|
|
@@ -3,25 +3,25 @@ import {
|
|
|
3
3
|
ToolRegistry,
|
|
4
4
|
googleSearchContext,
|
|
5
5
|
truncateOutput
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DMF6UHO6.js";
|
|
7
7
|
import "./chunk-K3CF65QH.js";
|
|
8
8
|
import "./chunk-UUSRWSSX.js";
|
|
9
9
|
import "./chunk-CKH4KQ4E.js";
|
|
10
10
|
import "./chunk-BXP6YZ2P.js";
|
|
11
11
|
import {
|
|
12
12
|
runTool
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TEXAIWUJ.js";
|
|
14
14
|
import {
|
|
15
15
|
getDangerLevel,
|
|
16
16
|
runLeanAgentLoop
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ODYTXQ26.js";
|
|
18
18
|
import "./chunk-5ULLIOVC.js";
|
|
19
19
|
import "./chunk-HOSJZMQS.js";
|
|
20
20
|
import "./chunk-4BKXL7SM.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-AEXWMIRE.js";
|
|
22
22
|
import {
|
|
23
23
|
SUBAGENT_ALLOWED_TOOLS
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-B3POS7LB.js";
|
|
25
25
|
import "./chunk-NVUCDUXE.js";
|
|
26
26
|
import "./chunk-KHYD3WXE.js";
|
|
27
27
|
import "./chunk-B5TYJO7V.js";
|
|
@@ -188,7 +188,8 @@ var TaskToolExecutor = class {
|
|
|
188
188
|
// src/hub/task-orchestrator.ts
|
|
189
189
|
var TASK_STATE_FILE = ".aicli-task.json";
|
|
190
190
|
function asToolCapable(p) {
|
|
191
|
-
|
|
191
|
+
const maybe = p;
|
|
192
|
+
if (typeof maybe.chatWithTools !== "function") {
|
|
192
193
|
throw new Error(
|
|
193
194
|
`Provider '${p.info?.id ?? "unknown"}' does not support tool calls. Hub task orchestration requires a tool-capable provider (e.g. claude, openai, deepseek).`
|
|
194
195
|
);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
CostTracker
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YVMACMXW.js";
|
|
5
5
|
import {
|
|
6
6
|
formatCost,
|
|
7
7
|
getPricing
|
|
8
8
|
} from "./chunk-E44DTERW.js";
|
|
9
9
|
import {
|
|
10
10
|
ConfigManager
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FEVOW3NQ.js";
|
|
12
12
|
import "./chunk-5ULLIOVC.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-B3POS7LB.js";
|
|
14
14
|
import "./chunk-IW3Q7AE5.js";
|
|
15
15
|
|
|
16
16
|
// src/cli/usage.ts
|