jinzd-ai-cli 0.4.326 → 0.4.328

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 (33) hide show
  1. package/dist/{batch-D3HG4I6J.js → batch-GE6XWXPK.js} +2 -2
  2. package/dist/{chunk-ERHFJIEP.js → chunk-B4EBCSKM.js} +1 -1
  3. package/dist/{chunk-BGFFD3IL.js → chunk-E3RJEQZA.js} +1 -1
  4. package/dist/{chunk-OW3PAC3K.js → chunk-IEKVRC2E.js} +4 -4
  5. package/dist/{chunk-7OY3WOJD.js → chunk-IOLDD5ZA.js} +1 -1
  6. package/dist/{chunk-LZ5667Z2.js → chunk-JXGE4T4U.js} +1 -1
  7. package/dist/{chunk-MGFFZFOA.js → chunk-LOS7T2JS.js} +1 -1
  8. package/dist/{chunk-5CE64V7X.js → chunk-NKTCITLH.js} +1 -1
  9. package/dist/{chunk-LCI2GVAU.js → chunk-NOQKCHIQ.js} +1 -1
  10. package/dist/{chunk-FBT5VPT4.js → chunk-OVEZ6HB5.js} +1 -1
  11. package/dist/{chunk-OIYQX2HM.js → chunk-T4K4RZKR.js} +1 -1
  12. package/dist/{chunk-5EDSZ3JF.js → chunk-U6VATMAI.js} +4 -4
  13. package/dist/{chunk-NZGSCXA4.js → chunk-UQI5TOL2.js} +5 -5
  14. package/dist/{chunk-2IGHZDPR.js → chunk-VKQIHFI5.js} +1 -1
  15. package/dist/{chunk-DHJFMW3F.js → chunk-WDEO7J3T.js} +7 -7
  16. package/dist/{ci-B4P35VVJ.js → ci-U5Q3BMQP.js} +5 -5
  17. package/dist/{ci-format-JD7DKDNT.js → ci-format-4RR2G3RR.js} +2 -2
  18. package/dist/{constants-XOD3IIW5.js → constants-5YWODQHN.js} +1 -1
  19. package/dist/{constants-2BVJTZJT.js → constants-J3346CYX.js} +1 -1
  20. package/dist/{doctor-cli-GPFJF7WP.js → doctor-cli-PCSMI6ZV.js} +5 -5
  21. package/dist/electron-server.js +11 -11
  22. package/dist/{hub-GQ2XUS4M.js → hub-R3WSYGNT.js} +1 -1
  23. package/dist/index.js +18 -18
  24. package/dist/{persistent-memory-SAP3R57F.js → persistent-memory-64EXCOV4.js} +2 -2
  25. package/dist/{persistent-memory-RY2JLUL4.js → persistent-memory-JZWKXFUF.js} +2 -2
  26. package/dist/{pr-AMY7JRQQ.js → pr-2EZKHIQ5.js} +5 -5
  27. package/dist/{run-tests-5HMWO676.js → run-tests-CC24OLYI.js} +2 -2
  28. package/dist/{run-tests-3BB4LUZT.js → run-tests-RUYOX42E.js} +2 -2
  29. package/dist/{server-GSIQOYEV.js → server-DQFHA3Z2.js} +14 -14
  30. package/dist/{server-2NHQYAZN.js → server-GU7XSXSR.js} +5 -5
  31. package/dist/{task-orchestrator-VRPSFGNY.js → task-orchestrator-62LRX42O.js} +5 -5
  32. package/dist/{usage-2RJRDXIT.js → usage-RDLAA5HC.js} +2 -2
  33. package/package.json +11 -11
@@ -4,12 +4,12 @@ import {
4
4
  } from "./chunk-RS7SKYTS.js";
5
5
  import {
6
6
  ConfigManager
7
- } from "./chunk-FBT5VPT4.js";
7
+ } from "./chunk-OVEZ6HB5.js";
8
8
  import "./chunk-TU3L3PW7.js";
9
9
  import {
10
10
  atomicWriteFileSync
11
11
  } from "./chunk-BMLQPSHP.js";
12
- import "./chunk-LCI2GVAU.js";
12
+ import "./chunk-NOQKCHIQ.js";
13
13
 
14
14
  // src/cli/batch.ts
15
15
  import Anthropic from "@anthropic-ai/sdk";
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  CONFIG_DIR_NAME,
10
10
  PLUGINS_DIR_NAME
11
- } from "./chunk-LCI2GVAU.js";
11
+ } from "./chunk-NOQKCHIQ.js";
12
12
 
13
13
  // src/diagnostics/tool-stats.ts
14
14
  import { mkdirSync } from "fs";
@@ -13,7 +13,7 @@ import {
13
13
  MEMORY_FILE_NAME,
14
14
  MEMORY_MAX_CHARS,
15
15
  MEMORY_STORE_FILE_NAME
16
- } from "./chunk-LCI2GVAU.js";
16
+ } from "./chunk-NOQKCHIQ.js";
17
17
 
18
18
  // src/memory/persistent-memory.ts
19
19
  import { copyFileSync, existsSync, mkdirSync, readFileSync, statSync } from "fs";
@@ -8,13 +8,13 @@ import {
8
8
  listHooks,
9
9
  listInstalledPlugins,
10
10
  resetStats
11
- } from "./chunk-ERHFJIEP.js";
11
+ } from "./chunk-B4EBCSKM.js";
12
12
  import {
13
13
  ProviderRegistry
14
- } from "./chunk-5CE64V7X.js";
14
+ } from "./chunk-NKTCITLH.js";
15
15
  import {
16
16
  ConfigManager
17
- } from "./chunk-FBT5VPT4.js";
17
+ } from "./chunk-OVEZ6HB5.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-LCI2GVAU.js";
29
+ } from "./chunk-NOQKCHIQ.js";
30
30
 
31
31
  // src/diagnostics/doctor-report.ts
32
32
  import { existsSync as existsSync3, statSync as statSync2 } from "fs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-QMFMST2T.js";
5
5
  import {
6
6
  TEST_TIMEOUT
7
- } from "./chunk-MGFFZFOA.js";
7
+ } from "./chunk-LOS7T2JS.js";
8
8
 
9
9
  // src/tools/builtin/run-tests.ts
10
10
  import { spawn as spawn2 } from "child_process";
@@ -12,7 +12,7 @@ import {
12
12
  MEMORY_FILE_NAME,
13
13
  MEMORY_MAX_CHARS,
14
14
  MEMORY_STORE_FILE_NAME
15
- } from "./chunk-MGFFZFOA.js";
15
+ } from "./chunk-LOS7T2JS.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.326";
2
+ var VERSION = "0.4.328";
3
3
  var APP_NAME = "ai-cli";
