jinzd-ai-cli 0.1.64 → 0.1.65

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.
package/README.md CHANGED
@@ -47,18 +47,37 @@ aicli
47
47
 
48
48
  | 命令 | 说明 |
49
49
  |---|---|
50
- | `/provider` | 切换 AI Provider |
51
- | `/model` | 切换模型 |
52
- | `/clear` | 清空当前对话 |
53
- | `/session` | 会话管理(new / list / load) |
54
- | `/search <关键词>` | 跨会话全文搜索历史记录 |
55
- | `/system <提示词>` | 设置 System Prompt |
56
- | `/context` | 查看 / 重新加载项目上下文文件 |
57
- | `/status` | 查看当前状态(Provider / Model / Token 用量) |
50
+ | `/provider` | 切换 AI Provider |
51
+ | `/model` | 切换模型 |
52
+ | `/think` | 切换 Extended Thinking 模式 |
53
+ | `/clear` | 清空当前对话 |
54
+ | `/session` | 会话管理(new / list / load) |
55
+ | `/search <关键词>` | 跨会话全文搜索历史记录 |
56
+ | `/system <提示词>` | 设置 System Prompt |
57
+ | `/context` | 查看 / 重新加载项目上下文文件 |
58
+ | `/status` | 查看当前状态(Provider / Model / Token 用量) |
59
+ | `/cost` | 查看或重置当前会话的 token 用量 |
58
60
  | `/tools` | 列出所有可用 AI 工具 |
61
+ | `/plugins` | 查看插件目录和已加载插件 |
62
+ | `/config` | 打开配置向导或管理配置项 |
63
+ | `/mcp` | 查看 MCP 服务连接状态与工具列表 |
64
+ | `/commands` | 查看或重载自定义命令 |
65
+ | `/diff` | 显示当前会话内文件修改的汇总 diff |
59
66
  | `/export` | 导出会话(Markdown / JSON) |
60
67
  | `/undo` | 撤销上次文件操作 |
68
+ | `/copy` | 复制最后一次 AI 回复到系统剪贴板 |
69
+ | `/fork [checkpoint]` | 从当前会话或检查点分叉新会话 |
61
70
  | `/paste` | 读取剪贴板图片并作为多模态输入发送 |
71
+ | `/review` | 基于 git diff 进行 AI 代码审查 |
72
+ | `/init` | 扫描项目并生成 AICLI.md |
73
+ | `/skill` | 查看或切换当前 Agent Skill |
74
+ | `/checkpoint` | 管理会话检查点 |
75
+ | `/test` | 运行项目测试 |
76
+ | `/scaffold` | 生成项目骨架 |
77
+ | `/add-dir` | 将目录动态注入 AI 上下文 |
78
+ | `/memory` | 查看或编辑持久记忆 |
79
+ | `/doctor` | 运行健康检查 |
80
+ | `/bug` | 生成 Bug 报告模板 |
62
81
  | `/about` | 显示版本和项目信息 |
63
82
  | `/help` | 显示帮助 |
64
83
  | `/exit` | 退出 |
@@ -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.1.64";
11
+ var VERSION = "0.1.65";
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
@@ -30,7 +30,7 @@ import {
30
30
  SUBAGENT_MAX_ROUNDS_LIMIT,
31
31
  VERSION,
32
32
  runTestsTool
33
- } from "./chunk-PFZKBWVV.js";
33
+ } from "./chunk-PQPU2XI2.js";
34
34
 
35
35
  // src/index.ts
36
36
  import { program } from "commander";
@@ -3546,6 +3546,7 @@ function createDefaultCommands() {
3546
3546
  " /mcp [reconnect [id]] - Show MCP servers / reconnect disconnected",
3547
3547
  " /config [set|get|show] - Config wizard, or get/set values, show all",
3548
3548
  " /copy - Copy last AI response to clipboard",
3549
+ " /paste [description] - Send clipboard image as multimodal input",
3549
3550
  " /cost [reset] - Show session token usage (or reset counters)",
3550
3551
  " /init [--force] - Generate AICLI.md by scanning project structure",
3551
3552
  " /skill [name|off|list] - Manage agent skills (reusable prompt packs)",
@@ -4605,7 +4606,7 @@ ${hint}` : "")
4605
4606
  description: "Run project tests and show structured report",
4606
4607
  usage: "/test [command|filter]",
4607
4608
  async execute(args, _ctx) {
4608
- const { executeTests } = await import("./run-tests-SFGC57JX.js");
4609
+ const { executeTests } = await import("./run-tests-7ES2SOEM.js");
4609
4610
  const argStr = args.join(" ").trim();
4610
4611
  let testArgs = {};
4611
4612
  if (argStr) {
@@ -10925,7 +10926,7 @@ process.on("unhandledRejection", (reason) => {
10925
10926
  process.exit(1);
10926
10927
  });
10927
10928
  program.name("ai-cli").description("Cross-platform REPL-style AI CLI with multi-provider support").version(VERSION);
10928
- program.option("--provider <name>", "AI provider to use (claude/gemini/deepseek/zhipu/kimi or any custom provider)").option("-m, --model <name>", "Model to use").option("-p, --prompt <text>", "Headless mode: send a single prompt and exit (reads stdin as context if piped)").option("--system <prompt>", "System prompt override (headless mode)").option("--json", "Output result as JSON object (headless mode only)").option("--output-format <format>", "Output format: text (default) | streaming-json (NDJSON per-chunk, headless only)").option("--no-stream", "Disable streaming output").option("--allowed-tools <tools>", "Comma-separated whitelist of tools (e.g. bash,read_file)").option("--blocked-tools <tools>", "Comma-separated blacklist of tools (e.g. bash,write_file)").option("--resume <id>", "Resume a previous session by ID (prefix match supported)").action(async (options) => {
10929
+ program.option("--provider <name>", "AI provider to use (openai/claude/gemini/deepseek/zhipu/kimi or any custom provider)").option("-m, --model <name>", "Model to use").option("-p, --prompt <text>", "Headless mode: send a single prompt and exit (reads stdin as context if piped)").option("--system <prompt>", "System prompt override (headless mode)").option("--json", "Output result as JSON object (headless mode only)").option("--output-format <format>", "Output format: text (default) | streaming-json (NDJSON per-chunk, headless only)").option("--no-stream", "Disable streaming output").option("--allowed-tools <tools>", "Comma-separated whitelist of tools (e.g. bash,read_file)").option("--blocked-tools <tools>", "Comma-separated blacklist of tools (e.g. bash,write_file)").option("--resume <id>", "Resume a previous session by ID (prefix match supported)").action(async (options) => {
10929
10930
  if (options.prompt !== void 0) {
10930
10931
  await runHeadless(options);
10931
10932
  } else {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  executeTests,
4
4
  runTestsTool
5
- } from "./chunk-PFZKBWVV.js";
5
+ } from "./chunk-PQPU2XI2.js";
6
6
  export {
7
7
  executeTests,
8
8
  runTestsTool
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jinzd-ai-cli",
3
- "version": "0.1.64",
3
+ "version": "0.1.65",
4
4
  "description": "Cross-platform REPL-style AI CLI with multi-provider support",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",