clavue-v1 1.74.0 → 1.74.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 CHANGED
@@ -4,6 +4,20 @@ clavue / 克拉维 发布说明。本文件在构建时注入运行时,驱动
4
4
 
5
5
  格式约定(`parseChangelog` 依赖):二级标题为 `## <版本> - <日期>`,条目以 `- ` 开头,一行一条,命令与模型名保留英文。
6
6
 
7
+ ## 1.74.2 - 2026-11-20
8
+
9
+ - **统一开发进度遥测、ACP `_clavue/progress` 与 `clavue-v1 runs` 快速观测台(P0):** 扩展 `events.jsonl` Schema v1 新增 `stage_changed`、`combo_hop`、`subagent_started`、`subagent_finished`、`usage_updated`(同步接入活性时钟),新增 `runEventsTelemetry.ts`、`runsIndex.ts`、`runInspect.ts` 及跨仓库隐私安全索引 `~/.clavue/runs-index.jsonl`(严禁存储 Prompt 正文与密钥);ACP `agent stdio` 复用同一观测管线在 `initialize` 宣告并实时推送 `_clavue/progress`(含阶段、文件 `+N -M`、单测、多 Agent 泳道、四槽 Hop、审批等待态)与 `session/prompt` 返回值 `_meta.clavueTurnSummary`,生产回合自动镜像至 `.clavue/runs/`;新增毫秒级启动命令 `clavue-v1 runs list|status|tail [--active] [--all] [--follow] [--json]`。
10
+ - **运行中双向热纠偏(Steer)与每轮检查点一键回滚(P1):** 新增 `runControl.ts` 实现 `<run_dir>/control.jsonl` 断行容错幂等控制信箱,贯通 Headless `-p`、镜像 ACP 与 `clavue-v1 runs steer|stop`,无需中止回合即可通过原生 `enqueueSteerMessage()` 热注入纠偏指令或优雅停止并落盘 `aborted`(exit `5`);ACP 新增 `session/steer`(`_clavue/steer`)、`session/checkpoints`(`_clavue/checkpoints`)与 `session/rewind`(`_clavue/rewind`);新增 `turnCheckpoints.ts` 在写文件前自动备份原始字节(防路径穿越、4 MiB 上限),支持 `dryRun` 预览、跨多轮精确回滚与消息历史同步截断。
11
+ - **标准化交付证据包 `receipt.json`、独立只读观测桥 `clavue-v1 watch` 与零依赖宿主 SDK(P2):** 新增 `runReceipt.ts` 在 `-p` 收尾自动原子写入 `<run_dir>/receipt.json`,并提供 `clavue-v1 runs receipt [id|latest] [--write] [--md|--json]` 输出确定性结论(`ready`/`needs_review`/`failed`/`aborted`/`in_progress`)、全量验证记录、自动风险清单与 PR/IM Markdown 审批卡;新增与 `clavue mcp serve` 严格隔离的只读观测命令 `clavue-v1 watch [--all] [--once] [--json]` 及零写工具的只读 MCP 服务 `clavue-v1 watch --mcp`(仅暴露 `list_runs`/`get_run`/`tail_events`/`get_receipt` 与只读 `clavue://runs/*` 资源);发布零依赖参考宿主 SDK(`docs/examples/clavue-host-client.mjs`)、全套 `docs/gui-ide-harness-playbook.md` 接入规范及刷新全部用户手册。
12
+ - English: Ships the complete three-phase GUI / IDE / Harness / Chat Bot telemetry, live-control, and verification architecture: (P0) adds additive `stage_changed`, `combo_hop`, `subagent_started`, `subagent_finished`, and `usage_updated` events to `events.jsonl`, privacy-safe cross-repo `~/.clavue/runs-index.jsonl`, ACP v1 `_clavue/progress` live notifications + `_meta.clavueTurnSummary` + disk mirroring, and fast-path `clavue-v1 runs list|status|tail`; (P1) adds mid-turn hot-steering (`session/steer`, `_clavue/steer`, `<run_dir>/control.jsonl`, `clavue-v1 runs steer|stop`) without aborting in-flight turns plus path-safe per-turn edit checkpoints & rewind (`session/checkpoints`, `session/rewind` with `dryRun` preview); (P2) adds atomic `<run_dir>/receipt.json` Verification Receipts (`clavue-v1 runs receipt --md|--json`), strictly read-only multi-run observer `clavue-v1 watch` & `clavue-v1 watch --mcp` isolated from `clavue mcp serve`, the zero-dependency host reference SDK (`docs/examples/clavue-host-client.mjs`), `docs/gui-ide-harness-playbook.md`, and refreshed user guides.
13
+
14
+ ## 1.74.1 - 2026-11-20
15
+
16
+ - **多智能体正交三巨头(`/boost`、升级版 `/swarm`、`/teamwork`)与高频工作流命令(`/grill-me`、`/learn`、`/browser`):** 新增 `/boost`(别名 `/deep`、`/consult`,单点疑难多视角只读会诊 + 战略收敛 + 独立 `review` 槽严格复核)、`/teamwork`(别名 `/legion`,驱动原生 `Workflow` 的 5 阶段固定工程流水线 `explorer → outliner → solver(worktree) → referee(review+gate) → patcher`),升级 `/swarm` 支持双模——既保留 `status`/`board`/`title`/`clear`/`--json` 秒级本地查询,也支持 `/swarm <并行任务>` 直接以 Coordinator 身份在共享黑板与隔离 `worktree` 派工并配独立 `review` Verifier 交叉审查后 `land` 合入;新增 `/grill-me`(写代码前先读源码再结构化 `AskUserQuestion` 追问对齐)、`/learn`(提炼会话纠偏/SOP 并经确认落盘至 `clavue.md`/`clavue.local.md`/`.clavue/skills/`/记忆)与 `/browser`(直连原生 `Browser` 工具,优先纯文本索引 `SNAPSHOT` 兼顾视觉与纯文本模型家族);全套纳入精选 `/` 菜单并补齐中英双语描述。
17
+ - **会话实用工具三件套(`/reload-rules`、`/copy-id`、Markdown `/export`):** 新增 `/reload-rules`(别名 `/reload`,一键清空缓存并即时重载 `clavue.md`/`AGENTS.md`/`.clavue/rules`、Skills 与插件)、`/copy-id`(别名 `/session-id`、`/sid`,本地任意会话一键复制 UUID 到剪贴板并给出 `--resume` 命令),并升级 `/export`(别名 `/export-md`)与 `ExportDialog` 原生支持干净 GitHub-Flavored Markdown 导出(`/export --md [文件]`、`.md` 自动走 Markdown 渲染、剥离内部 XML 标签并折叠工具调用)。
18
+ - **四槽位组合模型与 8 大模型家族兼容性根治及配置收口:** 修复 `getAgentModel()` 的 `toolSpecifiedModel` 分支在未配置槽位或 `CLAVUE_COMBO_OFF=1` 时向网关泄漏字面量 `"plan"`/`"review"`/`"light"`/`"main"`/`"inherit"` 的 P0 缺陷,保护 `:` 与 `/` 厂商前缀并让官方云 `opus` 别名一致映射至 `plan` 槽(`clavue-2.1-pro`);修复 `parseSlotChain()` 将 `CLAVUE_COMBO_<SLOT>=off/0/false/-` 误作真实模型 ID 及关闭 `light` 后经 `haiku` 复活的问题;统一 `providerProfiles.ts` `resolveProfileComboSlots()` 单一映射源与 `officialCombo.ts` BYOK `light`/`haiku` 补齐;修复 `SwarmTool` `add`/`model` 槽位解析、`runAgent` 元数据 `comboSlot` 归属、`AgentTool/UI` 真实模型显示及 `resumeAgent` 跨家族切模型自动 `stripSignatureBlocks()` 防 HTTP 400;`/combo` 新增槽位来源标注与环境变量覆盖告警(`shadows settings:`),并在 `/swarm`/`/teamwork`/`/boost` 提示词中补齐延迟工具 `ToolSearch` 加载与无头/单模型安全降级。
19
+ - English: Adds the orthogonal multi-agent command trio (`/boost`, upgraded task-launching `/swarm`, and 5-stage `/teamwork`), daily workflow commands (`/grill-me`, `/learn`, `/browser`), session utilities (`/reload-rules`, `/copy-id`, and GFM Markdown `/export --md`), and hardens 4-slot combo + 8-family model compatibility: fixes P0 leakage of literal `"plan"`/`"review"`/`"light"`/`"main"`/`"inherit"` in `getAgentModel()` when slots are unset or `CLAVUE_COMBO_OFF=1`, guards colon-prefixed (`cn:*`) and slash-prefixed (`anthropic/*`) proxy IDs, maps unpinned `opus` to `plan` on Official Cloud, strips slot-disable sentinels (`off`/`0`/`false`/`-`) in `parseSlotChain()` and honors explicit `light=off` as `inherit`, unifies profile-to-combo derivation via `resolveProfileComboSlots()` and BYOK `light`/`haiku` fallback, resolves combo slots in `SwarmTool` (`add`/`model`), `runAgent`, and `AgentTool/UI`, strips cross-family thinking signatures in `resumeAgent`, adds slot provenance & env-shadow warnings to `/combo`, and includes `ToolSearch` deferred-tool and non-interactive fallbacks across all new prompts.
20
+
7
21
  ## 1.74.0 - 2026-11-20
