jinzd-ai-cli 0.4.72 → 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/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-57HHY5ZX.js";
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-XH65H3BT.js";
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-73UI5AH7.js";
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-4565WOUK.js");
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-Y4CT5IJJ.js");
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-NQADIYTS.js");
6424
+ const { startHub } = await import("./hub-AFXKRJ5D.js");
6376
6425
  await startHub(
6377
6426
  {
6378
6427
  topic: topic ?? "",
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  executeTests,
3
3
  runTestsTool
4
- } from "./chunk-OKNKH5D7.js";
4
+ } from "./chunk-76KBSQHA.js";
5
5
  export {
6
6
  executeTests,
7
7
  runTestsTool
@@ -2,7 +2,8 @@
2
2
  import {
3
3
  executeTests,
4
4
  runTestsTool
5
- } from "./chunk-73UI5AH7.js";
5
+ } from "./chunk-HAOCJWW2.js";
6
+ import "./chunk-T2OUKQOX.js";
6
7
  export {
7
8
  executeTests,
8
9
  runTestsTool
@@ -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-57HHY5ZX.js";
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-XH65H3BT.js";
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-73UI5AH7.js";
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-4565WOUK.js");
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-XH65H3BT.js";
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-73UI5AH7.js";
13
+ } from "./chunk-T2OUKQOX.js";
12
14
 
13
15
  // src/hub/task-orchestrator.ts
14
16
  import { createInterface } from "readline";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jinzd-ai-cli",
3
- "version": "0.4.72",
3
+ "version": "0.4.73",
4
4
  "description": "Cross-platform REPL-style AI CLI with multi-provider support",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",