jinzd-ai-cli 0.2.15 → 0.2.17

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.
@@ -16,7 +16,7 @@ import {
16
16
  SUBAGENT_MAX_ROUNDS_LIMIT,
17
17
  VERSION,
18
18
  runTestsTool
19
- } from "./chunk-MD3RCGWS.js";
19
+ } from "./chunk-OF77GVOC.js";
20
20
 
21
21
  // src/config/config-manager.ts
22
22
  import { readFileSync, writeFileSync, existsSync, mkdirSync } from "fs";
@@ -8,7 +8,7 @@ import { platform } from "os";
8
8
  import chalk from "chalk";
9
9
 
10
10
  // src/core/constants.ts
11
- var VERSION = "0.2.15";
11
+ var VERSION = "0.2.16";
12
12
  var APP_NAME = "ai-cli";
13
13
  var CONFIG_DIR_NAME = ".aicli";
14
14
  var CONFIG_FILE_NAME = "config.json";
package/dist/index.js CHANGED
@@ -35,7 +35,7 @@ import {
35
35
  theme,
36
36
  truncateOutput,
37
37
  undoStack
38
- } from "./chunk-O6CGIXLJ.js";
38
+ } from "./chunk-7AOBBUIU.js";
39
39
  import {
40
40
  AGENTIC_BEHAVIOR_GUIDELINE,
41
41
  AUTHOR,
@@ -55,7 +55,7 @@ import {
55
55
  REPO_URL,
56
56
  SKILLS_DIR_NAME,
57
57
  VERSION
58
- } from "./chunk-MD3RCGWS.js";
58
+ } from "./chunk-OF77GVOC.js";
59
59
 
60
60
  // src/index.ts
61
61
  import { program } from "commander";
@@ -1904,7 +1904,7 @@ ${hint}` : "")
1904
1904
  description: "Run project tests and show structured report",
1905
1905
  usage: "/test [command|filter]",
1906
1906
  async execute(args, _ctx) {
1907
- const { executeTests } = await import("./run-tests-MEMEB3J5.js");
1907
+ const { executeTests } = await import("./run-tests-WINPQJ3Z.js");
1908
1908
  const argStr = args.join(" ").trim();
1909
1909
  let testArgs = {};
1910
1910
  if (argStr) {
@@ -4521,14 +4521,18 @@ Session '${this.resumeSessionId}' not found.
4521
4521
  return ac;
4522
4522
  }
4523
4523
  /**
4524
- * 流式生成结束后调用(finally 块中):清理 ESC 监听器,还原 stdin 暂停状态。
4524
+ * 流式生成结束后调用(finally 块中):清理 ESC 监听器。
4525
+ * 若 interjection listener 仍活跃(agentic 循环中),保持 stdin 流动以接收用户输入;
4526
+ * 否则还原为 rl.pause() 时的暂停状态。
4525
4527
  */
4526
4528
  teardownStreamInterrupt() {
4527
4529
  if (this._escHandler) {
4528
4530
  process.stdin.removeListener("data", this._escHandler);
4529
4531
  this._escHandler = null;
4530
4532
  }
4531
- process.stdin.pause();
4533
+ if (!this._interjectionHandler) {
4534
+ process.stdin.pause();
4535
+ }
4532
4536
  this.streamAbortController = null;
4533
4537
  }
4534
4538
  /**
@@ -5059,9 +5063,6 @@ You have a maximum of ${MAX_TOOL_ROUNDS} tool call rounds for this task. Plan ef
5059
5063
  spawnAgentContext.systemPrompt = systemPrompt;
5060
5064
  spawnAgentContext.modelParams = modelParams;
5061
5065
  spawnAgentContext.configManager = this.config;
5062
- if (this._interjectionHandler) {
5063
- process.stdin.removeListener("data", this._interjectionHandler);
5064
- }
5065
5066
  const toolResults = await this.toolExecutor.executeAll(result.toolCalls);
5066
5067
  const thisRoundTools = result.toolCalls.map((tc) => tc.name);
5067
5068
  roundToolHistory.push({ round: round + 1, tools: thisRoundTools });
@@ -5090,7 +5091,6 @@ You have a maximum of ${MAX_TOOL_ROUNDS} tool call rounds for this task. Plan ef
5090
5091
  }
5091
5092
  }
5092
5093
  if (this._interjectionHandler) {
5093
- process.stdin.on("data", this._interjectionHandler);
5094
5094
  process.stdin.resume();
5095
5095
  }
5096
5096
  const reasoningContent = "reasoningContent" in result ? result.reasoningContent : void 0;
@@ -5310,9 +5310,6 @@ Tip: You can continue the conversation by asking the AI to proceed.`
5310
5310
  setProvider: (id, model) => {
5311
5311
  this.currentProvider = id;
5312
5312
  this.currentModel = model ?? this.config.get("defaultModels")[id] ?? this.providers.get(id).info.defaultModel;
5313
- this.config.set("defaultProvider", id);
5314
- const defaultModels = { ...this.config.get("defaultModels"), [id]: this.currentModel };
5315
- this.config.set("defaultModels", defaultModels);
5316
5313
  this.refreshPrompt();
5317
5314
  this.events.emit("provider.switch", {
5318
5315
  providerId: id,
@@ -5510,7 +5507,7 @@ program.command("web").description("Start Web UI server with browser-based chat
5510
5507
  console.error("Error: Invalid port number. Must be between 1 and 65535.");
5511
5508
  process.exit(1);
5512
5509
  }
5513
- const { startWebServer } = await import("./server-7UMR6ODJ.js");
5510
+ const { startWebServer } = await import("./server-DX32VWI3.js");
5514
5511
  await startWebServer({ port, host: options.host });
5515
5512
  });
5516
5513
  program.command("user [action] [username]").description("Manage Web UI users (list | create <name> | delete <name> | reset-password <name> | migrate <name>)").action(async (action, username) => {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  executeTests,
4
4
  runTestsTool
5
- } from "./chunk-MD3RCGWS.js";
5
+ } from "./chunk-OF77GVOC.js";
6
6
  export {
7
7
  executeTests,
8
8
  runTestsTool
@@ -23,7 +23,7 @@ import {
23
23
  setupProxy,
24
24
  spawnAgentContext,
25
25
  truncateOutput
26
- } from "./chunk-O6CGIXLJ.js";
26
+ } from "./chunk-7AOBBUIU.js";
27
27
  import {
28
28
  AGENTIC_BEHAVIOR_GUIDELINE,
29
29
  CONTEXT_FILE_CANDIDATES,
@@ -35,7 +35,7 @@ import {
35
35
  PLAN_MODE_SYSTEM_ADDON,
36
36
  SKILLS_DIR_NAME,
37
37
  VERSION
38
- } from "./chunk-MD3RCGWS.js";
38
+ } from "./chunk-OF77GVOC.js";
39
39
  import {
40
40
  AuthManager
41
41
  } from "./chunk-CPLT6CD3.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jinzd-ai-cli",
3
- "version": "0.2.15",
3
+ "version": "0.2.17",
4
4
  "description": "Cross-platform REPL-style AI CLI with multi-provider support",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",