8
22
 
9
23
  - **精简 `/` 命令菜单、工作流排序与 `/help` 聚焦:** 新增 `commandMenuCuration.ts`,裸输入 `/` 与 `/help` 默认只展示按工作流分组排序的 20 个核心内置命令(会话控制 `clear`/`compact`/`resume`/`rewind`、工作流 `plan`/`goal`/`schedule`/`team`、模型配置 `model`/`provider`/`permissions`/`config`/`language`、项目与系统 `init`/`mcp`/`skills`/`status`/`update`/`login`/`help`)及用户/项目/插件/MCP 自定义 Skills;将 18 个历史残留/彩蛋命令(`boy`、`girl`、`bigdaddy`、`mobile`、`passes`、`advisor`、`torch`、`color` 等)标记为 `hidden` 并连同 `batch-api` 等历史项移出 `/` 补全;兼容命令(`/doctor`、`/cost`、`/context`、`/review`、`/tasks`、`/swarm`、`/diff` 等)保持直达执行与前缀搜索,公共前缀优先核心与用户 Skills。
package/README.md CHANGED
@@ -39,13 +39,16 @@ Canonical primary command surfaces:
39
39
  - `/permissions` (`/approvals` compatibility alias): set the default permission mode so trusted development environments can run with less friction; use `/permissions autonomous` for an opt-in high-autonomy local development lane.
