jinzd-ai-cli 0.4.325 → 0.4.326

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.
Files changed (37) hide show
  1. package/README.md +1 -1
  2. package/README.zh-CN.md +1 -1
  3. package/dist/{batch-BGKTM75D.js → batch-D3HG4I6J.js} +6 -4
  4. package/dist/{chunk-KS6RNA4E.js → chunk-2IGHZDPR.js} +1 -1
  5. package/dist/{chunk-PIX4ZPFB.js → chunk-5CE64V7X.js} +129 -72
  6. package/dist/{chunk-3ALMUKHF.js → chunk-5EDSZ3JF.js} +4 -4
  7. package/dist/{chunk-TJFHBYQ3.js → chunk-7OY3WOJD.js} +1 -1
  8. package/dist/{chunk-NI7YIDLF.js → chunk-BGFFD3IL.js} +1 -1
  9. package/dist/{chunk-NFPJ6KUU.js → chunk-BRZZ3QAI.js} +23 -5
  10. package/dist/{chunk-C52FQ3ZE.js → chunk-DHJFMW3F.js} +14 -11
  11. package/dist/{chunk-WDD76ALZ.js → chunk-ERHFJIEP.js} +1 -1
  12. package/dist/{chunk-N6QFHXSF.js → chunk-FBT5VPT4.js} +34 -2
  13. package/dist/{chunk-CVWR3VYH.js → chunk-LCI2GVAU.js} +1 -1
  14. package/dist/{chunk-PXJ3XVR5.js → chunk-LZ5667Z2.js} +1 -1
  15. package/dist/{chunk-GCYH5WOZ.js → chunk-MGFFZFOA.js} +1 -1
  16. package/dist/{chunk-GVVYQJYF.js → chunk-NZGSCXA4.js} +4 -4
  17. package/dist/{chunk-NBNRQ44O.js → chunk-OIYQX2HM.js} +1 -1
  18. package/dist/{chunk-5BS2NVSB.js → chunk-OW3PAC3K.js} +4 -4
  19. package/dist/{ci-OE7Q3UOI.js → ci-B4P35VVJ.js} +5 -5
  20. package/dist/{ci-format-OWSFR34D.js → ci-format-JD7DKDNT.js} +2 -2
  21. package/dist/{constants-W2CH36YR.js → constants-2BVJTZJT.js} +1 -1
  22. package/dist/{constants-74TAAY4L.js → constants-XOD3IIW5.js} +1 -1
  23. package/dist/{doctor-cli-6C3WJTL5.js → doctor-cli-GPFJF7WP.js} +5 -5
  24. package/dist/electron-server.js +200 -92
  25. package/dist/{hub-RHMDL74E.js → hub-GQ2XUS4M.js} +1 -1
  26. package/dist/index.js +21 -20
  27. package/dist/{persistent-memory-S2QLVL43.js → persistent-memory-RY2JLUL4.js} +2 -2
  28. package/dist/{persistent-memory-OAFPFGKB.js → persistent-memory-SAP3R57F.js} +2 -2
  29. package/dist/{pr-5PMXXHH6.js → pr-AMY7JRQQ.js} +5 -5
  30. package/dist/{run-tests-7AOMBU2D.js → run-tests-3BB4LUZT.js} +2 -2
  31. package/dist/{run-tests-W773M3KK.js → run-tests-5HMWO676.js} +2 -2
  32. package/dist/{server-O75UHHR7.js → server-2NHQYAZN.js} +5 -5
  33. package/dist/{server-SK4JQWT5.js → server-GSIQOYEV.js} +17 -16
  34. package/dist/{task-orchestrator-7H7UYCU7.js → task-orchestrator-VRPSFGNY.js} +5 -5
  35. package/dist/{usage-F6BD7DHL.js → usage-2RJRDXIT.js} +3 -3
  36. package/dist/wasm/web-tree-sitter.wasm +0 -0
  37. package/package.json +5 -5
