jinzd-ai-cli 0.4.254 → 0.4.255

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 (31) hide show
  1. package/dist/{batch-WRISEJGQ.js → batch-OWBKG6XZ.js} +2 -2
  2. package/dist/{chunk-TF5XR7NI.js → chunk-2UZ23L5P.js} +2 -2
  3. package/dist/{chunk-SCLXRJKE.js → chunk-3WKUKMBG.js} +3 -3
  4. package/dist/{chunk-EOZROPAY.js → chunk-7QWFFLKV.js} +3 -3
  5. package/dist/{chunk-TUPLHKYE.js → chunk-B42HK6GL.js} +1 -1
  6. package/dist/{chunk-5CCIFT5B.js → chunk-CU5ZNAIX.js} +1 -1
  7. package/dist/{chunk-KGJCRE6U.js → chunk-FOC2YWOF.js} +1 -1
  8. package/dist/{chunk-Q6MD47RH.js → chunk-IRSNREEO.js} +1 -1
  9. package/dist/{chunk-VCY6NH43.js → chunk-PSP4W2MG.js} +15 -7
  10. package/dist/{chunk-OI247DUJ.js → chunk-SMIQ6CBX.js} +1 -1
  11. package/dist/{chunk-XBCOYS22.js → chunk-SVWIUNOA.js} +1 -1
  12. package/dist/{chunk-MBOEMIH2.js → chunk-U6OV523Y.js} +1 -1
  13. package/dist/{chunk-6OEZMFMM.js → chunk-X2V76VPG.js} +1 -1
  14. package/dist/{chunk-QXIKCU5R.js → chunk-YJ7VL7VL.js} +1 -1
  15. package/dist/{ci-JINX6RT6.js → ci-V5GVGYZO.js} +4 -4
  16. package/dist/{ci-format-ZQX57BPV.js → ci-format-CTGDLJTS.js} +2 -2
  17. package/dist/{constants-ASRW3Y6O.js → constants-LJRYL7IN.js} +1 -1
  18. package/dist/{doctor-cli-CKJ7NEKC.js → doctor-cli-GOM2GQUK.js} +4 -4
  19. package/dist/electron-server.js +17 -9
  20. package/dist/{hub-LBPFXAXM.js → hub-4EEDUJED.js} +1 -1
  21. package/dist/index.js +19 -19
  22. package/dist/{persistent-memory-HJB6XTWD.js → persistent-memory-DMN76UB5.js} +2 -2
  23. package/dist/{persistent-memory-LKWQ777N.js → persistent-memory-EEAGHDFR.js} +2 -2
  24. package/dist/{pr-JM266VJT.js → pr-Q74YHWN2.js} +4 -4
  25. package/dist/{run-tests-CMCXT3ZW.js → run-tests-ADZQ2JWI.js} +2 -2
  26. package/dist/{run-tests-DAOPTU2O.js → run-tests-N3ES4YMU.js} +2 -2
  27. package/dist/{server-4KFSPCPP.js → server-HUWVPJKQ.js} +5 -5
  28. package/dist/{server-ADRQ3MFV.js → server-PMEZ3HDO.js} +11 -11
  29. package/dist/{task-orchestrator-OH5S26KX.js → task-orchestrator-KLCN25OY.js} +5 -5
  30. package/dist/{usage-MKPF3XFL.js → usage-MNMRX5OE.js} +2 -2
  31. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  ConfigManager
4
- } from "./chunk-Q6MD47RH.js";
4
+ } from "./chunk-IRSNREEO.js";
5
5
  import "./chunk-5ULLIOVC.js";
6
- import "./chunk-XBCOYS22.js";
6
+ import "./chunk-SVWIUNOA.js";
7
7
  import {
8
8
  atomicWriteFileSync
9
9
  } from "./chunk-IW3Q7AE5.js";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  truncateForPersist
4
- } from "./chunk-VCY6NH43.js";
4
+ } from "./chunk-PSP4W2MG.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-XBCOYS22.js";
14
+ } from "./chunk-SVWIUNOA.js";
15
15
  import {
16
16
  atomicWriteFileSync
17
17
  } from "./chunk-IW3Q7AE5.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-ZRBGH245.js";
5
5
  import {
6
6
  ConfigManager
7
- } from "./chunk-Q6MD47RH.js";
7
+ } from "./chunk-IRSNREEO.js";
8
8
  import {
9
9
  getActivePluginAssets,
10
10
  getPendingHookTrust,
@@ -14,7 +14,7 @@ import {
14
14
  listHooks,
15
15
  listInstalledPlugins,
16
16
  resetStats
17
- } from "./chunk-KGJCRE6U.js";
17
+ } from "./chunk-FOC2YWOF.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-XBCOYS22.js";
29
+ } from "./chunk-SVWIUNOA.js";
30
30
 
31
31
  // src/diagnostics/doctor-report.ts
32
32
  import { existsSync as existsSync3, statSync as statSync2 } from "fs";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  evaluateCiGate,
4
4
  normalizeCiThresholds
