clavue-v1 1.54.2 → 1.54.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,34 @@ clavue / 克拉维 发布说明。本文件在构建时注入运行时,驱动
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## 1.54.4 - 2026-10-18
10
+
11
+ - 结果桥:`-p` / `--print` 跑完(成功、失败、到达上限或被信号中止)都会写 `<cwd>/.clavue/runs/<run_id>/result.json` 和指针 `latest.json`;`--result-json <path>` 可改位置,`CLAVUE_RESULT_JSON=0` 关闭。只给启动器发 SIGTERM 时,重新拉起的子进程不再变成孤儿,也会写入 aborted(#166)
12
+ - 类型错误从 1974 个清到 0:补齐 React 类型、消息与 SDK 控制消息的真实类型、缺失模块的声明;`npm run typecheck` 改为零容忍,发布前检查和 pre-push 钩子(`npm run hooks:install` 启用)都会跑。打包产物除下面的修复外逐字节不变
13
+ - 修复远程 MCP(SSE/HTTP)连接失败时错误处理自身崩溃(`UnauthorizedError` 未导入),需要 OAuth 的服务器现在能进入授权流程
14
+ - 修复 `-p` 运行设了 `model:` 的自定义 agent、又没传 `--model` 时崩溃
15
+ - 修复交互模式 MCP 预取合并结果一直没被用上(品牌改名误改了变量名)
16
+ - 修复进入/退出 worktree、worktree 退出对话框和会话中 /resume 时抛 TypeError(`getPlansDirectory.cache` 不存在)
17
+ - 新目标出现后,已作废的计划不再喂给复查;复查记录标为 `plan-hash: unbound`
18
+ - 代码索引固定在项目根目录,模型 `cd` 进子目录不再触发整库重建(每次 1.4–1.6 GB 内存尖峰);会话记忆目录也固定在项目根目录,不再分裂成两份
19
+ - 首字超时回退跳过同一家族的别名(deepseek-flash 不再"切换"到 cn:deepseek-v4.1-flash);在备用模型上遇到 404/5xx 时继续切到下一个备用,网关形态的 404 提示"上游暂时不可用",不再说模型可能不存在
20
+ - 任务目标不再被 "b"、"ok"、"继续" 这类短回复占住;"开始按照……生产"、"忽略……" 等中文指令能替换目标
21
+ - 复查里 `- P0:` 形式的条目也算严重问题;复查被判为通过时不再保留 `must-fix:` 行
22
+ - 同一回合不再先提示"已写完、停止调用工具"又提示"回合未结束、继续"
23
+ - 一次读到多个 Ctrl+C 时不再把控制字符插进输入框;提交时剔除残留的控制字符
24
+ - 会话记忆 12000 token 预算在代码里强制执行,超出时保留标题和最新部分
25
+
26
+ ## 1.54.3 - 2026-10-18
27
+
28
+ - 回合进行中,输入框上方始终有一行实时状态:转圈、阶段、当前步骤和用时,例如「⠙ 复查中 · 运行 grep -rn foo · 1m12s」。以前流式输出一旦停顿,转圈就消失("文字就是反馈"),复查阶段等侧模型时最后一行是 ●,看起来像已经结束
29
+ - 30 秒没有新输出时加一句「仍在运行 · Esc 取消 · 输入消息可接管」;有排队消息时显示「本轮结束后发送 N 条」
30
+ - 复查没在宽限时间内回来、转到后台时,显示「后台复查中」和用时,复查结束后消失
31
+ - 回退把主模型落到复查模型上时,换用复查链里的下一个模型或规划模型来复查,不再跳过复查
32
+ - 上下文长度 400(网关说明了输入多少)时,按剩余空间缩小 max_tokens 重试;以前按窗口算出的 32000 比失败的那次还大
33
+ - 自动堆快照:堆超过 CLAVUE_HEAP_SNAPSHOT_MAX_MB(3072)或 RSS 超过物理内存一半时跳过;文件名带时间戳,不再覆盖上一次
34
+ - IDE 扩展自动安装:`code`/`cursor`/`windsurf` 不在 PATH 上时不再尝试(以前每次都报 ENOENT)
35
+ - 测试使用临时的配置目录,测试里的事件不再写进真实的 ~/.clavue
36
+
9
37
  ## 1.54.2 - 2026-10-18
10
38
 
11
39
  - 代码索引不再撑爆内存:按 .gitignore(含子目录里的 .gitignore 和 .git/info/exclude)选文件,跳过 node_modules、dist、build、.venv*、site-packages、__pycache__ 等依赖与构建目录、锁文件和压缩包;内存里只留位置和向量,正文按需从 sqlite 读;大仓库(yousheng)建索引的峰值 RSS 从约 5.9 GB 降到约 0.2 GB
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.54.2/install.sh | bash -s -- 1.54.2
88
+ curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.54.4/install.sh | bash -s -- 1.54.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.54.2 --version
99
+ npx -y clavue-v1@1.54.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.54.2/install.sh | bash -s -- 1.54.2
111
+ curl -fsSL https://unpkg.com/clavue-v1@1.54.4/install.sh | bash -s -- 1.54.4
112
112
  ```
113
113
 
114
114
  ```bash
@@ -312,8 +312,15 @@ bench) but stays flat.
312
312
  ```bash
313
313
  CLAVUE_RENDER_COMMIT=0 # 1.52 rendering (no commit to scrollback)
314
314
  CLAVUE_HEAP_SNAPSHOT_MB=1536 # heap size that triggers one diagnostics heap snapshot; 0 = off
315
+ CLAVUE_HEAP_SNAPSHOT_MAX_MB=3072 # 1.54.3: no automatic snapshot above this heap
315
316
  ```