40
40
  - `/team`: inspect local team readiness, active team config, and capability state.
41
41
  - `/goal`: run a durable, evidence-gated goal loop with a persistent ledger and a bounded auto-continuation budget.
42
+ - `/boost`, `/swarm`, and `/teamwork`: orthogonal multi-agent orchestration — `/boost` (`/deep`, `/consult`) runs multi-perspective expert consultation and strict verification for one hard problem; `/swarm` runs a Coordinator with a shared handoff board, isolated worktree workers, and an independent Verifier (plus local `status`/`board`/`title`/`clear`); `/teamwork` (`/legion`) runs the 5-stage engineering pipeline (`explorer → outliner → solver → referee → patcher`).
43
+ - `/grill-me`, `/btw`, `/learn`, `/browser`, `/reload-rules`, `/copy-id`, and `/export` (`--md` / `/export-md`): daily alignment interview, side question, durable rule/skill distillation, native browser inspect/verify, hot-reloading rules & skills, copying the session ID, and GFM Markdown session export.
44
+ - `/combo`: inspect four-slot combo (`main` / `light` / `plan` / `review`) resolution, provenance (`[session]` / `[env ... · shadows settings: ...]` / `[settings]` / `[auto-fill]`), chain health, and per-dialog or `--global` pins (`off` disables a slot safely).
42
45
  - `/retro`: run a multi-round repo retrospective and upgrade loop.
