clavue-v1 1.60.2 → 1.60.4

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/CHANGELOG.md CHANGED
@@ -6,6 +6,28 @@ clavue / 克拉维 发布说明。本文件在构建时注入运行时,驱动
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## 1.60.4 - 2026-10-23
10
+
11
+ 1.60.4 接上飞书。自定义机器人 webhook 只能向外发通知;要在飞书里回复或点按钮让本机会话继续,必须另配企业自建应用机器人,并用长连接。npm 上一条已发布版本仍是 1.60.2,所以这个包同时带上尚未发出的 1.60.3。
12
+ - `/provider feishu` 和 `clavue provider feishu` 配置 webhook、可选签名密钥、done / needs_user / pause 开关、应用 App ID 与 App Secret,以及 `listen on` 和 `test`
13
+ - 自定义机器人 webhook(`https://open.feishu.cn/open-apis/bot/v2/hook/…`)只发卡片,不能接收回复、@ 或卡片回调。帮助、状态和卡片都写明这一点,webhook 卡片没有回调按钮
14
+ - 应用机器人走长连接:私聊或群里 @ 的文字,以及「继续 / 停止 / 编号选项」,走终端「继续」和确认框的同一条路径(prompt 队列或对话框的允许 / 拒绝)
15
+ - 任务完成、真正在等你回答、暂停并等待「继续」时通知。完全访问、`bypassPermissions`、`--always-approve` 自动跳过的确认不通知;`-p` 里被跳过的 AskUserQuestion 也不发「需要你」
16
+ - 签名密钥和应用密钥放在本机安全存储,不进 `feishu.json`。`/provider current` 在 `/hook/` 之后遮住 webhook
17
+ - 同时包含未发布的 1.60.3:`-p` 跳过 AskUserQuestion、EnterPlanMode、ExitPlanMode;缺失的 `python` 只记一次并改用 `python3`;同一条已经通过的检查在源码没变时不重跑;`--max-turns` 只接受正整数
18
+ - 回归:`tests/feishu-notify.test.mjs`,以及 1.60.3 的 `tests/1603-a-headless-ask.test.mjs`、`tests/1603-b-shell-retry-and-verify.test.mjs`、`tests/1603-c-max-turns.test.mjs`
19
+
20
+ ## 1.60.3 - 2026-10-23
21
+
22
+ 1.60.3 收掉无人会话和重复检查的空转。对照 iclavue 13.9.0(`cn:deepseek-v4.1-flash`,10 题都成功)时,`-p` 仍会调用 AskUserQuestion,沙箱里没有 `python` 时 Bash 反复重试,同一条已经通过的测试也会再跑。
23
+ - `-p`、`--print` 和非 TTY:AskUserQuestion、EnterPlanMode、ExitPlanMode 不进入工具列表。模型仍点名时立刻返回「无人可答,选一个默认并继续」,不把空答案说成用户已经回答
24
+ - 「卡住了再用 AskUserQuestion」改到动态边界之后,并且只在工具真的启用时出现。无人会话的系统提示彼此一致,不再在静态前缀里分叉
25
+ - `python`(以及任何 exit 127 且输出是 command not found 的程序)记一次后不再执行,并提示改用 `python3`。同一条失败命令允许再试一次,然后跳过,直到 Edit、Write、NotebookEdit、FastApply、ApplyEdit,或一次成功的 shell 写入(`sed -i`、`tee`、重定向)改过源码。`python || python3` 成功、或脚本自己以 127 退出,不会把解释器记成缺失
26
+ - 同一条已经通过的检查在源码没变时不再重跑。`python3 test_*.py`、`*_test.py`、`tests/*.py` 和 `python -m unittest` 现在算检查;`python3 script.py` 和 `python3 --version` 不算
27
+ - `--max-turns` 出现在帮助里,只接受正整数,并继续传给 `-p` 的 `maxTurns`(原来就有这条线,只是藏起来且接受 NaN)
28
+ - S1→S1b 第二次更慢不是缓存没接上。两次都是新的 `-p` 进程(v1 session `1d876ac2` → `f12195d1`;iclavue 的 S1b 也是另一个 session)。v1 的 cache_read 80896→84608,未缓存 input 28201→18419,命中率约 74%→82%,cache_create 仍是 0,因为 DeepSeek/ttqq 不报 Anthropic 的 cache_creation_input_tokens。7 次请求的 model_ms 64379→93758,墙钟 74.8s→108.6s 的增量几乎全在模型时间,tools_ms 约 0.9s 没变。每请求大约 12k 的 cache_read 是稳定的系统提示和工具头,不是整段对话,所以第二次相似任务不会因此变成 4 倍快。iclavue S3 单轮、0 次工具、cache_read 0 也用了 96s,同一网关的耗时会摆几十秒。工作目录仍在第一条用户消息里(`CLAVUE_STABLE_SYSTEM_PREFIX` 默认开着),不写进可缓存的系统前缀
29
+ - 回归:`tests/1603-a-headless-ask.test.mjs`、`tests/1603-b-shell-retry-and-verify.test.mjs`、`tests/1603-c-max-turns.test.mjs`
30
+
9
31
  ## 1.60.2 - 2026-10-23
