clavue-v1 1.85.3 → 1.85.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
@@ -4,6 +4,22 @@ clavue / 克拉维 发布说明。本文件在构建时注入运行时,驱动
4
4
 
5
5
  格式约定(`parseChangelog` 依赖):二级标题为 `## <版本> - <日期>`,条目以 `- ` 开头,一行一条,命令与模型名保留英文。
6
6
 
7
+ ## 1.85.5 - 2026-11-26
8
+
9
+ - **统一 Switch Model `/model` & `/effort` 四槽位交互选择器、移除默认多会话并发排队/告警及 `#337` 交接白板与 `--resume` 前缀固化跟进:**
10
+ - **统一 Switch Model `/model` & `/effort` 四槽位选择器**:`SlotModelPicker` 与 `/model` 合并为统一选择器,支持实时搜索过滤、`(current)` 当前模型标记、`Main`/`Light`/`Plan`/`Review`(`主`/`轻`/`规`/`审`)四槽位逐槽位配置与 `i of N` 计数、内联 Effort 滑块(`auto / low / medium / high / max`)及 `↑/↓`、`←/→`、`tab`、`enter`、`esc` 快捷键;`/effort` 新增 `/effort <slot> <level|auto>` 与 `/effort status` 分槽位持久化。
11
+ - **移除默认多会话并发告警与 `-p` 排队拒绝(改为显式环境变量按需启用)**:删除 `v1SessionRegistry.ts` 默认输出的「同一网关上有 N 个 clavue 会话在同时运行」警告提示(保留 `registerLiveSession` 心跳注册供 `BashTool/killScope.ts` 与测试使用);`sessionWriterLock.ts` 默认放行 `-p` 与交互式并发会话(`isPrintAdmitBypassed` 在 `CLAVUE_PRINT_ADMIT_AT` 未设置或为空时返回 `true`),仅在显式配置 `CLAVUE_PRINT_ADMIT_AT` 或 `CLAVUE_INTERACTIVE_WARN_AT` 时启用并发排队或告警。
12
+ - **`#337` 交接白板位置与 `--resume` 历史前缀固化跟进**:将 `交接白板(自 N)` 从 `options.appendSystemPrompt`(`src/cli/print.ts`)迁至尾部 user turn(`src/QueryEngine.ts`),避免击穿后续 `tools` 与历史轮次 KV Cache;在 `sessionStorage.ts` `isLoggableMessage()` 中持久化 `RESUME_PREFIX_ATTACHMENT_TYPES` 并在 `v1UserContextPin.ts` / `api.ts` / `context.ts` 锁定首条 `<system-reminder>` 前缀不被 `--resume` 覆盖。
13
+ - English: Unified Switch Model `/model` & `/effort` 4-slot picker, opt-in session concurrency, and `#337` handoff whiteboard + `--resume` prefix pin follow-up: merges `/model` and `/effort` into a single Switch Model picker with search, `(current)` marker, per-slot `Main`/`Light`/`Plan`/`Review` rows, `i of N` counters, inline Effort slider (`auto/low/medium/high/max`), and `/effort <slot> <level|auto>` / `/effort status`; removes the default gateway concurrent-session warning (`v1SessionRegistry.ts`, keeping `registerLiveSession` for `killScope`) and makes `-p` admission queuing (`CLAVUE_PRINT_ADMIT_AT`) and interactive warnings (`CLAVUE_INTERACTIVE_WARN_AT`) strictly opt-in; and moves `交接白板(自 N)` out of `options.appendSystemPrompt` into the tail user turn while preserving `RESUME_PREFIX_ATTACHMENT_TYPES` across `--resume` so vLLM prefix caching stays intact.
14
+
15
+ ## 1.85.4 - 2026-11-26
16
+
17
+ - **长上下文流式超时与 SSE 心跳透传、vLLM Prefix Cache 前缀固化、稳定 `x-clavue-session` 路由亲和及 `clavue-5.5-fast` 防过早取消(配套 #337):**
18
+ - **长上下文首字节/首字超时放宽与 `: keep-alive` SSE 心跳透传**:`firstByteTimeout.ts` 将 `clavue-5.5` 首字节超时曲线提升至 `90s + 1s/1k`(上限 180s,35K 输入 = 125s),`clavue-5.5-fast` 提升至 `45s + 0.5s/1k`(上限 90s);`v1StreamFirstToken.ts` 新增 `firstTokenTimeoutMsForRequest` 按 `system + tools + messages` 估算 token 动态放大长上下文首字超时;`sseEncoding.ts` 与 `streamTranslator.ts` 兼容 `\r\n` 分帧并在 Chat Completions / Responses 流式翻译路径中透传 `: keep-alive\n\n` 心跳给外层空闲看门狗,避免 30–50s 冷 prefill 误触发 `client_gone (context canceled)`。
19
+ - **固化 `/v1/chat/completions` 系统前缀与历史轮次以提升 Prefix Cache 命中率**:`requestBuilders.ts` 在 `buildChatCompletionsRequest` 关闭每轮将最新 `<system-reminder>` 提升进 `messages[0]` 的改写逻辑(保持各自 user turn 原位、`/v1/responses` 不变),使 `messages[0]` 与历史消息跨轮字节级不可变;`reasoningAndText.ts` 的 `flattenSystemPrompt(..., { stripBillingHeader: true })` 在 OpenAI `/v1/chat/completions` 剥离按首条消息指纹生成的 `x-anthropic-billing-header:`,恢复跨会话与 `/compact` 后的前缀缓存复用。
20
+ - **稳定透传 `x-clavue-session` / `prompt_cache_key` 与消除 `clavue-5.5-fast` 1–2s 过早取消**:`client.ts` 默认请求头新增 `x-clavue-session` 并修复 `built.__sessionHeaders = requestHeaders` 缓存命中原地刷新缺陷;`headers.ts` 自动从 `x-claude-code-session-id` 回填 `x-clavue-session`;`clavueSdk.ts` 与 `nativeDispatch.ts` 全路径透传 `prompt_cache_key`;`queryLoopImpl.ts` 的 `tier_assist` 补齐 `skipSystemPromptPrefix: true` 消除 ~908 token 膨胀并将 `light` 槽超时与 `PLAN_ASSIST_TIMEOUT_MS` 统一提升至 `3_500ms`。
21
+ - English: Long-context streaming resilience, vLLM Prefix Cache stabilization, `x-clavue-session` affinity, and `clavue-5.5-fast` abort fixes (#337): raises `clavue-5.5` first-byte timeout to `90s + 1s/1k` (cap 180s; 125s at 35K tokens) and `clavue-5.5-fast` to `45s + 0.5s/1k` (cap 90s), adds request-aware `firstTokenTimeoutMsForRequest` scaled by full `system + tools + messages` token estimates, and forwards upstream `: keep-alive\n\n` SSE heartbeat comments (LF & CRLF) through `streamTranslator.ts` to keep the idle watchdog alive during cold prefill; stops `/v1/chat/completions` from promoting per-turn `<system-reminder>` blocks into `messages[0]` and strips Anthropic's per-session `x-anthropic-billing-header:` via `flattenSystemPrompt({ stripBillingHeader: true })` so `messages[0]` and prior turns stay byte-immutable for vLLM Prefix Caching; emits and refreshes `x-clavue-session` in `client.ts` (fixing `built.__sessionHeaders = requestHeaders`), backfills it in `createResponsesHeaders`, propagates `prompt_cache_key` through `clavueSdk.ts` and `nativeDispatch.ts`, and sets `skipSystemPromptPrefix: true` + `3_500ms` timeout on `tier_assist` (`PLAN_ASSIST_TIMEOUT_MS = 3_500`) to stop 0.5–1s premature `client_gone` aborts on `clavue-5.5-fast`.
22
+
7
23
  ## 1.85.3 - 2026-11-26
8
24
 
9
25
  - **`clavue update` 升级体验降噪与实时进度、滞后镜像自动回退、冷历史超大 Transcript 自愈归档与一键清理:**
package/README.md CHANGED
@@ -95,7 +95,7 @@ clavue-v1 --version
95
95
  Pin a version:
96
96
 
97
97
  ```bash
98
- curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.85.3/install.sh | bash -s -- 1.85.3
98
+ curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.85.5/install.sh | bash -s -- 1.85.5
99
99
  ```
100
100
 
101
101
  Upgrade later with `clavue update` or `clavue-v1 update` (startup check / `/update` also prefer the public v1 release, then fall back to npm).
@@ -106,7 +106,7 @@ Upgrade later with `clavue update` or `clavue-v1 update` (startup check / `/upda
106
106
  npm install -g clavue-v1
107
107
  # or one-shot:
108
108
  npx -y clavue-v1
109
- npx -y clavue-v1@1.85.3 --version
109
+ npx -y clavue-v1@1.85.5 --version
110
110
  ```
111
111
 
112
112
  One-line global install via the package (npm / unpkg):
@@ -118,7 +118,7 @@ curl -fsSL https://unpkg.com/clavue-v1/install.sh | bash
118
118
  Install a specific version globally:
119
119
 
120
120
  ```bash
121
- curl -fsSL https://unpkg.com/clavue-v1@1.85.3/install.sh | bash -s -- 1.85.3
121
+ curl -fsSL https://unpkg.com/clavue-v1@1.85.5/install.sh | bash -s -- 1.85.5
122
122
  ```
123
123
 
124
124
  ```bash