5
- } from "./chunk-OI247DUJ.js";
5
+ } from "./chunk-SMIQ6CBX.js";
6
6
  import {
7
7
  buildReviewPrompt,
8
8
  buildSecurityReviewPrompt,
@@ -13,10 +13,10 @@ import {
13
13
  } from "./chunk-ZRBGH245.js";
14
14
  import {
15
15
  ConfigManager
16
- } from "./chunk-Q6MD47RH.js";
16
+ } from "./chunk-IRSNREEO.js";
17
17
  import {
18
18
  VERSION
19
- } from "./chunk-XBCOYS22.js";
19
+ } from "./chunk-SVWIUNOA.js";
20
20
 
21
21
  // src/cli/ci.ts
22
22
  import { execFileSync } from "child_process";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TEST_TIMEOUT
3
- } from "./chunk-5CCIFT5B.js";
3
+ } from "./chunk-CU5ZNAIX.js";
4
4
 
5
5
  // src/tools/builtin/run-tests.ts
6
6
  import { execSync, spawnSync } from "child_process";
@@ -1,5 +1,5 @@
1
1
  // src/core/constants.ts
2
- var VERSION = "0.4.254";
2
+ var VERSION = "0.4.255";
3
3
  var APP_NAME = "ai-cli";
4
4
  var CONFIG_DIR_NAME = ".aicli";
5
5
  var CONFIG_FILE_NAME = "config.json";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  CONFIG_DIR_NAME,
4
4
  PLUGINS_DIR_NAME
5
- } from "./chunk-XBCOYS22.js";
5
+ } from "./chunk-SVWIUNOA.js";
6
6
  import {
7
7
  atomicWriteFileSync
8
8
  } from "./chunk-IW3Q7AE5.js";
@@ -8,7 +8,7 @@ import {
8
8
  CONFIG_FILE_NAME,
9
9
  HISTORY_DIR_NAME,
10
10
  PLUGINS_DIR_NAME
11
- } from "./chunk-XBCOYS22.js";
11
+ } from "./chunk-SVWIUNOA.js";
12
12
  import {
13
13
  atomicWriteFileSync
14
14
  } from "./chunk-IW3Q7AE5.js";
@@ -7,7 +7,7 @@ import {
7
7
  searchPersistentMemories,
8
8
  touchMemoryReferences,
9
9
  updateMemoryEntry
10
- } from "./chunk-6OEZMFMM.js";
10
+ } from "./chunk-X2V76VPG.js";
11
11
  import {
12
12
  indexProject
13
13
  } from "./chunk-GLSR2NR3.js";
@@ -23,7 +23,7 @@ import {
23
23
  runHook,
24
24
  runLifecycleHooks,
25
25
  runTool
26
- } from "./chunk-KGJCRE6U.js";
26
+ } from "./chunk-FOC2YWOF.js";
27
27
  import {
28
28
  buildTruncatedArgumentsError,
29
29
  getDangerLevel,
@@ -40,14 +40,14 @@ import {
40
40
  } from "./chunk-4BKXL7SM.js";
41
41
  import {
42
42
  runTestsTool
43
- } from "./chunk-MBOEMIH2.js";
43
+ } from "./chunk-U6OV523Y.js";
44
44
  import {
45
45
  CONFIG_DIR_NAME,
46
46
  DEFAULT_MAX_TOOL_OUTPUT_CHARS_CAP,
47
47
  SUBAGENT_ALLOWED_TOOLS,
48
48
  SUBAGENT_DEFAULT_MAX_ROUNDS,
49
49
  SUBAGENT_MAX_ROUNDS_LIMIT
50
- } from "./chunk-XBCOYS22.js";
50
+ } from "./chunk-SVWIUNOA.js";
51
51
  import {
52
52
  loadChatIndex,
53
53
  searchChatMemory
@@ -163,6 +163,16 @@ function startEvictionTimer() {
163
163
  }
164
164
  }, 6e4).unref();
165
165
  }
