clavue-v1 1.76.2 → 1.82.0
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 +33 -0
- package/README.md +3 -3
- package/dist/cli-main.js +1079 -929
- package/dist/cli.js +2 -2
- package/dist/mao-command.js +1 -1
- package/dist/openai-responses-adapter.js +10 -10
- package/dist/provider-router.js +13 -13
- package/dist/provider-setup.js +1 -1
- package/docs/release-notes-v1.80.0.md +39 -0
- package/docs/release-notes-v1.80.1.md +21 -0
- package/docs/release-notes-v1.81.0.md +46 -0
- package/docs/release-notes-v1.82.0.md +41 -0
- package/docs/tui-feed/feed.json +60 -4
- package/install.sh +21 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,39 @@ clavue / 克拉维 发布说明。本文件在构建时注入运行时,驱动
|
|
|
4
4
|
|
|
5
5
|
格式约定(`parseChangelog` 依赖):二级标题为 `## <版本> - <日期>`,条目以 `- ` 开头,一行一条,命令与模型名保留英文。
|
|
6
6
|
|
|
7
|
+
## 1.82.0 - 2026-11-22
|
|
8
|
+
|
|
9
|
+
- **Shell 防挂死、编码安全截断、管道真退出码、全破坏性守卫与终端状态恢复(Round 1):** `Shell.ts` 默认注入 `NON_INTERACTIVE_SHELL_ENV`(`GIT_PAGER=cat`、`PAGER=cat`、`GH_PAGER=cat`、`GIT_TERMINAL_PROMPT=0`、`DEBIAN_FRONTEND=noninteractive`、`PIP_NO_INPUT=1`、`HOMEBREW_NO_AUTO_UPDATE=1`、`NPM_CONFIG_UPDATE_NOTIFIER=false`,同时保留 `envOverrides` 显式覆盖优先),根治分页器与交互提示挂死;`BashTool/utils.ts` 新增 UTF-16 代理对安全切片(`safeSliceHead`/`safeSliceTail`)杜绝 emoji/生僻汉字截断触发 API `HTTP 400`,检测并摘要高 NUL/二进制输出且清理残留 `\x00`,并为 `$TMPDIR/clavue-cmd-logs/` 增加 64 文件 / 24h TTL 自动回收(`pruneSpillLogs`);`verifyTee.ts` + `BashTool.tsx` 新增 `ensurePipefailForCheckPipeline`,为 `npm test | tail -n 20`、`cargo test | tee out.log` 等管道验收命令自动启用 `set -o pipefail`(避开 `head` 防 `SIGPIPE` 误伤),终结管道掩盖失败退出码 `0` 的假绿漏洞;`destructiveActionGuard.ts` 补齐 `git reset --hard`、`git clean -fd`/`-fdx`、`git push --force`/`-f`、`git checkout -- .`/`git restore .`、`chmod -R 777`、`curl|sh`/`wget|bash` 与数据库 `DROP`/`TRUNCATE`/`redis-cli FLUSHALL` 确认守卫;`gracefulShutdown.ts` 退出时安全恢复 `process.stdin.setRawMode(false)` 并注册幂等 `process.once('exit')` 兜底防止异常退出卡死终端。
|
|
10
|
+
- **文件状态机零漏洞与并发 Git Lock 重试 / 脏主树保护(Round 2):** 范围 `Read`(`<= 4MB`)现同步计算完整文件 `contentHash`,`FileWriteTool` 的 `validateInput` 与 `call` 全面接入 `isWriteTargetStale` 堵死 1s-mtime 同秒外部改写覆写漏洞;`FileEditTool` / `multiHunkApply` / `ApplyEditTool` / `FastApplyTool` 全链路无损保留 UTF-8 BOM(`\uFEFF`)并支持首行无感匹配;`FileStateCache` 在 macOS/Windows 大小写不敏感文件系统自动折算查找键并保留原始路径大小写;`writeFileSyncAndFlush_DEPRECATED` 原子临时文件引入随机十六进制后缀(`makeAtomicTempPath`)消除同毫秒碰撞;`ApplyEditTool` / `FastApplyTool` 在调用快改模型前拦截压缩占位符与陈旧文件(`errorCode: 7`)避免白跑一轮 LLM;`planAtomicMultiHunkEdits` 增加 `<= 64` 块上限与重复 hunk 零写入原子拒收;新增 `gitLockRetry.ts` 为 `v1WorktreeLand` / `arenaRunner` / `worktreePool` 注入瞬态 `.git/index.lock` 指数抖动退避重试,`landWorktreeBranches` 合入前先检查 `repoRoot` 未提交改动是否与目标车道重叠,避免破坏本地未提交代码。
|
|
11
|
+
- **全厂商上下文溢出与限流 `Retry-After` 恢复、跨零点 KV 缓存锁、预算前置熔断与 EPIPE/Schema 加固(Round 3):** `errors.ts` 与 `retryClassification.ts` 全面扩展识别 Gemini/Vertex、AWS Bedrock、DeepSeek、Qwen/DashScope、OpenRouter/Grok、Ollama/llama.cpp 与 SGLang 的上下文溢出报错,自动走压缩恢复而非盲目重试或崩盘;`retryDelay.ts` 与 `withRetry.ts` 支持小数秒与 RFC 7231 HTTP-date 格式 `Retry-After`,并按优先级解析 `retry-after-ms`、`retry-after`、`x-ratelimit-reset-requests` 与 `x-ratelimit-reset-tokens`(Go 时长格式);`context.ts` 按会话锁定 `currentDate`(`getPinnedLocalISODate`),仅在 `/clear` 或 `/compact` 时刷新,防止长程跨零点任务静默击穿 KV 前缀缓存;`QueryEngine.ts` 新增请求前 `isUsdBudgetExhausted` 预算门禁杜绝超支后再多发一轮 API 请求,且 `runReceiptExtras.ts` 稳定映射 `budget_usd`/`max_turns`;`process.ts` 幂等处理 `EPIPE`/`ERR_STREAM_DESTROYED` 安静退出管道,`SyntheticOutputTool` 精确输出 `enum`/`additionalProperties`/`required` 缺失与非法字段明细。
|
|
12
|
+
- English: Hardening milestone closing all 20 top competitor pain points & overlooked edge-case details across three rounds: (Round 1) non-interactive `Shell` env defaults (`GIT_PAGER`/`PAGER`/`GH_PAGER`/`GIT_TERMINAL_PROMPT`/`DEBIAN_FRONTEND`/`PIP_NO_INPUT`/`HOMEBREW_NO_AUTO_UPDATE`/`NPM_CONFIG_UPDATE_NOTIFIER`), UTF-16 surrogate-safe truncation (`safeSliceHead`/`safeSliceTail`), binary/NUL output sanitization + bounded spill-log pruning (`pruneSpillLogs`), automatic `set -o pipefail` for piped verify commands (`ensurePipefailForCheckPipeline`, excluding `head` to avoid SIGPIPE), expanded `destructiveActionGuard` (destructive `git`, `chmod -R 777`, `curl|sh`, SQL `DROP`/`TRUNCATE`, Redis `FLUSH*`), and idempotent stdin `setRawMode(false)` + exit fallback in `gracefulShutdown`; (Round 2) ranged-read full-file `contentHash` (`<= 4MB`), `isWriteTargetStale` in `FileWriteTool`/`ApplyEditTool`/`FastApplyTool`, lossless UTF-8 BOM (`\uFEFF`) preservation across `Edit`/`MultiHunk`/`ApplyEdit`/`FastApply`, case-insensitive `FileStateCache` lookup on darwin/win32, collision-free random atomic temp paths (`makeAtomicTempPath`), pre-hop compaction-stub & staleness guards in `ApplyEdit`/`FastApply`, `MAX_MULTI_HUNK_EDITS = 64` + duplicate-hunk rejection, and transient `.git/index.lock` backoff retry (`gitLockRetry.ts`) + dirty `repoRoot` overlap precheck in `landWorktreeBranches`; (Round 3) universal multi-provider context-overflow recognition (Gemini/Vertex, Bedrock, DeepSeek, Qwen/DashScope, OpenRouter/Grok, Ollama/llama.cpp, SGLang), fractional-second & RFC 7231 HTTP-date `Retry-After` + `retry-after-ms` & `x-ratelimit-reset-*` header support, session-pinned `currentDate` preventing midnight KV prefix cache invalidation, pre-request `isUsdBudgetExhausted` guard in `QueryEngine` + `budget_usd` classification, and idempotent `EPIPE`/`ERR_STREAM_DESTROYED` + rich `StructuredOutput` field diagnostics.
|
|
13
|
+
|
|
14
|
+
## 1.81.0 - 2026-11-22
|
|
15
|
+
|
|
16
|
+
- **真闭环 `--self-heal`、确定性 `--arena` 赛马、热池全局单点彻底清零与全链路脱敏(Wave A):** 新增 `selfHealState.ts` 持久化 `self-heal-state.json`(跨多轮修补与 `--resume` 续接 `iteration`/`consecutiveFailures`/`escalationsUsed`),在 `print.ts` 与 ACP 真正驱动 `retry_muscle -> escalate_brain -> accept` 闭环自修;新增 `arenaCandidateExec.ts` 为 `--arena` 与 `architect` 自动兜底提供真实 CLI 候选执行器、APFS/reflink CoW(+ symlink 兜底)`node_modules` 依赖注入与孤儿 worktree 清理,`arenaRunner.ts` 强制 `try/finally` 分支回收并修复无验证命令时虚报 `ranTests: true` 的诚实性缺陷;默认将 `arena-worktrees`、`arena` 凭据与 `eval-graph` 迁移至仓库外 `~/.clavue/projects/<repoHash>/` 绝不污染用户工作树;`postRunSelfHealAndArena.ts` 改为异步按本会话变更文件精准 `git diff` 杜绝并发串判与事件循环阻塞;将 `work/controller`、`work/phases`、`work/infoGain` 与 `v1ReviewPolicy.carriedV1Review` 全部纳入 `SessionContext` 隔离并支持多块 `edits[]`/`ApplyEdit`/`FastApply` 控制流风险识别;统一 `receipt.json`/`scorecard.json`/`arena/*.json`/`eval-graph/` 走 `redactSecretsForPersistence` 脱敏,`install.sh` 增补 `SHA256SUMS` 校验。
|
|
17
|
+
- **工具效率跃升、KV 缓存锁死与可观测性、诚实性深化与 JEV/Review 去重(Wave B):** `BashTool` 新增 `normalizeTerminalOutputForModel` 清理 ANSI 转义与 `\r` 进度条刷屏,`formatOutput` 升级为 **20% 头部 + 中段诊断错误行 + 70% 尾部** 智能截断并将完整日志落盘 `$TMPDIR/clavue-cmd-logs/` 供 `Read` 精准翻阅;`FileStateCache` / `Read` / `Edit` / `Write` 记录 `contentHash` 消除 1 秒 mtime 粒度下的同秒陈旧改写漏检,`Edit` 多块 `edits[]` 改为全块校验,`wsTolerant` 保护引号内字面量空格与 Python/YAML 相对缩进层级,压缩 `scrubAfterCut` 同步清空 `work/infoGain` 读缓存避免幽灵 `"in context"` 存根;`Survey` 与 `Grep` 默认按关联度(本会话已改文件 > `src/` > 根配置 > `tests/` > `docs/`)排序;`microCompact.ts` 新增 `shouldAllowInPlaceMicrocompact` 保护非 `cache_edits` 网关(BYOK/vLLM/SGLang)KV 前缀缓存,`claude.ts` 在 4 断点硬上限内自动启用 `N-2` + `N-1` 双滚动缓存断点,并在 `receipt.json` 与 ACP `_meta.clavueTurnSummary` 一等公民透出 `cache_hit_ratio`;`falseSuccessGate` 清理基准过拟合短语并拦截无验证软声明(`"should fix it"` / `"应该可以了"`);`v1JevClient.ts` 支持 `CLAVUE_JEV_TIMEOUT_<STAGE>_MS` 环境调优,`shouldSkipDuplicateDeliveryJev` 在绿测 + `◆ Review` 已通过时跳过重复 Delivery JEV 调用。
|
|
18
|
+
- **统一意图理解引擎、真实可中止 TUI `LocalWorkflowTask` 与生产合规防线(Wave C):** 新增 `userIntentEnvelope.ts` 统一 `describeRequestShape` / `classifyTierByRules` / `decomposeRequest`;修复只读并发查询误升 `complex`、中文解释型“帮我解释为什么升级失败”误判改写意图、礼貌文件改写请求(`"能否把 config.ts 改成…?"`)漏判及报错日志/约束分号误拆假 todo 四类缺陷;以真实 `LocalWorkflowTask.ts`(含 `AbortController` 注册表与 `killWorkflowTask`/`skipWorkflowAgent`)替代 `.d.ts` `any` 桩并接入 `WorkflowTool`(UUID ID + `isBackgrounded: false`)与 `BackgroundTasksDialog`;`PlanApproveBar` 移除死 `useEffect` 并增加 `300ms` 挂载防误触保护,`RunningTasksDock` 消除重复行扫描,`uiLocale.ts` 增补 `LC_ALL`/`LANG` 兜底;按合规要求移除上游硬编码 Datadog/GrowthBook 密钥,无头 `-p`/ACP/CI 环境默认关闭非必要遥测(仅 `CLAVUE_TELEMETRY_OPT_IN=1` 开启),统一 `ACP_PROTOCOL_VERSION` 单一出口并补充 `_meta.clavue` 命名空间,升级 `check-env-vars` 增加只写未读死环境变量检测。
|
|
19
|
+
- English: Feature milestone delivering Waves A–C: (Wave A) true closed-loop `--self-heal` with persisted `self-heal-state.json` across retries & resumes (`selfHealState.ts`), real end-to-end `--arena` & `architect` auto-arena CLI runner with CoW/symlink `node_modules` provisioning, `try/finally` branch cleanup, honest `ranTests: false` when unverified, and externalized `~/.clavue/projects/<repoHash>/` storage for arena & eval-graph, async per-session `git diff`, full `SessionContext` isolation for `work/{controller,phases,infoGain}` & `carriedV1Review` (+ multi-hunk/`ApplyEdit` control-flow risk), unified `redactSecretsForPersistence` across all receipts/eval artifacts, and `install.sh` `SHA256SUMS` verification; (Wave B) `Bash` ANSI/`\r` cleanup + smart head+error+tail truncation with spilled log paths, `contentHash` same-second Edit staleness detection + full multi-hunk checks + quote/indent-safe `wsTolerant` + post-compaction `readStubRef` invalidation, relevance-ranked `Survey`/`Grep`, KV-prefix-safe non-cached microcompact + safe dual rolling cache breakpoints (`<= 4` total) + first-class `cache_hit_ratio` in receipts & ACP, soft unverified claim refusal in `falseSuccessGate`, env-tunable JEV stage timeouts, and green+Review Delivery JEV deduplication; (Wave C) unified `userIntentEnvelope.ts` fixing 4 intent/tier/checklist misclassifications, real abortable `LocalWorkflowTask.ts` wired into `WorkflowTool` & `BackgroundTasksDialog`, `PlanApproveBar` 300ms post-mount guard, `RunningTasksDock` single-pass scan, `LC_ALL`/`LANG` locale fallback, stripped upstream Datadog/GrowthBook vendor keys, default-off telemetry in headless `-p`/ACP/CI (`CLAVUE_TELEMETRY_OPT_IN=1` opt-in), unified `ACP_PROTOCOL_VERSION` + `_meta.clavue`, and write-only dead env-var detection in `check-env-vars`.
|
|
20
|
+
|
|
21
|
+
## 1.80.1 - 2026-11-22
|
|
22
|
+
|
|
23
|
+
- **热修上游生产阻断故障(#3 / #6 / #7 / #8):**
|
|
24
|
+
- **#3 拦截压缩占位符覆写源码**:`Write` 与 `Edit`(含多块 `edits[]` 每块)前置校验拒绝 `[clavue:payload-on-disk]`、`<persisted-output>`、`[Old tool result content cleared]` 与 `File unchanged since last read.` 占位符,防止重试时将源码覆写成 ~170B 无效存根(`payloadStubText.ts`)。
|
|
25
|
+
- **#6 修复无头 `-p` 运行中 `steer` 误触发中断(exit 1/9)**:`print.ts` 中 `'now'` 优先级抢占中断监听现排除 `mode === 'steer'`(仅真实中断命令中止回合,`control.jsonl` 的 `steer` 与内置 65% 墙钟教练平滑注入下一工具边界),回合已结束后的迟到 `steer` 自动转为隐藏 `prompt` 不再抛出 `only prompt commands are supported`。
|
|
26
|
+
- **#7 修复 `FALSE_SUCCESS` 误杀 Bash 生成产物**:`falseSuccessGate.ts` 核查声称路径前增补本轮磁盘实证校验(存在、非空且 `mtimeMs` 落于本会话启动之后),不再误杀由 `node --test` / 构建脚本 / 生成器产出的新文件,同时仍严格拒绝未触碰或空文件假声称。
|
|
27
|
+
- **#8 根治无头 `-p` 留存后台 server / 监听端口导致 `end_turn` 后无限挂死**:`v1HeadlessBackground.ts` 与 `bgWaitCopy.ts` 识别常驻进程(如 `node src/server.mjs`、`npm run dev` 或持有 TCP LISTEN 端口的子树)不再阻塞无头结算,普通后台构建/测试 shell 增设默认 10 分钟等待上限(`CLAVUE_HEADLESS_BG_HOLD_MS` 可配),退出时由既有机理回收进程组与无头 Chrome。
|
|
28
|
+
- **诚实性门禁 P0 补漏洞(B2 + C1):** 将 `ApplyEdit` 与 `FastApply` 纳入 `v1ProofLedger.ts` 与 `falseSuccessGateFacts.ts` 的写入工具集合(同步区分成功落盘与拒改),修复用快改改完代码既不作废旧绿测又被假成功门禁误杀的双向缺陷;修复 `v1DeliveryChecks.ts` `summaryExit()` 将 `0 passed` 空跑测试集误判为 `exit 0` 绿灯的漏洞。
|
|
29
|
+
- English: Hotfix release resolving upstream production issues #3/#6/#7/#8 and two P0 honesty gaps: rejects context-compaction placeholders (`[clavue:payload-on-disk]`, `<persisted-output>`, etc.) in `Write`/`Edit`/`edits[]` (#3); stops `mode: 'steer'` (`control.jsonl` & 65% wall-clock coach) from firing the `'now'`-priority abort in headless `-p` and carries late steers as hidden prompts (#6); accepts non-empty artifacts written during the current run on disk (e.g., generated by `Bash` tests/builds) in `falseSuccessGate` (#7); stops finished headless `-p` runs from hanging indefinitely on resident dev servers or listening child trees while capping finite background shell holds via `CLAVUE_HEADLESS_BG_HOLD_MS` (#8); wires `ApplyEdit`/`FastApply` (excluding refusals) into `v1ProofLedger` & `falseSuccessGateFacts`; and prevents `v1DeliveryChecks.summaryExit` from treating `0 passed` as a green exit `0`.
|
|
30
|
+
|
|
31
|
+
## 1.80.0 - 2026-11-21
|
|
32
|
+
|
|
33
|
+
- **热池完全会话隔离、KV 前缀缓存锁死、流式 TTFT 慢节点摘除与 PGID/ACP 收敛加固(Wave 1):** 引入 `SessionRuntimeBag` 将环境变量、预算、JSON Schema、验证账本、文件改动集、四槽位、任务框、工作集与白板全面绑定至 `AsyncLocalStorage` 会话上下文,彻底根除并发 ACP 热池(`--max-concurrent > 1`)跨会话串台;上下文装配 `preservePrefix` 改为尾部追加动态工作集、工具池在会话内锁定 wire schema 只增不减,避免每轮抖动击穿 27B/旗舰网关 KV 前缀缓存;流式 SSE 租约生命周期拉通至响应流结束,新增 EWMA `ttftMs` 与 60s 滑动窗口慢节点降速熔断(brownout);修复子进程 PGID 退场回收与 ACP `maxWallMs` 超时稳定退出码 `3` 及单会话 `_meta` 参数透传。
|
|
34
|
+
- **超级工具链、亚 5ms 内存语法预检与自动 LSP 增量诊断(Wave 2):** `Edit` 原生支持单文件多处原子 `edits: [{ old_string, new_string }]` 与纯空格/Tab 混合缩进对齐;新增基于 `esbuild.transformSync` 的 `<1ms` 内存 TS/TSX/JSX 语法预检器 `v1SyntaxPrecheck.ts` 并打通 `ApplyEdit`/`FastApply` 错误回传;修复 LSP 文档版本号重置、事件驱动非破坏性诊断订阅与本地 `typescript-language-server`/`pyright-langserver`/`gopls`/`rust-analyzer` 自动发现,编辑前后对比快照仅向模型注入真实新增诊断(`newErrors`)并消除同名文件 `tsc` 误匹配;无头 `-p`/ACP 模式开放加固版 `Survey` 与 `WaitFor`,`Read` 新增 `paths[]` 批量读取(最多 8 文件)与 `outline: true` 符号骨架提取。
|
|
35
|
+
- **反作弊幕僚长验收、自纠错闭环真接线、多车道实时写边界与原生 `/arena` 竞速赛马(Wave 3):** 新增 `chiefOfStaffDiffAudit.ts` 接入 `chiefOfStaffEval.ts` 与 `receipt.json`,对 `.skip`/`.only`、删断言、裸 `@ts-ignore`/`@ts-nocheck`/`biome-ignore` 与空 `catch {}` 实施硬一票否决(`anti_cheat_violation`),豁免纯文档改动未跑测试误杀并按末次执行去重验证结果;在 `-p` 与 ACP 收尾真实驱动 `postRunSelfHealAndArena.ts`(`--self-heal` 脑肌阶梯自修 + 失败自动蒸馏入 `.clavue/eval-graph/`);`Workflow` 与 `Swarm` 在工具调用实时层强制执行 `owns`/`forbidden` 写边界、过滤 `.clavue/` 临时产物防 `land` 脏树阻塞并在末阶段无 `gate` 时自动兜底合入,`/teamwork` 新增 `<3KB` 接口契约冻结胶囊(Stage 2.5);全新上线 `/arena` 与 `--arena [candidates]` 多隔离 worktree 并行赛马 + 幕僚长择优合入,并在 `--exec-profile architect` 自修耗尽时自动触发双分支竞速兜底。
|
|
36
|
+
- **全栈前后端并发视觉 QA、叠加式双证据门禁与 65% 时间预算教练(Wave 4):** `Browser` 会话按 `(sessionId, agentId)` 完全隔离支持多 Agent 并行无头验收;新增 `VIEWPORT(width, height, mobile)` 响应式切换、CDP `Network.loadingFailed`(CORS/断连)捕获、有界 `waitForPageReady` 及 `CONTRAST_AND_LANDMARKS_JS` WCAG 对比度探针(精准揪出 SVG/DOM 暗色背景黑字 `<3.0:1`、缺失标题与错误横幅);新增 `requiredEvidenceClassesFor()` 使同时修改前后端的提交必须叠加满足 `ui/visual` 与 `api/contract` 双重验证证据;新增 65% `maxWallMs` 墙钟预算教练与连续 8 步只读空转破局提醒(尾部注入零前缀缓存破坏)。
|
|
37
|
+
- **TUI 交互打磨、长程无损压缩锚定、ACP 2.0 流式协议与评测工具链解锁(Wave 5):** 修复 `ExitPlanMode` 在输入修改意见时被 `PlanApproveBar` 单键(`a`/`s`/`c`/`q`)误触劫持的问题并支持空反馈按 `c`/`s` 自动聚焦输入框;修复运行中双击回车 `Steer` 因 `isMeta` 在队列栏隐身的问题(新增醒目 `⚡ Steer` 标识),打通 `RunningTasksDock` 多行选中索引与实时 `Workflow` 阶段/并发数展示;上下文压缩新增根目标锚定(短指令如 `"fix lint"` 归入 `Latest user steer` 绝不覆盖 `Task scope`)、活跃文件上限扩至 30 个、挂载 `.clavue/goal.json` 契约并保留多子项 `TaskFrame` 清单;升级 ACP 2.0 流式 `tool_use` 启动推送、多处 `edits[]`/`ApplyEdit` diff、子代理 `parentToolCallId` 层级、前缀精确去重与取消时未决工具收口,并在 `bench/run.mjs` 解锁 `Survey`/`WaitFor`/`ApplyEdit`/`Browser`/`Agent` 全套高阶工具。
|
|
38
|
+
- English: Milestone 1.80.0 release delivering five architecture waves across engine concurrency, super-toolchain, self-healing & `/arena` verification, full-stack visual/API QA, and TUI/compaction/ACP 2.0 polish: (Wave 1) `AsyncLocalStorage` `SessionRuntimeBag` isolation for concurrent ACP warm pools, KV prefix-cache preservation (`preservePrefix` tail-append + frozen wire-tool schema), full-stream SSE lease tracking with EWMA `ttftMs` & 60s brownout circuit breaking, PGID exit reaping, and ACP `maxWallMs` exit code `3` + per-session `_meta`; (Wave 2) atomic multi-hunk `Edit` (`edits[]`) with space/tab reindent, `<1ms` in-process `esbuild` TS/TSX/JSX syntax precheck (`v1SyntaxPrecheck.ts`), monotonic LSP document versions + auto-discovered local language servers + pre-edit delta `newErrors` snapshots, headless `Survey`/`WaitFor`, and `Read` `paths[]` batch + `outline: true`; (Wave 3) `chiefOfStaffDiffAudit.ts` anti-cheat hard vetoes (`.skip`/`.only`, deleted assertions, bare `@ts-ignore`/`@ts-nocheck`/`biome-ignore`, empty `catch {}`), live `--self-heal` post-run recovery & eval-graph distillation, live `owns`/`forbidden` `canUseTool` enforcement + trailing worktree flush + `/teamwork` Stage 2.5 `<3KB` interface contract freeze, and native `/arena` (`--arena [candidates]`) multi-worktree competitive racing with automatic `architect` fallback; (Wave 4) per-`(sessionId, agentId)` `Browser` isolation, `VIEWPORT` switching, CORS/`loadingFailed` + SVG/DOM WCAG contrast (`<3.0:1`) probes, additive UI+API dual evidence gates (`requiredEvidenceClassesFor`), and cache-safe 65% wall-clock & 8-step recon-loop coaching; (Wave 5) `PlanApproveBar` feedback-focus guard, visible `⚡ Steer` queue badges, live `Workflow` stage rows & multi-row selection in `RunningTasksDock`, root-anchored compaction keeping 30 `filesInPlay` + `.clavue/goal.json` contracts + compound `TaskFrame` checklists, ACP 2.0 streaming `tool_call` lifecycle + `parentToolCallId` + multi-hunk diffs + cancel cleanup, and full-toolset `bench/run.mjs` benchmarking.
|
|
39
|
+
|
|
7
40
|
## 1.76.2 - 2026-11-21
|
|
8
41
|
|
|
9
42
|
- **`--write-scope` 默认切换为当前会话实际写入路径审计,原生兼容多 CLI 共享同目录并行:** `runResultObserve` 与 `runResultDoc` 现按当前会话实际成功执行的 `Write`/`Edit`/`MultiEdit`/`NotebookEdit` 与 `Bash` 写入目标(`writeScopeBash.ts`,支持引号/heredoc 感知解析重定向 `>`/`>>`、`tee`、`sed -i`、`mv`/`cp`/`rm`/`touch` 且自动忽略 `/dev/*` 与 `/tmp/*` 临时日志)逐会话追踪并在 `checkToolWriteScope` 执行前置拦截;默认 `--write-scope-audit session`(环境变量 `CLAVUE_WRITE_SCOPE_AUDIT` / ACP `_meta.writeScopeAudit`)彻底消除同目录其他并行 CLI 修改文件导致的退出码 `8` 误报,同时保留 `--write-scope-audit git` 供单任务隔离 worktree 全量校验。
|
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.82.0/install.sh | bash -s -- 1.82.0
|
|
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.82.0 --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.82.0/install.sh | bash -s -- 1.82.0
|
|
122
122
|
```
|
|
123
123
|
|
|
124
124
|
```bash
|