clavue-v1 1.60.2 → 1.60.5

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,39 @@ clavue / 克拉维 发布说明。本文件在构建时注入运行时,驱动
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## 1.60.5 - 2026-10-23
10
+
11
+ 1.60.5 把飞书放进 API 配置菜单,并把 clavue-2.1 与 clavue-2.1-fast 的登记改成 100 万上下文、38 万最大输出。Light 优先用 `clavue-24a`(`clavue-2.1-fast` 仍是同一档)。
12
+ - `/provider` 与 `clavue provider` 的模式列表在 Jev 后面增加「配置飞书通知/回复(webhook + 可选应用机器人)」。向导收集 webhook、签名密钥、通知开关、App ID、App Secret、长连接和可选测试。留空保持原值,`off` 清除。密钥进安全存储,不进 `feishu.json`。保存后回到主菜单,不切换当前模型
13
+ - `clavue-2.1`、`clavue-2.1-fast`、`clavue-24a` 的上下文登记为 1_000_000,最大输出登记为 380_000。`CLAVUE21_CONTEXT_WINDOW` 只改 clavue-2.1。更小的目录数字(含 262144、131072)不会把这三档缩小。8192 只是工具回合的调用建议,不是登记上限
14
+ - 官方 Light / haiku / 子代理默认是 `clavue-24a`。主模型仍是 `clavue`,sonnet 仍是 `clavue-2.1`
15
+ - 思考占满 `max_tokens` 时,短请求会抬到至少 10240(6144 思考 + 4096 回答),并且这三档不发送 `enable_thinking: false`,也不套 1024 的简单档上限
16
+ - 中文界面的页脚和日记把仍在跑的 shell 写成「N 个后台命令」和「后台命令已运行 N 秒」,任务 id 保持原文
17
+ - 这三档的 Chat Completions 请求保持 `stream: true`,不带 `stream_options`;有工具时发送 `tool_choice: auto`。参数按 index 拼起来,结束时解析一次
18
+ - 回归:`tests/feishu-provider-menu.test.mjs`、`tests/1605-family-registry.test.mjs`
19
+
20
+ ## 1.60.4 - 2026-10-23
21
+
22
+ 1.60.4 接上飞书。自定义机器人 webhook 只能向外发通知;要在飞书里回复或点按钮让本机会话继续,必须另配企业自建应用机器人,并用长连接。npm 上一条已发布版本仍是 1.60.2,所以这个包同时带上尚未发出的 1.60.3。
23
+ - `/provider feishu` 和 `clavue provider feishu` 配置 webhook、可选签名密钥、done / needs_user / pause 开关、应用 App ID 与 App Secret,以及 `listen on` 和 `test`
24
+ - 自定义机器人 webhook(`https://open.feishu.cn/open-apis/bot/v2/hook/…`)只发卡片,不能接收回复、@ 或卡片回调。帮助、状态和卡片都写明这一点,webhook 卡片没有回调按钮
25
+ - 应用机器人走长连接:私聊或群里 @ 的文字,以及「继续 / 停止 / 编号选项」,走终端「继续」和确认框的同一条路径(prompt 队列或对话框的允许 / 拒绝)
26
+ - 任务完成、真正在等你回答、暂停并等待「继续」时通知。完全访问、`bypassPermissions`、`--always-approve` 自动跳过的确认不通知;`-p` 里被跳过的 AskUserQuestion 也不发「需要你」
27
+ - 签名密钥和应用密钥放在本机安全存储,不进 `feishu.json`。`/provider current` 在 `/hook/` 之后遮住 webhook
28
+ - 同时包含未发布的 1.60.3:`-p` 跳过 AskUserQuestion、EnterPlanMode、ExitPlanMode;缺失的 `python` 只记一次并改用 `python3`;同一条已经通过的检查在源码没变时不重跑;`--max-turns` 只接受正整数
29
+ - 回归:`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`
30
+
31
+ ## 1.60.3 - 2026-10-23
32
+
33
+ 1.60.3 收掉无人会话和重复检查的空转。对照 iclavue 13.9.0(`cn:deepseek-v4.1-flash`,10 题都成功)时,`-p` 仍会调用 AskUserQuestion,沙箱里没有 `python` 时 Bash 反复重试,同一条已经通过的测试也会再跑。
34
+ - `-p`、`--print` 和非 TTY:AskUserQuestion、EnterPlanMode、ExitPlanMode 不进入工具列表。模型仍点名时立刻返回「无人可答,选一个默认并继续」,不把空答案说成用户已经回答
35
+ - 「卡住了再用 AskUserQuestion」改到动态边界之后,并且只在工具真的启用时出现。无人会话的系统提示彼此一致,不再在静态前缀里分叉
36
+ - `python`(以及任何 exit 127 且输出是 command not found 的程序)记一次后不再执行,并提示改用 `python3`。同一条失败命令允许再试一次,然后跳过,直到 Edit、Write、NotebookEdit、FastApply、ApplyEdit,或一次成功的 shell 写入(`sed -i`、`tee`、重定向)改过源码。`python || python3` 成功、或脚本自己以 127 退出,不会把解释器记成缺失
37
+ - 同一条已经通过的检查在源码没变时不再重跑。`python3 test_*.py`、`*_test.py`、`tests/*.py` 和 `python -m unittest` 现在算检查;`python3 script.py` 和 `python3 --version` 不算
38
+ - `--max-turns` 出现在帮助里,只接受正整数,并继续传给 `-p` 的 `maxTurns`(原来就有这条线,只是藏起来且接受 NaN)
39
+ - 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` 默认开着),不写进可缓存的系统前缀
40
+ - 回归:`tests/1603-a-headless-ask.test.mjs`、`tests/1603-b-shell-retry-and-verify.test.mjs`、`tests/1603-c-max-turns.test.mjs`
41
+
9
42
  ## 1.60.2 - 2026-10-23
10
43
 
11
44
  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.5/install.sh | bash -s -- 1.60.5
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.5 --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.5/install.sh | bash -s -- 1.60.5
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.5):** 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.5 (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
  ```
@@ -262,12 +262,16 @@ On first launch, Clavue should make the setup choice obvious:
262
262
  请选择 API 配置模式:
263
263
  使用 clavue OAuth
264
264
  自定义 API 配置
265
+ 配置 Jev(API URL / Key / 模型,全局生效)
266
+ 配置飞书通知/回复(webhook + 可选应用机器人)
267
+ 网页配置(router.clavue.com)
265
268
  使用 CCR 代理
266
269
  跳过(稍后手动配置)
267
270
  ```
268
271
 
269
272
  - Use clavue OAuth when you want the official Clavue membership flow.
270
273
  - Use custom API configuration when you have an API base URL plus API key or auth token.
274
+ - Feishu in that menu is notify/reply (webhook, optional app bot). It does not create or switch a model profile.
271
275
  - Use CCR proxy when your environment already standardizes on a compatible proxy route.
272
276
  - Skip only when you want to configure later with `clavue-v1 provider` or `/provider`.
273
277
 
@@ -706,7 +710,7 @@ Version check:
706
710
 
707
711
  ```bash
708
712
  npx -y clavue-v1 --version
709
- npx -y clavue-v1@1.60.2 --version
713
+ npx -y clavue-v1@1.60.5 --version
710
714
  # available after a global install
711
715
  clavue-v1 --version
712
716
  ```