jinzd-ai-cli 0.4.145 → 0.4.148

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-MII3VYZ7.js";
4
+ } from "./chunk-TWQJOSWT.js";
5
5
  import "./chunk-2ZD3YTVM.js";
6
- import "./chunk-EYUL75S4.js";
6
+ import "./chunk-QDEJJT2V.js";
7
7
  import "./chunk-PDX44BCA.js";
8
8
 
9
9
  // src/cli/batch.ts
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CONFIG_DIR_NAME
4
- } from "./chunk-EYUL75S4.js";
4
+ } from "./chunk-QDEJJT2V.js";
5
5
 
6
6
  // src/diagnostics/tool-stats.ts
7
7
  import { existsSync, readFileSync, writeFileSync, mkdirSync, renameSync } from "fs";
@@ -5,10 +5,10 @@ import {
5
5
  } from "./chunk-UQQJWHRV.js";
6
6
  import {
7
7
  runTestsTool
8
- } from "./chunk-QWP4RFMS.js";
8
+ } from "./chunk-FUJYXYGW.js";
9
9
  import {
10
10
  runTool
11
- } from "./chunk-GZNBAFTO.js";
11
+ } from "./chunk-7ED4OKOB.js";
12
12
  import {
13
13
  getDangerLevel,
14
14
  isFileWriteTool
@@ -25,7 +25,7 @@ import {
25
25
  SUBAGENT_ALLOWED_TOOLS,
26
26
  SUBAGENT_DEFAULT_MAX_ROUNDS,
27
27
  SUBAGENT_MAX_ROUNDS_LIMIT
28
- } from "./chunk-EYUL75S4.js";
28
+ } from "./chunk-QDEJJT2V.js";
29
29
  import {
30
30
  fileCheckpoints
31
31
  } from "./chunk-4BKXL7SM.js";
@@ -420,6 +420,11 @@ function buildErrorHint(command, stderr) {
420
420
  `Hint: On Windows, "Remove-Item ... -ErrorAction SilentlyContinue" still makes the powershell process exit 1 when no files match (even though the error is silenced). Use Test-Path as a guard: @('tmp_a.sql','tmp_b.sql','tmp_c.csv') | Where-Object { Test-Path $_ } | Remove-Item -Force \u2014 Test-Path returns a bool without raising, so missing paths are filtered out and exit code is 0.`
421
421
  );
422
422
  }
423
+ if (IS_WINDOWS && /-(?:EA|ErrorAction)\s+(?:SilentlyContinue|Ignore)\b/i.test(command) && /\b(Get-ChildItem|Get-Item|Get-Content|gci|gi|gc|dir|ls)\b/i.test(command) && !/Remove-Item/i.test(command) && !/Test-Path/i.test(command) && /cannot find path|no such file|does not exist|exit 1|不存在|找不到/i.test(stderr || command)) {
424
+ hints.push(
425
+ `Hint: On Windows, "-ErrorAction SilentlyContinue" silences the error MESSAGE but does NOT change the exit code \u2014 the process still exits 1 when the path doesn't exist (because powershell.exe -NonInteractive flips the exit code on any non-terminating error, silenced or not). If you're just probing for existence, use Test-Path instead \u2014 it returns $true/$false without raising: \`if (Test-Path ./mydir) { Get-ChildItem ./mydir }\` or unconditionally use \`New-Item -ItemType Directory -Force -Path ./mydir\` which is idempotent. Don't retry the same -ErrorAction SilentlyContinue probe expecting a different result.`
426
+ );
427
+ }
423
428
  const colMissing = stderr.match(/column "([^"]+)" does not exist/i);
