@warmdrift/kgauto-compiler 2.0.0-alpha.90 → 2.0.0-alpha.92
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-ENELVMJI.mjs → chunk-4G73BYES.mjs} +10 -5
- package/dist/{chunk-BVEXV5KC.mjs → chunk-FEMPY6EC.mjs} +5 -1
- package/dist/{chunk-4LYNDEHJ.mjs → chunk-QOQV66PU.mjs} +1 -1
- package/dist/{chunk-OK2TMFRR.mjs → chunk-T53ISC2F.mjs} +133 -4
- package/dist/dialect.d.mts +11 -1
- package/dist/dialect.d.ts +11 -1
- package/dist/dialect.js +7 -2
- package/dist/dialect.mjs +5 -3
- 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 +142 -8
- 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 +15 -4
- package/dist/index.d.ts +15 -4
- package/dist/index.js +233 -17
- package/dist/index.mjs +93 -13
- package/dist/{ir-DeYMLWge.d.mts → ir-BPYh68mv.d.mts} +95 -1
- package/dist/{ir-CTx026t0.d.ts → ir-BWnE6LaB.d.ts} +95 -1
- package/dist/key-health.js +1 -1
- package/dist/key-health.mjs +1 -1
- package/dist/profiles.d.mts +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/profiles.js +133 -4
- package/dist/profiles.mjs +1 -1
- package/dist/{types-Cp9ot1HV.d.ts → types-BCHv34P7.d.ts} +1 -1
- package/dist/{types-cBzinzUR.d.mts → types-BgvLmT3s.d.mts} +1 -1
- package/dist/{types-BKbRtmUb.d.ts → types-BhxC4hdx.d.ts} +1 -1
- package/dist/{types-DD36cCbZ.d.mts → types-eLelJBj-.d.mts} +1 -1
- package/package.json +1 -1
package/dist/profiles.js
CHANGED
|
@@ -553,9 +553,19 @@ var PROFILES_RAW = [
|
|
|
553
553
|
// thresholds. The brain will validate/relax these as evidence accumulates
|
|
554
554
|
// per (archetype, model) tuple. Currently ZERO brain rows for this model.
|
|
555
555
|
id: "gemini-2.5-flash-lite",
|
|
556
|
-
verifiedAgainstDocs: "2026-08-
|
|
556
|
+
verifiedAgainstDocs: "2026-08-27",
|
|
557
557
|
provider: "google",
|
|
558
|
-
|
|
558
|
+
// alpha.91 — AVAILABILITY demotion, same class as gemini-2.5-pro below.
|
|
559
|
+
// Google refuses the model for newer account cohorts: "This model is no
|
|
560
|
+
// longer available to new users. Please update your code to use
|
|
561
|
+
// models/gemini-3.5-flash-lite" (tt-intel TT-49 runtime evidence,
|
|
562
|
+
// 2026-08-26, interfaces/kgauto.md ## Requested). It ranked FIRST in
|
|
563
|
+
// getFallbackChain('gemini-2.5-pro') — a dead-for-new-accounts model as
|
|
564
|
+
// the cheapest fallback pick. `legacy` removes it from chains and new
|
|
565
|
+
// selection; explicit-id consumers still resolve it. Successor is the
|
|
566
|
+
// one Google's own error names: gemini-3.5-flash-lite (onboarded this
|
|
567
|
+
// release, same price point).
|
|
568
|
+
status: "legacy",
|
|
559
569
|
maxContextTokens: 1048576,
|
|
560
570
|
maxOutputTokens: 65536,
|
|
561
571
|
maxTools: 128,
|
|
@@ -1280,9 +1290,12 @@ var PROFILES_RAW = [
|
|
|
1280
1290
|
//
|
|
1281
1291
|
// Cliffs are HYPOTHESIZED from 2.5-flash family; brain evidence pending.
|
|
1282
1292
|
id: "gemini-3.1-flash-lite",
|
|
1283
|
-
verifiedAgainstDocs: "2026-
|
|
1293
|
+
verifiedAgainstDocs: "2026-08-27",
|
|
1284
1294
|
provider: "google",
|
|
1285
|
-
|
|
1295
|
+
// alpha.91 — docs page now labels it "Stable" and the brain row has been
|
|
1296
|
+
// `current` since catalog-sync moved it; the bundle lagged (the L-073
|
|
1297
|
+
// layer-parity shape, caught during the TT-49 delisting release).
|
|
1298
|
+
status: "current",
|
|
1286
1299
|
maxContextTokens: 1048576,
|
|
1287
1300
|
maxOutputTokens: 65536,
|
|
1288
1301
|
maxTools: 128,
|
|
@@ -1374,6 +1387,122 @@ var PROFILES_RAW = [
|
|
|
1374
1387
|
}
|
|
1375
1388
|
},
|
|
1376
1389
|
// ─────────────────────────────────────────────────────────────────────────
|
|
1390
|
+
// Gemini 3.5 Flash-Lite — onboarded s91 (2026-08-27)
|
|
1391
|
+
//
|
|
1392
|
+
// The successor Google's own delisting error names: "This model
|
|
1393
|
+
// [gemini-2.5-flash-lite] is no longer available to new users. Please
|
|
1394
|
+
// update your code to use models/gemini-3.5-flash-lite" (tt-intel TT-49,
|
|
1395
|
+
// 2026-08-26). Same price point as the 2.5 Lite rung it replaces in the
|
|
1396
|
+
// summarize/classify starter chains ($0.30/$2.50 vs the old $0.10/$0.40
|
|
1397
|
+
// era pricing), same 1M/65K limits, same 10× cache discount ($0.03 vs
|
|
1398
|
+
// $0.30 input). Positioning: "fastest, most cost-effective 3.5 model for
|
|
1399
|
+
// high-throughput execution … high-volume agentic tasks, translation, and
|
|
1400
|
+
// simple data processing."
|
|
1401
|
+
//
|
|
1402
|
+
// Cliffs + archetypePerf inherited from the Flash-Lite family as starter
|
|
1403
|
+
// hypotheses — ZERO brain rows on this id yet; first 50 rows per archetype
|
|
1404
|
+
// validate or relax.
|
|
1405
|
+
//
|
|
1406
|
+
// Specs verified 2026-08-27 against:
|
|
1407
|
+
// ai.google.dev/gemini-api/docs/models/gemini-3.5-flash-lite
|
|
1408
|
+
// (Stable; input limit 1,048,576; output limit 65,536; function
|
|
1409
|
+
// calling / structured outputs / thinking / caching all Supported)
|
|
1410
|
+
// ai.google.dev/gemini-api/docs/pricing ($0.30 in / $2.50 out incl.
|
|
1411
|
+
// thinking tokens; context caching $0.03)
|
|
1412
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
1413
|
+
{
|
|
1414
|
+
id: "gemini-3.5-flash-lite",
|
|
1415
|
+
verifiedAgainstDocs: "2026-08-27",
|
|
1416
|
+
provider: "google",
|
|
1417
|
+
status: "current",
|
|
1418
|
+
maxContextTokens: 1048576,
|
|
1419
|
+
maxOutputTokens: 65536,
|
|
1420
|
+
maxTools: 128,
|
|
1421
|
+
parallelToolCalls: true,
|
|
1422
|
+
structuredOutput: "native",
|
|
1423
|
+
systemPromptMode: "separate",
|
|
1424
|
+
streaming: true,
|
|
1425
|
+
cliffs: [
|
|
1426
|
+
{
|
|
1427
|
+
metric: "input_tokens",
|
|
1428
|
+
threshold: 8e3,
|
|
1429
|
+
action: "downgrade_quality_warning",
|
|
1430
|
+
reason: "Inherited from Flash family: quality degrades above ~8K. Lite tier \u2014 assume it degrades at least as fast. Re-tune from brain after n\u226520."
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
metric: "tool_count",
|
|
1434
|
+
threshold: 10,
|
|
1435
|
+
action: "drop_to_top_relevant",
|
|
1436
|
+
reason: "Conservative: Flash drops at 20, Lite tier is smaller \u2014 assume tighter ceiling until brain proves otherwise."
|
|
1437
|
+
},
|
|
1438
|
+
{
|
|
1439
|
+
metric: "thinking_with_short_output",
|
|
1440
|
+
threshold: 1,
|
|
1441
|
+
action: "force_thinking_budget_zero",
|
|
1442
|
+
reason: "Thinking Supported per model page \u2014 same drain risk as Flash; thinking tokens consume maxOutputTokens."
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
// Strong prior: Flash hit 5/5 empty rate on summarize+tools (s11
|
|
1446
|
+
// trust artifact). Flash-Lite siblings carry the guard preemptively;
|
|
1447
|
+
// brain telemetry confirms or relaxes per id.
|
|
1448
|
+
metric: "tool_count",
|
|
1449
|
+
threshold: 1,
|
|
1450
|
+
whenIntent: "summarize",
|
|
1451
|
+
action: "strip_tools",
|
|
1452
|
+
reason: "Inherited from Flash s11 cliff: summarize+tools \u2192 empty response. Preemptive guard until brain evidence on 3.5 Flash-Lite specifically."
|
|
1453
|
+
}
|
|
1454
|
+
],
|
|
1455
|
+
costInputPer1m: 0.3,
|
|
1456
|
+
costOutputPer1m: 2.5,
|
|
1457
|
+
lowering: {
|
|
1458
|
+
...GOOGLE_LOWERING_BASE,
|
|
1459
|
+
// Cache discount 10× — pricing page: $0.03/M cached vs $0.30/M input.
|
|
1460
|
+
// Material for repeat-prompt workloads (classify shape).
|
|
1461
|
+
cache: { ...GOOGLE_LOWERING_BASE.cache, discount: 0.1 },
|
|
1462
|
+
thinking: { field: "generationConfig.thinkingConfig.thinkingBudget", default: "auto" }
|
|
1463
|
+
},
|
|
1464
|
+
recovery: [
|
|
1465
|
+
{
|
|
1466
|
+
signal: "empty_response_after_tool",
|
|
1467
|
+
action: "retry_with_params",
|
|
1468
|
+
retryParams: { "generationConfig.thinkingConfig.thinkingBudget": 0 },
|
|
1469
|
+
maxRetries: 1,
|
|
1470
|
+
reason: "Known on Flash family: empty after tool result \u2014 retry with thinking off."
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
signal: "empty_response",
|
|
1474
|
+
action: "retry_with_params",
|
|
1475
|
+
retryParams: { "generationConfig.thinkingConfig.thinkingBudget": 0 },
|
|
1476
|
+
maxRetries: 1,
|
|
1477
|
+
reason: "Empty response \u2014 try with thinking off."
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
signal: "malformed_function_call",
|
|
1481
|
+
action: "escalate",
|
|
1482
|
+
reason: "MALFORMED_FUNCTION_CALL maps to stop \u2014 escalate to next target."
|
|
1483
|
+
}
|
|
1484
|
+
],
|
|
1485
|
+
strengths: ["low_cost", "speed", "volume", "classification", "summarize", "1m_context", "cache_friendly"],
|
|
1486
|
+
weaknesses: ["complex_reasoning", "large_tool_sets", "complex_schemas", "structured_output_unproven", "long_context_quality"],
|
|
1487
|
+
notes: 'Onboarded s91 (2026-08-27) as the Google-named successor to availability-restricted gemini-2.5-flash-lite. $0.30/$2.50 per 1M, 1M context, 65K max output, cache $0.03/M (10\xD7 discount). "Fastest, most cost-effective 3.5 model for high-throughput execution." Cliffs hypothesized from the Flash family \u2014 brain evidence pending.',
|
|
1488
|
+
// Lite-tier floor for summarize/classify chains. ZERO brain rows — all
|
|
1489
|
+
// values are starter hypotheses anchored to the Flash-Lite family shape.
|
|
1490
|
+
archetypePerf: {
|
|
1491
|
+
classify: 6,
|
|
1492
|
+
// starter hypothesis — verify (Flash is 7, lite likely ≤)
|
|
1493
|
+
summarize: 6,
|
|
1494
|
+
// starter hypothesis — verify; cliff strips tools
|
|
1495
|
+
transform: 6,
|
|
1496
|
+
// starter hypothesis — verify
|
|
1497
|
+
ask: 5,
|
|
1498
|
+
hunt: 5,
|
|
1499
|
+
generate: 4,
|
|
1500
|
+
extract: 4,
|
|
1501
|
+
plan: 3,
|
|
1502
|
+
critique: 3
|
|
1503
|
+
}
|
|
1504
|
+
},
|
|
1505
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
1377
1506
|
// Gemini 3.5 Flash — hand-onboarded s37 (2026-05-21)
|
|
1378
1507
|
//
|
|
1379
1508
|
// Google positioning ("Most intelligent for sustained frontier performance
|
package/dist/profiles.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as MutationApplied, B as BestPracticeAdvisory, F as FallbackReason, n as CallAttempt } from './ir-
|
|
1
|
+
import { t as MutationApplied, B as BestPracticeAdvisory, F as FallbackReason, n as CallAttempt } from './ir-BPYh68mv.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Glass-Box observability types (alpha.17).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as MutationApplied, B as BestPracticeAdvisory, F as FallbackReason, n as CallAttempt } from './ir-
|
|
1
|
+
import { t as MutationApplied, B as BestPracticeAdvisory, F as FallbackReason, n as CallAttempt } from './ir-BWnE6LaB.js';
|
|
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.92",
|
|
4
4
|
"description": "Prompt compiler with executable provider knowledge for multi-model AI apps: normalized multi-provider transport with fallback chains, compile-time cliff guards, a curated model registry, and a telemetry flight recorder. Swap models without rewriting prompts.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|