166
+ function buildWrappedCommand(command, id, isWindows) {
167
+ const markerStart = `AICLI_MARKER_START:${id}`;
168
+ const markerEnd = `AICLI_MARKER_END:${id}`;
169
+ if (!isWindows) {
170
+ return `echo "${markerStart}"; ${command}; echo "${markerEnd}:$?"`;
171
+ }
172
+ const inner = `${WIN_UTF8_PREAMBLE} Write-Output "${markerStart}"; ${command}; $__ok = $?; $__ec = $LASTEXITCODE; $__code = if ($__ok) { 0 } elseif ($null -ne $__ec -and $__ec -ne 0) { $__ec } else { 1 }; Write-Output "${markerEnd}:$__code"`;
173
+ const b64 = Buffer.from(inner, "utf-8").toString("base64");
174
+ return `Invoke-Expression ([System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String('${b64}')))`;
175
+ }
166
176
  async function execInPool(sessionKey, command, timeout, cwd, abortSignal) {
167
177
  let entry = pool.get(sessionKey);
168
178
  if (!entry || entry.proc.exitCode !== null || entry.cwd !== cwd) {
@@ -179,9 +189,7 @@ async function execInPool(sessionKey, command, timeout, cwd, abortSignal) {
179
189
  entry.lastUsed = Date.now();
180
190
  startEvictionTimer();
181
191
  const id = `${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)}`;
182
- const markerStart = `AICLI_MARKER_START:${id}`;
183
- const markerEnd = `AICLI_MARKER_END:${id}`;
184
- const wrappedCmd = IS_WINDOWS2 ? `${WIN_UTF8_PREAMBLE} echo "${markerStart}"; ${command}; echo "${markerEnd}:0"` : `echo "${markerStart}"; ${command}; echo "${markerEnd}:$?"`;
192
+ const wrappedCmd = buildWrappedCommand(command, id, IS_WINDOWS2);
185
193
  return new Promise((resolve7) => {
186
194
  let stdout = "";
187
195
  let stderr = "";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  VERSION
4
- } from "./chunk-XBCOYS22.js";
4
+ } from "./chunk-SVWIUNOA.js";
5
5
 
6
6
  // src/cli/ci-format.ts
7
7
  var DEFAULT_CI_THRESHOLDS = {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/core/constants.ts
4
- var VERSION = "0.4.254";
4
+ var VERSION = "0.4.255";
5
5
  var APP_NAME = "ai-cli";
6
6
  var CONFIG_DIR_NAME = ".aicli";
7
7
  var CONFIG_FILE_NAME = "config.json";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  TEST_TIMEOUT
4
- } from "./chunk-XBCOYS22.js";
4
+ } from "./chunk-SVWIUNOA.js";
5
5
 
6
6
  // src/tools/builtin/run-tests.ts
7
7
  import { execSync, spawnSync } from "child_process";
@@ -6,7 +6,7 @@ import {
6
6
  MEMORY_FILE_NAME,
7
7
  MEMORY_MAX_CHARS,
8
8
  MEMORY_STORE_FILE_NAME
9
- } from "./chunk-XBCOYS22.js";
9
+ } from "./chunk-SVWIUNOA.js";
10
10
  import {
11
11
  DEFAULT_PATTERNS,
12
12
  redactString
@@ -6,7 +6,7 @@ import {
6
6
  MEMORY_FILE_NAME,
7
7
  MEMORY_MAX_CHARS,
8
8
  MEMORY_STORE_FILE_NAME
9
- } from "./chunk-5CCIFT5B.js";
9
+ } from "./chunk-CU5ZNAIX.js";
10
10
  import {
11
11
  atomicWriteFileSync
12
12
  } from "./chunk-6BUTA5VW.js";
@@ -3,14 +3,14 @@ import {
3
3
  CI_COMMENT_MARKER,
4
4
  countSeverity,
5
5
  runCi
6
- } from "./chunk-EOZROPAY.js";
7
- import "./chunk-OI247DUJ.js";
6
+ } from "./chunk-7QWFFLKV.js";
7
+ import "./chunk-SMIQ6CBX.js";
8
8
  import "./chunk-HLWUDRBO.js";
9
9
  import "./chunk-ZRBGH245.js";
10
- import "./chunk-Q6MD47RH.js";
10
+ import "./chunk-IRSNREEO.js";
11
11
  import "./chunk-PSXIVQ3N.js";
12
12
  import "./chunk-5ULLIOVC.js";
13
- import "./chunk-XBCOYS22.js";
13
+ import "./chunk-SVWIUNOA.js";
14
14
  import "./chunk-IW3Q7AE5.js";
15
15
  export {
16
16
  CI_COMMENT_MARKER,
@@ -6,8 +6,8 @@ import {
6
6
  formatCiResult,
7
7
  formatCiSarif,
8
8
  normalizeCiThresholds
9
- } from "./chunk-OI247DUJ.js";
10
- import "./chunk-XBCOYS22.js";
9
+ } from "./chunk-SMIQ6CBX.js";
10
+ import "./chunk-SVWIUNOA.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-XBCOYS22.js";
41
+ } from "./chunk-SVWIUNOA.js";
42
42
  export {
43
43
  AGENTIC_BEHAVIOR_GUIDELINE,
44
44
  APP_NAME,
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  formatDoctorReport,
4
4
  runDoctorCli
5
- } from "./chunk-SCLXRJKE.js";
5
+ } from "./chunk-3WKUKMBG.js";
6
6
  import "./chunk-ZRBGH245.js";
7
- import "./chunk-Q6MD47RH.js";
8
- import "./chunk-KGJCRE6U.js";
7
+ import "./chunk-IRSNREEO.js";
8
+ import "./chunk-FOC2YWOF.js";
9
9
  import "./chunk-PSXIVQ3N.js";
10
10
  import "./chunk-5ULLIOVC.js";
11
11
  import "./chunk-HOSJZMQS.js";
12
- import "./chunk-XBCOYS22.js";
12
+ import "./chunk-SVWIUNOA.js";
13
13
  import "./chunk-IW3Q7AE5.js";
14
14
  export {
15
15
  formatDoctorReport,
@@ -34,14 +34,14 @@ import {
34
34
  touchMemoryReferences,
35
35
  updateMemoryApproval,
36
36
  updateMemoryEntry
37
- } from "./chunk-QXIKCU5R.js";
37
+ } from "./chunk-YJ7VL7VL.js";
38
38
  import {
39
39
  redactJson,
40
40
  scanString
41
41
  } from "./chunk-YVTASHS5.js";
