clavue-v1 1.0.2 → 1.1.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 +40 -35
- package/dist/cli.js +297 -297
- package/dist/mao-command.js +1 -1
- package/dist/openai-responses-adapter.js +21 -21
- package/dist/provider-setup.js +1 -1
- package/dist/vendor/ripgrep/arm64-darwin/rg +0 -0
- package/dist/vendor/ripgrep/arm64-linux/rg +0 -0
- package/dist/vendor/ripgrep/arm64-win32/rg.exe +0 -0
- package/dist/vendor/ripgrep/x64-darwin/rg +0 -0
- package/dist/vendor/ripgrep/x64-linux/rg +0 -0
- package/dist/vendor/ripgrep/x64-win32/rg.exe +0 -0
- package/docs/archive/COMPANION_HOOKS_AND_MEMORY_ARCHITECTURE.md +383 -0
- package/docs/archive/COMPANION_UPGRADE_PLAN.md +411 -0
- package/docs/archive/MYCLAUDE_PROGRAM.md +385 -0
- package/docs/archive/UPGRADE_COHERENCE_AUDIT.md +369 -0
- package/docs/archive/bug-session-log-2026.md +34 -0
- package/docs/archive/shengji.md +167 -0
- package/docs/archive/tisheng.md +763 -0
- package/docs/archive/wendanG.MD +407 -0
- package/docs/archive/yunying.md +77 -0
- package/install.sh +10 -8
- package/package.json +13 -6
- package/docs/image copy 2.png +0 -0
- package/docs/image copy 3.png +0 -0
- package/docs/image copy.png +0 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Clavue v1 (clavue-v1)
|
|
2
2
|
|
|
3
|
-

|
|
3
|
+

