jinzd-ai-cli 0.4.39 → 0.4.40
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/{chunk-NP3647PM.js → chunk-CYBC7PWO.js} +1 -1
- package/dist/{chunk-NCY3EPA6.js → chunk-KPHYJOJT.js} +1 -1
- package/dist/{chunk-E7OZDXCK.js → chunk-RVJMWZEJ.js} +1 -1
- package/dist/{chunk-XRWQAZAC.js → chunk-Y4B6HE6J.js} +7 -7
- package/dist/{hub-PIWTW5RI.js → hub-YFHYOGDB.js} +1 -1
- package/dist/index.js +6 -6
- package/dist/{run-tests-6MNCHVPH.js → run-tests-5CFPPABG.js} +1 -1
- package/dist/{run-tests-E6KEK7CK.js → run-tests-AXMJPIO7.js} +1 -1
- package/dist/{server-4NK3UFNS.js → server-QJSBW5NP.js} +4 -4
- package/dist/{task-orchestrator-XFQD6X5A.js → task-orchestrator-7B3UBHMI.js} +2 -2
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
ProviderNotFoundError,
|
|
8
8
|
RateLimitError,
|
|
9
9
|
schemaToJsonSchema
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KPHYJOJT.js";
|
|
11
11
|
import {
|
|
12
12
|
APP_NAME,
|
|
13
13
|
CONFIG_DIR_NAME,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
MCP_TOOL_PREFIX,
|
|
21
21
|
PLUGINS_DIR_NAME,
|
|
22
22
|
VERSION
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-RVJMWZEJ.js";
|
|
24
24
|
|
|
25
25
|
// src/config/config-manager.ts
|
|
26
26
|
import { readFileSync, writeFileSync, existsSync, mkdirSync } from "fs";
|
|
@@ -555,6 +555,8 @@ var ClaudeProvider = class extends BaseProvider {
|
|
|
555
555
|
const extraMessages = request._extraMessages ?? [];
|
|
556
556
|
const allMessages = [...baseMessages, ...extraMessages];
|
|
557
557
|
const { thinking, temperature } = this.buildThinkingParams(request);
|
|
558
|
+
let doneEmitted = false;
|
|
559
|
+
const rawContentBlocks = [];
|
|
558
560
|
try {
|
|
559
561
|
const stream = this.client.messages.stream({
|
|
560
562
|
model: request.model,
|
|
@@ -567,8 +569,6 @@ var ClaudeProvider = class extends BaseProvider {
|
|
|
567
569
|
}, { signal: request.signal });
|
|
568
570
|
let currentBlockType = null;
|
|
569
571
|
let currentToolIndex = 0;
|
|
570
|
-
let doneEmitted2 = false;
|
|
571
|
-
const rawContentBlocks2 = [];
|
|
572
572
|
let currentBlockData = {};
|
|
573
573
|
for await (const event of stream) {
|
|
574
574
|
if (event.type === "content_block_start") {
|
|
@@ -627,20 +627,20 @@ var ClaudeProvider = class extends BaseProvider {
|
|
|
627
627
|
}
|
|
628
628
|
delete currentBlockData._inputJson;
|
|
629
629
|
}
|
|
630
|
-
|
|
630
|
+
rawContentBlocks.push(currentBlockData);
|
|
631
631
|
currentBlockType = null;
|
|
632
632
|
currentBlockData = {};
|
|
633
633
|
} else if (event.type === "message_delta") {
|
|
634
634
|
const usage = event.usage;
|
|
635
635
|
if (usage) {
|
|
636
|
-
|
|
636
|
+
doneEmitted = true;
|
|
637
637
|
yield {
|
|
638
638
|
type: "done",
|
|
639
639
|
usage: {
|
|
640
640
|
inputTokens: usage.input_tokens ?? 0,
|
|
641
641
|
outputTokens: usage.output_tokens ?? 0
|
|
642
642
|
},
|
|
643
|
-
rawContent:
|
|
643
|
+
rawContent: rawContentBlocks
|
|
644
644
|
};
|
|
645
645
|
}
|
|
646
646
|
}
|
|
@@ -387,7 +387,7 @@ ${content}`);
|
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
389
|
async function runTaskMode(config, providers, configManager, topic) {
|
|
390
|
-
const { TaskOrchestrator } = await import("./task-orchestrator-
|
|
390
|
+
const { TaskOrchestrator } = await import("./task-orchestrator-7B3UBHMI.js");
|
|
391
391
|
const orchestrator = new TaskOrchestrator(config, providers, configManager);
|
|
392
392
|
let interrupted = false;
|
|
393
393
|
const onSigint = () => {
|
package/dist/index.js
CHANGED
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
saveDevState,
|
|
25
25
|
sessionHasMeaningfulContent,
|
|
26
26
|
setupProxy
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-Y4B6HE6J.js";
|
|
28
28
|
import {
|
|
29
29
|
ToolExecutor,
|
|
30
30
|
ToolRegistry,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
spawnAgentContext,
|
|
38
38
|
theme,
|
|
39
39
|
undoStack
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-KPHYJOJT.js";
|
|
41
41
|
import {
|
|
42
42
|
fileCheckpoints
|
|
43
43
|
} from "./chunk-4BKXL7SM.js";
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
SKILLS_DIR_NAME,
|
|
62
62
|
VERSION,
|
|
63
63
|
buildUserIdentityPrompt
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-RVJMWZEJ.js";
|
|
65
65
|
|
|
66
66
|
// src/index.ts
|
|
67
67
|
import { program } from "commander";
|
|
@@ -2099,7 +2099,7 @@ ${hint}` : "")
|
|
|
2099
2099
|
usage: "/test [command|filter]",
|
|
2100
2100
|
async execute(args, ctx) {
|
|
2101
2101
|
try {
|
|
2102
|
-
const { executeTests } = await import("./run-tests-
|
|
2102
|
+
const { executeTests } = await import("./run-tests-AXMJPIO7.js");
|
|
2103
2103
|
const argStr = args.join(" ").trim();
|
|
2104
2104
|
let testArgs = {};
|
|
2105
2105
|
if (argStr) {
|
|
@@ -5470,7 +5470,7 @@ program.command("web").description("Start Web UI server with browser-based chat
|
|
|
5470
5470
|
console.error("Error: Invalid port number. Must be between 1 and 65535.");
|
|
5471
5471
|
process.exit(1);
|
|
5472
5472
|
}
|
|
5473
|
-
const { startWebServer } = await import("./server-
|
|
5473
|
+
const { startWebServer } = await import("./server-QJSBW5NP.js");
|
|
5474
5474
|
await startWebServer({ port, host: options.host });
|
|
5475
5475
|
});
|
|
5476
5476
|
program.command("user [action] [username]").description("Manage Web UI users (list | create <name> | delete <name> | reset-password <name> | migrate <name>)").action(async (action, username) => {
|
|
@@ -5703,7 +5703,7 @@ program.command("hub [topic]").description("Start multi-agent hub (discuss / bra
|
|
|
5703
5703
|
}),
|
|
5704
5704
|
config.get("customProviders")
|
|
5705
5705
|
);
|
|
5706
|
-
const { startHub } = await import("./hub-
|
|
5706
|
+
const { startHub } = await import("./hub-YFHYOGDB.js");
|
|
5707
5707
|
await startHub(
|
|
5708
5708
|
{
|
|
5709
5709
|
topic: topic ?? "",
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
hadPreviousWriteToolCalls,
|
|
16
16
|
loadDevState,
|
|
17
17
|
setupProxy
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Y4B6HE6J.js";
|
|
19
19
|
import {
|
|
20
20
|
AuthManager
|
|
21
21
|
} from "./chunk-BYNY5JPB.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
spawnAgentContext,
|
|
34
34
|
truncateOutput,
|
|
35
35
|
undoStack
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-KPHYJOJT.js";
|
|
37
37
|
import "./chunk-4BKXL7SM.js";
|
|
38
38
|
import {
|
|
39
39
|
AGENTIC_BEHAVIOR_GUIDELINE,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
SKILLS_DIR_NAME,
|
|
53
53
|
VERSION,
|
|
54
54
|
buildUserIdentityPrompt
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-RVJMWZEJ.js";
|
|
56
56
|
|
|
57
57
|
// src/web/server.ts
|
|
58
58
|
import express from "express";
|
|
@@ -1606,7 +1606,7 @@ ${undoResults.map((r) => ` \u2022 ${r}`).join("\n")}` });
|
|
|
1606
1606
|
case "test": {
|
|
1607
1607
|
this.send({ type: "info", message: "\u{1F9EA} Running tests..." });
|
|
1608
1608
|
try {
|
|
1609
|
-
const { executeTests } = await import("./run-tests-
|
|
1609
|
+
const { executeTests } = await import("./run-tests-AXMJPIO7.js");
|
|
1610
1610
|
const argStr = args.join(" ").trim();
|
|
1611
1611
|
let testArgs = {};
|
|
1612
1612
|
if (argStr) {
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
getDangerLevel,
|
|
5
5
|
googleSearchContext,
|
|
6
6
|
truncateOutput
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KPHYJOJT.js";
|
|
8
8
|
import "./chunk-4BKXL7SM.js";
|
|
9
9
|
import {
|
|
10
10
|
SUBAGENT_ALLOWED_TOOLS
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RVJMWZEJ.js";
|
|
12
12
|
|
|
13
13
|
// src/hub/task-orchestrator.ts
|
|
14
14
|
import { createInterface } from "readline";
|