jinzd-ai-cli 0.4.112 → 0.4.113

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.
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  ConfigManager
4
- } from "./chunk-FM5VYCXA.js";
4
+ } from "./chunk-WLZ2PWQV.js";
5
5
  import "./chunk-2ZD3YTVM.js";
6
- import "./chunk-AWZ63EVH.js";
6
+ import "./chunk-SRU5SYZI.js";
7
7
  import "./chunk-PDX44BCA.js";
8
8
 
9
9
  // src/cli/batch.ts
@@ -6,7 +6,7 @@ import { platform } from "os";
6
6
  import chalk from "chalk";
7
7
 
8
8
  // src/core/constants.ts
9
- var VERSION = "0.4.112";
9
+ var VERSION = "0.4.113";
10
10
  var APP_NAME = "ai-cli";
11
11
  var CONFIG_DIR_NAME = ".aicli";
12
12
  var CONFIG_FILE_NAME = "config.json";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-3BICTI5M.js";
6
6
  import {
7
7
  runTestsTool
8
- } from "./chunk-5XHNTLRS.js";
8
+ } from "./chunk-SIDKPVRD.js";
9
9
  import {
10
10
  EnvLoader,
11
11
  NetworkError,
@@ -18,7 +18,7 @@ import {
18
18
  SUBAGENT_ALLOWED_TOOLS,
19
19
  SUBAGENT_DEFAULT_MAX_ROUNDS,
20
20
  SUBAGENT_MAX_ROUNDS_LIMIT
21
- } from "./chunk-AWZ63EVH.js";
21
+ } from "./chunk-SRU5SYZI.js";
22
22
  import {
23
23
  fileCheckpoints
24
24
  } from "./chunk-4BKXL7SM.js";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  TEST_TIMEOUT
4
- } from "./chunk-AWZ63EVH.js";
4
+ } from "./chunk-SRU5SYZI.js";
5
5
 
6
6
  // src/tools/builtin/run-tests.ts
7
7
  import { execSync, spawnSync } from "child_process";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/core/constants.ts
4
- var VERSION = "0.4.112";
4
+ var VERSION = "0.4.113";
5
5
  var APP_NAME = "ai-cli";
6
6
  var CONFIG_DIR_NAME = ".aicli";
7
7
  var CONFIG_FILE_NAME = "config.json";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  schemaToJsonSchema,
4
4
  truncateForPersist
5
- } from "./chunk-7XXZWPTN.js";
5
+ } from "./chunk-3GUNDGUV.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-AWZ63EVH.js";
21
+ } from "./chunk-SRU5SYZI.js";
22
22
  import {
23
23
  redactJson
24
24
  } from "./chunk-7ZJN4KLV.js";
@@ -8,7 +8,7 @@ import {
8
8
  CONFIG_FILE_NAME,
9
9
  HISTORY_DIR_NAME,
10
10
  PLUGINS_DIR_NAME
11
- } from "./chunk-AWZ63EVH.js";
11
+ } from "./chunk-SRU5SYZI.js";
12
12
 
13
13
  // src/config/config-manager.ts
14
14
  import { readFileSync, writeFileSync, existsSync, mkdirSync } from "fs";
@@ -36,7 +36,7 @@ import {
36
36
  TEST_TIMEOUT,
37
37
  VERSION,
38
38
  buildUserIdentityPrompt
39
- } from "./chunk-AWZ63EVH.js";
39
+ } from "./chunk-SRU5SYZI.js";
40
40
  import "./chunk-PDX44BCA.js";
41
41
  export {
42
42
  AGENTIC_BEHAVIOR_GUIDELINE,
@@ -36,7 +36,7 @@ import {
36
36
  VERSION,
37
37
  buildUserIdentityPrompt,
38
38
  runTestsTool
39
- } from "./chunk-DEXCXFLP.js";
39
+ } from "./chunk-2WAEM5B6.js";
40
40
  import {
41
41
  hasSemanticIndex,
42
42
  semanticSearch
@@ -11918,7 +11918,7 @@ ${undoResults.map((r) => ` \u2022 ${r}`).join("\n")}` });
11918
11918
  case "test": {
11919
11919
  this.send({ type: "info", message: "\u{1F9EA} Running tests..." });
11920
11920
  try {
11921
- const { executeTests } = await import("./run-tests-V73IZCNW.js");
11921
+ const { executeTests } = await import("./run-tests-YOBAV24V.js");
11922
11922
  const argStr = args.join(" ").trim();
11923
11923
  let testArgs = {};
11924
11924
  if (argStr) {
@@ -386,7 +386,7 @@ ${content}`);
386
386
  }
