feat: zcode thinking-mode 0.3.0(state历史+rollback+分写+校验收紧+34用例全绿+文档)
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
---
|
||||
description: 思考模式总览与切换(查看当前档位,或加参数直接切换:low/max/high)
|
||||
argument-hint: [low|max|high] [--model 模型名]
|
||||
---
|
||||
|
||||
用 Bash(Windows 用 git-bash)运行思考档位脚本。先定位脚本(插件安装位置自动找,不写死路径;自定义可用 `ZCODE_THINKING_SCRIPT` 指定):
|
||||
|
||||
```bash
|
||||
THINK_SCRIPT="${ZCODE_THINKING_SCRIPT:-$(find ~/.zcode/plugins -maxdepth 4 -name thinking.mjs -path '*thinking-mode*' 2>/dev/null | head -1)}"
|
||||
[ -n "$THINK_SCRIPT" ] || THINK_SCRIPT="$(find ~/.zcode -maxdepth 8 -type f -path '*thinking-mode/scripts/thinking.mjs' 2>/dev/null | head -1)"
|
||||
[ -n "$THINK_SCRIPT" ] || { echo "找不到 thinking.mjs:插件未安装或不在默认位置,可用 ZCODE_THINKING_SCRIPT 指定路径"; exit 1; }
|
||||
```
|
||||
|
||||
不带参数 → 显示现状(等价于 `/thinking:status`):
|
||||
|
||||
```bash
|
||||
node "$THINK_SCRIPT" status
|
||||
```
|
||||
|
||||
带档位参数 → 直接切换(等价于 `/thinking:set`):
|
||||
|
||||
```bash
|
||||
node "$THINK_SCRIPT" set $ARGUMENTS
|
||||
```
|
||||
|
||||
其它相关命令:
|
||||
|
||||
| 命令 | 作用 |
|
||||
|---|---|
|
||||
| `/thinking:set` | 切换档位(`low`/`max`/`high`,可加 `--model`/`--hot-only`/`--persist-only`) |
|
||||
| `/thinking:status` | 看各模型当前档位与可选档位 |
|
||||
| `/thinking:history` | 看切换历史(时间/旧值→新值/分写标记/备份) |
|
||||
| `/thinking:rollback [--steps N]` | 回滚到上次切换之前(热+持久都写回去) |
|
||||
| `/thinking:defaults` | 默认档位/默认模型(不带参数时 `set` 用哪档、`status` 看哪个模型) |
|
||||
| `/thinking:doctor` | 自检:为什么切不了(只读) |
|
||||
|
||||
**把脚本输出原样展示给用户**,不要改写档位名、不要省略模型行。注意输出里的"当前会话补一行 `/effort <档位>`"提示要保留——那是当前这轮立即生效的热切入口。
|
||||
|
||||
用户附加要求:$ARGUMENTS
|
||||
Reference in New Issue
Block a user