clavue-v1 1.56.3 → 1.56.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 +28 -0
- package/README.md +49 -4
- package/dist/cli-main.js +175 -170
- package/dist/cli.js +2 -2
- package/dist/mao-command.js +1 -1
- package/dist/openai-responses-adapter.js +5 -5
- package/dist/provider-router.js +5 -5
- package/dist/provider-setup.js +1 -1
- package/docs/release-notes-v1.56.4.md +22 -0
- package/docs/release-notes-v1.56.5.md +20 -0
- package/docs/tui-feed/feed.json +22 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,34 @@ clavue / 克拉维 发布说明。本文件在构建时注入运行时,驱动
|
|
|
6
6
|
|
|
7
7
|
## Unreleased
|
|
8
8
|
|
|
9
|
+
## 1.56.5 - 2026-10-21
|
|
10
|
+
|
|
11
|
+
1.56.5 实现 issue #179(岔路决定)和 clavue-2.1 适配第一批。
|
|
12
|
+
- #179 岔路决定:plan 槽比 main 强时,遇到不可逆的岔路(删除/清空、公开接口、没说清的「A 还是 B」、互相冲突的验收)只问一次 plan 模型(512 token、20 秒),答案变成一行 `fork: <id> choice=a|b because=…` 交给 main 遵循;会话里显示「岔路 …:询问 plan」和选择,超时或回复无效显示「岔路未决定」和原因;plan 和 main 是同一模型时不发送
|
|
13
|
+
- clavue-2.1 推理预算:端点不接受客户端思考预算(`thinking_budget`、`budget_tokens` 无效,只认 `enable_thinking: false`),所以客户端统计流式推理,超过 6144 token 还没有回答时结束这次回复,关掉思考续接一次;回答至少保留 4096 token(或上限的一半)。`CLAVUE_REASONING_BUDGET_TOKENS`(0 关闭)、`CLAVUE_ANSWER_RESERVE_TOKENS`
|
|
14
|
+
- clavue-2.1 本地优先:首字超时重试 clavue-2.1,不再默认换成云端模型;要云端备用请设 `CLAVUE_COMBO_FALLBACK`,或 `CLAVUE_LOCAL_FIRST=0`
|
|
15
|
+
- 隧道断连(HTTP 500 `do_request_failed`、EOF、连接重置)在同一模型上隔 2–3 秒重试,至少 3 次
|
|
16
|
+
- clavue-2.1 最大输出 128000 已和线上 ttqq 目录核对一致
|
|
17
|
+
- Bash 工具说明不再让模型把密码存到 `~/.clavue-secrets`:需要密码文件时请你自己创建,模型只读取;改动凭据文件的确认保留
|
|
18
|
+
- 新增 clavue-2.1 评测门槛 `scripts/clavue21-eval.mjs --gate`(编码 ≥60%、工具代理 ≥90%(不计基础设施错误)、完成判断误报 0),`release:preflight` 会运行;没有凭据或端点不通时显示 SKIP 和上次记录的结果,不会静默通过
|
|
19
|
+
- `npm run release:preflight` 嵌套在 npm run 里时,打包依赖检查不再误报
|
|
20
|
+
|
|
21
|
+
## 1.56.4 - 2026-10-20
|
|
22
|
+
|
|
23
|
+
1.56.4 修复 1.56.3 会话诊断(diag-2040)、issue #177 和 #178 里的问题。
|
|
24
|
+
- 密码不再明文显示:目标里写的「主机 用户 密码」(如 `192.168.2.100 root …`、`root@host …`、`用户 root 密码 …`)在暂停/结束行、对话行、思考和会话记录里都会打码
|
|
25
|
+
- 改动凭据文件一定先问你:删除、移动、改写或重定向写入 `~/.clavue-secrets`、`~/.ssh`、`~/.aws`、`.netrc` 等凭据路径时,即使是完全访问模式也会弹出确认;只读(cat、ssh -i、sshpass -f)不受影响
|
|
26
|
+
- 「没能判断是否做完」不再一次失败就暂停:完成判断失败时先按暂时性错误重试 2 次,失败结果不再缓存
|
|
27
|
+
- 首字等待最多 120 秒(原来 180 秒);同一路由同一模型刚超时过的,下一次最多等 75 秒就切换;69k 输入的窗口仍不少于 75 秒
|
|
28
|
+
- 换模型不再改动发送的工具列表:会话里发过的工具保持发送,路由不支持的工具在调用时拒绝并说明原因,提示缓存不会因为换模型失效
|
|
29
|
+
- ◆ Plan / ◆ Review 行以系统行保存,不再存成助手消息,恢复会话时不会被当成模型说过的话;Proof ledger 主机记录核实不在界面显示,并且不再被当成用户提示
|
|
30
|
+
- #177:系统提示和 Bash/PowerShell 工具说明只提到本会话启用的工具(`--tools Bash,Read` 不再被建议用 Grep);调试行 `forcedTools=` 只列出实际发送的工具
|
|
31
|
+
- #177:工具参数不符合格式(如 Edit 缺 `new_string`)只作为工具结果交给模型修正,不再记成会话错误
|
|
32
|
+
- #177:clavue-2.1 / clavue-2.1-fast 的最大输出是 128000;没有公布最大输出的模型不再把上下文窗口当成最大输出,默认 128000(窗口更小时取窗口)
|
|
33
|
+
- #177:回复里漏出的分词器控制符(如 `</| … |>`、`<|im_end|>`)会被去掉,并按流中断续接,不再当成正常结束;程序生成的消息不再标成 stop_sequence
|
|
34
|
+
- #178:能力表把 clavue-2.1 的编码改为 ok(clavue-2.1-fast 仍是 weak);/doctor 的编码建议先推荐你已经配置、能力够的模型,没有时才建议 cn:glm-5.3
|
|
35
|
+
- #178:plan / review 槽和 main 是同一个模型时,跳过会显示一行说明;README 的 clavue-2.1 PLAN / REVIEW 例子写明了这个前提
|
|
36
|
+
|
|
9
37
|
## 1.56.3 - 2026-10-20
|
|
10
38
|
|
|
11
39
|
1.56.3 修复 1.56.2 会话诊断(diag-1757)里的四个问题。
|
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.56.
|
|
88
|
+
curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.56.5/install.sh | bash -s -- 1.56.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.56.
|
|
99
|
+
npx -y clavue-v1@1.56.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.56.
|
|
111
|
+
curl -fsSL https://unpkg.com/clavue-v1@1.56.5/install.sh | bash -s -- 1.56.5
|
|
112
112
|
```
|
|
113
113
|
|
|
114
114
|
```bash
|
|
@@ -559,6 +559,51 @@ it with thinking off by default; the OpenAI-compatible endpoint returns the
|
|
|
559
559
|
`reasoning` field when a request sets
|
|
560
560
|
`chat_template_kwargs: {"enable_thinking": true}`.
|
|
561
561
|
|
|
562
|
+
Precondition: PLAN and REVIEW run only when their model differs from main.
|
|
563
|
+
With `CLAVUE_COMBO_MAIN=clavue-2.1` as well, both hops are skipped (the same
|
|
564
|
+
model again is not a second opinion; a serious delivery still gets its
|
|
565
|
+
review). Since 1.56.4 a skip prints one line saying so, e.g. "Plan hop
|
|
566
|
+
skipped: the plan slot is the same model as main (clavue-2.1)". Pair a
|
|
567
|
+
`clavue-2.1-fast` or another-family main with these slots, keeping in mind
|
|
568
|
+
that main still writes the code and applies the review.
|
|
569
|
+
|
|
570
|
+
### clavue-2.1 as main (1.56.5)
|
|
571
|
+
|
|
572
|
+
`CLAVUE_COMBO_MAIN=clavue-2.1` (or `CLAVUE_MODEL=clavue-2.1`) is the local,
|
|
573
|
+
low-cost primary. 1.56.5 adds four client rules for it:
|
|
574
|
+
|
|
575
|
+
- Reasoning budget. The endpoint ignores client thinking budgets
|
|
576
|
+
(`thinking_budget`, `budget_tokens`; measured 2026-10-21) and honours only
|
|
577
|
+
`enable_thinking: false`. clavue-v1 therefore counts streamed reasoning:
|
|
578
|
+
past 6144 tokens with no answer yet it closes the reply and continues once
|
|
579
|
+
with thinking off, so the rest of the reply goes to the answer. At least
|
|
580
|
+
4096 tokens (or half the cap) stay reserved for the answer.
|
|
581
|
+
`CLAVUE_REASONING_BUDGET_TOKENS` (0 disables), `CLAVUE_ANSWER_RESERVE_TOKENS`,
|
|
582
|
+
`CLAVUE_REASONING_BUDGET_MODELS` (extra model ids).
|
|
583
|
+
- Local first. A first-byte miss on clavue-2.1 retries clavue-2.1 instead of
|
|
584
|
+
switching to a cloud model. A cloud backup is opt-in:
|
|
585
|
+
`CLAVUE_COMBO_FALLBACK=cn:glm-5.3` (any list), or `CLAVUE_LOCAL_FIRST=0` for
|
|
586
|
+
the default ttqq chain.
|
|
587
|
+
- Tunnel blips. HTTP 500 `do_request_failed`, EOF and connection resets are
|
|
588
|
+
retried on the same model after 2-3s, at least 3 times.
|
|
589
|
+
- Max output 128000, matching the live ttqq catalog row.
|
|
590
|
+
|
|
591
|
+
Fork decision (#179). With a stronger `CLAVUE_COMBO_PLAN` than main, a request
|
|
592
|
+
that hits an irreversible fork (delete / drop, public contract, an unspecified
|
|
593
|
+
"A or B", conflicting acceptance) gets one short plan-model call: two options
|
|
594
|
+
taken from your sentence, 512 tokens, 20s (`CLAVUE_COMBO_FORK_TIMEOUT_MS`).
|
|
595
|
+
The answer becomes one `fork: <id> choice=a|b because=...` line that main
|
|
596
|
+
follows; the session shows "岔路 destructive:询问 plan" and the choice, or
|
|
597
|
+
"岔路未决定" with the reason. Plan == main never sends it.
|
|
598
|
+
|
|
599
|
+
Eval gate. `node scripts/clavue21-eval.mjs --gate` runs the clavue-2.1 coding
|
|
600
|
+
(30 tasks x 2), tool-agent (15 repos x 2) and classifier (122 items) suites
|
|
601
|
+
with these client rules and fails below coding 60%, agent 90% (infra errors
|
|
602
|
+
excluded) or any classifier false done. Credentials come from
|
|
603
|
+
`CLAVUE21_EVAL_ENV_FILE` or `CLAVUE_BASE_URL` / `CLAVUE_API_KEY`; without them,
|
|
604
|
+
or with the endpoint unreachable, it prints a SKIP notice and the last
|
|
605
|
+
recorded result (`bench/clavue21/baseline.json`). `release:preflight` runs it.
|
|
606
|
+
|
|
562
607
|
### Token budget window (opt-in, 1.48.2 / completed in 1.50.1)
|
|
563
608
|
|
|
564
609
|
`CLAVUE_COMPACT_TOKEN_BUDGET=1`, or `/budget on` inside a session (`/budget off`,
|
|
@@ -651,7 +696,7 @@ Version check:
|
|
|
651
696
|
|
|
652
697
|
```bash
|
|
653
698
|
npx -y clavue-v1 --version
|
|
654
|
-
npx -y clavue-v1@1.56.
|
|
699
|
+
npx -y clavue-v1@1.56.5 --version
|
|
655
700
|
# available after a global install
|
|
656
701
|
clavue-v1 --version
|
|
657
702
|
```
|