clavue-v1 1.82.1 → 1.83.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 +28 -0
- package/README.md +3 -3
- package/dist/cli-main.js +520 -500
- package/dist/cli.js +2 -2
- package/dist/mao-command.js +1 -1
- package/dist/openai-responses-adapter.js +3 -3
- package/dist/provider-router.js +3 -3
- package/dist/provider-setup.js +1 -1
- package/docs/README.md +52 -45
- package/docs/clavue-provider-model-best-practices.md +63 -279
- package/docs/compact-token-budget.md +8 -0
- package/docs/evals/README.md +3 -4
- package/docs/feishu.md +68 -238
- package/docs/modality-surfaces-maturity-2026-11-15.md +1 -1
- package/docs/next-round.md +33 -42
- package/docs/official-api-clavue-com.md +1 -1
- package/docs/release-notes-v1.83.0.md +27 -0
- package/docs/release-notes-v1.83.1.md +40 -0
- package/docs/release-notes-v1.83.2.md +26 -0
- package/docs/result-bridge-live-view-design.md +2 -2
- package/docs/tui-feed/feed.json +46 -4
- package/package.json +1 -1
- package/docs/bench/replay-1.58.0.md +0 -12
- package/docs/bench/replay-1.59.0.md +0 -12
- package/docs/bench-built.md +0 -58
- package/docs/cloud-memory-repo-deploy-2026-10-12.md +0 -85
- package/docs/cloud-memory-repo-server-dream-reference.ts +0 -418
- package/docs/evals/world-class/keep-discard-ledger.md +0 -135
- package/docs/next-modality-todolist-2026-11-15.md +0 -75
- package/docs/next-round-plan-2026-11-15.md +0 -137
- package/docs/next-round-todolist-2026-11-15.md +0 -72
- package/docs/next-round-top20-2026-11-19.md +0 -35
- package/docs/ops-modality-settings-plan-2026-11-15.md +0 -168
- package/docs/prefix-cache-investigation-2026-10-13.md +0 -184
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,34 @@ clavue / 克拉维 发布说明。本文件在构建时注入运行时,驱动
|
|
|
4
4
|
|
|
5
5
|
格式约定(`parseChangelog` 依赖):二级标题为 `## <版本> - <日期>`,条目以 `- ` 开头,一行一条,命令与模型名保留英文。
|
|
6
6
|
|
|
7
|
+
## 1.83.2 - 2026-11-23
|
|
8
|
+
|
|
9
|
+
- **TUI 日记打印与流式渲染热修:**
|
|
10
|
+
- **已落定思考行不再卡黄色「思考中」**:修复 `src/components/Message.tsx` 将已结束 `thinking` 块误传 `live={true}` 的问题(实时流式思考由 `Messages.tsx` 单独渲染),思考完成后正确显示青色 `▸ 思考 7.7s · N tokens`。
|
|
11
|
+
- **清理 `● 查阅` 摘要中的原始正则转义符**:在 `src/utils/diaryActionGroups.ts` 新增 `cleanSearchPatternForDiary()`,将 `\.sidebar__footer\|\.avatar` 等 `Grep` 正则转义清理为人类可读的 `.sidebar__footer|.avatar`(URL / glob 与 `ctrl+o` 原始详情保持不变)。
|
|
12
|
+
- **重复多行列表/粘连标题实时去重与重试复位**:升级 `src/utils/diaryDedupe.ts` 的 `collapseRepeatedDiaryBlocks()`(保护围栏代码块,折叠重复段落、带短标题前缀的重复列表体、重复长列表项与孤立重复标题)并接入 `diaryStreamPreview()`;在 `src/utils/messages.ts` 的 `tombstone` 与 `stream_request_start` 显式清空 `onStreamingText`。
|
|
13
|
+
- **修复短视口长回复顶部 `●` 与首段标题被裁丢及流式列宽偏差**:在 `src/ink/ink.tsx` 新增 `isLiveViewportOverflowing()` 并于 `src/components/Messages.tsx` 回合落定空闲且活区溢出时整段刷入终端 scrollback,避免 `cropFrameTop` 永久隐藏长回复开头;同时修正 `<StreamingMarkdown>` 宽度为 `columns - 6` 并补齐 `flexShrink={0}`。
|
|
14
|
+
- English: TUI diary printing & streaming rendering hotfix: fixes settled thinking blocks in `Message.tsx` staying stuck on yellow live `▸ 思考中` (now `live={false}` while live streaming thinking stays on `Messages.tsx`); strips raw regex escape noise (`\.`, `\|`, `\b`, `\s+`) from compact `● 查阅` / `Explored` diary chips via `cleanSearchPatternForDiary()`; upgrades `collapseRepeatedDiaryBlocks()` to collapse repeated heading-glued bullet sections, long list items, and orphaned headings (preserving fenced code blocks) and wires it into live `diaryStreamPreview()` plus clears `onStreamingText` on `tombstone` / `stream_request_start`; flushes overflowing settled answers cleanly into terminal scrollback (`isLiveViewportOverflowing()`) so `cropFrameTop` never permanently hides opening `●` bullets/headings on shorter terminals, and aligns `<StreamingMarkdown>` width (`columns - 6`) and `flexShrink={0}`.
|
|
15
|
+
|
|
16
|
+
## 1.83.1 - 2026-11-23
|
|
17
|
+
|
|
18
|
+
- **安全与验真守卫统一、验证命令裂脑修复、文档归档脱敏与死代码清理(含 1.83.0 完整证明携带式机器原生引擎):**
|
|
19
|
+
- **统一写工具真相源(`src/runtime/writeToolNames.ts`)并修复高危绕过**:将 20+ 处散落的 `WRITE_TOOLS` 集合统一收敛至 `CANONICAL_FILE_WRITE_TOOLS`(完整覆盖 `Edit` / `Write` / `MultiEdit` / `FileEdit` / `FileWrite` / `NotebookEdit` / `ApplyEdit` / `FastApply`),堵住 `ApplyEdit`/`FastApply` 绕过未信任仓库写入降级(`repoTrust.ts`)、凭据路径确认(`credentialPathGuard.ts`)、目标账本防护(`goalLedgerGuard.ts`)与并发写串行化(`parallelFileEdits.ts`)的漏洞;同步修复 `loopHelpers`、`v1DeliveryFacts`、`v1ClaimCheck`、`v1ClosingReview`、`v1RereadGate`、`v1ReviewRisk`、`v1ReviewPolicy` 与 `v1HopsPrompts` 对 `ApplyEdit`/`FastApply` 变更的追踪与审查盲区。
|
|
20
|
+
- **修复验证命令与 Shell 写检测裂脑**:修复 `v1VerificationCommands.ts` 中 `String.raw` 双重转义正则 bug(此前导致 `node --check` 与 `node test.cjs` 漏判)并补齐 `make test`;让 `falseSuccessGateFacts.ts` 复用规范 `isVerificationCommand` 与 `bashCommandWritesFiles`,根治 `pnpm/yarn/bun test`、`npm run typecheck`、`biome check` 误拒以及 `pnpm test > /tmp/test.log` 假冒仓库写入的漏洞;在 `writeScopeBash.ts` 补齐 `exec`/`doas`/`xargs` 包装词防绕过。
|
|
21
|
+
- **修复功能开关裂脑与 ESM Bug**:修复 `v1Flags.ts` 原生 ESM 下 `require('fs')` 静默抛错与 `APPLY_EDIT` 默认值矛盾;在 `v1ProgressMachine`、`tools.ts`、`resourceClaims`、`v1JevCalibration` 中同时兼容规范环境变量名(`CLAVUE_PROGRESS_MACHINE` / `CLAVUE_CODE_INDEX` / `CLAVUE_PARALLEL_WRITES` / `CLAVUE_JEV_CALIBRATED`)与旧 `CLAVUE_WP*` 别名。
|
|
22
|
+
- **文档归档脱敏与零引用残留清理**:从 git 历史还原此前被误覆盖的 `docs/feishu.md`;将 12 份已完成历史计划、旧评测快照及涉内网/运维路径文档归档至 `docs/archive/`(自动排除出 npm 包),提取 `prefix-cache` 现行统计口径至 `docs/compact-token-budget.md`,并清理 `docs/clavue-provider-model-best-practices.md` 中的个人机器快照;删除 14 个零引用残留/备份/遮蔽 stub 文件(含根目录误提交的 `splitList.js`、`init-legacy.ts.bak`、6 个遮蔽 `src/` 的根 stub 及 6 个死模块)。
|
|
23
|
+
- English: Security & truth-gate unification, verification/shell-write regex fixes, documentation archival/redaction, and dead-code cleanup (shipping together with the complete 1.83.0 Proof-Carrying Machine-Native Engine): introduces `src/runtime/writeToolNames.ts` (`CANONICAL_FILE_WRITE_TOOLS`) across 20+ security, proof, review, and parallel-edit gates — closing `ApplyEdit`/`FastApply` bypasses in `repoTrust.ts` (untrusted repo downgrade), `credentialPathGuard.ts`, `goalLedgerGuard.ts`, and `parallelFileEdits.ts`, and restoring `ApplyEdit`/`FastApply` visibility across `loopHelpers`, `v1DeliveryFacts`, `v1ClaimCheck`, `v1ClosingReview`, `v1RereadGate`, `v1ReviewRisk`, `v1ReviewPolicy`, and `v1HopsPrompts`; fixes the double-escaped `String.raw` regex bug in `v1VerificationCommands.ts` (restoring `node --check` / `node test.cjs` and adding `make test`), delegates `falseSuccessGateFacts.ts` to canonical `isVerificationCommand` + `bashCommandWritesFiles` (eliminating false refusals on `pnpm/yarn/bun test`, `npm run typecheck`, `biome check` and blocking `/tmp` redirect fake mutations), and adds `exec`/`doas`/`xargs` wrappers to `writeScopeBash.ts`; fixes ESM `require('fs')` and split-brain `CLAVUE_*` / `CLAVUE_WP*` flag aliases; restores corrupted `docs/feishu.md`, archives 12 historical/ops docs out of the npm publish surface into `docs/archive/`, refreshes active docs to `1.83.1`, and deletes 14 zero-reference dead/stray/shadowing files.
|
|
24
|
+
|
|
25
|
+
## 1.83.0 - 2026-11-23
|
|
26
|
+
|
|
27
|
+
- **机器原生双平面、外挂可信验证器、CEGIS 最小反例闭环与 Merkle 证明携带凭据(Proof-Carrying Engine):**
|
|
28
|
+
- **机器静默态与依赖符号胶囊(`--machine` / `--contract <path>` / `machineContractPlane.ts`)**:无头 `-p` 与 ACP `_meta.{machine,contract}` 支持机器原生执行模式(抑制长篇散文总结、仅输出 `<512B` 结构化提交回执);加载 JSON / LMP-IR 契约文件自动提取 `owns[]`、`readonly[]` 锁(自动将契约文件与 `oracle_table` 锁为只读),并将只读公共依赖 `refs[]` 的导出类型签名与 SHA-256 预注入为 `<2.4KB` 依赖符号胶囊,省去 27B 工人多轮探索性 `Read`。
|
|
29
|
+
- **只读路径硬锁(`--readonly-paths` / `CLAVUE_READONLY_PATHS`)**:`writeScopeGuard.ts` 支持独立或叠加的只读否定路径锁(永远压过正向 `--write-scope` 通配符),即使在 `--always-approve` 下也严禁写模型篡改外部测试集、预言机或契约文件,根治“自写自评”。
|
|
30
|
+
- **外挂零 LLM 可信验证器与 CEGIS 最小反例自修(`--verifier-cmd` / `externalVerifier.ts` / `selfHealLoop.ts` / `postRunSelfHealAndArena.ts`)**:支持挂载任意外部独立验证命令(标准 JSON 协议 `{ ok, verifier, checks_run, counterexamples, cert }`,或自动从 `tsc` / `node --test` / `vitest` / `jest` / `pytest` / `cargo` / `go test` 日志抽取最小失败见证);未通过时向 `--self-heal` 注入 `<200` Token 的紧凑 `REPAIR_CEGIS` 定点反例指令,若最终仍被外部验证器证伪则诚实返回非零退出码 `1`。
|
|
31
|
+
- **密码学 Merkle 证明证书(`proofCertificate.ts` → `proof.cert.json` + `receipt.json.proof_cert`)**:自动绑定 `contract_sha256`、`verifier_sha256`、`readonly_manifest_sha256`、所有改写源码的 `files_merkle_root`、验证结论与评分卡签发 `proof.cert.json`,提供毫秒级零 LLM 独立验签 `verifyProofCertificate()` 与父级 `<4KB` 聚合 `aggregateMerkleProofTree()`,支撑 10 → 10,000 并发子 CLI 零源码重读合入。
|
|
32
|
+
- **顺手修复 `clavue update` 降级与冷握手超时**:`src/cli/update.ts` 改用 `gte(APP_UPDATE_VERSION, latestVersion)` 防止本地较新构建被误降级,并将 `npm view` 超时从 `5s` 放宽至 `15s`。
|
|
33
|
+
- English: Proof-Carrying, Machine-Native Agent Engine milestone introducing four generic, zero-pollution Agent OS primitives for both headless `-p` and ACP warm pools: (1) `--machine` (`CLAVUE_MACHINE_MODE`) silent prose mode and `--contract <path>` (`CLAVUE_CONTRACT_FILE`) JSON/LMP-IR loader (`machineContractPlane.ts`) with automatic contract/oracle read-only locking and pre-resolved `<2.4KB` dependency symbol capsules (`refs[]`); (2) `--readonly-paths` (`CLAVUE_READONLY_PATHS`) hard read-only locks in `writeScopeGuard.ts` that always override positive write-scope globs even under `--always-approve`; (3) `--verifier-cmd` (`CLAVUE_VERIFIER_CMD`) independent zero-LLM external verifier protocol (`externalVerifier.ts`) consuming structured JSON counterexamples or extracting minimal failures from `tsc`/`node:test`/`vitest`/`jest`/`pytest`/`cargo`/`go` logs to drive `<200`-token `REPAIR_CEGIS` directives in `--self-heal` (exiting non-zero whenever an external verifier refutes); (4) cryptographic `proof.cert.json` (`proofCertificate.ts`) binding contract/verifier/readonly/file Merkle SHA-256 digests with millisecond `verifyProofCertificate()` and `<4KB` `aggregateMerkleProofTree()` aggregation attached to `receipt.json` & ACP receipts; plus fixes preventing `clavue update` from downgrading newer local builds (`gte`) and raising `npm view` timeout from 5s to 15s.
|
|
34
|
+
|
|
7
35
|
## 1.82.1 - 2026-11-22
|
|
8
36
|
|
|
9
37
|
- **启动器自愈切换高版本 Node、同源 `npm` 更新绑定与 `install.sh` 自动寻址:** 新增 `src/utils/nodeVersionBootstrap.ts` 并接入薄启动器 `src/entrypoints/launcher.ts`(仅 18 KB,兼容 Node 18/20 解析执行):当终端 `$PATH` 靠前位置的旧版 Node(如 `~/.local/bin/node` `v20.18.1`)通过 `#!/usr/bin/env node` 劫持拉起 `clavue` / `clavue update` 时,不再直接退出报错,而是按优先级自动寻址本机合格的 `Node >= 22.18.0`(`CLAVUE_NODE_BIN` → `clavue` 同目录/全局安装前缀旁同源 `node` → `$PATH` 靠后 `node` → `nvm`/`fnm`/`volta`/`asdf`/`mise`/Homebrew 最新合格版本),带 `CLAVUE_NODE_REEXEC=1` 防递归锁与信号透传无缝重拉,并将目标 `node` 的 `bin` 目录置顶到子进程 `PATH`;若整机确无合格 Node,报错信息现明确指出被命中的旧 `node` 路径与 `CLAVUE_NODE_BIN` 覆盖提示。同步升级 `src/utils/autoUpdater.ts` 通过 `resolveSiblingNpmInvocation()` 绑定当前 `process.execPath` 同源 `npm` 与 `PATH`,杜绝 `clavue update` 更新错目录或命中旧 `npm`;升级 `install.sh` 在 `check_node` 阶段自动探测并切换至本机合格 Node >= 22.18.0 完成安装。
|
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.
|
|
98
|
+
curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.83.2/install.sh | bash -s -- 1.83.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.
|
|
109
|
+
npx -y clavue-v1@1.83.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.
|
|
121
|
+
curl -fsSL https://unpkg.com/clavue-v1@1.83.2/install.sh | bash -s -- 1.83.2
|
|
122
122
|
```
|
|
123
123
|
|
|
124
124
|
```bash
|