jinzd-ai-cli 0.4.263 → 0.4.264

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-AN47AYCZ.js → batch-Q22M55UP.js} +2 -2
  2. package/dist/{chunk-3RHY2HF7.js → chunk-4T4KHPRD.js} +1 -1
  3. package/dist/{chunk-GKI7B4BD.js → chunk-53SOOMYG.js} +4 -4
  4. package/dist/{chunk-B27MLWFJ.js → chunk-BMSBFK7J.js} +3 -3
  5. package/dist/{chunk-GMZTY7DA.js → chunk-DYONT23T.js} +3 -3
  6. package/dist/{chunk-WM4VTGAF.js → chunk-IAIUXBB5.js} +1 -1
  7. package/dist/{chunk-MTZ6XHJD.js → chunk-IEYR2BGG.js} +2 -2
  8. package/dist/{chunk-VKBGOFEO.js → chunk-JVUYKO4V.js} +1 -1
  9. package/dist/{chunk-VUZAKIZ5.js → chunk-K7HQLXXQ.js} +1 -1
  10. package/dist/{chunk-XST4N2JM.js → chunk-QCZFHQHY.js} +1 -1
  11. package/dist/{chunk-7YCA2BD3.js → chunk-TANTNIGP.js} +1 -1
  12. package/dist/{chunk-QMB7QYZC.js → chunk-U4XQIP7Z.js} +1 -1
  13. package/dist/{chunk-MJICIIBW.js → chunk-UGJIRJ4H.js} +1 -1
  14. package/dist/{chunk-5K2LFD7D.js → chunk-UQP2BNQT.js} +1 -1
  15. package/dist/{ci-JTO7LN5S.js → ci-RMEIHZJL.js} +4 -4
  16. package/dist/{ci-format-2VGHOLBA.js → ci-format-UCFSWVG5.js} +2 -2
  17. package/dist/{constants-HLSJL5HQ.js → constants-Z2R2BKUY.js} +1 -1
  18. package/dist/{doctor-cli-JML4FGH4.js → doctor-cli-64L7BBK7.js} +4 -4
  19. package/dist/electron-server.js +6 -6
  20. package/dist/{hub-6EYFGJRT.js → hub-P7D6VDCK.js} +1 -1
  21. package/dist/index.js +19 -19
  22. package/dist/{persistent-memory-MPBPSZDN.js → persistent-memory-CELKJM4U.js} +2 -2
  23. package/dist/{persistent-memory-ANIMO5CF.js → persistent-memory-QX6C2JAR.js} +2 -2
  24. package/dist/{pr-XE7NGT6U.js → pr-DJP53EZV.js} +4 -4
  25. package/dist/{run-tests-ME5KED57.js → run-tests-A2YM4U2U.js} +2 -2
  26. package/dist/{run-tests-TF7UPUWW.js → run-tests-CK44KRY3.js} +2 -2
  27. package/dist/{server-BIYJEJK3.js → server-GUV2HZ7N.js} +5 -5
  28. package/dist/{server-VKA4FR2Z.js → server-XYVL7A33.js} +11 -11
  29. package/dist/{task-orchestrator-2RAKLFWN.js → task-orchestrator-5RT5EH2J.js} +5 -5
  30. package/dist/{usage-5F5Q3GGR.js → usage-LGPJ4UAW.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-WM4VTGAF.js";
4
+ } from "./chunk-IAIUXBB5.js";
5
5
  import "./chunk-TU3L3PW7.js";
6
- import "./chunk-VKBGOFEO.js";
6
+ import "./chunk-JVUYKO4V.js";
7
7
  import {
8
8
  atomicWriteFileSync
9
9
  } from "./chunk-IW3Q7AE5.js";
@@ -1,5 +1,5 @@
1
1
  // src/core/constants.ts
2
- var VERSION = "0.4.263";
2
+ var VERSION = "0.4.264";
3
3
  var APP_NAME = "ai-cli";
4
4
  var CONFIG_DIR_NAME = ".aicli";
5
5
  var CONFIG_FILE_NAME = "config.json";
