feat: zcode thinking-mode 0.3.0(state历史+rollback+分写+校验收紧+34用例全绿+文档)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
---
|
||||
description: 查看思考模式切换历史(时间/旧值→新值/分写标记/备份路径)
|
||||
---
|
||||
|
||||
用 Bash(Windows 用 git-bash)运行:
|
||||
|
||||
```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; }
|
||||
node "$THINK_SCRIPT" history $ARGUMENTS
|
||||
```
|
||||
|
||||
每次 `set` 成功都会在历史文件(`~/.zcode/zcode-thinking-mode-state.json`,保留最近 50 条)
|
||||
追加一条:时间戳、旧热值→新热值、分写标记(`仅热`/`仅持久`/`热+持久`)、作用模型、备份路径。
|
||||
|
||||
**把脚本输出原样展示给用户**。
|
||||
|
||||
用户附加要求:$ARGUMENTS
|
||||
Reference in New Issue
Block a user