clavue-v1 1.62.23 → 1.63.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 CHANGED
@@ -6,6 +6,32 @@ clavue / 克拉维 发布说明。本文件在构建时注入运行时,驱动
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## 1.63.1 - 2026-10-29
10
+
11
+ 1.63.1 堵住 1.63.0 切窗后仍漏进下一窗的两类脏状态:占位目标被写成 Context notes,以及软截止后的后台 Bash 一直显示进行中。
12
+ - **目标:** `继续上一轮任务(目标见上文或交接摘要)`、`继续 升级`、以及嵌套的 `<system-reminder>` / `Task frame` 不再成为会话目标或 context-notes 的 Goal。拒绝时保留上一份具体目标,没有就留空,不拿继续套话顶上。「继续修好登录页的 401」和「继续,把 notes 污染门禁补上」仍然算目标。
13
+ - **切窗:** 硬切、摘要软切、恢复读盘走同一套不可用目标判定。切的同时清掉占位任务帧(与 reread 账本同一时机),软切不再把这帧包进 system-reminder 带进下一窗。会话记忆压缩成功、以及摘要超时后的恢复,同样清这帧。硬切交接里只剩 Task frame 外壳的 learnings 改写成最近文件,不把外壳写进下一窗。
14
+ - **后台 Bash:** 软截止只发 still-running 通知,不杀进程。任务从进行中列表、等待列表和 compact 附件里退出,工作集标 settled。切窗时已经结束或句柄已空的后台 shell 同样退出列表;还在跑的不提前结算。
15
+ - **新窗口日记:** 本进程启动前就已经停滞的兄弟 run 不再出现在新窗口。本进程期间变慢的 run 仍按 20 秒停滞、60 分钟放弃的原时钟。
16
+ - 回归:`tests/16224-notes-pollution.test.mjs`,`tests/1601-a-run-events.test.mjs`,`tests/1573-a-background-soft-deadline.test.mjs`,`tests/1574-f-soft-deadline-no-wake.test.mjs`
17
+ - English: a window cut no longer keeps a continuation placeholder or task-frame chrome as the goal, context notes, or learnings. Session-memory compaction and summary-timeout recovery clear the same placeholder frame. A soft-deadline background shell leaves the running list without being killed, and a new window does not list sibling runs that stalled before this process started.
18
+
19
+ ## 1.63.0 - 2026-10-29
20
+
21
+ 1.63.0 按竞品同构收紧长会话:**提速靠有界送模,磁盘硬切只当安全网**;并拒绝把宿主外壳和纯「继续」写进切窗笔记。1.62.23 只把空串和固定占位当不合格,`<system-reminder>…Task frame…继续上一轮任务` 这种非空垃圾仍能过门,冷却一过就再切,下一窗又去重读同一份 git diff。
22
+ - **最佳逻辑(对齐 Claude Code / Codex / Cursor / Cline):** ① 每轮只送最新 boundary 之后的工作窗,禁止整段归档回灌;② **软切优先**——token 增长再摘要,不靠时钟连环切;③ **磁盘硬切是安全网**(默认 32MB),防 jsonl 无限胀,不是日常压缩手段;④ 切前笔记必须具体,填不出就 hold,宁可不切;⑤ 切后漂移探针 + 笔记置顶两轮 + 同会话单写者;⑥ 回看顺序 memory → Turn Index → 按 id 取归档;⑦ Jev 只做宿主闸,不占开发 combo 槽。
23
+ - **切后重读:** 磁盘硬切 / token-budget 硬切 / 摘要软切都会清掉 `readFileState` 与 reread 账本。旧 Read 已不在工作窗时,不再用「未变更文件禁止重读」挡住摘要与交接文件;`ContextHistory`/`ContextNotes` 在默认磁盘硬切开启时可用(即使 `CLAVUE_COMPACT_TOKEN_BUDGET` 关闭)。
24
+ - 切窗后 `/rewind` 不再空:从 transcript 补回跨窗用户提示;恢复按 uuid,缺席时按写入顺序从磁盘 hydrate(transcript 消息是 Map,不能当数组 slice)。非全屏也不再把消息数组换成只剩 boundary。
25
+ - **软切:** 摘要 autocompact 写 `compact_boundary`,不带 `tokenBudgetReset`。下一窗加载仍从最新 boundary 开始。再触发看 token 增长(8000 或阈值的 8%),不是时钟。
26
+ - **硬切:** `archive_size`(默认 **32MB**,冷却 60 秒;原 16MB 偏激进、长会话切太勤)或 token-budget / context_limit。`CLAVUE_ARCHIVE_CUT_BYTES` 可覆盖,`0` 关闭。工具、子代理、stage 还在跑就延后。同一次切只发一条 boundary。
27
+ - **笔记合同:** 当前目标、进度、下一步必须具体。`<system-reminder>`、`Task frame`、宿主外壳、纯「继续 / 继续上一轮任务 / keep going / continue previous task」,以及只有 `(not recorded: the agent did not save notes…)` 的决定,与空笔记同级拒绝。「继续修好登录」这种带具体事项的句子仍然算目标。
28
+ - **写入:** 用户原话、未完成待办、最近文件里,只有本身不是外壳、也不是纯继续的文本才填进 context-notes(目标、进度、下一步、决定、itemIds,可选 `sourceTurnIds`)。三者都没有就 hold,不写污染文本,也不发 boundary。
29
+ - **下一窗:** `loadTranscriptWorkingWindow` 只留最新 `compact_boundary` 之后的行。硬切笔记在切后前两轮置顶。旧行仍可用 ContextHistory 按 windowId 回看。
30
+ - **Turn Index:** 旁路 `<transcript>.turns.jsonl`(`tN` + 不超过 20 字),不进模型。`sourceTurnIds` 挂在笔记上,归档后按窗口回查。
31
+ - **Jev:** 只当宿主闸(时机与笔记质检)。不改用户的 combo 槽。拒绝、超时、空响应不挡住已经合格的写入。只有落盘失败才降级切,日记标红。1.62.23 的空笔记、占位、写失败降级、漂移探针、单写者都不放宽。
32
+ - 回归:`tests/16224-notes-pollution.test.mjs`;`tests/16223-cut-gates.test.mjs` 仍绿
33
+ - English: long-session policy matches peers — speed comes from a bounded working window (soft token compact first); the disk gate is a **32 MB** safety net (was 16 MB; `CLAVUE_ARCHIVE_CUT_BYTES`). After any cut, reread/`readFileState` ledgers clear so unchanged summary files can be read again; ContextHistory stays available when the disk gate is on even if the token-budget flag is off. A hard cut also rejects system-reminder chrome / continuation-only goals. Prefer hold over a polluted roll. Jev stays host-only.
34
+
9
35
  ## 1.62.23 - 2026-10-29