@@ -7,7 +7,7 @@ import {
7
7
  searchPersistentMemories,
8
8
  touchMemoryReferences,
9
9
  updateMemoryEntry
10
- } from "./chunk-VUZAKIZ5.js";
10
+ } from "./chunk-K7HQLXXQ.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-QMB7QYZC.js";
26
+ } from "./chunk-U4XQIP7Z.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-XST4N2JM.js";
43
+ } from "./chunk-QCZFHQHY.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-VKBGOFEO.js";
50
+ } from "./chunk-JVUYKO4V.js";
51
51
  import {
52
52
  loadChatIndex,
53
53
  searchChatMemory
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-TL5MD5XU.js";
5
5
  import {
6
6
  ConfigManager
7
- } from "./chunk-WM4VTGAF.js";
7
+ } from "./chunk-IAIUXBB5.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-QMB7QYZC.js";
17
+ } from "./chunk-U4XQIP7Z.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-VKBGOFEO.js";
29
+ } from "./chunk-JVUYKO4V.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-MJICIIBW.js";
5
+ } from "./chunk-UGJIRJ4H.js";
6
6
  import {
7
7
  buildReviewPrompt,
8
8
  buildSecurityReviewPrompt,
@@ -13,10 +13,10 @@ import {
13
13
  } from "./chunk-TL5MD5XU.js";
14
14
  import {
15
15
  ConfigManager
16
- } from "./chunk-WM4VTGAF.js";
16
+ } from "./chunk-IAIUXBB5.js";
17
17
  import {
18
18
  VERSION
19
- } from "./chunk-VKBGOFEO.js";
19
+ } from "./chunk-JVUYKO4V.js";
20
20
 
21
21
  // src/cli/ci.ts
22
22
  import { execFileSync } from "child_process";
@@ -8,7 +8,7 @@ import {
8
8
  CONFIG_FILE_NAME,
9
9
  HISTORY_DIR_NAME,
10
10
  PLUGINS_DIR_NAME
11
- } from "./chunk-VKBGOFEO.js";
11
+ } from "./chunk-JVUYKO4V.js";
12
12
  import {
13
13
  atomicWriteFileSync
14
14
  } from "./chunk-IW3Q7AE5.js";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  truncateForPersist
4
- } from "./chunk-GKI7B4BD.js";
4
+ } from "./chunk-53SOOMYG.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-VKBGOFEO.js";
14
+ } from "./chunk-JVUYKO4V.js";
15
15
  import {
16
16
  atomicWriteFileSync
17
17
  } from "./chunk-IW3Q7AE5.js";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/core/constants.ts
4
- var VERSION = "0.4.263";
4
+ var VERSION = "0.4.264";
5
5
  var APP_NAME = "ai-cli";
6
6
  var CONFIG_DIR_NAME = ".aicli";
7
7
  var CONFIG_FILE_NAME = "config.json";
@@ -6,7 +6,7 @@ import {
6
6
  MEMORY_FILE_NAME,
7
7
  MEMORY_MAX_CHARS,
8
8
  MEMORY_STORE_FILE_NAME
9
- } from "./chunk-VKBGOFEO.js";
9
+ } from "./chunk-JVUYKO4V.js";
10
10
  import {
11
11
  DEFAULT_PATTERNS,
12
12
  redactString
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  TEST_TIMEOUT
4
- } from "./chunk-VKBGOFEO.js";
4
+ } from "./chunk-JVUYKO4V.js";
5
5
 
6
6
  // src/tools/builtin/run-tests.ts
7
7
  import { execSync, spawnSync } from "child_process";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TEST_TIMEOUT
3
- } from "./chunk-3RHY2HF7.js";
3
+ } from "./chunk-4T4KHPRD.js";
4
4
 
5
5
  // src/tools/builtin/run-tests.ts
6
6
  import { execSync, spawnSync } from "child_process";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  CONFIG_DIR_NAME,
4
4
  PLUGINS_DIR_NAME
5
- } from "./chunk-VKBGOFEO.js";
5
+ } from "./chunk-JVUYKO4V.js";
6
6
  import {
7
7
  atomicWriteFileSync
8
8
  } from "./chunk-IW3Q7AE5.js";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  VERSION
4
- } from "./chunk-VKBGOFEO.js";
4
+ } from "./chunk-JVUYKO4V.js";
5
5
 
6
6
  // src/cli/ci-format.ts
