@askalf/dario 6.6.1 → 6.6.2

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.
@@ -202,16 +202,20 @@ interface PricingEntry extends Rate {
202
202
  export declare const PRICING: Record<string, PricingEntry>;
203
203
  /**
204
204
  * OpenAI's published per-1M-token rates for the models the codex backend
205
- * serves, standard tier, read off developers.openai.com/api/docs/pricing on
206
- * 2026-09-11. Kept apart from PRICING because scripts/check-pricing-drift.mjs
207
- * diffs that table against Anthropic's page and would report every row here
208
- * as "absent upstream". OpenAI charges nothing to write a cache entry, so
209
- * cacheCreate is the input rate (the codex path reports no cache writes
210
- * anyway `cached_tokens` lands in cacheReadTokens, the rest in inputTokens).
205
+ * serves — the standard tier's short-context (<272K) columns of
206
+ * developers.openai.com/api/docs/pricing. Kept apart from PRICING because
207
+ * scripts/check-pricing-drift.mjs diffs each table against its own page
208
+ * (this one since 6.6.1; it shipped unwatched in 6.6.0, and the first watched
209
+ * run found the cache-write column wrong: the 5.6 family and gpt-6-astra
210
+ * charge 1.25× input to write a cache entry, the older families list no
211
+ * write price, encoded here as cacheCreate = input). The codex path reports
212
+ * no cache writes anyway — `cached_tokens` lands in cacheReadTokens, the
213
+ * rest in inputTokens — so the column is for correctness, not for a number
214
+ * anyone has seen yet.
211
215
  *
212
216
  * Before this table every `gpt-*` row was priced at the sonnet-4-6 fallback:
213
217
  * a ChatGPT-plan request showed up in "would-be API cost" at Anthropic's
214
- * rate for a model Anthropic does not sell. Nothing watches this table yet.
218
+ * rate for a model Anthropic does not sell.
215
219
  */
216
220
  export declare const OPENAI_PRICING: Record<string, Rate>;
217
221
  export type PricingProvider = 'anthropic' | 'openai';
package/dist/analytics.js CHANGED
@@ -231,27 +231,30 @@ export const PRICING = {
231
231
  };
232
232
  /**
233
233
  * OpenAI's published per-1M-token rates for the models the codex backend
234
- * serves, standard tier, read off developers.openai.com/api/docs/pricing on
235
- * 2026-09-11. Kept apart from PRICING because scripts/check-pricing-drift.mjs
236
- * diffs that table against Anthropic's page and would report every row here
237
- * as "absent upstream". OpenAI charges nothing to write a cache entry, so
238
- * cacheCreate is the input rate (the codex path reports no cache writes
239
- * anyway `cached_tokens` lands in cacheReadTokens, the rest in inputTokens).
234
+ * serves — the standard tier's short-context (<272K) columns of
235
+ * developers.openai.com/api/docs/pricing. Kept apart from PRICING because
236
+ * scripts/check-pricing-drift.mjs diffs each table against its own page
237
+ * (this one since 6.6.1; it shipped unwatched in 6.6.0, and the first watched
238
+ * run found the cache-write column wrong: the 5.6 family and gpt-6-astra
239
+ * charge 1.25× input to write a cache entry, the older families list no
240
+ * write price, encoded here as cacheCreate = input). The codex path reports
241
+ * no cache writes anyway — `cached_tokens` lands in cacheReadTokens, the
242
+ * rest in inputTokens — so the column is for correctness, not for a number
243
+ * anyone has seen yet.
240
244
  *
241
245
  * Before this table every `gpt-*` row was priced at the sonnet-4-6 fallback:
242
246
  * a ChatGPT-plan request showed up in "would-be API cost" at Anthropic's
243
- * rate for a model Anthropic does not sell. Nothing watches this table yet.
247
+ * rate for a model Anthropic does not sell.
244
248
  */
245
249
  export const OPENAI_PRICING = {
246
- 'gpt-6-astra': { input: 10, output: 50, cacheRead: 1, cacheCreate: 10 },
247
- 'gpt-5.6-sol': { input: 4, output: 20, cacheRead: 0.4, cacheCreate: 4 },
248
- 'gpt-5.6-terra': { input: 2, output: 12, cacheRead: 0.2, cacheCreate: 2 },
249
- 'gpt-5.6-luna': { input: 0.2, output: 1.2, cacheRead: 0.02, cacheCreate: 0.2 },
250
+ 'gpt-6-astra': { input: 10, output: 50, cacheRead: 1, cacheCreate: 12.5 },
251
+ 'gpt-5.6-sol': { input: 4, output: 20, cacheRead: 0.4, cacheCreate: 5 },
252
+ 'gpt-5.6-terra': { input: 2, output: 12, cacheRead: 0.2, cacheCreate: 2.5 },
253
+ 'gpt-5.6-luna': { input: 0.2, output: 1.2, cacheRead: 0.02, cacheCreate: 0.25 },
250
254
  'gpt-5.5': { input: 5, output: 30, cacheRead: 0.5, cacheCreate: 5 },
251
255
  'gpt-5.4': { input: 2.5, output: 15, cacheRead: 0.25, cacheCreate: 2.5 },
252
256
  'gpt-5.4-mini': { input: 0.75, output: 4.5, cacheRead: 0.075, cacheCreate: 0.75 },
253
257
  'gpt-5.4-nano': { input: 0.2, output: 1.25, cacheRead: 0.02, cacheCreate: 0.2 },
254
- 'gpt-5.3-codex': { input: 1.75, output: 14, cacheRead: 0.175, cacheCreate: 1.75 },
255
258
  };
256
259
  /** The unknown-model rate on the OpenAI side: dario's default codex model. */
257
260
  const OPENAI_FALLBACK_MODEL = 'gpt-5.6-terra';
@@ -110,7 +110,12 @@ nothing to write a cache entry, so cache-write tokens (which the codex path
110
110
  never reports anyway) are priced at the input rate. Unknown `gpt-*` ids take
111
111
  gpt-5.6-terra's rate, dario's default codex model.
112
112
 
113
- `scripts/check-pricing-drift.mjs` watches the Claude table against
114
- Anthropic's page. Nothing watches the OpenAI table yet — an entry that is
115
- correct today goes wrong the moment OpenAI changes it, and the only signal
116
- would be this number moving.
113
+ `scripts/check-pricing-drift.mjs` watches both tables daily
114
+ (`pricing-drift-watch.yml`): `PRICING` against Anthropic's page,
115
+ `OPENAI_PRICING` against OpenAI's `pricing.md` (the standard table's
116
+ short-context columns, found by its heading — the batch and fast-mode tables
117
+ below it carry the same headers). The first watched run corrected the table:
118
+ the 5.6 family and gpt-6-astra list a cache-write price of 1.25× input, which
119
+ 6.6.0 had as the input rate. A page the watcher can fetch but no longer
120
+ understand is filed as an issue, not logged as a warning — that is how the
121
+ Anthropic side went unwatched for ten days in September 2026.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askalf/dario",
3
- "version": "6.6.1",
3
+ "version": "6.6.2",
4
4
  "description": "Use your Claude and ChatGPT subscriptions in Cursor, Cline, Aider, Claude Code and the Agent SDK — at subscription pricing, not per-token API bills. One local Anthropic + OpenAI-compatible endpoint: either plan answers either wire shape, with automatic failover when one hits its limit.",
5
5
  "type": "module",
6
6
  "bin": {