clavue-v1 1.74.3 → 1.76.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 +25 -0
- package/README.md +3 -3
- package/dist/cli-main.js +648 -563
- package/dist/cli.js +2 -2
- package/dist/mao-command.js +1 -1
- package/dist/openai-responses-adapter.js +29 -29
- package/dist/provider-router.js +32 -32
- package/dist/provider-setup.js +1 -1
- package/docs/fleet-host-operations-standard.md +62 -0
- package/docs/release-notes-v1.75.0.md +33 -0
- package/docs/release-notes-v1.76.0.md +17 -0
- package/docs/release-notes-v1.76.1.md +20 -0
- package/docs/release-notes-v1.76.2.md +22 -0
- package/docs/tui-feed/feed.json +60 -4
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,31 @@ clavue / 克拉维 发布说明。本文件在构建时注入运行时,驱动
|
|
|
4
4
|
|
|
5
5
|
格式约定(`parseChangelog` 依赖):二级标题为 `## <版本> - <日期>`,条目以 `- ` 开头,一行一条,命令与模型名保留英文。
|
|
6
6
|
|
|
7
|
+
## 1.76.2 - 2026-11-21
|
|
8
|
+
|
|
9
|
+
- **`--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 全量校验。
|
|
10
|
+
- **无头 / 后台 `-p` 模式 UI 自检全面切换至 `--headless=new --screenshot`,根除 macOS GUI Chrome 与 AppleScript `System Events` 40s 报错空转:** 新增无头状态镜像 `headlessMode.ts`;在 `-p`/无头/后台/ACP 模式下自动禁用 `Desktop` 工具(并提供 `<1ms` 快速提示兜底,仅显式设置 `CLAVUE_ALLOW_HEADLESS_DESKTOP=1` 放行),`Browser` 工具默认自动附加 `--headless=new --disable-gpu --window-size=1440,900` 且支持 `SCREENSHOT(url)` 一次性 `--headless=new --screenshot` 极速抓图与 CDP 失败自动回退,`BashTool` 无头模式下即时拦截 `open -a "Google Chrome"` 与 `osascript ... System Events` 并直接给出 `--headless=new --screenshot` 指令,任务框与视觉验收门禁同步输出无头模式专用指引并识别 `--headless=new --screenshot` 截图命令。
|
|
11
|
+
- English: Makes `--write-scope` natively compatible with parallel CLIs sharing one working directory by defaulting post-run scope auditing to per-session actual written paths (`--write-scope-audit session|git`, `CLAVUE_WRITE_SCOPE_AUDIT`, ACP `_meta.writeScopeAudit`), adding quote/heredoc-aware `Bash` write-target extraction (`writeScopeBash.ts`) for pre-execution blocking and per-session auditing without blaming sibling CLI edits; eliminates the ~40s macOS GUI Chrome (`open -a`) + AppleScript `System Events` failure loop during headless `-p` / `--exec-profile architect` UI self-checks by auto-enabling `--headless=new` in `BrowserUseTool` (with one-shot `--headless=new --screenshot` capture and fallback), disabling `DesktopUseTool` in non-interactive runs (`CLAVUE_ALLOW_HEADLESS_DESKTOP=1` opt-in), guarding GUI `open -a`/`osascript System Events` in `BashTool`, and routing headless visual-acceptance prompts straight to `--headless=new --screenshot`.
|
|
12
|
+
|
|
13
|
+
## 1.76.1 - 2026-11-21
|
|
14
|
+
|
|
15
|
+
- **修复空流 `stream_cut` 误判 `repeatedCut` 中断长回合与收尾交互体验(#330):** 空响应体(`""`/`"[]"`/`"[[]]"`)不再参与 `noteCutReplyFingerprint()` 判重,且健康工具轮推进(`postToolsTail`)自动调用 `clearCutReplyFingerprint()` 清理旧指纹,避免跨多轮后的非连续空流误跳过剩余重试与自动压缩;修复 `turnCompletion.ts` 被早期过程短句吞掉尾部 `model_error` 导致错报「停在工具调用」的缺陷;默认日记折叠紧邻暂停收尾行之上的重复裸告警,`QuietChrome` 仅在活跃态(`isLoading`)显示阶段行、`sessionPhaseFromTurn` 将检查点类暂停归入 `waiting_user` 而非 `blocked`;真实故障改用红色 `✗` 并给出针对性恢复指令(`/model`/`/login`/`/compact`),用户中断改用简洁 `◆ 已停止`;重写暂停/故障/中断/纯文档修改的底部建议条(模型故障提供一键「继续执行」+「换模型」,仅改 `.md`/文档时不再推荐无意义的「跑测试」)。
|
|
16
|
+
- **修复 `bypassPermissions` 交互模式下 `AskUserQuestion` 被静默吞掉并返回空 `answers: {}` 的缺陷(#331):** 在交互式 TTY 的完全访问模式中区分「工具权限确认」与「向用户采集选择」,允许 `AskUserQuestion` 正常弹出选择对话框(同时保持 `Bash`/`Edit`/危险操作/`ExitPlanMode` 等权限确认继续全免询问,并在 `-p`/无头/无人值守 `unattendedAsks()` 下自动禁用工具);为 `AskUserQuestionTool.mapToolResultToToolResultBlockParam()` 补充空 `answers: {}` 防御兜底,严禁再伪造「User has answered your questions: .」,改为明确指引模型在正文直接向用户提问并等待回复。
|
|
17
|
+
- English: Fixes #330 and #331: ignores empty `stream_cut` bodies (`""`/`"[]"`/`"[[]]"`) in `noteCutReplyFingerprint()` and clears stale cut fingerprints on healthy tool-round advancement (`clearCutReplyFingerprint`) so non-consecutive empty cuts never falsely trigger `repeatedCut`; prevents earlier progress prose from swallowing terminal `model_error` when the turn ends on a tool call; folds redundant bare pause warnings above paused `turn_duration` rows, hides `QuietChrome` phase lines once settled, moves checkpoint pauses out of `blocked` into `waiting_user`, uses red `✗` + targeted recovery actions for hard faults, and updates post-turn suggestions for paused/fault/interrupted/docs-only turns; allows interactive TTY `AskUserQuestion` dialogs under `bypassPermissions` (while keeping `Bash`/`Edit`/`ExitPlanMode` prompt-free and disabling `AskUserQuestion` in unattended/headless sessions) and adds an empty-`answers: {}` defensive guard so the tool never claims `"User has answered your questions: ."`.
|
|
18
|
+
|
|
19
|
+
## 1.76.0 - 2026-11-21
|
|
20
|
+
|
|
21
|
+
- **宿主机容量探测与防冲突物理护栏(Wave 6 · Pillar 1):** 新增极速命令 `clavue-v1 host budget [--root <dir>] [--json]`(自动探测 CPU/内存/可用磁盘/PTY/maxproc/maxfiles/inotify 与 macOS Spotlight 排除态,计算安全热池并发配额、独立 `-p` 上限与重工具并发槽位)、跨进程重型命令信号量闸门(`CLAVUE_HEAVY_CMD_SLOTS=auto|N`,在 `BashTool` 自动限流 `install`/`build`/`test`/`browser` 命令,轻量命令零开销直通,支持崩溃死 PID 锁自动回收与 Abort 取消)、确定性车道端口段与临时目录分配(`CLAVUE_LANE_SLOT`,`20000 + slotId * 20`)及官方多项目并发运维标准 `docs/fleet-host-operations-standard.md`。
|
|
22
|
+
- **幕僚长验收评测、自纠错闭环与自进化失败图 CLI `clavue-v1 eval`(Wave 6 · Pillars 2–4):** 新增 `chiefOfStaffEval.ts`(5 维 100 分制幕僚长验收卡 + 测试失败/写越权/改代码未验/非 0 退出 4 条硬一票否决 + Champion/Challenger 零回归晋级门禁)、`selfHealLoop.ts`(统一 27B 肌肉定向自修 → 连续失败 `stuckEscalateAfter=2` 升舱旗舰 `plan` 槽出 Correction Card → 不可恢复终止并蒸馏的自纠错状态机)、`evalGraph.ts` 与极速子命令 `clavue-v1 eval score|compare|distill|graph`(自动脱敏密钥并按指纹去重累加频次,将真实生产失败沉淀至 `.clavue/eval-graph/` 因果图,以不可变 `ledger.jsonl` 记录 `keep`/`discard` 与 `mitigated -> regressed` 退化追踪)。
|
|
23
|
+
- English: Ships Wave 6 Host Safety Guardrails & Four-Pillar Self-Evolving Harness primitives: adds fast-path `clavue-v1 host budget [--root <dir>] [--json]` (probes CPU/RAM/disk/PTY/maxproc/maxfiles/inotify/Spotlight to compute safe ACP warm-pool and heavy-command quotas), cross-process heavy-command semaphore gating (`CLAVUE_HEAVY_CMD_SLOTS=auto|N`, throttling `install`/`build`/`test`/`browser` in `BashTool` with dead-PID lock reclamation and zero overhead on fast commands), deterministic lane port/tmp ranges (`CLAVUE_LANE_SLOT`), `docs/fleet-host-operations-standard.md`, Chief-of-Staff 5-dimension acceptance scoring with hard vetoes & zero-regression Champion/Challenger comparison (`chiefOfStaffEval.ts`), closed-loop self-heal & Brain/Muscle escalation state machine (`selfHealLoop.ts`), and the secret-redacting, fingerprint-deduplicated Failure-to-Eval Graph & fast-path CLI `clavue-v1 eval score|compare|distill|graph` (`evalGraph.ts`).
|
|
24
|
+
|
|
25
|
+
## 1.75.0 - 2026-11-21
|
|
26
|
+
|
|
27
|
+
- **大规模舰队编排确定性契约(Wave 1):** `-p/--print` 新增 `--run-id`、`--run-dir`、`--max-wall-ms`、`--write-scope <glob>`(可重复/支持 `!` 排除)、`--write-scope-mode enforce|audit` 与 `--json-schema-file`;引擎层权限闸门强制执行目录写白名单与符号链接防逃逸(即便 `--always-approve` 亦不可绕过),并结合 Git 后置审计;在完整兼容 `0..6` 退出码的基础上新增稳定退出码 `7`(预算耗尽)、`8`(越权写入)、`9`(限流退避),并将 `error_class`、`retry_after_ms`、`scope_violations` 与结构化输出(超限自动落盘 `structured_output.json`)原子写入 `receipt.json`。
|
|
28
|
+
- **工作树池化、单车道原子合入与高密度控制(Wave 2–3):** `clavue-v1 worktree` 新增 `create [--sparse] [--cow-deps]`、`reset`(热复写保留 `node_modules`/`.next`/`.turbo`)、`remove` 与脏树安全 `prune`;`clavue-v1 land` 新增单分支原子合入 `--branch <name> | --worktree <path> --cleanup-on-land --json`;`control.jsonl` 升级为 `fs.watch` 事件驱动低 CPU 唤醒,`runs-index.jsonl` 新增 5 MB 自动轮转与 `CLAVUE_GLOBAL_INDEX=0` 开关,新增 `CLAVUE_PRINT_ADMIT=off` / `CLAVUE_PRINT_ADMIT_AT=unlimited` 编排器准入直通、`provider_rate_limited`/`provider_fallback` 遥测事件及 Full-Jitter 退避;`--bare` 跳过 MDM/Keychain 预取与诊断看门狗并附 `npm run bench:bare-footprint` 压测脚本。
|
|
29
|
+
- **单进程多线程级热池(Wave 4)与多 Provider 集群分组 + 脑肌分离路由(Wave 5):** 引入基于 `AsyncLocalStorage` 的 `SessionExecutionContext` 隔离 `sessionId`/`cwd`/定向 `steer`,升级 `clavue-v1 agent stdio` 为并发复用热池(`--max-sessions`、`--max-concurrent`、`CLAVUE_ACP_MAX_CONCURRENT`、`clavueWarmPool` 能力宣告、`_meta.writeScope`/`maxWallMs`/`clavueReceipt` 透传、并发模式下禁止修改全局 `process.chdir()`);全新推出声明式集群池配置 `fleet-pools.json`、`--pool-config`/`--pool-group`/`--exec-profile` 与极速子命令 `clavue-v1 pool init|validate|status [--probe]|route-test`,支持无 `process.env` 污染的每请求脑肌分流(`main`/`light` 走自建 27B 集群分组 `session_affinity` KV 前缀缓存亲和 + `least_inflight` 溢出 + 跨组容灾 + 单节点熔断,`plan`/`review` 走旗舰推理池)、`first_turn` / `external_or_first_turn` 规划门控与连续失败 `stuckEscalateAfter=2` 有界大脑接管。
|
|
30
|
+
- English: Ships the five-wave Fleet Scale & Cluster Routing upgrade for orchestrating 100–10,000 concurrent `clavue-v1` workers: (Wave 1) deterministic `--run-id`, `--run-dir`, `--max-wall-ms`, `--write-scope` (engine-enforced even under `--always-approve` + git post-audit), `--write-scope-mode`, `--json-schema-file`, stable exit codes `7`/`8`/`9` (`budget_exceeded`/`scope_violation`/`rate_limited`), and enriched `receipt.json`; (Wave 2–3) `clavue-v1 worktree create|reset|remove|prune` (sparse checkout, APFS/reflink CoW deps, warm reset preserving build caches), single-branch `clavue-v1 land --branch|--worktree --cleanup-on-land`, event-driven `fs.watch` `control.jsonl`, 5 MB `runs-index.jsonl` rotation + `CLAVUE_GLOBAL_INDEX=0`, `CLAVUE_PRINT_ADMIT=off` orchestrator bypass, full-jitter rate-limit telemetry, and `--bare` cold-start/RSS trimming (`bench:bare-footprint`); (Wave 4) `AsyncLocalStorage`-isolated concurrent ACP warm pools (`--max-sessions`, `--max-concurrent`, no global `process.chdir()`, per-session `_meta.writeScope`/`maxWallMs`/`clavueReceipt`, targeted `session/steer`); (Wave 5) declarative multi-provider cluster group routing (`fleet-pools.json`, `--pool-config`, `--pool-group`, `--exec-profile`, fast-path `clavue-v1 pool init|validate|status|route-test`) with zero `process.env` mutation, Brain/Muscle slot split (`main`/`light` on 27B cluster groups with FNV-1a `session_affinity`, `least_inflight` spillover, cross-group `fallbackPools`, and per-endpoint circuit breakers; `plan`/`review` on flagship reasoning pools), `external_or_first_turn` plan-hop gating, and bounded `stuckEscalateAfter=2` brain escalation.
|
|
31
|
+
|
|
7
32
|
## 1.74.3 - 2026-11-20
|
|
8
33
|
|
|
9
34
|
- **ACP v1 自适应活性看门狗与确定性回合结论:** `agent stdio` 在 `initialize` 宣告 `agentCapabilities._meta.clavueLivenessWatchdog = true`,在 `session/prompt` 启动瞬间推送 `model_wait_started`,首包到达即推 `first_byte_received`(含精确 `ttfbMs`);正常流式输出期间零心跳转刷屏,长耗时工具 `< 10m` 推送冷静 `liveness_tick` 绝不误报停滞,等待审批期间自动静默看门狗,真实停滞 `>= 20s` 穿透限流立即推送 `liveness_stalled`(附具体 `reason` 与可执行 `hint`)并在恢复后自动推送 `liveness_recovered`;回合终态 `_meta.clavueTurnSummary` 补充确定性 `verdict`(`ready`/`needs_review`/`failed`/`cancelled`)、`ttfbMs` 与 `stalledCount`,同步升级参考宿主 SDK(`docs/examples/clavue-host-client.mjs`)卡片渲染。
|
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.76.2/install.sh | bash -s -- 1.76.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.76.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.76.2/install.sh | bash -s -- 1.76.2
|
|
122
122
|
```
|
|
123
123
|
|
|
124
124
|
```bash
|