10
32
 
11
33
  1.60.2 让完全访问名副其实:`bypassPermissions` / `--always-approve` / `--dangerously-skip-permissions` / 「完全访问」不再弹出硬确认。多开时不必逐条点确认。
package/README.md CHANGED
@@ -85,7 +85,7 @@ clavue-v1 --version
85
85
  Pin a version:
86
86
 
87
87
  ```bash
88
- curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.60.2/install.sh | bash -s -- 1.60.2
88
+ curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.60.4/install.sh | bash -s -- 1.60.4
89
89
  ```
90
90
 
91
91
  Upgrade later with `clavue-v1 update` (startup check / `/update` also prefer the public v1 release, then fall back to npm).
@@ -96,7 +96,7 @@ Upgrade later with `clavue-v1 update` (startup check / `/update` also prefer the
96
96
  npm install -g clavue-v1
97
97
  # or one-shot:
98
98
  npx -y clavue-v1
99
- npx -y clavue-v1@1.60.2 --version
99
+ npx -y clavue-v1@1.60.4 --version
100
100
  ```
101
101
 
102
102
  One-line global install via the package (npm / unpkg):
@@ -108,7 +108,7 @@ curl -fsSL https://unpkg.com/clavue-v1/install.sh | bash
108
108
  Install a specific version globally:
109
109
 
110
110
  ```bash
111
- curl -fsSL https://unpkg.com/clavue-v1@1.60.2/install.sh | bash -s -- 1.60.2
111
+ curl -fsSL https://unpkg.com/clavue-v1@1.60.4/install.sh | bash -s -- 1.60.4
112
112
  ```
113
113
 
114
114
  ```bash
@@ -118,10 +118,10 @@ CLAVUE_INSTALL_SOURCE=npm curl -fsSL https://raw.githubusercontent.com/mycode699
118
118
 
119
119
  The package exposes a single `clavue-v1` bin. It deliberately does not claim the `clavue` name, so a global install never clashes with an existing `clavue` (v8.x) installation.
120
120
 
121
- **PATH note (1.60.2):** a bare `clavue` on your PATH may be the separate **iclavue** shim, which hardcodes `--version` as `13.8.0 (Clavue)` and is not this package. Always check the product with:
121
+ **PATH note (1.60.4):** a bare `clavue` on your PATH may be the separate **iclavue** shim, which hardcodes `--version` as `13.8.0 (Clavue)` and is not this package. Always check the product with:
122
122
 
123
123
  ```bash
124
- clavue-v1 --version # e.g. 1.60.2 (clavue / 克拉维)
124
+ clavue-v1 --version # e.g. 1.60.4 (clavue / 克拉维)
125
125
  which clavue clavue-v1 # see which binary PATH resolves
126
126
  npm root -g # …/node_modules/clavue-v1 is the install
127
127
  ```
@@ -706,7 +706,7 @@ Version check:
706
706
 
707
707
  ```bash
708
708
  npx -y clavue-v1 --version
709
- npx -y clavue-v1@1.60.2 --version
709
+ npx -y clavue-v1@1.60.4 --version
710
710
  # available after a global install
711
711
  clavue-v1 --version
712
712
  ```