424
429
  if (colMissing) {
425
430
  hints.push(
@@ -1927,22 +1927,42 @@ var KimiProvider = class extends OpenAICompatibleProvider {
1927
1927
  info = {
1928
1928
  id: "kimi",
1929
1929
  displayName: "Kimi (Moonshot AI)",
1930
- defaultModel: "kimi-k2-0711-preview",
1930
+ defaultModel: "kimi-k2.6",
1931
1931
  apiKeyEnvVar: "AICLI_API_KEY_KIMI",
1932
1932
  requiresApiKey: true,
1933
1933
  baseUrl: this.defaultBaseUrl,
1934
1934
  models: [
1935
- // Kimi K2 系列(新一代,推荐)
1935
+ // Kimi K2.6 / K2.5 系列(最新一代,推荐)
1936
1936
  {
1937
- id: "kimi-k2-0711-preview",
1938
- displayName: "Kimi K2 Preview",
1939
- contextWindow: 131072,
1937
+ id: "kimi-k2.6",
1938
+ displayName: "Kimi K2.6",
1939
+ contextWindow: 262144,
1940
1940
  supportsStreaming: true
1941
1941
  },
1942
1942
  {
1943
- id: "kimi-k2-turbo-preview",
1944
- displayName: "Kimi K2 Turbo",
1945
- contextWindow: 131072,
1943
+ id: "kimi-k2.5",
1944
+ displayName: "Kimi K2.5",
1945
+ contextWindow: 262144,
1946
+ supportsStreaming: true
1947
+ },
1948
+ // Kimi K2 Thinking 系列(支持多步推理 + 工具调用)
1949
+ {
1950
+ id: "kimi-k2-thinking",
1951
+ displayName: "Kimi K2 Thinking",
1952
+ contextWindow: 262144,
1953
+ supportsStreaming: true
1954
+ },
1955
+ {
1956
+ id: "kimi-k2-thinking-turbo",
1957
+ displayName: "Kimi K2 Thinking Turbo",
1958
+ contextWindow: 262144,
1959
+ supportsStreaming: true
1960
+ },
1961
+ // Kimi K2 Preview 系列
1962
+ {
1963
+ id: "kimi-k2-0905-preview",
1964
+ displayName: "Kimi K2 0905 Preview",
1965
+ contextWindow: 262144,
1946
1966
  supportsStreaming: true
1947
1967
  },
1948
1968
  // moonshot-v1 系列(老一代,稳定)
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  TEST_TIMEOUT
4
- } from "./chunk-EYUL75S4.js";
4
+ } from "./chunk-QDEJJT2V.js";
5
5
 
6
6
  // src/tools/builtin/run-tests.ts
7
7
  import { execSync, spawnSync } from "child_process";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  CONFIG_DIR_NAME,
4
4
  VERSION
5
- } from "./chunk-EYUL75S4.js";
5
+ } from "./chunk-QDEJJT2V.js";
6
6
 
7
7
  // src/diagnostics/crash-log.ts
8
8
  import {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  truncateForPersist
4
- } from "./chunk-A3RPBWBF.js";
4
+ } from "./chunk-7ZCBHBO2.js";
5
5
  import {
6
6
  APP_NAME,
7
7
  CONFIG_DIR_NAME,
@@ -11,7 +11,7 @@ import {
11
11
  MCP_PROTOCOL_VERSION,
12
12
  MCP_TOOL_PREFIX,
13
13
  VERSION
14
- } from "./chunk-EYUL75S4.js";
14
+ } from "./chunk-QDEJJT2V.js";
15
15
  import {
16
16
  redactJson
17
17
  } from "./chunk-7ZJN4KLV.js";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/core/constants.ts
4
- var VERSION = "0.4.145";
4
+ var VERSION = "0.4.148";
5
5
  var APP_NAME = "ai-cli";
6
6
  var CONFIG_DIR_NAME = ".aicli";
7
7
  var CONFIG_FILE_NAME = "config.json";
@@ -8,7 +8,7 @@ import {
8
8
  CONFIG_FILE_NAME,
9
9
  HISTORY_DIR_NAME,
10
10
  PLUGINS_DIR_NAME
11
- } from "./chunk-EYUL75S4.js";
11
+ } from "./chunk-QDEJJT2V.js";
12
12
 
13
13
  // src/config/config-manager.ts
14
14
  import { readFileSync, writeFileSync, existsSync, mkdirSync } from "fs";
@@ -302,11 +302,19 @@ ${err}`
302
302
  migrateLegacyModels() {
303
303
  const LEGACY_DEEPSEEK = /* @__PURE__ */ new Set(["deepseek-chat", "deepseek-reasoner"]);
304
304
  const DEEPSEEK_TARGET = "deepseek-v4-flash";
305
+ const LEGACY_KIMI = /* @__PURE__ */ new Set(["kimi-k2-0711-preview", "kimi-k2-turbo-preview"]);
306
+ const KIMI_TARGET = "kimi-k2.6";
305
307
  let changed = false;
306
308
  const dm = this.config.defaultModels;
307
- if (dm && LEGACY_DEEPSEEK.has(dm.deepseek)) {
308
- dm.deepseek = DEEPSEEK_TARGET;
309
- changed = true;
309
+ if (dm) {
310
+ if (LEGACY_DEEPSEEK.has(dm.deepseek)) {
311
+ dm.deepseek = DEEPSEEK_TARGET;
312
+ changed = true;
313
+ }
314
+ if (LEGACY_KIMI.has(dm.kimi)) {
315
+ dm.kimi = KIMI_TARGET;
316
+ changed = true;
317
+ }
310
318
  }
311
319
  const mp = this.config.modelParams;
312
320
  if (mp) {
@@ -319,10 +327,19 @@ ${err}`
319
327
  changed = true;
