clavue-v1 1.54.2 → 1.54.3

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,17 @@ clavue / 克拉维 发布说明。本文件在构建时注入运行时,驱动
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## 1.54.3 - 2026-10-18
10
+
11
+ - 回合进行中,输入框上方始终有一行实时状态:转圈、阶段、当前步骤和用时,例如「⠙ 复查中 · 运行 grep -rn foo · 1m12s」。以前流式输出一旦停顿,转圈就消失("文字就是反馈"),复查阶段等侧模型时最后一行是 ●,看起来像已经结束
12
+ - 30 秒没有新输出时加一句「仍在运行 · Esc 取消 · 输入消息可接管」;有排队消息时显示「本轮结束后发送 N 条」
13
+ - 复查没在宽限时间内回来、转到后台时,显示「后台复查中」和用时,复查结束后消失
14
+ - 回退把主模型落到复查模型上时,换用复查链里的下一个模型或规划模型来复查,不再跳过复查
15
+ - 上下文长度 400(网关说明了输入多少)时,按剩余空间缩小 max_tokens 重试;以前按窗口算出的 32000 比失败的那次还大
16
+ - 自动堆快照:堆超过 CLAVUE_HEAP_SNAPSHOT_MAX_MB(3072)或 RSS 超过物理内存一半时跳过;文件名带时间戳,不再覆盖上一次
17
+ - IDE 扩展自动安装:`code`/`cursor`/`windsurf` 不在 PATH 上时不再尝试(以前每次都报 ENOENT)
18
+ - 测试使用临时的配置目录,测试里的事件不再写进真实的 ~/.clavue
19
+
9
20
  ## 1.54.2 - 2026-10-18
10
21
 
11
22
  - 代码索引不再撑爆内存:按 .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.3/install.sh | bash -s -- 1.54.3
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.3 --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.3/install.sh | bash -s -- 1.54.3
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.
@@ -620,7 +641,7 @@ Version check:
620
641
 
621
642
  ```bash
622
643
  npx -y clavue-v1 --version
623
- npx -y clavue-v1@1.54.2 --version
644
+ npx -y clavue-v1@1.54.3 --version
624
645
  # available after a global install
625
646
  clavue-v1 --version
626
647
  ```