clavue-v1 1.70.3 → 1.70.5

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,29 @@ clavue / 克拉维 发布说明。本文件在构建时注入运行时,驱动
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## 1.70.5 - 2026-11-09
10
+
11
+ 修复 headless 后台任务退出与验证证据识别,收敛无进展探索,并恢复回归基准的可判定历史。
12
+
13
+ - **后台交接:** 用户明确要求 detached 后台运行并立即返回时,headless 不再等待该 shell;普通构建、测试和 agent 仍按原语义等待完成。
14
+ - **诚实验证:** `node test.cjs` / `check.cjs` / `accept.js` 的成功退出计为验证证据;探查文件是否存在不再被误判为声称修改,真实未落盘的多文件声明仍会被阻止。
15
+ - **有界调查与交付:** 实现/调试任务连续无产出读取后重复提醒收敛;新验证通过后再次请求直接交付,避免重复已通过检查。单步里程碑关闭后解除一次性 scope。
16
+ - **回归基准:** 补齐三阶段 Git 历史、种子失败检查与任务目录隔离,使 `regression-hunt` 可通过真实提交差异定位问题;验收标准未降低。
17
+ - **验证:** 40 项验证证据/诚实性测试及 19 项退出/进度测试通过;类型检查、架构检查通过。有效历史回归基准正常 `success` 退出,480.4 秒、13 轮;主要剩余瓶颈为模型生成延迟,尚不能宣称追平 Grok。
18
+ - English: Honor explicit detached-shell handoff in headless mode, recognize direct Node acceptance checks, stop treating inspection-only file mentions as mutation claims, repeat bounded investigation and delivery steers, and restore meaningful regression-hunt history. Ordinary background build/test and agent waits remain unchanged; model latency remains the main performance gap.
19
+
20
+ ## 1.70.4 - 2026-11-08
21
+
22
+ 修正本机长时 session 实测暴露的计量口径、槽位降级、上下文裁剪与工具入参问题,并写清缓存修复的方言边界。
23
+
24
+ - **用量按最终计费帧统一:** 统计缓存命中率时按 requestId 取最终计费帧的 `input_tokens` / `cache_read_input_tokens`,不再累加流式占位帧(占位帧把整段 prompt 记为未缓存、缓存读为 0,会低估命中率);hop 成功与失败均记录槽位和缓存复用率遥测。
25
+ - **plan 槽硬失败软降级:** `没有可换目标` 按 (slot, model, reason) 每进程只报一次,返回 `degraded` 标记而非每轮刷屏;失败 hop 补发 `tengu_api_error` 遥测,不再留下零用量空洞。
26
+ - **上下文感知证据裁剪:** 累计上下文 ≥ 64KB 时,单次读取投影下限从 40KB 降到 8KB;上下文较小或未传时行为与 1.70.3 完全一致(默认不变、可回退)。
27
+ - **工具入参窄归一化:** `WaitFor.timeout_ms`(含 `timeout` 别名)的整数字符串转数字;`AskUserQuestion.questions` 的单个对象或 JSON 数组字符串包成数组。非整数、非 JSON 输入原样保留,仍走标准校验报错。
28
+ - **方言边界写清:** 1.70.3 的 `prompt_cache_key` 与 light 关闭思考仅覆盖官方 SKU 的 chat/responses 适配器路径;BYOK / Anthropic Messages 原生 `cache_control: ephemeral` 不走这些字段,两类 usage 口径不可混加。详见 `docs/prefix-cache-investigation-2026-10-13.md` 第 8 节。
29
+ - **验证:** 新增最终计费帧、失败 hop 降级、证据裁剪、工具入参 4 个回归测试;完整 `npm test` 6059 tests / 6056 pass / 0 fail(3 skipped)、`npm run typecheck` 0 错、架构上限与工具 schema 检查通过。本版不包含 `r170/integrate` 工作树中的未完成集成改动。
30
+ - English: Unify usage on the final billing frame per requestId so streaming placeholder frames no longer understate cache reuse; dedupe dead-end plan-slot failures into a soft `degraded` mark with hop telemetry; trigger read projection at 8KB once accumulated context exceeds 64KB (default behaviour unchanged otherwise); narrowly coerce WaitFor/AskUserQuestion tool arguments; and document that the 1.70.3 cache-key fix applies only to official SKU chat/responses adapter paths, not to BYOK native `cache_control: ephemeral`.
31
+
9
32
  ## 1.70.3 - 2026-11-08