316
317
 
318
+ Since 1.54.3 the automatic snapshot is also skipped while RSS is over half of
319
+ physical RAM (serialising a multi-GB heap roughly doubles memory for the
320
+ duration), a skipped sample does not use up the one snapshot per process, and
321
+ the files are named `<session>-auto-<UTC timestamp>` so earlier evidence is
322
+ kept. The diagnostics JSON is written either way.
323
+
317
324
  Known trade-off: rows already in scrollback are not re-wrapped after a width change.
318
325
 
319
326
  ### Waiting on a background command (#159, 1.53.0)
@@ -396,9 +403,23 @@ When a limit stops the build, the index is partial and `CodebaseSearch` says
396
403
  so in its result (which limit, how many files), so a miss is not read as
397
404
  "not in the repo"; use Grep for the rest.
398
405
 
406
+ ### Live status line (1.54.3)
407
+
408
+ While a turn runs, one line above the input always shows a spinner, the
409
+ stage, the current step and the elapsed time, for example
410
+ `⠙ 复查中 · 运行 grep -rn foo · 1m12s`. Before 1.54.3 the spinner hid itself
411
+ while streamed text was on screen, so a reply that stalled mid-stream, or a
412
+ review stage waiting on the side model, looked finished. After 30 s without
413
+ new output the line adds `仍在运行 · Esc 取消 · 输入消息可接管`; with queued
414
+ messages it adds `本轮结束后发送 N 条`. When the turn ends while a review is
415
+ still running in the background (the review is carried to the next turn),
416
+ the line shows `后台复查中` with its time until the review settles. While the
417
+ regular spinner row is visible, the line adds only the stall and queue hints.
418
+ It has its own one-second timer, so only that line re-renders.
419
+
399
420
  ### All `CLAVUE_*` settings
400
421
 
401
- [`scripts/env-inventory.md`](scripts/env-inventory.md) lists all 581 `CLAVUE_*`
422
+ [`scripts/env-inventory.md`](scripts/env-inventory.md) lists all 582 `CLAVUE_*`
402
423
  names read in source, with the files that read them and any literal default.
403
424
  It is generated, and `npm run check:env` fails when a name is added or removed
404
425
  without regenerating it.
@@ -614,13 +635,15 @@ NODE_OPTIONS="--max-old-space-size=12288" clavue-v1
614
635
 
615
636
  `clavue-v1 --version` stays on the zero-load fast path and does not restart.
616
637
 
638
+ Headless `-p` / `--print` runs write `<cwd>/.clavue/runs/<run_id>/result.json` and a `latest.json` pointer when they finish (success, failure, limit, or signal abort). `--result-json <path>` writes the result somewhere else; the pointer still lands in the project's `.clavue/runs/`. Set `CLAVUE_RESULT_JSON=0` to turn both files off. Fields, status rules, and the abort path: [Result JSON](./docs/result-json.md).
639
+
617
640
  ## CLI Entry Points
618
641
 
619
642
  Version check:
620
643
 
621
644
  ```bash
622
645
  npx -y clavue-v1 --version
623
- npx -y clavue-v1@1.54.2 --version
646
+ npx -y clavue-v1@1.54.4 --version
624
647
  # available after a global install
625
648
  clavue-v1 --version
626
649
  ```
@@ -896,7 +919,7 @@ npm run release:preflight
896
919
  - `npm run check:env`: compares every `CLAVUE_*` name in source with `scripts/env-inventory.json` / `.md`; regenerate with `node scripts/check-env-vars.mjs --write`
897
920
  - `npm run check:tool-schemas`: checks each tool's input schema against its source definition
898
921
  - `npm run check:architecture`: decrease-only snapshot in `scripts/architecture-baseline.json` — `src/query.ts` and every runtime file over 400 lines are frozen at their line count, and a new file crossing 400 fails; `--update-baseline` only lowers numbers
899
- - `npm run typecheck`: TypeScript 7 native full check (~2s) gated by a decrease-only error baseline in `scripts/typecheck-baseline.json`
922
+ - `npm run typecheck`: TypeScript 7 native full check (~2s); zero tolerance — it fails on any type error (`scripts/typecheck-baseline.json` stays empty). Also enforced by `npm run release:preflight` and by the `.githooks/pre-push` hook (enable once per clone with `npm run hooks:install`).
900
923
  - `npm run lint`: Biome correctness rules scoped to changed files (`npm run lint:all` for the full tree)
901
924
  - `npm run check:branding`: decrease-only ratchet (`scripts/branding-baseline.json`) on user-facing upstream Claude Code references in `src/` — changelog links, `clau.de` short links, product names in copy; `--list` prints every hit
902
925
  - `npm run test:fast`: curated high-signal suite (query loop, rendering, compaction and the continue-picker / open-work tests first) under a 20s wall-clock budget; run it before new work