@warmdrift/kgauto-compiler 2.0.0-alpha.86 → 2.0.0-alpha.88
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-QDWOMQYN.mjs → chunk-DSHWJFM2.mjs} +5 -1
- package/dist/{chunk-V4T2CBRI.mjs → chunk-GCOVYPJA.mjs} +1 -1
- package/dist/{chunk-2MQIVVEU.mjs → chunk-UNTUOZAG.mjs} +180 -24
- 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 +123 -23
- 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 +23 -5
- package/dist/index.d.ts +23 -5
- package/dist/index.js +290 -30
- package/dist/index.mjs +112 -8
- package/dist/{ir-5TJLAYKR.d.mts → ir-P3NEU8z4.d.mts} +84 -1
- package/dist/{ir-C1zmvAh6.d.ts → ir-ZgN2KkuF.d.ts} +84 -1
- package/dist/key-health.js +1 -1
- package/dist/key-health.mjs +1 -1
- package/dist/profiles.d.mts +43 -2
- package/dist/profiles.d.ts +43 -2
- package/dist/profiles.js +184 -24
- package/dist/profiles.mjs +9 -1
- package/dist/{types-BiV-qN_x.d.mts → types-7sF3adLO.d.mts} +1 -1
- package/dist/{types-C2H37XLR.d.ts → types-B_MjEB0h.d.ts} +1 -1
- package/dist/{types-8Goj1cKf.d.ts → types-BgfuVIVI.d.ts} +1 -1
- package/dist/{types-BcYPDXgJ.d.mts → types-CK0zUlVE.d.mts} +1 -1
- package/package.json +8 -2
|
@@ -265,7 +265,7 @@ var PROFILES_RAW = [
|
|
|
265
265
|
},
|
|
266
266
|
{
|
|
267
267
|
id: "claude-opus-4-7",
|
|
268
|
-
verifiedAgainstDocs: "2026-
|
|
268
|
+
verifiedAgainstDocs: "2026-08-24",
|
|
269
269
|
provider: "anthropic",
|
|
270
270
|
status: "legacy",
|
|
271
271
|
// s76 2026-07-25: docs list as LEGACY (Opus 5 is current). Bundle said current while the brain already said legacy — the two disagreed.
|
|
@@ -315,7 +315,7 @@ var PROFILES_RAW = [
|
|
|
315
315
|
},
|
|
316
316
|
{
|
|
317
317
|
id: "claude-opus-4-6",
|
|
318
|
-
verifiedAgainstDocs: "2026-
|
|
318
|
+
verifiedAgainstDocs: "2026-08-24",
|
|
319
319
|
provider: "anthropic",
|
|
320
320
|
status: "legacy",
|
|
321
321
|
maxContextTokens: 1e6,
|
|
@@ -360,7 +360,7 @@ var PROFILES_RAW = [
|
|
|
360
360
|
},
|
|
361
361
|
{
|
|
362
362
|
id: "claude-sonnet-4-6",
|
|
363
|
-
verifiedAgainstDocs: "2026-
|
|
363
|
+
verifiedAgainstDocs: "2026-08-24",
|
|
364
364
|
provider: "anthropic",
|
|
365
365
|
status: "legacy",
|
|
366
366
|
// s76 2026-07-25: docs list as LEGACY (Sonnet 5 is current).
|
|
@@ -401,7 +401,7 @@ var PROFILES_RAW = [
|
|
|
401
401
|
},
|
|
402
402
|
{
|
|
403
403
|
id: "claude-haiku-4-5",
|
|
404
|
-
verifiedAgainstDocs: "2026-
|
|
404
|
+
verifiedAgainstDocs: "2026-08-24",
|
|
405
405
|
provider: "anthropic",
|
|
406
406
|
status: "current",
|
|
407
407
|
maxContextTokens: 2e5,
|
|
@@ -464,7 +464,7 @@ var PROFILES_RAW = [
|
|
|
464
464
|
// ── Google ──
|
|
465
465
|
{
|
|
466
466
|
id: "gemini-2.5-flash",
|
|
467
|
-
verifiedAgainstDocs: "2026-
|
|
467
|
+
verifiedAgainstDocs: "2026-08-24",
|
|
468
468
|
provider: "google",
|
|
469
469
|
status: "current",
|
|
470
470
|
maxContextTokens: 1048576,
|
|
@@ -570,7 +570,7 @@ var PROFILES_RAW = [
|
|
|
570
570
|
// thresholds. The brain will validate/relax these as evidence accumulates
|
|
571
571
|
// per (archetype, model) tuple. Currently ZERO brain rows for this model.
|
|
572
572
|
id: "gemini-2.5-flash-lite",
|
|
573
|
-
verifiedAgainstDocs: "2026-
|
|
573
|
+
verifiedAgainstDocs: "2026-08-24",
|
|
574
574
|
provider: "google",
|
|
575
575
|
status: "current",
|
|
576
576
|
maxContextTokens: 1048576,
|
|
@@ -727,7 +727,7 @@ var PROFILES_RAW = [
|
|
|
727
727
|
},
|
|
728
728
|
{
|
|
729
729
|
id: "gemini-3.1-pro-preview",
|
|
730
|
-
verifiedAgainstDocs: "2026-
|
|
730
|
+
verifiedAgainstDocs: "2026-08-24",
|
|
731
731
|
provider: "google",
|
|
732
732
|
status: "preview",
|
|
733
733
|
maxContextTokens: 1048576,
|
|
@@ -787,7 +787,7 @@ var PROFILES_RAW = [
|
|
|
787
787
|
// deepseek-reasoner registered as aliases (see ALIASES below).
|
|
788
788
|
{
|
|
789
789
|
id: "deepseek-v4-flash",
|
|
790
|
-
verifiedAgainstDocs: "2026-
|
|
790
|
+
verifiedAgainstDocs: "2026-08-24",
|
|
791
791
|
provider: "deepseek",
|
|
792
792
|
status: "current",
|
|
793
793
|
maxContextTokens: 1e6,
|
|
@@ -805,8 +805,8 @@ var PROFILES_RAW = [
|
|
|
805
805
|
reason: "Sequential tool calls only \u2014 L-040"
|
|
806
806
|
}
|
|
807
807
|
],
|
|
808
|
-
costInputPer1m: 0.
|
|
809
|
-
costOutputPer1m:
|
|
808
|
+
costInputPer1m: 0.44,
|
|
809
|
+
costOutputPer1m: 1.32,
|
|
810
810
|
lowering: {
|
|
811
811
|
system: { mode: "inline" },
|
|
812
812
|
cache: { strategy: "unsupported" },
|
|
@@ -825,7 +825,7 @@ var PROFILES_RAW = [
|
|
|
825
825
|
// baseQuality (it carries 'reasoning') with no latency counterweight,
|
|
826
826
|
// leapfrogged gemini-2.5-flash as PB's summarize leader once reachable.
|
|
827
827
|
latencyTier: "slow",
|
|
828
|
-
notes: "Cheap workhorse. 1M context, 384k max output. Cache-hit input $0.0028/M (1/50\xD7 of miss). Aliased as `deepseek-chat` (non-thinking) and `deepseek-reasoner` (thinking) \u2014 see ALIASES.",
|
|
828
|
+
notes: "Cheap workhorse. 1M context, 384k max output. Cache-hit input $0.0028/M (1/50\xD7 of miss). Aliased as `deepseek-chat` (non-thinking) and `deepseek-reasoner` (thinking) \u2014 see ALIASES. PEAK/OFF-PEAK since 2026-08-16 (page fetched 2026-08-24): peak = weekdays 01:00-04:00 + 06:00-10:00 UTC, off-peak = all other hours at HALF peak. Encoded prices ARE the peak rate (conservative: never understate cost); off-peak traffic costs half what the estimate says. alpha.87 shipped the DEAD pre-transition prices ($0.14/$0.28 flash, $0.435/$0.87 pro) with a fresh verification stamp \u2014 corrected here (alpha.88). A single price field cannot represent a two-rate schedule; catalog-sync extractions oscillate between the rates day-to-day (peak read 08-21, off-peak read 08-22) \u2014 time-of-day pricing remains unmodeled, roadmap.",
|
|
829
829
|
// Master plan §6.2 anchor. Brain-validated tier 1 cross-provider for
|
|
830
830
|
// classify (169 rows, 0% empty). Tier 0 for summarize-with-no-tools.
|
|
831
831
|
// Falls off on hunt (sequential tools — L-040) and reasoning depth.
|
|
@@ -860,7 +860,7 @@ var PROFILES_RAW = [
|
|
|
860
860
|
},
|
|
861
861
|
{
|
|
862
862
|
id: "deepseek-v4-pro",
|
|
863
|
-
verifiedAgainstDocs: "2026-
|
|
863
|
+
verifiedAgainstDocs: "2026-08-24",
|
|
864
864
|
provider: "deepseek",
|
|
865
865
|
status: "current",
|
|
866
866
|
maxContextTokens: 1e6,
|
|
@@ -884,8 +884,8 @@ var PROFILES_RAW = [
|
|
|
884
884
|
// cache-hit in; no promo caveat). The old $1.74/$3.48 "regular post-promo"
|
|
885
885
|
// was a projected revert that never happened (L-073/L-081) — it 4×-overstated
|
|
886
886
|
// cost and suppressed V4-Pro in cost-aware ranking.
|
|
887
|
-
costInputPer1m:
|
|
888
|
-
costOutputPer1m:
|
|
887
|
+
costInputPer1m: 1.32,
|
|
888
|
+
costOutputPer1m: 3.96,
|
|
889
889
|
lowering: {
|
|
890
890
|
system: { mode: "inline" },
|
|
891
891
|
cache: { strategy: "unsupported" },
|
|
@@ -901,7 +901,7 @@ var PROFILES_RAW = [
|
|
|
901
901
|
// of the served set. Tag derivation would say 'medium'; the measurement says
|
|
902
902
|
// otherwise.
|
|
903
903
|
latencyTier: "slow",
|
|
904
|
-
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.",
|
|
904
|
+
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. PEAK/OFF-PEAK since 2026-08-16 (page fetched 2026-08-24): peak = weekdays 01:00-04:00 + 06:00-10:00 UTC, off-peak = all other hours at HALF peak. Encoded prices ARE the peak rate (conservative: never understate cost); off-peak traffic costs half what the estimate says. alpha.87 shipped the DEAD pre-transition prices ($0.14/$0.28 flash, $0.435/$0.87 pro) with a fresh verification stamp \u2014 corrected here (alpha.88). A single price field cannot represent a two-rate schedule; catalog-sync extractions oscillate between the rates day-to-day (peak read 08-21, off-peak read 08-22) \u2014 time-of-day pricing remains unmodeled, roadmap.",
|
|
905
905
|
// Master plan §3.3: tier 3 cross-provider for plan chain. Reasoning
|
|
906
906
|
// bumped one notch over V4-Flash; same parallel-tool ceiling.
|
|
907
907
|
archetypePerf: {
|
|
@@ -1509,13 +1509,111 @@ var PROFILES_RAW = [
|
|
|
1509
1509
|
// +1 vs 2.5-flash — but still below Sonnet/Opus reasoning floor
|
|
1510
1510
|
}
|
|
1511
1511
|
},
|
|
1512
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
1513
|
+
// gemini-3.6-flash — hand-onboarded s86 (2026-08-14), step-zero against
|
|
1514
|
+
// Google docs (models/gemini-3.6-flash page + pricing via catalog-sync's
|
|
1515
|
+
// two-agreeing-extraction the same day). Docs list it as Stable and call
|
|
1516
|
+
// it "previous-generation Flash" (3.5-flash is now "legacy" in Google's
|
|
1517
|
+
// wording) — but kgauto status is 'preview' per the standing entry rule:
|
|
1518
|
+
// a new model enters on capability data verified only at the docs level,
|
|
1519
|
+
// preview is unreachable by starter chains, and promotion to routing
|
|
1520
|
+
// happens through brain evidence, not through Google's marketing tier.
|
|
1521
|
+
// This also means NO family-primary retarget rides this release.
|
|
1522
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
1523
|
+
{
|
|
1524
|
+
id: "gemini-3.6-flash",
|
|
1525
|
+
verifiedAgainstDocs: "2026-08-24",
|
|
1526
|
+
versionAdded: "2.0.0-alpha.87",
|
|
1527
|
+
provider: "google",
|
|
1528
|
+
status: "preview",
|
|
1529
|
+
maxContextTokens: 1048576,
|
|
1530
|
+
maxOutputTokens: 65536,
|
|
1531
|
+
maxTools: 128,
|
|
1532
|
+
parallelToolCalls: true,
|
|
1533
|
+
structuredOutput: "native",
|
|
1534
|
+
systemPromptMode: "separate",
|
|
1535
|
+
streaming: true,
|
|
1536
|
+
cliffs: [
|
|
1537
|
+
{
|
|
1538
|
+
metric: "input_tokens",
|
|
1539
|
+
threshold: 8e3,
|
|
1540
|
+
action: "downgrade_quality_warning",
|
|
1541
|
+
reason: "Inherited Flash-family guard (2.5\u21923.5 lineage); no 3.6 brain evidence yet"
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
metric: "tool_count",
|
|
1545
|
+
threshold: 20,
|
|
1546
|
+
action: "drop_to_top_relevant",
|
|
1547
|
+
reason: "Inherited from Flash family: tool reliability drops above ~20 (despite 128 hard limit). Validate per (archetype, model) after n\u226520."
|
|
1548
|
+
},
|
|
1549
|
+
{
|
|
1550
|
+
metric: "thinking_with_short_output",
|
|
1551
|
+
threshold: 1,
|
|
1552
|
+
action: "force_thinking_budget_zero",
|
|
1553
|
+
reason: "Thinking supported per Google docs; same drain risk as 2.5/3.5-flash \u2014 thinking tokens consume maxOutputTokens"
|
|
1554
|
+
},
|
|
1555
|
+
{
|
|
1556
|
+
metric: "tool_count",
|
|
1557
|
+
threshold: 1,
|
|
1558
|
+
whenIntent: "summarize",
|
|
1559
|
+
action: "strip_tools",
|
|
1560
|
+
reason: "Inherited from 2.5-flash s11 cliff: summarize+tools \u2192 empty response. Preemptive family guard until brain evidence on 3.6-flash specifically."
|
|
1561
|
+
}
|
|
1562
|
+
],
|
|
1563
|
+
costInputPer1m: 0.75,
|
|
1564
|
+
// promo through 2026-12-31; $1.50 from 2027-01-01 (TIME_BOUNDED_PRICING_ROWS carries the transition)
|
|
1565
|
+
costOutputPer1m: 3.75,
|
|
1566
|
+
// promo through 2026-12-31; $7.50 from 2027-01-01
|
|
1567
|
+
lowering: {
|
|
1568
|
+
...GOOGLE_LOWERING_BASE,
|
|
1569
|
+
cache: { ...GOOGLE_LOWERING_BASE.cache, discount: 0.1 },
|
|
1570
|
+
thinking: { field: "generationConfig.thinkingConfig.thinkingBudget", default: "auto" }
|
|
1571
|
+
},
|
|
1572
|
+
recovery: [
|
|
1573
|
+
{
|
|
1574
|
+
signal: "empty_response_after_tool",
|
|
1575
|
+
action: "retry_with_params",
|
|
1576
|
+
retryParams: { "generationConfig.thinkingConfig.thinkingBudget": 0 },
|
|
1577
|
+
maxRetries: 1,
|
|
1578
|
+
reason: "Inherited Flash-family pattern: empty after tool result \u2014 retry with thinking off"
|
|
1579
|
+
},
|
|
1580
|
+
{
|
|
1581
|
+
signal: "empty_response",
|
|
1582
|
+
action: "retry_with_params",
|
|
1583
|
+
retryParams: { "generationConfig.thinkingConfig.thinkingBudget": 0 },
|
|
1584
|
+
maxRetries: 1,
|
|
1585
|
+
reason: "Empty response \u2014 try with thinking off"
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
signal: "malformed_function_call",
|
|
1589
|
+
action: "escalate",
|
|
1590
|
+
reason: "MALFORMED_FUNCTION_CALL maps to stop \u2014 escalate to next target"
|
|
1591
|
+
}
|
|
1592
|
+
],
|
|
1593
|
+
strengths: ["agentic_loops", "coding", "1m_context", "parallel_tools", "thinking_mode"],
|
|
1594
|
+
weaknesses: ["no_brain_evidence_yet"],
|
|
1595
|
+
notes: "Hand-onboarded s86 (2026-08-24; the session ran under a 10-day-slow machine clock, hence 08-14 stamps in kin artifacts), step-zero verified: 1,048,576 ctx / 65,536 out (Google model page). PRICING (page 2026-08-24): $0.75/$3.75 promo through 2026-12-31, $1.50/$7.50 from 2027-01-01 \u2014 the alpha.87 profile carried the post-promo rate as if current; corrected alpha.88. Docs status Stable; enters kgauto as preview per standing rule (availability != lifecycle, promotion via brain evidence). Function calling + structured outputs + thinking per docs; parallel tools assumed per Flash family (docs silent). First flagged by the release watcher s73 (2026-07-24); ~31 days in the onboarding queue.",
|
|
1596
|
+
archetypePerf: {
|
|
1597
|
+
hunt: 9,
|
|
1598
|
+
// Flash-family parallel-tool tier (L-040); inherited from 3.5-flash
|
|
1599
|
+
classify: 7,
|
|
1600
|
+
summarize: 7,
|
|
1601
|
+
transform: 7,
|
|
1602
|
+
ask: 8,
|
|
1603
|
+
generate: 8,
|
|
1604
|
+
plan: 7,
|
|
1605
|
+
extract: 7,
|
|
1606
|
+
critique: 5
|
|
1607
|
+
}
|
|
1608
|
+
},
|
|
1512
1609
|
{
|
|
1513
1610
|
// Auto-onboarded 2026-07-01 from `claude-sonnet-4-6`; VERIFIED 2026-07-02
|
|
1514
1611
|
// against the claude-api reference (cc-portfolio ratification pass). The
|
|
1515
|
-
// clone got context right (1M)
|
|
1516
|
-
//
|
|
1517
|
-
//
|
|
1518
|
-
//
|
|
1612
|
+
// clone got context right (1M). PRICING RE-BASED 2026-08-14 (s86): the
|
|
1613
|
+
// introductory $2/$10 was made PERMANENT — Anthropic's pricing page now
|
|
1614
|
+
// states the scheduled Sept-1 increase to $3/$15 "will not occur", so
|
|
1615
|
+
// $2/$10 IS the sticker. (The $3/$15 encoded 07-02 was correct under the
|
|
1616
|
+
// time-bounded-pricing convention at the time; the bound was cancelled.) The clone got max output WRONG:
|
|
1519
1617
|
// Sonnet 5 is 128k, not 4-6's 64k — corrected. New tokenizer (~30% more
|
|
1520
1618
|
// tokens for the same text vs 4-6): byte-budget consumers should re-baseline.
|
|
1521
1619
|
// API quirks (claude-api ref): (a) NON-DEFAULT temperature/top_p/top_k
|
|
@@ -1528,7 +1626,7 @@ var PROFILES_RAW = [
|
|
|
1528
1626
|
// 'preview' per the Fable precedent — no brain evidence yet; promotion to
|
|
1529
1627
|
// 'current' is an explicit call. (L-049/L-081.)
|
|
1530
1628
|
id: "claude-sonnet-5",
|
|
1531
|
-
verifiedAgainstDocs: "2026-
|
|
1629
|
+
verifiedAgainstDocs: "2026-08-24",
|
|
1532
1630
|
provider: "anthropic",
|
|
1533
1631
|
status: "current",
|
|
1534
1632
|
// s76 2026-07-25: GA per docs; was preview.
|
|
@@ -1540,8 +1638,9 @@ var PROFILES_RAW = [
|
|
|
1540
1638
|
systemPromptMode: "inline",
|
|
1541
1639
|
streaming: true,
|
|
1542
1640
|
cliffs: [],
|
|
1543
|
-
costInputPer1m:
|
|
1544
|
-
|
|
1641
|
+
costInputPer1m: 2,
|
|
1642
|
+
// 2026-08-24: intro price made PERMANENT (docs: "the previously scheduled increase to $3/$15 on September 1, 2026 will not occur")
|
|
1643
|
+
costOutputPer1m: 10,
|
|
1545
1644
|
lowering: ANTHROPIC_LOWERING_BASE,
|
|
1546
1645
|
recovery: [
|
|
1547
1646
|
{ signal: "rate_limit", action: "escalate", reason: "429 \u2014 escalate" },
|
|
@@ -1729,6 +1828,7 @@ var brainHook = {};
|
|
|
1729
1828
|
function canonicalId(id) {
|
|
1730
1829
|
return brainHook.resolveAlias?.(id) ?? ALIASES[id] ?? id;
|
|
1731
1830
|
}
|
|
1831
|
+
var CONSUMER_INDEX = /* @__PURE__ */ new Map();
|
|
1732
1832
|
function resolveModelAlias(id) {
|
|
1733
1833
|
return canonicalId(id);
|
|
1734
1834
|
}
|
|
@@ -1737,7 +1837,7 @@ var PROFILE_INDEX = new Map(
|
|
|
1737
1837
|
);
|
|
1738
1838
|
function tryGetProfile(id) {
|
|
1739
1839
|
const canonical = canonicalId(id);
|
|
1740
|
-
return brainHook.getProfile?.(canonical) ?? PROFILE_INDEX.get(canonical);
|
|
1840
|
+
return CONSUMER_INDEX.get(canonical) ?? brainHook.getProfile?.(canonical) ?? PROFILE_INDEX.get(canonical);
|
|
1741
1841
|
}
|
|
1742
1842
|
function allProfiles() {
|
|
1743
1843
|
return PROFILES_RAW;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ARCHETYPE_FLOOR_DEFAULT,
|
|
3
3
|
getDefaultFallbackChain
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-DSHWJFM2.mjs";
|
|
5
5
|
import {
|
|
6
6
|
tryGetProfile
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-UNTUOZAG.mjs";
|
|
8
8
|
import {
|
|
9
9
|
subscribe,
|
|
10
10
|
subscribeApp
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { a as TraceDetail } from '../../types-
|
|
3
|
-
import '../../ir-
|
|
2
|
+
import { a as TraceDetail } from '../../types-CK0zUlVE.mjs';
|
|
3
|
+
import '../../ir-P3NEU8z4.mjs';
|
|
4
4
|
import '../../dialect.mjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { a as TraceDetail } from '../../types-
|
|
3
|
-
import '../../ir-
|
|
2
|
+
import { a as TraceDetail } from '../../types-BgfuVIVI.js';
|
|
3
|
+
import '../../ir-ZgN2KkuF.js';
|
|
4
4
|
import '../../dialect.js';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as CompilePolicy, N as NormalizedResponse, A as ApiKeys, P as ProviderOverrides, a as CompiledRequest, b as PromptIR, c as CallOptions, d as CallResult, S as SystemModelMessage, e as CompileResult, B as BestPracticeAdvisory, F as FallbackReason, f as SectionRewrite, R as RecordInput, g as RecordOutcomeInput, O as OutcomeResult, h as
|
|
2
|
-
export {
|
|
1
|
+
import { C as CompilePolicy, N as NormalizedResponse, A as ApiKeys, P as ProviderOverrides, a as CompiledRequest, b as PromptIR, c as CallOptions, d as CallResult, S as SystemModelMessage, e as CompileResult, B as BestPracticeAdvisory, F as FallbackReason, f as SectionRewrite, R as RecordInput, g as RecordOutcomeInput, O as OutcomeResult, h as OutcomeSource, i as OracleScore, j as Adapter, k as PerAxisMetrics, l as Provider, m as ChainEntry, G as Grounding } from './ir-P3NEU8z4.mjs';
|
|
2
|
+
export { n as CallAttempt, o as CallError, p as ChainModelEntry, q as ChainWithGrounding, r as Constraints, E as EffortLevel, s as GoldenCaptureOptions, H as HistoryCachePolicy, I as IntentDeclaration, M as Message, t as MutationApplied, u as NormalizedTokens, v as OutcomeKind, w as PerAxisMetricsByModel, x as PromptSection, y as SectionKind, z as ShadowProbeConfig, T as ToolCall, D as ToolDefinition, J as captureGoldenIr, K as hasMutation, L as mutationId, Q as parseGoldenCaptureRate, U as resolveGoldenCaptureRate, V as shouldCaptureGolden } from './ir-P3NEU8z4.mjs';
|
|
3
3
|
import { ModelProfile, ArchetypeConvention } from './profiles.mjs';
|
|
4
|
-
export { ALIASES, CacheStrategy, CliffRule, LATENCY_TIER_MS, LatencyTier, LoweringSpec, RecoveryRule, StructuredOutputCapability, SystemPromptMode, allProfiles, getProfile, latencyTierOf, profilesByProvider, resolveModelAlias, tryGetProfile } from './profiles.mjs';
|
|
4
|
+
export { ALIASES, CacheStrategy, CliffRule, LATENCY_TIER_MS, LatencyTier, LoweringSpec, RecoveryRule, StructuredOutputCapability, SystemPromptMode, _testClearConsumerProfiles, allProfiles, bestEffortProfile, getProfile, inferProviderFromId, latencyTierOf, profilesByProvider, registerProfiles, resolveModelAlias, tryGetProfile } from './profiles.mjs';
|
|
5
5
|
export { BrainForwardConfig, BrainForwardRoutes, createBrainForwardRoutes } from './brain-proxy.mjs';
|
|
6
6
|
export { KEY_FINGERPRINT_DOMAIN, KEY_FINGERPRINT_LENGTH, KeyHealthConfig, KeyHealthProvider, KeyHealthResponseBody, KeyHealthResult, KeyHealthRoute, createKeyHealthRoute, keyFingerprint } from './key-health.mjs';
|
|
7
7
|
import { IntentArchetypeName, OutputMode } from './dialect.mjs';
|
|
@@ -622,6 +622,24 @@ declare function flushBrainDeadLetter(): Promise<{
|
|
|
622
622
|
delivered: number;
|
|
623
623
|
remaining: number;
|
|
624
624
|
}>;
|
|
625
|
+
/**
|
|
626
|
+
* alpha.87 — `KGAUTO_SOURCE` env default for the synthetic self-mark
|
|
627
|
+
* (migration 056). An explicit `source` on the input always wins; when
|
|
628
|
+
* absent, the env var marks every outcome row this PROCESS writes — the
|
|
629
|
+
* zero-code path for replay harnesses and smoke environments that share
|
|
630
|
+
* `call()`/`record()` with real traffic (PB s89's ask: their harness sets
|
|
631
|
+
* `KGAUTO_SOURCE=smoke` in the harness env and touches no call sites).
|
|
632
|
+
*
|
|
633
|
+
* An unrecognized value maps to `'synthetic'` with a one-time warning
|
|
634
|
+
* rather than passing through: migration 056's CHECK constraint would
|
|
635
|
+
* reject the row server-side and the fire-and-forget write would swallow
|
|
636
|
+
* the rejection — silent data loss — while dropping the value entirely
|
|
637
|
+
* would mark declared-synthetic traffic as organic and poison liveness
|
|
638
|
+
* stats. `'synthetic'` keeps both the row and the discriminator honest.
|
|
639
|
+
*/
|
|
640
|
+
declare function resolveOutcomeSource(explicit?: string): OutcomeSource | undefined;
|
|
641
|
+
/** @internal — test hook: re-arm the one-time invalid-KGAUTO_SOURCE warning. */
|
|
642
|
+
declare function _testResetOutcomeSourceWarning(): void;
|
|
625
643
|
declare function record(input: RecordInput): Promise<void>;
|
|
626
644
|
/**
|
|
627
645
|
* Wire shape POSTed by `record()` to the brain proxy's `/outcomes` endpoint.
|
|
@@ -1232,7 +1250,7 @@ declare function runStrategyEvalWithAttribution(opts: Omit<GoldenEvalOptions, 'a
|
|
|
1232
1250
|
* guard in `tests/version.test.ts` fails the suite (and therefore
|
|
1233
1251
|
* `prepublishOnly`) when they diverge — a stale constant cannot reach npm.
|
|
1234
1252
|
*/
|
|
1235
|
-
declare const LIBRARY_VERSION = "2.0.0-alpha.
|
|
1253
|
+
declare const LIBRARY_VERSION = "2.0.0-alpha.88";
|
|
1236
1254
|
|
|
1237
1255
|
/**
|
|
1238
1256
|
* Oracle contract — how an app tells the brain whether a response was good.
|
|
@@ -4052,4 +4070,4 @@ declare function planDecomposition(args: PlanDecompositionArgs): DecompositionPl
|
|
|
4052
4070
|
*/
|
|
4053
4071
|
declare function compile(ir: PromptIR, opts?: CompileOptions): CompileResult;
|
|
4054
4072
|
|
|
4055
|
-
export { ABSOLUTE_FLOOR, type AISDKConvertedMessage, ALT_BLIND_TOKEN_BUDGET_BREACH, ALT_STRATEGY_IDS, ARCHETYPE_FAMILY_FITS, ARCHETYPE_FLOOR_DEFAULT, type ActionableAdvisory, Adapter, type AdvisoryEvidenceWindow, type AdvisoryResolutionSource, type AdvisorySeverity, type AdvisoryStatus, type AdvisorySuggestedFix, ApiKeys, type AppOracle, type ApplySectionRewritesArgs, type ApplySectionRewritesResult, ArchetypeConvention, type ArchetypeFamilyFit, type ArchetypePerfMap, type ArchetypePerfNMap, type ArchetypePerfScoreResult, type AttachCacheControlResult, BLOCKED_MODEL_FAMILY_SIBLING_SERVED_CODE, BLOCKED_MODEL_NOT_IN_ROSTER_CODE, BRAIN_READ_ENV_NAMES, BURST_SPAN_MS, BestPracticeAdvisory, type BrainConfig, type BrainDeadLetterEntry, type BrainHealthSnapshot, type BrainQueryConfig, type BrainReadEnv, COACH_CFG, COST_RANKING_REFERENCE_SHAPE, CallOptions, CallResult, ChainEntry, type CompatibilityIntent, type CompileForAISDKv6Result, type CompileOptions, CompilePolicy, CompileResult, CompiledRequest, type CreateDelegateOpts, DECOMPOSITION_TEMPLATES, DECOMPOSITION_TEMPLATES_VERSION, DEFAULT_FINDINGS_ENDPOINT, DEFAULT_MEASURED_FAILURE_ENDPOINT, DEFAULT_PROMOTIONS_ENDPOINT, DELEGATE_TOOL_DEFINITION, DISCIPLINE_GATES_V1_ALT_BLIND_HEADER, DISCIPLINE_GATES_V1_ALT_HEADER, type DecompositionPlan, type DecompositionStep, type DecompositionTemplate, type DelegateHandle, type DelegateRefusalReason, type DelegateResult, type DelegateToolArgs, type ExclusionFindingRow, type ExclusionResolutionSource, type ExecuteErr, type ExecuteOk, type ExecuteOptions, type ExecuteResult, type ExecutorCandidate, type FallbackPosture, FallbackReason, FamilyResolutionError, type GetActionableAdvisoriesOptions, type GetApplicablePromotionOpts, type GetDefaultFallbackChainOpts, type GetMeasuredFailureOpts, type GetPerAxisMetricsOpts, type GetRecommendedPrimaryOptions, type GoldenEvalAxis, type GoldenEvalCase, type GoldenEvalOptions, type GoldenEvalRunResult, type GoldenEvalStrategyId, type GoldenIrRecordInput, Grounding, IntentArchetypeName, JUDGE_RUBRICS, LIBRARY_VERSION, type LLMJudgeOptions, MEASURED_FAILURE_CFG, MEASURED_GROUNDING_MIN_N, type MarkAdvisoryResolvedOptions, type MarkExclusionFindingHandledOptions, type MarkPromoteReadyHandledOptions, type MeasuredFailureRuntime, type MeasuredFailureVerdict, type ModelBrainRow, type ModelCompatibility, ModelProfile, NormalizedResponse, type OracleContext, OracleScore, type OutcomePayload, OutcomeResult, OutputMode, PRODUCER_OWNED_RULE_CODES, PROVIDER_ENV_KEYS, PerAxisMetrics, type PlannedStep, type PricingRow, type ProbeShadowOptions, type ProbeShadowServed, type ProfileToRowOptions, type PromoteReadyFindingRow, type PromoteReadyResolution, type PromotionRow, type PromotionsRuntime, PromptIR, Provider, ProviderOverrides, type ProviderReachability, ROLLBACK_SUPPRESSION_WINDOW_DAYS, RULE_DISCIPLINE_GATES_V1, RULE_DISCIPLINE_GATES_V1_STRUCTURED, RULE_SEQUENTIAL_TOOL_CLIFF, type ReachabilityOpts, RecordInput, RecordOutcomeInput, type RunAdvisorPhase2Context, STRATEGY_AUTHORSHIP_INDEPENDENT, STRATEGY_AUTHORSHIP_LIMITATION, SectionRewrite, type ShadowProbeRecordInput, type StrategyAttribution, type StrategyAttributionResult, type StrategyOutcome, type SupportedProvider, type SurfaceFailureRow, type SurfaceStats, SystemModelMessage, TRANSLATOR_FLOOR, _testResetMeasuredFailure, _testResetPromotions, _testWaitForMeasuredFailureRefresh, _testWaitForPromotionsRefresh, altBlindGatesBlockFor, altGatesBlockFor, applyArchetypeConvention, applySectionRewrites, attachCacheControlToStreamTextInput, awaitMeasuredFailureReady, awaitPromotionsReady, brainHealth, buildGoldenIrRow, buildLLMJudge, buildPairwiseJudgePrompt, buildShadowProbeRow, burstCaveat, call, chainProviderSpread, classifyEvidenceWindow, classifyStrategyOutcome, clearBrain, combineOrderSwappedVerdicts, compile, compileForAISDKv6, configureBrain, configureMeasuredFailureBrain, configurePromotionsBrain, countTokens, createDelegate, deriveFamilyFromModelId, deriveOwnership, estimateChainCostUsd, estimateModelCostUsd, execute, findBetterFit, flushBrainDeadLetter, formatEvidenceSpan, getActionableAdvisories, getAllStarterChains, getAllStarterChainsWithGrounding, getApplicablePromotion, getArchetypePerfScore, getDefaultFallbackChain, getDefaultFallbackChainWithGrounding, getMeasuredFailureVerdict, getModelCompatibility, getPerAxisMetrics, getReachabilityDiagnostic, getRecentRollback, getRecommendedPrimary, getSequentialStarterChain, getSequentialStarterChainWithGrounding, getStaleExclusionFindings, getStarterChain, getStarterChainWithGrounding, isAltStrategy, isAutoPromoteEnabledFromEnv, isBrainQueryActiveFor, isBrainSync, isDelegateEnabledFromEnv, isExclusionFindingsBrainActive, isMeasuredFailureBrainActive, isMeasuredFailureGateEnabledFromEnv, isModelReachable, isPromotionsBrainActive, isProviderReachable, judgeMeasuredFailure, loadAliasesFromBrain, loadArchetypePerfFromBrain, loadArchetypePerfNFromBrain, loadChainsFromBrain, loadModelsFromBrain, loadPricingFromBrain, mapMeasuredFailureRows, markAdvisoryResolved, markExclusionFindingHandled, markPromoteReadyHandled, parseJudgeVerdict, peekBrainDeadLetter, planDecomposition, prefetchMeasuredFailure, prefetchPromotions, probeShadow, profileToRow, readBrainReadEnv, record, recordGoldenIr, recordOutcome, recordShadowProbe, renderIrForJudge, resetTokenizer, resolveConventionsForProfile, resolvePricingAt, resolveProviderKey, rowToAdvisory, rubricFor, runAdvisor, runGoldenEval, runStrategyEvalWithAttribution, setTokenizer, wilsonLowerBound, withAltBlindDisciplineContract, withAltDisciplineContract, withDisciplineContract };
|
|
4073
|
+
export { ABSOLUTE_FLOOR, type AISDKConvertedMessage, ALT_BLIND_TOKEN_BUDGET_BREACH, ALT_STRATEGY_IDS, ARCHETYPE_FAMILY_FITS, ARCHETYPE_FLOOR_DEFAULT, type ActionableAdvisory, Adapter, type AdvisoryEvidenceWindow, type AdvisoryResolutionSource, type AdvisorySeverity, type AdvisoryStatus, type AdvisorySuggestedFix, ApiKeys, type AppOracle, type ApplySectionRewritesArgs, type ApplySectionRewritesResult, ArchetypeConvention, type ArchetypeFamilyFit, type ArchetypePerfMap, type ArchetypePerfNMap, type ArchetypePerfScoreResult, type AttachCacheControlResult, BLOCKED_MODEL_FAMILY_SIBLING_SERVED_CODE, BLOCKED_MODEL_NOT_IN_ROSTER_CODE, BRAIN_READ_ENV_NAMES, BURST_SPAN_MS, BestPracticeAdvisory, type BrainConfig, type BrainDeadLetterEntry, type BrainHealthSnapshot, type BrainQueryConfig, type BrainReadEnv, COACH_CFG, COST_RANKING_REFERENCE_SHAPE, CallOptions, CallResult, ChainEntry, type CompatibilityIntent, type CompileForAISDKv6Result, type CompileOptions, CompilePolicy, CompileResult, CompiledRequest, type CreateDelegateOpts, DECOMPOSITION_TEMPLATES, DECOMPOSITION_TEMPLATES_VERSION, DEFAULT_FINDINGS_ENDPOINT, DEFAULT_MEASURED_FAILURE_ENDPOINT, DEFAULT_PROMOTIONS_ENDPOINT, DELEGATE_TOOL_DEFINITION, DISCIPLINE_GATES_V1_ALT_BLIND_HEADER, DISCIPLINE_GATES_V1_ALT_HEADER, type DecompositionPlan, type DecompositionStep, type DecompositionTemplate, type DelegateHandle, type DelegateRefusalReason, type DelegateResult, type DelegateToolArgs, type ExclusionFindingRow, type ExclusionResolutionSource, type ExecuteErr, type ExecuteOk, type ExecuteOptions, type ExecuteResult, type ExecutorCandidate, type FallbackPosture, FallbackReason, FamilyResolutionError, type GetActionableAdvisoriesOptions, type GetApplicablePromotionOpts, type GetDefaultFallbackChainOpts, type GetMeasuredFailureOpts, type GetPerAxisMetricsOpts, type GetRecommendedPrimaryOptions, type GoldenEvalAxis, type GoldenEvalCase, type GoldenEvalOptions, type GoldenEvalRunResult, type GoldenEvalStrategyId, type GoldenIrRecordInput, Grounding, IntentArchetypeName, JUDGE_RUBRICS, LIBRARY_VERSION, type LLMJudgeOptions, MEASURED_FAILURE_CFG, MEASURED_GROUNDING_MIN_N, type MarkAdvisoryResolvedOptions, type MarkExclusionFindingHandledOptions, type MarkPromoteReadyHandledOptions, type MeasuredFailureRuntime, type MeasuredFailureVerdict, type ModelBrainRow, type ModelCompatibility, ModelProfile, NormalizedResponse, type OracleContext, OracleScore, type OutcomePayload, OutcomeResult, OutputMode, PRODUCER_OWNED_RULE_CODES, PROVIDER_ENV_KEYS, PerAxisMetrics, type PlannedStep, type PricingRow, type ProbeShadowOptions, type ProbeShadowServed, type ProfileToRowOptions, type PromoteReadyFindingRow, type PromoteReadyResolution, type PromotionRow, type PromotionsRuntime, PromptIR, Provider, ProviderOverrides, type ProviderReachability, ROLLBACK_SUPPRESSION_WINDOW_DAYS, RULE_DISCIPLINE_GATES_V1, RULE_DISCIPLINE_GATES_V1_STRUCTURED, RULE_SEQUENTIAL_TOOL_CLIFF, type ReachabilityOpts, RecordInput, RecordOutcomeInput, type RunAdvisorPhase2Context, STRATEGY_AUTHORSHIP_INDEPENDENT, STRATEGY_AUTHORSHIP_LIMITATION, SectionRewrite, type ShadowProbeRecordInput, type StrategyAttribution, type StrategyAttributionResult, type StrategyOutcome, type SupportedProvider, type SurfaceFailureRow, type SurfaceStats, SystemModelMessage, TRANSLATOR_FLOOR, _testResetMeasuredFailure, _testResetOutcomeSourceWarning, _testResetPromotions, _testWaitForMeasuredFailureRefresh, _testWaitForPromotionsRefresh, altBlindGatesBlockFor, altGatesBlockFor, applyArchetypeConvention, applySectionRewrites, attachCacheControlToStreamTextInput, awaitMeasuredFailureReady, awaitPromotionsReady, brainHealth, buildGoldenIrRow, buildLLMJudge, buildPairwiseJudgePrompt, buildShadowProbeRow, burstCaveat, call, chainProviderSpread, classifyEvidenceWindow, classifyStrategyOutcome, clearBrain, combineOrderSwappedVerdicts, compile, compileForAISDKv6, configureBrain, configureMeasuredFailureBrain, configurePromotionsBrain, countTokens, createDelegate, deriveFamilyFromModelId, deriveOwnership, estimateChainCostUsd, estimateModelCostUsd, execute, findBetterFit, flushBrainDeadLetter, formatEvidenceSpan, getActionableAdvisories, getAllStarterChains, getAllStarterChainsWithGrounding, getApplicablePromotion, getArchetypePerfScore, getDefaultFallbackChain, getDefaultFallbackChainWithGrounding, getMeasuredFailureVerdict, getModelCompatibility, getPerAxisMetrics, getReachabilityDiagnostic, getRecentRollback, getRecommendedPrimary, getSequentialStarterChain, getSequentialStarterChainWithGrounding, getStaleExclusionFindings, getStarterChain, getStarterChainWithGrounding, isAltStrategy, isAutoPromoteEnabledFromEnv, isBrainQueryActiveFor, isBrainSync, isDelegateEnabledFromEnv, isExclusionFindingsBrainActive, isMeasuredFailureBrainActive, isMeasuredFailureGateEnabledFromEnv, isModelReachable, isPromotionsBrainActive, isProviderReachable, judgeMeasuredFailure, loadAliasesFromBrain, loadArchetypePerfFromBrain, loadArchetypePerfNFromBrain, loadChainsFromBrain, loadModelsFromBrain, loadPricingFromBrain, mapMeasuredFailureRows, markAdvisoryResolved, markExclusionFindingHandled, markPromoteReadyHandled, parseJudgeVerdict, peekBrainDeadLetter, planDecomposition, prefetchMeasuredFailure, prefetchPromotions, probeShadow, profileToRow, readBrainReadEnv, record, recordGoldenIr, recordOutcome, recordShadowProbe, renderIrForJudge, resetTokenizer, resolveConventionsForProfile, resolveOutcomeSource, resolvePricingAt, resolveProviderKey, rowToAdvisory, rubricFor, runAdvisor, runGoldenEval, runStrategyEvalWithAttribution, setTokenizer, wilsonLowerBound, withAltBlindDisciplineContract, withAltDisciplineContract, withDisciplineContract };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as CompilePolicy, N as NormalizedResponse, A as ApiKeys, P as ProviderOverrides, a as CompiledRequest, b as PromptIR, c as CallOptions, d as CallResult, S as SystemModelMessage, e as CompileResult, B as BestPracticeAdvisory, F as FallbackReason, f as SectionRewrite, R as RecordInput, g as RecordOutcomeInput, O as OutcomeResult, h as
|
|
2
|
-
export {
|
|
1
|
+
import { C as CompilePolicy, N as NormalizedResponse, A as ApiKeys, P as ProviderOverrides, a as CompiledRequest, b as PromptIR, c as CallOptions, d as CallResult, S as SystemModelMessage, e as CompileResult, B as BestPracticeAdvisory, F as FallbackReason, f as SectionRewrite, R as RecordInput, g as RecordOutcomeInput, O as OutcomeResult, h as OutcomeSource, i as OracleScore, j as Adapter, k as PerAxisMetrics, l as Provider, m as ChainEntry, G as Grounding } from './ir-ZgN2KkuF.js';
|
|
2
|
+
export { n as CallAttempt, o as CallError, p as ChainModelEntry, q as ChainWithGrounding, r as Constraints, E as EffortLevel, s as GoldenCaptureOptions, H as HistoryCachePolicy, I as IntentDeclaration, M as Message, t as MutationApplied, u as NormalizedTokens, v as OutcomeKind, w as PerAxisMetricsByModel, x as PromptSection, y as SectionKind, z as ShadowProbeConfig, T as ToolCall, D as ToolDefinition, J as captureGoldenIr, K as hasMutation, L as mutationId, Q as parseGoldenCaptureRate, U as resolveGoldenCaptureRate, V as shouldCaptureGolden } from './ir-ZgN2KkuF.js';
|
|
3
3
|
import { ModelProfile, ArchetypeConvention } from './profiles.js';
|
|
4
|
-
export { ALIASES, CacheStrategy, CliffRule, LATENCY_TIER_MS, LatencyTier, LoweringSpec, RecoveryRule, StructuredOutputCapability, SystemPromptMode, allProfiles, getProfile, latencyTierOf, profilesByProvider, resolveModelAlias, tryGetProfile } from './profiles.js';
|
|
4
|
+
export { ALIASES, CacheStrategy, CliffRule, LATENCY_TIER_MS, LatencyTier, LoweringSpec, RecoveryRule, StructuredOutputCapability, SystemPromptMode, _testClearConsumerProfiles, allProfiles, bestEffortProfile, getProfile, inferProviderFromId, latencyTierOf, profilesByProvider, registerProfiles, resolveModelAlias, tryGetProfile } from './profiles.js';
|
|
5
5
|
export { BrainForwardConfig, BrainForwardRoutes, createBrainForwardRoutes } from './brain-proxy.js';
|
|
6
6
|
export { KEY_FINGERPRINT_DOMAIN, KEY_FINGERPRINT_LENGTH, KeyHealthConfig, KeyHealthProvider, KeyHealthResponseBody, KeyHealthResult, KeyHealthRoute, createKeyHealthRoute, keyFingerprint } from './key-health.js';
|
|
7
7
|
import { IntentArchetypeName, OutputMode } from './dialect.js';
|
|
@@ -622,6 +622,24 @@ declare function flushBrainDeadLetter(): Promise<{
|
|
|
622
622
|
delivered: number;
|
|
623
623
|
remaining: number;
|
|
624
624
|
}>;
|
|
625
|
+
/**
|
|
626
|
+
* alpha.87 — `KGAUTO_SOURCE` env default for the synthetic self-mark
|
|
627
|
+
* (migration 056). An explicit `source` on the input always wins; when
|
|
628
|
+
* absent, the env var marks every outcome row this PROCESS writes — the
|
|
629
|
+
* zero-code path for replay harnesses and smoke environments that share
|
|
630
|
+
* `call()`/`record()` with real traffic (PB s89's ask: their harness sets
|
|
631
|
+
* `KGAUTO_SOURCE=smoke` in the harness env and touches no call sites).
|
|
632
|
+
*
|
|
633
|
+
* An unrecognized value maps to `'synthetic'` with a one-time warning
|
|
634
|
+
* rather than passing through: migration 056's CHECK constraint would
|
|
635
|
+
* reject the row server-side and the fire-and-forget write would swallow
|
|
636
|
+
* the rejection — silent data loss — while dropping the value entirely
|
|
637
|
+
* would mark declared-synthetic traffic as organic and poison liveness
|
|
638
|
+
* stats. `'synthetic'` keeps both the row and the discriminator honest.
|
|
639
|
+
*/
|
|
640
|
+
declare function resolveOutcomeSource(explicit?: string): OutcomeSource | undefined;
|
|
641
|
+
/** @internal — test hook: re-arm the one-time invalid-KGAUTO_SOURCE warning. */
|
|
642
|
+
declare function _testResetOutcomeSourceWarning(): void;
|
|
625
643
|
declare function record(input: RecordInput): Promise<void>;
|
|
626
644
|
/**
|
|
627
645
|
* Wire shape POSTed by `record()` to the brain proxy's `/outcomes` endpoint.
|
|
@@ -1232,7 +1250,7 @@ declare function runStrategyEvalWithAttribution(opts: Omit<GoldenEvalOptions, 'a
|
|
|
1232
1250
|
* guard in `tests/version.test.ts` fails the suite (and therefore
|
|
1233
1251
|
* `prepublishOnly`) when they diverge — a stale constant cannot reach npm.
|
|
1234
1252
|
*/
|
|
1235
|
-
declare const LIBRARY_VERSION = "2.0.0-alpha.
|
|
1253
|
+
declare const LIBRARY_VERSION = "2.0.0-alpha.88";
|
|
1236
1254
|
|
|
1237
1255
|
/**
|
|
1238
1256
|
* Oracle contract — how an app tells the brain whether a response was good.
|
|
@@ -4052,4 +4070,4 @@ declare function planDecomposition(args: PlanDecompositionArgs): DecompositionPl
|
|
|
4052
4070
|
*/
|
|
4053
4071
|
declare function compile(ir: PromptIR, opts?: CompileOptions): CompileResult;
|
|
4054
4072
|
|
|
4055
|
-
export { ABSOLUTE_FLOOR, type AISDKConvertedMessage, ALT_BLIND_TOKEN_BUDGET_BREACH, ALT_STRATEGY_IDS, ARCHETYPE_FAMILY_FITS, ARCHETYPE_FLOOR_DEFAULT, type ActionableAdvisory, Adapter, type AdvisoryEvidenceWindow, type AdvisoryResolutionSource, type AdvisorySeverity, type AdvisoryStatus, type AdvisorySuggestedFix, ApiKeys, type AppOracle, type ApplySectionRewritesArgs, type ApplySectionRewritesResult, ArchetypeConvention, type ArchetypeFamilyFit, type ArchetypePerfMap, type ArchetypePerfNMap, type ArchetypePerfScoreResult, type AttachCacheControlResult, BLOCKED_MODEL_FAMILY_SIBLING_SERVED_CODE, BLOCKED_MODEL_NOT_IN_ROSTER_CODE, BRAIN_READ_ENV_NAMES, BURST_SPAN_MS, BestPracticeAdvisory, type BrainConfig, type BrainDeadLetterEntry, type BrainHealthSnapshot, type BrainQueryConfig, type BrainReadEnv, COACH_CFG, COST_RANKING_REFERENCE_SHAPE, CallOptions, CallResult, ChainEntry, type CompatibilityIntent, type CompileForAISDKv6Result, type CompileOptions, CompilePolicy, CompileResult, CompiledRequest, type CreateDelegateOpts, DECOMPOSITION_TEMPLATES, DECOMPOSITION_TEMPLATES_VERSION, DEFAULT_FINDINGS_ENDPOINT, DEFAULT_MEASURED_FAILURE_ENDPOINT, DEFAULT_PROMOTIONS_ENDPOINT, DELEGATE_TOOL_DEFINITION, DISCIPLINE_GATES_V1_ALT_BLIND_HEADER, DISCIPLINE_GATES_V1_ALT_HEADER, type DecompositionPlan, type DecompositionStep, type DecompositionTemplate, type DelegateHandle, type DelegateRefusalReason, type DelegateResult, type DelegateToolArgs, type ExclusionFindingRow, type ExclusionResolutionSource, type ExecuteErr, type ExecuteOk, type ExecuteOptions, type ExecuteResult, type ExecutorCandidate, type FallbackPosture, FallbackReason, FamilyResolutionError, type GetActionableAdvisoriesOptions, type GetApplicablePromotionOpts, type GetDefaultFallbackChainOpts, type GetMeasuredFailureOpts, type GetPerAxisMetricsOpts, type GetRecommendedPrimaryOptions, type GoldenEvalAxis, type GoldenEvalCase, type GoldenEvalOptions, type GoldenEvalRunResult, type GoldenEvalStrategyId, type GoldenIrRecordInput, Grounding, IntentArchetypeName, JUDGE_RUBRICS, LIBRARY_VERSION, type LLMJudgeOptions, MEASURED_FAILURE_CFG, MEASURED_GROUNDING_MIN_N, type MarkAdvisoryResolvedOptions, type MarkExclusionFindingHandledOptions, type MarkPromoteReadyHandledOptions, type MeasuredFailureRuntime, type MeasuredFailureVerdict, type ModelBrainRow, type ModelCompatibility, ModelProfile, NormalizedResponse, type OracleContext, OracleScore, type OutcomePayload, OutcomeResult, OutputMode, PRODUCER_OWNED_RULE_CODES, PROVIDER_ENV_KEYS, PerAxisMetrics, type PlannedStep, type PricingRow, type ProbeShadowOptions, type ProbeShadowServed, type ProfileToRowOptions, type PromoteReadyFindingRow, type PromoteReadyResolution, type PromotionRow, type PromotionsRuntime, PromptIR, Provider, ProviderOverrides, type ProviderReachability, ROLLBACK_SUPPRESSION_WINDOW_DAYS, RULE_DISCIPLINE_GATES_V1, RULE_DISCIPLINE_GATES_V1_STRUCTURED, RULE_SEQUENTIAL_TOOL_CLIFF, type ReachabilityOpts, RecordInput, RecordOutcomeInput, type RunAdvisorPhase2Context, STRATEGY_AUTHORSHIP_INDEPENDENT, STRATEGY_AUTHORSHIP_LIMITATION, SectionRewrite, type ShadowProbeRecordInput, type StrategyAttribution, type StrategyAttributionResult, type StrategyOutcome, type SupportedProvider, type SurfaceFailureRow, type SurfaceStats, SystemModelMessage, TRANSLATOR_FLOOR, _testResetMeasuredFailure, _testResetPromotions, _testWaitForMeasuredFailureRefresh, _testWaitForPromotionsRefresh, altBlindGatesBlockFor, altGatesBlockFor, applyArchetypeConvention, applySectionRewrites, attachCacheControlToStreamTextInput, awaitMeasuredFailureReady, awaitPromotionsReady, brainHealth, buildGoldenIrRow, buildLLMJudge, buildPairwiseJudgePrompt, buildShadowProbeRow, burstCaveat, call, chainProviderSpread, classifyEvidenceWindow, classifyStrategyOutcome, clearBrain, combineOrderSwappedVerdicts, compile, compileForAISDKv6, configureBrain, configureMeasuredFailureBrain, configurePromotionsBrain, countTokens, createDelegate, deriveFamilyFromModelId, deriveOwnership, estimateChainCostUsd, estimateModelCostUsd, execute, findBetterFit, flushBrainDeadLetter, formatEvidenceSpan, getActionableAdvisories, getAllStarterChains, getAllStarterChainsWithGrounding, getApplicablePromotion, getArchetypePerfScore, getDefaultFallbackChain, getDefaultFallbackChainWithGrounding, getMeasuredFailureVerdict, getModelCompatibility, getPerAxisMetrics, getReachabilityDiagnostic, getRecentRollback, getRecommendedPrimary, getSequentialStarterChain, getSequentialStarterChainWithGrounding, getStaleExclusionFindings, getStarterChain, getStarterChainWithGrounding, isAltStrategy, isAutoPromoteEnabledFromEnv, isBrainQueryActiveFor, isBrainSync, isDelegateEnabledFromEnv, isExclusionFindingsBrainActive, isMeasuredFailureBrainActive, isMeasuredFailureGateEnabledFromEnv, isModelReachable, isPromotionsBrainActive, isProviderReachable, judgeMeasuredFailure, loadAliasesFromBrain, loadArchetypePerfFromBrain, loadArchetypePerfNFromBrain, loadChainsFromBrain, loadModelsFromBrain, loadPricingFromBrain, mapMeasuredFailureRows, markAdvisoryResolved, markExclusionFindingHandled, markPromoteReadyHandled, parseJudgeVerdict, peekBrainDeadLetter, planDecomposition, prefetchMeasuredFailure, prefetchPromotions, probeShadow, profileToRow, readBrainReadEnv, record, recordGoldenIr, recordOutcome, recordShadowProbe, renderIrForJudge, resetTokenizer, resolveConventionsForProfile, resolvePricingAt, resolveProviderKey, rowToAdvisory, rubricFor, runAdvisor, runGoldenEval, runStrategyEvalWithAttribution, setTokenizer, wilsonLowerBound, withAltBlindDisciplineContract, withAltDisciplineContract, withDisciplineContract };
|
|
4073
|
+
export { ABSOLUTE_FLOOR, type AISDKConvertedMessage, ALT_BLIND_TOKEN_BUDGET_BREACH, ALT_STRATEGY_IDS, ARCHETYPE_FAMILY_FITS, ARCHETYPE_FLOOR_DEFAULT, type ActionableAdvisory, Adapter, type AdvisoryEvidenceWindow, type AdvisoryResolutionSource, type AdvisorySeverity, type AdvisoryStatus, type AdvisorySuggestedFix, ApiKeys, type AppOracle, type ApplySectionRewritesArgs, type ApplySectionRewritesResult, ArchetypeConvention, type ArchetypeFamilyFit, type ArchetypePerfMap, type ArchetypePerfNMap, type ArchetypePerfScoreResult, type AttachCacheControlResult, BLOCKED_MODEL_FAMILY_SIBLING_SERVED_CODE, BLOCKED_MODEL_NOT_IN_ROSTER_CODE, BRAIN_READ_ENV_NAMES, BURST_SPAN_MS, BestPracticeAdvisory, type BrainConfig, type BrainDeadLetterEntry, type BrainHealthSnapshot, type BrainQueryConfig, type BrainReadEnv, COACH_CFG, COST_RANKING_REFERENCE_SHAPE, CallOptions, CallResult, ChainEntry, type CompatibilityIntent, type CompileForAISDKv6Result, type CompileOptions, CompilePolicy, CompileResult, CompiledRequest, type CreateDelegateOpts, DECOMPOSITION_TEMPLATES, DECOMPOSITION_TEMPLATES_VERSION, DEFAULT_FINDINGS_ENDPOINT, DEFAULT_MEASURED_FAILURE_ENDPOINT, DEFAULT_PROMOTIONS_ENDPOINT, DELEGATE_TOOL_DEFINITION, DISCIPLINE_GATES_V1_ALT_BLIND_HEADER, DISCIPLINE_GATES_V1_ALT_HEADER, type DecompositionPlan, type DecompositionStep, type DecompositionTemplate, type DelegateHandle, type DelegateRefusalReason, type DelegateResult, type DelegateToolArgs, type ExclusionFindingRow, type ExclusionResolutionSource, type ExecuteErr, type ExecuteOk, type ExecuteOptions, type ExecuteResult, type ExecutorCandidate, type FallbackPosture, FallbackReason, FamilyResolutionError, type GetActionableAdvisoriesOptions, type GetApplicablePromotionOpts, type GetDefaultFallbackChainOpts, type GetMeasuredFailureOpts, type GetPerAxisMetricsOpts, type GetRecommendedPrimaryOptions, type GoldenEvalAxis, type GoldenEvalCase, type GoldenEvalOptions, type GoldenEvalRunResult, type GoldenEvalStrategyId, type GoldenIrRecordInput, Grounding, IntentArchetypeName, JUDGE_RUBRICS, LIBRARY_VERSION, type LLMJudgeOptions, MEASURED_FAILURE_CFG, MEASURED_GROUNDING_MIN_N, type MarkAdvisoryResolvedOptions, type MarkExclusionFindingHandledOptions, type MarkPromoteReadyHandledOptions, type MeasuredFailureRuntime, type MeasuredFailureVerdict, type ModelBrainRow, type ModelCompatibility, ModelProfile, NormalizedResponse, type OracleContext, OracleScore, type OutcomePayload, OutcomeResult, OutputMode, PRODUCER_OWNED_RULE_CODES, PROVIDER_ENV_KEYS, PerAxisMetrics, type PlannedStep, type PricingRow, type ProbeShadowOptions, type ProbeShadowServed, type ProfileToRowOptions, type PromoteReadyFindingRow, type PromoteReadyResolution, type PromotionRow, type PromotionsRuntime, PromptIR, Provider, ProviderOverrides, type ProviderReachability, ROLLBACK_SUPPRESSION_WINDOW_DAYS, RULE_DISCIPLINE_GATES_V1, RULE_DISCIPLINE_GATES_V1_STRUCTURED, RULE_SEQUENTIAL_TOOL_CLIFF, type ReachabilityOpts, RecordInput, RecordOutcomeInput, type RunAdvisorPhase2Context, STRATEGY_AUTHORSHIP_INDEPENDENT, STRATEGY_AUTHORSHIP_LIMITATION, SectionRewrite, type ShadowProbeRecordInput, type StrategyAttribution, type StrategyAttributionResult, type StrategyOutcome, type SupportedProvider, type SurfaceFailureRow, type SurfaceStats, SystemModelMessage, TRANSLATOR_FLOOR, _testResetMeasuredFailure, _testResetOutcomeSourceWarning, _testResetPromotions, _testWaitForMeasuredFailureRefresh, _testWaitForPromotionsRefresh, altBlindGatesBlockFor, altGatesBlockFor, applyArchetypeConvention, applySectionRewrites, attachCacheControlToStreamTextInput, awaitMeasuredFailureReady, awaitPromotionsReady, brainHealth, buildGoldenIrRow, buildLLMJudge, buildPairwiseJudgePrompt, buildShadowProbeRow, burstCaveat, call, chainProviderSpread, classifyEvidenceWindow, classifyStrategyOutcome, clearBrain, combineOrderSwappedVerdicts, compile, compileForAISDKv6, configureBrain, configureMeasuredFailureBrain, configurePromotionsBrain, countTokens, createDelegate, deriveFamilyFromModelId, deriveOwnership, estimateChainCostUsd, estimateModelCostUsd, execute, findBetterFit, flushBrainDeadLetter, formatEvidenceSpan, getActionableAdvisories, getAllStarterChains, getAllStarterChainsWithGrounding, getApplicablePromotion, getArchetypePerfScore, getDefaultFallbackChain, getDefaultFallbackChainWithGrounding, getMeasuredFailureVerdict, getModelCompatibility, getPerAxisMetrics, getReachabilityDiagnostic, getRecentRollback, getRecommendedPrimary, getSequentialStarterChain, getSequentialStarterChainWithGrounding, getStaleExclusionFindings, getStarterChain, getStarterChainWithGrounding, isAltStrategy, isAutoPromoteEnabledFromEnv, isBrainQueryActiveFor, isBrainSync, isDelegateEnabledFromEnv, isExclusionFindingsBrainActive, isMeasuredFailureBrainActive, isMeasuredFailureGateEnabledFromEnv, isModelReachable, isPromotionsBrainActive, isProviderReachable, judgeMeasuredFailure, loadAliasesFromBrain, loadArchetypePerfFromBrain, loadArchetypePerfNFromBrain, loadChainsFromBrain, loadModelsFromBrain, loadPricingFromBrain, mapMeasuredFailureRows, markAdvisoryResolved, markExclusionFindingHandled, markPromoteReadyHandled, parseJudgeVerdict, peekBrainDeadLetter, planDecomposition, prefetchMeasuredFailure, prefetchPromotions, probeShadow, profileToRow, readBrainReadEnv, record, recordGoldenIr, recordOutcome, recordShadowProbe, renderIrForJudge, resetTokenizer, resolveConventionsForProfile, resolveOutcomeSource, resolvePricingAt, resolveProviderKey, rowToAdvisory, rubricFor, runAdvisor, runGoldenEval, runStrategyEvalWithAttribution, setTokenizer, wilsonLowerBound, withAltBlindDisciplineContract, withAltDisciplineContract, withDisciplineContract };
|