4
4
  var CONFIG_DIR_NAME = ".aicli";
5
5
  var CONFIG_FILE_NAME = "config.json";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-BMLQPSHP.js";
16
16
  import {
17
17
  DEFAULT_MAX_TOKENS
18
- } from "./chunk-LCI2GVAU.js";
18
+ } from "./chunk-NOQKCHIQ.js";
19
19
 
20
20
  // src/providers/claude.ts
21
21
  import Anthropic from "@anthropic-ai/sdk";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/core/constants.ts
4
- var VERSION = "0.4.326";
4
+ var VERSION = "0.4.328";
5
5
  var APP_NAME = "ai-cli";
6
6
  var CONFIG_DIR_NAME = ".aicli";
7
7
  var CONFIG_FILE_NAME = "config.json";
@@ -11,7 +11,7 @@ import {
11
11
  CONFIG_FILE_NAME,
12
12
  HISTORY_DIR_NAME,
13
13
  PLUGINS_DIR_NAME
14
- } from "./chunk-LCI2GVAU.js";
14
+ } from "./chunk-NOQKCHIQ.js";
15
15
 
16
16
  // src/config/config-manager.ts
17
17
  import { readFileSync, existsSync, mkdirSync } from "fs";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  VERSION
4
- } from "./chunk-LCI2GVAU.js";
4
+ } from "./chunk-NOQKCHIQ.js";
5
5
 
6
6
  // src/cli/ci-format.ts
7
7
  var DEFAULT_CI_THRESHOLDS = {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  evaluateCiGate,
4
4
  normalizeCiThresholds
5
- } from "./chunk-OIYQX2HM.js";
5
+ } from "./chunk-T4K4RZKR.js";
6
6
  import {
7
7
  buildReviewPrompt,
8
8
  buildSecurityReviewPrompt,
@@ -13,13 +13,13 @@ import {
13
13
  } from "./chunk-6YZEZFX5.js";
14
14
  import {
15
15
  ProviderRegistry
16
- } from "./chunk-5CE64V7X.js";
16
+ } from "./chunk-NKTCITLH.js";
17
17
  import {
18
18
  ConfigManager
19
- } from "./chunk-FBT5VPT4.js";
19
+ } from "./chunk-OVEZ6HB5.js";
20
20
  import {
21
21
  VERSION
22
- } from "./chunk-LCI2GVAU.js";
22
+ } from "./chunk-NOQKCHIQ.js";
23
23
 
24
24
  // src/cli/ci.ts
25
25
  import { execFileSync } from "child_process";
