clavue-v1 1.84.0 → 1.85.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
@@ -4,6 +4,24 @@ clavue / 克拉维 发布说明。本文件在构建时注入运行时,驱动
4
4
 
5
5
  格式约定(`parseChangelog` 依赖):二级标题为 `## <版本> - <日期>`,条目以 `- ` 开头,一行一条,命令与模型名保留英文。
6
6
 
7
+ ## 1.85.1 - 2026-11-24
8
+
9
+ - **`clavue-5.5` / `clavue-5.5-fast` 与 Drex v1.5 JEV 全链路客户端适配 + 6 项核心 Bug 修复(#334 / #335 / #336 / #290 / #293 / #294):**
10
+ - **`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 先验。
11
+ - **Drex v1.5 `clavue-jev` 适配与防盲放护栏**:自托管 `/v1/systemone` 端点原样保留并识别为单次 Pack(仅官方 `api.clavue.com` 重写 `/v1/judge`);`composeDelivery` 与 `maybeJudgeDelivery` 增加纯代码 `truncatedMutations` 护栏,改动列表截断(`mutations_total > mutations.length`)时拒绝盲目 `ship` 并强制触发审阅。
12
+ - **修复传输方言、认证覆盖与 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)。
13
+ - **补齐 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)。
14
+ - 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).
15
+
16
+ ## 1.85.0 - 2026-11-24
17
+
18
+ - **过程性经验记忆 + Harness 触发式按需召回 + `pass^k` 一致性评测闭环(实现 #332 / #333):**
19
+ - **M1 一致性评测地基(`bench/lib/passPowK.mjs` + `bench/run.mjs`)**:新增 `--runs <k>`、`--retry-blocked <m>` 与 `--memory-dir <path>`;自动汇总 `Avg@k / pass@k / pass^k` 与任务级 `avgInputTokens / avgOutputTokens / avgCostUsd / avgTurns / avgModelMs`,并将 `401/502/503/429` 导致的 `blocked` 任务独立列示于 `blockedTasks`,不污染 `pass^k` 分母。
20
+ - **M2 `memdir` 过程性经验层与效果归因遥测(`memoryTypes.ts` / `memoryScan.ts` / `memoryRelevance.ts` / `memoryUseTelemetry.ts`)**:`MEMORY_TYPES` 新增 `'procedural'` 并支持结构化 `trigger_signals`(含 `eval_fp:<12位哈希>`、`error_family:`、`command:`、`tool:`、`keyword:`,上限 12 条);常规开局检索默认排除 `procedural` 实现首轮零 Token 膨胀;`memoryUseTelemetry` 扩展 `outcome`(`recovered` / `unresolved` / `aborted`)归因且不重复计入 `usedCount`。
21
+ - **M3 Harness 触发式按需召回与 `selfHealLoop` Pre-Escalation(`v1ProceduralScan.ts` / `v1ProceduralRecall.ts` / `selfHealLoop.ts` / `postToolsTail.ts` / `queryLoopImpl.ts`)**:顺利回合零磁盘 I/O 与零首轮税;仅在 `toolLoopWarn`、`repeat_red`、`stall_replan` 及 `selfHealLoop` 的 `retry_muscle` 阶段(升级昂贵 `escalate_brain` / Arena 之前)以毫秒级本地检索注入 Top-2(≤ 3000 chars、会话去重)Playbook;严格采用尾部 `user` `isMeta: true` 追加,经 `v1CachePrefixGuard` 验证 KV Cache 前缀零破坏;同时将 `queryLoopImpl.ts` 从 4736 行缩减至 4718 行并锁定新基线。
22
+ - **M4 Verifier 认证恢复弧线自动沉淀 & Dream 治理(`v1ProceduralDistill.ts` / `postRunSelfHealAndArena.ts` / `consolidationPrompt.ts` / `extractMemories/prompts.ts`)**:对 `attempt >= 2` / `escalationsUsed >= 1` 后经外部 Verifier 或绿灯检查认证 `accept` 的真实技术失败恢复弧线,按 `eval_fp` 幂等生成 ≤ 40 行 / ≤ 1.5 KB、经 `redactSecretsForPersistence` 脱敏的 `procedural` Playbook;过滤纯 `unverified_code_mutation` 琐碎重试,严格隔离 `abort_and_distill` 仅进 `eval-graph`;Dream Phase 5 新增 `procedural` 效果门控治理。
23
+ - English: Procedural Experience Memory, Harness-Triggered Recall & `pass^k` Consistency Eval (#332 / #333): adds `--runs <k>`, `--retry-blocked <m>`, `--memory-dir <path>`, blocked-task exclusion, and `Avg@k / pass@k / pass^k` + token/cost/turn summaries to `bench/run.mjs` (`bench/lib/passPowK.mjs`); extends `src/memdir/` with `type: procedural`, structured `trigger_signals` (including `eval_fp:<12-char>`), zero opening-turn bloat filtering, trigger ranking, and non-double-counting `outcome` attribution in `memoryUseTelemetry.ts`; adds millisecond-scale bounded local recall (`v1ProceduralScan.ts` + `v1ProceduralRecall.ts`, toggleable via `CLAVUE_PROCEDURAL_RECALL`) wired into `selfHealLoop.ts` Pre-Escalation (`retry_muscle` before `escalate_brain`/Arena), `postToolsTail.ts` (`repeat_red` / `stall_replan`), and `queryLoopImpl.ts` (`toolLoopWarn`, shrinking `queryLoopImpl.ts` from 4736 to 4718 lines) strictly via append-only tail `user` meta messages with zero `v1CachePrefixGuard` breaks; adds `v1ProceduralDistill.ts` wired into `postRunSelfHealAndArena.ts` to idempotently distill externally verified `attempt >= 2` technical recoveries (redacted via `redactSecretsForPersistence`, anti-noise gated, `abort_and_distill` isolated to `eval-graph`) plus outcome-gated `procedural` Dream Phase 5 governance.
24
+
7
25
  ## 1.84.0 - 2026-11-23
8
26
 
9
27
  - **通用 Agent OS 底座升级 + 盲协议多 Agent ACP 驱动(`clavue-v1 peers`):**
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.84.0/install.sh | bash -s -- 1.84.0
98
+ curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.85.1/install.sh | bash -s -- 1.85.1
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.84.0 --version
109
+ npx -y clavue-v1@1.85.1 --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.84.0/install.sh | bash -s -- 1.84.0
121
+ curl -fsSL https://unpkg.com/clavue-v1@1.85.1/install.sh | bash -s -- 1.85.1
122
122
  ```
123
123
 
124
124
  ```bash