43
46
  - `/tasks`: inspect task-board state for long-running work.
44
47
  - `/resume`: continue saved sessions.
45
48
  - `/doctor`, `/login`, `/logout`, `/mcp`, `/model`, `/plugin`, and `/status`: primary setup, routing, and diagnostics flows.
46
49
  - `clavue land` (shell, not a slash command): re-run tests on matching worktree tips, then serially fast-forward or rebase+fast-forward them onto main. `--push` runs only after every selected tip landed. Holds the main task lease; tip leases do not block it.
47
50
 
48
- Secondary surfaces such as `/review`, `/compact`, `/config`, `/memory`, `/theme`, `/usage`, `/cost`, `/vim`, and `/parallel` remain available for focused workflows. Typing bare `/` or opening `/help` shows a curated workflow-ordered menu of 20 core built-in commands plus user/project/plugin/MCP skills, while compatibility commands remain directly executable and prefix-searchable and legacy relics stay hidden (see [docs/prompt-first-commands-and-diary.md](./docs/prompt-first-commands-and-diary.md) and [docs/diary-style.md](./docs/diary-style.md)). `/parallel` launches Agent workers only when you type it. Saying 「多开几个 clavue」 does not run it; the lead session spawns Agent and Team workers instead. `/usage` and `/cost` show this session's tokens and, on official cloud after the first request, membership points. USD on official SKUs is an estimate — billing is in points. Compatibility aliases are documented only when they are part of a canonical flow; internal, hidden, disabled stub, and experimental commands are not public defaults. Long-context recovery includes proactive compaction plus reactive overflow recovery for long-running work.
51
+ Secondary surfaces such as `/review`, `/compact`, `/config`, `/memory`, `/theme`, `/usage`, `/cost`, `/vim`, and `/parallel` remain available for focused workflows. Typing bare `/` or opening `/help` shows a curated workflow-ordered menu of 29 core built-in commands plus user/project/plugin/MCP skills, while compatibility commands remain directly executable and prefix-searchable and legacy relics stay hidden (see [docs/prompt-first-commands-and-diary.md](./docs/prompt-first-commands-and-diary.md) and [docs/diary-style.md](./docs/diary-style.md)). `/parallel` launches Agent workers only when you type it. Saying 「多开几个 clavue」 does not run it; the lead session spawns Agent and Team workers instead. `/usage` and `/cost` show this session's tokens and, on official cloud after the first request, membership points. USD on official SKUs is an estimate — billing is in points. Compatibility aliases are documented only when they are part of a canonical flow; internal, hidden, disabled stub, and experimental commands are not public defaults. Long-context recovery includes proactive compaction plus reactive overflow recovery for long-running work.
49
52
 
50
53
  ## Study Guide
51
54
 
