@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/README.md +22 -0
- package/dist/{chunk-PKOFXEB3.mjs → chunk-CXH7KC4D.mjs} +119 -6
- package/dist/{chunk-SAWTKMD4.mjs → chunk-HHWBB46W.mjs} +1 -1
- package/dist/glassbox/index.d.mts +3 -3
- package/dist/glassbox/index.d.ts +3 -3
- package/dist/glassbox-routes/format.d.mts +2 -2
- package/dist/glassbox-routes/format.d.ts +2 -2
- package/dist/glassbox-routes/index.d.mts +4 -4
- package/dist/glassbox-routes/index.d.ts +4 -4
- package/dist/glassbox-routes/index.js +119 -6
- package/dist/glassbox-routes/index.mjs +2 -2
- package/dist/glassbox-routes/react/index.d.mts +2 -2
- package/dist/glassbox-routes/react/index.d.ts +2 -2
- package/dist/index.d.mts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +201 -12
- package/dist/index.mjs +84 -8
- package/dist/{ir-BBKgsUX7.d.mts → ir-dDcG8Pvu.d.mts} +43 -0
- package/dist/{ir-D3n-pBYI.d.ts → ir-rUUojj0s.d.ts} +43 -0
- package/dist/profiles.d.mts +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/profiles.js +119 -6
- package/dist/profiles.mjs +1 -1
- package/dist/{types-xBWYk9Mm.d.mts → types-BTeRoSvM.d.mts} +1 -1
- package/dist/{types-B6z-8phQ.d.ts → types-B_pdPjxm.d.ts} +1 -1
- package/dist/{types-Bzw8tH-7.d.ts → types-UXPxWabQ.d.ts} +1 -1
- package/dist/{types-DMJqRzDF.d.mts → types-vGo-h0tZ.d.mts} +1 -1
- package/package.json +1 -1
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-
|
|
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
|
-
//
|
|
653
|
-
//
|
|
654
|
-
|
|
655
|
-
|
|
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.
|
|
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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as MutationApplied, B as BestPracticeAdvisory, F as FallbackReason, m as CallAttempt } from './ir-
|
|
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-
|
|
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.
|
|
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",
|