@askalf/dario 4.8.53 → 4.8.54

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
@@ -179,7 +179,7 @@ You point every tool at one URL. dario reads each request, decides which backend
179
179
 
180
180
  | Client speaks | Model | Routes to | What happens |
181
181
  |---|---|---|---|
182
- | Anthropic Messages | `claude-*` / `opus` / `sonnet` / `haiku` | Claude backend | OAuth swap + CC template replay → `api.anthropic.com` |
182
+ | Anthropic Messages | `claude-*` / `fable` / `opus` / `sonnet` / `haiku` | Claude backend | OAuth swap + CC template replay → `api.anthropic.com` |
183
183
  | Anthropic Messages | `gpt-*`, `llama-*`, … | OpenAI-compat backend | Anthropic→OpenAI translation, forwarded |
184
184
  | OpenAI Chat | `gpt-*` / `o1-*` / `o3-*` | OpenAI-compat backend | Auth swap, body forwarded byte-for-byte |
185
185
  | OpenAI Chat | `claude-*` | Claude backend | OpenAI→Anthropic translation, then Claude path |
package/dist/proxy.d.ts CHANGED
@@ -111,6 +111,15 @@ export declare function buildOrchestrationPatterns(preserveTags?: Set<string>):
111
111
  * opt any tag out of the scrub. dario#78.
112
112
  */
113
113
  export declare function sanitizeMessages(body: Record<string, unknown>, preserveTags?: Set<string>): void;
114
+ export declare const OPENAI_MODELS_LIST: {
115
+ object: string;
116
+ data: {
117
+ id: string;
118
+ object: string;
119
+ created: number;
120
+ owned_by: string;
121
+ }[];
122
+ };
114
123
  interface ProxyOptions {
115
124
  port?: number;
116
125
  host?: string;
package/dist/proxy.js CHANGED
@@ -477,7 +477,7 @@ function translateStreamChunk(line) {
477
477
  catch { }
478
478
  return null;
479
479
  }
480
- const OPENAI_MODELS_LIST = { object: 'list', data: ['claude-fable-5', 'claude-fable-5[1m]', 'claude-opus-4-8', 'claude-opus-4-7', 'claude-opus-4-6', 'claude-sonnet-4-6', 'claude-haiku-4-5'].map(id => ({ id, object: 'model', created: 1700000000, owned_by: 'anthropic' })) };
480
+ export const OPENAI_MODELS_LIST = { object: 'list', data: ['claude-fable-5', 'claude-fable-5[1m]', 'claude-opus-4-8', 'claude-opus-4-7', 'claude-opus-4-6', 'claude-sonnet-4-6', 'claude-haiku-4-5'].map(id => ({ id, object: 'model', created: 1700000000, owned_by: 'anthropic' })) };
481
481
  /**
482
482
  * Append a JSON-ND line to the proxy log file. No-op when stream is
483
483
  * null (logFile not configured). Errors are swallowed — log writes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askalf/dario",
3
- "version": "4.8.53",
3
+ "version": "4.8.54",
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": {