@warmdrift/kgauto-compiler 2.0.0-alpha.49 → 2.0.0-alpha.51

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/dist/profiles.js CHANGED
@@ -64,6 +64,115 @@ var GOOGLE_LOWERING_BASE = {
64
64
  };
65
65
  var PROFILES_RAW = [
66
66
  // ── Anthropic ──
67
+ {
68
+ // VERIFIED 2026-06-21 against the claude-api reference. Claude Fable 5 is
69
+ // Anthropic's most capable model — a NEW tier ABOVE the opus/sonnet/haiku
70
+ // line (the id has no MAJOR-MINOR version, just `-5`) at 2× Opus pricing
71
+ // ($10/$50 vs $5/$25). Hand-authored, not cloned: the onboarder regex can't
72
+ // match this shape (new family + single-segment version), AND a clone would
73
+ // carry the wrong (opus) pricing. status:'preview' — no brain evidence yet;
74
+ // it earns per-archetype placement through the machinery like any model, and
75
+ // at 2× Opus the quality-floor + cost gates do real work before it leads.
76
+ // API quirk (claude-api ref): an explicit `thinking:{type:"disabled"}` 400s
77
+ // on Fable 5 (omit instead) — MOOT here: ANTHROPIC_LOWERING_BASE carries no
78
+ // `thinking` field, so kgauto never sends the param. (L-049/L-081.)
79
+ id: "claude-fable-5",
80
+ verifiedAgainstDocs: "2026-06-21",
81
+ provider: "anthropic",
82
+ status: "preview",
83
+ maxContextTokens: 1e6,
84
+ maxOutputTokens: 128e3,
85
+ maxTools: 64,
86
+ parallelToolCalls: true,
87
+ structuredOutput: "grammar",
88
+ systemPromptMode: "inline",
89
+ streaming: true,
90
+ cliffs: [],
91
+ costInputPer1m: 10,
92
+ costOutputPer1m: 50,
93
+ lowering: ANTHROPIC_LOWERING_BASE,
94
+ recovery: [
95
+ {
96
+ signal: "rate_limit",
97
+ action: "escalate",
98
+ reason: "429 from Anthropic \u2014 escalate to fallback chain"
99
+ },
100
+ {
101
+ signal: "model_not_found",
102
+ action: "escalate",
103
+ reason: "Model deprecated/renamed \u2014 escalate (L-061)"
104
+ }
105
+ ],
106
+ strengths: ["reasoning", "agentic_coding", "long_context", "reliable_tool_use", "structured_output"],
107
+ weaknesses: ["cost", "latency"],
108
+ notes: "Most capable Anthropic model (2026-06); a new tier ABOVE Opus at 2\xD7 pricing ($10/$50). 1M ctx, 128k out. Verified 2026-06-21 against the claude-api reference. status:preview \u2014 no brain evidence yet; earns placement via the machinery (cost + quality-floor gates govern). latencyTier derives `slow` (weaknesses includes latency \u2014 minutes-long turns on hard tasks). The thinking-disabled-400 API quirk is moot for kgauto (Anthropic lowering emits no thinking param).",
109
+ // archetypePerf cloned from claude-opus-4-8 as a conservative estimate
110
+ // (Fable >= Opus in capability, but unmeasured — no fabricated superiority).
111
+ // Re-rank once brain rows exist.
112
+ archetypePerf: {
113
+ critique: 10,
114
+ plan: 10,
115
+ generate: 9,
116
+ ask: 9,
117
+ extract: 9,
118
+ transform: 9,
119
+ hunt: 8,
120
+ summarize: 8,
121
+ classify: 8
122
+ }
123
+ },
124
+ {
125
+ // Auto-onboarded 2026-06-04 from `claude-opus-4-7`; VERIFIED 2026-06-21
126
+ // against the claude-api reference. Opus 4.8 shares 4.7's surface exactly —
127
+ // 1M ctx, 128k out, $5/$25, no new breaking changes — so the clone's
128
+ // capability data was accurate (confirmed field-by-field). archetypePerf is
129
+ // still cloned from 4.7 (a sound estimate: 4.8 >= 4.7) — re-rank once brain
130
+ // rows exist. Promoted to status:'current' 2026-06-21 (Sacha: "include Claude
131
+ // Opus 4.8") — now live-selectable. Ties with the still-current claude-opus-4-7
132
+ // (identical $5/$25 + cloned perf) resolve to 4-8 by array order. (L-049/L-081.)
133
+ id: "claude-opus-4-8",
134
+ verifiedAgainstDocs: "2026-06-21",
135
+ provider: "anthropic",
136
+ status: "current",
137
+ maxContextTokens: 1e6,
138
+ maxOutputTokens: 128e3,
139
+ maxTools: 64,
140
+ parallelToolCalls: true,
141
+ structuredOutput: "grammar",
142
+ systemPromptMode: "inline",
143
+ streaming: true,
144
+ cliffs: [],
145
+ costInputPer1m: 5,
146
+ costOutputPer1m: 25,
147
+ lowering: ANTHROPIC_LOWERING_BASE,
148
+ recovery: [
149
+ {
150
+ signal: "rate_limit",
151
+ action: "escalate",
152
+ reason: "429 from Anthropic \u2014 escalate to fallback chain"
153
+ },
154
+ {
155
+ signal: "model_not_found",
156
+ action: "escalate",
157
+ reason: "Model deprecated/renamed \u2014 escalate (L-061)"
158
+ }
159
+ ],
160
+ strengths: ["reasoning", "agentic_coding", "long_context", "reliable_tool_use", "structured_output"],
161
+ weaknesses: ["cost", "latency"],
162
+ notes: "Frontier Opus (2026-06), the current recommended Opus-tier default. Verified 2026-06-21 against the claude-api reference: 1M ctx, 128k out, $5/$25 \u2014 identical surface to 4.7, no new breaking changes. Promoted to status:current 2026-06-21 (live-selectable); coexists with claude-opus-4-7 (still current).",
163
+ // Cloned archetypePerf from claude-opus-4-7 — re-evaluate once brain rows exist.
164
+ archetypePerf: {
165
+ critique: 10,
166
+ plan: 10,
167
+ generate: 9,
168
+ ask: 9,
169
+ extract: 9,
170
+ transform: 9,
171
+ hunt: 8,
172
+ summarize: 8,
173
+ classify: 8
174
+ }
175
+ },
67
176
  {
68
177
  id: "claude-opus-4-7",
69
178
  verifiedAgainstDocs: "2026-05-08",
@@ -631,7 +740,7 @@ var PROFILES_RAW = [
631
740
  },
632
741
  {
633
742
  id: "deepseek-v4-pro",
634
- verifiedAgainstDocs: "2026-05-08",
743
+ verifiedAgainstDocs: "2026-06-22",
635
744
  provider: "deepseek",
636
745
  status: "current",
637
746
  maxContextTokens: 1e6,
@@ -649,10 +758,14 @@ var PROFILES_RAW = [
649
758
  reason: "Sequential tool calls only \u2014 L-040"
650
759
  }
651
760
  ],
652
- // Profile carries REGULAR pricing, not the 75%-off promo (ends 2026-05-31).
653
- // Under-estimating cost is worse than over-estimating for budget caps.
654
- costInputPer1m: 1.74,
655
- costOutputPer1m: 3.48,
761
+ // Verified against the live DeepSeek pricing page 2026-06-22: the 75%-off
762
+ // launch "promo" ($0.435/$0.87) did NOT revert on 2026-05-31 it became the
763
+ // standing price (docs show $0.435 in / $0.87 out cache-miss, $0.003625
764
+ // cache-hit in; no promo caveat). The old $1.74/$3.48 "regular post-promo"
765
+ // was a projected revert that never happened (L-073/L-081) — it 4×-overstated
766
+ // cost and suppressed V4-Pro in cost-aware ranking.
767
+ costInputPer1m: 0.435,
768
+ costOutputPer1m: 0.87,
656
769
  lowering: {
657
770
  system: { mode: "inline" },
658
771
  cache: { strategy: "unsupported" },
@@ -668,7 +781,7 @@ var PROFILES_RAW = [
668
781
  // of the served set. Tag derivation would say 'medium'; the measurement says
669
782
  // otherwise.
670
783
  latencyTier: "slow",
671
- notes: "Pro tier. 1M context, 384k max output. Regular pricing $1.74/$3.48; 75% promo through 2026-05-31 ($0.435/$0.87). Default mode = thinking.",
784
+ notes: "Pro tier. 1M context, 384k max output. $0.435/$0.87 per 1M (cache-hit in $0.003625) \u2014 verified live 2026-06-22; the launch promo became the standing price (no revert). Default mode = thinking.",
672
785
  // Master plan §3.3: tier 3 cross-provider for plan chain. Reasoning
673
786
  // bumped one notch over V4-Flash; same parallel-tool ceiling.
674
787
  archetypePerf: {
package/dist/profiles.mjs CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  latencyTierOf,
9
9
  profilesByProvider,
10
10
  tryGetProfile
11
- } from "./chunk-PKOFXEB3.mjs";
11
+ } from "./chunk-CXH7KC4D.mjs";
12
12
  export {
13
13
  ALIASES,
14
14
  LATENCY_TIER_MS,
@@ -1,4 +1,4 @@
1
- import { i as Adapter, w as SectionKind } from './ir-BBKgsUX7.mjs';
1
+ import { i as Adapter, w as SectionKind } from './ir-dDcG8Pvu.mjs';
2
2
 
3
3
  /**
4
4
  * Internal config + hook types for createGlassboxRoutes().
@@ -1,4 +1,4 @@
1
- import { i as Adapter, w as SectionKind } from './ir-D3n-pBYI.js';
1
+ import { i as Adapter, w as SectionKind } from './ir-rUUojj0s.js';
2
2
 
3
3
  /**
4
4
  * Internal config + hook types for createGlassboxRoutes().
@@ -1,4 +1,4 @@
1
- import { r as MutationApplied, B as BestPracticeAdvisory, F as FallbackReason, m as CallAttempt } from './ir-D3n-pBYI.js';
1
+ import { r as MutationApplied, B as BestPracticeAdvisory, F as FallbackReason, m as CallAttempt } from './ir-rUUojj0s.js';
2
2
 
3
3
  /**
4
4
  * Glass-Box observability types (alpha.17).
@@ -1,4 +1,4 @@
1
- import { r as MutationApplied, B as BestPracticeAdvisory, F as FallbackReason, m as CallAttempt } from './ir-BBKgsUX7.mjs';
1
+ import { r as MutationApplied, B as BestPracticeAdvisory, F as FallbackReason, m as CallAttempt } from './ir-dDcG8Pvu.mjs';
2
2
 
3
3
  /**
4
4
  * Glass-Box observability types (alpha.17).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warmdrift/kgauto-compiler",
3
- "version": "2.0.0-alpha.49",
3
+ "version": "2.0.0-alpha.51",
4
4
  "description": "Prompt compiler + central learning brain for multi-model AI apps. Swap models without rewriting prompts.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",