jinzd-ai-cli 0.4.93 → 0.4.94

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.
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  ConfigManager
4
- } from "./chunk-3SRJBTIY.js";
4
+ } from "./chunk-W7HOEYAA.js";
5
5
  import "./chunk-2ZD3YTVM.js";
6
- import "./chunk-WR4M4TXV.js";
6
+ import "./chunk-CD6FE5UD.js";
7
7
 
8
8
  // src/cli/batch.ts
9
9
  import Anthropic from "@anthropic-ai/sdk";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  schemaToJsonSchema,
4
4
  truncateForPersist
5
- } from "./chunk-5D7LG2TY.js";
5
+ } from "./chunk-7SBSBVUB.js";
6
6
  import {
7
7
  AuthError,
8
8
  ProviderError,
@@ -21,7 +21,7 @@ import {
21
21
  MCP_PROTOCOL_VERSION,
22
22
  MCP_TOOL_PREFIX,
23
23
  VERSION
24
- } from "./chunk-WR4M4TXV.js";
24
+ } from "./chunk-CD6FE5UD.js";
25
25
 
26
26
  // src/providers/claude.ts
27
27
  import Anthropic from "@anthropic-ai/sdk";
@@ -1230,21 +1230,37 @@ var DeepSeekProvider = class extends OpenAICompatibleProvider {
1230
1230
  info = {
1231
1231
  id: "deepseek",
1232
1232
  displayName: "DeepSeek",
1233
- defaultModel: "deepseek-chat",
1233
+ defaultModel: "deepseek-v4-flash",
1234
1234
  apiKeyEnvVar: "AICLI_API_KEY_DEEPSEEK",
1235
1235
  requiresApiKey: true,
1236
1236
  baseUrl: this.defaultBaseUrl,
1237
1237
  models: [
1238
+ // ── V4 family (2026-04-23+):1M context,支持 Thinking / Non-Thinking 双模式 ──
1239
+ {
1240
+ id: "deepseek-v4-pro",
1241
+ displayName: "DeepSeek V4 Pro (1.6T MoE, 49B active)",
1242
+ contextWindow: 1048576,
1243
+ supportsStreaming: true,
1244
+ supportsThinking: true
1245
+ },
1246
+ {
1247
+ id: "deepseek-v4-flash",
1248
+ displayName: "DeepSeek V4 Flash (284B MoE, 13B active)",
1249
+ contextWindow: 1048576,
1250
+ supportsStreaming: true,
1251
+ supportsThinking: true
1252
+ },
1253
+ // ── Legacy aliases:2026-07-24 UTC 15:59 后完全下线,官方已 route 到 V4 Flash ──
1238
1254
  {
1239
1255
  id: "deepseek-chat",
1240
- displayName: "DeepSeek Chat (V3.2)",
1256
+ displayName: "DeepSeek Chat (V3.2 legacy, retires 2026-07-24)",
1241
1257
  contextWindow: 131072,
1242
1258
  supportsStreaming: true,
1243
1259
  supportsThinking: true
1244
1260
  },
1245
1261
  {
1246
1262
  id: "deepseek-reasoner",
1247
- displayName: "DeepSeek Reasoner (R1)",
1263
+ displayName: "DeepSeek Reasoner (R1 legacy, retires 2026-07-24)",
1248
1264
  contextWindow: 65536,
1249
1265
  supportsStreaming: true,
1250
1266
  supportsThinking: true
@@ -3697,8 +3713,12 @@ var PRICING_TABLE = {
3697
3713
  "gemini-1.5-pro": { input: 1.25, output: 5 },
3698
3714
  "gemini-1.5-flash": { input: 0.075, output: 0.3 },
3699
3715
  // ── DeepSeek ──────────────────────────────────────────────────
3700
- "deepseek-chat": { input: 0.27, output: 1.1, cacheRead: 0.07 },
3701
- "deepseek-reasoner": { input: 0.55, output: 2.19, cacheRead: 0.14 },
3716
+ // V4 family (2026-04-23+):1M context, Thinking / Non-Thinking dual-mode, 384K max output
3717
+ "deepseek-v4-pro": { input: 1.74, output: 3.48, cacheRead: 0.145 },
3718
+ "deepseek-v4-flash": { input: 0.14, output: 0.28, cacheRead: 0.028 },
3719
+ // Legacy aliases:retires 2026-07-24 UTC 15:59,官方 route 到 V4 Flash
3720
+ "deepseek-chat": { input: 0.14, output: 0.28, cacheRead: 0.028 },
3721
+ "deepseek-reasoner": { input: 0.14, output: 0.28, cacheRead: 0.028 },
3702
3722
  "deepseek-v3": { input: 0.27, output: 1.1, cacheRead: 0.07 },
3703
3723
  // ── Moonshot Kimi ─────────────────────────────────────────────
3704
3724
  "moonshot-v1-8k": { input: 0.17, output: 0.17 },
@@ -23,7 +23,7 @@ import {
23
23
  } from "./chunk-6VRJGH25.js";
24
24
  import {
25
25
  runTestsTool
26
- } from "./chunk-OL6TUUBE.js";
26
+ } from "./chunk-PH7ICI6O.js";
27
27
  import {
28
28
  CONFIG_DIR_NAME,
29
29
  DEFAULT_MAX_TOOL_OUTPUT_CHARS_CAP,
@@ -31,7 +31,7 @@ import {
31
31
  SUBAGENT_ALLOWED_TOOLS,
32
32
  SUBAGENT_DEFAULT_MAX_ROUNDS,
33
33
  SUBAGENT_MAX_ROUNDS_LIMIT
34
- } from "./chunk-WR4M4TXV.js";
34
+ } from "./chunk-CD6FE5UD.js";
35
35
 
36
36
  // src/tools/types.ts
37
37
  function isFileWriteTool(name) {
@@ -6,7 +6,7 @@ import { platform } from "os";
6
6
  import chalk from "chalk";
7
7
 
8
8
  // src/core/constants.ts
9
- var VERSION = "0.4.93";
9
+ var VERSION = "0.4.94";
10
10
  var APP_NAME = "ai-cli";
11
11
  var CONFIG_DIR_NAME = ".aicli";
12
12
  var CONFIG_FILE_NAME = "config.json";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/core/constants.ts
4
- var VERSION = "0.4.93";
4
+ var VERSION = "0.4.94";
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-WR4M4TXV.js";
4
+ } from "./chunk-CD6FE5UD.js";
5
5
 
6
6
  // src/tools/builtin/run-tests.ts
7
7
  import { execSync } 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-WR4M4TXV.js";
11
+ } from "./chunk-CD6FE5UD.js";
12
12
 
13
13
  // src/config/config-manager.ts
14
14
  import { readFileSync, writeFileSync, existsSync, mkdirSync } from "fs";
@@ -36,7 +36,7 @@ import {
36
36
  VERSION,
37
37
  buildUserIdentityPrompt,
38
38
  runTestsTool
39
- } from "./chunk-ZTBXPEG2.js";
39
+ } from "./chunk-7UABIQX3.js";
40
40
  import {
41
41
  hasSemanticIndex,
42
42
  semanticSearch
@@ -1741,21 +1741,37 @@ var DeepSeekProvider = class extends OpenAICompatibleProvider {
1741
1741
  info = {
1742
1742
  id: "deepseek",
1743
1743
  displayName: "DeepSeek",
1744
- defaultModel: "deepseek-chat",
1744
+ defaultModel: "deepseek-v4-flash",
1745
1745
  apiKeyEnvVar: "AICLI_API_KEY_DEEPSEEK",
1746
1746
  requiresApiKey: true,
1747
1747
  baseUrl: this.defaultBaseUrl,
1748
1748
  models: [
1749
+ // ── V4 family (2026-04-23+):1M context,支持 Thinking / Non-Thinking 双模式 ──
1750
+ {
1751
+ id: "deepseek-v4-pro",
1752
+ displayName: "DeepSeek V4 Pro (1.6T MoE, 49B active)",
1753
+ contextWindow: 1048576,
1754
+ supportsStreaming: true,
1755
+ supportsThinking: true
1756
+ },
1757
+ {
1758
+ id: "deepseek-v4-flash",
1759
+ displayName: "DeepSeek V4 Flash (284B MoE, 13B active)",
1760
+ contextWindow: 1048576,
1761
+ supportsStreaming: true,
1762
+ supportsThinking: true
1763
+ },
1764
+ // ── Legacy aliases:2026-07-24 UTC 15:59 后完全下线,官方已 route 到 V4 Flash ──
1749
1765
  {
1750
1766
  id: "deepseek-chat",
1751
- displayName: "DeepSeek Chat (V3.2)",
1767
+ displayName: "DeepSeek Chat (V3.2 legacy, retires 2026-07-24)",
1752
1768
  contextWindow: 131072,
1753
1769
  supportsStreaming: true,
1754
1770
  supportsThinking: true
1755
1771
  },
1756
1772
  {
1757
1773
  id: "deepseek-reasoner",
1758
- displayName: "DeepSeek Reasoner (R1)",
1774
+ displayName: "DeepSeek Reasoner (R1 legacy, retires 2026-07-24)",
1759
1775
  contextWindow: 65536,
1760
1776
  supportsStreaming: true,
1761
1777
  supportsThinking: true
@@ -9284,8 +9300,12 @@ var PRICING_TABLE = {
9284
9300
  "gemini-1.5-pro": { input: 1.25, output: 5 },
9285
9301
  "gemini-1.5-flash": { input: 0.075, output: 0.3 },
9286
9302
  // ── DeepSeek ──────────────────────────────────────────────────
9287
- "deepseek-chat": { input: 0.27, output: 1.1, cacheRead: 0.07 },
9288
- "deepseek-reasoner": { input: 0.55, output: 2.19, cacheRead: 0.14 },
9303
+ // V4 family (2026-04-23+):1M context, Thinking / Non-Thinking dual-mode, 384K max output
9304
+ "deepseek-v4-pro": { input: 1.74, output: 3.48, cacheRead: 0.145 },
9305
+ "deepseek-v4-flash": { input: 0.14, output: 0.28, cacheRead: 0.028 },
9306
+ // Legacy aliases:retires 2026-07-24 UTC 15:59,官方 route 到 V4 Flash
9307
+ "deepseek-chat": { input: 0.14, output: 0.28, cacheRead: 0.028 },
9308
+ "deepseek-reasoner": { input: 0.14, output: 0.28, cacheRead: 0.028 },
9289
9309
  "deepseek-v3": { input: 0.27, output: 1.1, cacheRead: 0.07 },
9290
9310
  // ── Moonshot Kimi ─────────────────────────────────────────────
9291
9311
  "moonshot-v1-8k": { input: 0.17, output: 0.17 },
@@ -11347,7 +11367,7 @@ ${undoResults.map((r) => ` \u2022 ${r}`).join("\n")}` });
11347
11367
  case "test": {
11348
11368
  this.send({ type: "info", message: "\u{1F9EA} Running tests..." });
11349
11369
  try {
11350
- const { executeTests } = await import("./run-tests-LKZFHPQK.js");
11370
+ const { executeTests } = await import("./run-tests-WMM2B3RR.js");
11351
11371
  const argStr = args.join(" ").trim();
11352
11372
  let testArgs = {};
11353
11373
  if (argStr) {
@@ -385,7 +385,7 @@ ${content}`);
385
385
  }
386
386
  }
387
387
  async function runTaskMode(config, providers, configManager, topic) {
388
- const { TaskOrchestrator } = await import("./task-orchestrator-3LZHLZCG.js");
388
+ const { TaskOrchestrator } = await import("./task-orchestrator-FDV2MB42.js");
389
389
  const orchestrator = new TaskOrchestrator(config, providers, configManager);
390
390
  let interrupted = false;
391
391
  const onSigint = () => {
package/dist/index.js CHANGED
@@ -30,10 +30,10 @@ import {
30
30
  saveDevState,
31
31
  sessionHasMeaningfulContent,
32
32
  setupProxy
33
- } from "./chunk-3CU4NKPD.js";
33
+ } from "./chunk-73IPBBNL.js";
34
34
  import {
35
35
  ConfigManager
36
- } from "./chunk-3SRJBTIY.js";
36
+ } from "./chunk-W7HOEYAA.js";
37
37
  import {
38
38
  ToolExecutor,
39
39
  ToolRegistry,
@@ -52,7 +52,7 @@ import {
52
52
  spawnAgentContext,
53
53
  theme,
54
54
  undoStack
55
- } from "./chunk-5D7LG2TY.js";
55
+ } from "./chunk-7SBSBVUB.js";
56
56
  import "./chunk-2ZD3YTVM.js";
57
57
  import {
58
58
  fileCheckpoints
@@ -70,7 +70,7 @@ import "./chunk-KJLJPUY2.js";
70
70
  import "./chunk-6VRJGH25.js";
71
71
  import "./chunk-2DXY7UGF.js";
72
72
  import "./chunk-KHYD3WXE.js";
73
- import "./chunk-OL6TUUBE.js";
73
+ import "./chunk-PH7ICI6O.js";
74
74
  import {
75
75
  AGENTIC_BEHAVIOR_GUIDELINE,
76
76
  AUTHOR,
@@ -92,7 +92,7 @@ import {
92
92
  SKILLS_DIR_NAME,
93
93
  VERSION,
94
94
  buildUserIdentityPrompt
95
- } from "./chunk-WR4M4TXV.js";
95
+ } from "./chunk-CD6FE5UD.js";
96
96
 
97
97
  // src/index.ts
98
98
  import { program } from "commander";
@@ -2612,7 +2612,7 @@ ${hint}` : "")
2612
2612
  usage: "/test [command|filter]",
2613
2613
  async execute(args, ctx) {
2614
2614
  try {
2615
- const { executeTests } = await import("./run-tests-RO24F4Z2.js");
2615
+ const { executeTests } = await import("./run-tests-BOAAXNEG.js");
2616
2616
  const argStr = args.join(" ").trim();
2617
2617
  let testArgs = {};
2618
2618
  if (argStr) {
@@ -6738,7 +6738,7 @@ program.command("web").description("Start Web UI server with browser-based chat
6738
6738
  console.error("Error: Invalid port number. Must be between 1 and 65535.");
6739
6739
  process.exit(1);
6740
6740
  }
6741
- const { startWebServer } = await import("./server-YHECGYRX.js");
6741
+ const { startWebServer } = await import("./server-UOK3E2GS.js");
6742
6742
  await startWebServer({ port, host: options.host });
6743
6743
  });
6744
6744
  program.command("user [action] [username]").description("Manage Web UI users (list | create <name> | delete <name> | reset-password <name> | migrate <name>)").action(async (action, username) => {
@@ -6861,7 +6861,7 @@ program.command("sessions").description("List recent conversation sessions").act
6861
6861
  });
6862
6862
  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) => {
6863
6863
  try {
6864
- const batch = await import("./batch-NAPWSE3V.js");
6864
+ const batch = await import("./batch-NB5TANTJ.js");
6865
6865
  switch (action) {
6866
6866
  case "submit":
6867
6867
  if (!arg) {
@@ -6904,7 +6904,7 @@ program.command("batch <action> [arg] [arg2]").description("Anthropic Message Ba
6904
6904
  }
6905
6905
  });
6906
6906
  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) => {
6907
- const { startMcpServer } = await import("./server-YXETATAI.js");
6907
+ const { startMcpServer } = await import("./server-2TLRJGFI.js");
6908
6908
  await startMcpServer({
6909
6909
  allowDestructive: !!options.allowDestructive,
6910
6910
  allowOutsideCwd: !!options.allowOutsideCwd,
@@ -7031,7 +7031,7 @@ program.command("hub [topic]").description("Start multi-agent hub (discuss / bra
7031
7031
  }),
7032
7032
  config.get("customProviders")
7033
7033
  );
7034
- const { startHub } = await import("./hub-LJAXL2LO.js");
7034
+ const { startHub } = await import("./hub-OPIWSRVH.js");
7035
7035
  await startHub(
7036
7036
  {
7037
7037
  topic: topic ?? "",
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  executeTests,
4
4
  runTestsTool
5
- } from "./chunk-OL6TUUBE.js";
6
- import "./chunk-WR4M4TXV.js";
5
+ } from "./chunk-PH7ICI6O.js";
6
+ import "./chunk-CD6FE5UD.js";
7
7
  export {
8
8
  executeTests,
9
9
  runTestsTool
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  executeTests,
3
3
  runTestsTool
4
- } from "./chunk-ZTBXPEG2.js";
4
+ } from "./chunk-7UABIQX3.js";
5
5
  export {
6
6
  executeTests,
7
7
  runTestsTool
@@ -3,7 +3,7 @@ import {
3
3
  ToolRegistry,
4
4
  getDangerLevel,
5
5
  schemaToJsonSchema
6
- } from "./chunk-5D7LG2TY.js";
6
+ } from "./chunk-7SBSBVUB.js";
7
7
  import "./chunk-2ZD3YTVM.js";
8
8
  import "./chunk-4BKXL7SM.js";
9
9
  import "./chunk-ANYYM4CF.js";
@@ -12,10 +12,10 @@ import "./chunk-KJLJPUY2.js";
12
12
  import "./chunk-6VRJGH25.js";
13
13
  import "./chunk-2DXY7UGF.js";
14
14
  import "./chunk-KHYD3WXE.js";
15
- import "./chunk-OL6TUUBE.js";
15
+ import "./chunk-PH7ICI6O.js";
16
16
  import {
17
17
  VERSION
18
- } from "./chunk-WR4M4TXV.js";
18
+ } from "./chunk-CD6FE5UD.js";
19
19
 
20
20
  // src/mcp/server.ts
21
21
  import { createInterface } from "readline";
@@ -23,10 +23,10 @@ import {
23
23
  persistToolRound,
24
24
  rebuildExtraMessages,
25
25
  setupProxy
26
- } from "./chunk-3CU4NKPD.js";
26
+ } from "./chunk-73IPBBNL.js";
27
27
  import {
28
28
  ConfigManager
29
- } from "./chunk-3SRJBTIY.js";
29
+ } from "./chunk-W7HOEYAA.js";
30
30
  import {
31
31
  ToolExecutor,
32
32
  ToolRegistry,
@@ -44,7 +44,7 @@ import {
44
44
  spawnAgentContext,
45
45
  truncateOutput,
46
46
  undoStack
47
- } from "./chunk-5D7LG2TY.js";
47
+ } from "./chunk-7SBSBVUB.js";
48
48
  import "./chunk-2ZD3YTVM.js";
49
49
  import "./chunk-4BKXL7SM.js";
50
50
  import "./chunk-ANYYM4CF.js";
@@ -53,7 +53,7 @@ import "./chunk-KJLJPUY2.js";
53
53
  import "./chunk-6VRJGH25.js";
54
54
  import "./chunk-2DXY7UGF.js";
55
55
  import "./chunk-KHYD3WXE.js";
56
- import "./chunk-OL6TUUBE.js";
56
+ import "./chunk-PH7ICI6O.js";
57
57
  import {
58
58
  AGENTIC_BEHAVIOR_GUIDELINE,
59
59
  AUTHOR,
@@ -72,7 +72,7 @@ import {
72
72
  SKILLS_DIR_NAME,
73
73
  VERSION,
74
74
  buildUserIdentityPrompt
75
- } from "./chunk-WR4M4TXV.js";
75
+ } from "./chunk-CD6FE5UD.js";
76
76
 
77
77
  // src/web/server.ts
78
78
  import express from "express";
@@ -2237,7 +2237,7 @@ ${undoResults.map((r) => ` \u2022 ${r}`).join("\n")}` });
2237
2237
  case "test": {
2238
2238
  this.send({ type: "info", message: "\u{1F9EA} Running tests..." });
2239
2239
  try {
2240
- const { executeTests } = await import("./run-tests-RO24F4Z2.js");
2240
+ const { executeTests } = await import("./run-tests-BOAAXNEG.js");
2241
2241
  const argStr = args.join(" ").trim();
2242
2242
  let testArgs = {};
2243
2243
  if (argStr) {
@@ -4,7 +4,7 @@ import {
4
4
  getDangerLevel,
5
5
  googleSearchContext,
6
6
  truncateOutput
7
- } from "./chunk-5D7LG2TY.js";
7
+ } from "./chunk-7SBSBVUB.js";
8
8
  import "./chunk-2ZD3YTVM.js";
9
9
  import "./chunk-4BKXL7SM.js";
10
10
  import "./chunk-ANYYM4CF.js";
@@ -13,10 +13,10 @@ import "./chunk-KJLJPUY2.js";
13
13
  import "./chunk-6VRJGH25.js";
14
14
  import "./chunk-2DXY7UGF.js";
15
15
  import "./chunk-KHYD3WXE.js";
16
- import "./chunk-OL6TUUBE.js";
16
+ import "./chunk-PH7ICI6O.js";
17
17
  import {
18
18
  SUBAGENT_ALLOWED_TOOLS
19
- } from "./chunk-WR4M4TXV.js";
19
+ } from "./chunk-CD6FE5UD.js";
20
20
 
21
21
  // src/hub/task-orchestrator.ts
22
22
  import { createInterface } from "readline";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jinzd-ai-cli",
3
- "version": "0.4.93",
3
+ "version": "0.4.94",
4
4
  "description": "Cross-platform REPL-style AI CLI with multi-provider support",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",