jinzd-ai-cli 0.4.71 → 0.4.73
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-2ZD3YTVM.js +114 -0
- package/dist/{chunk-6QRHSSJB.js → chunk-76KBSQHA.js} +1 -1
- package/dist/{chunk-UHZ6YANH.js → chunk-H65WPFDO.js} +164 -114
- package/dist/{chunk-6OKAZIY7.js → chunk-HAOCJWW2.js} +3 -152
- package/dist/chunk-LR7IV4SK.js +318 -0
- package/dist/chunk-T2OUKQOX.js +155 -0
- package/dist/{chunk-IZK6GNT4.js → chunk-TIGB5ADX.js} +47 -354
- package/dist/{hub-DUCBBK3Y.js → hub-AFXKRJ5D.js} +1 -1
- package/dist/index.js +56 -7
- package/dist/{run-tests-CKMD75Y2.js → run-tests-5BUD2CL4.js} +1 -1
- package/dist/{run-tests-A42NM2XQ.js → run-tests-6JUSVL4W.js} +2 -1
- package/dist/{server-BOAYC5O3.js → server-QQGBLS42.js} +9 -5
- package/dist/{task-orchestrator-WX5NZZJR.js → task-orchestrator-M7Y32LNH.js} +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
ConfigManager,
|
|
4
3
|
HALLUCINATION_CORRECTION_MESSAGE,
|
|
5
4
|
McpManager,
|
|
6
5
|
ProviderRegistry,
|
|
@@ -31,7 +30,10 @@ import {
|
|
|
31
30
|
saveDevState,
|
|
32
31
|
sessionHasMeaningfulContent,
|
|
33
32
|
setupProxy
|
|
34
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-TIGB5ADX.js";
|
|
34
|
+
import {
|
|
35
|
+
ConfigManager
|
|
36
|
+
} from "./chunk-LR7IV4SK.js";
|
|
35
37
|
import {
|
|
36
38
|
ToolExecutor,
|
|
37
39
|
ToolRegistry,
|
|
@@ -47,10 +49,12 @@ import {
|
|
|
47
49
|
spawnAgentContext,
|
|
48
50
|
theme,
|
|
49
51
|
undoStack
|
|
50
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-H65WPFDO.js";
|
|
51
53
|
import {
|
|
52
54
|
fileCheckpoints
|
|
53
55
|
} from "./chunk-4BKXL7SM.js";
|
|
56
|
+
import "./chunk-HAOCJWW2.js";
|
|
57
|
+
import "./chunk-2ZD3YTVM.js";
|
|
54
58
|
import {
|
|
55
59
|
AGENTIC_BEHAVIOR_GUIDELINE,
|
|
56
60
|
AUTHOR,
|
|
@@ -72,7 +76,7 @@ import {
|
|
|
72
76
|
SKILLS_DIR_NAME,
|
|
73
77
|
VERSION,
|
|
74
78
|
buildUserIdentityPrompt
|
|
75
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-T2OUKQOX.js";
|
|
76
80
|
|
|
77
81
|
// src/index.ts
|
|
78
82
|
import { program } from "commander";
|
|
@@ -2267,7 +2271,7 @@ ${hint}` : "")
|
|
|
2267
2271
|
usage: "/test [command|filter]",
|
|
2268
2272
|
async execute(args, ctx) {
|
|
2269
2273
|
try {
|
|
2270
|
-
const { executeTests } = await import("./run-tests-
|
|
2274
|
+
const { executeTests } = await import("./run-tests-6JUSVL4W.js");
|
|
2271
2275
|
const argStr = args.join(" ").trim();
|
|
2272
2276
|
let testArgs = {};
|
|
2273
2277
|
if (argStr) {
|
|
@@ -6139,7 +6143,7 @@ program.command("web").description("Start Web UI server with browser-based chat
|
|
|
6139
6143
|
console.error("Error: Invalid port number. Must be between 1 and 65535.");
|
|
6140
6144
|
process.exit(1);
|
|
6141
6145
|
}
|
|
6142
|
-
const { startWebServer } = await import("./server-
|
|
6146
|
+
const { startWebServer } = await import("./server-QQGBLS42.js");
|
|
6143
6147
|
await startWebServer({ port, host: options.host });
|
|
6144
6148
|
});
|
|
6145
6149
|
program.command("user [action] [username]").description("Manage Web UI users (list | create <name> | delete <name> | reset-password <name> | migrate <name>)").action(async (action, username) => {
|
|
@@ -6260,6 +6264,50 @@ program.command("sessions").description("List recent conversation sessions").act
|
|
|
6260
6264
|
}
|
|
6261
6265
|
console.log();
|
|
6262
6266
|
});
|
|
6267
|
+
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) => {
|
|
6268
|
+
try {
|
|
6269
|
+
const batch = await import("./batch-QSOGQ46F.js");
|
|
6270
|
+
switch (action) {
|
|
6271
|
+
case "submit":
|
|
6272
|
+
if (!arg) {
|
|
6273
|
+
console.error("Usage: aicli batch submit <input.jsonl>");
|
|
6274
|
+
process.exit(1);
|
|
6275
|
+
}
|
|
6276
|
+
await batch.cmdSubmit(arg, { dryRun: options?.dryRun });
|
|
6277
|
+
break;
|
|
6278
|
+
case "list":
|
|
6279
|
+
await batch.cmdList();
|
|
6280
|
+
break;
|
|
6281
|
+
case "status":
|
|
6282
|
+
if (!arg) {
|
|
6283
|
+
console.error("Usage: aicli batch status <id>");
|
|
6284
|
+
process.exit(1);
|
|
6285
|
+
}
|
|
6286
|
+
await batch.cmdStatus(arg);
|
|
6287
|
+
break;
|
|
6288
|
+
case "results":
|
|
6289
|
+
if (!arg) {
|
|
6290
|
+
console.error("Usage: aicli batch results <id> [out.jsonl]");
|
|
6291
|
+
process.exit(1);
|
|
6292
|
+
}
|
|
6293
|
+
await batch.cmdResults(arg, arg2);
|
|
6294
|
+
break;
|
|
6295
|
+
case "cancel":
|
|
6296
|
+
if (!arg) {
|
|
6297
|
+
console.error("Usage: aicli batch cancel <id>");
|
|
6298
|
+
process.exit(1);
|
|
6299
|
+
}
|
|
6300
|
+
await batch.cmdCancel(arg);
|
|
6301
|
+
break;
|
|
6302
|
+
default:
|
|
6303
|
+
console.error(`Unknown batch action: ${action}. Use submit | list | status | results | cancel.`);
|
|
6304
|
+
process.exit(1);
|
|
6305
|
+
}
|
|
6306
|
+
} catch (err) {
|
|
6307
|
+
console.error(`Error: ${err instanceof Error ? err.message : String(err)}`);
|
|
6308
|
+
process.exit(1);
|
|
6309
|
+
}
|
|
6310
|
+
});
|
|
6263
6311
|
program.command("help").description("Show a comprehensive guide to all aicli features and commands").action(() => {
|
|
6264
6312
|
const B = "\x1B[1m";
|
|
6265
6313
|
const D = "\x1B[2m";
|
|
@@ -6285,6 +6333,7 @@ program.command("help").description("Show a comprehensive guide to all aicli fea
|
|
|
6285
6333
|
` ${G}aicli providers${R} List all providers and status`,
|
|
6286
6334
|
` ${G}aicli sessions${R} List recent conversation sessions`,
|
|
6287
6335
|
` ${G}aicli user <action>${R} User management (list/create/delete)`,
|
|
6336
|
+
` ${G}aicli batch <action>${R} Anthropic Batches API (50% off, 24h): submit/list/status/results/cancel`,
|
|
6288
6337
|
"",
|
|
6289
6338
|
`${B}${C} \u25A0 STARTUP OPTIONS${R}`,
|
|
6290
6339
|
` ${Y}--provider <name>${R} Set AI provider`,
|
|
@@ -6372,7 +6421,7 @@ program.command("hub [topic]").description("Start multi-agent hub (discuss / bra
|
|
|
6372
6421
|
}),
|
|
6373
6422
|
config.get("customProviders")
|
|
6374
6423
|
);
|
|
6375
|
-
const { startHub } = await import("./hub-
|
|
6424
|
+
const { startHub } = await import("./hub-AFXKRJ5D.js");
|
|
6376
6425
|
await startHub(
|
|
6377
6426
|
{
|
|
6378
6427
|
topic: topic ?? "",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
ConfigManager,
|
|
4
3
|
HALLUCINATION_CORRECTION_MESSAGE,
|
|
5
4
|
McpManager,
|
|
6
5
|
ProviderRegistry,
|
|
@@ -21,10 +20,13 @@ import {
|
|
|
21
20
|
persistToolRound,
|
|
22
21
|
rebuildExtraMessages,
|
|
23
22
|
setupProxy
|
|
24
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TIGB5ADX.js";
|
|
25
24
|
import {
|
|
26
25
|
AuthManager
|
|
27
26
|
} from "./chunk-BYNY5JPB.js";
|
|
27
|
+
import {
|
|
28
|
+
ConfigManager
|
|
29
|
+
} from "./chunk-LR7IV4SK.js";
|
|
28
30
|
import {
|
|
29
31
|
ToolExecutor,
|
|
30
32
|
ToolRegistry,
|
|
@@ -42,8 +44,10 @@ import {
|
|
|
42
44
|
spawnAgentContext,
|
|
43
45
|
truncateOutput,
|
|
44
46
|
undoStack
|
|
45
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-H65WPFDO.js";
|
|
46
48
|
import "./chunk-4BKXL7SM.js";
|
|
49
|
+
import "./chunk-HAOCJWW2.js";
|
|
50
|
+
import "./chunk-2ZD3YTVM.js";
|
|
47
51
|
import {
|
|
48
52
|
AGENTIC_BEHAVIOR_GUIDELINE,
|
|
49
53
|
AUTHOR,
|
|
@@ -62,7 +66,7 @@ import {
|
|
|
62
66
|
SKILLS_DIR_NAME,
|
|
63
67
|
VERSION,
|
|
64
68
|
buildUserIdentityPrompt
|
|
65
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-T2OUKQOX.js";
|
|
66
70
|
|
|
67
71
|
// src/web/server.ts
|
|
68
72
|
import express from "express";
|
|
@@ -1948,7 +1952,7 @@ ${undoResults.map((r) => ` \u2022 ${r}`).join("\n")}` });
|
|
|
1948
1952
|
case "test": {
|
|
1949
1953
|
this.send({ type: "info", message: "\u{1F9EA} Running tests..." });
|
|
1950
1954
|
try {
|
|
1951
|
-
const { executeTests } = await import("./run-tests-
|
|
1955
|
+
const { executeTests } = await import("./run-tests-6JUSVL4W.js");
|
|
1952
1956
|
const argStr = args.join(" ").trim();
|
|
1953
1957
|
let testArgs = {};
|
|
1954
1958
|
if (argStr) {
|
|
@@ -4,11 +4,13 @@ import {
|
|
|
4
4
|
getDangerLevel,
|
|
5
5
|
googleSearchContext,
|
|
6
6
|
truncateOutput
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-H65WPFDO.js";
|
|
8
8
|
import "./chunk-4BKXL7SM.js";
|
|
9
|
+
import "./chunk-HAOCJWW2.js";
|
|
10
|
+
import "./chunk-2ZD3YTVM.js";
|
|
9
11
|
import {
|
|
10
12
|
SUBAGENT_ALLOWED_TOOLS
|
|
11
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-T2OUKQOX.js";
|
|
12
14
|
|
|
13
15
|
// src/hub/task-orchestrator.ts
|
|
14
16
|
import { createInterface } from "readline";
|