42
42
  import {
43
43
  runTestsTool
44
- } from "./chunk-TUPLHKYE.js";
44
+ } from "./chunk-B42HK6GL.js";
45
45
  import {
46
46
  AGENTIC_BEHAVIOR_GUIDELINE,
47
47
  APP_NAME,
@@ -73,7 +73,7 @@ import {
73
73
  SUBAGENT_MAX_ROUNDS_LIMIT,
74
74
  VERSION,
75
75
  buildUserIdentityPrompt
76
- } from "./chunk-5CCIFT5B.js";
76
+ } from "./chunk-CU5ZNAIX.js";
77
77
  import {
78
78
  hasSemanticIndex,
79
79
  semanticSearch
@@ -4997,6 +4997,16 @@ function startEvictionTimer() {
4997
4997
  }
4998
4998
  }, 6e4).unref();
4999
4999
  }
5000
+ function buildWrappedCommand(command, id, isWindows) {
5001
+ const markerStart = `AICLI_MARKER_START:${id}`;
5002
+ const markerEnd = `AICLI_MARKER_END:${id}`;
5003
+ if (!isWindows) {
5004
+ return `echo "${markerStart}"; ${command}; echo "${markerEnd}:$?"`;
5005
+ }
5006
+ const inner = `${WIN_UTF8_PREAMBLE} Write-Output "${markerStart}"; ${command}; $__ok = $?; $__ec = $LASTEXITCODE; $__code = if ($__ok) { 0 } elseif ($null -ne $__ec -and $__ec -ne 0) { $__ec } else { 1 }; Write-Output "${markerEnd}:$__code"`;
5007
+ const b64 = Buffer.from(inner, "utf-8").toString("base64");
5008
+ return `Invoke-Expression ([System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String('${b64}')))`;
5009
+ }
5000
5010
  async function execInPool(sessionKey, command, timeout, cwd, abortSignal) {
5001
5011
  let entry = pool.get(sessionKey);
5002
5012
  if (!entry || entry.proc.exitCode !== null || entry.cwd !== cwd) {
@@ -5013,9 +5023,7 @@ async function execInPool(sessionKey, command, timeout, cwd, abortSignal) {
5013
5023
  entry.lastUsed = Date.now();
5014
5024
  startEvictionTimer();
5015
5025
  const id = `${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)}`;
5016
- const markerStart = `AICLI_MARKER_START:${id}`;
5017
- const markerEnd = `AICLI_MARKER_END:${id}`;
5018
- const wrappedCmd = IS_WINDOWS2 ? `${WIN_UTF8_PREAMBLE} echo "${markerStart}"; ${command}; echo "${markerEnd}:0"` : `echo "${markerStart}"; ${command}; echo "${markerEnd}:$?"`;
5026
+ const wrappedCmd = buildWrappedCommand(command, id, IS_WINDOWS2);
5019
5027
  return new Promise((resolve11) => {
5020
5028
  let stdout = "";
5021
5029
  let stderr = "";
@@ -15205,7 +15213,7 @@ Cache: write=${cacheCreate} read=${cacheRead}` : "";
15205
15213
  Cost: ${formatCost(cost)}` : "";
15206
15214
  let memoryLine = "";
15207
15215
  try {
15208
- const { countPendingMemories } = await import("./persistent-memory-LKWQ777N.js");
15216
+ const { countPendingMemories } = await import("./persistent-memory-EEAGHDFR.js");
15209
15217
  const pending = countPendingMemories(ctx.config.getConfigDir());
15210
15218
  if (pending > 0) memoryLine = `
15211
15219
  Memory: \u26A0 ${pending} pending approval \u2014 see the Memory panel or /memory`;
@@ -16014,7 +16022,7 @@ async function handleSecurityReview(args, ctx) {
16014
16022
  async function handleTest(args, ctx) {
16015
16023
  ctx.send({ type: "info", message: "\u{1F9EA} Running tests..." });
16016
16024
  try {
16017
- const { executeTests } = await import("./run-tests-DAOPTU2O.js");
16025
+ const { executeTests } = await import("./run-tests-N3ES4YMU.js");
16018
16026
  const argStr = args.join(" ").trim();
16019
16027
  let testArgs = {};
16020
16028
  if (argStr) {
@@ -16278,7 +16286,7 @@ async function handleMemory(args, ctx) {
16278
16286
  ctx.handleMemoryManage(sub, args[1], sub === "expire" ? args[2] : void 0);
16279
16287
  } else if (sub === "export") {
16280
16288
  if (args[1] === "md") {
16281
- const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-LKWQ777N.js");
16289
+ const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-EEAGHDFR.js");
16282
16290
  ctx.send({
16283
16291
  type: "export_data",
16284
16292
  format: "md",
@@ -154,7 +154,7 @@ ${content}`);
154
154
  }
155
155
  }
156
156
  async function runTaskMode(config, providers, configManager, topic) {
157
- const { TaskOrchestrator } = await import("./task-orchestrator-OH5S26KX.js");
157
+ const { TaskOrchestrator } = await import("./task-orchestrator-KLCN25OY.js");
158
158
  const orchestrator = new TaskOrchestrator(config, providers, configManager);
159
159
  let interrupted = false;
160
160
  const onSigint = () => {
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  scanProject,
18
18
  sessionHasMeaningfulContent,
19
19
  setupProxy
20
- } from "./chunk-TF5XR7NI.js";
20
+ } from "./chunk-2UZ23L5P.js";
21
21
  import {
22
22
  computeCost,
23
23
  formatCost,
@@ -50,7 +50,7 @@ import {
50
50
  spawnAgentContext,
51
51
  theme,
52
52
  undoStack
53
- } from "./chunk-VCY6NH43.js";
53
+ } from "./chunk-PSP4W2MG.js";
54
54
  import {
55
55
  addMemoryEntry,
56
56
  backupMemoryStore,
@@ -76,7 +76,7 @@ import {
76
76
  touchMemoryReferences,
77
77
  updateMemoryApproval,
78
78
  updateMemoryEntry
79
- } from "./chunk-6OEZMFMM.js";
79
+ } from "./chunk-X2V76VPG.js";
80
80
  import "./chunk-GLSR2NR3.js";
81
81
  import "./chunk-UUSRWSSX.js";
82
82
  import "./chunk-CKH4KQ4E.js";
@@ -90,13 +90,13 @@ import {
90
90
  formatDoctorReport,
91
91
  loadContextFiles,
92
92
  writeCrashLog
93
- } from "./chunk-SCLXRJKE.js";
93
+ } from "./chunk-3WKUKMBG.js";
94
94
  import {
95
95
  ProviderRegistry
96
96
  } from "./chunk-ZRBGH245.js";
97
97
  import {
98
98
  ConfigManager
99
- } from "./chunk-Q6MD47RH.js";
99
+ } from "./chunk-IRSNREEO.js";
100
100
  import {
101
101
  describePlugin,
102
102
  getActivePluginAssets,
@@ -113,7 +113,7 @@ import {
113
113
  trustHook,
114
114
  trustPlugin,
115
115
  untrustHook
116
- } from "./chunk-KGJCRE6U.js";
116
+ } from "./chunk-FOC2YWOF.js";
117
117
  import {
118
118
  CONTENT_ONLY_STREAM_REMINDER,
119
119
  TEE_FINAL_USER_NUDGE,
@@ -146,7 +146,7 @@ import {
146
146
  import {
147
147
  fileCheckpoints
148
148
  } from "./chunk-4BKXL7SM.js";
149
- import "./chunk-MBOEMIH2.js";
149
+ import "./chunk-U6OV523Y.js";
150
150
  import {
151
151
  AGENTIC_BEHAVIOR_GUIDELINE,
152
152
  AUTHOR,
@@ -165,7 +165,7 @@ import {
165
165
  SKILLS_DIR_NAME,
166
166
  VERSION,
167
167
  buildUserIdentityPrompt
168
- } from "./chunk-XBCOYS22.js";
168
+ } from "./chunk-SVWIUNOA.js";
169
169
  import {
170
170
  buildChatIndex,
171
171
  clearChatIndex,
@@ -1387,7 +1387,7 @@ No tools match "${filter}".
1387
1387
  const { join: join6 } = await import("path");
1388
1388
  const { existsSync: existsSync6 } = await import("fs");
1389
1389
  const { getGitRoot: getGitRoot2 } = await import("./git-context-EXOEHQSF.js");
1390
- const { MCP_PROJECT_CONFIG_NAME: MCP_PROJECT_CONFIG_NAME2 } = await import("./constants-ASRW3Y6O.js");
1390
+ const { MCP_PROJECT_CONFIG_NAME: MCP_PROJECT_CONFIG_NAME2 } = await import("./constants-LJRYL7IN.js");
1391
1391
  const { approveProject, hashMcpFile } = await import("./project-trust-NKYHL3VZ.js");
1392
1392
  const cwd = process.cwd();
1393
1393
  const projectRoot = getGitRoot2(cwd) ?? cwd;
@@ -2366,7 +2366,7 @@ function createReviewCommands() {
2366
2366
  usage: "/test [command|filter]",
2367
2367
  async execute(args, ctx) {
2368
2368
  try {
2369
- const { executeTests } = await import("./run-tests-CMCXT3ZW.js");
2369
+ const { executeTests } = await import("./run-tests-ADZQ2JWI.js");
2370
2370
  const argStr = args.join(" ").trim();
2371
2371
  let testArgs = {};
2372
2372
  if (argStr) {
@@ -8017,7 +8017,7 @@ program.command("web").description("Start Web UI server with browser-based chat
8017
8017
  console.error("Error: Invalid port number. Must be between 1 and 65535.");
8018
8018
  process.exit(1);
8019
8019
  }
8020
- const { startWebServer } = await import("./server-ADRQ3MFV.js");
8020
+ const { startWebServer } = await import("./server-PMEZ3HDO.js");
8021
8021
  await startWebServer({ port, host: options.host });
8022
8022
  });
8023
8023
  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) => {
@@ -8184,11 +8184,11 @@ program.command("sessions").description("List recent conversation sessions").opt
8184
8184
  console.log(footer + "\n");
8185
8185
  });
8186
8186
  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) => {
8187
- const { runUsageCli } = await import("./usage-MKPF3XFL.js");
8187
+ const { runUsageCli } = await import("./usage-MNMRX5OE.js");
8188
8188
  await runUsageCli(options);
8189
8189
  });
8190
8190
  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) => {
8191
- const { runDoctorCli } = await import("./doctor-cli-CKJ7NEKC.js");
8191
+ const { runDoctorCli } = await import("./doctor-cli-GOM2GQUK.js");
8192
8192
  const argv = process.argv.slice(2);
8193
8193
  await runDoctorCli({
8194
8194
  json: !!options.json || argv.includes("--json"),
@@ -8197,7 +8197,7 @@ program.command("doctor").description("Health check: API keys, config, MCP, rece
8197
8197
  });
8198
8198
  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) => {
8199
8199
  try {
8200
- const batch = await import("./batch-WRISEJGQ.js");
8200
+ const batch = await import("./batch-OWBKG6XZ.js");
8201
8201
  switch (action) {
8202
8202
  case "submit":
8203
8203
  if (!arg) {
@@ -8240,7 +8240,7 @@ program.command("batch <action> [arg] [arg2]").description("Anthropic Message Ba
8240
8240
  }
8241
8241
  });
8242
8242
  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) => {
8243
- const { startMcpServer } = await import("./server-4KFSPCPP.js");
8243
+ const { startMcpServer } = await import("./server-HUWVPJKQ.js");
8244
8244
  await startMcpServer({
8245
8245
  allowDestructive: !!options.allowDestructive,
8246
8246
  allowOutsideCwd: !!options.allowOutsideCwd,
@@ -8253,7 +8253,7 @@ program.command("pr <action> [target]").description("PR review helpers: review |
8253
8253
  console.error(`Unknown pr action: ${action}. Use review | security-review | summarize.`);
8254
8254
  process.exit(1);
8255
8255
  }
8256
- const { runPrCli } = await import("./pr-JM266VJT.js");
8256
+ const { runPrCli } = await import("./pr-Q74YHWN2.js");
8257
8257
  const result = await runPrCli({
8258
8258
  action,
8259
8259
  target,
@@ -8273,8 +8273,8 @@ program.command("pr <action> [target]").description("PR review helpers: review |
8273
8273
  process.exit(result.exitCode);
8274
8274
  });
8275
8275
  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) => {
8276
- const { runCi } = await import("./ci-JINX6RT6.js");
8277
- const { formatCiResult } = await import("./ci-format-ZQX57BPV.js");
8276
+ const { runCi } = await import("./ci-V5GVGYZO.js");
8277
+ const { formatCiResult } = await import("./ci-format-CTGDLJTS.js");
8278
8278
  const formats = [options.json, options.markdown, options.sarif].filter(Boolean).length;
8279
8279
  if (formats > 1) {
8280
8280
  console.error("Choose only one output format: --json, --markdown, or --sarif.");
@@ -8432,7 +8432,7 @@ program.command("hub [topic]").description("Start multi-agent hub (discuss / bra
8432
8432
  config.get("customProviders"),
8433
8433
  config.getConfigDir()
8434
8434
  );
8435
- const { startHub } = await import("./hub-LBPFXAXM.js");
8435
+ const { startHub } = await import("./hub-4EEDUJED.js");
8436
8436
  await startHub(
8437
8437
  {
8438
8438
  topic: topic ?? "",
@@ -28,9 +28,9 @@ import {
28
28
  touchMemoryReferences,
29
29
  updateMemoryApproval,
30
30
  updateMemoryEntry
31
- } from "./chunk-6OEZMFMM.js";
31
+ } from "./chunk-X2V76VPG.js";
32
32
  import "./chunk-HOSJZMQS.js";
33
- import "./chunk-XBCOYS22.js";
33
+ import "./chunk-SVWIUNOA.js";
34
34
  import "./chunk-B5TYJO7V.js";
35
35
  import "./chunk-IW3Q7AE5.js";
36
36
  export {
@@ -27,9 +27,9 @@ import {
27
27
  touchMemoryReferences,
28
28
  updateMemoryApproval,
29
29
  updateMemoryEntry
30
- } from "./chunk-QXIKCU5R.js";
30
+ } from "./chunk-YJ7VL7VL.js";
31
31
  import "./chunk-YVTASHS5.js";
32
- import "./chunk-5CCIFT5B.js";
32
+ import "./chunk-CU5ZNAIX.js";
33
33
  import "./chunk-6BUTA5VW.js";
34
34
  export {
35
35
  addMemoryEntry,
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  countSeverity,
4
4
  runCi
5
- } from "./chunk-EOZROPAY.js";
6
- import "./chunk-OI247DUJ.js";
5
+ } from "./chunk-7QWFFLKV.js";
6
+ import "./chunk-SMIQ6CBX.js";
7
7
  import {
8
8
  buildReviewPrompt,
9
9
  buildSecurityReviewPrompt,
@@ -14,12 +14,12 @@ import {
14
14
  } from "./chunk-ZRBGH245.js";
15
15
  import {
16
16
  ConfigManager
17
- } from "./chunk-Q6MD47RH.js";
17
+ } from "./chunk-IRSNREEO.js";
18
18
  import "./chunk-PSXIVQ3N.js";
19
19
  import "./chunk-5ULLIOVC.js";
20
20
  import {
21
21
  VERSION
22
- } from "./chunk-XBCOYS22.js";
22
+ } from "./chunk-SVWIUNOA.js";
23
23
  import "./chunk-IW3Q7AE5.js";
24
24
 
25
25
  // src/cli/pr.ts
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  executeTests,
4
4
  runTestsTool
5
- } from "./chunk-MBOEMIH2.js";
6
- import "./chunk-XBCOYS22.js";
5
+ } from "./chunk-U6OV523Y.js";
6
+ import "./chunk-SVWIUNOA.js";
7
7
  export {
8
8
  executeTests,
9
9
  runTestsTool
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  executeTests,
3
3
  runTestsTool
4
- } from "./chunk-TUPLHKYE.js";
5
- import "./chunk-5CCIFT5B.js";
4
+ } from "./chunk-B42HK6GL.js";
5
+ import "./chunk-CU5ZNAIX.js";
6
6
  export {
7
7
  executeTests,
8
8
  runTestsTool
@@ -1,15 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  ToolRegistry
4
- } from "./chunk-VCY6NH43.js";
5
- import "./chunk-6OEZMFMM.js";
4
+ } from "./chunk-PSP4W2MG.js";
5
+ import "./chunk-X2V76VPG.js";
6
6
  import "./chunk-GLSR2NR3.js";
7
7
  import "./chunk-UUSRWSSX.js";
8
8
  import "./chunk-CKH4KQ4E.js";
9
9
  import "./chunk-BXP6YZ2P.js";
10
10
  import {
11
11
  runTool
12
- } from "./chunk-KGJCRE6U.js";
12
+ } from "./chunk-FOC2YWOF.js";
13
13
  import {
14
14
  getDangerLevel,
15
15
  schemaToJsonSchema
@@ -17,10 +17,10 @@ import {
17
17
  import "./chunk-5ULLIOVC.js";
18
18
  import "./chunk-HOSJZMQS.js";
19
19
  import "./chunk-4BKXL7SM.js";
20
- import "./chunk-MBOEMIH2.js";
20
+ import "./chunk-U6OV523Y.js";
21
21
  import {
22
22
  VERSION
23
- } from "./chunk-XBCOYS22.js";
23
+ } from "./chunk-SVWIUNOA.js";
24
24
  import "./chunk-6RPGQ5CG.js";
25
25
  import "./chunk-KHYD3WXE.js";
26
26
  import "./chunk-NYNSYLFY.js";
@@ -23,7 +23,7 @@ import {
23
23
  scanDirTree,
24
24
  scanProject,
25
25
  setupProxy
26
- } from "./chunk-TF5XR7NI.js";
26
+ } from "./chunk-2UZ23L5P.js";
27
27
  import {
28
28
  computeCost,
29
29
  formatCost,
@@ -63,7 +63,7 @@ import {
63
63
  spawnAgentContext,
64
64
  truncateOutput,
65
65
  undoStack
66
- } from "./chunk-VCY6NH43.js";
66
+ } from "./chunk-PSP4W2MG.js";
67
67
  import {
68
68
  addMemoryEntry,
69
69
  clearMemoryEntries,
@@ -77,7 +77,7 @@ import {
77
77
  parseWritableScope,
78
78
  updateMemoryApproval,
79
79
  updateMemoryEntry
80
- } from "./chunk-6OEZMFMM.js";
80
+ } from "./chunk-X2V76VPG.js";
81
81
  import "./chunk-GLSR2NR3.js";
82
82
  import "./chunk-UUSRWSSX.js";
83
83
  import "./chunk-CKH4KQ4E.js";
@@ -90,13 +90,13 @@ import {
90
90
  buildDoctorReport,
91
91
  formatDoctorReport,
92
92
  loadContextFiles
93
- } from "./chunk-SCLXRJKE.js";
93
+ } from "./chunk-3WKUKMBG.js";
94
94
  import {
95
95
  ProviderRegistry
96
96
  } from "./chunk-ZRBGH245.js";
97
97
  import {
98
98
  ConfigManager
99
- } from "./chunk-Q6MD47RH.js";
99
+ } from "./chunk-IRSNREEO.js";
100
100
  import {
101
101
  describePlugin,
102
102
  getActivePluginAssets,
@@ -111,7 +111,7 @@ import {
111
111
  runTool,
112
112
  setPluginEnabled,
113
113
  trustPlugin
114
- } from "./chunk-KGJCRE6U.js";
114
+ } from "./chunk-FOC2YWOF.js";
115
115
  import {
116
116
  CONTENT_ONLY_STREAM_REMINDER,
117
117
  TEE_FINAL_USER_NUDGE,
@@ -136,7 +136,7 @@ import {
136
136
  getGitRoot
137
137
  } from "./chunk-HOSJZMQS.js";
138
138
  import "./chunk-4BKXL7SM.js";
139
- import "./chunk-MBOEMIH2.js";
139
+ import "./chunk-U6OV523Y.js";
140
140
  import {
141
141
  AGENTIC_BEHAVIOR_GUIDELINE,
142
142
  AUTHOR,
@@ -152,7 +152,7 @@ import {
152
152
  SKILLS_DIR_NAME,
153
153
  VERSION,
154
154
  buildUserIdentityPrompt
155
- } from "./chunk-XBCOYS22.js";
155
+ } from "./chunk-SVWIUNOA.js";
156
156
  import "./chunk-6RPGQ5CG.js";
157
157
  import "./chunk-KHYD3WXE.js";
158
158
  import "./chunk-NYNSYLFY.js";
@@ -813,7 +813,7 @@ Cache: write=${cacheCreate} read=${cacheRead}` : "";
813
813
  Cost: ${formatCost(cost)}` : "";
814
814
  let memoryLine = "";
815
815
  try {
816
- const { countPendingMemories } = await import("./persistent-memory-HJB6XTWD.js");
816
+ const { countPendingMemories } = await import("./persistent-memory-DMN76UB5.js");
817
817
  const pending = countPendingMemories(ctx.config.getConfigDir());
818
818
  if (pending > 0) memoryLine = `
819
819
  Memory: \u26A0 ${pending} pending approval \u2014 see the Memory panel or /memory`;
@@ -1622,7 +1622,7 @@ async function handleSecurityReview(args, ctx) {
1622
1622
  async function handleTest(args, ctx) {
1623
1623
  ctx.send({ type: "info", message: "\u{1F9EA} Running tests..." });
1624
1624
  try {
1625
- const { executeTests } = await import("./run-tests-CMCXT3ZW.js");
1625
+ const { executeTests } = await import("./run-tests-ADZQ2JWI.js");
1626
1626
  const argStr = args.join(" ").trim();
1627
1627
  let testArgs = {};
1628
1628
  if (argStr) {
@@ -1886,7 +1886,7 @@ async function handleMemory(args, ctx) {
1886
1886
  ctx.handleMemoryManage(sub, args[1], sub === "expire" ? args[2] : void 0);
1887
1887
  } else if (sub === "export") {
1888
1888
  if (args[1] === "md") {
1889
- const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-HJB6XTWD.js");
1889
+ const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-DMN76UB5.js");
1890
1890
  ctx.send({
1891
1891
  type: "export_data",
1892
1892
  format: "md",
@@ -3,15 +3,15 @@ import {
3
3
  ToolRegistry,
4
4
  googleSearchContext,
5
5
  truncateOutput
6
- } from "./chunk-VCY6NH43.js";
7
- import "./chunk-6OEZMFMM.js";
6
+ } from "./chunk-PSP4W2MG.js";
7
+ import "./chunk-X2V76VPG.js";
8
8
  import "./chunk-GLSR2NR3.js";
9
9
  import "./chunk-UUSRWSSX.js";
10
10
  import "./chunk-CKH4KQ4E.js";
11
11
  import "./chunk-BXP6YZ2P.js";
12
12
  import {
13
13
  runTool
14
- } from "./chunk-KGJCRE6U.js";
14
+ } from "./chunk-FOC2YWOF.js";
15
15
  import {
16
16
  getDangerLevel,
17
17
  runLeanAgentLoop
@@ -19,10 +19,10 @@ import {
19
19
  import "./chunk-5ULLIOVC.js";
20
20
  import "./chunk-HOSJZMQS.js";
21
21
  import "./chunk-4BKXL7SM.js";
22
- import "./chunk-MBOEMIH2.js";
22
+ import "./chunk-U6OV523Y.js";
23
23
  import {
24
24
  SUBAGENT_ALLOWED_TOOLS
25
- } from "./chunk-XBCOYS22.js";
25
+ } from "./chunk-SVWIUNOA.js";
26
26
  import "./chunk-6RPGQ5CG.js";
27
27
  import "./chunk-KHYD3WXE.js";
28
28
  import "./chunk-NYNSYLFY.js";
@@ -8,9 +8,9 @@ import {
8
8
  } from "./chunk-GUOLPI33.js";
9
9
  import {
10
10
  ConfigManager
11
- } from "./chunk-Q6MD47RH.js";
11
+ } from "./chunk-IRSNREEO.js";
12
12
  import "./chunk-5ULLIOVC.js";
13
- import "./chunk-XBCOYS22.js";
13
+ import "./chunk-SVWIUNOA.js";
14
14
  import "./chunk-IW3Q7AE5.js";
15
15
 
16
16
  // src/cli/usage.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jinzd-ai-cli",
3
- "version": "0.4.254",
3
+ "version": "0.4.255",
4
4
  "description": "Cross-platform REPL-style AI CLI with multi-provider support",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",