387
387
  }
388
388
  async function runTaskMode(config, providers, configManager, topic) {
389
- const { TaskOrchestrator } = await import("./task-orchestrator-RPYZT2WL.js");
389
+ const { TaskOrchestrator } = await import("./task-orchestrator-KZISH5DT.js");
390
390
  const orchestrator = new TaskOrchestrator(config, providers, configManager);
391
391
  let interrupted = false;
392
392
  const onSigint = () => {
package/dist/index.js CHANGED
@@ -31,10 +31,10 @@ import {
31
31
  setupProxy,
32
32
  stripPseudoToolCalls,
33
33
  stripToolCallReminder
34
- } from "./chunk-BWZJGCO6.js";
34
+ } from "./chunk-TFYDLG7E.js";
35
35
  import {
36
36
  ConfigManager
37
- } from "./chunk-FM5VYCXA.js";
37
+ } from "./chunk-WLZ2PWQV.js";
38
38
  import {
39
39
  ToolExecutor,
40
40
  ToolRegistry,
@@ -53,10 +53,10 @@ import {
53
53
  spawnAgentContext,
54
54
  theme,
55
55
  undoStack
56
- } from "./chunk-7XXZWPTN.js";
56
+ } from "./chunk-3GUNDGUV.js";
57
57
  import "./chunk-3BICTI5M.js";
58
58
  import "./chunk-2DXY7UGF.js";
59
- import "./chunk-5XHNTLRS.js";
59
+ import "./chunk-SIDKPVRD.js";
60
60
  import "./chunk-2ZD3YTVM.js";