7
7
  var DEFAULT_CI_THRESHOLDS = {
@@ -6,7 +6,7 @@ import {
6
6
  MEMORY_FILE_NAME,
7
7
  MEMORY_MAX_CHARS,
8
8
  MEMORY_STORE_FILE_NAME
9
- } from "./chunk-3RHY2HF7.js";
9
+ } from "./chunk-4T4KHPRD.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-GMZTY7DA.js";
7
- import "./chunk-MJICIIBW.js";
6
+ } from "./chunk-DYONT23T.js";
7
+ import "./chunk-UGJIRJ4H.js";
8
8
  import "./chunk-HLWUDRBO.js";
9
9
  import "./chunk-TL5MD5XU.js";
10
- import "./chunk-WM4VTGAF.js";
10
+ import "./chunk-IAIUXBB5.js";
11
11
  import "./chunk-3OBY7WSS.js";
12
12
  import "./chunk-TU3L3PW7.js";
13
- import "./chunk-VKBGOFEO.js";
13
+ import "./chunk-JVUYKO4V.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-MJICIIBW.js";
10
- import "./chunk-VKBGOFEO.js";
9
+ } from "./chunk-UGJIRJ4H.js";
10
+ import "./chunk-JVUYKO4V.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-VKBGOFEO.js";
41
+ } from "./chunk-JVUYKO4V.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-B27MLWFJ.js";
5
+ } from "./chunk-BMSBFK7J.js";
6
6
  import "./chunk-TL5MD5XU.js";
7
- import "./chunk-WM4VTGAF.js";
8
- import "./chunk-QMB7QYZC.js";
7
+ import "./chunk-IAIUXBB5.js";
8
+ import "./chunk-U4XQIP7Z.js";
9
9
  import "./chunk-3OBY7WSS.js";
10
10
  import "./chunk-TU3L3PW7.js";
11
11
  import "./chunk-HOSJZMQS.js";
