@warmdrift/kgauto-compiler 2.0.0-alpha.26 → 2.0.0-alpha.28
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/{chunk-7MTHFSNY.mjs → chunk-JQGRWJZO.mjs} +181 -48
- package/dist/chunk-WXCFWUCN.mjs +678 -0
- package/dist/glassbox/index.d.mts +3 -3
- package/dist/glassbox/index.d.ts +3 -3
- package/dist/glassbox-routes/index.d.mts +88 -6
- package/dist/glassbox-routes/index.d.ts +88 -6
- package/dist/glassbox-routes/index.js +1820 -8
- package/dist/glassbox-routes/index.mjs +320 -8
- package/dist/index.d.mts +184 -3
- package/dist/index.d.ts +184 -3
- package/dist/index.js +342 -53
- package/dist/index.mjs +108 -581
- package/dist/{ir-B_XX2LAO.d.ts → ir-5W0efxt9.d.ts} +86 -1
- package/dist/{ir-B9zqlwjH.d.mts → ir-MXCJA8L7.d.mts} +86 -1
- package/dist/profiles.d.mts +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/profiles.js +181 -48
- package/dist/profiles.mjs +1 -1
- package/dist/{types-bt0aVJb8.d.ts → types-CiZ9HLIU.d.ts} +1 -1
- package/dist/{types-o9etg93a.d.mts → types-sDZQzPM6.d.mts} +1 -1
- package/package.json +1 -1
|
@@ -829,12 +829,23 @@ var PROFILES_RAW = [
|
|
|
829
829
|
// Each entry's pricing/context/cliffs/lowering reflects the template, NOT
|
|
830
830
|
// provider docs. Verify before promoting status to 'current' (L-049/L-081).
|
|
831
831
|
{
|
|
832
|
+
// s37 (2026-05-21): UNVERIFIED-AUTO-ONBOARD → verified against
|
|
833
|
+
// ai.google.dev/gemini-api/docs/models/gemini-3-flash-preview +
|
|
834
|
+
// ai.google.dev/gemini-api/docs/pricing. L-081 catches:
|
|
835
|
+
// maxOutputTokens 65_535 → 65_536 (off-by-one)
|
|
836
|
+
// costInputPer1m 0.30 → 0.50 (template-cloned from 2.5-flash; actual is 1.67× more expensive)
|
|
837
|
+
// costOutputPer1m 2.50 → 3.00 (template-cloned; actual 1.2× more expensive)
|
|
838
|
+
// cache discount default 0.25 → 0.10 (10× discount, $0.05/$0.50 per docs)
|
|
839
|
+
// Cliffs inherited from 2.5-flash conservatively. The 8K-context-quality
|
|
840
|
+
// cliff was a 2.5-Flash observation — Google positions Gemini 3 as
|
|
841
|
+
// sustained-frontier-on-long-context; brain evidence will validate/relax.
|
|
842
|
+
// Kept as guard for now.
|
|
832
843
|
id: "gemini-3-flash-preview",
|
|
833
|
-
verifiedAgainstDocs: "
|
|
844
|
+
verifiedAgainstDocs: "2026-05-21",
|
|
834
845
|
provider: "google",
|
|
835
846
|
status: "preview",
|
|
836
847
|
maxContextTokens: 1048576,
|
|
837
|
-
maxOutputTokens:
|
|
848
|
+
maxOutputTokens: 65536,
|
|
838
849
|
maxTools: 128,
|
|
839
850
|
parallelToolCalls: true,
|
|
840
851
|
structuredOutput: "native",
|
|
@@ -845,13 +856,13 @@ var PROFILES_RAW = [
|
|
|
845
856
|
metric: "input_tokens",
|
|
846
857
|
threshold: 8e3,
|
|
847
858
|
action: "downgrade_quality_warning",
|
|
848
|
-
reason: "
|
|
859
|
+
reason: "Inherited from 2.5-flash guard; brain evidence on Gemini 3 long-context quality will validate/relax"
|
|
849
860
|
},
|
|
850
861
|
{
|
|
851
862
|
metric: "tool_count",
|
|
852
863
|
threshold: 20,
|
|
853
864
|
action: "drop_to_top_relevant",
|
|
854
|
-
reason: "Tool reliability drops above ~20 tools (despite 128 hard limit)"
|
|
865
|
+
reason: "Tool reliability drops above ~20 tools (despite 128 hard limit) \u2014 inherited from Flash family"
|
|
855
866
|
},
|
|
856
867
|
{
|
|
857
868
|
metric: "thinking_with_short_output",
|
|
@@ -860,24 +871,22 @@ var PROFILES_RAW = [
|
|
|
860
871
|
reason: "Thinking tokens consume maxOutputTokens \u2014 empty response if drained"
|
|
861
872
|
},
|
|
862
873
|
{
|
|
863
|
-
//
|
|
864
|
-
//
|
|
865
|
-
//
|
|
866
|
-
// help — disabling thinking is necessary but not sufficient. Tools
|
|
867
|
-
// present + summarize intent confuses Flash into a no-output state
|
|
868
|
-
// (likely tool-decision purgatory). Strip tools entirely for this
|
|
869
|
-
// archetype on this model.
|
|
874
|
+
// Inherited from gemini-2.5-flash s11 trust artifact. Family-likely
|
|
875
|
+
// failure mode for Flash architecture. Keep preemptively until brain
|
|
876
|
+
// evidence on Gemini 3 specifically.
|
|
870
877
|
metric: "tool_count",
|
|
871
878
|
threshold: 1,
|
|
872
879
|
whenIntent: "summarize",
|
|
873
880
|
action: "strip_tools",
|
|
874
|
-
reason: "
|
|
881
|
+
reason: "Inherited from 2.5-flash s11 cliff: summarize+tools \u2192 empty response. Preemptive guard until brain evidence on 3-flash-preview specifically."
|
|
875
882
|
}
|
|
876
883
|
],
|
|
877
|
-
costInputPer1m: 0.
|
|
878
|
-
costOutputPer1m:
|
|
884
|
+
costInputPer1m: 0.5,
|
|
885
|
+
costOutputPer1m: 3,
|
|
879
886
|
lowering: {
|
|
880
887
|
...GOOGLE_LOWERING_BASE,
|
|
888
|
+
// 10× cache discount per Google pricing: $0.05/M cached vs $0.50/M input.
|
|
889
|
+
cache: { ...GOOGLE_LOWERING_BASE.cache, discount: 0.1 },
|
|
881
890
|
thinking: { field: "generationConfig.thinkingConfig.thinkingBudget", default: "auto" }
|
|
882
891
|
},
|
|
883
892
|
recovery: [
|
|
@@ -903,40 +912,45 @@ var PROFILES_RAW = [
|
|
|
903
912
|
],
|
|
904
913
|
strengths: ["speed", "volume", "classification", "1m_context", "cost"],
|
|
905
914
|
weaknesses: ["complex_schemas", "large_tool_sets", "high_context_quality"],
|
|
906
|
-
notes: "
|
|
907
|
-
//
|
|
908
|
-
//
|
|
915
|
+
notes: "Verified s37 (2026-05-21) against Google docs. Step-change positioning vs 2.5-flash on agentic loops per Google's release notes (Dec 2025). Pricing 1.67\xD7/1.2\xD7 higher than 2.5-flash; cache discount 10\xD7 (vs 4\xD7 for 2.5). Status=preview until brain evidence accumulates.",
|
|
916
|
+
// Anchored to 2.5-flash archetypePerf as starter, with judgment adjustments
|
|
917
|
+
// for Google's "step-change on agentic" positioning. Brain evidence (zero
|
|
918
|
+
// rows today) will replace these starter values.
|
|
909
919
|
archetypePerf: {
|
|
910
920
|
hunt: 9,
|
|
911
|
-
// L-040
|
|
921
|
+
// Inherits 2.5-flash L-040 parallel-tool tier; Google positions 3 as agentic-loop upgrade
|
|
912
922
|
classify: 7,
|
|
913
|
-
// brain-validated
|
|
923
|
+
// Inherits 2.5-flash brain-validated tier (218 rows on 2.5)
|
|
914
924
|
summarize: 7,
|
|
915
|
-
//
|
|
925
|
+
// Inherits 2.5-flash; cliff strips tools when present
|
|
916
926
|
transform: 7,
|
|
917
|
-
ask:
|
|
918
|
-
|
|
919
|
-
|
|
927
|
+
ask: 8,
|
|
928
|
+
// +1 vs 2.5-flash — sustained-frontier positioning
|
|
929
|
+
generate: 7,
|
|
930
|
+
// +1 vs 2.5-flash — agentic coding upgrade per Google
|
|
931
|
+
plan: 6,
|
|
932
|
+
// +1 vs 2.5-flash — complex iterations per positioning
|
|
920
933
|
extract: 6,
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
// reasoning shallower than Sonnet/Opus
|
|
934
|
+
critique: 5
|
|
935
|
+
// +1 vs 2.5-flash — but still below Sonnet/Opus reasoning floor
|
|
924
936
|
}
|
|
925
937
|
},
|
|
926
938
|
{
|
|
927
|
-
// ── Gemini
|
|
928
|
-
// Onboarded 2026-05-
|
|
929
|
-
//
|
|
930
|
-
//
|
|
931
|
-
//
|
|
932
|
-
//
|
|
933
|
-
//
|
|
934
|
-
//
|
|
935
|
-
//
|
|
936
|
-
//
|
|
937
|
-
//
|
|
939
|
+
// ── Gemini 3.1 Flash-Lite ──
|
|
940
|
+
// Onboarded 2026-05-16 by auto-onboarder; s37 (2026-05-21) verified
|
|
941
|
+
// against ai.google.dev/gemini-api/docs/pricing.
|
|
942
|
+
//
|
|
943
|
+
// L-081 CATCHES (template clone from 2.5-flash-lite was 2.5-3.75× too cheap):
|
|
944
|
+
// costInputPer1m 0.10 → 0.25 (template clone undervalued by 2.5×)
|
|
945
|
+
// costOutputPer1m 0.40 → 1.50 (template clone undervalued by 3.75×)
|
|
946
|
+
//
|
|
947
|
+
// Real 3.1-flash-lite is NOT a cost-equivalent successor to 2.5-flash-lite —
|
|
948
|
+
// it sits between 2.5-flash-lite ($0.10/$0.40) and 2.5-flash ($0.30/$2.50).
|
|
949
|
+
// Cache discount 10× verified ($0.025/M cached vs $0.25/M input).
|
|
950
|
+
//
|
|
951
|
+
// Cliffs are HYPOTHESIZED from 2.5-flash family; brain evidence pending.
|
|
938
952
|
id: "gemini-3.1-flash-lite",
|
|
939
|
-
verifiedAgainstDocs: "
|
|
953
|
+
verifiedAgainstDocs: "2026-05-21",
|
|
940
954
|
provider: "google",
|
|
941
955
|
status: "preview",
|
|
942
956
|
maxContextTokens: 1048576,
|
|
@@ -977,12 +991,12 @@ var PROFILES_RAW = [
|
|
|
977
991
|
reason: "Inherited from Flash s11 cliff: summarize+tools \u2192 empty response. Preemptive guard until brain evidence on Flash-Lite specifically."
|
|
978
992
|
}
|
|
979
993
|
],
|
|
980
|
-
costInputPer1m: 0.
|
|
981
|
-
costOutputPer1m:
|
|
994
|
+
costInputPer1m: 0.25,
|
|
995
|
+
costOutputPer1m: 1.5,
|
|
982
996
|
lowering: {
|
|
983
997
|
...GOOGLE_LOWERING_BASE,
|
|
984
|
-
// Cache discount 10× (vs Flash 4×) — Google
|
|
985
|
-
// $0.
|
|
998
|
+
// Cache discount 10× (vs Flash 4×) — Google docs s37: $0.025/M cached vs
|
|
999
|
+
// $0.25/M input. Material for repeat-prompt workloads (classify shape).
|
|
986
1000
|
cache: { ...GOOGLE_LOWERING_BASE.cache, discount: 0.1 },
|
|
987
1001
|
thinking: { field: "generationConfig.thinkingConfig.thinkingBudget", default: "auto" }
|
|
988
1002
|
},
|
|
@@ -1007,13 +1021,13 @@ var PROFILES_RAW = [
|
|
|
1007
1021
|
reason: "MALFORMED_FUNCTION_CALL maps to stop \u2014 escalate to next target."
|
|
1008
1022
|
}
|
|
1009
1023
|
],
|
|
1010
|
-
strengths: ["
|
|
1024
|
+
strengths: ["low_cost", "speed", "volume", "classification", "summarize", "1m_context", "cache_friendly"],
|
|
1011
1025
|
weaknesses: ["complex_reasoning", "large_tool_sets", "complex_schemas", "structured_output_unproven", "long_context_quality"],
|
|
1012
|
-
notes: "
|
|
1013
|
-
// Tier 3
|
|
1014
|
-
// rows —
|
|
1015
|
-
// sibling of Flash
|
|
1016
|
-
//
|
|
1026
|
+
notes: "Verified s37 (2026-05-21) against Google docs. Sits between 2.5-flash-lite (cheaper) and 2.5-flash (more expensive) on cost frontier; 2.5\xD7 more expensive than initial template-clone. Cliffs hypothesized from Flash family \u2014 brain evidence pending.",
|
|
1027
|
+
// Tier 2-3 floor for summarize/classify chains at the new (verified) price
|
|
1028
|
+
// point. ZERO brain rows — values are starter hypotheses anchored to
|
|
1029
|
+
// "smaller sibling of Flash at higher cost than 2.5-flash-lite." The first
|
|
1030
|
+
// 50 brain rows per archetype will validate or relax these.
|
|
1017
1031
|
archetypePerf: {
|
|
1018
1032
|
classify: 6,
|
|
1019
1033
|
// starter hypothesis — verify (Flash is 7, lite likely ≤)
|
|
@@ -1028,6 +1042,125 @@ var PROFILES_RAW = [
|
|
|
1028
1042
|
plan: 3,
|
|
1029
1043
|
critique: 3
|
|
1030
1044
|
}
|
|
1045
|
+
},
|
|
1046
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
1047
|
+
// Gemini 3.5 Flash — hand-onboarded s37 (2026-05-21)
|
|
1048
|
+
//
|
|
1049
|
+
// Google positioning ("Most intelligent for sustained frontier performance
|
|
1050
|
+
// on agentic and coding tasks" / "particularly effective for rapid agentic
|
|
1051
|
+
// loops involving complex coding cycles and iterations") suggests this is
|
|
1052
|
+
// the Flash-family upgrade specifically aimed at hunt-shape workloads.
|
|
1053
|
+
// Pricing 5× input / 3.6× output vs 2.5-flash — material cost premium.
|
|
1054
|
+
// archetypePerf adjusted +1 vs 2.5-flash on ask/generate/plan/critique
|
|
1055
|
+
// (sustained-frontier positioning); hunt held at 9 inherited from L-040
|
|
1056
|
+
// family parallel-tool tier; brain evidence will validate within 50 rows.
|
|
1057
|
+
//
|
|
1058
|
+
// Cliffs inherited conservatively from 2.5-flash. Google's "sustained
|
|
1059
|
+
// frontier on long-context" positioning suggests the 8K cliff may not
|
|
1060
|
+
// apply to 3.5 — keep as guard until brain evidence shows otherwise.
|
|
1061
|
+
//
|
|
1062
|
+
// Specs verified against:
|
|
1063
|
+
// ai.google.dev/gemini-api/docs/models/gemini-3.5-flash
|
|
1064
|
+
// ai.google.dev/gemini-api/docs/pricing (Standard tier)
|
|
1065
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
1066
|
+
{
|
|
1067
|
+
id: "gemini-3.5-flash",
|
|
1068
|
+
verifiedAgainstDocs: "2026-05-21",
|
|
1069
|
+
provider: "google",
|
|
1070
|
+
status: "current",
|
|
1071
|
+
maxContextTokens: 1048576,
|
|
1072
|
+
maxOutputTokens: 65536,
|
|
1073
|
+
maxTools: 128,
|
|
1074
|
+
parallelToolCalls: true,
|
|
1075
|
+
structuredOutput: "native",
|
|
1076
|
+
systemPromptMode: "separate",
|
|
1077
|
+
streaming: true,
|
|
1078
|
+
cliffs: [
|
|
1079
|
+
{
|
|
1080
|
+
metric: "input_tokens",
|
|
1081
|
+
threshold: 8e3,
|
|
1082
|
+
action: "downgrade_quality_warning",
|
|
1083
|
+
reason: "Inherited from 2.5-flash guard; Google positions 3.5 as sustained-frontier-on-long-context but brain evidence pending"
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
metric: "tool_count",
|
|
1087
|
+
threshold: 20,
|
|
1088
|
+
action: "drop_to_top_relevant",
|
|
1089
|
+
reason: "Inherited from Flash family: tool reliability drops above ~20 (despite 128 hard limit). Validate per (archetype, model) after n\u226520."
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
metric: "thinking_with_short_output",
|
|
1093
|
+
threshold: 1,
|
|
1094
|
+
action: "force_thinking_budget_zero",
|
|
1095
|
+
reason: "Thinking mode supported per Google docs; same drain risk as 2.5-flash \u2014 thinking tokens consume maxOutputTokens"
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
// Inherited from 2.5-flash s11 trust artifact (5/5 empty rate on
|
|
1099
|
+
// tt-intelligence/summarize/gemini-2.5-flash with tools offered).
|
|
1100
|
+
// Family-likely failure mode for Flash architecture across versions.
|
|
1101
|
+
// Keep preemptively until brain evidence on 3.5-flash specifically.
|
|
1102
|
+
metric: "tool_count",
|
|
1103
|
+
threshold: 1,
|
|
1104
|
+
whenIntent: "summarize",
|
|
1105
|
+
action: "strip_tools",
|
|
1106
|
+
reason: "Inherited from 2.5-flash s11 cliff (kgauto commit 3872832): summarize+tools \u2192 empty response. Preemptive guard until brain evidence on 3.5-flash specifically."
|
|
1107
|
+
}
|
|
1108
|
+
],
|
|
1109
|
+
costInputPer1m: 1.5,
|
|
1110
|
+
costOutputPer1m: 9,
|
|
1111
|
+
lowering: {
|
|
1112
|
+
...GOOGLE_LOWERING_BASE,
|
|
1113
|
+
// 10× cache discount per Google pricing: $0.15/M cached vs $1.50/M input.
|
|
1114
|
+
cache: { ...GOOGLE_LOWERING_BASE.cache, discount: 0.1 },
|
|
1115
|
+
thinking: { field: "generationConfig.thinkingConfig.thinkingBudget", default: "auto" }
|
|
1116
|
+
},
|
|
1117
|
+
recovery: [
|
|
1118
|
+
{
|
|
1119
|
+
signal: "empty_response_after_tool",
|
|
1120
|
+
action: "retry_with_params",
|
|
1121
|
+
retryParams: { "generationConfig.thinkingConfig.thinkingBudget": 0 },
|
|
1122
|
+
maxRetries: 1,
|
|
1123
|
+
reason: "Inherited Flash-family pattern: empty after tool result \u2014 retry with thinking off"
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
signal: "empty_response",
|
|
1127
|
+
action: "retry_with_params",
|
|
1128
|
+
retryParams: { "generationConfig.thinkingConfig.thinkingBudget": 0 },
|
|
1129
|
+
maxRetries: 1,
|
|
1130
|
+
reason: "Empty response \u2014 try with thinking off"
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
signal: "malformed_function_call",
|
|
1134
|
+
action: "escalate",
|
|
1135
|
+
reason: "MALFORMED_FUNCTION_CALL maps to stop \u2014 escalate to next target"
|
|
1136
|
+
}
|
|
1137
|
+
],
|
|
1138
|
+
strengths: ["agentic_loops", "coding", "1m_context", "parallel_tools", "thinking_mode", "sustained_frontier"],
|
|
1139
|
+
weaknesses: ["cost_vs_2_5_flash", "no_brain_evidence_yet"],
|
|
1140
|
+
notes: "Hand-onboarded s37 (2026-05-21) verified against Google docs. Stable status; positioned as Flash-family upgrade for agentic loops and coding. 5\xD7/3.6\xD7 more expensive than 2.5-flash but Google claims step-change on sustained frontier work. archetypePerf adjustments are judgment-grounded starter hypotheses \u2014 brain evidence will validate within ~50 rows per archetype.",
|
|
1141
|
+
// Starter hypothesis: anchored to 2.5-flash archetypePerf with +1
|
|
1142
|
+
// adjustments where Google's positioning explicitly supports
|
|
1143
|
+
// (agentic/coding/sustained). Hunt held at 9 inherited from L-040 family
|
|
1144
|
+
// parallel-tool tier. Brain evidence will replace.
|
|
1145
|
+
archetypePerf: {
|
|
1146
|
+
hunt: 9,
|
|
1147
|
+
// Inherited from 2.5-flash L-040 parallel-tool tier; Google positions 3.5 as agentic-loop champion
|
|
1148
|
+
classify: 7,
|
|
1149
|
+
// Inherited from 2.5-flash brain-validated tier (218 rows on 2.5)
|
|
1150
|
+
summarize: 7,
|
|
1151
|
+
// Inherited from 2.5-flash; cliff strips tools when present
|
|
1152
|
+
transform: 7,
|
|
1153
|
+
ask: 8,
|
|
1154
|
+
// +1 vs 2.5-flash — sustained-frontier positioning
|
|
1155
|
+
generate: 8,
|
|
1156
|
+
// +1 vs 2.5-flash (6→8) — Google: "complex coding cycles and iterations"
|
|
1157
|
+
plan: 7,
|
|
1158
|
+
// +1 vs 2.5-flash (5→7) — "complex iterations" positioning
|
|
1159
|
+
extract: 7,
|
|
1160
|
+
// +1 vs 2.5-flash — sustained-frontier on structured tasks
|
|
1161
|
+
critique: 5
|
|
1162
|
+
// +1 vs 2.5-flash — but still below Sonnet/Opus reasoning floor
|
|
1163
|
+
}
|
|
1031
1164
|
}
|
|
1032
1165
|
];
|
|
1033
1166
|
var ALIASES = {
|