@@ -57,7 +60,7 @@ For provider and model routing setup, see [Clavue Provider And Model Best Practi
57
60
 
58
61
  ## Host integration (imux, tmux, IDE, Agent Chat)
59
62
 
60
- Other software should **spawn** `clavue-v1`, not embed a second agent loop. Full contract: [Host integration](./docs/host-integration.md). Third-party discovery, acpx recipes, and the ACP/MCP/A2A/PTY split: [ACP / acpx interoperability](./docs/acp-acpx-interoperability.md).
63
+ Other software should **spawn** `clavue-v1`, not embed a second agent loop. Full contract: [Host integration](./docs/host-integration.md). End-to-end GUI / IDE / Harness / Chat / Agent Bot playbook & progress-feedback blueprint: [GUI / IDE / Harness Playbook](./docs/gui-ide-harness-playbook.md). Third-party discovery, acpx recipes, and the ACP/MCP/A2A/PTY split: [ACP / acpx interoperability](./docs/acp-acpx-interoperability.md).
61
64
 
62
65
  ```bash
63
66
  clavue-v1 interop
@@ -92,7 +95,7 @@ clavue-v1 --version
92
95
  Pin a version:
93
96
 
94
97
  ```bash
95
- curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.74.0/install.sh | bash -s -- 1.74.0
98
+ curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.74.2/install.sh | bash -s -- 1.74.2
96
99
  ```
97
100
 
98
101
  Upgrade later with `clavue update` or `clavue-v1 update` (startup check / `/update` also prefer the public v1 release, then fall back to npm).
@@ -103,7 +106,7 @@ Upgrade later with `clavue update` or `clavue-v1 update` (startup check / `/upda
103
106
  npm install -g clavue-v1
104
107
  # or one-shot:
105
108
  npx -y clavue-v1
106
- npx -y clavue-v1@1.74.0 --version
109
+ npx -y clavue-v1@1.74.2 --version
107
110
  ```
108
111
 
109
112
  One-line global install via the package (npm / unpkg):
@@ -115,7 +118,7 @@ curl -fsSL https://unpkg.com/clavue-v1/install.sh | bash
115
118
  Install a specific version globally:
116
119
 
117
120
  ```bash
118
- curl -fsSL https://unpkg.com/clavue-v1@1.74.0/install.sh | bash -s -- 1.74.0
121
+ curl -fsSL https://unpkg.com/clavue-v1@1.74.2/install.sh | bash -s -- 1.74.2
119
122
  ```
120
123
 
121
124
  ```bash
@@ -156,7 +159,7 @@ only the credential source and the model catalog differ.
156
159
 
157
160
  ```text
158
161
  主模型: clavue (official primary; /model may pin clavue-2.1)
159
- Haiku: clavue-2.1-fast (light / explore — Qwen fast pool)
162
+ Haiku: clavue-24a (light / explore — Qwen fast pool; clavue-2.1-fast alias)
160
163
  Sonnet: clavue-2.1 (subagent / general coding SKU)
161
164
  Opus: clavue-2.1-pro (plan / long-horizon — DeepSeek flash)
162
165
  Review: clavue-2.1-rev (combo review — DeepSeek pro; cross-family vs Qwen main)
@@ -177,9 +180,9 @@ official cloud.
177
180
  [`docs/official-api-clavue-com.md`](docs/official-api-clavue-com.md)。私有 relay 地址不是客户端公开 API 地址。
178
181
 
179
182
  Official sessions fill combo slots without writing them into your shell:
180
- `light=clavue-2.1-fast`, `plan=clavue-2.1-pro`, `review=clavue-2.1-rev`. MAIN
183
+ `light=clavue-24a` (`clavue-2.1-fast` alias), `plan=clavue-2.1-pro`, `review=clavue-2.1-rev`. MAIN
181
184
  stays `/model` (or the profile primary). `CLAVUE_COMBO_OFF=1` or a per-slot
182
- `0` / `off` turns that fill off.
185
+ `0` / `off` turns that fill off cleanly (subagent slot references fall back to the active session model). Run `/combo` anytime to inspect active slot provenance and detect env shadowing.
183
186
 
184
187
  Product routing env names are `CLAVUE_BASE_URL` and `CLAVUE_API_KEY`.
185
188
  Legacy `ANTHROPIC_BASE_URL` / `ANTHROPIC_API_KEY` still work as read-only
@@ -740,7 +743,7 @@ Version check:
740
743
 
741
744
  ```bash
742
745
  npx -y clavue-v1 --version
743
- npx -y clavue-v1@1.74.0 --version
746
+ npx -y clavue-v1@1.74.1 --version
744
747
  # available after a global install; both names are this package
745
748
  clavue --version
746
749
  clavue-v1 --version