clavue-v1 1.48.8 → 1.49.1
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 +29 -0
- package/README.md +33 -4
- package/dist/cli.js +578 -515
- package/dist/mao-command.js +1 -1
- package/dist/openai-responses-adapter.js +3 -3
- package/dist/provider-router.js +3 -3
- 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/release-notes-v1.49.1.md +34 -0
- package/docs/tui-feed/feed.json +30 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,35 @@ clavue / 克拉维 发布说明。本文件在构建时注入运行时,驱动
|
|
|
6
6
|
|
|
7
7
|
## Unreleased
|
|
8
8
|
|
|
9
|
+
## 1.49.1 - 2026-10-16
|
|
10
|
+
|
|
11
|
+
- 长会话越跑越慢:每轮工具调用后的持久化闸门会把全部存活消息(含 REPL 副本)完整重扫两遍来测量和释放工具负载,成本随历史线性增长、整场会话呈平方级。改为窗口外已释放的消息记为「已结清」,并记住每个数组前缀的结清位置,每轮只看窗口和新消息(O(窗口));释放效果不变,插入或删除旧消息会自动退回全量扫描
|
|
12
|
+
- 未落盘行检查同样只从上轮已确认的前缀之后开始扫
|
|
13
|
+
- combo 槽位设置:同一请求内多次解析槽位不再反复读、解析 4 个 settings 文件(按 mtime+大小缓存,同一同步调用段内复用)
|
|
14
|
+
- 模型能力快照:每次请求都重写并 fsync 全局配置只为刷新 checkedAt,现在内容未变且 10 分钟内不再写盘
|
|
15
|
+
- 合成长会话基准(桩网关,每轮一次 Bash):600 轮总耗时 88.7s → 32.7s,第 600 轮本地开销 360ms → 88ms;新增 `tests/long-session-round-cost.test.mjs` 断言后期轮次开销不超过早期 2 倍
|
|
16
|
+
|
|
17
|
+
## 1.49.0 - 2026-10-16
|
|
18
|
+
|
|
19
|
+
- 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` 关闭
|
|
20
|
+
- Bash 子进程组登记:每个 Bash 启动的进程组都会登记,中断、超时、退出时整组结束,不再留下 `sshpass ssh`、`pnpm dev` 之类的孤儿进程
|
|
21
|
+
- 新增「快改」槽位(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)
|
|
22
|
+
- 新工具 `FastApply`(仅开启时出现):主模型只给文件路径 + 一句精确指令,`clavue-fa` 按固定三段式模板(`文件:` / `指令:` / `输出修改后的完整文件`,temperature 0.1,max_tokens=max(1024,len/2))返回整文件;剥围栏后做语法校验(JSON 解析、JS `node --check`、Python `compile`、其余括号平衡 + 大小比例),无代码块 / 校验不过 / 超时 / 5xx / 422 重试 1 次,仍失败则不写入并让主模型改用 Edit
|
|
23
|
+
- 只用于已存在、≤4KB(`CLAVUE_FA_MAX_BYTES` 可改;实测 6KB 文件 clavue-fa 要 10–30s 且会截断)的单文件机械编辑;新文件、跨文件重构、超过上限、需要最小 diff 时不使用。落盘走 Edit 路径:权限、读前校验、diff、检查点一致,工具结果附带 unified diff
|
|
24
|
+
- 真实 clavue-fa 会把缩进压成 1 个空格并删掉空行:写回前按原文件逐行对齐还原(未改行保持原样、恢复空行、改动行映射回原缩进),只留最小 diff(`CLAVUE_FA_RECONCILE=0` 关闭);`finish_reason=length` 视为截断,不写入;大小比例收紧到 0.5–2 倍
|
|
25
|
+
- 状态栏槽位行在设置后显示 `快改:clavue-fa`;状态行活动显示 `快改中`;每次请求写入 1.48.9 耗时遥测(槽位 `fa`)
|
|
26
|
+
|
|
27
|
+
## 1.48.9 - 2026-10-16
|
|
28
|
+
|
|
29
|
+
- 回合提速与可见性:慢主要来自等模型首包和串行的后台调用,现在能看到、也能限住
|
|
30
|
+
- 后台调用(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 关闭)后跳过可选的验收评审与重规划
|
|
31
|
+
- 状态行显示真实活动:`等待模型首包 12s` / `规划中` / `JEV判断中` / `审查中` / `工具 Grep 41s`,不再显示随机的「整理上下文」
|
|
32
|
+
- 耗时遥测常开:每个请求(主模型与后台调用)记录模型、槽位、首包、总耗时、输入/输出 token;每回合汇总「等首包 / 模型输出 / 工具 / 后台调用 / 空档」,写入会话旁的 `<session>.timing.ndjson`(`CLAVUE_TIMING_LOG=0` 关闭),headless 结果新增 `timing` 字段,交互模式 `/timing` 查看上一回合
|
|
33
|
+
- 首包超时默认 90s→45s;主请求首包超时后切到备用模型(`CLAVUE_COMBO_FALLBACK`,ttqq 网关默认 `cn:deepseek-v4.1-flash`,`off` 关闭),不再在同一个卡住的模型上重试;`CLAVUE_API_FIRST_BYTE_TIMEOUT_MS` / `_MAX_RETRIES` 仍然有效
|
|
34
|
+
- 并行只读工具:运行时本来就并发执行 Read/Grep/Glob/只读 Bash(已核实);系统提示补充"已知要读的文件和搜索一次发出"
|
|
35
|
+
- 启动提示:同一网关上有多个 clavue 会话同时运行时提醒(`~/.clavue/live-sessions/`,`CLAVUE_SESSION_REGISTRY=0` 关闭);当前目录在 `/Volumes/*` 外置盘时提示收窄搜索
|
|
36
|
+
- debug 日志自 10 月 6 日起没再写入:核实为设计行为(只在 `--debug` / `/debug` 时写),非程序缺陷;常开的 timing 文件替代其耗时用途
|
|
37
|
+
|
|
9
38
|
## 1.48.8 - 2026-10-16
|
|
10
39
|
|
|
11
40
|
- 修复 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.1/install.sh | bash -s -- 1.49.1
|
|
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.1 --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.1/install.sh | bash -s -- 1.49.1
|
|
112
112
|
```
|
|
113
113
|
|
|
114
114
|
```bash
|
|
@@ -283,6 +283,35 @@ 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
|
+
## Long Sessions (1.49.1)
|
|
287
|
+
|
|
288
|
+
Per-round local work no longer scans the whole session history. Tool payloads
|
|
289
|
+
that fell out of the live window are released once and then skipped, so a
|
|
290
|
+
round costs O(window) instead of O(history). On a 600-round synthetic run the
|
|
291
|
+
late-round local overhead dropped from 360ms to 88ms (total 88.7s → 32.7s).
|
|
292
|
+
See [`docs/release-notes-v1.49.1.md`](docs/release-notes-v1.49.1.md).
|
|
293
|
+
|
|
294
|
+
## Fast-Apply Slot (快改, 1.49.0)
|
|
295
|
+
|
|
296
|
+
An optional slot next to Jev. When set, the main model gets a `FastApply`
|
|
297
|
+
tool: it sends one existing file (≤4KB by default, `CLAVUE_FA_MAX_BYTES`) plus a short instruction, and the
|
|
298
|
+
fast-apply model `clavue-fa` returns the whole new file in ~0.3s. The reply is
|
|
299
|
+
fence-stripped and syntax-checked, then lands through Edit (same permission
|
|
300
|
+
prompt and diff). Invalid output, timeout, 5xx or 422 retry once and then fall
|
|
301
|
+
back to Edit. Unset means the slot does not exist.
|
|
302
|
+
|
|
303
|
+
```bash
|
|
304
|
+
CLAVUE_COMBO_FA=clavue-fa # turn the slot on
|
|
305
|
+
# gateway/key resolve like Jev:
|
|
306
|
+
# CLAVUE_FA_BASE_URL → CLAVUE_JEV_BASE_URL → https://api.clavue.com/clavue-fa
|
|
307
|
+
# CLAVUE_FA_API_KEY → Jev key (TYPESAFE_API_KEY / CLAVUE_JEV_API_KEY) → provider key on the same host
|
|
308
|
+
# (same key as clavue-jev; a custom path prefix like https://api.clavue.com/clavue-fa is kept)
|
|
309
|
+
CLAVUE_FA_TIMEOUT_MS=15000 # per attempt
|
|
310
|
+
CLAVUE_FA_MAX_BYTES=4096 # file size cap (default 4KB)
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
See [`docs/release-notes-v1.49.0.md`](docs/release-notes-v1.49.0.md).
|
|
314
|
+
|
|
286
315
|
## Cross-Family Combo Review
|
|
287
316
|
|
|
288
317
|
The review slot puts an independent model family between "the code changed"
|
|
@@ -418,7 +447,7 @@ Version check:
|
|
|
418
447
|
|
|
419
448
|
```bash
|
|
420
449
|
npx -y clavue-v1 --version
|
|
421
|
-
npx -y clavue-v1@1.
|
|
450
|
+
npx -y clavue-v1@1.49.1 --version
|
|
422
451
|
# available after a global install
|
|
423
452
|
clavue-v1 --version
|
|
424
453
|
```
|