@askalf/dario 6.0.46 → 6.0.47

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.
@@ -1,6 +1,14 @@
1
1
  /** Backward-compatible selection of a pool-fallback target for one request.
2
2
  * A bare value or comma-separated model chain retains the legacy meaning.
3
- * Tier maps use `tier:model`, e.g. `haiku:gpt-5.4-mini,sonnet:gpt-5.6-terra`.
3
+ * Tier maps use `tier:model`, e.g. `haiku:gpt-5.6-luna,sonnet:gpt-5.6-terra`.
4
4
  * Unknown models use `default`, or the first (normally cheapest) configured tier.
5
+ *
6
+ * The Codex rungs are named for a size ladder — `sol` (sun) > `terra` (earth) >
7
+ * `luna` (moon) — which is why the tier tests below read model NAMES rather
8
+ * than any stated capability: the backend publishes a routable set and no tier
9
+ * metadata, so the ladder is the only signal there is. `luna` was added when
10
+ * codex-drift-watch reported the account-visible list as `gpt-5.5`,
11
+ * `gpt-5.6-luna`, `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-reserve` (dario#1272);
12
+ * `gpt-5.4-mini`, the previous example here, is no longer on that list.
5
13
  */
6
14
  export declare function selectPoolFallbackModels(spec: string | undefined, requestedModel: string): string[];
@@ -1,7 +1,15 @@
1
1
  /** Backward-compatible selection of a pool-fallback target for one request.
2
2
  * A bare value or comma-separated model chain retains the legacy meaning.
3
- * Tier maps use `tier:model`, e.g. `haiku:gpt-5.4-mini,sonnet:gpt-5.6-terra`.
3
+ * Tier maps use `tier:model`, e.g. `haiku:gpt-5.6-luna,sonnet:gpt-5.6-terra`.
4
4
  * Unknown models use `default`, or the first (normally cheapest) configured tier.
5
+ *
6
+ * The Codex rungs are named for a size ladder — `sol` (sun) > `terra` (earth) >
7
+ * `luna` (moon) — which is why the tier tests below read model NAMES rather
8
+ * than any stated capability: the backend publishes a routable set and no tier
9
+ * metadata, so the ladder is the only signal there is. `luna` was added when
10
+ * codex-drift-watch reported the account-visible list as `gpt-5.5`,
11
+ * `gpt-5.6-luna`, `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-reserve` (dario#1272);
12
+ * `gpt-5.4-mini`, the previous example here, is no longer on that list.
5
13
  */
6
14
  export function selectPoolFallbackModels(spec, requestedModel) {
7
15
  const entries = (spec ?? '').trim().split(',').map((entry) => entry.trim()).filter(Boolean);
@@ -19,7 +27,7 @@ export function selectPoolFallbackModels(spec, requestedModel) {
19
27
  tiers.set(tier, model);
20
28
  }
21
29
  const model = requestedModel.toLowerCase();
22
- const tier = /haiku|mini|small/.test(model) ? 'haiku'
30
+ const tier = /haiku|mini|small|luna/.test(model) ? 'haiku'
23
31
  : /opus|sol|large/.test(model) ? 'opus'
24
32
  : /sonnet|terra|medium/.test(model) ? 'sonnet'
25
33
  : 'default';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askalf/dario",
3
- "version": "6.0.46",
3
+ "version": "6.0.47",
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": {