61
61
  import {
62
62
  AGENTIC_BEHAVIOR_GUIDELINE,
@@ -79,7 +79,7 @@ import {
79
79
  SKILLS_DIR_NAME,
80
80
  VERSION,
81
81
  buildUserIdentityPrompt
82
- } from "./chunk-AWZ63EVH.js";
82
+ } from "./chunk-SRU5SYZI.js";
83
83
  import {
84
84
  formatGitContextForPrompt,
85
85
  getGitContext,
@@ -1600,7 +1600,7 @@ ${text}
1600
1600
  const { join: join6 } = await import("path");
1601
1601
  const { existsSync: existsSync6 } = await import("fs");
1602
1602
  const { getGitRoot: getGitRoot2 } = await import("./git-context-7KIP4X2V.js");
1603
- const { MCP_PROJECT_CONFIG_NAME: MCP_PROJECT_CONFIG_NAME2 } = await import("./constants-OCYK6U3N.js");
1603
+ const { MCP_PROJECT_CONFIG_NAME: MCP_PROJECT_CONFIG_NAME2 } = await import("./constants-2Z7YP252.js");
1604
1604
  const { approveProject, hashMcpFile } = await import("./project-trust-IFM7FXEV.js");
1605
1605
  const cwd = process.cwd();
1606
1606
  const projectRoot = getGitRoot2(cwd) ?? cwd;
@@ -2650,7 +2650,7 @@ ${hint}` : "")
2650
2650
  usage: "/test [command|filter]",
2651
2651
  async execute(args, ctx) {
2652
2652
  try {
2653
- const { executeTests } = await import("./run-tests-JMKGA7XU.js");
2653
+ const { executeTests } = await import("./run-tests-BUDXHVNF.js");
2654
2654
  const argStr = args.join(" ").trim();
2655
2655
  let testArgs = {};
2656
2656
  if (argStr) {
@@ -6882,7 +6882,7 @@ program.command("web").description("Start Web UI server with browser-based chat
6882
6882
  console.error("Error: Invalid port number. Must be between 1 and 65535.");
6883
6883
  process.exit(1);
6884
6884
  }
6885
- const { startWebServer } = await import("./server-YY6CUP3K.js");
6885
+ const { startWebServer } = await import("./server-MJGOR6FU.js");
6886
6886
  await startWebServer({ port, host: options.host });
6887
6887
  });
6888
6888
  program.command("user [action] [username]").description("Manage Web UI users (list | create <name> | delete <name> | reset-password <name> | migrate <name>)").action(async (action, username) => {
@@ -7005,7 +7005,7 @@ program.command("sessions").description("List recent conversation sessions").act
7005
7005
  });
7006
7006
  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) => {
7007
7007
  try {
7008
- const batch = await import("./batch-QQGRQ45S.js");
7008
+ const batch = await import("./batch-NF26OYWB.js");
7009
7009
  switch (action) {
7010
7010
  case "submit":
7011
7011
  if (!arg) {
@@ -7048,7 +7048,7 @@ program.command("batch <action> [arg] [arg2]").description("Anthropic Message Ba
7048
7048
  }
7049
7049
  });
7050
7050
  program.command("mcp-serve").description("Start an MCP server over STDIO, exposing aicli's built-in tools to Claude Desktop / Cursor / other MCP clients").option("--allow-destructive", "Allow bash / run_interactive / task_create (always destructive in MCP mode)").option("--allow-outside-cwd", "Allow tool path arguments to escape the sandbox root \u2014 disabled by default").option("--tools <list>", "Comma-separated whitelist of tools to expose (default: all eligible tools)").option("--cwd <path>", "Working directory AND sandbox root (default: current directory)").action(async (options) => {
7051
- const { startMcpServer } = await import("./server-WWFOPWWJ.js");
7051
+ const { startMcpServer } = await import("./server-ABNZXOV2.js");
7052
7052
  await startMcpServer({
7053
7053
  allowDestructive: !!options.allowDestructive,
7054
7054
  allowOutsideCwd: !!options.allowOutsideCwd,
@@ -7175,7 +7175,7 @@ program.command("hub [topic]").description("Start multi-agent hub (discuss / bra
7175
7175
  }),
7176
7176
  config.get("customProviders")
7177
7177
  );
7178
- const { startHub } = await import("./hub-7KYFVLHM.js");
7178
+ const { startHub } = await import("./hub-KRNH76Y3.js");
7179
7179
  await startHub(
7180
7180
  {
7181
7181
  topic: topic ?? "",
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  executeTests,
4
4
  runTestsTool
5
- } from "./chunk-5XHNTLRS.js";
6
- import "./chunk-AWZ63EVH.js";
5
+ } from "./chunk-SIDKPVRD.js";
6
+ import "./chunk-SRU5SYZI.js";
7
7
  import "./chunk-PDX44BCA.js";
8
8
  export {
9
9
  executeTests,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  executeTests,
3
3
  runTestsTool
4
- } from "./chunk-DEXCXFLP.js";
4
+ } from "./chunk-2WAEM5B6.js";
5
5
  import "./chunk-3RG5ZIWI.js";
6
6
  export {
7
7
  executeTests,
@@ -3,14 +3,14 @@ import {
3
3
  ToolRegistry,
4
4
  getDangerLevel,
5
5
  schemaToJsonSchema
6
- } from "./chunk-7XXZWPTN.js";
6
+ } from "./chunk-3GUNDGUV.js";
7
7
  import "./chunk-3BICTI5M.js";
8
8
  import "./chunk-2DXY7UGF.js";
9
- import "./chunk-5XHNTLRS.js";
9
+ import "./chunk-SIDKPVRD.js";
10
10
  import "./chunk-2ZD3YTVM.js";
11
11
  import {
12
12
  VERSION
13
- } from "./chunk-AWZ63EVH.js";
13
+ } from "./chunk-SRU5SYZI.js";
14
14
  import "./chunk-4BKXL7SM.js";
15
15
  import "./chunk-7ZJN4KLV.js";
16
16
  import "./chunk-KHYD3WXE.js";
@@ -24,10 +24,10 @@ import {
24
24
  setupProxy,
25
25
  stripPseudoToolCalls,
26
26
  stripToolCallReminder
27
- } from "./chunk-BWZJGCO6.js";
27
+ } from "./chunk-TFYDLG7E.js";
28
28
  import {
29
29
  ConfigManager
30
- } from "./chunk-FM5VYCXA.js";
30
+ } from "./chunk-WLZ2PWQV.js";
31
31
  import {
32
32
  ToolExecutor,
33
33
  ToolRegistry,
@@ -45,10 +45,10 @@ import {
45
45
  spawnAgentContext,
46
46
  truncateOutput,
47
47
  undoStack
48
- } from "./chunk-7XXZWPTN.js";
48
+ } from "./chunk-3GUNDGUV.js";
49
49
  import "./chunk-3BICTI5M.js";
50
50
  import "./chunk-2DXY7UGF.js";
51
- import "./chunk-5XHNTLRS.js";
51
+ import "./chunk-SIDKPVRD.js";
52
52
  import "./chunk-2ZD3YTVM.js";
53
53
  import {
54
54
  AGENTIC_BEHAVIOR_GUIDELINE,
@@ -68,7 +68,7 @@ import {
68
68
  SKILLS_DIR_NAME,
69
69
  VERSION,
70
70
  buildUserIdentityPrompt
71
- } from "./chunk-AWZ63EVH.js";
71
+ } from "./chunk-SRU5SYZI.js";
72
72
  import {
73
73
  formatGitContextForPrompt,
74
74
  getGitContext,
@@ -2411,7 +2411,7 @@ ${undoResults.map((r) => ` \u2022 ${r}`).join("\n")}` });
2411
2411
  case "test": {
2412
2412
  this.send({ type: "info", message: "\u{1F9EA} Running tests..." });
2413
2413
  try {
2414
- const { executeTests } = await import("./run-tests-JMKGA7XU.js");
2414
+ const { executeTests } = await import("./run-tests-BUDXHVNF.js");
2415
2415
  const argStr = args.join(" ").trim();
2416
2416
  let testArgs = {};
2417
2417
  if (argStr) {
@@ -4,14 +4,14 @@ import {
4
4
  getDangerLevel,
5
5
  googleSearchContext,
6
6
  truncateOutput
7
- } from "./chunk-7XXZWPTN.js";
7
+ } from "./chunk-3GUNDGUV.js";
8
8
  import "./chunk-3BICTI5M.js";
9
9
  import "./chunk-2DXY7UGF.js";
10
- import "./chunk-5XHNTLRS.js";
10
+ import "./chunk-SIDKPVRD.js";
11
11
  import "./chunk-2ZD3YTVM.js";
12
12
  import {
13
13
  SUBAGENT_ALLOWED_TOOLS
14
- } from "./chunk-AWZ63EVH.js";
14
+ } from "./chunk-SRU5SYZI.js";
15
15
  import "./chunk-4BKXL7SM.js";
16
16
  import "./chunk-7ZJN4KLV.js";
17
17
  import "./chunk-KHYD3WXE.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jinzd-ai-cli",
3
- "version": "0.4.112",
3
+ "version": "0.4.113",
4
4
  "description": "Cross-platform REPL-style AI CLI with multi-provider support",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -89,8 +89,8 @@
89
89
  "tree-sitter-javascript": "^0.25.0",
90
90
  "tree-sitter-python": "^0.25.0",
91
91
  "tree-sitter-typescript": "^0.23.2",
92
- "undici": "^7.22.0",
93
- "uuid": "^11.0.5",
92
+ "undici": "^7.24.0",
93
+ "uuid": "^14.0.0",
94
94
  "web-tree-sitter": "^0.26.8",
95
95
  "ws": "^8.19.0",
96
96
  "zod": "^3.24.1"
@@ -101,12 +101,15 @@
101
101
  "@types/uuid": "^10.0.0",
102
102
  "@types/ws": "^8.18.1",
103
103
  "@yao-pkg/pkg": "^6.14.0",
104
- "electron": "^35.0.0",
104
+ "@typescript-eslint/eslint-plugin": "^8.13.0",
105
+ "@typescript-eslint/parser": "^8.13.0",
106
+ "electron": "^41.4.0",
105
107
  "electron-builder": "^26.0.0",
108
+ "eslint": "^9.13.0",
106
109
  "tsup": "^8.3.5",
107
110
  "tsx": "^4.19.2",
108
111
  "typescript": "^5.7.3",
109
- "vitest": "^2.1.8"
112
+ "vitest": "^3.2.4"
110
113
  },
111
114
  "author": "jinzd",
112
115
  "build": {