10
33
 
11
34
  修复 light 辅助槽未真正关闭思考,并为 Chat Completions 增加稳定的会话缓存亲和键与可观测的缓存复用率。
@@ -13,6 +36,7 @@ clavue / 克拉维 发布说明。本文件在构建时注入运行时,驱动
13
36
  - **light 真正轻量:** `clavue-2.1-fast` / `clavue-24a` 等官方 fast SKU 在 light 辅助请求中不再沿用主模型的思考豁免,`disableThinking:true` 现在会发送 `enable_thinking:false`;主模型 `clavue-2.1` 的思考行为保持不变。
14
37
  - **缓存亲和:** `/v1/chat/completions` 请求随会话携带稳定的 `prompt_cache_key`(Responses 行为不变),作为支持该字段的上游网关的前缀缓存亲和提示;不虚构缓存命中,不支持该字段的网关可忽略。
15
38
  - **缓存可观测:** 每次调用日志新增 `cacheReuseRate`(按槽位记录 input / cache_read),便于区分 main、light、plan、review 的缓存命中与重复上下文开销。
39
+ - **适用边界:** 上述缓存键与关闭思考仅作用于官方 SKU 的 chat/responses 适配器路径;BYOK / Anthropic Messages 原生 `cache_control: ephemeral` 不走这些字段,两类 usage 口径不可混加。命中率须按 requestId 取最终计费帧统计,详见 `docs/prefix-cache-investigation-2026-10-13.md` 第 8 节。
16
40
  - **验证:** 新增真实请求体、思考参数、缓存键和复用率回归测试;fast 套件、类型检查、架构检查与完整 `npm test` 通过。生产代理已确认原样透传请求体,未改动线上网络或服务;缓存命中率恢复需在发布后以同会话连续请求验证。
17
41
  - English: Light helper calls on official fast SKUs now actually disable reasoning, Chat Completions carries a stable per-session prompt cache affinity key, and per-call logs record cache reuse per slot. Main-model thinking is unchanged. The relay forwards the request body unchanged; the cache hit-rate gain itself still needs live same-session verification.
18
42
 
package/README.md CHANGED
@@ -90,7 +90,7 @@ clavue-v1 --version
90
90
  Pin a version:
91
91
 
92
92
  ```bash
93
- curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.70.3/install.sh | bash -s -- 1.70.3
93
+ curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.70.5/install.sh | bash -s -- 1.70.5
94
94
  ```
95
95
 
96
96
  Upgrade later with `clavue update` or `clavue-v1 update` (startup check / `/update` also prefer the public v1 release, then fall back to npm).
@@ -101,7 +101,7 @@ Upgrade later with `clavue update` or `clavue-v1 update` (startup check / `/upda
101
101
  npm install -g clavue-v1
102
102
  # or one-shot:
103
103
  npx -y clavue-v1
104
- npx -y clavue-v1@1.70.3 --version
104
+ npx -y clavue-v1@1.70.5 --version
105
105
  ```
106
106
 
107
107
  One-line global install via the package (npm / unpkg):
@@ -113,7 +113,7 @@ curl -fsSL https://unpkg.com/clavue-v1/install.sh | bash
113
113
  Install a specific version globally:
114
114
 
115
115
  ```bash
116
- curl -fsSL https://unpkg.com/clavue-v1@1.70.3/install.sh | bash -s -- 1.70.3
116
+ curl -fsSL https://unpkg.com/clavue-v1@1.70.5/install.sh | bash -s -- 1.70.5
117
117
  ```
118
118
 
119
119
  ```bash
@@ -725,7 +725,7 @@ Version check:
725
725
 
726
726
  ```bash
727
727
  npx -y clavue-v1 --version
728
- npx -y clavue-v1@1.70.3 --version
728
+ npx -y clavue-v1@1.70.5 --version
729
729
  # available after a global install; both names are this package
730
730
  clavue --version
731
731
  clavue-v1 --version