@warmdrift/kgauto-compiler 2.0.0-alpha.20 → 2.0.0-alpha.22
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/glassbox/index.d.mts +3 -3
- package/dist/glassbox/index.d.ts +3 -3
- package/dist/glassbox-routes/index.d.mts +2 -2
- package/dist/glassbox-routes/index.d.ts +2 -2
- package/dist/index.d.mts +153 -8
- package/dist/index.d.ts +153 -8
- package/dist/index.js +455 -181
- package/dist/index.mjs +447 -181
- package/dist/{ir-DTMbSnyE.d.mts → ir-CruZBtpK.d.mts} +56 -1
- package/dist/{ir-CsTU4cMB.d.ts → ir-Wr5lc8Mi.d.ts} +56 -1
- package/dist/profiles.d.mts +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/{types-CwtaDaWN.d.ts → types-BiZKJU41.d.ts} +1 -1
- package/dist/{types-BYj1Kl2m.d.mts → types-zk238uNL.d.mts} +1 -1
- package/package.json +1 -1
|
@@ -741,5 +741,60 @@ interface OutcomeResult {
|
|
|
741
741
|
/** Stable reason code when ok=false. One of: 'brain_not_configured' | 'persistence_failed'. */
|
|
742
742
|
reason?: string;
|
|
743
743
|
}
|
|
744
|
+
/**
|
|
745
|
+
* alpha.21 (s78 Entry 1): provenance label on a chain entry. Surfaces WHY
|
|
746
|
+
* an entry sits where it sits so consumers can distinguish:
|
|
747
|
+
*
|
|
748
|
+
* - 'measured' brain has N>=10 rows with a measurable quality
|
|
749
|
+
* outcome backing this placement. The number lives on
|
|
750
|
+
* `ChainEntry.n`.
|
|
751
|
+
* - 'capability-fact' inclusion or exclusion driven by a published or
|
|
752
|
+
* measured CAPABILITY (L-040 cliff, ctx window cap,
|
|
753
|
+
* structured-output support). Not an opinion — a
|
|
754
|
+
* fact about what the model can/can't do.
|
|
755
|
+
* - 'judgment' engineer's pick, no measured backing yet. Cold-start
|
|
756
|
+
* prior; entirely valid until evidence accumulates.
|
|
757
|
+
*
|
|
758
|
+
* "Judgment" is HONEST, not a downgrade. Most of `STARTER_CHAINS` lands here
|
|
759
|
+
* in alpha.21 — that's the point: consumers can SEE the grounding gap and
|
|
760
|
+
* prioritize the measurement work that would graduate them to 'measured'.
|
|
761
|
+
*/
|
|
762
|
+
type Grounding = 'measured' | 'capability-fact' | 'judgment';
|
|
763
|
+
/**
|
|
764
|
+
* alpha.21 (s78 Entry 1): a single position in a fallback chain, carrying its
|
|
765
|
+
* provenance label and an optional human-readable reason. The shape replaces
|
|
766
|
+
* the old `string[]` representation everywhere chains are surfaced externally.
|
|
767
|
+
*
|
|
768
|
+
* `n` is REQUIRED when `grounding === 'measured'` — the runtime helper
|
|
769
|
+
* `makeMeasuredEntry()` enforces this. For 'capability-fact' and 'judgment'
|
|
770
|
+
* entries, `n` is undefined.
|
|
771
|
+
*/
|
|
772
|
+
interface ChainEntry {
|
|
773
|
+
/** Canonical model id (post-alias). */
|
|
774
|
+
id: string;
|
|
775
|
+
/** Why this entry sits in this position. */
|
|
776
|
+
grounding: Grounding;
|
|
777
|
+
/**
|
|
778
|
+
* Optional one-liner explaining the grounding decision. The inline comments
|
|
779
|
+
* that historically lived next to STARTER_CHAINS entries are now expressed
|
|
780
|
+
* here as machine-readable text.
|
|
781
|
+
*/
|
|
782
|
+
reason?: string;
|
|
783
|
+
/**
|
|
784
|
+
* When `grounding === 'measured'`, the brain row count that backs this
|
|
785
|
+
* placement. Undefined for 'capability-fact' and 'judgment' entries.
|
|
786
|
+
*/
|
|
787
|
+
n?: number;
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* alpha.21 introspection shape — a per-archetype chain with grounding on
|
|
791
|
+
* every position. Consumers reading this never see naked string ids;
|
|
792
|
+
* everything carries provenance.
|
|
793
|
+
*/
|
|
794
|
+
interface ChainWithGrounding {
|
|
795
|
+
archetype: IntentArchetypeName;
|
|
796
|
+
/** Ordered: position 0 = primary, rising index = fallback positions. */
|
|
797
|
+
entries: ChainEntry[];
|
|
798
|
+
}
|
|
744
799
|
|
|
745
|
-
export { type ApiKeys as A, type BestPracticeAdvisory as B, type CompilePolicy as C, type FallbackReason as F, type HistoryCachePolicy as H, type IntentDeclaration as I, type Message as M, type NormalizedResponse as N, type OutcomeResult as O, type ProviderOverrides as P, type RecordInput as R, type ToolCall as T, type CompiledRequest as a, type PromptIR as b, type CallOptions as c, type CallResult as d, type RecordOutcomeInput as e, type OracleScore as f, type CompileResult as g, type Provider as h, type
|
|
800
|
+
export { type ApiKeys as A, type BestPracticeAdvisory as B, type CompilePolicy as C, type FallbackReason as F, type Grounding as G, type HistoryCachePolicy as H, type IntentDeclaration as I, type Message as M, type NormalizedResponse as N, type OutcomeResult as O, type ProviderOverrides as P, type RecordInput as R, type ToolCall as T, type CompiledRequest as a, type PromptIR as b, type CallOptions as c, type CallResult as d, type RecordOutcomeInput as e, type OracleScore as f, type CompileResult as g, type Provider as h, type ChainEntry as i, type CallAttempt as j, CallError as k, type ChainWithGrounding as l, type Constraints as m, type MutationApplied as n, type NormalizedTokens as o, type OutcomeKind as p, type PromptSection as q, type ToolDefinition as r };
|
|
@@ -741,5 +741,60 @@ interface OutcomeResult {
|
|
|
741
741
|
/** Stable reason code when ok=false. One of: 'brain_not_configured' | 'persistence_failed'. */
|
|
742
742
|
reason?: string;
|
|
743
743
|
}
|
|
744
|
+
/**
|
|
745
|
+
* alpha.21 (s78 Entry 1): provenance label on a chain entry. Surfaces WHY
|
|
746
|
+
* an entry sits where it sits so consumers can distinguish:
|
|
747
|
+
*
|
|
748
|
+
* - 'measured' brain has N>=10 rows with a measurable quality
|
|
749
|
+
* outcome backing this placement. The number lives on
|
|
750
|
+
* `ChainEntry.n`.
|
|
751
|
+
* - 'capability-fact' inclusion or exclusion driven by a published or
|
|
752
|
+
* measured CAPABILITY (L-040 cliff, ctx window cap,
|
|
753
|
+
* structured-output support). Not an opinion — a
|
|
754
|
+
* fact about what the model can/can't do.
|
|
755
|
+
* - 'judgment' engineer's pick, no measured backing yet. Cold-start
|
|
756
|
+
* prior; entirely valid until evidence accumulates.
|
|
757
|
+
*
|
|
758
|
+
* "Judgment" is HONEST, not a downgrade. Most of `STARTER_CHAINS` lands here
|
|
759
|
+
* in alpha.21 — that's the point: consumers can SEE the grounding gap and
|
|
760
|
+
* prioritize the measurement work that would graduate them to 'measured'.
|
|
761
|
+
*/
|
|
762
|
+
type Grounding = 'measured' | 'capability-fact' | 'judgment';
|
|
763
|
+
/**
|
|
764
|
+
* alpha.21 (s78 Entry 1): a single position in a fallback chain, carrying its
|
|
765
|
+
* provenance label and an optional human-readable reason. The shape replaces
|
|
766
|
+
* the old `string[]` representation everywhere chains are surfaced externally.
|
|
767
|
+
*
|
|
768
|
+
* `n` is REQUIRED when `grounding === 'measured'` — the runtime helper
|
|
769
|
+
* `makeMeasuredEntry()` enforces this. For 'capability-fact' and 'judgment'
|
|
770
|
+
* entries, `n` is undefined.
|
|
771
|
+
*/
|
|
772
|
+
interface ChainEntry {
|
|
773
|
+
/** Canonical model id (post-alias). */
|
|
774
|
+
id: string;
|
|
775
|
+
/** Why this entry sits in this position. */
|
|
776
|
+
grounding: Grounding;
|
|
777
|
+
/**
|
|
778
|
+
* Optional one-liner explaining the grounding decision. The inline comments
|
|
779
|
+
* that historically lived next to STARTER_CHAINS entries are now expressed
|
|
780
|
+
* here as machine-readable text.
|
|
781
|
+
*/
|
|
782
|
+
reason?: string;
|
|
783
|
+
/**
|
|
784
|
+
* When `grounding === 'measured'`, the brain row count that backs this
|
|
785
|
+
* placement. Undefined for 'capability-fact' and 'judgment' entries.
|
|
786
|
+
*/
|
|
787
|
+
n?: number;
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* alpha.21 introspection shape — a per-archetype chain with grounding on
|
|
791
|
+
* every position. Consumers reading this never see naked string ids;
|
|
792
|
+
* everything carries provenance.
|
|
793
|
+
*/
|
|
794
|
+
interface ChainWithGrounding {
|
|
795
|
+
archetype: IntentArchetypeName;
|
|
796
|
+
/** Ordered: position 0 = primary, rising index = fallback positions. */
|
|
797
|
+
entries: ChainEntry[];
|
|
798
|
+
}
|
|
744
799
|
|
|
745
|
-
export { type ApiKeys as A, type BestPracticeAdvisory as B, type CompilePolicy as C, type FallbackReason as F, type HistoryCachePolicy as H, type IntentDeclaration as I, type Message as M, type NormalizedResponse as N, type OutcomeResult as O, type ProviderOverrides as P, type RecordInput as R, type ToolCall as T, type CompiledRequest as a, type PromptIR as b, type CallOptions as c, type CallResult as d, type RecordOutcomeInput as e, type OracleScore as f, type CompileResult as g, type Provider as h, type
|
|
800
|
+
export { type ApiKeys as A, type BestPracticeAdvisory as B, type CompilePolicy as C, type FallbackReason as F, type Grounding as G, type HistoryCachePolicy as H, type IntentDeclaration as I, type Message as M, type NormalizedResponse as N, type OutcomeResult as O, type ProviderOverrides as P, type RecordInput as R, type ToolCall as T, type CompiledRequest as a, type PromptIR as b, type CallOptions as c, type CallResult as d, type RecordOutcomeInput as e, type OracleScore as f, type CompileResult as g, type Provider as h, type ChainEntry as i, type CallAttempt as j, CallError as k, type ChainWithGrounding as l, type Constraints as m, type MutationApplied as n, type NormalizedTokens as o, type OutcomeKind as p, type PromptSection as q, type ToolDefinition as r };
|
package/dist/profiles.d.mts
CHANGED
package/dist/profiles.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as MutationApplied, B as BestPracticeAdvisory, F as FallbackReason, j as CallAttempt } from './ir-Wr5lc8Mi.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Glass-Box observability types (alpha.17).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as MutationApplied, B as BestPracticeAdvisory, F as FallbackReason, j as CallAttempt } from './ir-CruZBtpK.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.22",
|
|
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",
|