clavue-v1 1.85.0 → 1.85.2

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,24 @@ clavue / 克拉维 发布说明。本文件在构建时注入运行时,驱动
4
4
 
5
5
  格式约定(`parseChangelog` 依赖):二级标题为 `## <版本> - <日期>`,条目以 `- ` 开头,一行一条,命令与模型名保留英文。
6
6
 
7
+ ## 1.85.2 - 2026-11-25
8
+
9
+ - **JEV + Harness 最佳实践五支柱升级、云端 JEV 自动降级、Grok 对标单行日记重构与 WebGL/视觉交付门禁强化:**
10
+ - **五大类型化 JEV + Harness 闭环**:新增 `src/runtime/v1JevBashSafety.ts` 并接入 `permissions.ts`,只读与常规本地测试走 0ms 快路径,灰区即将放行的 Shell 命令发单包 3-Noul(`delete_or_overwrite`/`network_exfil`/`rewrite_git_history`)门禁,任一 `> 0.5` 转人工审批;`v1DeliveryChecks.ts` 提取 `<=240` 字符真实验证尾部 `outputTail` 接入 `v1JevRuntime.ts`(并缩减至 `901` 行)捕捉假绿测试;新增 `v1JevMergeGate.ts` 接入 `v1WorktreeLand.ts`,Phase 2 合并前对含删除/高删行/敏感配置的分支发 `destructive_merge` `Noul`(`> 0.3` 停靠且不触碰 `repoRoot`);新增 `v1JevSearchRank.ts` 接入 `GrepTool`,`>= 15` 命中文件时单包 `SCORE(0-3)` 置顶高相关目标;新增 `v1HandoffContract.ts` 为 `SwarmTool`/`v1SwarmRegistry.ts` 落地 8 字段结构化 `HANDOFF` 契约并醒目提示 `DO-NOT-ASSUME` / `UNCERTAINTIES`;新增 `v1JevStats.ts` 接入 `clavue provider doctor` 展示 JEV 调用量、命中率、p50/p95 延迟、低置信占比与子门禁统计。
11
+ - **云端 JEV 瞬态故障自动降级与零警告 Lint**:新增 `src/runtime/v1JevFallback.ts`,在云端 JEV 遭遇 5xx/502/超时/熔断时自动降级到用户自有 Provider 的 `/v1/chat/completions`(严格凭证隔离、独立每主机熔断、12s 超时、不劫持 401/403/429/abort),并清理全仓变更集 41 条 Biome 警告实现 0 error / 0 warning。
12
+ - **对标 Grok Build 的紧凑单行 TUI 日记与防回卷重影修复**:新增 `src/utils/diaryGrokBurst.ts` 并重构 `DiaryBurstRow.tsx`/`diaryActionGroups.ts`/`AssistantTextMessage.tsx`,将工具批次统一为恒定单行 `◈`/`✗` 摘要(编辑文件与红绿 `+N -M` 置前、去重文件阅读、修复「查阅 1 次搜索」病句、静默吸收元工具告别 `… 另有 N 步操作 …`);修复 `Messages.tsx` 与 `ink.tsx` 在活跃回合及 `clearTerminal` 时的 scrollback 鬼影重复打印。
13
+ - **浏览器 `EVAL` 实探、亮度空白帧检测与视觉交付门禁**:升级 `BrowserUseTool` 支持页面 `EVAL` 实探与 Rec.709 亮度/空白帧探针,新增 `v1VisualDeliveryGate.ts` 与 `v1ReadWorkingSet.ts` 强化长会话工作集与 3D/WebGL/UI 真实渲染验收,并压缩 `noFollowUpPartG.ts` 与 `v1JevRuntime.ts` 架构体量。
14
+ - English: Five-pillar JEV + Harness best-practice upgrade, resilient JEV fallback, Grok-benchmarked single-line TUI diary & scrollback dedupe, and visual/WebGL delivery gates: adds gray-zone Bash 3-Noul JEV safety gating (`v1JevBashSafety.ts` + `permissions.ts`, 0ms safe/read-only fast-path, `noul > 0.5` parks for approval), verification `outputTail` evidence (`v1DeliveryChecks.ts` + `v1JevRuntime.ts`, shrinking `v1JevRuntime.ts` to 901 lines), neutral worktree destructive-merge JEV gate (`v1JevMergeGate.ts` + `v1WorktreeLand.ts`, `noul > 0.3` parks before mutating `repoRoot`), high-hit `>= 15` file Grep JEV `SCORE` Top-K reranking (`v1JevSearchRank.ts` + `GrepTool.ts`), 8-field structured Swarm `HANDOFF` contract surfacing `DO-NOT-ASSUME`/`UNCERTAINTIES` (`v1HandoffContract.ts` + `SwarmTool.ts`), and Prompt-10 JEV audit stats in `provider doctor` (`v1JevStats.ts`); adds credential-isolated provider chat fallback for transient JEV 5xx/timeout/circuit-open outages (`v1JevFallback.ts`) and clears all Biome lint warnings; overhauls TUI tool bursts into a constant 1-line `◈`/`✗` Grok-style summary (`diaryGrokBurst.ts`) while fixing scrollback ghost duplication in `Messages.tsx` & `ink.tsx`; and adds `Browser(EVAL)`, Rec.709 blank-frame/luminance probes, `v1VisualDeliveryGate.ts`, and `v1ReadWorkingSet.ts`.
15
+
16
+ ## 1.85.1 - 2026-11-24
17
+
18
+ - **`clavue-5.5` / `clavue-5.5-fast` 与 Drex v1.5 JEV 全链路客户端适配 + 6 项核心 Bug 修复(#334 / #335 / #336 / #290 / #293 / #294):**
19
+ - **`clavue-5.5`(Inkling-2-Mini)与 `clavue-5.5-fast`(Qwen3.5-9B 非思考)原生支持**:注册精确上下文与输出预算(`clavue-5.5` 128K / 40K、`clavue-5.5-fast` 65,536 / 16,384),阻止 131072 占位值膨胀 65K/128K 注册窗口;保留流式 `stream_options.include_usage` 与 `tool_choice: "auto"`;将 `clavue-5.5` 默认思考深度降至 `medium`/`low`(避免默认 `high` 烧空输出)、纳入客户端思考预算看门狗并排除非思考 `clavue-5.5-fast`;修复 `streamTranslator.ts` / `responseBuilders.ts` 中 `getString(reasoning_content) ?? getString(reasoning)` 静默丢弃 Inkling `reasoning` 字段的高危缺陷;补齐 Inkling 分词密度估算、92K 预压缩线、快首字节超时曲线、`inkling` 跨家族画像、任务能力表与分类器 4s 先验。
20
+ - **Drex v1.5 `clavue-jev` 适配与防盲放护栏**:自托管 `/v1/systemone` 端点原样保留并识别为单次 Pack(仅官方 `api.clavue.com` 重写 `/v1/judge`);`composeDelivery` 与 `maybeJudgeDelivery` 增加纯代码 `truncatedMutations` 护栏,改动列表截断(`mutations_total > mutations.length`)时拒绝盲目 `ship` 并强制触发审阅。
21
+ - **修复传输方言、认证覆盖与 CLI 解析缺陷(#334 / #335 / #336)**:严格尊重 `CLAVUE_API_DIALECT=openai_completions`(含 `snapshot=none` 与 `api.clavue.com`),修复 `clavueSdk.streamMessage` 与 `api.clavue.com` 上 `/v1/responses` 404/405/501 回退 `/v1/chat/completions`、保留端点 `unsupported_route` 提示不再误报模型不存在、并确保错误及 `--json-schema` 失败输出非空 `result`(#334);新增 `explicitRoutingEnv.ts` 保护 shell env 与 `--settings` 传入的 `CLAVUE_BASE_URL` / `CLAVUE_API_KEY` / `CLAVUE_API_DIALECT` 不被旧 `userSettings` 或不匹配 active profile 凭证/快照/routeId 覆盖(#335);将 `--tools <tools>` 改为可重复单值选项,修复 `-p --tools "" "<prompt>"` 吞掉位置提示词(#336)。
22
+ - **补齐 3 处运行时主路径接线(#293 / #294 / #290)**:主对话写入 `SessionStorage.appendToFile` 与 `flushPendingSync` 接入 100MB `archiveTranscriptIfOverSoftCap` 轮转(#293);`loadSessionFile` 接入 `findSessionFileAcrossProjects` 支持跨目录 `--resume <uuid>` 并记录 cwd 差异提示(#294);独立 `-p` 模式(`print.ts` + `runResult.ts`)接通 `noteModelWaitStart` / `noteFirstByte` 与 `createSelfStopWatchdog` 自停看门狗(#290)。
23
+ - English: Full `clavue-5.5` (Inkling-2-Mini), `clavue-5.5-fast` (Qwen3.5-9B non-thinking), and Drex v1.5 JEV client support plus 6 bug fixes (#334, #335, #336, #290, #293, #294): registers `clavue-5.5` (128K/40K) and `clavue-5.5-fast` (65,536/16,384) with 131072-placeholder guards, `stream_options.include_usage`, `medium`/`low` default effort & reasoning-budget guard for `clavue-5.5`, fixes `getString(reasoning_content) ?? getString(reasoning)` silently dropping Inkling `reasoning`, adds Inkling token density, 92K pre-send compact cap, tight TTFT curves, `inkling` family/capability/4s classifier priors, preserves self-hosted `/v1/systemone` single-POST Pack and adds a pure-code `truncatedMutations` ship-refusal guard; honors explicit `CLAVUE_API_DIALECT=openai_completions` even with `snapshot=none` and on `api.clavue.com`, fixes `/v1/responses` 404/405/501 fallback to `/v1/chat/completions` on both streaming and non-streaming requests, surfaces endpoint-404 errors clearly and populates non-empty `result` on error/--json-schema failures (#334); isolates explicit env/`--settings` `CLAVUE_BASE_URL` & `CLAVUE_API_KEY` overrides from stale saved profiles and cached snapshots (#335); changes `--tools <tools>` to a repeatable single-arg option so positional `[prompt]` is not consumed (#336); and wires live 100MB transcript rotation into `appendToFile`/`flushPendingSync` (#293), cross-project UUID lookup into `loadSessionFile` (#294), and `noteModelWaitStart`/`noteFirstByte`/`createSelfStopWatchdog` into standalone `-p` (#290).
24
+
7
25
  ## 1.85.0 - 2026-11-24
8
26
 
9
27
  - **过程性经验记忆 + Harness 触发式按需召回 + `pass^k` 一致性评测闭环(实现 #332 / #333):**
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.0/install.sh | bash -s -- 1.85.0
98
+ curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.85.2/install.sh | bash -s -- 1.85.2
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.0 --version
109
+ npx -y clavue-v1@1.85.2 --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.0/install.sh | bash -s -- 1.85.0
121
+ curl -fsSL https://unpkg.com/clavue-v1@1.85.2/install.sh | bash -s -- 1.85.2
122
122
  ```
123
123
 
124
124
  ```bash