@warmdrift/kgauto-compiler 2.0.0-alpha.92 → 2.0.0-alpha.93

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.
Files changed (36) hide show
  1. package/dist/chunk-BTP5WK3B.mjs +3448 -0
  2. package/dist/{chunk-4G73BYES.mjs → chunk-S4PA2BDB.mjs} +1 -1
  3. package/dist/{chunk-QOQV66PU.mjs → chunk-WFLDRRY7.mjs} +1 -1
  4. package/dist/{chunk-T53ISC2F.mjs → chunk-YO2ZLPSD.mjs} +10 -0
  5. package/dist/compile-BlMXv6QT.d.ts +53 -0
  6. package/dist/compile-C2IfAGV1.d.mts +53 -0
  7. package/dist/glassbox/index.d.mts +3 -3
  8. package/dist/glassbox/index.d.ts +3 -3
  9. package/dist/glassbox-routes/format.d.mts +2 -2
  10. package/dist/glassbox-routes/format.d.ts +2 -2
  11. package/dist/glassbox-routes/index.d.mts +4 -4
  12. package/dist/glassbox-routes/index.d.ts +4 -4
  13. package/dist/glassbox-routes/index.mjs +2 -2
  14. package/dist/glassbox-routes/react/index.d.mts +2 -2
  15. package/dist/glassbox-routes/react/index.d.ts +2 -2
  16. package/dist/index.d.mts +8 -55
  17. package/dist/index.d.ts +8 -55
  18. package/dist/index.js +7 -1
  19. package/dist/index.mjs +158 -3457
  20. package/dist/{ir-BWnE6LaB.d.ts → ir-DbvOFKF-.d.ts} +1 -1
  21. package/dist/{ir-BPYh68mv.d.mts → ir-DyMJ84je.d.mts} +1 -1
  22. package/dist/key-health.js +1 -1
  23. package/dist/key-health.mjs +1 -1
  24. package/dist/probe.d.mts +46 -0
  25. package/dist/probe.d.ts +46 -0
  26. package/dist/probe.js +5767 -0
  27. package/dist/probe.mjs +45 -0
  28. package/dist/profiles.d.mts +30 -2
  29. package/dist/profiles.d.ts +30 -2
  30. package/dist/profiles.js +11 -0
  31. package/dist/profiles.mjs +3 -1
  32. package/dist/{types-BCHv34P7.d.ts → types-5TqjBeZD.d.ts} +1 -1
  33. package/dist/{types-BhxC4hdx.d.ts → types-BlrbNQfj.d.ts} +1 -1
  34. package/dist/{types-eLelJBj-.d.mts → types-D441T-KC.d.mts} +1 -1
  35. package/dist/{types-BgvLmT3s.d.mts → types-_myk4bxn.d.mts} +1 -1
  36. package/package.json +7 -2
