jinzd-ai-cli 0.4.78 → 0.4.79
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-CDCTUTIQ.js → batch-SMUURFMA.js} +2 -2
- package/dist/{chunk-FCVQ6OP5.js → chunk-34OKHMTQ.js} +1 -1
- package/dist/{chunk-GKDETNDH.js → chunk-EGJAMKAZ.js} +2 -2
- package/dist/{chunk-TNAPORYF.js → chunk-FU6WMYXS.js} +1 -1
- package/dist/{chunk-EUE6VMGO.js → chunk-MOE2D3NR.js} +2 -2
- package/dist/{chunk-HELGL4RH.js → chunk-RRL5572W.js} +1 -1
- package/dist/{chunk-KHYHG2SO.js → chunk-ZT7RZYWE.js} +1 -1
- package/dist/electron-server.js +9 -2
- package/dist/{hub-BIFM6NOM.js → hub-BDEFIXFF.js} +1 -1
- package/dist/index.js +15 -9
- package/dist/{run-tests-MONKXJBT.js → run-tests-O2CYJF3Y.js} +1 -1
- package/dist/{run-tests-JBM4K5FO.js → run-tests-WPSQCOIG.js} +2 -2
- package/dist/{server-GCE5V4SL.js → server-MHY4E453.js} +13 -6
- package/dist/{task-orchestrator-YAWEIZE7.js → task-orchestrator-MWZ7NMES.js} +3 -3
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
ConfigManager
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-34OKHMTQ.js";
|
|
5
5
|
import "./chunk-2ZD3YTVM.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-RRL5572W.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/batch.ts
|
|
9
9
|
import Anthropic from "@anthropic-ai/sdk";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
schemaToJsonSchema,
|
|
4
4
|
truncateForPersist
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MOE2D3NR.js";
|
|
6
6
|
import {
|
|
7
7
|
AuthError,
|
|
8
8
|
ProviderError,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
MCP_PROTOCOL_VERSION,
|
|
19
19
|
MCP_TOOL_PREFIX,
|
|
20
20
|
VERSION
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-RRL5572W.js";
|
|
22
22
|
|
|
23
23
|
// src/providers/claude.ts
|
|
24
24
|
import Anthropic from "@anthropic-ai/sdk";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-6VRJGH25.js";
|
|
20
20
|
import {
|
|
21
21
|
runTestsTool
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZT7RZYWE.js";
|
|
23
23
|
import {
|
|
24
24
|
CONFIG_DIR_NAME,
|
|
25
25
|
DEFAULT_MAX_TOOL_OUTPUT_CHARS_CAP,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
SUBAGENT_ALLOWED_TOOLS,
|
|
28
28
|
SUBAGENT_DEFAULT_MAX_ROUNDS,
|
|
29
29
|
SUBAGENT_MAX_ROUNDS_LIMIT
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-RRL5572W.js";
|
|
31
31
|
|
|
32
32
|
// src/tools/builtin/bash.ts
|
|
33
33
|
import { execSync } from "child_process";
|
package/dist/electron-server.js
CHANGED
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
VERSION,
|
|
37
37
|
buildUserIdentityPrompt,
|
|
38
38
|
runTestsTool
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-FU6WMYXS.js";
|
|
40
40
|
import {
|
|
41
41
|
hasSemanticIndex,
|
|
42
42
|
semanticSearch
|
|
@@ -10705,6 +10705,13 @@ ${undoResults.map((r) => ` \u2022 ${r}`).join("\n")}` });
|
|
|
10705
10705
|
this.send({ type: "error", message: "No symbol index yet. Run /index rebuild first." });
|
|
10706
10706
|
break;
|
|
10707
10707
|
}
|
|
10708
|
+
if (idx.symbolCount === 0) {
|
|
10709
|
+
this.send({
|
|
10710
|
+
type: "error",
|
|
10711
|
+
message: "No code symbols to embed. Semantic search needs TS/TSX/JS/JSX/Python source files \u2014 this project appears to have none. Not downloading the embedding model."
|
|
10712
|
+
});
|
|
10713
|
+
break;
|
|
10714
|
+
}
|
|
10708
10715
|
this.send({
|
|
10709
10716
|
type: "info",
|
|
10710
10717
|
message: `Building semantic index for ${idx.symbolCount} symbols\u2026 (first run downloads ~117 MB model)`
|
|
@@ -10897,7 +10904,7 @@ ${undoResults.map((r) => ` \u2022 ${r}`).join("\n")}` });
|
|
|
10897
10904
|
case "test": {
|
|
10898
10905
|
this.send({ type: "info", message: "\u{1F9EA} Running tests..." });
|
|
10899
10906
|
try {
|
|
10900
|
-
const { executeTests } = await import("./run-tests-
|
|
10907
|
+
const { executeTests } = await import("./run-tests-O2CYJF3Y.js");
|
|
10901
10908
|
const argStr = args.join(" ").trim();
|
|
10902
10909
|
let testArgs = {};
|
|
10903
10910
|
if (argStr) {
|
|
@@ -385,7 +385,7 @@ ${content}`);
|
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
387
|
async function runTaskMode(config, providers, configManager, topic) {
|
|
388
|
-
const { TaskOrchestrator } = await import("./task-orchestrator-
|
|
388
|
+
const { TaskOrchestrator } = await import("./task-orchestrator-MWZ7NMES.js");
|
|
389
389
|
const orchestrator = new TaskOrchestrator(config, providers, configManager);
|
|
390
390
|
let interrupted = false;
|
|
391
391
|
const onSigint = () => {
|
package/dist/index.js
CHANGED
|
@@ -30,10 +30,10 @@ import {
|
|
|
30
30
|
saveDevState,
|
|
31
31
|
sessionHasMeaningfulContent,
|
|
32
32
|
setupProxy
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-EGJAMKAZ.js";
|
|
34
34
|
import {
|
|
35
35
|
ConfigManager
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-34OKHMTQ.js";
|
|
37
37
|
import {
|
|
38
38
|
ToolExecutor,
|
|
39
39
|
ToolRegistry,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
spawnAgentContext,
|
|
50
50
|
theme,
|
|
51
51
|
undoStack
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-MOE2D3NR.js";
|
|
53
53
|
import "./chunk-2ZD3YTVM.js";
|
|
54
54
|
import {
|
|
55
55
|
fileCheckpoints
|
|
@@ -58,7 +58,7 @@ import "./chunk-NHNWUBXB.js";
|
|
|
58
58
|
import "./chunk-HPDDAXFY.js";
|
|
59
59
|
import "./chunk-6VRJGH25.js";
|
|
60
60
|
import "./chunk-PFYAAX2S.js";
|
|
61
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-ZT7RZYWE.js";
|
|
62
62
|
import {
|
|
63
63
|
AGENTIC_BEHAVIOR_GUIDELINE,
|
|
64
64
|
AUTHOR,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
SKILLS_DIR_NAME,
|
|
81
81
|
VERSION,
|
|
82
82
|
buildUserIdentityPrompt
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-RRL5572W.js";
|
|
84
84
|
|
|
85
85
|
// src/index.ts
|
|
86
86
|
import { program } from "commander";
|
|
@@ -2427,6 +2427,12 @@ ${hint}` : "")
|
|
|
2427
2427
|
ctx.renderer.renderError("No symbol index yet. Run `/index rebuild` first, then semantic-rebuild.");
|
|
2428
2428
|
return;
|
|
2429
2429
|
}
|
|
2430
|
+
if (idx.symbolCount === 0) {
|
|
2431
|
+
ctx.renderer.renderError(
|
|
2432
|
+
"No code symbols to embed. Semantic search needs source files in TS/TSX/JS/JSX/Python \u2014 this project appears to have none (check `/index rebuild` output). Nothing to do; not downloading the embedding model."
|
|
2433
|
+
);
|
|
2434
|
+
return;
|
|
2435
|
+
}
|
|
2430
2436
|
console.log(theme.dim(` Building semantic index for ${idx.symbolCount} symbols\u2026`));
|
|
2431
2437
|
console.log(theme.dim(" (First run downloads ~117 MB embedding model to ~/.aicli/models/)"));
|
|
2432
2438
|
const { rebuildSemanticIndex } = await import("./semantic-RBWU76MD.js");
|
|
@@ -2495,7 +2501,7 @@ ${hint}` : "")
|
|
|
2495
2501
|
usage: "/test [command|filter]",
|
|
2496
2502
|
async execute(args, ctx) {
|
|
2497
2503
|
try {
|
|
2498
|
-
const { executeTests } = await import("./run-tests-
|
|
2504
|
+
const { executeTests } = await import("./run-tests-WPSQCOIG.js");
|
|
2499
2505
|
const argStr = args.join(" ").trim();
|
|
2500
2506
|
let testArgs = {};
|
|
2501
2507
|
if (argStr) {
|
|
@@ -6388,7 +6394,7 @@ program.command("web").description("Start Web UI server with browser-based chat
|
|
|
6388
6394
|
console.error("Error: Invalid port number. Must be between 1 and 65535.");
|
|
6389
6395
|
process.exit(1);
|
|
6390
6396
|
}
|
|
6391
|
-
const { startWebServer } = await import("./server-
|
|
6397
|
+
const { startWebServer } = await import("./server-MHY4E453.js");
|
|
6392
6398
|
await startWebServer({ port, host: options.host });
|
|
6393
6399
|
});
|
|
6394
6400
|
program.command("user [action] [username]").description("Manage Web UI users (list | create <name> | delete <name> | reset-password <name> | migrate <name>)").action(async (action, username) => {
|
|
@@ -6511,7 +6517,7 @@ program.command("sessions").description("List recent conversation sessions").act
|
|
|
6511
6517
|
});
|
|
6512
6518
|
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) => {
|
|
6513
6519
|
try {
|
|
6514
|
-
const batch = await import("./batch-
|
|
6520
|
+
const batch = await import("./batch-SMUURFMA.js");
|
|
6515
6521
|
switch (action) {
|
|
6516
6522
|
case "submit":
|
|
6517
6523
|
if (!arg) {
|
|
@@ -6671,7 +6677,7 @@ program.command("hub [topic]").description("Start multi-agent hub (discuss / bra
|
|
|
6671
6677
|
}),
|
|
6672
6678
|
config.get("customProviders")
|
|
6673
6679
|
);
|
|
6674
|
-
const { startHub } = await import("./hub-
|
|
6680
|
+
const { startHub } = await import("./hub-BDEFIXFF.js");
|
|
6675
6681
|
await startHub(
|
|
6676
6682
|
{
|
|
6677
6683
|
topic: topic ?? "",
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
persistToolRound,
|
|
21
21
|
rebuildExtraMessages,
|
|
22
22
|
setupProxy
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-EGJAMKAZ.js";
|
|
24
24
|
import {
|
|
25
25
|
ConfigManager
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-34OKHMTQ.js";
|
|
27
27
|
import {
|
|
28
28
|
ToolExecutor,
|
|
29
29
|
ToolRegistry,
|
|
@@ -41,14 +41,14 @@ import {
|
|
|
41
41
|
spawnAgentContext,
|
|
42
42
|
truncateOutput,
|
|
43
43
|
undoStack
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-MOE2D3NR.js";
|
|
45
45
|
import "./chunk-2ZD3YTVM.js";
|
|
46
46
|
import "./chunk-4BKXL7SM.js";
|
|
47
47
|
import "./chunk-NHNWUBXB.js";
|
|
48
48
|
import "./chunk-HPDDAXFY.js";
|
|
49
49
|
import "./chunk-6VRJGH25.js";
|
|
50
50
|
import "./chunk-PFYAAX2S.js";
|
|
51
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-ZT7RZYWE.js";
|
|
52
52
|
import {
|
|
53
53
|
AGENTIC_BEHAVIOR_GUIDELINE,
|
|
54
54
|
AUTHOR,
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
SKILLS_DIR_NAME,
|
|
68
68
|
VERSION,
|
|
69
69
|
buildUserIdentityPrompt
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-RRL5572W.js";
|
|
71
71
|
import {
|
|
72
72
|
AuthManager
|
|
73
73
|
} from "./chunk-BYNY5JPB.js";
|
|
@@ -1946,6 +1946,13 @@ ${undoResults.map((r) => ` \u2022 ${r}`).join("\n")}` });
|
|
|
1946
1946
|
this.send({ type: "error", message: "No symbol index yet. Run /index rebuild first." });
|
|
1947
1947
|
break;
|
|
1948
1948
|
}
|
|
1949
|
+
if (idx.symbolCount === 0) {
|
|
1950
|
+
this.send({
|
|
1951
|
+
type: "error",
|
|
1952
|
+
message: "No code symbols to embed. Semantic search needs TS/TSX/JS/JSX/Python source files \u2014 this project appears to have none. Not downloading the embedding model."
|
|
1953
|
+
});
|
|
1954
|
+
break;
|
|
1955
|
+
}
|
|
1949
1956
|
this.send({
|
|
1950
1957
|
type: "info",
|
|
1951
1958
|
message: `Building semantic index for ${idx.symbolCount} symbols\u2026 (first run downloads ~117 MB model)`
|
|
@@ -2138,7 +2145,7 @@ ${undoResults.map((r) => ` \u2022 ${r}`).join("\n")}` });
|
|
|
2138
2145
|
case "test": {
|
|
2139
2146
|
this.send({ type: "info", message: "\u{1F9EA} Running tests..." });
|
|
2140
2147
|
try {
|
|
2141
|
-
const { executeTests } = await import("./run-tests-
|
|
2148
|
+
const { executeTests } = await import("./run-tests-WPSQCOIG.js");
|
|
2142
2149
|
const argStr = args.join(" ").trim();
|
|
2143
2150
|
let testArgs = {};
|
|
2144
2151
|
if (argStr) {
|
|
@@ -4,17 +4,17 @@ import {
|
|
|
4
4
|
getDangerLevel,
|
|
5
5
|
googleSearchContext,
|
|
6
6
|
truncateOutput
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MOE2D3NR.js";
|
|
8
8
|
import "./chunk-2ZD3YTVM.js";
|
|
9
9
|
import "./chunk-4BKXL7SM.js";
|
|
10
10
|
import "./chunk-NHNWUBXB.js";
|
|
11
11
|
import "./chunk-HPDDAXFY.js";
|
|
12
12
|
import "./chunk-6VRJGH25.js";
|
|
13
13
|
import "./chunk-PFYAAX2S.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-ZT7RZYWE.js";
|
|
15
15
|
import {
|
|
16
16
|
SUBAGENT_ALLOWED_TOOLS
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RRL5572W.js";
|
|
18
18
|
|
|
19
19
|
// src/hub/task-orchestrator.ts
|
|
20
20
|
import { createInterface } from "readline";
|