@@ -11,7 +11,7 @@ import {
11
11
  CONFIG_FILE_NAME,
12
12
  HISTORY_DIR_NAME,
13
13
  PLUGINS_DIR_NAME
14
- } from "./chunk-CVWR3VYH.js";
14
+ } from "./chunk-LCI2GVAU.js";
15
15
 
16
16
  // src/config/config-manager.ts
17
17
  import { readFileSync, existsSync, mkdirSync } from "fs";
@@ -390,7 +390,18 @@ ${err}`
390
390
  const DEEPSEEK_TARGET = "deepseek-flash";
391
391
  const LEGACY_KIMI = /* @__PURE__ */ new Set(["kimi-k2-0711-preview", "kimi-k2-turbo-preview"]);
392
392
  const KIMI_TARGET = "kimi-k2.6";
393
+ const LEGACY_CLAUDE = {
394
+ "claude-sonnet-4-5-20250929": "claude-sonnet-5-5",
395
+ "claude-sonnet-4-5": "claude-sonnet-5-5",
396
+ "claude-sonnet-4-20250514": "claude-sonnet-5-5",
397
+ "claude-3-7-sonnet-20250219": "claude-sonnet-5-5",
398
+ "claude-opus-4-20250514": "claude-opus-5-5",
399
+ "claude-opus-4-1-20250805": "claude-opus-5-5",
400
+ "claude-3-5-haiku-20241022": "claude-haiku-5-5",
401
+ "claude-3-haiku-20240307": "claude-haiku-5-5"
402
+ };
393
403
  let changed = false;
404
+ let claudeTarget;
394
405
  const dm = this.config.defaultModels;
395
406
  if (dm) {
396
407
  if (LEGACY_DEEPSEEK.has(dm.deepseek)) {
@@ -401,6 +412,17 @@ ${err}`
401
412
  dm.kimi = KIMI_TARGET;
402
413
  changed = true;
403
414
  }
415
+ const orTo = dm.openrouter ? { "anthropic/claude-opus-4": "anthropic/claude-opus-5.5", "anthropic/claude-haiku-4": "anthropic/claude-haiku-5.5" }[dm.openrouter] : void 0;
416
+ if (orTo) {
417
+ dm.openrouter = orTo;
418
+ changed = true;
419
+ }
420
+ const claudeTo = dm.claude ? LEGACY_CLAUDE[dm.claude] : void 0;
421
+ if (claudeTo) {
422
+ dm.claude = claudeTo;
423
+ claudeTarget = claudeTo;
424
+ changed = true;
425
+ }
404
426
  }
405
427
  const mp = this.config.modelParams;
406
428
  if (mp) {
@@ -422,10 +444,20 @@ ${err}`
422
444
  changed = true;
423
445
  }
424
446
  }
447
+ for (const [legacy, target] of Object.entries(LEGACY_CLAUDE)) {
448
+ if (legacy in mp) {
449
+ if (!(target in mp)) {
450
+ mp[target] = mp[legacy];
451
+ }
452
+ delete mp[legacy];
453
+ claudeTarget ??= target;
454
+ changed = true;
455
+ }
456
+ }
425
457
  }
426
458
  if (changed) {
427
459
  process.stderr.write(
428
- `[ai-cli] Migrated retired model ids in config.json (deepseek \u2192 ${DEEPSEEK_TARGET}, kimi \u2192 ${KIMI_TARGET})
460
+ `[ai-cli] Migrated retired model ids in config.json (deepseek \u2192 ${DEEPSEEK_TARGET}, kimi \u2192 ${KIMI_TARGET}` + (claudeTarget ? `, claude \u2192 ${claudeTarget}` : "") + `)
429
461
  `
430
462
  );
431
463
  }
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/core/constants.ts
4
- var VERSION = "0.4.325";
4
+ var VERSION = "0.4.326";
5
5
  var APP_NAME = "ai-cli";
