@warmdrift/kgauto-compiler 2.0.0-alpha.43 → 2.0.0-alpha.44

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.
@@ -1,6 +1,6 @@
1
- import { G as GlassboxEvent } from '../types-acFM2-iZ.mjs';
2
- export { A as AdvisoryFiredData, C as CompileDoneData, a as CompileStartData, E as ExecuteAttemptData, b as ExecuteSuccessData, F as FallbackWalkedData, c as GLASSBOX_STREAM_TTL_MS, d as GlassboxEventKind, e as GlassboxPubSub } from '../types-acFM2-iZ.mjs';
3
- import '../ir-CSgyol5D.mjs';
1
+ import { G as GlassboxEvent } from '../types-B5DzMhYm.mjs';
2
+ export { A as AdvisoryFiredData, C as CompileDoneData, a as CompileStartData, E as ExecuteAttemptData, b as ExecuteSuccessData, F as FallbackWalkedData, c as GLASSBOX_STREAM_TTL_MS, d as GlassboxEventKind, e as GlassboxPubSub } from '../types-B5DzMhYm.mjs';
3
+ import '../ir-DARjQnvZ.mjs';
4
4
  import '../dialect.mjs';
5
5
 
6
6
  /**
@@ -1,6 +1,6 @@
1
- import { G as GlassboxEvent } from '../types-_1tcDEqa.js';
2
- export { A as AdvisoryFiredData, C as CompileDoneData, a as CompileStartData, E as ExecuteAttemptData, b as ExecuteSuccessData, F as FallbackWalkedData, c as GLASSBOX_STREAM_TTL_MS, d as GlassboxEventKind, e as GlassboxPubSub } from '../types-_1tcDEqa.js';
3
- import '../ir-MN9bGclm.js';
1
+ import { G as GlassboxEvent } from '../types-BDqNQxuX.js';
2
+ export { A as AdvisoryFiredData, C as CompileDoneData, a as CompileStartData, E as ExecuteAttemptData, b as ExecuteSuccessData, F as FallbackWalkedData, c as GLASSBOX_STREAM_TTL_MS, d as GlassboxEventKind, e as GlassboxPubSub } from '../types-BDqNQxuX.js';
3
+ import '../ir-DAUBaPhd.js';
4
4
  import '../dialect.js';
5
5
 
6
6
  /**
@@ -1,5 +1,5 @@
1
- import { T as TraceHealth } from '../types-M48csxKK.mjs';
2
- import '../ir-CSgyol5D.mjs';
1
+ import { T as TraceHealth } from '../types-Rq_fywDq.mjs';
2
+ import '../ir-DARjQnvZ.mjs';
3
3
  import '../dialect.mjs';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { T as TraceHealth } from '../types-uRIiYY_y.js';
2
- import '../ir-MN9bGclm.js';
1
+ import { T as TraceHealth } from '../types-CfVyRbCl.js';
2
+ import '../ir-DAUBaPhd.js';
3
3
  import '../dialect.js';
4
4
 
5
5
  /**
@@ -1,7 +1,7 @@
1
- import { G as GlassboxEvent } from '../types-acFM2-iZ.mjs';
2
- import { a as TraceDetail, b as TraceSummary, c as TraceCounterfactual } from '../types-M48csxKK.mjs';
3
- export { A as AdvisoryRecord, T as TraceHealth, d as TraceSectionRewrite } from '../types-M48csxKK.mjs';
4
- import '../ir-CSgyol5D.mjs';
1
+ import { G as GlassboxEvent } from '../types-B5DzMhYm.mjs';
2
+ import { a as TraceDetail, b as TraceSummary, c as TraceCounterfactual } from '../types-Rq_fywDq.mjs';
3
+ export { A as AdvisoryRecord, T as TraceHealth, d as TraceSectionRewrite } from '../types-Rq_fywDq.mjs';
4
+ import '../ir-DARjQnvZ.mjs';
5
5
  import '../dialect.mjs';
6
6
 
7
7
  /**
@@ -1,7 +1,7 @@
1
- import { G as GlassboxEvent } from '../types-_1tcDEqa.js';
2
- import { a as TraceDetail, b as TraceSummary, c as TraceCounterfactual } from '../types-uRIiYY_y.js';
3
- export { A as AdvisoryRecord, T as TraceHealth, d as TraceSectionRewrite } from '../types-uRIiYY_y.js';
4
- import '../ir-MN9bGclm.js';
1
+ import { G as GlassboxEvent } from '../types-BDqNQxuX.js';
2
+ import { a as TraceDetail, b as TraceSummary, c as TraceCounterfactual } from '../types-CfVyRbCl.js';
3
+ export { A as AdvisoryRecord, T as TraceHealth, d as TraceSectionRewrite } from '../types-CfVyRbCl.js';
4
+ import '../ir-DAUBaPhd.js';
5
5
  import '../dialect.js';
6
6
 
7
7
  /**
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { a as TraceDetail } from '../../types-M48csxKK.mjs';
3
- import '../../ir-CSgyol5D.mjs';
2
+ import { a as TraceDetail } from '../../types-Rq_fywDq.mjs';
3
+ import '../../ir-DARjQnvZ.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-uRIiYY_y.js';
3
- import '../../ir-MN9bGclm.js';
2
+ import { a as TraceDetail } from '../../types-CfVyRbCl.js';
3
+ import '../../ir-DAUBaPhd.js';
4
4
  import '../../dialect.js';
5
5
 
6
6
  /**
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
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, f as SectionRewrite, R as RecordInput, g as RecordOutcomeInput, O as OutcomeResult, h as OracleScore, B as BestPracticeAdvisory, i as Adapter, j as PerAxisMetrics, k as Provider, l as ChainEntry, G as Grounding } from './ir-CSgyol5D.mjs';
2
- export { m as CallAttempt, n as CallError, o as ChainModelEntry, p as ChainWithGrounding, q as Constraints, F as FallbackReason, H as HistoryCachePolicy, I as IntentDeclaration, M as Message, r as MutationApplied, s as NormalizedTokens, t as OutcomeKind, u as PerAxisMetricsByModel, v as PromptSection, w as SectionKind, T as ToolCall, x as ToolDefinition } from './ir-CSgyol5D.mjs';
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, f as SectionRewrite, R as RecordInput, g as RecordOutcomeInput, O as OutcomeResult, h as OracleScore, B as BestPracticeAdvisory, i as Adapter, j as PerAxisMetrics, k as Provider, l as ChainEntry, G as Grounding } from './ir-DARjQnvZ.mjs';
2
+ export { m as CallAttempt, n as CallError, o as ChainModelEntry, p as ChainWithGrounding, q as Constraints, F as FallbackReason, H as HistoryCachePolicy, I as IntentDeclaration, M as Message, r as MutationApplied, s as NormalizedTokens, t as OutcomeKind, u as PerAxisMetricsByModel, v as PromptSection, w as SectionKind, T as ToolCall, x as ToolDefinition } from './ir-DARjQnvZ.mjs';
3
3
  import { ModelProfile, ArchetypeConvention } from './profiles.mjs';
4
4
  export { ALIASES, CacheStrategy, CliffRule, LoweringSpec, RecoveryRule, StructuredOutputCapability, SystemPromptMode, allProfiles, getProfile, profilesByProvider, tryGetProfile } from './profiles.mjs';
5
5
  import { IntentArchetypeName } from './dialect.mjs';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
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, f as SectionRewrite, R as RecordInput, g as RecordOutcomeInput, O as OutcomeResult, h as OracleScore, B as BestPracticeAdvisory, i as Adapter, j as PerAxisMetrics, k as Provider, l as ChainEntry, G as Grounding } from './ir-MN9bGclm.js';
2
- export { m as CallAttempt, n as CallError, o as ChainModelEntry, p as ChainWithGrounding, q as Constraints, F as FallbackReason, H as HistoryCachePolicy, I as IntentDeclaration, M as Message, r as MutationApplied, s as NormalizedTokens, t as OutcomeKind, u as PerAxisMetricsByModel, v as PromptSection, w as SectionKind, T as ToolCall, x as ToolDefinition } from './ir-MN9bGclm.js';
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, f as SectionRewrite, R as RecordInput, g as RecordOutcomeInput, O as OutcomeResult, h as OracleScore, B as BestPracticeAdvisory, i as Adapter, j as PerAxisMetrics, k as Provider, l as ChainEntry, G as Grounding } from './ir-DAUBaPhd.js';
2
+ export { m as CallAttempt, n as CallError, o as ChainModelEntry, p as ChainWithGrounding, q as Constraints, F as FallbackReason, H as HistoryCachePolicy, I as IntentDeclaration, M as Message, r as MutationApplied, s as NormalizedTokens, t as OutcomeKind, u as PerAxisMetricsByModel, v as PromptSection, w as SectionKind, T as ToolCall, x as ToolDefinition } from './ir-DAUBaPhd.js';
3
3
  import { ModelProfile, ArchetypeConvention } from './profiles.js';
4
4
  export { ALIASES, CacheStrategy, CliffRule, LoweringSpec, RecoveryRule, StructuredOutputCapability, SystemPromptMode, allProfiles, getProfile, profilesByProvider, tryGetProfile } from './profiles.js';
5
5
  import { IntentArchetypeName } from './dialect.js';
package/dist/index.js CHANGED
@@ -5965,7 +5965,12 @@ async function call(ir, opts = {}) {
5965
5965
  fallbackReason,
5966
5966
  unreachableFiltered,
5967
5967
  policyBlockedFiltered,
5968
- traceId
5968
+ traceId,
5969
+ // alpha.44: surface the served compile's advisories so call()
5970
+ // consumers (agent paths) can logAdvisories() like compile()
5971
+ // consumers (chat/intake) do. activeCompile, not initial — parity
5972
+ // with mutationsApplied above on fallback. Closes IC's side-finding.
5973
+ advisories: activeCompile.advisories
5969
5974
  };
5970
5975
  }
5971
5976
  attempts.push({
package/dist/index.mjs CHANGED
@@ -3603,7 +3603,12 @@ async function call(ir, opts = {}) {
3603
3603
  fallbackReason,
3604
3604
  unreachableFiltered,
3605
3605
  policyBlockedFiltered,
3606
- traceId
3606
+ traceId,
3607
+ // alpha.44: surface the served compile's advisories so call()
3608
+ // consumers (agent paths) can logAdvisories() like compile()
3609
+ // consumers (chat/intake) do. activeCompile, not initial — parity
3610
+ // with mutationsApplied above on fallback. Closes IC's side-finding.
3611
+ advisories: activeCompile.advisories
3607
3612
  };
3608
3613
  }
3609
3614
  attempts.push({
@@ -967,6 +967,19 @@ interface CallResult {
967
967
  * Always present on success. Additive, non-breaking.
968
968
  */