12
- import "./chunk-VKBGOFEO.js";
12
+ import "./chunk-JVUYKO4V.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-5K2LFD7D.js";
37
+ } from "./chunk-UQP2BNQT.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-7YCA2BD3.js";
44
+ } from "./chunk-TANTNIGP.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-3RHY2HF7.js";
76
+ } from "./chunk-4T4KHPRD.js";
77
77
  import {
78
78
  hasSemanticIndex,
79
79
  semanticSearch
@@ -15434,7 +15434,7 @@ Cache: write=${cacheCreate} read=${cacheRead}` : "";
15434
15434
  Cost: ${formatCost(cost)}` : "";
15435
15435
  let memoryLine = "";
15436
15436
  try {
15437
- const { countPendingMemories } = await import("./persistent-memory-ANIMO5CF.js");
15437
+ const { countPendingMemories } = await import("./persistent-memory-QX6C2JAR.js");
15438
15438
  const pending = countPendingMemories(ctx.config.getConfigDir());
15439
15439
  if (pending > 0) memoryLine = `
15440
15440
  Memory: \u26A0 ${pending} pending approval \u2014 see the Memory panel or /memory`;
@@ -16249,7 +16249,7 @@ async function handleTest(args, ctx) {
16249
16249
  const isCommand = argStr.includes(" ") || /^(mvn|gradle|npm|pytest|cargo|go)\b/.test(argStr);
16250
16250
  testArgs = isCommand ? { command: argStr } : { filter: argStr };
16251
16251
  }
16252
- const runTests = ctx.runTests ?? (await import("./run-tests-TF7UPUWW.js")).executeTests;
16252
+ const runTests = ctx.runTests ?? (await import("./run-tests-CK44KRY3.js")).executeTests;
16253
16253
  const report = await runTests(testArgs);
16254
16254
  ctx.send({ type: "info", message: report });
16255
16255
  } catch (err) {
@@ -16507,7 +16507,7 @@ async function handleMemory(args, ctx) {
16507
16507
  ctx.handleMemoryManage(sub, args[1], sub === "expire" ? args[2] : void 0);
16508
16508
  } else if (sub === "export") {
16509
16509
  if (args[1] === "md") {
16510
- const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-ANIMO5CF.js");
16510
+ const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-QX6C2JAR.js");
16511
16511
  ctx.send({
16512
16512
  type: "export_data",
16513
16513
  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-2RAKLFWN.js");
157
+ const { TaskOrchestrator } = await import("./task-orchestrator-5RT5EH2J.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-MTZ6XHJD.js";
20
+ } from "./chunk-IEYR2BGG.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-GKI7B4BD.js";
53
+ } from "./chunk-53SOOMYG.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-VUZAKIZ5.js";
79
+ } from "./chunk-K7HQLXXQ.js";
80
80
  import "./chunk-GLSR2NR3.js";
81
81
  import "./chunk-UUSRWSSX.js";
82
82
  import "./chunk-CKH4KQ4E.js";
@@ -90,14 +90,14 @@ import {
90
90
  formatDoctorReport,
91
91
  loadContextFiles,
92
92
  writeCrashLog
93
- } from "./chunk-B27MLWFJ.js";
93
+ } from "./chunk-BMSBFK7J.js";
94
94
  import {
95
95
  ProviderRegistry,
96
96
  listBuiltInProviderMetadata
97
97
  } from "./chunk-TL5MD5XU.js";
98
98
  import {
99
99
  ConfigManager
100
- } from "./chunk-WM4VTGAF.js";
100
+ } from "./chunk-IAIUXBB5.js";
101
101
  import {
102
102
  describePlugin,
103
103
  getActivePluginAssets,
@@ -114,7 +114,7 @@ import {
114
114
  trustHook,
115
115
  trustPlugin,
116
116
  untrustHook
117
- } from "./chunk-QMB7QYZC.js";
117
+ } from "./chunk-U4XQIP7Z.js";
118
118
  import {
119
119
  CONTENT_ONLY_STREAM_REMINDER,
120
120
  TEE_FINAL_USER_NUDGE,
@@ -148,7 +148,7 @@ import {
148
148
  import {
149
149
  fileCheckpoints
150
150
  } from "./chunk-4BKXL7SM.js";
151
- import "./chunk-XST4N2JM.js";
151
+ import "./chunk-QCZFHQHY.js";
152
152
  import {
153
153
  AGENTIC_BEHAVIOR_GUIDELINE,
154
154
  AUTHOR,
@@ -167,7 +167,7 @@ import {
167
167
  SKILLS_DIR_NAME,
168
168
  VERSION,
169
169
  buildUserIdentityPrompt
170
- } from "./chunk-VKBGOFEO.js";
170
+ } from "./chunk-JVUYKO4V.js";
171
171
  import {
172
172
  buildChatIndex,
173
173
  clearChatIndex,
@@ -1407,7 +1407,7 @@ No tools match "${filter}".
1407
1407
  const { join: join6 } = await import("path");
1408
1408
  const { existsSync: existsSync6 } = await import("fs");
1409
1409
  const { getGitRoot: getGitRoot2 } = await import("./git-context-EXOEHQSF.js");
1410
- const { MCP_PROJECT_CONFIG_NAME: MCP_PROJECT_CONFIG_NAME2 } = await import("./constants-HLSJL5HQ.js");
1410
+ const { MCP_PROJECT_CONFIG_NAME: MCP_PROJECT_CONFIG_NAME2 } = await import("./constants-Z2R2BKUY.js");
1411
1411
  const { approveProject, hashMcpFile } = await import("./project-trust-NKYHL3VZ.js");
1412
1412
  const cwd = process.cwd();
1413
1413
  const projectRoot = getGitRoot2(cwd) ?? cwd;
@@ -2395,7 +2395,7 @@ function createReviewCommands() {
2395
2395
  usage: "/test [command|filter]",
2396
2396
  async execute(args, ctx) {
2397
2397
  try {
2398
- const { executeTests } = await import("./run-tests-ME5KED57.js");
2398
+ const { executeTests } = await import("./run-tests-A2YM4U2U.js");
2399
2399
  const argStr = args.join(" ").trim();
2400
2400
  let testArgs = {};
2401
2401
  if (argStr) {
@@ -8162,7 +8162,7 @@ program.command("web").description("Start Web UI server with browser-based chat
8162
8162
  console.error("Error: Invalid port number. Must be between 1 and 65535.");
8163
8163
  process.exit(1);
8164
8164
  }
8165
- const { startWebServer } = await import("./server-VKA4FR2Z.js");
8165
+ const { startWebServer } = await import("./server-XYVL7A33.js");
8166
8166
  await startWebServer({ port, host: options.host });
8167
8167
  });
8168
8168
  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) => {
@@ -8329,11 +8329,11 @@ program.command("sessions").description("List recent conversation sessions").opt
8329
8329
  console.log(footer + "\n");
8330
8330
  });
8331
8331
  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) => {
8332
- const { runUsageCli } = await import("./usage-5F5Q3GGR.js");
8332
+ const { runUsageCli } = await import("./usage-LGPJ4UAW.js");
8333
8333
  await runUsageCli(options);
8334
8334
  });
8335
8335
  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) => {
8336
- const { runDoctorCli } = await import("./doctor-cli-JML4FGH4.js");
8336
+ const { runDoctorCli } = await import("./doctor-cli-64L7BBK7.js");
8337
8337
  const argv = process.argv.slice(2);
8338
8338
  await runDoctorCli({
8339
8339
  json: !!options.json || argv.includes("--json"),
@@ -8342,7 +8342,7 @@ program.command("doctor").description("Health check: API keys, config, MCP, rece
8342
8342
  });
8343
8343
  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) => {
8344
8344
  try {
8345
- const batch = await import("./batch-AN47AYCZ.js");
8345
+ const batch = await import("./batch-Q22M55UP.js");
8346
8346
  switch (action) {
8347
8347
  case "submit":
8348
8348
  if (!arg) {
@@ -8385,7 +8385,7 @@ program.command("batch <action> [arg] [arg2]").description("Anthropic Message Ba
8385
8385
  }
8386
8386
  });
8387
8387
  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) => {
8388
- const { startMcpServer } = await import("./server-BIYJEJK3.js");
8388
+ const { startMcpServer } = await import("./server-GUV2HZ7N.js");
8389
8389
  await startMcpServer({
8390
8390
  allowDestructive: !!options.allowDestructive,
8391
8391
  allowOutsideCwd: !!options.allowOutsideCwd,
@@ -8398,7 +8398,7 @@ program.command("pr <action> [target]").description("PR review helpers: review |
8398
8398
  console.error(`Unknown pr action: ${action}. Use review | security-review | summarize.`);
8399
8399
  process.exit(1);
8400
8400
  }
8401
- const { runPrCli } = await import("./pr-XE7NGT6U.js");
8401
+ const { runPrCli } = await import("./pr-DJP53EZV.js");
8402
8402
  const result = await runPrCli({
8403
8403
  action,
8404
8404
  target,
@@ -8418,8 +8418,8 @@ program.command("pr <action> [target]").description("PR review helpers: review |
8418
8418
  process.exit(result.exitCode);
8419
8419
  });
8420
8420
  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) => {
8421
- const { runCi } = await import("./ci-JTO7LN5S.js");
8422
- const { formatCiResult } = await import("./ci-format-2VGHOLBA.js");
8421
+ const { runCi } = await import("./ci-RMEIHZJL.js");
8422
+ const { formatCiResult } = await import("./ci-format-UCFSWVG5.js");
8423
8423
  const formats = [options.json, options.markdown, options.sarif].filter(Boolean).length;
8424
8424
  if (formats > 1) {
8425
8425
  console.error("Choose only one output format: --json, --markdown, or --sarif.");
@@ -8577,7 +8577,7 @@ program.command("hub [topic]").description("Start multi-agent hub (discuss / bra
8577
8577
  config.get("customProviders"),
8578
8578
  config.getConfigDir()
8579
8579
  );
8580
- const { startHub } = await import("./hub-6EYFGJRT.js");
8580
+ const { startHub } = await import("./hub-P7D6VDCK.js");
8581
8581
  await startHub(
8582
8582
  {
8583
8583
  topic: topic ?? "",
@@ -28,9 +28,9 @@ import {
28
28
  touchMemoryReferences,
29
29
  updateMemoryApproval,
30
30
  updateMemoryEntry
31
- } from "./chunk-VUZAKIZ5.js";
31
+ } from "./chunk-K7HQLXXQ.js";
32
32
  import "./chunk-HOSJZMQS.js";
33
- import "./chunk-VKBGOFEO.js";
33
+ import "./chunk-JVUYKO4V.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-5K2LFD7D.js";
30
+ } from "./chunk-UQP2BNQT.js";
31
31
  import "./chunk-YVTASHS5.js";
32
- import "./chunk-3RHY2HF7.js";
32
+ import "./chunk-4T4KHPRD.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-GMZTY7DA.js";
6
- import "./chunk-MJICIIBW.js";
5
+ } from "./chunk-DYONT23T.js";
6
+ import "./chunk-UGJIRJ4H.js";
7
7
  import {
8
8
  buildReviewPrompt,
9
9
  buildSecurityReviewPrompt,
@@ -14,12 +14,12 @@ import {
14
14
  } from "./chunk-TL5MD5XU.js";
15
15
  import {
16
16
  ConfigManager
17
- } from "./chunk-WM4VTGAF.js";
17
+ } from "./chunk-IAIUXBB5.js";
18
18
  import "./chunk-3OBY7WSS.js";
19
19
  import "./chunk-TU3L3PW7.js";
20
20
  import {
21
21
  VERSION
22
- } from "./chunk-VKBGOFEO.js";
22
+ } from "./chunk-JVUYKO4V.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-XST4N2JM.js";
6
- import "./chunk-VKBGOFEO.js";
5
+ } from "./chunk-QCZFHQHY.js";
6
+ import "./chunk-JVUYKO4V.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-7YCA2BD3.js";
5
- import "./chunk-3RHY2HF7.js";
4
+ } from "./chunk-TANTNIGP.js";
5
+ import "./chunk-4T4KHPRD.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-GKI7B4BD.js";
5
- import "./chunk-VUZAKIZ5.js";
4
+ } from "./chunk-53SOOMYG.js";
5
+ import "./chunk-K7HQLXXQ.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-QMB7QYZC.js";
12
+ } from "./chunk-U4XQIP7Z.js";
13
13
  import {
14
14
  getDangerLevel,
15
15
  schemaToJsonSchema
@@ -17,10 +17,10 @@ import {
17
17
  import "./chunk-TU3L3PW7.js";
18
18
  import "./chunk-HOSJZMQS.js";
19
19
  import "./chunk-4BKXL7SM.js";
20
- import "./chunk-XST4N2JM.js";
20
+ import "./chunk-QCZFHQHY.js";
21
21
  import {
22
22
  VERSION
23
- } from "./chunk-VKBGOFEO.js";
23
+ } from "./chunk-JVUYKO4V.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-MTZ6XHJD.js";
26
+ } from "./chunk-IEYR2BGG.js";
27
27
  import {
28
28
  computeCost,
29
29
  formatCost,
@@ -64,7 +64,7 @@ import {
64
64
  spawnAgentContext,
65
65
  truncateOutput,
66
66
  undoStack
67
- } from "./chunk-GKI7B4BD.js";
67
+ } from "./chunk-53SOOMYG.js";
68
68
  import {
69
69
  addMemoryEntry,
70
70
  clearMemoryEntries,
@@ -78,7 +78,7 @@ import {
78
78
  parseWritableScope,
79
79
  updateMemoryApproval,
80
80
  updateMemoryEntry
81
- } from "./chunk-VUZAKIZ5.js";
81
+ } from "./chunk-K7HQLXXQ.js";
82
82
  import "./chunk-GLSR2NR3.js";
83
83
  import "./chunk-UUSRWSSX.js";
84
84
  import "./chunk-CKH4KQ4E.js";
@@ -91,13 +91,13 @@ import {
91
91
  buildDoctorReport,
92
92
  formatDoctorReport,
93
93
  loadContextFiles
94
- } from "./chunk-B27MLWFJ.js";
94
+ } from "./chunk-BMSBFK7J.js";
95
95
  import {
96
96
  ProviderRegistry
97
97
  } from "./chunk-TL5MD5XU.js";
98
98
  import {
99
99
  ConfigManager
100
- } from "./chunk-WM4VTGAF.js";
100
+ } from "./chunk-IAIUXBB5.js";
101
101
  import {
102
102
  describePlugin,
103
103
  getActivePluginAssets,
@@ -112,7 +112,7 @@ import {
112
112
  runTool,
113
113
  setPluginEnabled,
114
114
  trustPlugin
115
- } from "./chunk-QMB7QYZC.js";
115
+ } from "./chunk-U4XQIP7Z.js";
116
116
  import {
117
117
  CONTENT_ONLY_STREAM_REMINDER,
118
118
  TEE_FINAL_USER_NUDGE,
@@ -137,7 +137,7 @@ import {
137
137
  getGitRoot
138
138
  } from "./chunk-HOSJZMQS.js";
139
139
  import "./chunk-4BKXL7SM.js";
140
- import "./chunk-XST4N2JM.js";
140
+ import "./chunk-QCZFHQHY.js";
141
141
  import {
142
142
  AGENTIC_BEHAVIOR_GUIDELINE,
143
143
  AUTHOR,
@@ -153,7 +153,7 @@ import {
153
153
  SKILLS_DIR_NAME,
154
154
  VERSION,
155
155
  buildUserIdentityPrompt
156
- } from "./chunk-VKBGOFEO.js";
156
+ } from "./chunk-JVUYKO4V.js";
157
157
  import "./chunk-6RPGQ5CG.js";
158
158
  import "./chunk-KHYD3WXE.js";
159
159
  import "./chunk-NYNSYLFY.js";
@@ -828,7 +828,7 @@ Cache: write=${cacheCreate} read=${cacheRead}` : "";
828
828
  Cost: ${formatCost(cost)}` : "";
829
829
  let memoryLine = "";
830
830
  try {
831
- const { countPendingMemories } = await import("./persistent-memory-MPBPSZDN.js");
831
+ const { countPendingMemories } = await import("./persistent-memory-CELKJM4U.js");
832
832
  const pending = countPendingMemories(ctx.config.getConfigDir());
833
833
  if (pending > 0) memoryLine = `
834
834
  Memory: \u26A0 ${pending} pending approval \u2014 see the Memory panel or /memory`;
@@ -1643,7 +1643,7 @@ async function handleTest(args, ctx) {
1643
1643
  const isCommand = argStr.includes(" ") || /^(mvn|gradle|npm|pytest|cargo|go)\b/.test(argStr);
1644
1644
  testArgs = isCommand ? { command: argStr } : { filter: argStr };
1645
1645
  }
1646
- const runTests = ctx.runTests ?? (await import("./run-tests-ME5KED57.js")).executeTests;
1646
+ const runTests = ctx.runTests ?? (await import("./run-tests-A2YM4U2U.js")).executeTests;
1647
1647
  const report = await runTests(testArgs);
1648
1648
  ctx.send({ type: "info", message: report });
1649
1649
  } catch (err) {
@@ -1901,7 +1901,7 @@ async function handleMemory(args, ctx) {
1901
1901
  ctx.handleMemoryManage(sub, args[1], sub === "expire" ? args[2] : void 0);
1902
1902
  } else if (sub === "export") {
1903
1903
  if (args[1] === "md") {
1904
- const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-MPBPSZDN.js");
1904
+ const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-CELKJM4U.js");
1905
1905
  ctx.send({
1906
1906
  type: "export_data",
1907
1907
  format: "md",
@@ -3,15 +3,15 @@ import {
3
3
  ToolRegistry,
4
4
  googleSearchContext,
5
5
  truncateOutput
6
- } from "./chunk-GKI7B4BD.js";
7
- import "./chunk-VUZAKIZ5.js";
6
+ } from "./chunk-53SOOMYG.js";
7
+ import "./chunk-K7HQLXXQ.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-QMB7QYZC.js";
14
+ } from "./chunk-U4XQIP7Z.js";
15
15
  import {
16
16
  getDangerLevel,
17
17
  runLeanAgentLoop
@@ -19,10 +19,10 @@ import {
19
19
  import "./chunk-TU3L3PW7.js";
20
20
  import "./chunk-HOSJZMQS.js";
21
21
  import "./chunk-4BKXL7SM.js";
22
- import "./chunk-XST4N2JM.js";
22
+ import "./chunk-QCZFHQHY.js";
23
23
  import {
24
24
  SUBAGENT_ALLOWED_TOOLS
25
- } from "./chunk-VKBGOFEO.js";
25
+ } from "./chunk-JVUYKO4V.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-YRD6M5XI.js";
9
9
  import {
10
10
  ConfigManager
11
- } from "./chunk-WM4VTGAF.js";
11
+ } from "./chunk-IAIUXBB5.js";
12
12
  import "./chunk-TU3L3PW7.js";
13
- import "./chunk-VKBGOFEO.js";
13
+ import "./chunk-JVUYKO4V.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.263",
3
+ "version": "0.4.264",
4
4
  "description": "Cross-platform REPL-style AI CLI with multi-provider support",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",