10
36
 
11
37
  1.62.23 修切窗后空笔记续跑旧计划,以及同一会话两个 interactive 进程抢写。
package/README.md CHANGED
@@ -86,7 +86,7 @@ clavue-v1 --version
86
86
  Pin a version:
87
87
 
88
88
  ```bash
89
- curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.62.23/install.sh | bash -s -- 1.62.23
89
+ curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.63.1/install.sh | bash -s -- 1.63.1
90
90
  ```
91
91
 
92
92
  Upgrade later with `clavue update` or `clavue-v1 update` (startup check / `/update` also prefer the public v1 release, then fall back to npm).
@@ -97,7 +97,7 @@ Upgrade later with `clavue update` or `clavue-v1 update` (startup check / `/upda
97
97
  npm install -g clavue-v1
98
98
  # or one-shot:
99
99
  npx -y clavue-v1
100
- npx -y clavue-v1@1.62.23 --version
100
+ npx -y clavue-v1@1.63.1 --version
101
101
  ```
102
102
 
103
103
  One-line global install via the package (npm / unpkg):
@@ -109,7 +109,7 @@ curl -fsSL https://unpkg.com/clavue-v1/install.sh | bash
109
109
  Install a specific version globally:
110
110
 
111
111
  ```bash
112
- curl -fsSL https://unpkg.com/clavue-v1@1.62.23/install.sh | bash -s -- 1.62.23
112
+ curl -fsSL https://unpkg.com/clavue-v1@1.63.1/install.sh | bash -s -- 1.63.1
113
113
  ```
114
114
 
115
115
  ```bash
@@ -717,7 +717,7 @@ Version check:
717
717
 
718
718
  ```bash
719
719
  npx -y clavue-v1 --version
720
- npx -y clavue-v1@1.62.23 --version
720
+ npx -y clavue-v1@1.63.1 --version
721
721
  # available after a global install; both names are this package
722
722
  clavue --version
723
723
  clavue-v1 --version