jinzd-ai-cli 0.4.237 → 0.4.238

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.
@@ -566,8 +566,8 @@ Important rules:
566
566
  const hint = buildErrorHint(command, combined);
567
567
  throw new ToolError(
568
568
  "bash",
569
- `Exit code ${status}:
570
- ${combined || `exit ${status}`}
569
+ `${formatFailureHeader(status)}
570
+ ${combined || formatFailureFallback(status)}
571
571
 
572
572
  ` + (hint ? `${hint}
573
573
 
@@ -643,8 +643,8 @@ How to recover (pick ONE \u2014 do NOT retry the same command):
643
643
  const hint = buildErrorHint(command, combined);
644
644
  throw new ToolError(
645
645
  "bash",
646
- `Exit code ${execErr.status}:
647
- ${combined || (execErr.message ?? "Unknown error")}
646
+ `${formatFailureHeader(execErr.status)}
647
+ ${combined || execErr.message || formatFailureFallback(execErr.status)}
648
648
 
649
649
  ` + (hint ? `${hint}
650
650
 
@@ -656,6 +656,12 @@ ${combined || (execErr.message ?? "Unknown error")}
656
656
  }
657
657
  }
658
658
  };
659
+ function formatFailureHeader(status) {
660
+ return typeof status === "number" ? `Exit code ${status}:` : "Command failed before exit code could be determined:";
661
+ }
662
+ function formatFailureFallback(status) {
663
+ return typeof status === "number" ? `exit ${status}` : "The shell process ended before reporting a numeric exit code.";
664
+ }
659
665
  function fixWindowsDeleteCommand(command) {
660
666
  return command.replace(
661
667
  /Remove-Item\b([^;\n]*)/gi,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  truncateForPersist
4
- } from "./chunk-WI4DN5FN.js";
4
+ } from "./chunk-BTKFZUIJ.js";
5
5
  import {
6
6
  APP_NAME,
7
7
  CONFIG_DIR_NAME,
@@ -5185,8 +5185,8 @@ Important rules:
5185
5185
  const hint = buildErrorHint(command, combined);
5186
5186
  throw new ToolError(
5187
5187
  "bash",
5188
- `Exit code ${status}:
5189
- ${combined || `exit ${status}`}
5188
+ `${formatFailureHeader(status)}
5189
+ ${combined || formatFailureFallback(status)}
5190
5190
 
5191
5191
  ` + (hint ? `${hint}
5192
5192
 
@@ -5262,8 +5262,8 @@ How to recover (pick ONE \u2014 do NOT retry the same command):
5262
5262
  const hint = buildErrorHint(command, combined);
5263
5263
  throw new ToolError(
5264
5264
  "bash",
5265
- `Exit code ${execErr.status}:
5266
- ${combined || (execErr.message ?? "Unknown error")}
5265
+ `${formatFailureHeader(execErr.status)}
5266
+ ${combined || execErr.message || formatFailureFallback(execErr.status)}
5267
5267
 
5268
5268
  ` + (hint ? `${hint}
5269
5269
 
@@ -5275,6 +5275,12 @@ ${combined || (execErr.message ?? "Unknown error")}
5275
5275
  }
5276
5276
  }
5277
5277
  };