@@ -11,7 +11,7 @@ import {
11
11
  searchPersistentMemories,
12
12
  touchMemoryReferences,
13
13
  updateMemoryEntry
14
- } from "./chunk-BGFFD3IL.js";
14
+ } from "./chunk-E3RJEQZA.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-ERHFJIEP.js";
33
+ } from "./chunk-B4EBCSKM.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-2IGHZDPR.js";
67
+ } from "./chunk-VKQIHFI5.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-LCI2GVAU.js";
76
+ } from "./chunk-NOQKCHIQ.js";
77
77
  import {
78
78
  getCurrentSessionKey,
79
79
  getExecutionConfigDir,
@@ -89,7 +89,7 @@ var SHELL = IS_WINDOWS2 ? "powershell.exe" : posixShell();
89
89
  var pool = /* @__PURE__ */ new Map();
90
90
  var IDLE_EVICT_MS = 5 * 6e4;
91
91
  var evictionTimer = null;
92
- var WIN_STDIN_TO_NUL = `try { if (-not ('AicliNative.StdIn' -as [type])) { Add-Type -Namespace AicliNative -Name StdIn -MemberDefinition '[DllImport("kernel32.dll")] public static extern bool SetStdHandle(int n, System.IntPtr h); [DllImport("kernel32.dll", CharSet=CharSet.Unicode)] public static extern System.IntPtr CreateFileW(string f, uint a, uint s, System.IntPtr sa, uint c, uint fl, System.IntPtr t);' }; $__aicli_nul = [AicliNative.StdIn]::CreateFileW('NUL', [uint32]2147483648, 3, [IntPtr]::Zero, 3, 0, [IntPtr]::Zero); if ($__aicli_nul -ne [IntPtr]-1) { [void][AicliNative.StdIn]::SetStdHandle(-10, $__aicli_nul) } } catch { }; $Error.Clear()`;
92
+ var WIN_STDIN_TO_NUL = `try { if (-not ('AicliNative.StdIn' -as [type])) { Add-Type -Namespace AicliNative -Name StdIn -MemberDefinition '[StructLayout(LayoutKind.Sequential)] public struct SA { public int nLength; public System.IntPtr lpSecurityDescriptor; public bool bInheritHandle; } [DllImport("kernel32.dll")] public static extern bool SetStdHandle(int n, System.IntPtr h); [DllImport("kernel32.dll", CharSet=CharSet.Unicode)] public static extern System.IntPtr CreateFileW(string f, uint a, uint s, ref SA sa, uint c, uint fl, System.IntPtr t);' }; $__aicli_sa = New-Object AicliNative.StdIn+SA; $__aicli_sa.nLength = [Runtime.InteropServices.Marshal]::SizeOf($__aicli_sa); $__aicli_sa.bInheritHandle = $true; $__aicli_nul = [AicliNative.StdIn]::CreateFileW('NUL', [uint32]2147483648, 3, [ref]$__aicli_sa, 3, 0, [IntPtr]::Zero); if ($__aicli_nul -ne [IntPtr]-1) { [void][AicliNative.StdIn]::SetStdHandle(-10, $__aicli_nul) } } catch { }; $Error.Clear()`;
93
93
  function spawnShell(cwd) {
94
94
  const shellArgs = IS_WINDOWS2 ? ["-NoProfile", "-NonInteractive", "-Command", "-"] : ["-s"];
95
95
  const proc = spawn(SHELL, shellArgs, {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  TEST_TIMEOUT
4
- } from "./chunk-LCI2GVAU.js";
4
+ } from "./chunk-NOQKCHIQ.js";
5
5
  import {
6
6
  getExecutionConfigDir,
7
7
  getExecutionSignal
@@ -16,7 +16,7 @@ import {
16
16
  setPreferredAgentName,
17
17
  truncateForPersist,
18
18
  undoStack
19
- } from "./chunk-NZGSCXA4.js";
19
+ } from "./chunk-UQI5TOL2.js";
20
20
  import {
21
21
  buildReviewPrompt,
22
22
  buildSecurityReviewPrompt
@@ -51,7 +51,7 @@ import {
51
51
  touchMemoryReferences,
52
52
  updateMemoryApproval,
53
53
  updateMemoryEntry
54
- } from "./chunk-BGFFD3IL.js";
54
+ } from "./chunk-E3RJEQZA.js";
55
55
  import {
56
56
  theme
57
57
  } from "./chunk-5C76XDDF.js";
@@ -65,7 +65,7 @@ import {
65
65
  import {
66
66
  buildDoctorReport,
67
67
  formatDoctorReport
68
- } from "./chunk-OW3PAC3K.js";
68
+ } from "./chunk-IEKVRC2E.js";
69
69
  import {
70
70
  describePlugin,
71
71
  getActivePluginAssets,
@@ -80,7 +80,7 @@ import {
80
80
  trustHook,
81
81
  trustPlugin,
82
82
  untrustHook
83
- } from "./chunk-ERHFJIEP.js";
83
+ } from "./chunk-B4EBCSKM.js";
84
84
  import {
85
85
  isCleanDocumentBody,
86
86
  stripOuterCodeFence
@@ -109,7 +109,7 @@ import {
109
109
  MCP_TOOL_PREFIX,
110
110
  REPO_URL,
111
111
  VERSION
112
- } from "./chunk-LCI2GVAU.js";
112
+ } from "./chunk-NOQKCHIQ.js";
113
113
 
114
114
  // src/skills/manager.ts
115
115
  import { existsSync, readdirSync, mkdirSync, statSync } from "fs";
@@ -2445,7 +2445,7 @@ No tools match "${filter}".
2445
2445
  const { join: join6 } = await import("path");
2446
2446
  const { existsSync: existsSync6 } = await import("fs");
2447
2447
  const { getGitRoot } = await import("./git-context-EXOEHQSF.js");
2448
- const { MCP_PROJECT_CONFIG_NAME } = await import("./constants-XOD3IIW5.js");
2448
+ const { MCP_PROJECT_CONFIG_NAME } = await import("./constants-5YWODQHN.js");
2449
2449
  const { approveProject, hashMcpFile } = await import("./project-trust-KGG2BWKC.js");
2450
2450
  const cwd = process.cwd();
2451
2451
  const projectRoot = getGitRoot(cwd) ?? cwd;
@@ -3553,7 +3553,7 @@ function createReviewCommands() {
3553
3553
  usage: "/test [command|filter]",
3554
3554
  async execute(args, ctx) {
3555
3555
  try {
3556
- const { executeTests } = await import("./run-tests-5HMWO676.js");
3556
+ const { executeTests } = await import("./run-tests-CC24OLYI.js");
3557
3557
  const argStr = args.join(" ").trim();
3558
3558
  let testArgs = {};
3559
3559
  if (argStr) {
@@ -3,16 +3,16 @@ import {
3
3
  CI_COMMENT_MARKER,
4
4
  countSeverity,
5
5
  runCi
6
- } from "./chunk-5EDSZ3JF.js";
7
- import "./chunk-OIYQX2HM.js";
6
+ } from "./chunk-U6VATMAI.js";
7
+ import "./chunk-T4K4RZKR.js";
8
8
  import "./chunk-HLWUDRBO.js";
9
9
  import "./chunk-6YZEZFX5.js";
10
- import "./chunk-5CE64V7X.js";
11
- import "./chunk-FBT5VPT4.js";
10
+ import "./chunk-NKTCITLH.js";
11
+ import "./chunk-OVEZ6HB5.js";
12
12
  import "./chunk-E2W2MI6H.js";
13
13
  import "./chunk-TU3L3PW7.js";
14
14
  import "./chunk-BMLQPSHP.js";
15
- import "./chunk-LCI2GVAU.js";
15
+ import "./chunk-NOQKCHIQ.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-OIYQX2HM.js";
10
- import "./chunk-LCI2GVAU.js";
9
+ } from "./chunk-T4K4RZKR.js";
10
+ import "./chunk-NOQKCHIQ.js";
11
11
  export {
12
12
  DEFAULT_CI_THRESHOLDS,
13
13
  detectCiGateSignals,
@@ -39,7 +39,7 @@ import {
39
39
  TEST_TIMEOUT,
40
40
  VERSION,
41
41
  buildUserIdentityPrompt
42
- } from "./chunk-LCI2GVAU.js";
42
+ } from "./chunk-NOQKCHIQ.js";
43
43
  export {
44
44
  AGENTIC_BEHAVIOR_GUIDELINE,
45
45
  APP_NAME,
@@ -38,7 +38,7 @@ import {
38
38
  TEST_TIMEOUT,
39
39
  VERSION,
40
40
  buildUserIdentityPrompt
41
- } from "./chunk-MGFFZFOA.js";
41
+ } from "./chunk-LOS7T2JS.js";
42
42
  export {
43
43
  AGENTIC_BEHAVIOR_GUIDELINE,
44
44
  APP_NAME,
@@ -2,16 +2,16 @@
2
2
  import {
3
3
  formatDoctorReport,
4
4
  runDoctorCli
5
- } from "./chunk-OW3PAC3K.js";
6
- import "./chunk-ERHFJIEP.js";
5
+ } from "./chunk-IEKVRC2E.js";
6
+ import "./chunk-B4EBCSKM.js";
7
7
  import "./chunk-RS7SKYTS.js";
8
- import "./chunk-5CE64V7X.js";
9
- import "./chunk-FBT5VPT4.js";
8
+ import "./chunk-NKTCITLH.js";
9
+ import "./chunk-OVEZ6HB5.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-LCI2GVAU.js";
14
+ import "./chunk-NOQKCHIQ.js";
15
15
  export {
16
16
  formatDoctorReport,
17
17
  runDoctorCli
@@ -55,7 +55,7 @@ import {
55
55
  touchMemoryReferences,
56
56
  updateMemoryApproval,
57
57
  updateMemoryEntry
58
- } from "./chunk-LZ5667Z2.js";
58
+ } from "./chunk-JXGE4T4U.js";
59
59
  import {
60
60
  DEFAULT_PATTERNS,
61
61
  redactJson,
@@ -81,7 +81,7 @@ import {
81
81
  recoverGbkMojibake,
82
82
  runTestsTool,
83
83
  shellInvocation
84
- } from "./chunk-7OY3WOJD.js";
84
+ } from "./chunk-IOLDD5ZA.js";
85
85
  import {
86
86
  getCurrentSessionKey,
87
87
  getExecutionConfigDir,
@@ -123,7 +123,7 @@ import {
123
123
  SUBAGENT_MAX_ROUNDS_LIMIT,
124
124
  VERSION,
125
125
  buildUserIdentityPrompt
126
- } from "./chunk-MGFFZFOA.js";
126
+ } from "./chunk-LOS7T2JS.js";
127
127
 
128
128
  // src/web/access.ts
129
129
  import { randomBytes, timingSafeEqual } from "crypto";
@@ -6338,7 +6338,7 @@ var SHELL = IS_WINDOWS2 ? "powershell.exe" : posixShell();
6338
6338
  var pool = /* @__PURE__ */ new Map();
6339
6339
  var IDLE_EVICT_MS = 5 * 6e4;
6340
6340
  var evictionTimer = null;
6341
- var WIN_STDIN_TO_NUL = `try { if (-not ('AicliNative.StdIn' -as [type])) { Add-Type -Namespace AicliNative -Name StdIn -MemberDefinition '[DllImport("kernel32.dll")] public static extern bool SetStdHandle(int n, System.IntPtr h); [DllImport("kernel32.dll", CharSet=CharSet.Unicode)] public static extern System.IntPtr CreateFileW(string f, uint a, uint s, System.IntPtr sa, uint c, uint fl, System.IntPtr t);' }; $__aicli_nul = [AicliNative.StdIn]::CreateFileW('NUL', [uint32]2147483648, 3, [IntPtr]::Zero, 3, 0, [IntPtr]::Zero); if ($__aicli_nul -ne [IntPtr]-1) { [void][AicliNative.StdIn]::SetStdHandle(-10, $__aicli_nul) } } catch { }; $Error.Clear()`;
6341
+ var WIN_STDIN_TO_NUL = `try { if (-not ('AicliNative.StdIn' -as [type])) { Add-Type -Namespace AicliNative -Name StdIn -MemberDefinition '[StructLayout(LayoutKind.Sequential)] public struct SA { public int nLength; public System.IntPtr lpSecurityDescriptor; public bool bInheritHandle; } [DllImport("kernel32.dll")] public static extern bool SetStdHandle(int n, System.IntPtr h); [DllImport("kernel32.dll", CharSet=CharSet.Unicode)] public static extern System.IntPtr CreateFileW(string f, uint a, uint s, ref SA sa, uint c, uint fl, System.IntPtr t);' }; $__aicli_sa = New-Object AicliNative.StdIn+SA; $__aicli_sa.nLength = [Runtime.InteropServices.Marshal]::SizeOf($__aicli_sa); $__aicli_sa.bInheritHandle = $true; $__aicli_nul = [AicliNative.StdIn]::CreateFileW('NUL', [uint32]2147483648, 3, [ref]$__aicli_sa, 3, 0, [IntPtr]::Zero); if ($__aicli_nul -ne [IntPtr]-1) { [void][AicliNative.StdIn]::SetStdHandle(-10, $__aicli_nul) } } catch { }; $Error.Clear()`;
6342
6342
  function spawnShell(cwd) {
6343
6343
  const shellArgs = IS_WINDOWS2 ? ["-NoProfile", "-NonInteractive", "-Command", "-"] : ["-s"];
6344
6344
  const proc = spawn(SHELL, shellArgs, {
@@ -17834,7 +17834,7 @@ Cache: write=${cacheCreate} read=${cacheRead}` : "";
17834
17834
  Cost: ${formatCost(cost)}` : "";
17835
17835
  let memoryLine = "";
17836
17836
  try {
17837
- const { countPendingMemories: countPendingMemories2 } = await import("./persistent-memory-SAP3R57F.js");
17837
+ const { countPendingMemories: countPendingMemories2 } = await import("./persistent-memory-64EXCOV4.js");
17838
17838
  const pending = countPendingMemories2(ctx.config.getConfigDir());
17839
17839
  if (pending > 0) memoryLine = `
17840
17840
  Memory: \u26A0 ${pending} pending approval \u2014 see the Memory panel or /memory`;
@@ -18822,7 +18822,7 @@ async function handleTest(args, ctx) {
18822
18822
  const isCommand = argStr.includes(" ") || /^(mvn|gradle|npm|pytest|cargo|go)\b/.test(argStr);
18823
18823
  testArgs = isCommand ? { command: argStr } : { filter: argStr };
18824
18824
  }
18825
- const runTests = ctx.runTests ?? (await import("./run-tests-3BB4LUZT.js")).executeTests;
18825
+ const runTests = ctx.runTests ?? (await import("./run-tests-RUYOX42E.js")).executeTests;
18826
18826
  const report = await runTests(testArgs);
18827
18827
  ctx.send({ type: "info", message: report });
18828
18828
  } catch (err) {
@@ -19213,7 +19213,7 @@ async function handleMemory(args, ctx) {
19213
19213
  }
19214
19214
  if (intent.kind === "status") {
19215
19215
  const { getChatIndexStatus: getChatIndexStatus2 } = await import("./chat-index-RLVLQRRC.js");
19216
- const { listMemoryEntries: listMemoryEntries2, isMemoryExpired: isMemoryExpired2, formatMemoryForPrompt: formatMemoryForPrompt2 } = await import("./persistent-memory-SAP3R57F.js");
19216
+ const { listMemoryEntries: listMemoryEntries2, isMemoryExpired: isMemoryExpired2, formatMemoryForPrompt: formatMemoryForPrompt2 } = await import("./persistent-memory-64EXCOV4.js");
19217
19217
  const memories = listMemoryEntries2(configDir, { includeExpired: true, includeRejected: true });
19218
19218
  const injected = formatMemoryForPrompt2(configDir, process.cwd(), ctx.config.get("memory")?.maxChars);
19219
19219
  const view = buildMemoryStatusView({
@@ -19236,7 +19236,7 @@ async function handleMemory(args, ctx) {
19236
19236
  return;
19237
19237
  }
19238
19238
  if (intent.kind === "recall") {
19239
- const { searchPersistentMemories: searchPersistentMemories2, touchMemoryReferences: touchMemoryReferences2 } = await import("./persistent-memory-SAP3R57F.js");
19239
+ const { searchPersistentMemories: searchPersistentMemories2, touchMemoryReferences: touchMemoryReferences2 } = await import("./persistent-memory-64EXCOV4.js");
19240
19240
  const { searchChatMemory: searchChatMemory2 } = await import("./chat-index-RLVLQRRC.js");
19241
19241
  const persistentHits = searchPersistentMemories2(configDir, intent.query, process.cwd(), 3);
19242
19242
  if (persistentHits.length > 0) {
@@ -19357,7 +19357,7 @@ async function handleMemory(args, ctx) {
19357
19357
  ctx.handleMemoryManage(intent.action, args[1], intent.action === "expire" ? args[2] : void 0);
19358
19358
  } else if (intent.kind === "export") {
19359
19359
  if (args[1] === "md") {
19360
- const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-SAP3R57F.js");
19360
+ const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-64EXCOV4.js");
19361
19361
  ctx.send({
19362
19362
  type: "export_data",
19363
19363
  format: "md",
@@ -20363,7 +20363,7 @@ No tools match "${filter}".
20363
20363
  const { join: join26 } = await import("path");
20364
20364
  const { existsSync: existsSync32 } = await import("fs");
20365
20365
  const { getGitRoot: getGitRoot2 } = await import("./git-context-VNCA2GU7.js");
20366
- const { MCP_PROJECT_CONFIG_NAME: MCP_PROJECT_CONFIG_NAME2 } = await import("./constants-2BVJTZJT.js");
20366
+ const { MCP_PROJECT_CONFIG_NAME: MCP_PROJECT_CONFIG_NAME2 } = await import("./constants-J3346CYX.js");
20367
20367
  const { approveProject, hashMcpFile } = await import("./project-trust-6CJB5ZMX.js");
20368
20368
  const cwd = process.cwd();
20369
20369
  const projectRoot = getGitRoot2(cwd) ?? cwd;
@@ -21282,7 +21282,7 @@ function createReviewCommands() {
21282
21282
  usage: "/test [command|filter]",
21283
21283
  async execute(args, ctx) {
21284
21284
  try {
21285
- const { executeTests } = await import("./run-tests-3BB4LUZT.js");
21285
+ const { executeTests } = await import("./run-tests-RUYOX42E.js");
21286
21286
  const argStr = args.join(" ").trim();
21287
21287
  let testArgs = {};
21288
21288
  if (argStr) {
@@ -158,7 +158,7 @@ ${content}`);
158
158
  }
159
159
  }
160
160
  async function runTaskMode(config, providers, configManager, topic) {
161
- const { TaskOrchestrator } = await import("./task-orchestrator-VRPSFGNY.js");
161
+ const { TaskOrchestrator } = await import("./task-orchestrator-62LRX42O.js");
162
162
  const orchestrator = new TaskOrchestrator(config, providers, configManager);
163
163
  let interrupted = false;
164
164
  const onSigint = () => {
package/dist/index.js CHANGED
@@ -24,7 +24,7 @@ import {
24
24
  setupProxy,
25
25
  snapshotFile,
26
26
  stripRoutingTags
27
- } from "./chunk-DHJFMW3F.js";
27
+ } from "./chunk-WDEO7J3T.js";
28
28
  import {
29
29
  CostTracker,
30
30
  getPricing,
@@ -47,7 +47,7 @@ import {
47
47
  setMaxOutputCap,
48
48
  spawnAgentContext,
49
49
  undoStack
50
- } from "./chunk-NZGSCXA4.js";
50
+ } from "./chunk-UQI5TOL2.js";
51
51
  import "./chunk-HLWUDRBO.js";
52
52
  import {
53
53
  NO_THINKING,
@@ -60,7 +60,7 @@ import {
60
60
  countPendingMemories,
61
61
  detectStaleLegacyMarkdownEdit,
62
62
  formatMemoryForPrompt
63
- } from "./chunk-BGFFD3IL.js";
63
+ } from "./chunk-E3RJEQZA.js";
64
64
  import "./chunk-RWRZVQCB.js";
65
65
  import "./chunk-B3MPYI4E.js";
66
66
  import "./chunk-M6HLYG33.js";
@@ -81,22 +81,22 @@ import {
81
81
  import {
82
82
  loadContextFiles,
83
83
  writeCrashLog
84
- } from "./chunk-OW3PAC3K.js";
84
+ } from "./chunk-IEKVRC2E.js";
85
85
  import {
86
86
  getActivePluginAssets,
87
87
  getPendingHookTrust,
88
88
  installFlushOnExit,
89
89
  mergePluginHooks,
90
90
  runLifecycleHooks
91
- } from "./chunk-ERHFJIEP.js";
91
+ } from "./chunk-B4EBCSKM.js";
92
92
  import "./chunk-RS7SKYTS.js";
93
93
  import {
94
94
  ProviderRegistry,
95
95
  listBuiltInProviderMetadata
96
- } from "./chunk-5CE64V7X.js";
96
+ } from "./chunk-NKTCITLH.js";
97
97
  import {
98
98
  ConfigManager
99
- } from "./chunk-FBT5VPT4.js";
99
+ } from "./chunk-OVEZ6HB5.js";
100
100
  import {
101
101
  CONTENT_ONLY_STREAM_REMINDER,
102
102
  TEE_FINAL_USER_NUDGE,
@@ -134,7 +134,7 @@ import {
134
134
  isInterrupted,
135
135
  requestInterrupt,
136
136
  resetInterrupt
137
- } from "./chunk-2IGHZDPR.js";
137
+ } from "./chunk-VKQIHFI5.js";
138
138
  import {
139
139
  AGENTIC_BEHAVIOR_GUIDELINE,
140
140
  AUTHOR,
@@ -152,7 +152,7 @@ import {
152
152
  SKILLS_DIR_NAME,
153
153
  VERSION,
154
154
  buildUserIdentityPrompt
155
- } from "./chunk-LCI2GVAU.js";
155
+ } from "./chunk-NOQKCHIQ.js";
156
156
  import "./chunk-SXIJLSVF.js";
157
157
 
158
158
  // src/index.ts
@@ -4117,7 +4117,7 @@ program.command("web").description("Start Web UI server with browser-based chat
4117
4117
  console.error("Error: Invalid port number. Must be between 1 and 65535.");
4118
4118
  process.exit(1);
4119
4119
  }
4120
- const { startWebServer } = await import("./server-GSIQOYEV.js");
4120
+ const { startWebServer } = await import("./server-DQFHA3Z2.js");
4121
4121
  await startWebServer({ port, host: options.host, externalOrigin: options.externalOrigin });
4122
4122
  });
4123
4123
  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) => {
@@ -4284,11 +4284,11 @@ program.command("sessions").description("List recent conversation sessions").opt
4284
4284
  console.log(footer + "\n");
4285
4285
  });
4286
4286
  program.command("usage").description("Show token + cost usage grouped by provider/model (cross-session)").option("--days <n>", "Only the last N days (inclusive of today)").option("--month <ym>", "Only a specific month, format YYYY-MM (e.g. 2026-06)").option("--json", "Output as JSON (for scripting)").action(async (options) => {
4287
- const { runUsageCli } = await import("./usage-2RJRDXIT.js");
4287
+ const { runUsageCli } = await import("./usage-RDLAA5HC.js");
4288
4288
  await runUsageCli(options);
4289
4289
  });
4290
4290
  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) => {
4291
- const { runDoctorCli } = await import("./doctor-cli-GPFJF7WP.js");
4291
+ const { runDoctorCli } = await import("./doctor-cli-PCSMI6ZV.js");
4292
4292
  const argv = process.argv.slice(2);
4293
4293
  await runDoctorCli({
4294
4294
  json: !!options.json || argv.includes("--json"),
@@ -4297,7 +4297,7 @@ program.command("doctor").description("Health check: API keys, config, MCP, rece
4297
4297
  });
4298
4298
  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) => {
4299
4299
  try {
4300
- const batch = await import("./batch-D3HG4I6J.js");
4300
+ const batch = await import("./batch-GE6XWXPK.js");
4301
4301
  switch (action) {
4302
4302
  case "submit":
4303
4303
  if (!arg) {
@@ -4340,7 +4340,7 @@ program.command("batch <action> [arg] [arg2]").description("Anthropic Message Ba
4340
4340
  }
4341
4341
  });
4342
4342
  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) => {
4343
- const { startMcpServer } = await import("./server-2NHQYAZN.js");
4343
+ const { startMcpServer } = await import("./server-GU7XSXSR.js");
4344
4344
  await startMcpServer({
4345
4345
  allowDestructive: !!options.allowDestructive,
4346
4346
  allowOutsideCwd: !!options.allowOutsideCwd,
@@ -4353,7 +4353,7 @@ program.command("pr <action> [target]").description("PR review helpers: review |
4353
4353
  console.error(`Unknown pr action: ${action}. Use review | security-review | summarize.`);
4354
4354
  process.exit(1);
4355
4355
  }
4356
- const { runPrCli } = await import("./pr-AMY7JRQQ.js");
4356
+ const { runPrCli } = await import("./pr-2EZKHIQ5.js");
4357
4357
  const result = await runPrCli({
4358
4358
  action,
4359
4359
  target,
@@ -4373,8 +4373,8 @@ program.command("pr <action> [target]").description("PR review helpers: review |
4373
4373
  process.exit(result.exitCode);
4374
4374
  });
4375
4375
  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 or URL; diff fetched via gh pr diff <value>", (v) => /^#?\d+$/.test(v) ? parseInt(v.replace(/^#/, ""), 10) : v).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)").option("--json", "Output a structured JSON report").option("--markdown", "Output Markdown report (default)").option("--sarif", "Output SARIF 2.1.0 for code scanning artifacts").option("--fail-on-security-high", "Fail when the security review contains HIGH/CRITICAL findings (default)").option("--no-fail-on-security-high", "Do not fail on security HIGH/CRITICAL findings").option("--fail-on-test-failure", "Fail when the report mentions test failures (default)").option("--no-fail-on-test-failure", "Do not fail on test failure findings").option("--fail-on-lint-failure", "Fail when the report mentions lint/typecheck failures (default)").option("--no-fail-on-lint-failure", "Do not fail on lint/typecheck failure findings").action(async (options) => {
4376
- const { runCi } = await import("./ci-B4P35VVJ.js");
4377
- const { formatCiResult } = await import("./ci-format-JD7DKDNT.js");
4376
+ const { runCi } = await import("./ci-U5Q3BMQP.js");
4377
+ const { formatCiResult } = await import("./ci-format-4RR2G3RR.js");
4378
4378
  const formats = [options.json, options.markdown, options.sarif].filter(Boolean).length;
4379
4379
  if (formats > 1) {
4380
4380
  console.error("Choose only one output format: --json, --markdown, or --sarif.");
@@ -4533,7 +4533,7 @@ program.command("hub [topic]").description("Start multi-agent hub (discuss / bra
4533
4533
  config.get("customProviders"),
4534
4534
  config.getConfigDir()
4535
4535
  );
4536
- const { startHub } = await import("./hub-GQ2XUS4M.js");
4536
+ const { startHub } = await import("./hub-R3WSYGNT.js");
4537
4537
  await startHub(
4538
4538
  {
4539
4539
  topic: topic ?? "",
@@ -27,11 +27,11 @@ import {
27
27
  touchMemoryReferences,
28
28
  updateMemoryApproval,
29
29
  updateMemoryEntry
30
- } from "./chunk-LZ5667Z2.js";
30
+ } from "./chunk-JXGE4T4U.js";
31
31
  import "./chunk-FSC6KEWU.js";
32
32
  import "./chunk-2XMUCC42.js";
33
33
  import "./chunk-CGLYJRFA.js";
34
- import "./chunk-MGFFZFOA.js";
34
+ import "./chunk-LOS7T2JS.js";
35
35
  export {
36
36
  addMemoryEntry,
37
37
  backupMemoryStore,
@@ -28,11 +28,11 @@ import {
28
28
  touchMemoryReferences,
29
29
  updateMemoryApproval,
30
30
  updateMemoryEntry
31
- } from "./chunk-BGFFD3IL.js";
31
+ } from "./chunk-E3RJEQZA.js";
32
32
  import "./chunk-3FEZSLGI.js";
33
33
  import "./chunk-HOSJZMQS.js";
34
34
  import "./chunk-BMLQPSHP.js";
35
- import "./chunk-LCI2GVAU.js";
35
+ import "./chunk-NOQKCHIQ.js";
36
36
  export {
37
37
  addMemoryEntry,
38
38
  backupMemoryStore,
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  countSeverity,
4
4
  runCi
5
- } from "./chunk-5EDSZ3JF.js";
6
- import "./chunk-OIYQX2HM.js";
5
+ } from "./chunk-U6VATMAI.js";
6
+ import "./chunk-T4K4RZKR.js";
7
7
  import {
8
8
  buildReviewPrompt,
9
9
  buildSecurityReviewPrompt,
@@ -14,16 +14,16 @@ import {
14
14
  } from "./chunk-6YZEZFX5.js";
15
15
  import {
16
16
  ProviderRegistry
17
- } from "./chunk-5CE64V7X.js";
17
+ } from "./chunk-NKTCITLH.js";
18
18
  import {
19
19
  ConfigManager
20
- } from "./chunk-FBT5VPT4.js";
20
+ } from "./chunk-OVEZ6HB5.js";
21
21
  import "./chunk-E2W2MI6H.js";
22
22
  import "./chunk-TU3L3PW7.js";
23
23
  import "./chunk-BMLQPSHP.js";
24
24
  import {
25
25
  VERSION
26
- } from "./chunk-LCI2GVAU.js";
26
+ } from "./chunk-NOQKCHIQ.js";
27
27
 
28
28
  // src/cli/pr.ts
29
29
  import { execFileSync } from "child_process";
@@ -3,8 +3,8 @@ import {
3
3
  executeTests,
4
4
  runTestProcess,
5
5
  runTestsTool
6
- } from "./chunk-2IGHZDPR.js";
7
- import "./chunk-LCI2GVAU.js";
6
+ } from "./chunk-VKQIHFI5.js";
7
+ import "./chunk-NOQKCHIQ.js";
8
8
  import "./chunk-SXIJLSVF.js";
9
9
  export {
10
10
  executeTests,
@@ -2,9 +2,9 @@ import {
2
2
  executeTests,
3
3
  runTestProcess,
4
4
  runTestsTool
5
- } from "./chunk-7OY3WOJD.js";
5
+ } from "./chunk-IOLDD5ZA.js";
6
6
  import "./chunk-QMFMST2T.js";
7
- import "./chunk-MGFFZFOA.js";
7
+ import "./chunk-LOS7T2JS.js";
8
8
  export {
9
9
  executeTests,
10
10
  runTestProcess,
@@ -86,7 +86,7 @@ import {
86
86
  skillHistoryNote,
87
87
  snapshotFile,
88
88
  stripRoutingTags
89
- } from "./chunk-DHJFMW3F.js";
89
+ } from "./chunk-WDEO7J3T.js";
90
90
  import {
91
91
  CNY_PER_USD,
92
92
  CostTracker,
@@ -130,7 +130,7 @@ import {
130
130
  spawnAgentContext,
131
131
  truncateOutput,
132
132
  undoStack
133
- } from "./chunk-NZGSCXA4.js";
133
+ } from "./chunk-UQI5TOL2.js";
134
134
  import {
135
135
  buildReviewPrompt,
136
136
  buildSecurityReviewPrompt
@@ -157,7 +157,7 @@ import {
157
157
  restoreMemoryEntries,
158
158
  updateMemoryApproval,
159
159
  updateMemoryEntry
160
- } from "./chunk-BGFFD3IL.js";
160
+ } from "./chunk-E3RJEQZA.js";
161
161
  import "./chunk-RWRZVQCB.js";
162
162
  import "./chunk-B3MPYI4E.js";
163
163
  import "./chunk-M6HLYG33.js";
@@ -176,7 +176,7 @@ import {
176
176
  buildDoctorReport,
177
177
  formatDoctorReport,
178
178
  loadContextFiles
179
- } from "./chunk-OW3PAC3K.js";
179
+ } from "./chunk-IEKVRC2E.js";
180
180
  import {
181
181
  describePlugin,
182
182
  getActivePluginAssets,
@@ -191,14 +191,14 @@ import {
191
191
  runTool,
192
192
  setPluginEnabled,
193
193
  trustPlugin
194
- } from "./chunk-ERHFJIEP.js";
194
+ } from "./chunk-B4EBCSKM.js";
195
195
  import "./chunk-RS7SKYTS.js";
196
196
  import {
197
197
  ProviderRegistry
198
- } from "./chunk-5CE64V7X.js";
198
+ } from "./chunk-NKTCITLH.js";
199
199
  import {
200
200
  ConfigManager
201
- } from "./chunk-FBT5VPT4.js";
201
+ } from "./chunk-OVEZ6HB5.js";
202
202
  import {
203
203
  CONTENT_ONLY_STREAM_REMINDER,
204
204
  TEE_FINAL_USER_NUDGE,
@@ -231,7 +231,7 @@ import {
231
231
  import {
232
232
  assertReadablePath
233
233
  } from "./chunk-JJFJWD35.js";
234
- import "./chunk-2IGHZDPR.js";
234
+ import "./chunk-VKQIHFI5.js";
235
235
  import {
236
236
  AGENTIC_BEHAVIOR_GUIDELINE,
237
237
  AUTHOR,
@@ -247,7 +247,7 @@ import {
247
247
  SKILLS_DIR_NAME,
248
248
  VERSION,
249
249
  buildUserIdentityPrompt
250
- } from "./chunk-LCI2GVAU.js";
250
+ } from "./chunk-NOQKCHIQ.js";
251
251
  import {
252
252
  runWithExecutionContext,
253
253
  runWithSessionKey
@@ -979,7 +979,7 @@ Cache: write=${cacheCreate} read=${cacheRead}` : "";
979
979
  Cost: ${formatCost(cost)}` : "";
980
980
  let memoryLine = "";
981
981
  try {
982
- const { countPendingMemories: countPendingMemories2 } = await import("./persistent-memory-RY2JLUL4.js");
982
+ const { countPendingMemories: countPendingMemories2 } = await import("./persistent-memory-JZWKXFUF.js");
983
983
  const pending = countPendingMemories2(ctx.config.getConfigDir());
984
984
  if (pending > 0) memoryLine = `
985
985
  Memory: \u26A0 ${pending} pending approval \u2014 see the Memory panel or /memory`;
@@ -1908,7 +1908,7 @@ async function handleTest(args, ctx) {
1908
1908
  const isCommand = argStr.includes(" ") || /^(mvn|gradle|npm|pytest|cargo|go)\b/.test(argStr);
1909
1909
  testArgs = isCommand ? { command: argStr } : { filter: argStr };
1910
1910
  }
1911
- const runTests = ctx.runTests ?? (await import("./run-tests-5HMWO676.js")).executeTests;
1911
+ const runTests = ctx.runTests ?? (await import("./run-tests-CC24OLYI.js")).executeTests;
1912
1912
  const report = await runTests(testArgs);
1913
1913
  ctx.send({ type: "info", message: report });
1914
1914
  } catch (err) {
@@ -2184,7 +2184,7 @@ async function handleMemory(args, ctx) {
2184
2184
  }
2185
2185
  if (intent.kind === "status") {
2186
2186
  const { getChatIndexStatus } = await import("./chat-index-7CLR4CBG.js");
2187
- const { listMemoryEntries: listMemoryEntries2, isMemoryExpired: isMemoryExpired2, formatMemoryForPrompt: formatMemoryForPrompt2 } = await import("./persistent-memory-RY2JLUL4.js");
2187
+ const { listMemoryEntries: listMemoryEntries2, isMemoryExpired: isMemoryExpired2, formatMemoryForPrompt: formatMemoryForPrompt2 } = await import("./persistent-memory-JZWKXFUF.js");
2188
2188
  const memories = listMemoryEntries2(configDir, { includeExpired: true, includeRejected: true });
2189
2189
  const injected = formatMemoryForPrompt2(configDir, process.cwd(), ctx.config.get("memory")?.maxChars);
2190
2190
  const view = buildMemoryStatusView({
@@ -2207,7 +2207,7 @@ async function handleMemory(args, ctx) {
2207
2207
  return;
2208
2208
  }
2209
2209
  if (intent.kind === "recall") {
2210
- const { searchPersistentMemories, touchMemoryReferences } = await import("./persistent-memory-RY2JLUL4.js");
2210
+ const { searchPersistentMemories, touchMemoryReferences } = await import("./persistent-memory-JZWKXFUF.js");
2211
2211
  const { searchChatMemory } = await import("./chat-index-7CLR4CBG.js");
2212
2212
  const persistentHits = searchPersistentMemories(configDir, intent.query, process.cwd(), 3);
2213
2213
  if (persistentHits.length > 0) {
@@ -2328,7 +2328,7 @@ async function handleMemory(args, ctx) {
2328
2328
  ctx.handleMemoryManage(intent.action, args[1], intent.action === "expire" ? args[2] : void 0);
2329
2329
  } else if (intent.kind === "export") {
2330
2330
  if (args[1] === "md") {
2331
- const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-RY2JLUL4.js");
2331
+ const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-JZWKXFUF.js");
2332
2332
  ctx.send({
2333
2333
  type: "export_data",
2334
2334
  format: "md",
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  ToolRegistry
4
- } from "./chunk-NZGSCXA4.js";
4
+ } from "./chunk-UQI5TOL2.js";
5
5
  import "./chunk-6JHACXB3.js";
6
- import "./chunk-BGFFD3IL.js";
6
+ import "./chunk-E3RJEQZA.js";
7
7
  import "./chunk-RWRZVQCB.js";
8
8
  import "./chunk-B3MPYI4E.js";
9
9
  import "./chunk-M6HLYG33.js";
@@ -14,7 +14,7 @@ import "./chunk-JL44HGZC.js";
14
14
  import "./chunk-3FEZSLGI.js";
15
15
  import {
16
16
  runTool
17
- } from "./chunk-ERHFJIEP.js";
17
+ } from "./chunk-B4EBCSKM.js";
18
18
  import "./chunk-RS7SKYTS.js";
19
19
  import {
20
20
  getDangerLevel,
@@ -24,10 +24,10 @@ import "./chunk-TU3L3PW7.js";
24
24
  import "./chunk-HOSJZMQS.js";
25
25
  import "./chunk-BMLQPSHP.js";
26
26
  import "./chunk-JJFJWD35.js";
27
- import "./chunk-2IGHZDPR.js";
27
+ import "./chunk-VKQIHFI5.js";
28
28
  import {
29
29
  VERSION
30
- } from "./chunk-LCI2GVAU.js";
30
+ } from "./chunk-NOQKCHIQ.js";
31
31
  import "./chunk-SXIJLSVF.js";
32
32
 
33
33
  // src/mcp/server.ts
@@ -4,9 +4,9 @@ import {
4
4
  googleSearchContext,
5
5
  isToolCapableProvider,
6
6
  truncateOutput
7
- } from "./chunk-NZGSCXA4.js";
7
+ } from "./chunk-UQI5TOL2.js";
8
8
  import "./chunk-6JHACXB3.js";
9
- import "./chunk-BGFFD3IL.js";
9
+ import "./chunk-E3RJEQZA.js";
10
10
  import "./chunk-RWRZVQCB.js";
11
11
  import "./chunk-B3MPYI4E.js";
12
12
  import "./chunk-M6HLYG33.js";
@@ -17,7 +17,7 @@ import "./chunk-JL44HGZC.js";
17
17
  import "./chunk-3FEZSLGI.js";
18
18
  import {
19
19
  runTool
20
- } from "./chunk-ERHFJIEP.js";
20
+ } from "./chunk-B4EBCSKM.js";
21
21
  import "./chunk-RS7SKYTS.js";
22
22
  import {
23
23
  getDangerLevel,
@@ -29,10 +29,10 @@ import {
29
29
  atomicWriteFileSync
30
30
  } from "./chunk-BMLQPSHP.js";
31
31
  import "./chunk-JJFJWD35.js";
32
- import "./chunk-2IGHZDPR.js";
32
+ import "./chunk-VKQIHFI5.js";
33
33
  import {
34
34
  SUBAGENT_ALLOWED_TOOLS
35
- } from "./chunk-LCI2GVAU.js";
35
+ } from "./chunk-NOQKCHIQ.js";
36
36
  import "./chunk-SXIJLSVF.js";
37
37
 
38
38
  // src/hub/task-orchestrator.ts
@@ -9,10 +9,10 @@ import {
9
9
  import "./chunk-RS7SKYTS.js";
10
10
  import {
11
11
  ConfigManager
12
- } from "./chunk-FBT5VPT4.js";
12
+ } from "./chunk-OVEZ6HB5.js";
13
13
  import "./chunk-TU3L3PW7.js";
14
14
  import "./chunk-BMLQPSHP.js";
15
- import "./chunk-LCI2GVAU.js";
15
+ import "./chunk-NOQKCHIQ.js";
16
16
 
17
17
  // src/cli/usage.ts
18
18
  function classifyRowCost(row) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jinzd-ai-cli",
3
- "version": "0.4.326",
3
+ "version": "0.4.328",
4
4
  "description": "Cross-platform REPL-style AI CLI with multi-provider support",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -93,8 +93,8 @@
93
93
  "@google/generative-ai": "^0.24.0",
94
94
  "@huggingface/transformers": "^4.2.0",
95
95
  "@inquirer/prompts": "^7.0.0",
96
- "chalk": "^5.4.1",
97
- "commander": "^13.0.0",
96
+ "chalk": "^6.0.1",
97
+ "commander": "^15.0.0",
98
98
  "dompurify": "^3.4.15",
99
99
  "express": "^5.2.1",
100
100
  "openai": "^4.77.0",
@@ -112,23 +112,23 @@
112
112
  "zod": "^3.24.1"
113
113
  },
114
114
  "devDependencies": {
115
- "@cyclonedx/cyclonedx-npm": "6.0.0",
116
- "@playwright/test": "^1.60.0",
115
+ "@cyclonedx/cyclonedx-npm": "6.0.1",
116
+ "@playwright/test": "^1.63.0",
117
117
  "@types/express": "^5.0.6",
118
118
  "@types/node": "^22.10.0",
119
119
  "@types/uuid": "^10.0.0",
120
120
  "@types/ws": "^8.18.1",
121
- "@typescript-eslint/eslint-plugin": "^8.13.0",
122
- "@typescript-eslint/parser": "^8.13.0",
123
- "@vitest/coverage-v8": "^4.1.11",
124
- "@yao-pkg/pkg": "^6.22.0",
121
+ "@typescript-eslint/eslint-plugin": "^8.71.0",
122
+ "@typescript-eslint/parser": "^8.71.0",
123
+ "@vitest/coverage-v8": "^5.0.3",
124
+ "@yao-pkg/pkg": "^6.23.0",
125
125
  "electron": "^41.10.4",
126
126
  "electron-builder": "^26.15.3",
127
- "eslint": "^9.13.0",
127
+ "eslint": "^10.12.0",
128
128
  "tsup": "^8.3.5",
129
129
  "tsx": "^4.23.15",
130
130
  "typescript": "^5.7.3",
131
- "vitest": "^4.1.11"
131
+ "vitest": "^5.0.3"
132
132
  },
133
133
  "overrides": {
134
134
  "adm-zip": "0.6.1",