969
969
  traceId: string;
970
+ /**
971
+ * alpha.44. Best-practice advisories emitted by the compile that actually
972
+ * served the response (mirrors `CompileResult.advisories`; uses the SERVED
973
+ * compile on fallback, same as `mutationsApplied`). Empty array when no
974
+ * rules fired.
975
+ *
976
+ * Closes IC's `callForAgent` side-finding (2026-05-26): call() consumers
977
+ * (agent paths — sweep / dyad / session-title) previously had no way to
978
+ * `logAdvisories('[kgauto-v2 ...]', advisories)` like compile() consumers
979
+ * (chat / intake) do, because the advisories were consumed internally
980
+ * (trace events, brain record) but never returned. Additive, non-breaking.
981
+ */
982
+ advisories: BestPracticeAdvisory[];
970
983
  }
971
984
  /**
972
985
  * Thrown when call() exhausts the fallback chain without success.
@@ -967,6 +967,19 @@ interface CallResult {
967
967
  * Always present on success. Additive, non-breaking.
968
968
  */
969
969
  traceId: string;
970
+ /**
971
+ * alpha.44. Best-practice advisories emitted by the compile that actually
972
+ * served the response (mirrors `CompileResult.advisories`; uses the SERVED
973
+ * compile on fallback, same as `mutationsApplied`). Empty array when no
974
+ * rules fired.
975
+ *
976
+ * Closes IC's `callForAgent` side-finding (2026-05-26): call() consumers
977
+ * (agent paths — sweep / dyad / session-title) previously had no way to
978
+ * `logAdvisories('[kgauto-v2 ...]', advisories)` like compile() consumers
979
+ * (chat / intake) do, because the advisories were consumed internally
980
+ * (trace events, brain record) but never returned. Additive, non-breaking.
981
+ */
982
+ advisories: BestPracticeAdvisory[];
970
983
  }
