clavue-v1 1.0.2 → 1.2.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Clavue v1 (clavue-v1)
2
2
 
3
- ![Clavue cover](https://unpkg.com/clavue/image.png)
3
+ ![Clavue cover](https://unpkg.com/clavue-v1/image.png)
4
4
 
5
5
  `clavue-v1` is an execution-first AI coding CLI built on the stable v8.9.1 engine with a lightweight four-slot multi-model combo layer (`main` / `light` / `plan` / `review`). It keeps the terminal as the control surface, uses direct repo tools for inspection/editing/verification, treats API providers as configurable routes, and passes slot models through verbatim — no allowlist, no family filter. Combo is opt-in via `CLAVUE_COMBO_*` env vars; with combo off, behavior is byte-identical to v8.9.1.
6
6
 
@@ -13,7 +13,7 @@ Clavue is built around a simple operating model: the user owns the workflow, the
13
13
  - Provider control, not provider identity: official login, custom API profiles, and compatible gateways are routing choices. The product identity remains Clavue.
14
14
  - Native coding workflows: direct file tools, shell execution, task tracking, worktrees, skills, and MCP resources are part of the runtime loop.
15
15
  - Fast first run: install, choose an API configuration mode, paste URL/key or token, set model slots if needed, then start coding.
16
- - Visible configuration: `/provider` and `clavue provider` expose the active route, saved profiles, credential mode, model slots, validation, repair, and current environment state.
16
+ - Visible configuration: `/provider` and `clavue-v1 provider` expose the active route, saved profiles, credential mode, model slots, validation, repair, and current environment state.
17
17
  - Practical autonomy: permission setup should make development smoother while still being explicit about trust boundaries.
18
18
  - Continuity over spectacle: long-context recovery, compaction, `/team`, and `/retro` exist to keep work moving, not to add noise.
19
19
 
@@ -52,7 +52,7 @@ For provider and model routing setup, see [Clavue Provider And Model Best Practi
52
52
 
53
53
  Requirements:
54
54
 
55
- - Node.js 18 or newer
55
+ - Node.js 22.18 or newer (tests and source-direct runs rely on native TypeScript type stripping)
56
56
  - macOS or Linux shell environment
57
57
 
58
58
  Run once with `npx` when you do not want a global install:
@@ -64,11 +64,11 @@ npx -y clavue-v1
64
64
  Run a specific version with `npx`:
65
65
 
66
66
  ```bash
67
- npx -y clavue-v1@1.0.0 --version
68
- npx -y clavue-v1@1.0.0
67
+ npx -y clavue-v1@1.2.0 --version
68
+ npx -y clavue-v1@1.2.0
69
69
  ```
70
70
 
71
- Install globally from npm when you want the `clavue` command to stay available:
71
+ Install globally from npm when you want the `clavue-v1` command to stay available:
72
72
 
73
73
  ```bash
74
74
  npm install -g clavue-v1
@@ -76,7 +76,7 @@ clavue-v1 --version
76
76
  clavue-v1
77
77
  ```
78
78
 
79
- The package also exposes a `clavue` bin alias for drop-in migration.
79
+ The package exposes a single `clavue-v1` bin. It deliberately does not claim the `clavue` name, so a global install never clashes with an existing `clavue` (v8.9.1) installation.
80
80
 
81
81
  One-line global install:
82
82
 
@@ -87,15 +87,40 @@ curl -fsSL https://unpkg.com/clavue-v1/install.sh | bash
87
87
  Install a specific version globally:
88
88
 
89
89
  ```bash
90
- curl -fsSL https://unpkg.com/clavue-v1@1.0.0/install.sh | bash -s -- 1.0.0
90
+ curl -fsSL https://unpkg.com/clavue-v1@1.2.0/install.sh | bash -s -- 1.2.0
91
91
  ```
92
92
 
93
+ ## Quick Start: Official Clavue Cloud
94
+
95
+ Official mode is a provider profile, not a second runtime: the same tools,
96
+ compaction, permissions, and route inspection as every custom-API profile —
97
+ only the credential source and the model catalog differ.
98
+
99
+ 1. Create a member API key at `https://www.clavue.com/account` (`cv_live_…`).
100
+ 2. Start `clavue-v1`, choose `自定义 API 配置` → `1. 添加配置`, pick the
101
+ `Clavue 官方` preset (API URL `https://api.clavue.com`), paste the key as
102
+ the auth token, and set model slots from the official family:
103
+
104
+ ```text
105
+ 主模型: clavue-2.1 (official 27B coding model, 128K, premium pool)
106
+ Haiku: clavue-2.1-fast (same model, fast pool — higher daily quota)
107
+ Sonnet: clavue-2.1-pro (premium ceiling for planning and long-horizon work)
108
+ Opus: clavue-2.1-rev (review-oriented; a different family from clavue-2.1, so it
109
+ also works as CLAVUE_COMBO_REVIEW for cross-family review)
110
+ ```
111
+
112
+ `auto` is also accepted. The CLI talks to `api.clavue.com/v1/messages`
113
+ (Anthropic Messages API) and `/provider current` shows your plan and remaining
114
+ points from the `x-clavue-points-*` response headers. Official identity is
115
+ decided by exact host match only — a third-party gateway can never be
116
+ mistaken for the official cloud.
117
+
93
118
  ## Quick Start: Custom API
94
119
 
95
120
  Fastest path for custom API users:
96
121
 
97
- 1. Install with `curl -fsSL https://unpkg.com/clavue/install.sh | bash`
98
- 2. Start with `clavue`
122
+ 1. Install with `curl -fsSL https://unpkg.com/clavue-v1/install.sh | bash`
123
+ 2. Start with `clavue-v1`
99
124
  3. At `请选择 API 配置模式`, choose `自定义 API 配置`
100
125
  4. Choose `1. 添加配置`
101
126
  5. Enter a profile name, API base URL, API key or auth token, and optional model slots
@@ -113,14 +138,14 @@ Opus 模型: planning/high-capability model, or leave empty to inherit safely
113
138
  Useful recovery commands:
114
139
 
115
140
  ```bash
116
- clavue provider # reopen the same API setup manager
117
- clavue provider list # list saved profiles without opening the UI
118
- clavue provider current
119
- clavue provider doctor # diagnose source-of-truth, drift, validation, and next repair action
120
- clavue provider validate
141
+ clavue-v1 provider # reopen the same API setup manager
142
+ clavue-v1 provider list # list saved profiles without opening the UI
143
+ clavue-v1 provider current
144
+ clavue-v1 provider doctor # diagnose source-of-truth, drift, validation, and next repair action
145
+ clavue-v1 provider validate
121
146
  ```
122
147
 
123
- Use `clavue auth login` only if you want the official Anthropic login path. Custom API users do not need official login.
148
+ Use `clavue-v1 auth login` only if you want the official Anthropic login path. Custom API users do not need official login.
124
149
 
125
150
  ## First Useful Session
126
151
 
@@ -147,14 +172,14 @@ On first launch, Clavue should make the setup choice obvious:
147
172
  - Use official login when you want the official Anthropic account flow.
148
173
  - Use custom API configuration when you have an API base URL plus API key or auth token.
149
174
  - Use CCR proxy when your environment already standardizes on a compatible proxy route.
150
- - Skip only when you want to configure later with `clavue provider` or `/provider`.
175
+ - Skip only when you want to configure later with `clavue-v1 provider` or `/provider`.
151
176
 
152
177
  After API setup, Clavue can also ask for a default permission mode. The recommended path for a trusted local development machine is the efficient development mode; the maximum-permission mode is intentionally reserved for environments you fully trust.
153
178
 
154
179
  For deployments, releases, builds, packaging, and operational maintenance where file edits should proceed but shell commands must still be confirmed, use trusted ops mode:
155
180
 
156
181
  ```bash
157
- clavue --permission-mode trustedOps
182
+ clavue-v1 --permission-mode trustedOps
158
183
  ```
159
184
 
160
185
  You can also set it in settings with `"permissions": { "defaultMode": "trustedOps" }`. `trustedOps` behaves like `acceptEdits` for file edit tools in the current workspace, but Bash/PowerShell commands still ask before execution. The legacy `dontAsk` permission mode is deprecated and will not activate from CLI or settings; migrate `dontAsk` defaults to `trustedOps` for release/build/deploy workflows.
@@ -169,7 +194,35 @@ You can also run `/permissions` and choose `Autonomous development` from the mod
169
194
 
170
195
  This package is intended for users who want an execution-first coding CLI with direct repository tools, native workflow orchestration, explicit permission control, and configurable provider routing when compatible providers or gateways are part of the setup.
171
196
 
172
- On macOS, `clavue` avoids Keychain by default and stores local credentials in `~/.clavue/.credentials.json` so startup does not trigger system Keychain prompts. If you explicitly want the old Keychain behavior back, launch with `CLAVUE_USE_KEYCHAIN=1 clavue`.
197
+ On macOS, Clavue avoids Keychain by default and stores local credentials in `~/.clavue/.credentials.json` so startup does not trigger system Keychain prompts. If you explicitly want the old Keychain behavior back, launch with `CLAVUE_USE_KEYCHAIN=1 clavue-v1`.
198
+
199
+ ## Cross-Family Combo Review
200
+
201
+ The review slot puts an independent model family between "the code changed"
202
+ and "the work is done". Since 1.2.0 review is scheduled so it does not tax
203
+ every edit:
204
+
205
+ ```bash
206
+ CLAVUE_COMBO_MAIN=glm-5.3-flash # developer model (any slot model is passed through verbatim)
207
+ CLAVUE_COMBO_REVIEW=deepseek-v4-flash # reviewer — pick a different family than main
208
+ CLAVUE_COMBO_REVIEW_MODE=overlap # overlap (default) | serial
209
+ CLAVUE_COMBO_REVIEW_MIN_CHANGED_CHARS=80 # small edits accumulate; one review covers them
210
+ CLAVUE_COMBO_REVIEW_MAX_PER_CHAIN=3 # review budget per query chain
211
+ CLAVUE_COMBO_REVIEW_GRACE_MS=5000 # bounded wait for the final verdict at chain end
212
+ CLAVUE_COMBO_REVIEW_FIX_LOOP=1 # opt-in: a chain-end "P0:" verdict grants one bounded fix turn
213
+ ```
214
+
215
+ - `overlap` fires the review hop without blocking; the verdict is injected
216
+ at the next loop boundary so the developer model actually acts on it.
217
+ In the shipped A/B it roughly halves the review tax versus `serial`
218
+ (+38% vs +94% wall-clock on the hard task).
219
+ - The reviewer is told which family wrote the code and which failure modes
220
+ that family is prone to. Same-family pairs still work; `/provider current`
221
+ flags them so you can choose an independent second opinion.
222
+ - Review-on and the fix loop stay opt-in: on oracle-complete tasks a
223
+ competent developer model saturates on its own (see
224
+ `docs/evals/combo-review/`), so the defaults do not spend your time until
225
+ the discriminating experiment justifies it.
173
226
 
174
227
  ## Long-Running Session Memory
175
228
 
@@ -178,39 +231,38 @@ Clavue automatically restarts normal long-running sessions with `--max-old-space
178
231
  Useful controls:
179
232
 
180
233
  ```bash
181
- CLAVUE_MAX_OLD_SPACE_SIZE_MB=12288 clavue
182
- CLAVUE_DISABLE_HEAP_REEXEC=1 clavue
183
- NODE_OPTIONS="--max-old-space-size=12288" clavue
234
+ CLAVUE_MAX_OLD_SPACE_SIZE_MB=12288 clavue-v1
235
+ CLAVUE_DISABLE_HEAP_REEXEC=1 clavue-v1
236
+ NODE_OPTIONS="--max-old-space-size=12288" clavue-v1
184
237
  ```
185
238
 
186
- `clavue --version` stays on the zero-load fast path and does not restart.
239
+ `clavue-v1 --version` stays on the zero-load fast path and does not restart.
187
240
 
188
241
  ## CLI Entry Points
189
242
 
190
243
  Version check:
191
244
 
192
245
  ```bash
193
- clavue --version
194
246
  npx -y clavue-v1 --version
195
- npx -y clavue-v1@1.0.0 --version
196
- # available after a global install and launcher setup
197
- clavue --version
247
+ npx -y clavue-v1@1.2.0 --version
248
+ # available after a global install
249
+ clavue-v1 --version
198
250
  ```
199
251
 
200
252
  Provider/config entry point:
201
253
 
202
254
  ```bash
203
- clavue provider
255
+ clavue-v1 provider
204
256
  ```
205
257
 
206
258
  Anthropic account login/token commands:
207
259
 
208
260
  ```bash
209
- clavue auth login
210
- clavue setup-token
261
+ clavue-v1 auth login
262
+ clavue-v1 setup-token
211
263
  ```
212
264
 
213
- `clavue auth login` and `clavue setup-token` are only for Anthropic account auth flows. They are not the provider-profile entrypoint.
265
+ `clavue-v1 auth login` and `clavue-v1 setup-token` are only for Anthropic account auth flows. They are not the provider-profile entrypoint.
214
266
 
215
267
  ## In-Session Workflows
216
268
 
@@ -232,7 +284,7 @@ clavue setup-token
232
284
 
233
285
  The Mao supervisor ledger is still used internally by delivery gates; user-facing `/mao` and `/codex` command surfaces are hidden while native Team/Agent workflows remain the public agent system.
234
286
 
235
- `/team` inspects real local team state from the active config root instead of giving a generic explanation. By default that is `~/.clavue/teams`, but it follows `CLAVUE_CONFIG_DIR` if you launch clavue against a different config root.
287
+ `/team` inspects real local team state from the active config root instead of giving a generic explanation. By default that is `~/.clavue/teams`, but it follows `CLAVUE_CONFIG_DIR` if you launch clavue-v1 against a different config root.
236
288
 
237
289
  ```text
238
290
  /team
@@ -283,9 +335,9 @@ Companion commands are still available and can either follow the current app pro
283
335
 
284
336
  ## Package And Release Model
285
337
 
286
- - Source repo: `https://github.com/mycode699/clavue`
287
- - Public package: `https://www.npmjs.com/package/clavue`
288
- - Public install entrypoint: `npx -y clavue`
338
+ - Source repo: `https://github.com/mycode699/clavue-v1`
339
+ - Public package: `https://www.npmjs.com/package/clavue-v1`
340
+ - Public install entrypoint: `npx -y clavue-v1`
289
341
  - `src/` is the development surface for new changes, while the checked-in `dist/` bundle is the current shipped runtime artifact
290
342
  - `types/generated/` holds generated contract types that stay outside authored runtime source
291
343
  - GitHub Releases publish installable archives plus `install.sh`
@@ -298,6 +350,9 @@ Companion commands are still available and can either follow the current app pro
298
350
 
299
351
  ```bash
300
352
  npm run validate:repo
353
+ npm run typecheck
354
+ npm run lint
355
+ npm run test:fast
301
356
  npm run verify:dist
302
357
  node scripts/verify-provider-command-sidecar.mjs
303
358
  npm run verify:source-build
@@ -309,6 +364,9 @@ npm run package:release
309
364
  ```
310
365
 
311
366
  - `npm run validate:repo`: checks package metadata, required tracked files, workflow presence, and tag/version consistency
367
+ - `npm run typecheck`: TypeScript 7 native full check (~2s) gated by a decrease-only error baseline in `scripts/typecheck-baseline.json`
368
+ - `npm run lint`: Biome correctness rules scoped to changed files (`npm run lint:all` for the full tree)
369
+ - `npm run test:fast`: curated 14-file high-signal suite under a 20s wall-clock budget
312
370
  - `npm run verify:dist`: smoke-tests `dist/cli.js`, provider setup, provider command, and release-critical sidecars
313
371
  - `node scripts/verify-provider-command-sidecar.mjs`: focused guard that fails if `dist/provider-command.js` drifts from the authored provider command source
314
372
  - `npm run verify:source-build`: rebuilds from `src/` into `experimental-dist/` and requires `--version` plus `--help` to boot under Node