@askalf/dario 5.2.21 → 5.3.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 +1 -1
- package/dist/analytics.js +4 -0
- package/dist/cc-template.d.ts +5 -0
- package/dist/cc-template.js +5 -0
- package/dist/cli.js +1 -1
- package/dist/doctor.js +1 -1
- package/dist/model-catalog.js +1 -0
- package/dist/proxy.js +3 -2
- package/dist/tui/tabs/status.d.ts +1 -1
- package/dist/tui/tabs/status.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -124,7 +124,7 @@ You point every tool at one URL. dario reads each request, decides which backend
|
|
|
124
124
|
|
|
125
125
|
The tool doesn't know. The backend doesn't know. dario is the seam.
|
|
126
126
|
|
|
127
|
-
**The full Claude lineup, autodetected.** Opus 4.8, Sonnet 5, and Haiku 4.5 — plus `[1m]` long-context variants — by full id (`claude-opus-
|
|
127
|
+
**The full Claude lineup, autodetected.** Opus 5, Opus 4.8, Sonnet 5, and Haiku 4.5 — plus `[1m]` long-context variants — by full id (`claude-opus-5`) or shortcut (`opus` / `sonnet` / `haiku`, append `1m` for the long-context form). `GET /v1/models` reads Anthropic's live catalog (TTL-cached, baked fallback when offline), so a new model resolves the day it lands with no dario release, and the model-specific request shape is applied automatically. Families pulled upstream are filtered from both the live catalog and the fallback so `/v1/models` never advertises a model that 404s — reversible via `DARIO_SUSPENDED_MODELS` if a family is ever pulled again.
|
|
128
128
|
|
|
129
129
|
---
|
|
130
130
|
|
package/dist/analytics.js
CHANGED
|
@@ -118,6 +118,10 @@ const PRICING = {
|
|
|
118
118
|
// $10/$50 per 1M in/out, 5m cache-write $12.50, cache-read $1 (platform docs).
|
|
119
119
|
// Was previously assumed at the opus-4-8 rate ($5/$25) — corrected here.
|
|
120
120
|
'claude-fable-5': { input: 10, output: 50, cacheRead: 1, cacheCreate: 12.5 },
|
|
121
|
+
// Opus 5 ships at the Opus 4.8 rate — $5/$25, no long-context premium. (Its
|
|
122
|
+
// fast-mode tier is $10/$50, but that rides `speed:"fast"` on the API path,
|
|
123
|
+
// which the subscription surface dario proxies never sends.)
|
|
124
|
+
'claude-opus-5': { input: 5, output: 25, cacheRead: 0.5, cacheCreate: 6.25 },
|
|
121
125
|
'claude-opus-4-8': { input: 5, output: 25, cacheRead: 0.5, cacheCreate: 6.25 },
|
|
122
126
|
'claude-opus-4-7': { input: 5, output: 25, cacheRead: 0.5, cacheCreate: 6.25 },
|
|
123
127
|
// Opus 4.6 is $5/$25 (same as 4.7/4.8), not the old $15/$75 Opus-4.1 rate.
|
package/dist/cc-template.d.ts
CHANGED
|
@@ -412,6 +412,11 @@ export declare function resolveEffort(flag: EffortValue | undefined, clientBody:
|
|
|
412
412
|
*
|
|
413
413
|
* Empirical results (2026-05-15, live OAuth-subscription probes against
|
|
414
414
|
* api.anthropic.com — see dario#NNN for the probe matrix):
|
|
415
|
+
* claude-opus-5 ✓ accepts adaptive (2026-07-24 — Opus 5 runs adaptive
|
|
416
|
+
* by DEFAULT: unlike 4.8/4.7, an omitted `thinking`
|
|
417
|
+
* field still thinks. dario sends it explicitly either
|
|
418
|
+
* way, and never sends `{type:"disabled"}` — which on
|
|
419
|
+
* this model 400s above `high` effort)
|
|
415
420
|
* claude-opus-4-8 ✓ accepts adaptive (verified 2026-05-28)
|
|
416
421
|
* claude-opus-4-7 ✓ accepts adaptive
|
|
417
422
|
* claude-opus-4-6 ✓ accepts adaptive
|
package/dist/cc-template.js
CHANGED
|
@@ -1177,6 +1177,11 @@ export function resolveEffort(flag, clientBody, model) {
|
|
|
1177
1177
|
*
|
|
1178
1178
|
* Empirical results (2026-05-15, live OAuth-subscription probes against
|
|
1179
1179
|
* api.anthropic.com — see dario#NNN for the probe matrix):
|
|
1180
|
+
* claude-opus-5 ✓ accepts adaptive (2026-07-24 — Opus 5 runs adaptive
|
|
1181
|
+
* by DEFAULT: unlike 4.8/4.7, an omitted `thinking`
|
|
1182
|
+
* field still thinks. dario sends it explicitly either
|
|
1183
|
+
* way, and never sends `{type:"disabled"}` — which on
|
|
1184
|
+
* this model 400s above `high` effort)
|
|
1180
1185
|
* claude-opus-4-8 ✓ accepts adaptive (verified 2026-05-28)
|
|
1181
1186
|
* claude-opus-4-7 ✓ accepts adaptive
|
|
1182
1187
|
* claude-opus-4-6 ✓ accepts adaptive
|
package/dist/cli.js
CHANGED
|
@@ -1254,7 +1254,7 @@ async function help() {
|
|
|
1254
1254
|
Proxy options:
|
|
1255
1255
|
--model=MODEL Force a model for all requests
|
|
1256
1256
|
Shortcuts: fable, fable1m, opus, sonnet, haiku
|
|
1257
|
-
Full IDs: claude-fable-5, claude-opus-
|
|
1257
|
+
Full IDs: claude-fable-5, claude-opus-5,
|
|
1258
1258
|
claude-sonnet-5 (append [1m] for 1M context)
|
|
1259
1259
|
Provider prefix: openai:gpt-4o, groq:llama-3.3-70b,
|
|
1260
1260
|
claude:opus, local:qwen-coder (forces backend)
|
package/dist/doctor.js
CHANGED
|
@@ -180,7 +180,7 @@ export function probeNpmLatestCC() {
|
|
|
180
180
|
const PROBE_FAMILIES = [
|
|
181
181
|
{ family: 'haiku', model: 'claude-haiku-4-5' },
|
|
182
182
|
{ family: 'sonnet', model: 'claude-sonnet-5' },
|
|
183
|
-
{ family: 'opus', model: 'claude-opus-
|
|
183
|
+
{ family: 'opus', model: 'claude-opus-5' },
|
|
184
184
|
{ family: 'fable', model: 'claude-fable-5' },
|
|
185
185
|
];
|
|
186
186
|
/**
|
package/dist/model-catalog.js
CHANGED
package/dist/proxy.js
CHANGED
|
@@ -205,10 +205,11 @@ function loadClaudeIdentity() {
|
|
|
205
205
|
const MODEL_ALIASES = {
|
|
206
206
|
'fable': 'claude-fable-5',
|
|
207
207
|
'fable1m': 'claude-fable-5[1m]',
|
|
208
|
-
'opus': 'claude-opus-
|
|
208
|
+
'opus': 'claude-opus-5',
|
|
209
|
+
'opus48': 'claude-opus-4-8',
|
|
209
210
|
'opus47': 'claude-opus-4-7',
|
|
210
211
|
'opus46': 'claude-opus-4-6',
|
|
211
|
-
'opus1m': 'claude-opus-
|
|
212
|
+
'opus1m': 'claude-opus-5[1m]',
|
|
212
213
|
'sonnet': 'claude-sonnet-5',
|
|
213
214
|
'sonnet46': 'claude-sonnet-4-6',
|
|
214
215
|
'sonnet1m': 'claude-sonnet-5[1m]',
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* └─────────────────────────────────────────────────┘
|
|
21
21
|
* ┌─ Models ────────────────────────────────────────┐
|
|
22
22
|
* │ claude-fable-5 +[1m] │
|
|
23
|
-
* │ claude-opus-
|
|
23
|
+
* │ claude-opus-5 +[1m] │
|
|
24
24
|
* │ claude-sonnet-5 +[1m] │
|
|
25
25
|
* │ …the advertised catalog, live from /v1/models │
|
|
26
26
|
* └─────────────────────────────────────────────────┘
|
package/dist/tui/tabs/status.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* └─────────────────────────────────────────────────┘
|
|
21
21
|
* ┌─ Models ────────────────────────────────────────┐
|
|
22
22
|
* │ claude-fable-5 +[1m] │
|
|
23
|
-
* │ claude-opus-
|
|
23
|
+
* │ claude-opus-5 +[1m] │
|
|
24
24
|
* │ claude-sonnet-5 +[1m] │
|
|
25
25
|
* │ …the advertised catalog, live from /v1/models │
|
|
26
26
|
* └─────────────────────────────────────────────────┘
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@askalf/dario",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "Use your Claude Pro/Max subscription in any tool — Cursor, Cline, Aider, the Agent SDK, your scripts — at subscription pricing, not per-token API bills. One local Anthropic + OpenAI-compatible endpoint.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|