|
|
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.
|
|
68
|
-
npx -y clavue-v1@1.
|
|
67
|
+
npx -y clavue-v1@1.1.0 --version
|
|
68
|
+
npx -y clavue-v1@1.1.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
|
|
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,15 @@ 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.
|
|
90
|
+
curl -fsSL https://unpkg.com/clavue-v1@1.1.0/install.sh | bash -s -- 1.1.0
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
## Quick Start: Custom API
|
|
94
94
|
|
|
95
95
|
Fastest path for custom API users:
|
|
96
96
|
|
|
97
|
-
1. Install with `curl -fsSL https://unpkg.com/clavue/install.sh | bash`
|
|
98
|
-
2. Start with `clavue`
|
|
97
|
+
1. Install with `curl -fsSL https://unpkg.com/clavue-v1/install.sh | bash`
|
|
98
|
+
2. Start with `clavue-v1`
|
|
99
99
|
3. At `请选择 API 配置模式`, choose `自定义 API 配置`
|
|
100
100
|
4. Choose `1. 添加配置`
|
|
101
101
|
5. Enter a profile name, API base URL, API key or auth token, and optional model slots
|
|
@@ -113,14 +113,14 @@ Opus 模型: planning/high-capability model, or leave empty to inherit safely
|
|
|
113
113
|
Useful recovery commands:
|
|
114
114
|
|
|
115
115
|
```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
|
|
116
|
+
clavue-v1 provider # reopen the same API setup manager
|
|
117
|
+
clavue-v1 provider list # list saved profiles without opening the UI
|
|
118
|
+
clavue-v1 provider current
|
|
119
|
+
clavue-v1 provider doctor # diagnose source-of-truth, drift, validation, and next repair action
|
|
120
|
+
clavue-v1 provider validate
|
|
121
121
|
```
|
|
122
122
|
|
|
123
|
-
Use `clavue auth login` only if you want the official Anthropic login path. Custom API users do not need official login.
|
|
123
|
+
Use `clavue-v1 auth login` only if you want the official Anthropic login path. Custom API users do not need official login.
|
|
124
124
|
|
|
125
125
|
## First Useful Session
|
|
126
126
|
|
|
@@ -147,14 +147,14 @@ On first launch, Clavue should make the setup choice obvious:
|
|
|
147
147
|
- Use official login when you want the official Anthropic account flow.
|
|
148
148
|
- Use custom API configuration when you have an API base URL plus API key or auth token.
|
|
149
149
|
- 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`.
|
|
150
|
+
- Skip only when you want to configure later with `clavue-v1 provider` or `/provider`.
|
|
151
151
|
|
|
152
152
|
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
153
|
|
|
154
154
|
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
155
|
|
|
156
156
|
```bash
|
|
157
|
-
clavue --permission-mode trustedOps
|
|
157
|
+
clavue-v1 --permission-mode trustedOps
|
|
158
158
|
```
|
|
159
159
|
|
|
160
160
|
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 +169,7 @@ You can also run `/permissions` and choose `Autonomous development` from the mod
|
|
|
169
169
|
|
|
170
170
|
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
171
|
|
|
172
|
-
On macOS,
|
|
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-v1`.
|
|
173
173
|
|
|
174
174
|
## Long-Running Session Memory
|
|
175
175
|
|
|
@@ -178,39 +178,38 @@ Clavue automatically restarts normal long-running sessions with `--max-old-space
|
|
|
178
178
|
Useful controls:
|
|
179
179
|
|
|
180
180
|
```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
|
|
181
|
+
CLAVUE_MAX_OLD_SPACE_SIZE_MB=12288 clavue-v1
|
|
182
|
+
CLAVUE_DISABLE_HEAP_REEXEC=1 clavue-v1
|
|
183
|
+
NODE_OPTIONS="--max-old-space-size=12288" clavue-v1
|
|
184
184
|
```
|
|
185
185
|
|
|
186
|
-
`clavue --version` stays on the zero-load fast path and does not restart.
|
|
186
|
+
`clavue-v1 --version` stays on the zero-load fast path and does not restart.
|
|
187
187
|
|
|
188
188
|
## CLI Entry Points
|
|
189
189
|
|
|
190
190
|
Version check:
|
|
191
191
|
|
|
192
192
|
```bash
|
|
193
|
-
clavue --version
|
|
194
193
|
npx -y clavue-v1 --version
|
|
195
|
-
npx -y clavue-v1@1.
|
|
196
|
-
# available after a global install
|
|
197
|
-
clavue --version
|
|
194
|
+
npx -y clavue-v1@1.1.0 --version
|
|
195
|
+
# available after a global install
|
|
196
|
+
clavue-v1 --version
|
|
198
197
|
```
|
|
199
198
|
|
|
200
199
|
Provider/config entry point:
|
|
201
200
|
|
|
202
201
|
```bash
|
|
203
|
-
clavue provider
|
|
202
|
+
clavue-v1 provider
|
|
204
203
|
```
|
|
205
204
|
|
|
206
205
|
Anthropic account login/token commands:
|
|
207
206
|
|
|
208
207
|
```bash
|
|
209
|
-
clavue auth login
|
|
210
|
-
clavue setup-token
|
|
208
|
+
clavue-v1 auth login
|
|
209
|
+
clavue-v1 setup-token
|
|
211
210
|
```
|
|
212
211
|
|
|
213
|
-
`clavue auth login` and `clavue setup-token` are only for Anthropic account auth flows. They are not the provider-profile entrypoint.
|
|
212
|
+
`clavue-v1 auth login` and `clavue-v1 setup-token` are only for Anthropic account auth flows. They are not the provider-profile entrypoint.
|
|
214
213
|
|
|
215
214
|
## In-Session Workflows
|
|
216
215
|
|
|
@@ -232,7 +231,7 @@ clavue setup-token
|
|
|
232
231
|
|
|
233
232
|
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
233
|
|
|
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.
|
|
234
|
+
`/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
235
|
|
|
237
236
|
```text
|
|
238
237
|
/team
|
|
@@ -283,9 +282,9 @@ Companion commands are still available and can either follow the current app pro
|
|
|
283
282
|
|
|
284
283
|
## Package And Release Model
|
|
285
284
|
|
|
286
|
-
- Source repo: `https://github.com/mycode699/clavue`
|
|
287
|
-
- Public package: `https://www.npmjs.com/package/clavue`
|
|
288
|
-
- Public install entrypoint: `npx -y clavue`
|
|
285
|
+
- Source repo: `https://github.com/mycode699/clavue-v1`
|
|
286
|
+
- Public package: `https://www.npmjs.com/package/clavue-v1`
|
|
287
|
+
- Public install entrypoint: `npx -y clavue-v1`
|
|
289
288
|
- `src/` is the development surface for new changes, while the checked-in `dist/` bundle is the current shipped runtime artifact
|
|
290
289
|
- `types/generated/` holds generated contract types that stay outside authored runtime source
|
|
291
290
|
- GitHub Releases publish installable archives plus `install.sh`
|
|
@@ -298,6 +297,9 @@ Companion commands are still available and can either follow the current app pro
|
|
|
298
297
|
|
|
299
298
|
```bash
|
|
300
299
|
npm run validate:repo
|
|
300
|
+
npm run typecheck
|
|
301
|
+
npm run lint
|
|
302
|
+
npm run test:fast
|
|
301
303
|
npm run verify:dist
|
|
302
304
|
node scripts/verify-provider-command-sidecar.mjs
|
|
303
305
|
npm run verify:source-build
|
|
@@ -309,6 +311,9 @@ npm run package:release
|
|
|
309
311
|
```
|
|
310
312
|
|
|
311
313
|
- `npm run validate:repo`: checks package metadata, required tracked files, workflow presence, and tag/version consistency
|
|
314
|
+
- `npm run typecheck`: TypeScript 7 native full check (~2s) gated by a decrease-only error baseline in `scripts/typecheck-baseline.json`
|
|
315
|
+
- `npm run lint`: Biome correctness rules scoped to changed files (`npm run lint:all` for the full tree)
|
|
316
|
+
- `npm run test:fast`: curated 14-file high-signal suite under a 20s wall-clock budget
|
|
312
317
|
- `npm run verify:dist`: smoke-tests `dist/cli.js`, provider setup, provider command, and release-critical sidecars
|
|
313
318
|
- `node scripts/verify-provider-command-sidecar.mjs`: focused guard that fails if `dist/provider-command.js` drifts from the authored provider command source
|
|
314
319
|
- `npm run verify:source-build`: rebuilds from `src/` into `experimental-dist/` and requires `--version` plus `--help` to boot under Node
|