clavue-v1 1.48.8 → 1.49.0
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 +21 -0
- package/README.md +25 -4
- package/dist/cli.js +575 -512
- package/dist/mao-command.js +1 -1
- package/dist/openai-responses-adapter.js +2 -2
- package/dist/provider-router.js +2 -2
- package/dist/provider-setup.js +1 -1
- package/docs/release-notes-v1.48.9.md +20 -0
- package/docs/release-notes-v1.49.0.md +54 -0
- package/docs/tui-feed/feed.json +21 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,27 @@ clavue / 克拉维 发布说明。本文件在构建时注入运行时,驱动
|
|
|
6
6
|
|
|
7
7
|
## Unreleased
|
|
8
8
|
|
|
9
|
+
## 1.49.0 - 2026-10-16
|
|
10
|
+
|
|
11
|
+
- Ctrl+C 卡死兜底(含 1.48.9 全部提速改动,1.48.9 不单独发布):主线程卡死(实测进程 7.4GB、CPU 140%、持续 GC)时按键无人读取,Ctrl+C 无效。新增后台守护线程,主线程心跳超过 4 秒(`CLAVUE_STALL_ESCAPE_MS`)未更新时由它直接读终端,收到 Ctrl+C 即结束所有 Bash 子进程组、恢复终端并退出;主线程正常时不碰终端,原有 Ctrl+C 行为不变。`CLAVUE_STALL_ESCAPE=0` 关闭
|
|
12
|
+
- Bash 子进程组登记:每个 Bash 启动的进程组都会登记,中断、超时、退出时整组结束,不再留下 `sshpass ssh`、`pnpm dev` 之类的孤儿进程
|
|
13
|
+
- 新增「快改」槽位(fast apply,模型 `clavue-fa`),和决策(JEV)并列、配置放在一起:`CLAVUE_COMBO_FA=clavue-fa` 开启,不设则完全不存在(无工具、无状态栏段、无请求)。网关与密钥和 JEV 完全一致:`CLAVUE_FA_BASE_URL` → `CLAVUE_JEV_BASE_URL` → `https://api.clavue.com/clavue-fa`(保留自定义路径前缀;继承到裸 api.clavue.com 时自动加 `/clavue-fa`);密钥 `CLAVUE_FA_API_KEY` → JEV 密钥(`TYPESAFE_API_KEY` / `CLAVUE_JEV_API_KEY`)→ 同主机时的主提供商密钥;`CLAVUE_FA_TIMEOUT_MS` 单次超时(默认 15s)
|
|
14
|
+
- 新工具 `FastApply`(仅开启时出现):主模型只给文件路径 + 一句精确指令,`clavue-fa` 按固定三段式模板(`文件:` / `指令:` / `输出修改后的完整文件`,temperature 0.1,max_tokens=max(1024,len/2))返回整文件;剥围栏后做语法校验(JSON 解析、JS `node --check`、Python `compile`、其余括号平衡 + 大小比例),无代码块 / 校验不过 / 超时 / 5xx / 422 重试 1 次,仍失败则不写入并让主模型改用 Edit
|
|
15
|
+
- 只用于已存在、≤4KB(`CLAVUE_FA_MAX_BYTES` 可改;实测 6KB 文件 clavue-fa 要 10–30s 且会截断)的单文件机械编辑;新文件、跨文件重构、超过上限、需要最小 diff 时不使用。落盘走 Edit 路径:权限、读前校验、diff、检查点一致,工具结果附带 unified diff
|
|
16
|
+
- 真实 clavue-fa 会把缩进压成 1 个空格并删掉空行:写回前按原文件逐行对齐还原(未改行保持原样、恢复空行、改动行映射回原缩进),只留最小 diff(`CLAVUE_FA_RECONCILE=0` 关闭);`finish_reason=length` 视为截断,不写入;大小比例收紧到 0.5–2 倍
|
|
17
|
+
- 状态栏槽位行在设置后显示 `快改:clavue-fa`;状态行活动显示 `快改中`;每次请求写入 1.48.9 耗时遥测(槽位 `fa`)
|
|
18
|
+
|
|
19
|
+
## 1.48.9 - 2026-10-16
|
|
20
|
+
|
|
21
|
+
- 回合提速与可见性:慢主要来自等模型首包和串行的后台调用,现在能看到、也能限住
|
|
22
|
+
- 后台调用(light / 记忆 / 分类器等 sideQuery)加硬超时 `CLAVUE_SIDE_CALL_TIMEOUT_MS`(默认 20s,0 关闭),超时只跳过该调用,不中断回合;plan 默认超时 45s→30s(`CLAVUE_COMBO_PLAN_TIMEOUT_MS` 仍可改);开场 map→plan→验收评审→重规划链超过 `CLAVUE_PRETURN_BUDGET_MS`(默认 40s,0 关闭)后跳过可选的验收评审与重规划
|
|
23
|
+
- 状态行显示真实活动:`等待模型首包 12s` / `规划中` / `JEV判断中` / `审查中` / `工具 Grep 41s`,不再显示随机的「整理上下文」
|
|
24
|
+
- 耗时遥测常开:每个请求(主模型与后台调用)记录模型、槽位、首包、总耗时、输入/输出 token;每回合汇总「等首包 / 模型输出 / 工具 / 后台调用 / 空档」,写入会话旁的 `<session>.timing.ndjson`(`CLAVUE_TIMING_LOG=0` 关闭),headless 结果新增 `timing` 字段,交互模式 `/timing` 查看上一回合
|
|
25
|
+
- 首包超时默认 90s→45s;主请求首包超时后切到备用模型(`CLAVUE_COMBO_FALLBACK`,ttqq 网关默认 `cn:deepseek-v4.1-flash`,`off` 关闭),不再在同一个卡住的模型上重试;`CLAVUE_API_FIRST_BYTE_TIMEOUT_MS` / `_MAX_RETRIES` 仍然有效
|
|
26
|
+
- 并行只读工具:运行时本来就并发执行 Read/Grep/Glob/只读 Bash(已核实);系统提示补充"已知要读的文件和搜索一次发出"
|
|
27
|
+
- 启动提示:同一网关上有多个 clavue 会话同时运行时提醒(`~/.clavue/live-sessions/`,`CLAVUE_SESSION_REGISTRY=0` 关闭);当前目录在 `/Volumes/*` 外置盘时提示收窄搜索
|
|
28
|
+
- debug 日志自 10 月 6 日起没再写入:核实为设计行为(只在 `--debug` / `/debug` 时写),非程序缺陷;常开的 timing 文件替代其耗时用途
|
|
29
|
+
|
|
9
30
|
## 1.48.8 - 2026-10-16
|
|
10
31
|
|
|
11
32
|
- 修复 print 模式 `-p --continue` 续接不到上一轮(#139):分页加载 jsonl 时用"第一个出现的字段"取 `type`/`uuid`,而助手条目先写 `message`(其内层 `type` 为 `"message"`)再写顶层 `type`,导致所有助手条目被丢掉、父链断掉,第二轮请求里只剩新问题。现在只读取顶层字段(深度感知扫描,大工具正文仍是线性扫描),助手条目和完整父链都会回到请求里。交互式 `--continue` 走同一加载器,一并修复;`-p --resume <id>` 本来不受影响,已加回归测试
|
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.
|
|
88
|
+
curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.49.0/install.sh | bash -s -- 1.49.0
|
|
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.
|
|
99
|
+
npx -y clavue-v1@1.49.0 --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.
|
|
111
|
+
curl -fsSL https://unpkg.com/clavue-v1@1.49.0/install.sh | bash -s -- 1.49.0
|
|
112
112
|
```
|
|
113
113
|
|
|
114
114
|
```bash
|
|
@@ -283,6 +283,27 @@ This package is intended for users who want an execution-first coding CLI with d
|
|
|
283
283
|
|
|
284
284
|
On macOS, Clavue avoids Keychain by default and stores local credentials in `~/.clavue/.credentials.json` so startup does not trigger system Keychain prompts. If you explicitly want the old Keychain behavior back, launch with `CLAVUE_USE_KEYCHAIN=1 clavue-v1`.
|
|
285
285
|
|
|
286
|
+
## Fast-Apply Slot (快改, 1.49.0)
|
|
287
|
+
|
|
288
|
+
An optional slot next to Jev. When set, the main model gets a `FastApply`
|
|
289
|
+
tool: it sends one existing file (≤4KB by default, `CLAVUE_FA_MAX_BYTES`) plus a short instruction, and the
|
|
290
|
+
fast-apply model `clavue-fa` returns the whole new file in ~0.3s. The reply is
|
|
291
|
+
fence-stripped and syntax-checked, then lands through Edit (same permission
|
|
292
|
+
prompt and diff). Invalid output, timeout, 5xx or 422 retry once and then fall
|
|
293
|
+
back to Edit. Unset means the slot does not exist.
|
|
294
|
+
|
|
295
|
+
```bash
|
|
296
|
+
CLAVUE_COMBO_FA=clavue-fa # turn the slot on
|
|
297
|
+
# gateway/key resolve like Jev:
|
|
298
|
+
# CLAVUE_FA_BASE_URL → CLAVUE_JEV_BASE_URL → https://api.clavue.com/clavue-fa
|
|
299
|
+
# CLAVUE_FA_API_KEY → Jev key (TYPESAFE_API_KEY / CLAVUE_JEV_API_KEY) → provider key on the same host
|
|
300
|
+
# (same key as clavue-jev; a custom path prefix like https://api.clavue.com/clavue-fa is kept)
|
|
301
|
+
CLAVUE_FA_TIMEOUT_MS=15000 # per attempt
|
|
302
|
+
CLAVUE_FA_MAX_BYTES=4096 # file size cap (default 4KB)
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
See [`docs/release-notes-v1.49.0.md`](docs/release-notes-v1.49.0.md).
|
|
306
|
+
|
|
286
307
|
## Cross-Family Combo Review
|
|
287
308
|
|
|
288
309
|
The review slot puts an independent model family between "the code changed"
|
|
@@ -418,7 +439,7 @@ Version check:
|
|
|
418
439
|
|
|
419
440
|
```bash
|
|
420
441
|
npx -y clavue-v1 --version
|
|
421
|
-
npx -y clavue-v1@1.
|
|
442
|
+
npx -y clavue-v1@1.49.0 --version
|
|
422
443
|
# available after a global install
|
|
423
444
|
clavue-v1 --version
|
|
424
445
|
```
|