5278
+ function formatFailureHeader(status) {
5279
+ return typeof status === "number" ? `Exit code ${status}:` : "Command failed before exit code could be determined:";
5280
+ }
5281
+ function formatFailureFallback(status) {
5282
+ return typeof status === "number" ? `exit ${status}` : "The shell process ended before reporting a numeric exit code.";
5283
+ }
5278
5284
  function fixWindowsDeleteCommand(command) {
5279
5285
  return command.replace(
5280
5286
  /Remove-Item\b([^;\n]*)/gi,
@@ -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-D66BJZKU.js");
157
+ const { TaskOrchestrator } = await import("./task-orchestrator-AJRFTQVB.js");
158
158
  const orchestrator = new TaskOrchestrator(config, providers, configManager);
159
159
  let interrupted = false;
160
160
  const onSigint = () => {
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  scanProject,
15
15
  sessionHasMeaningfulContent,
16
16
  setupProxy
17
- } from "./chunk-KQJ55BTD.js";
17
+ } from "./chunk-PTUOWHOH.js";
18
18
  import {
19
19
  buildReviewPrompt,
20
20
  buildSecurityReviewPrompt
@@ -52,7 +52,7 @@ import {
52
52
  theme,
53
53
  undoStack,
54
54
  updateMemoryApproval
55
- } from "./chunk-WI4DN5FN.js";
55
+ } from "./chunk-BTKFZUIJ.js";
56
56
  import "./chunk-K3CF65QH.js";
57
57
  import "./chunk-UUSRWSSX.js";
58
58
  import "./chunk-CKH4KQ4E.js";
@@ -7747,7 +7747,7 @@ program.command("web").description("Start Web UI server with browser-based chat
7747
7747
  console.error("Error: Invalid port number. Must be between 1 and 65535.");
7748
7748
  process.exit(1);
7749
7749
  }
7750
- const { startWebServer } = await import("./server-J36CY5EU.js");
7750
+ const { startWebServer } = await import("./server-7OUD4SE4.js");
7751
7751
  await startWebServer({ port, host: options.host });
7752
7752
  });
7753
7753
  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) => {
@@ -7970,7 +7970,7 @@ program.command("batch <action> [arg] [arg2]").description("Anthropic Message Ba
7970
7970
  }
7971
7971
  });
7972
7972
  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) => {
7973
- const { startMcpServer } = await import("./server-JEVAHG53.js");
7973
+ const { startMcpServer } = await import("./server-77FK46KF.js");
7974
7974
  await startMcpServer({
7975
7975
  allowDestructive: !!options.allowDestructive,
7976
7976
  allowOutsideCwd: !!options.allowOutsideCwd,
@@ -8162,7 +8162,7 @@ program.command("hub [topic]").description("Start multi-agent hub (discuss / bra
8162
8162
  config.get("customProviders"),
8163
8163
  config.getConfigDir()
8164
8164
  );
8165
- const { startHub } = await import("./hub-2WPMT242.js");
8165
+ const { startHub } = await import("./hub-5TKAR7Y7.js");
8166
8166
  await startHub(
8167
8167
  {
8168
8168
  topic: topic ?? "",
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  ToolRegistry
4
- } from "./chunk-WI4DN5FN.js";
4
+ } from "./chunk-BTKFZUIJ.js";
5
5
  import "./chunk-K3CF65QH.js";
6
6
  import "./chunk-UUSRWSSX.js";
7
7
  import "./chunk-CKH4KQ4E.js";
@@ -23,7 +23,7 @@ import {
23
23
  scanDirTree,
24
24
  scanProject,
25
25
  setupProxy
26
- } from "./chunk-KQJ55BTD.js";
26
+ } from "./chunk-PTUOWHOH.js";
27
27
  import {
28
28
  buildReviewPrompt,
29
29
  buildSecurityReviewPrompt
@@ -67,7 +67,7 @@ import {
67
67
  truncateOutput,
68
68
  undoStack,
69
69
  updateMemoryApproval
70
- } from "./chunk-WI4DN5FN.js";
70
+ } from "./chunk-BTKFZUIJ.js";
71
71
  import "./chunk-K3CF65QH.js";
72
72
  import "./chunk-UUSRWSSX.js";
73
73
  import "./chunk-CKH4KQ4E.js";
@@ -3,7 +3,7 @@ import {
3
3
  ToolRegistry,
4
4
  googleSearchContext,
5
5
  truncateOutput
6
- } from "./chunk-WI4DN5FN.js";
6
+ } from "./chunk-BTKFZUIJ.js";
7
7
  import "./chunk-K3CF65QH.js";
8
8
  import "./chunk-UUSRWSSX.js";
9
9
  import "./chunk-CKH4KQ4E.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jinzd-ai-cli",
3
- "version": "0.4.237",
3
+ "version": "0.4.238",
4
4
  "description": "Cross-platform REPL-style AI CLI with multi-provider support",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",