6
6
  var CONFIG_DIR_NAME = ".aicli";
7
7
  var CONFIG_FILE_NAME = "config.json";
@@ -12,7 +12,7 @@ import {
12
12
  MEMORY_FILE_NAME,
13
13
  MEMORY_MAX_CHARS,
14
14
  MEMORY_STORE_FILE_NAME
15
- } from "./chunk-GCYH5WOZ.js";
15
+ } from "./chunk-MGFFZFOA.js";
16
16
 
17
17
  // src/memory/persistent-memory.ts
18
18
  import { copyFileSync, existsSync, mkdirSync, readFileSync, statSync } from "fs";
@@ -1,5 +1,5 @@
1
1
  // src/core/constants.ts
2
- var VERSION = "0.4.325";
2
+ var VERSION = "0.4.326";
3
3
  var APP_NAME = "ai-cli";
4
4
  var CONFIG_DIR_NAME = ".aicli";
5
5
  var CONFIG_FILE_NAME = "config.json";
@@ -11,7 +11,7 @@ import {
11
11
  searchPersistentMemories,
12
12
  touchMemoryReferences,
13
13
  updateMemoryEntry
14
- } from "./chunk-NI7YIDLF.js";
14
+ } from "./chunk-BGFFD3IL.js";
15
15
  import {
16
16
  indexProject
17
17
  } from "./chunk-RWRZVQCB.js";
@@ -30,7 +30,7 @@ import {
30
30
  runHook,
31
31
  runLifecycleHooks,
32
32
  runTool
33
- } from "./chunk-WDD76ALZ.js";
33
+ } from "./chunk-ERHFJIEP.js";
34
34
  import {
35
35
  buildTruncatedArgumentsError,
36
36
  getDangerLevel,
@@ -64,7 +64,7 @@ import {
64
64
  recoverGbkMojibake,
65
65
  runTestsTool,
66
66
  shellInvocation
67
- } from "./chunk-KS6RNA4E.js";
67
+ } from "./chunk-2IGHZDPR.js";
68
68
  import {
69
69
  CONFIG_DIR_NAME,
70
70
  DEFAULT_MAX_TOOL_OUTPUT_CHARS_CAP,
@@ -73,7 +73,7 @@ import {
73
73
  SUBAGENT_ALLOWED_TOOLS,
74
74
  SUBAGENT_DEFAULT_MAX_ROUNDS,
75
75
  SUBAGENT_MAX_ROUNDS_LIMIT
76
- } from "./chunk-CVWR3VYH.js";
76
+ } from "./chunk-LCI2GVAU.js";
77
77
  import {
78
78
  getCurrentSessionKey,
79
79
  getExecutionConfigDir,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  VERSION
4
- } from "./chunk-CVWR3VYH.js";
4
+ } from "./chunk-LCI2GVAU.js";
5
5
 
6
6
  // src/cli/ci-format.ts
7
7
  var DEFAULT_CI_THRESHOLDS = {
@@ -8,13 +8,13 @@ import {
8
8
  listHooks,
9
9
  listInstalledPlugins,
10
10
  resetStats
11
- } from "./chunk-WDD76ALZ.js";
11
+ } from "./chunk-ERHFJIEP.js";
12
12
  import {
13
13
  ProviderRegistry
14
- } from "./chunk-PIX4ZPFB.js";
14
+ } from "./chunk-5CE64V7X.js";
15
15
  import {
16
16
  ConfigManager
17
- } from "./chunk-N6QFHXSF.js";
17
+ } from "./chunk-FBT5VPT4.js";
18
18
  import {
19
19
  getGitRoot
20
20
  } from "./chunk-HOSJZMQS.js";