320
328
  }
321
329
  }
330
+ for (const legacy of LEGACY_KIMI) {
331
+ if (legacy in mp) {
332
+ if (!(KIMI_TARGET in mp)) {
333
+ mp[KIMI_TARGET] = mp[legacy];
334
+ }
335
+ delete mp[legacy];
336
+ changed = true;
337
+ }
338
+ }
322
339
  }
323
340
  if (changed) {
324
341
  process.stderr.write(
325
- `[ai-cli] Migrated retired DeepSeek model ids in config.json \u2192 ${DEEPSEEK_TARGET}
342
+ `[ai-cli] Migrated retired model ids in config.json (deepseek \u2192 ${DEEPSEEK_TARGET}, kimi \u2192 ${KIMI_TARGET})
326
343
  `
327
344
  );
328
345
  }
@@ -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.145";
9
+ var VERSION = "0.4.148";
10
10
  var APP_NAME = "ai-cli";
11
11
  var CONFIG_DIR_NAME = ".aicli";
12
12
  var CONFIG_FILE_NAME = "config.json";
@@ -6,15 +6,15 @@ import {
6
6
  } from "./chunk-HLWUDRBO.js";
7
7
  import {
8
8
  ProviderRegistry
9
- } from "./chunk-XZBA3NHG.js";
9
+ } from "./chunk-FPUYLLJ4.js";
10
10
  import {
11
11
  ConfigManager
12
- } from "./chunk-MII3VYZ7.js";
12
+ } from "./chunk-TWQJOSWT.js";
13
13
  import "./chunk-OWPFDHKC.js";
14
14
  import "./chunk-2ZD3YTVM.js";
15
15
  import {
16
16
  VERSION
17
- } from "./chunk-EYUL75S4.js";
17
+ } from "./chunk-QDEJJT2V.js";
18
18
  import "./chunk-PDX44BCA.js";
19
19
 
20
20
  // src/cli/ci.ts
@@ -36,7 +36,7 @@ import {
36
36
  TEST_TIMEOUT,
37
37
  VERSION,
38
38
  buildUserIdentityPrompt
39
- } from "./chunk-EYUL75S4.js";
39
+ } from "./chunk-QDEJJT2V.js";
40
40
  import "./chunk-PDX44BCA.js";
41
41
  export {
42
42
  AGENTIC_BEHAVIOR_GUIDELINE,
@@ -2,26 +2,26 @@
2
2
  import {
3
3
  getConfigDirUsage,
4
4
  listRecentCrashes
5
- } from "./chunk-ZFEFS5HS.js";
5
+ } from "./chunk-KIX6VPQ4.js";
6
6
  import {
7
7
  ProviderRegistry
8
- } from "./chunk-XZBA3NHG.js";
8
+ } from "./chunk-FPUYLLJ4.js";
9
9
  import {
10
10
  ConfigManager
11
- } from "./chunk-MII3VYZ7.js";
11
+ } from "./chunk-TWQJOSWT.js";
12
12
  import {
13
13
  getStatsSnapshot,
14
14
  getTopFailingTools,
15
15
  getTopUsedTools,
16
16
  resetStats
17
- } from "./chunk-GZNBAFTO.js";
17
+ } from "./chunk-7ED4OKOB.js";
18
18
  import "./chunk-OWPFDHKC.js";
19
19
  import "./chunk-2ZD3YTVM.js";
20
20
  import {
21
21
  DEV_STATE_FILE_NAME,
22
22
  MEMORY_FILE_NAME,
23
23
  VERSION
24
- } from "./chunk-EYUL75S4.js";
24
+ } from "./chunk-QDEJJT2V.js";
25
25
  import "./chunk-PDX44BCA.js";
26
26
 
27
27
  // src/diagnostics/doctor-cli.ts
@@ -36,7 +36,7 @@ import {
36
36
  VERSION,
37
37
  buildUserIdentityPrompt,
38
38
  runTestsTool
39
- } from "./chunk-OH5HVL5O.js";
39
+ } from "./chunk-YU2HAZCB.js";
40
40
  import {
41
41
  hasSemanticIndex,
42
42
  semanticSearch
@@ -455,11 +455,19 @@ ${err}`
455
455
  migrateLegacyModels() {
456
456
  const LEGACY_DEEPSEEK = /* @__PURE__ */ new Set(["deepseek-chat", "deepseek-reasoner"]);
457
457
  const DEEPSEEK_TARGET = "deepseek-v4-flash";
458
+ const LEGACY_KIMI = /* @__PURE__ */ new Set(["kimi-k2-0711-preview", "kimi-k2-turbo-preview"]);
459
+ const KIMI_TARGET = "kimi-k2.6";
458
460
  let changed = false;
459
461
  const dm = this.config.defaultModels;
460
- if (dm && LEGACY_DEEPSEEK.has(dm.deepseek)) {
461
- dm.deepseek = DEEPSEEK_TARGET;
462
- changed = true;
462
+ if (dm) {
463
+ if (LEGACY_DEEPSEEK.has(dm.deepseek)) {
464
+ dm.deepseek = DEEPSEEK_TARGET;
465
+ changed = true;
466
+ }
467
+ if (LEGACY_KIMI.has(dm.kimi)) {
468
+ dm.kimi = KIMI_TARGET;
469
+ changed = true;
470
+ }
463
471
  }
464
472
  const mp = this.config.modelParams;
465
473
  if (mp) {
@@ -472,10 +480,19 @@ ${err}`
472
480
  changed = true;
473
481
  }
474
482
  }
483
+ for (const legacy of LEGACY_KIMI) {
484
+ if (legacy in mp) {
485
+ if (!(KIMI_TARGET in mp)) {
486
+ mp[KIMI_TARGET] = mp[legacy];
487
+ }
488
+ delete mp[legacy];
489
+ changed = true;
490
+ }
491
+ }
475
492
  }
476
493
  if (changed) {
477
494
  process.stderr.write(
478
- `[ai-cli] Migrated retired DeepSeek model ids in config.json \u2192 ${DEEPSEEK_TARGET}
495
+ `[ai-cli] Migrated retired model ids in config.json (deepseek \u2192 ${DEEPSEEK_TARGET}, kimi \u2192 ${KIMI_TARGET})
479
496
  `
480
497
  );
481
498
  }
@@ -2438,22 +2455,42 @@ var KimiProvider = class extends OpenAICompatibleProvider {
2438
2455
  info = {
2439
2456
  id: "kimi",
2440
2457
  displayName: "Kimi (Moonshot AI)",
2441
- defaultModel: "kimi-k2-0711-preview",
2458
+ defaultModel: "kimi-k2.6",
2442
2459
  apiKeyEnvVar: "AICLI_API_KEY_KIMI",
2443
2460
  requiresApiKey: true,
2444
2461
  baseUrl: this.defaultBaseUrl,
2445
2462
  models: [
2446
- // Kimi K2 系列(新一代,推荐)
2463
+ // Kimi K2.6 / K2.5 系列(最新一代,推荐)
2447
2464
  {
2448
- id: "kimi-k2-0711-preview",
2449
- displayName: "Kimi K2 Preview",
2450
- contextWindow: 131072,
2465
+ id: "kimi-k2.6",
2466
+ displayName: "Kimi K2.6",
2467
+ contextWindow: 262144,
2451
2468
  supportsStreaming: true
2452
2469
  },
2453
2470
  {
2454
- id: "kimi-k2-turbo-preview",
2455
- displayName: "Kimi K2 Turbo",
2456
- contextWindow: 131072,
2471
+ id: "kimi-k2.5",
2472
+ displayName: "Kimi K2.5",
2473
+ contextWindow: 262144,
2474
+ supportsStreaming: true
2475
+ },
2476
+ // Kimi K2 Thinking 系列(支持多步推理 + 工具调用)
2477
+ {
2478
+ id: "kimi-k2-thinking",
2479
+ displayName: "Kimi K2 Thinking",
2480
+ contextWindow: 262144,
2481
+ supportsStreaming: true
2482
+ },
2483
+ {
2484
+ id: "kimi-k2-thinking-turbo",
2485
+ displayName: "Kimi K2 Thinking Turbo",
2486
+ contextWindow: 262144,
2487
+ supportsStreaming: true
2488
+ },
2489
+ // Kimi K2 Preview 系列
2490
+ {
2491
+ id: "kimi-k2-0905-preview",
2492
+ displayName: "Kimi K2 0905 Preview",
2493
+ contextWindow: 262144,
2457
2494
  supportsStreaming: true
2458
2495
  },
2459
2496
  // moonshot-v1 系列(老一代,稳定)
@@ -4121,6 +4158,11 @@ function buildErrorHint(command, stderr) {
4121
4158
  `Hint: On Windows, "Remove-Item ... -ErrorAction SilentlyContinue" still makes the powershell process exit 1 when no files match (even though the error is silenced). Use Test-Path as a guard: @('tmp_a.sql','tmp_b.sql','tmp_c.csv') | Where-Object { Test-Path $_ } | Remove-Item -Force \u2014 Test-Path returns a bool without raising, so missing paths are filtered out and exit code is 0.`
4122
4159
  );
4123
4160
  }
4161
+ if (IS_WINDOWS && /-(?:EA|ErrorAction)\s+(?:SilentlyContinue|Ignore)\b/i.test(command) && /\b(Get-ChildItem|Get-Item|Get-Content|gci|gi|gc|dir|ls)\b/i.test(command) && !/Remove-Item/i.test(command) && !/Test-Path/i.test(command) && /cannot find path|no such file|does not exist|exit 1|不存在|找不到/i.test(stderr || command)) {
4162
+ hints.push(
4163
+ `Hint: On Windows, "-ErrorAction SilentlyContinue" silences the error MESSAGE but does NOT change the exit code \u2014 the process still exits 1 when the path doesn't exist (because powershell.exe -NonInteractive flips the exit code on any non-terminating error, silenced or not). If you're just probing for existence, use Test-Path instead \u2014 it returns $true/$false without raising: \`if (Test-Path ./mydir) { Get-ChildItem ./mydir }\` or unconditionally use \`New-Item -ItemType Directory -Force -Path ./mydir\` which is idempotent. Don't retry the same -ErrorAction SilentlyContinue probe expecting a different result.`
4164
+ );
4165
+ }
4124
4166
  const colMissing = stderr.match(/column "([^"]+)" does not exist/i);
4125
4167
  if (colMissing) {
4126
4168
  hints.push(
@@ -12568,7 +12610,7 @@ ${undoResults.map((r) => ` \u2022 ${r}`).join("\n")}` });
12568
12610
  case "test": {
12569
12611
  this.send({ type: "info", message: "\u{1F9EA} Running tests..." });
12570
12612
  try {
12571
- const { executeTests } = await import("./run-tests-MDJLWONR.js");
12613
+ const { executeTests } = await import("./run-tests-DX6M7KUI.js");
12572
12614
  const argStr = args.join(" ").trim();
12573
12615
  let testArgs = {};
12574
12616
  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-5N4WD2VT.js");
389
+ const { TaskOrchestrator } = await import("./task-orchestrator-GAQC755J.js");
390
390
  const orchestrator = new TaskOrchestrator(config, providers, configManager);
391
391
  let interrupted = false;
392
392
  const onSigint = () => {
package/dist/index.js CHANGED
@@ -20,12 +20,12 @@ import {
20
20
  saveDevState,
21
21
  sessionHasMeaningfulContent,
22
22
  setupProxy
23
- } from "./chunk-JFLT57TG.js";
23
+ } from "./chunk-NPK7RMWZ.js";
24
24
  import {
25
25
  getConfigDirUsage,
26
26
  listRecentCrashes,
27
27
  writeCrashLog
28
- } from "./chunk-ZFEFS5HS.js";
28
+ } from "./chunk-KIX6VPQ4.js";
29
29
  import {
30
30
  CONTENT_ONLY_STREAM_REMINDER,
31
31
  HALLUCINATION_CORRECTION_MESSAGE,
@@ -43,10 +43,10 @@ import {
43
43
  looksLikeDocumentBody,
44
44
  stripPseudoToolCalls,
45
45
  stripToolCallReminder
46
- } from "./chunk-XZBA3NHG.js";
46
+ } from "./chunk-FPUYLLJ4.js";
47
47
  import {
48
48
  ConfigManager
49
- } from "./chunk-MII3VYZ7.js";
49
+ } from "./chunk-TWQJOSWT.js";
50
50
  import {
51
51
  ToolExecutor,
52
52
  ToolRegistry,
@@ -65,16 +65,16 @@ import {
65
65
  spawnAgentContext,
66
66
  theme,
67
67
  undoStack
68
- } from "./chunk-A3RPBWBF.js";
68
+ } from "./chunk-7ZCBHBO2.js";
69
69
  import "./chunk-UQQJWHRV.js";
70
70
  import "./chunk-2DXY7UGF.js";
71
- import "./chunk-QWP4RFMS.js";
71
+ import "./chunk-FUJYXYGW.js";
72
72
  import {
73
73
  getStatsSnapshot,
74
74
  getTopFailingTools,
75
75
  getTopUsedTools,
76
76
  installFlushOnExit
77
- } from "./chunk-GZNBAFTO.js";
77
+ } from "./chunk-7ED4OKOB.js";
78
78
  import "./chunk-OWPFDHKC.js";
79
79
  import {
80
80
  AuthError,
@@ -102,7 +102,7 @@ import {
102
102
  SKILLS_DIR_NAME,
103
103
  VERSION,
104
104
  buildUserIdentityPrompt
105
- } from "./chunk-EYUL75S4.js";
105
+ } from "./chunk-QDEJJT2V.js";
106
106
  import {
107
107
  formatGitContextForPrompt,
108
108
  getGitContext,
@@ -1769,7 +1769,7 @@ No tools match "${filter}".
1769
1769
  const { join: join6 } = await import("path");
1770
1770
  const { existsSync: existsSync6 } = await import("fs");
1771
1771
  const { getGitRoot: getGitRoot2 } = await import("./git-context-7KIP4X2V.js");
1772
- const { MCP_PROJECT_CONFIG_NAME: MCP_PROJECT_CONFIG_NAME2 } = await import("./constants-MNI3S4EV.js");
1772
+ const { MCP_PROJECT_CONFIG_NAME: MCP_PROJECT_CONFIG_NAME2 } = await import("./constants-KJNSQ43O.js");
1773
1773
  const { approveProject, hashMcpFile } = await import("./project-trust-IFM7FXEV.js");
1774
1774
  const cwd = process.cwd();
1775
1775
  const projectRoot = getGitRoot2(cwd) ?? cwd;
@@ -2830,7 +2830,7 @@ ${hint}` : "")
2830
2830
  usage: "/test [command|filter]",
2831
2831
  async execute(args, ctx) {
2832
2832
  try {
2833
- const { executeTests } = await import("./run-tests-MYF3A4YR.js");
2833
+ const { executeTests } = await import("./run-tests-ZMXYHMZF.js");
2834
2834
  const argStr = args.join(" ").trim();
2835
2835
  let testArgs = {};
2836
2836
  if (argStr) {
@@ -7530,7 +7530,7 @@ program.command("web").description("Start Web UI server with browser-based chat
7530
7530
  console.error("Error: Invalid port number. Must be between 1 and 65535.");
7531
7531
  process.exit(1);
7532
7532
  }
7533
- const { startWebServer } = await import("./server-RB4ACTOJ.js");
7533
+ const { startWebServer } = await import("./server-ZSUGLHRH.js");
7534
7534
  await startWebServer({ port, host: options.host });
7535
7535
  });
7536
7536
  program.command("user [action] [username]").description("Manage Web UI users (list | create <name> | delete <name> | reset-password <name> | logout-all <name> | migrate <name>)").action(async (action, username) => {
@@ -7697,12 +7697,12 @@ program.command("sessions").description("List recent conversation sessions").opt
7697
7697
  console.log(footer + "\n");
7698
7698
  });
7699
7699
  program.command("doctor").description("Health check: API keys, config, MCP, recent crashes, tool usage, disk usage").option("--json", "Output as JSON (for scripting)").option("--reset-stats", "Reset accumulated tool usage statistics").action(async (options) => {
7700
- const { runDoctorCli } = await import("./doctor-cli-56AJTKP2.js");
7700
+ const { runDoctorCli } = await import("./doctor-cli-7FIWJKQW.js");
7701
7701
  await runDoctorCli({ json: !!options.json, resetStats: !!options.resetStats });
7702
7702
  });
7703
7703
  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) => {
7704
7704
  try {
7705
- const batch = await import("./batch-ZMDHCPMO.js");
7705
+ const batch = await import("./batch-7NBAFZLJ.js");
7706
7706
  switch (action) {
7707
7707
  case "submit":
7708
7708
  if (!arg) {
@@ -7745,7 +7745,7 @@ program.command("batch <action> [arg] [arg2]").description("Anthropic Message Ba
7745
7745
  }
7746
7746
  });
7747
7747
  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) => {
7748
- const { startMcpServer } = await import("./server-IITOENMZ.js");
7748
+ const { startMcpServer } = await import("./server-2JICP7A3.js");
7749
7749
  await startMcpServer({
7750
7750
  allowDestructive: !!options.allowDestructive,
7751
7751
  allowOutsideCwd: !!options.allowOutsideCwd,
@@ -7754,7 +7754,7 @@ program.command("mcp-serve").description("Start an MCP server over STDIO, exposi
7754
7754
  });
7755
7755
  });
7756
7756
  program.command("ci").description("Headless PR review (code + security) \u2014 reads git/gh diff, optionally posts to PR. Designed for GitHub Actions.").option("--pr <num>", "PR number; diff fetched via `gh pr diff <num>`", (v) => parseInt(v, 10)).option("--base <ref>", "Base ref for `git diff <ref>...HEAD` (ignored when --pr set)").option("--post", "Post review as a PR comment (requires gh CLI + GH_TOKEN, needs --pr)").option("--no-update", "Always create a new comment instead of updating the previous aicli review").option("--skip-code", "Skip the code review section").option("--skip-security", "Skip the security review section").option("--detailed", "Use the detailed code-review prompt").option("--max-diff <n>", "Max diff chars sent to the model (default 30000)", (v) => parseInt(v, 10)).option("--provider <id>", "Override provider (default: config.defaultProvider)").option("--model <id>", "Override model").option("--dry-run", "Print result to stdout instead of posting (overrides --post)").action(async (options) => {
7757
- const { runCi } = await import("./ci-FCVBC4WJ.js");
7757
+ const { runCi } = await import("./ci-ZGTKQ2A6.js");
7758
7758
  const result = await runCi({
7759
7759
  pr: options.pr,
7760
7760
  base: options.base,
@@ -7895,7 +7895,7 @@ program.command("hub [topic]").description("Start multi-agent hub (discuss / bra
7895
7895
  }),
7896
7896
  config.get("customProviders")
7897
7897
  );
7898
- const { startHub } = await import("./hub-DEZX2PAA.js");
7898
+ const { startHub } = await import("./hub-G2OEF5J6.js");
7899
7899
  await startHub(
7900
7900
  {
7901
7901
  topic: topic ?? "",
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  executeTests,
3
3
  runTestsTool
4
- } from "./chunk-OH5HVL5O.js";
4
+ } from "./chunk-YU2HAZCB.js";
5
5
  import "./chunk-3RG5ZIWI.js";
6
6
  export {
7
7
  executeTests,
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  executeTests,
4
4
  runTestsTool
5
- } from "./chunk-QWP4RFMS.js";
6
- import "./chunk-EYUL75S4.js";
5
+ } from "./chunk-FUJYXYGW.js";
6
+ import "./chunk-QDEJJT2V.js";
7
7
  import "./chunk-PDX44BCA.js";
8
8
  export {
9
9
  executeTests,
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  ToolRegistry
4
- } from "./chunk-A3RPBWBF.js";
4
+ } from "./chunk-7ZCBHBO2.js";
5
5
  import "./chunk-UQQJWHRV.js";
6
6
  import "./chunk-2DXY7UGF.js";
7
- import "./chunk-QWP4RFMS.js";
7
+ import "./chunk-FUJYXYGW.js";
8
8
  import {
9
9
  runTool
10
- } from "./chunk-GZNBAFTO.js";
10
+ } from "./chunk-7ED4OKOB.js";
11
11
  import {
12
12
  getDangerLevel,
13
13
  schemaToJsonSchema
@@ -15,7 +15,7 @@ import {
15
15
  import "./chunk-2ZD3YTVM.js";
16
16
  import {
17
17
  VERSION
18
- } from "./chunk-EYUL75S4.js";
18
+ } from "./chunk-QDEJJT2V.js";
19
19
  import "./chunk-4BKXL7SM.js";
20
20
  import "./chunk-7ZJN4KLV.js";
21
21
  import "./chunk-KHYD3WXE.js";
@@ -14,7 +14,7 @@ import {
14
14
  loadDevState,
15
15
  persistToolRound,
16
16
  setupProxy
17
- } from "./chunk-JFLT57TG.js";
17
+ } from "./chunk-NPK7RMWZ.js";
18
18
  import {
19
19
  CONTENT_ONLY_STREAM_REMINDER,
20
20
  HALLUCINATION_CORRECTION_MESSAGE,
@@ -28,10 +28,10 @@ import {
28
28
  looksLikeDocumentBody,
29
29
  stripPseudoToolCalls,
30
30
  stripToolCallReminder
31
- } from "./chunk-XZBA3NHG.js";
31
+ } from "./chunk-FPUYLLJ4.js";
32
32
  import {
33
33
  ConfigManager
34
- } from "./chunk-MII3VYZ7.js";
34
+ } from "./chunk-TWQJOSWT.js";
35
35
  import {
36
36
  ToolExecutor,
37
37
  ToolRegistry,
@@ -49,13 +49,13 @@ import {
49
49
  spawnAgentContext,
50
50
  truncateOutput,
51
51
  undoStack
52
- } from "./chunk-A3RPBWBF.js";
52
+ } from "./chunk-7ZCBHBO2.js";
53
53
  import "./chunk-UQQJWHRV.js";
54
54
  import "./chunk-2DXY7UGF.js";
55
- import "./chunk-QWP4RFMS.js";
55
+ import "./chunk-FUJYXYGW.js";
56
56
  import {
57
57
  runTool
58
- } from "./chunk-GZNBAFTO.js";
58
+ } from "./chunk-7ED4OKOB.js";
59
59
  import {
60
60
  getDangerLevel
61
61
  } from "./chunk-OWPFDHKC.js";
@@ -78,7 +78,7 @@ import {
78
78
  SKILLS_DIR_NAME,
79
79
  VERSION,
80
80
  buildUserIdentityPrompt
81
- } from "./chunk-EYUL75S4.js";
81
+ } from "./chunk-QDEJJT2V.js";
82
82
  import {
83
83
  formatGitContextForPrompt,
84
84
  getGitContext,
@@ -2462,7 +2462,7 @@ ${undoResults.map((r) => ` \u2022 ${r}`).join("\n")}` });
2462
2462
  case "test": {
2463
2463
  this.send({ type: "info", message: "\u{1F9EA} Running tests..." });
2464
2464
  try {
2465
- const { executeTests } = await import("./run-tests-MYF3A4YR.js");
2465
+ const { executeTests } = await import("./run-tests-ZMXYHMZF.js");
2466
2466
  const argStr = args.join(" ").trim();
2467
2467
  let testArgs = {};
2468
2468
  if (argStr) {
@@ -3,20 +3,20 @@ import {
3
3
  ToolRegistry,
4
4
  googleSearchContext,
5
5
  truncateOutput
6
- } from "./chunk-A3RPBWBF.js";
6
+ } from "./chunk-7ZCBHBO2.js";
7
7
  import "./chunk-UQQJWHRV.js";
8
8
  import "./chunk-2DXY7UGF.js";
9
- import "./chunk-QWP4RFMS.js";
9
+ import "./chunk-FUJYXYGW.js";
10
10
  import {
11
11
  runTool
12
- } from "./chunk-GZNBAFTO.js";
12
+ } from "./chunk-7ED4OKOB.js";
13
13
  import {
14
14
  getDangerLevel
15
15
  } from "./chunk-OWPFDHKC.js";
16
16
  import "./chunk-2ZD3YTVM.js";
17
17
  import {
18
18
  SUBAGENT_ALLOWED_TOOLS
19
- } from "./chunk-EYUL75S4.js";
19
+ } from "./chunk-QDEJJT2V.js";
20
20
  import "./chunk-4BKXL7SM.js";
21
21
  import "./chunk-7ZJN4KLV.js";
22
22
  import "./chunk-KHYD3WXE.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jinzd-ai-cli",
3
- "version": "0.4.145",
3
+ "version": "0.4.148",
4
4
  "description": "Cross-platform REPL-style AI CLI with multi-provider support",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",