clavue-v1 1.76.0 → 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 +12 -0
- package/README.md +3 -3
- package/dist/cli-main.js +310 -299
- package/dist/cli.js +2 -2
- package/dist/mao-command.js +1 -1
- package/dist/openai-responses-adapter.js +4 -4
- package/dist/provider-router.js +4 -4
- package/dist/provider-setup.js +1 -1
- 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 +32 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@ 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
|
+
|
|
7
19
|
## 1.76.0 - 2026-11-21
|
|
8
20
|
|
|
9
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`。
|
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.76.
|
|
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.76.
|
|
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.76.
|
|
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
|