971
984
  /**
972
985
  * Thrown when call() exhausts the fallback chain without success.
@@ -1,4 +1,4 @@
1
- import { k as Provider } from './ir-CSgyol5D.mjs';
1
+ import { k as Provider } from './ir-DARjQnvZ.mjs';
2
2
  import { IntentArchetypeName } from './dialect.mjs';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { k as Provider } from './ir-MN9bGclm.js';
1
+ import { k as Provider } from './ir-DAUBaPhd.js';
2
2
  import { IntentArchetypeName } from './dialect.js';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { r as MutationApplied, B as BestPracticeAdvisory, F as FallbackReason, m as CallAttempt } from './ir-CSgyol5D.mjs';
1
+ import { r as MutationApplied, B as BestPracticeAdvisory, F as FallbackReason, m as CallAttempt } from './ir-DARjQnvZ.mjs';
2
2
 
3
3
  /**
4
4
  * Glass-Box observability types (alpha.17).
@@ -1,4 +1,4 @@
1
- import { r as MutationApplied, B as BestPracticeAdvisory, F as FallbackReason, m as CallAttempt } from './ir-MN9bGclm.js';
1
+ import { r as MutationApplied, B as BestPracticeAdvisory, F as FallbackReason, m as CallAttempt } from './ir-DAUBaPhd.js';
2
2
 
3
3
  /**
4
4
  * Glass-Box observability types (alpha.17).
@@ -1,4 +1,4 @@
1
- import { i as Adapter, w as SectionKind } from './ir-MN9bGclm.js';
1
+ import { i as Adapter, w as SectionKind } from './ir-DAUBaPhd.js';
2
2
 
3
3
  /**
4
4
  * Internal config + hook types for createGlassboxRoutes().
@@ -1,4 +1,4 @@
1
- import { i as Adapter, w as SectionKind } from './ir-CSgyol5D.mjs';
1
+ import { i as Adapter, w as SectionKind } from './ir-DARjQnvZ.mjs';
2
2
 
3
3
  /**
4
4
  * Internal config + hook types for createGlassboxRoutes().
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warmdrift/kgauto-compiler",
3
- "version": "2.0.0-alpha.43",
3
+ "version": "2.0.0-alpha.44",
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",