@@ -26,7 +26,7 @@ import {
26
26
  MCP_PROJECT_CONFIG_NAME,
27
27
  MEMORY_FILE_NAME,
28
28
  VERSION
29
- } from "./chunk-CVWR3VYH.js";
29
+ } from "./chunk-LCI2GVAU.js";
30
30
 
31
31
  // src/diagnostics/doctor-report.ts
32
32
  import { existsSync as existsSync3, statSync as statSync2 } from "fs";
@@ -3,16 +3,16 @@ import {
3
3
  CI_COMMENT_MARKER,
4
4
  countSeverity,
5
5
  runCi
6
- } from "./chunk-3ALMUKHF.js";
7
- import "./chunk-NBNRQ44O.js";
6
+ } from "./chunk-5EDSZ3JF.js";
7
+ import "./chunk-OIYQX2HM.js";
8
8
  import "./chunk-HLWUDRBO.js";
9
9
  import "./chunk-6YZEZFX5.js";
10
- import "./chunk-PIX4ZPFB.js";
11
- import "./chunk-N6QFHXSF.js";
10
+ import "./chunk-5CE64V7X.js";
11
+ import "./chunk-FBT5VPT4.js";
12
12
  import "./chunk-E2W2MI6H.js";
13
13
  import "./chunk-TU3L3PW7.js";
14
14
  import "./chunk-BMLQPSHP.js";
15
- import "./chunk-CVWR3VYH.js";
15
+ import "./chunk-LCI2GVAU.js";
16
16
  export {
17
17
  CI_COMMENT_MARKER,
18
18
  countSeverity,
@@ -6,8 +6,8 @@ import {
6
6
  formatCiResult,
7
7
  formatCiSarif,
8
8
  normalizeCiThresholds
9
- } from "./chunk-NBNRQ44O.js";
10
- import "./chunk-CVWR3VYH.js";
9
+ } from "./chunk-OIYQX2HM.js";
10
+ import "./chunk-LCI2GVAU.js";
11
11
  export {
12
12
  DEFAULT_CI_THRESHOLDS,
13
13
  detectCiGateSignals,
@@ -38,7 +38,7 @@ import {
38
38
  TEST_TIMEOUT,
39
39
  VERSION,
40
40
  buildUserIdentityPrompt
41
- } from "./chunk-GCYH5WOZ.js";
41
+ } from "./chunk-MGFFZFOA.js";
42
42
  export {
43
43
  AGENTIC_BEHAVIOR_GUIDELINE,
44
44
  APP_NAME,
@@ -39,7 +39,7 @@ import {
39
39
  TEST_TIMEOUT,
40
40
  VERSION,
41
41
  buildUserIdentityPrompt
42
- } from "./chunk-CVWR3VYH.js";
42
+ } from "./chunk-LCI2GVAU.js";
43
43
  export {
44
44
  AGENTIC_BEHAVIOR_GUIDELINE,
45
45
  APP_NAME,
@@ -2,16 +2,16 @@
2
2
  import {
3
3
  formatDoctorReport,
4
4
  runDoctorCli
5
- } from "./chunk-5BS2NVSB.js";
6
- import "./chunk-WDD76ALZ.js";
5
+ } from "./chunk-OW3PAC3K.js";
6
+ import "./chunk-ERHFJIEP.js";
7
7
  import "./chunk-RS7SKYTS.js";
8
- import "./chunk-PIX4ZPFB.js";
9
- import "./chunk-N6QFHXSF.js";
8
+ import "./chunk-5CE64V7X.js";
9
+ import "./chunk-FBT5VPT4.js";
10
10
  import "./chunk-E2W2MI6H.js";
11
11
  import "./chunk-TU3L3PW7.js";
12
12
  import "./chunk-HOSJZMQS.js";
13
13
  import "./chunk-BMLQPSHP.js";
14
- import "./chunk-CVWR3VYH.js";
14
+ import "./chunk-LCI2GVAU.js";
15
15
  export {
16
16
  formatDoctorReport,
17
17
  runDoctorCli