clavue 8.22.21 → 8.22.23
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 +5 -5
- package/dist/cli.js +32 -32
- package/dist/mao-command.js +1 -1
- package/dist/openai-responses-adapter.js +3 -3
- package/dist/provider-setup.js +1 -1
- package/docs/CONTEXT-ARCHITECTURE-V2.md +4 -4
- package/package.json +2 -2
package/dist/provider-setup.js
CHANGED
|
@@ -7,7 +7,7 @@ import { createInterface } from 'node:readline/promises'
|
|
|
7
7
|
import { stdin, stdout } from 'node:process'
|
|
8
8
|
import { fileURLToPath } from 'node:url'
|
|
9
9
|
|
|
10
|
-
const APP_VERSION = '8.22.
|
|
10
|
+
const APP_VERSION = '8.22.23'
|
|
11
11
|
const APP_NPM_PACKAGE_NAME = 'clavue'
|
|
12
12
|
export const CURRENT_PROVIDER_PROFILE_ID = '__current_provider__'
|
|
13
13
|
const SUPPORTED_LANGUAGES = new Set(['en', 'zh'])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Context Architecture v2 — Cache-aware Boundary Migration
|
|
2
2
|
|
|
3
|
-
> Status:
|
|
3
|
+
> Status: shipped default-on implementation; set CLAVUE_BOUNDARY_V2=0/false/no/off only as a rollback switch (Responses priority for gpt-5.x).
|
|
4
4
|
> Core: append-only in-memory + archive.md blob, v2 boundary metadata (archivedRange, summaryBlobOffset, schemaVersion),
|
|
5
5
|
> resume hydration, Responses stateful reset on compact + postCompactAnchor + isV2PostCompactAnchor in policy,
|
|
6
6
|
> fingerprint includes v2_archived for logical prefix stability, Responses builder attaches _clavue_v2_archived + _has_pinned to metadata
|
|
@@ -161,7 +161,7 @@ Backwards compat:
|
|
|
161
161
|
|
|
162
162
|
- Old sessions (no `schemaVersion: 'v2'` on boundary) → fall back to v1
|
|
163
163
|
loader, which reads inline summary messages exactly as today
|
|
164
|
-
- New sessions
|
|
164
|
+
- New sessions write v2 format by default unless `CLAVUE_BOUNDARY_V2=0` disables it
|
|
165
165
|
- Mixed mode (resumed v1 session, new compact triggers under v2 flag) →
|
|
166
166
|
upgrade in place: write archive.md, drop inline summary, leave existing
|
|
167
167
|
v1 boundaries valid for the loader
|
|
@@ -178,7 +178,7 @@ Block implementation on **all** of these, captured from real sessions
|
|
|
178
178
|
| Compact frequency | count of `compact_boundary` per session-hour | Today's median |
|
|
179
179
|
| Emergency-truncate trigger rate | `emergency_truncate` userContext count | Today's median |
|
|
180
180
|
|
|
181
|
-
After v2 ships
|
|
181
|
+
After v2 ships, run AB for 1 week with the
|
|
182
182
|
same metrics. Promote to default only if cache hit rate ≥ 70% AND token
|
|
183
183
|
cost down ≥ 30% AND no regression on the other two.
|
|
184
184
|
|
|
@@ -216,7 +216,7 @@ Phase A (1-2 days) — telemetry only: log cache_hit_rate at every turn
|
|
|
216
216
|
under a `tengu_cache_observability` event. Build
|
|
217
217
|
the baseline dashboard.
|
|
218
218
|
Phase B (3-5 days) — implement archived_history_blob + new boundary
|
|
219
|
-
protocol
|
|
219
|
+
protocol. AB-test on
|
|
220
220
|
internal sessions.
|
|
221
221
|
Phase C (1 week) — flip default to v2 for new sessions; resumed v1
|
|
222
222
|
sessions stay on v1 until next compact upgrades
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavue",
|
|
3
|
-
"version": "8.22.
|
|
3
|
+
"version": "8.22.23",
|
|
4
4
|
"description": "Clavue: execution-first AI coding CLI with direct repo tools, provider routing, native workflows, MCP integration, and long-session recovery",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"clavue",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"build": "npm run verify:dist-clean && npm run check && npm pack --dry-run",
|
|
75
75
|
"build:knowledge": "node scripts/build-project-knowledge.mjs",
|
|
76
76
|
"vendor:ripgrep": "node scripts/vendor-ripgrep.mjs",
|
|
77
|
-
"check": "npm run vendor:ripgrep && npm run validate:repo && npm run verify:dist && npm run verify:source-build && npm run check:source-purity && npm test",
|
|
77
|
+
"check": "npm run vendor:ripgrep && npm run validate:repo && npm run verify:dist-clean && npm run verify:dist && npm run verify:source-build && npm run check:source-purity && npm test",
|
|
78
78
|
"check:hygiene": "npm run validate:repo",
|
|
79
79
|
"check:source-purity": "node scripts/check-source-purity.mjs",
|
|
80
80
|
"check:boundaries": "node scripts/check-architecture-boundaries.mjs",
|