@@ -1978,4 +1978,4 @@ interface PerAxisMetrics {
1978
1978
  /** Per-axis metrics keyed by model — used for chain-comparison views. */
1979
1979
  type PerAxisMetricsByModel = Record<string, PerAxisMetrics>;
1980
1980
 
1981
- export { type ApiKeys as A, type BestPracticeAdvisory as B, type CompilePolicy as C, type ToolDefinition as D, type EffortLevel as E, type FallbackReason as F, type Grounding as G, type HistoryCachePolicy as H, type IntentDeclaration as I, captureGoldenIr as J, hasMutation as K, mutationId as L, type Message as M, type NormalizedResponse as N, type OutcomeResult as O, type ProviderOverrides as P, parseGoldenCaptureRate as Q, type RecordInput as R, type SystemModelMessage as S, type ToolCall as T, resolveGoldenCaptureRate as U, shouldCaptureGolden as V, type CompiledRequest as a, type PromptIR as b, type CallOptions as c, type CallResult as d, type CompileResult as e, type SectionRewrite as f, type RecordOutcomeInput as g, type OutcomeSource as h, type OracleScore as i, type Adapter as j, type PerAxisMetrics as k, type Provider as l, type ChainEntry as m, type CallAttempt as n, CallError as o, type ChainModelEntry as p, type ChainWithGrounding as q, type Constraints as r, type GoldenCaptureOptions as s, type MutationApplied as t, type NormalizedTokens as u, type OutcomeKind as v, type PerAxisMetricsByModel as w, type PromptSection as x, type SectionKind as y, type ShadowProbeConfig as z };
1981
+ export { type ApiKeys as A, type BestPracticeAdvisory as B, type CompiledRequest as C, type ToolDefinition as D, type EffortLevel as E, type FallbackReason as F, type Grounding as G, type HistoryCachePolicy as H, type IntentDeclaration as I, captureGoldenIr as J, hasMutation as K, mutationId as L, type Message as M, type NormalizedResponse as N, type OutcomeResult as O, type ProviderOverrides as P, parseGoldenCaptureRate as Q, type RecordInput as R, type SystemModelMessage as S, type ToolCall as T, resolveGoldenCaptureRate as U, shouldCaptureGolden as V, type CompilePolicy as a, type PromptIR as b, type CallOptions as c, type CallResult as d, type CompileResult as e, type SectionRewrite as f, type RecordOutcomeInput as g, type OutcomeSource as h, type OracleScore as i, type Adapter as j, type PerAxisMetrics as k, type Provider as l, type ChainEntry as m, type CallAttempt as n, CallError as o, type ChainModelEntry as p, type ChainWithGrounding as q, type Constraints as r, type GoldenCaptureOptions as s, type MutationApplied as t, type NormalizedTokens as u, type OutcomeKind as v, type PerAxisMetricsByModel as w, type PromptSection as x, type SectionKind as y, type ShadowProbeConfig as z };
@@ -1978,4 +1978,4 @@ interface PerAxisMetrics {
1978
1978
  /** Per-axis metrics keyed by model — used for chain-comparison views. */
1979
1979
  type PerAxisMetricsByModel = Record<string, PerAxisMetrics>;
1980
1980
 
1981
- export { type ApiKeys as A, type BestPracticeAdvisory as B, type CompilePolicy as C, type ToolDefinition as D, type EffortLevel as E, type FallbackReason as F, type Grounding as G, type HistoryCachePolicy as H, type IntentDeclaration as I, captureGoldenIr as J, hasMutation as K, mutationId as L, type Message as M, type NormalizedResponse as N, type OutcomeResult as O, type ProviderOverrides as P, parseGoldenCaptureRate as Q, type RecordInput as R, type SystemModelMessage as S, type ToolCall as T, resolveGoldenCaptureRate as U, shouldCaptureGolden as V, type CompiledRequest as a, type PromptIR as b, type CallOptions as c, type CallResult as d, type CompileResult as e, type SectionRewrite as f, type RecordOutcomeInput as g, type OutcomeSource as h, type OracleScore as i, type Adapter as j, type PerAxisMetrics as k, type Provider as l, type ChainEntry as m, type CallAttempt as n, CallError as o, type ChainModelEntry as p, type ChainWithGrounding as q, type Constraints as r, type GoldenCaptureOptions as s, type MutationApplied as t, type NormalizedTokens as u, type OutcomeKind as v, type PerAxisMetricsByModel as w, type PromptSection as x, type SectionKind as y, type ShadowProbeConfig as z };
1981
+ export { type ApiKeys as A, type BestPracticeAdvisory as B, type CompiledRequest as C, type ToolDefinition as D, type EffortLevel as E, type FallbackReason as F, type Grounding as G, type HistoryCachePolicy as H, type IntentDeclaration as I, captureGoldenIr as J, hasMutation as K, mutationId as L, type Message as M, type NormalizedResponse as N, type OutcomeResult as O, type ProviderOverrides as P, parseGoldenCaptureRate as Q, type RecordInput as R, type SystemModelMessage as S, type ToolCall as T, resolveGoldenCaptureRate as U, shouldCaptureGolden as V, type CompilePolicy as a, type PromptIR as b, type CallOptions as c, type CallResult as d, type CompileResult as e, type SectionRewrite as f, type RecordOutcomeInput as g, type OutcomeSource as h, type OracleScore as i, type Adapter as j, type PerAxisMetrics as k, type Provider as l, type ChainEntry as m, type CallAttempt as n, CallError as o, type ChainModelEntry as p, type ChainWithGrounding as q, type Constraints as r, type GoldenCaptureOptions as s, type MutationApplied as t, type NormalizedTokens as u, type OutcomeKind as v, type PerAxisMetricsByModel as w, type PromptSection as x, type SectionKind as y, type ShadowProbeConfig as z };
@@ -28,7 +28,7 @@ __export(key_health_exports, {
28
28
  module.exports = __toCommonJS(key_health_exports);
29
29
 
30
30
  // src/version.ts
31
- var LIBRARY_VERSION = "2.0.0-alpha.92";
31
+ var LIBRARY_VERSION = "2.0.0-alpha.93";
32
32
 
33
33
  // src/key-health.ts
34
34
  var JSON_HEADERS = { "Content-Type": "application/json" };
@@ -3,7 +3,7 @@ import {
3
3
  KEY_FINGERPRINT_LENGTH,
4
4
  createKeyHealthRoute,
5
5
  keyFingerprint
6
- } from "./chunk-QOQV66PU.mjs";
6
+ } from "./chunk-WFLDRRY7.mjs";
7
7
  export {
8
8
  KEY_FINGERPRINT_DOMAIN,
9
9
  KEY_FINGERPRINT_LENGTH,
@@ -0,0 +1,46 @@
1
+ import { C as CompileOptions } from './compile-C2IfAGV1.mjs';
2
+ import { CliffRule } from './profiles.mjs';
3
+ export { CliffEvidence, deriveCliffEvidenceClass } from './profiles.mjs';
4
+ import { b as PromptIR, e as CompileResult } from './ir-DyMJ84je.mjs';
5
+ import './dialect.mjs';
6
+
7
+ /**
8
+ * `@warmdrift/kgauto-compiler/probe` — guard-probe-suite compile surface.
9
+ *
10
+ * ## This subpath exists for the probe suite. Do not serve traffic with it.
11
+ *
12
+ * A guard must be suppressible to be testable: an active cliff suppresses
13
+ * exactly the evidence that would validate it (the summarize+tools guard
14
+ * strips the tools, so no organic traffic ever sends that shape again —
15
+ * which is why 15 of 17 behavioural guards sat unvalidated with an "n≥20
16
+ * brain evidence" release condition that was structurally never coming).
17
+ * `compileSuppressing` compiles with NAMED cliffs removed so a probe can
18
+ * deliberately send the bad shape.
19
+ *
20
+ * The subpath boundary IS the fence (Phase-0 decision: an env-var gate on a
21
+ * library export is theater). Importing this in a serving path forfeits the
22
+ * named guard for that call — nothing else protects the consumer. The main
23
+ * export carries no suppression affordance; the tests pin that.
24
+ */
25
+
26
+ interface CliffSelector {
27
+ /** Canonical model id whose profile carries the guard. */
28
+ model: string;
29
+ /** The cliff's metric — with `whenIntent`, identifies the guard. */
30
+ metric: CliffRule['metric'];
31
+ /** Narrow to an intent-scoped guard; absent matches any `whenIntent`. */
32
+ whenIntent?: string;
33
+ }
34
+ interface CompileSuppressingOptions extends CompileOptions {
35
+ /** The guards to suppress. Every other cliff keeps firing. */
36
+ suppress: CliffSelector[];
37
+ }
38
+ /**
39
+ * compile() with the named guards removed from the resolved profiles.
40
+ * Refuses (throws) when a selector matches no cliff on its model — a probe
41
+ * that silently "suppresses" a guard that never existed would convict the
42
+ * wrong hypothesis.
43
+ */
44
+ declare function compileSuppressing(ir: PromptIR, opts: CompileSuppressingOptions): CompileResult;
45
+
46
+ export { CliffRule, type CliffSelector, type CompileSuppressingOptions, compileSuppressing };
@@ -0,0 +1,46 @@
1
+ import { C as CompileOptions } from './compile-BlMXv6QT.js';
2
+ import { CliffRule } from './profiles.js';
3
+ export { CliffEvidence, deriveCliffEvidenceClass } from './profiles.js';
4
+ import { b as PromptIR, e as CompileResult } from './ir-DbvOFKF-.js';
5
+ import './dialect.js';
6
+
7
+ /**
8
+ * `@warmdrift/kgauto-compiler/probe` — guard-probe-suite compile surface.
9
+ *
10
+ * ## This subpath exists for the probe suite. Do not serve traffic with it.
11
+ *
12
+ * A guard must be suppressible to be testable: an active cliff suppresses
13
+ * exactly the evidence that would validate it (the summarize+tools guard
14
+ * strips the tools, so no organic traffic ever sends that shape again —
15
+ * which is why 15 of 17 behavioural guards sat unvalidated with an "n≥20
16
+ * brain evidence" release condition that was structurally never coming).
17
+ * `compileSuppressing` compiles with NAMED cliffs removed so a probe can
18
+ * deliberately send the bad shape.
19
+ *
20
+ * The subpath boundary IS the fence (Phase-0 decision: an env-var gate on a
21
+ * library export is theater). Importing this in a serving path forfeits the
22
+ * named guard for that call — nothing else protects the consumer. The main
23
+ * export carries no suppression affordance; the tests pin that.
24
+ */
25
+
26
+ interface CliffSelector {
27
+ /** Canonical model id whose profile carries the guard. */
28
+ model: string;
29
+ /** The cliff's metric — with `whenIntent`, identifies the guard. */
30
+ metric: CliffRule['metric'];
31
+ /** Narrow to an intent-scoped guard; absent matches any `whenIntent`. */
32
+ whenIntent?: string;
33
+ }
34
+ interface CompileSuppressingOptions extends CompileOptions {
35
+ /** The guards to suppress. Every other cliff keeps firing. */
36
+ suppress: CliffSelector[];
37
+ }
38
+ /**
39
+ * compile() with the named guards removed from the resolved profiles.
40
+ * Refuses (throws) when a selector matches no cliff on its model — a probe
41
+ * that silently "suppresses" a guard that never existed would convict the
42
+ * wrong hypothesis.
43
+ */
44
+ declare function compileSuppressing(ir: PromptIR, opts: CompileSuppressingOptions): CompileResult;
45
+
46
+ export { CliffRule, type CliffSelector, type CompileSuppressingOptions, compileSuppressing };