@linnlabs/linnkit 0.10.0 → 0.21.0

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 (91) hide show
  1. package/CHANGELOG.md +156 -1
  2. package/dist/{agent-invocation-BHcNfrBV.d.cts → agent-invocation-CAlm9qOw.d.cts} +1 -1
  3. package/dist/{agent-invocation-BznDaXDs.d.ts → agent-invocation-DKoEDLkl.d.ts} +1 -1
  4. package/dist/{ai-engine.types-vZRnQcJa.d.ts → ai-engine.types-CeLoM624.d.cts} +9 -1
  5. package/dist/{ai-engine.types-BpeU_XQG.d.cts → ai-engine.types-LqmnfR2W.d.ts} +9 -1
  6. package/dist/{audit-CtcfART1.d.ts → audit-BuWHoMEr.d.ts} +4 -2
  7. package/dist/{audit-LeOrm2hX.d.cts → audit-DnzNQzwq.d.cts} +4 -2
  8. package/dist/cli.cjs +565 -194
  9. package/dist/cli.cjs.map +1 -1
  10. package/dist/cli.js +565 -194
  11. package/dist/cli.js.map +1 -1
  12. package/dist/context-manager.cjs +590 -26
  13. package/dist/context-manager.cjs.map +1 -1
  14. package/dist/context-manager.d.cts +84 -7
  15. package/dist/context-manager.d.ts +84 -7
  16. package/dist/context-manager.js +590 -26
  17. package/dist/context-manager.js.map +1 -1
  18. package/dist/{context-trace-BHKDS-eq.d.cts → context-trace-DrtvKac4.d.cts} +36 -3
  19. package/dist/{context-trace-CHbqHmyE.d.ts → context-trace-WV1HAZeB.d.ts} +36 -3
  20. package/dist/contracts.cjs +222 -1
  21. package/dist/contracts.cjs.map +1 -1
  22. package/dist/contracts.d.cts +5 -3
  23. package/dist/contracts.d.ts +5 -3
  24. package/dist/contracts.js +202 -2
  25. package/dist/contracts.js.map +1 -1
  26. package/dist/{defaultGraphExecutor-C2E59v_R.d.cts → defaultGraphExecutor-L1ri3oij.d.cts} +35 -7
  27. package/dist/{defaultGraphExecutor-B29_qTHy.d.ts → defaultGraphExecutor-QzzdudLQ.d.ts} +35 -7
  28. package/dist/{index-BAaUP9yU.d.cts → index-BeQO0rx2.d.cts} +328 -263
  29. package/dist/{index-Cvr23YCl.d.cts → index-CDofGr_4.d.ts} +24 -6
  30. package/dist/{index-CKQzzZ5Y.d.cts → index-Crl5E4eF.d.cts} +26 -3
  31. package/dist/{index-C0DAjsdX.d.ts → index-DWGKvssS.d.ts} +2 -2
  32. package/dist/{index-D0mKxTR5.d.ts → index-X5lYU1Lj.d.ts} +26 -3
  33. package/dist/{index-DDzuSb0n.d.ts → index-uCNCpJBg.d.cts} +24 -6
  34. package/dist/{index-BaVpVNi2.d.ts → index-wOZD-p2-.d.ts} +328 -263
  35. package/dist/{index-BnYCS8Zg.d.cts → index-wXVAHZ0D.d.cts} +2 -2
  36. package/dist/index.cjs +893 -312
  37. package/dist/index.cjs.map +1 -1
  38. package/dist/index.d.cts +17 -14
  39. package/dist/index.d.ts +17 -14
  40. package/dist/index.js +893 -312
  41. package/dist/index.js.map +1 -1
  42. package/dist/{messages-XthmnHZ3.d.cts → messages-Br5SiLD3.d.cts} +706 -1
  43. package/dist/{messages-XthmnHZ3.d.ts → messages-Br5SiLD3.d.ts} +706 -1
  44. package/dist/{ports-s-tSp3sB.d.cts → ports-Dugizzje.d.cts} +4 -0
  45. package/dist/{ports-DpPTFhSd.d.ts → ports-fhp84x_C.d.ts} +4 -0
  46. package/dist/ports.d.cts +8 -5
  47. package/dist/ports.d.ts +8 -5
  48. package/dist/quickstart.cjs +564 -193
  49. package/dist/quickstart.cjs.map +1 -1
  50. package/dist/quickstart.d.cts +9 -8
  51. package/dist/quickstart.d.ts +9 -8
  52. package/dist/quickstart.js +564 -193
  53. package/dist/quickstart.js.map +1 -1
  54. package/dist/{runAgent-C6F-399C.d.ts → runAgent-BmMSju8I.d.ts} +4 -4
  55. package/dist/{runAgent-ilEj66Ik.d.cts → runAgent-CKgcRSRH.d.cts} +4 -4
  56. package/dist/{runHandle-BNOqS-Bl.d.cts → runHandle-DH4VmQx6.d.cts} +4 -2
  57. package/dist/{runHandle-BdLXOFqF.d.ts → runHandle-o3p06Nva.d.ts} +4 -2
  58. package/dist/runtime-kernel/events.cjs +201 -1
  59. package/dist/runtime-kernel/events.cjs.map +1 -1
  60. package/dist/runtime-kernel/events.d.cts +3 -3
  61. package/dist/runtime-kernel/events.d.ts +3 -3
  62. package/dist/runtime-kernel/events.js +201 -1
  63. package/dist/runtime-kernel/events.js.map +1 -1
  64. package/dist/runtime-kernel.cjs +824 -264
  65. package/dist/runtime-kernel.cjs.map +1 -1
  66. package/dist/runtime-kernel.d.cts +14 -12
  67. package/dist/runtime-kernel.d.ts +14 -12
  68. package/dist/runtime-kernel.js +816 -265
  69. package/dist/runtime-kernel.js.map +1 -1
  70. package/dist/testkit.cjs +847 -264
  71. package/dist/testkit.cjs.map +1 -1
  72. package/dist/testkit.d.cts +14 -12
  73. package/dist/testkit.d.ts +14 -12
  74. package/dist/testkit.js +847 -264
  75. package/dist/testkit.js.map +1 -1
  76. package/dist/{agentSpec-Du4Iye0q.d.cts → token-accounting-CwpSPg4y.d.cts} +1265 -1
  77. package/dist/{agentSpec-Du4Iye0q.d.ts → token-accounting-CwpSPg4y.d.ts} +1265 -1
  78. package/dist/token-calibration-Cxv6dDYF.d.cts +327 -0
  79. package/dist/token-calibration-Cxv6dDYF.d.ts +327 -0
  80. package/dist/token-counter-CFfP8PQb.d.cts +26 -0
  81. package/dist/token-counter-SFyyTeaG.d.ts +26 -0
  82. package/dist/token-usage-CqwT7-5K.d.cts +133 -0
  83. package/dist/token-usage-CqwT7-5K.d.ts +133 -0
  84. package/dist/{tokenizer-DFL4I7-I.d.ts → tokenizer-BFJNCHFX.d.ts} +1 -1
  85. package/dist/{tokenizer-DH_JXv-H.d.cts → tokenizer-DoGsBE3A.d.cts} +1 -1
  86. package/docs/README.md +1 -1
  87. package/docs/integration/README.md +2 -2
  88. package/docs/integration/agent-registration-guide.md +2 -0
  89. package/docs/integration/context-engineering.md +53 -1
  90. package/docs/integration/context-fences.md +12 -0
  91. package/package.json +2 -2
@@ -1,18 +1,20 @@
1
- import { a as LLMPolicy, b as LLMPolicyRequestContext, c as LLMPolicyResponseContext, d as LLMPolicyMatchContext, e as LLMPolicyErrorDecision, f as LlmCaller, M as ModelCatalogEntry, g as ModelCatalogLike, h as ModelResolver, E as ExecutorLocalState, S as StandardToolCall, i as ModelResolverLike, T as TelemetryPort, G as GraphNode, j as EngineState, N as NodeResult, C as Checkpointer, k as CheckpointMeta, l as CheckpointListFilter, m as CheckpointSummary, n as ENGINE_STATE_SCHEMA_VERSION, o as GraphExecutor, p as MemoryEventStore, s as summarizeCheckpoint, q as ToolContextPatch, D as DefaultRunSupervisor, r as DefaultRunSupervisorOptions, F as FindActiveByConversationOptions, t as MemoryRunRegistryStore, R as RunExecutionContext, u as RunExecutorPort, v as RunOutcome, x as RunRegistrationSpec, y as RunSnapshot, z as RunSupervisor, A as RunTerminalError, B as RunTerminalEvent, H as RunTerminalStatus, I as RunWaitForTerminalOptions, J as TELEMETRY_EVENT_KINDS, K as TelemetryEvent, O as TelemetryScope, P as DefaultGraphExecutorOptions, Q as GraphLoopHarness, U as GraphLoopHarnessOptions, V as GraphLoopHarnessRunResult, W as GraphLoopLlmNodeFactoryParams, X as createDefaultGraphExecutor, Y as createGraphLoopHarness } from './defaultGraphExecutor-C2E59v_R.cjs';
2
- import { b as AuditPort } from './audit-LeOrm2hX.cjs';
3
- import { b as ToolCatalogPort, c as ToolPresentationPort, d as ToolExecutionPort, O as ObservationPreviewPort, C as ConversationArtifactContext, e as ObservationPreviewContext, f as ObservationPreviewMeta, g as ObservationPreviewResult, a as ToolExecutionResult, T as ToolRuntimeDefinition, h as ToolRuntimePort, i as ToolSchemaContext } from './ports-s-tSp3sB.cjs';
4
- import { A as AgentInvocationRequest } from './agent-invocation-BHcNfrBV.cjs';
5
- import { a as LlmRequestMessage, L as LlmCallOptions, b as LlmResponseContent, c as LlmRetryConfig, P as ProviderReasoningDetails, T as ToolCall, d as ToolCallChunk, e as ToolCallExtraContent } from './ai-engine.types-BpeU_XQG.cjs';
1
+ import { a as LLMPolicy, b as LLMPolicyRequestContext, c as LLMPolicyResponseContext, d as LLMPolicyMatchContext, e as LLMPolicyErrorDecision, f as LlmCaller, M as ModelCatalogEntry, g as ModelCatalogLike, h as ModelResolver, E as ExecutorLocalState, S as StandardToolCall, i as ModelResolverLike, T as TelemetryPort, G as GraphNode, j as EngineState, N as NodeResult, C as Checkpointer, k as CheckpointMeta, l as CheckpointListFilter, m as CheckpointSummary, n as ENGINE_STATE_SCHEMA_VERSION, o as GraphExecutor, p as MemoryEventStore, s as summarizeCheckpoint, q as ToolContextPatch, D as DefaultRunSupervisor, r as DefaultRunSupervisorOptions, F as FindActiveByConversationOptions, t as MemoryRunRegistryStore, R as RunExecutionContext, u as RunExecutorPort, v as RunOutcome, x as RunRegistrationSpec, y as RunSnapshot, z as RunSupervisor, A as RunTerminalError, B as RunTerminalEvent, H as RunTerminalStatus, I as RunWaitForTerminalOptions, J as TELEMETRY_EVENT_KINDS, K as TelemetryEvent, O as TelemetryScope, P as DefaultGraphExecutorOptions, Q as GraphLoopHarness, U as GraphLoopHarnessOptions, V as GraphLoopHarnessRunResult, W as GraphLoopLlmNodeFactoryParams, X as createDefaultGraphExecutor, Y as createGraphLoopHarness } from './defaultGraphExecutor-L1ri3oij.cjs';
2
+ import { b as AuditPort } from './audit-DnzNQzwq.cjs';
3
+ import { T as TokenizerPort } from './tokenizer-DoGsBE3A.cjs';
4
+ import { b as ToolCatalogPort, c as ToolPresentationPort, d as ToolExecutionPort, O as ObservationPreviewPort, C as ConversationArtifactContext, e as ObservationPreviewContext, f as ObservationPreviewMeta, g as ObservationPreviewResult, a as ToolExecutionResult, T as ToolRuntimeDefinition, h as ToolRuntimePort, i as ToolSchemaContext } from './ports-Dugizzje.cjs';
5
+ import { A as AgentInvocationRequest } from './agent-invocation-CAlm9qOw.cjs';
6
6
  import { R as RuntimeEvent, E as ErrorEvent } from './todo-Ca8llpRQ.cjs';
7
+ import { C as ContextTokenComponent, w as ContextComponentTokenLedgerEntry, g as AgentSpecContextPolicy, e as AgentSpecSystemReminderPolicy, s as AgentSpecSystemReminderTrigger, r as AgentSpecSystemReminderExtraRule, L as LlmUsageTokenLedgerEntry, z as TokenLedgerAggregate, F as TokenUsageTotals, B as TokenLedgerEntry, E as TokenPricing, y as CostBreakdown, R as RunTokenUsageAggregate } from './token-accounting-CwpSPg4y.cjs';
8
+ import { C as ContextBuildTokenEstimate } from './token-calibration-Cxv6dDYF.cjs';
9
+ import { a as LlmRequestMessage, L as LlmCallOptions, b as LlmResponseContent, c as LlmRetryConfig, P as ProviderReasoningDetails, T as ToolCall, d as ToolCallChunk, e as ToolCallExtraContent } from './ai-engine.types-CeLoM624.cjs';
7
10
  import { A as AnyAgentEvent } from './agentEvents-DEB7Fy_J.cjs';
8
11
  import { a as ToolExecutionContext, B as BaseTool, T as ToolArgs, b as ToolParameterSchema, c as ToolParameterProperty, d as ToolContextConversationView, A as AgentTool, C as CommonParameterTypes, J as JsonObjectSchema, O as OpenAIToolSchema, S as StructuredToolResult, e as ToolCallResult, f as ToolContextCompatibilityFields, g as ToolControlInfo, h as ToolDisplayOptions, i as ToolLayoutOptions, j as ToolRegistryEntry, k as ToolResult, U as UnifiedToolResult, l as computeToolIdempotencyKey, m as findCachedToolOutputByIdempotencyKey, r as readToolContextModelId, n as readToolContextRunContext, o as readToolContextUserQuery, R as RunContext, p as createDefaultRunContext, q as ChildRunParentContext, s as SubRunTracePublisher, t as ChildRunHistoryPolicy, u as ChildRunInvokerPort, v as ChildRunRequest, w as ChildRunResult, x as SubRunTraceEnvelope } from './toolContracts-Bm3EZ1UM.cjs';
9
- import { E as EventRangeOptions, a as EventStore, P as PersistedEvent, c as createMonotonicEventIdFactory, b as EventBus, C as CancelOpts, D as DefaultRunHandle, d as DefaultRunHandleOptions, L as ListRunsFilter, e as RunAwaitingUserPatch, R as RunCost, f as RunCostCollector, g as RunFailureInfo, h as RunHandle, i as RunLifecyclePatch, j as RunMeta, k as RunObserveFilter, l as RunRecord, m as RunRegistryStore, n as RunRequestSnapshot, o as RunStatus, r as runMetaFromRecord } from './runHandle-BNOqS-Bl.cjs';
12
+ import { E as EventRangeOptions, a as EventStore, P as PersistedEvent, c as createMonotonicEventIdFactory, b as EventBus, C as CancelOpts, D as DefaultRunHandle, d as DefaultRunHandleOptions, L as ListRunsFilter, e as RunAwaitingUserPatch, R as RunCost, f as RunCostCollector, g as RunFailureInfo, h as RunHandle, i as RunLifecyclePatch, j as RunMeta, k as RunObserveFilter, l as RunRecord, m as RunRegistryStore, n as RunRequestSnapshot, o as RunStatus, r as runMetaFromRecord } from './runHandle-DH4VmQx6.cjs';
10
13
  import { C as CHECKPOINT_MARKER_TYPE, D as DEFAULT_CONTEXT_CHECKPOINT_TOOL_NAME } from './checkpointMarker-DAI3wUQu.cjs';
11
14
  import { a as ExecutionTraceContext, E as EventEnvelope } from './execution-CAIypb41.cjs';
12
- import { i as index$d } from './index-BnYCS8Zg.cjs';
13
- import { T as TokenizerPort } from './tokenizer-DH_JXv-H.cjs';
14
- import { g as AgentSpecContextPolicy, e as AgentSpecSystemReminderPolicy, r as AgentSpecSystemReminderTrigger, q as AgentSpecSystemReminderExtraRule } from './agentSpec-Du4Iye0q.cjs';
15
+ import { i as index$e } from './index-wXVAHZ0D.cjs';
15
16
  import { e as AuditEnvelope, b as AuditActor, d as AuditDecision, f as AuditEvidence, c as AuditCostDelta, g as AuditScope } from './audit-BaRUGaqv.cjs';
17
+ import { C as CanonicalLlmUsage } from './token-usage-CqwT7-5K.cjs';
16
18
 
17
19
  interface DefaultTokenizerPortConfig {
18
20
  /** tiktoken encoding 名,默认沿用 TokenCalculator 的 cl100k_base 近似路径。 */
@@ -79,35 +81,35 @@ declare function appendStreamingProviderReasoningDetails(existing: unknown[], in
79
81
  declare function compactProviderReasoningDetails(reasoningDetails: unknown[]): unknown[];
80
82
  declare function compactReasoningDetailsInValue<T>(value: T): T;
81
83
 
82
- type index$c_DefaultTokenizerPort = DefaultTokenizerPort;
83
- declare const index$c_DefaultTokenizerPort: typeof DefaultTokenizerPort;
84
- type index$c_DefaultTokenizerPortConfig = DefaultTokenizerPortConfig;
85
- declare const index$c_LLMPolicy: typeof LLMPolicy;
86
- type index$c_LLMPolicyEngine = LLMPolicyEngine;
87
- declare const index$c_LLMPolicyEngine: typeof LLMPolicyEngine;
88
- declare const index$c_LLMPolicyErrorDecision: typeof LLMPolicyErrorDecision;
89
- declare const index$c_LLMPolicyMatchContext: typeof LLMPolicyMatchContext;
90
- declare const index$c_LLMPolicyRequestContext: typeof LLMPolicyRequestContext;
91
- declare const index$c_LLMPolicyResponseContext: typeof LLMPolicyResponseContext;
92
- declare const index$c_LlmCallOptions: typeof LlmCallOptions;
93
- declare const index$c_LlmCaller: typeof LlmCaller;
94
- declare const index$c_LlmRequestMessage: typeof LlmRequestMessage;
95
- declare const index$c_LlmResponseContent: typeof LlmResponseContent;
96
- declare const index$c_LlmRetryConfig: typeof LlmRetryConfig;
97
- declare const index$c_ModelCatalogEntry: typeof ModelCatalogEntry;
98
- declare const index$c_ModelCatalogLike: typeof ModelCatalogLike;
99
- declare const index$c_ModelResolver: typeof ModelResolver;
100
- declare const index$c_ProviderReasoningDetails: typeof ProviderReasoningDetails;
101
- declare const index$c_ToolCall: typeof ToolCall;
102
- declare const index$c_ToolCallChunk: typeof ToolCallChunk;
103
- declare const index$c_ToolCallExtraContent: typeof ToolCallExtraContent;
104
- declare const index$c_appendStreamingProviderReasoningDetails: typeof appendStreamingProviderReasoningDetails;
105
- declare const index$c_compactProviderReasoningDetails: typeof compactProviderReasoningDetails;
106
- declare const index$c_compactReasoningDetailsInValue: typeof compactReasoningDetailsInValue;
107
- declare const index$c_createDefaultTokenizerPort: typeof createDefaultTokenizerPort;
108
- declare const index$c_defaultPolicyEngine: typeof defaultPolicyEngine;
109
- declare namespace index$c {
110
- export { index$c_DefaultTokenizerPort as DefaultTokenizerPort, type index$c_DefaultTokenizerPortConfig as DefaultTokenizerPortConfig, index$c_LLMPolicy as LLMPolicy, index$c_LLMPolicyEngine as LLMPolicyEngine, index$c_LLMPolicyErrorDecision as LLMPolicyErrorDecision, index$c_LLMPolicyMatchContext as LLMPolicyMatchContext, index$c_LLMPolicyRequestContext as LLMPolicyRequestContext, index$c_LLMPolicyResponseContext as LLMPolicyResponseContext, index$c_LlmCallOptions as LlmCallOptions, index$c_LlmCaller as LlmCaller, index$c_LlmRequestMessage as LlmRequestMessage, index$c_LlmResponseContent as LlmResponseContent, index$c_LlmRetryConfig as LlmRetryConfig, index$c_ModelCatalogEntry as ModelCatalogEntry, index$c_ModelCatalogLike as ModelCatalogLike, index$c_ModelResolver as ModelResolver, index$c_ProviderReasoningDetails as ProviderReasoningDetails, index$c_ToolCall as ToolCall, index$c_ToolCallChunk as ToolCallChunk, index$c_ToolCallExtraContent as ToolCallExtraContent, index$c_appendStreamingProviderReasoningDetails as appendStreamingProviderReasoningDetails, index$c_compactProviderReasoningDetails as compactProviderReasoningDetails, index$c_compactReasoningDetailsInValue as compactReasoningDetailsInValue, index$c_createDefaultTokenizerPort as createDefaultTokenizerPort, index$c_defaultPolicyEngine as defaultPolicyEngine };
84
+ type index$d_DefaultTokenizerPort = DefaultTokenizerPort;
85
+ declare const index$d_DefaultTokenizerPort: typeof DefaultTokenizerPort;
86
+ type index$d_DefaultTokenizerPortConfig = DefaultTokenizerPortConfig;
87
+ declare const index$d_LLMPolicy: typeof LLMPolicy;
88
+ type index$d_LLMPolicyEngine = LLMPolicyEngine;
89
+ declare const index$d_LLMPolicyEngine: typeof LLMPolicyEngine;
90
+ declare const index$d_LLMPolicyErrorDecision: typeof LLMPolicyErrorDecision;
91
+ declare const index$d_LLMPolicyMatchContext: typeof LLMPolicyMatchContext;
92
+ declare const index$d_LLMPolicyRequestContext: typeof LLMPolicyRequestContext;
93
+ declare const index$d_LLMPolicyResponseContext: typeof LLMPolicyResponseContext;
94
+ declare const index$d_LlmCallOptions: typeof LlmCallOptions;
95
+ declare const index$d_LlmCaller: typeof LlmCaller;
96
+ declare const index$d_LlmRequestMessage: typeof LlmRequestMessage;
97
+ declare const index$d_LlmResponseContent: typeof LlmResponseContent;
98
+ declare const index$d_LlmRetryConfig: typeof LlmRetryConfig;
99
+ declare const index$d_ModelCatalogEntry: typeof ModelCatalogEntry;
100
+ declare const index$d_ModelCatalogLike: typeof ModelCatalogLike;
101
+ declare const index$d_ModelResolver: typeof ModelResolver;
102
+ declare const index$d_ProviderReasoningDetails: typeof ProviderReasoningDetails;
103
+ declare const index$d_ToolCall: typeof ToolCall;
104
+ declare const index$d_ToolCallChunk: typeof ToolCallChunk;
105
+ declare const index$d_ToolCallExtraContent: typeof ToolCallExtraContent;
106
+ declare const index$d_appendStreamingProviderReasoningDetails: typeof appendStreamingProviderReasoningDetails;
107
+ declare const index$d_compactProviderReasoningDetails: typeof compactProviderReasoningDetails;
108
+ declare const index$d_compactReasoningDetailsInValue: typeof compactReasoningDetailsInValue;
109
+ declare const index$d_createDefaultTokenizerPort: typeof createDefaultTokenizerPort;
110
+ declare const index$d_defaultPolicyEngine: typeof defaultPolicyEngine;
111
+ declare namespace index$d {
112
+ export { index$d_DefaultTokenizerPort as DefaultTokenizerPort, type index$d_DefaultTokenizerPortConfig as DefaultTokenizerPortConfig, index$d_LLMPolicy as LLMPolicy, index$d_LLMPolicyEngine as LLMPolicyEngine, index$d_LLMPolicyErrorDecision as LLMPolicyErrorDecision, index$d_LLMPolicyMatchContext as LLMPolicyMatchContext, index$d_LLMPolicyRequestContext as LLMPolicyRequestContext, index$d_LLMPolicyResponseContext as LLMPolicyResponseContext, index$d_LlmCallOptions as LlmCallOptions, index$d_LlmCaller as LlmCaller, index$d_LlmRequestMessage as LlmRequestMessage, index$d_LlmResponseContent as LlmResponseContent, index$d_LlmRetryConfig as LlmRetryConfig, index$d_ModelCatalogEntry as ModelCatalogEntry, index$d_ModelCatalogLike as ModelCatalogLike, index$d_ModelResolver as ModelResolver, index$d_ProviderReasoningDetails as ProviderReasoningDetails, index$d_ToolCall as ToolCall, index$d_ToolCallChunk as ToolCallChunk, index$d_ToolCallExtraContent as ToolCallExtraContent, index$d_appendStreamingProviderReasoningDetails as appendStreamingProviderReasoningDetails, index$d_compactProviderReasoningDetails as compactProviderReasoningDetails, index$d_compactReasoningDetailsInValue as compactReasoningDetailsInValue, index$d_createDefaultTokenizerPort as createDefaultTokenizerPort, index$d_defaultPolicyEngine as defaultPolicyEngine };
111
113
  }
112
114
 
113
115
  interface GraphExecutorSummarizationCallbacks {
@@ -136,6 +138,21 @@ interface GraphExecutorContextBuildOutput {
136
138
  * 避免 graph-engine 反向依赖 context-manager。
137
139
  */
138
140
  contextTrace?: unknown;
141
+ /**
142
+ * 构建期 token 估算快照。
143
+ *
144
+ * 中文备注:runtime-kernel 只透传稳定 DTO;它不解析 context-manager 内部 trace,
145
+ * 也不把 provider remote count 当成本地估算样本来源。
146
+ */
147
+ tokenEstimate?: ContextBuildTokenEstimate;
148
+ /**
149
+ * 构建期上下文分项 token 估算。
150
+ *
151
+ * 中文备注:context-manager 只产稳定 DTO,runtime-kernel 在带 run/turn scope 的地方
152
+ * 再创建账本条目,避免反向读取 ContextTrace 内部结构。
153
+ */
154
+ tokenComponents?: ContextTokenComponent[];
155
+ tokenLedgerEntry?: ContextComponentTokenLedgerEntry;
139
156
  }
140
157
  interface GraphExecutorContextBuilder {
141
158
  build(input: GraphExecutorContextBuildInput): Promise<GraphExecutorContextBuildOutput>;
@@ -210,6 +227,7 @@ interface GraphAgentExecutorDependencies extends GraphAgentExecutorOptions {
210
227
  */
211
228
  telemetryPort?: TelemetryPort;
212
229
  auditPort?: AuditPort;
230
+ tokenizer?: TokenizerPort;
213
231
  }
214
232
  declare class GraphAgentExecutor {
215
233
  private readonly llmCaller;
@@ -220,6 +238,7 @@ declare class GraphAgentExecutor {
220
238
  private readonly modelCatalog;
221
239
  private readonly telemetryPort;
222
240
  private readonly auditPort;
241
+ private readonly tokenizer;
223
242
  private readonly stages;
224
243
  private readonly middlewares;
225
244
  constructor(dependencies: GraphAgentExecutorDependencies);
@@ -329,42 +348,42 @@ declare class MemoryCheckpointer implements Checkpointer {
329
348
  list(filter?: CheckpointListFilter): Promise<CheckpointSummary[]>;
330
349
  }
331
350
 
332
- type index$b_AnswerNode = AnswerNode;
333
- declare const index$b_AnswerNode: typeof AnswerNode;
334
- declare const index$b_CheckpointListFilter: typeof CheckpointListFilter;
335
- declare const index$b_CheckpointMeta: typeof CheckpointMeta;
336
- declare const index$b_CheckpointSummary: typeof CheckpointSummary;
337
- declare const index$b_Checkpointer: typeof Checkpointer;
338
- declare const index$b_ENGINE_STATE_SCHEMA_VERSION: typeof ENGINE_STATE_SCHEMA_VERSION;
339
- declare const index$b_EngineState: typeof EngineState;
340
- declare const index$b_EventRangeOptions: typeof EventRangeOptions;
341
- declare const index$b_EventStore: typeof EventStore;
342
- declare const index$b_ExecutorLocalState: typeof ExecutorLocalState;
343
- type index$b_GraphAgentExecutor = GraphAgentExecutor;
344
- declare const index$b_GraphAgentExecutor: typeof GraphAgentExecutor;
345
- type index$b_GraphAgentExecutorDependencies = GraphAgentExecutorDependencies;
346
- declare const index$b_GraphExecutor: typeof GraphExecutor;
347
- type index$b_GraphExecutorContextBuildInput = GraphExecutorContextBuildInput;
348
- type index$b_GraphExecutorContextBuildOutput = GraphExecutorContextBuildOutput;
349
- type index$b_GraphExecutorContextBuilder = GraphExecutorContextBuilder;
350
- declare const index$b_GraphNode: typeof GraphNode;
351
- type index$b_LlmNode = LlmNode;
352
- declare const index$b_LlmNode: typeof LlmNode;
353
- type index$b_MemoryCheckpointer = MemoryCheckpointer;
354
- declare const index$b_MemoryCheckpointer: typeof MemoryCheckpointer;
355
- declare const index$b_MemoryEventStore: typeof MemoryEventStore;
356
- type index$b_PendingContextRuntimeEvent = PendingContextRuntimeEvent;
357
- declare const index$b_PersistedEvent: typeof PersistedEvent;
358
- type index$b_ToolNode = ToolNode;
359
- declare const index$b_ToolNode: typeof ToolNode;
360
- type index$b_UserNode = UserNode;
361
- declare const index$b_UserNode: typeof UserNode;
362
- type index$b_WaitUserNode = WaitUserNode;
363
- declare const index$b_WaitUserNode: typeof WaitUserNode;
364
- declare const index$b_createMonotonicEventIdFactory: typeof createMonotonicEventIdFactory;
365
- declare const index$b_summarizeCheckpoint: typeof summarizeCheckpoint;
366
- declare namespace index$b {
367
- export { index$b_AnswerNode as AnswerNode, index$b_CheckpointListFilter as CheckpointListFilter, index$b_CheckpointMeta as CheckpointMeta, index$b_CheckpointSummary as CheckpointSummary, index$b_Checkpointer as Checkpointer, index$b_ENGINE_STATE_SCHEMA_VERSION as ENGINE_STATE_SCHEMA_VERSION, index$b_EngineState as EngineState, index$b_EventRangeOptions as EventRangeOptions, index$b_EventStore as EventStore, index$b_ExecutorLocalState as ExecutorLocalState, index$b_GraphAgentExecutor as GraphAgentExecutor, type index$b_GraphAgentExecutorDependencies as GraphAgentExecutorDependencies, index$b_GraphExecutor as GraphExecutor, type index$b_GraphExecutorContextBuildInput as GraphExecutorContextBuildInput, type index$b_GraphExecutorContextBuildOutput as GraphExecutorContextBuildOutput, type index$b_GraphExecutorContextBuilder as GraphExecutorContextBuilder, index$b_GraphNode as GraphNode, index$b_LlmNode as LlmNode, index$b_MemoryCheckpointer as MemoryCheckpointer, index$b_MemoryEventStore as MemoryEventStore, type index$b_PendingContextRuntimeEvent as PendingContextRuntimeEvent, index$b_PersistedEvent as PersistedEvent, index$b_ToolNode as ToolNode, index$b_UserNode as UserNode, index$b_WaitUserNode as WaitUserNode, index$b_createMonotonicEventIdFactory as createMonotonicEventIdFactory, index$b_summarizeCheckpoint as summarizeCheckpoint };
351
+ type index$c_AnswerNode = AnswerNode;
352
+ declare const index$c_AnswerNode: typeof AnswerNode;
353
+ declare const index$c_CheckpointListFilter: typeof CheckpointListFilter;
354
+ declare const index$c_CheckpointMeta: typeof CheckpointMeta;
355
+ declare const index$c_CheckpointSummary: typeof CheckpointSummary;
356
+ declare const index$c_Checkpointer: typeof Checkpointer;
357
+ declare const index$c_ENGINE_STATE_SCHEMA_VERSION: typeof ENGINE_STATE_SCHEMA_VERSION;
358
+ declare const index$c_EngineState: typeof EngineState;
359
+ declare const index$c_EventRangeOptions: typeof EventRangeOptions;
360
+ declare const index$c_EventStore: typeof EventStore;
361
+ declare const index$c_ExecutorLocalState: typeof ExecutorLocalState;
362
+ type index$c_GraphAgentExecutor = GraphAgentExecutor;
363
+ declare const index$c_GraphAgentExecutor: typeof GraphAgentExecutor;
364
+ type index$c_GraphAgentExecutorDependencies = GraphAgentExecutorDependencies;
365
+ declare const index$c_GraphExecutor: typeof GraphExecutor;
366
+ type index$c_GraphExecutorContextBuildInput = GraphExecutorContextBuildInput;
367
+ type index$c_GraphExecutorContextBuildOutput = GraphExecutorContextBuildOutput;
368
+ type index$c_GraphExecutorContextBuilder = GraphExecutorContextBuilder;
369
+ declare const index$c_GraphNode: typeof GraphNode;
370
+ type index$c_LlmNode = LlmNode;
371
+ declare const index$c_LlmNode: typeof LlmNode;
372
+ type index$c_MemoryCheckpointer = MemoryCheckpointer;
373
+ declare const index$c_MemoryCheckpointer: typeof MemoryCheckpointer;
374
+ declare const index$c_MemoryEventStore: typeof MemoryEventStore;
375
+ type index$c_PendingContextRuntimeEvent = PendingContextRuntimeEvent;
376
+ declare const index$c_PersistedEvent: typeof PersistedEvent;
377
+ type index$c_ToolNode = ToolNode;
378
+ declare const index$c_ToolNode: typeof ToolNode;
379
+ type index$c_UserNode = UserNode;
380
+ declare const index$c_UserNode: typeof UserNode;
381
+ type index$c_WaitUserNode = WaitUserNode;
382
+ declare const index$c_WaitUserNode: typeof WaitUserNode;
383
+ declare const index$c_createMonotonicEventIdFactory: typeof createMonotonicEventIdFactory;
384
+ declare const index$c_summarizeCheckpoint: typeof summarizeCheckpoint;
385
+ declare namespace index$c {
386
+ export { index$c_AnswerNode as AnswerNode, index$c_CheckpointListFilter as CheckpointListFilter, index$c_CheckpointMeta as CheckpointMeta, index$c_CheckpointSummary as CheckpointSummary, index$c_Checkpointer as Checkpointer, index$c_ENGINE_STATE_SCHEMA_VERSION as ENGINE_STATE_SCHEMA_VERSION, index$c_EngineState as EngineState, index$c_EventRangeOptions as EventRangeOptions, index$c_EventStore as EventStore, index$c_ExecutorLocalState as ExecutorLocalState, index$c_GraphAgentExecutor as GraphAgentExecutor, type index$c_GraphAgentExecutorDependencies as GraphAgentExecutorDependencies, index$c_GraphExecutor as GraphExecutor, type index$c_GraphExecutorContextBuildInput as GraphExecutorContextBuildInput, type index$c_GraphExecutorContextBuildOutput as GraphExecutorContextBuildOutput, type index$c_GraphExecutorContextBuilder as GraphExecutorContextBuilder, index$c_GraphNode as GraphNode, index$c_LlmNode as LlmNode, index$c_MemoryCheckpointer as MemoryCheckpointer, index$c_MemoryEventStore as MemoryEventStore, type index$c_PendingContextRuntimeEvent as PendingContextRuntimeEvent, index$c_PersistedEvent as PersistedEvent, index$c_ToolNode as ToolNode, index$c_UserNode as UserNode, index$c_WaitUserNode as WaitUserNode, index$c_createMonotonicEventIdFactory as createMonotonicEventIdFactory, index$c_summarizeCheckpoint as summarizeCheckpoint };
368
387
  }
369
388
 
370
389
  interface ContextCheckpointToolArgs extends ToolArgs {
@@ -470,60 +489,60 @@ declare function readToolContextWorkingHistory(context: ToolExecutionContext): R
470
489
  declare function readToolContextPersistedHistory(context: ToolExecutionContext): ReadonlyArray<RuntimeEvent>;
471
490
  declare function stripRuntimeReservedToolContextPatch(patch: Partial<ToolExecutionContext> | Record<string, unknown> | undefined): Record<string, unknown>;
472
491
 
473
- declare const index$a_AgentTool: typeof AgentTool;
474
- declare const index$a_BaseTool: typeof BaseTool;
475
- declare const index$a_CommonParameterTypes: typeof CommonParameterTypes;
476
- type index$a_ContextCheckpointPayload = ContextCheckpointPayload;
477
- type index$a_ContextCheckpointPayloadExtension = ContextCheckpointPayloadExtension;
478
- type index$a_ContextCheckpointTool = ContextCheckpointTool;
479
- declare const index$a_ContextCheckpointTool: typeof ContextCheckpointTool;
480
- type index$a_ContextCheckpointToolArgs = ContextCheckpointToolArgs;
481
- type index$a_ContextCheckpointToolHookParams = ContextCheckpointToolHookParams;
482
- type index$a_ContextCheckpointToolOptions = ContextCheckpointToolOptions;
483
- declare const index$a_ConversationArtifactContext: typeof ConversationArtifactContext;
484
- declare const index$a_JsonObjectSchema: typeof JsonObjectSchema;
485
- declare const index$a_ObservationPreviewContext: typeof ObservationPreviewContext;
486
- declare const index$a_ObservationPreviewMeta: typeof ObservationPreviewMeta;
487
- declare const index$a_ObservationPreviewPort: typeof ObservationPreviewPort;
488
- declare const index$a_ObservationPreviewResult: typeof ObservationPreviewResult;
489
- declare const index$a_OpenAIToolSchema: typeof OpenAIToolSchema;
490
- declare const index$a_StructuredToolResult: typeof StructuredToolResult;
491
- declare const index$a_ToolArgs: typeof ToolArgs;
492
- declare const index$a_ToolCallResult: typeof ToolCallResult;
493
- declare const index$a_ToolCatalogPort: typeof ToolCatalogPort;
494
- declare const index$a_ToolContextCompatibilityFields: typeof ToolContextCompatibilityFields;
495
- declare const index$a_ToolContextConversationView: typeof ToolContextConversationView;
496
- declare const index$a_ToolContextPatch: typeof ToolContextPatch;
497
- declare const index$a_ToolControlInfo: typeof ToolControlInfo;
498
- declare const index$a_ToolDisplayOptions: typeof ToolDisplayOptions;
499
- declare const index$a_ToolExecutionContext: typeof ToolExecutionContext;
500
- declare const index$a_ToolExecutionPort: typeof ToolExecutionPort;
501
- declare const index$a_ToolExecutionResult: typeof ToolExecutionResult;
502
- declare const index$a_ToolLayoutOptions: typeof ToolLayoutOptions;
503
- declare const index$a_ToolParameterProperty: typeof ToolParameterProperty;
504
- declare const index$a_ToolParameterSchema: typeof ToolParameterSchema;
505
- declare const index$a_ToolPresentationPort: typeof ToolPresentationPort;
506
- declare const index$a_ToolRegistryEntry: typeof ToolRegistryEntry;
507
- declare const index$a_ToolResult: typeof ToolResult;
508
- declare const index$a_ToolRuntimeDefinition: typeof ToolRuntimeDefinition;
509
- declare const index$a_ToolRuntimePort: typeof ToolRuntimePort;
510
- declare const index$a_ToolSchemaContext: typeof ToolSchemaContext;
511
- declare const index$a_UnifiedToolResult: typeof UnifiedToolResult;
512
- declare const index$a_computeToolIdempotencyKey: typeof computeToolIdempotencyKey;
513
- declare const index$a_copyToolContextRuntimeCapability: typeof copyToolContextRuntimeCapability;
514
- declare const index$a_createContextCheckpointTool: typeof createContextCheckpointTool;
515
- declare const index$a_ensureToolContextRuntimeCapability: typeof ensureToolContextRuntimeCapability;
516
- declare const index$a_findCachedToolOutputByIdempotencyKey: typeof findCachedToolOutputByIdempotencyKey;
517
- declare const index$a_getToolContextRuntimeBinding: typeof getToolContextRuntimeBinding;
518
- declare const index$a_normalizeToolArgs: typeof normalizeToolArgs;
519
- declare const index$a_readToolContextModelId: typeof readToolContextModelId;
520
- declare const index$a_readToolContextPersistedHistory: typeof readToolContextPersistedHistory;
521
- declare const index$a_readToolContextRunContext: typeof readToolContextRunContext;
522
- declare const index$a_readToolContextUserQuery: typeof readToolContextUserQuery;
523
- declare const index$a_readToolContextWorkingHistory: typeof readToolContextWorkingHistory;
524
- declare const index$a_stripRuntimeReservedToolContextPatch: typeof stripRuntimeReservedToolContextPatch;
525
- declare namespace index$a {
526
- export { index$a_AgentTool as AgentTool, index$a_BaseTool as BaseTool, index$a_CommonParameterTypes as CommonParameterTypes, type index$a_ContextCheckpointPayload as ContextCheckpointPayload, type index$a_ContextCheckpointPayloadExtension as ContextCheckpointPayloadExtension, index$a_ContextCheckpointTool as ContextCheckpointTool, type index$a_ContextCheckpointToolArgs as ContextCheckpointToolArgs, type index$a_ContextCheckpointToolHookParams as ContextCheckpointToolHookParams, type index$a_ContextCheckpointToolOptions as ContextCheckpointToolOptions, index$a_ConversationArtifactContext as ConversationArtifactContext, index$a_JsonObjectSchema as JsonObjectSchema, index$a_ObservationPreviewContext as ObservationPreviewContext, index$a_ObservationPreviewMeta as ObservationPreviewMeta, index$a_ObservationPreviewPort as ObservationPreviewPort, index$a_ObservationPreviewResult as ObservationPreviewResult, index$a_OpenAIToolSchema as OpenAIToolSchema, index$a_StructuredToolResult as StructuredToolResult, index$a_ToolArgs as ToolArgs, index$a_ToolCallResult as ToolCallResult, index$a_ToolCatalogPort as ToolCatalogPort, index$a_ToolContextCompatibilityFields as ToolContextCompatibilityFields, index$a_ToolContextConversationView as ToolContextConversationView, index$a_ToolContextPatch as ToolContextPatch, index$a_ToolControlInfo as ToolControlInfo, index$a_ToolDisplayOptions as ToolDisplayOptions, index$a_ToolExecutionContext as ToolExecutionContext, index$a_ToolExecutionPort as ToolExecutionPort, index$a_ToolExecutionResult as ToolExecutionResult, index$a_ToolLayoutOptions as ToolLayoutOptions, index$a_ToolParameterProperty as ToolParameterProperty, index$a_ToolParameterSchema as ToolParameterSchema, index$a_ToolPresentationPort as ToolPresentationPort, index$a_ToolRegistryEntry as ToolRegistryEntry, index$a_ToolResult as ToolResult, index$a_ToolRuntimeDefinition as ToolRuntimeDefinition, index$a_ToolRuntimePort as ToolRuntimePort, index$a_ToolSchemaContext as ToolSchemaContext, index$a_UnifiedToolResult as UnifiedToolResult, index$a_computeToolIdempotencyKey as computeToolIdempotencyKey, index$a_copyToolContextRuntimeCapability as copyToolContextRuntimeCapability, index$a_createContextCheckpointTool as createContextCheckpointTool, index$a_ensureToolContextRuntimeCapability as ensureToolContextRuntimeCapability, index$a_findCachedToolOutputByIdempotencyKey as findCachedToolOutputByIdempotencyKey, index$a_getToolContextRuntimeBinding as getToolContextRuntimeBinding, index$a_normalizeToolArgs as normalizeToolArgs, index$a_readToolContextModelId as readToolContextModelId, index$a_readToolContextPersistedHistory as readToolContextPersistedHistory, index$a_readToolContextRunContext as readToolContextRunContext, index$a_readToolContextUserQuery as readToolContextUserQuery, index$a_readToolContextWorkingHistory as readToolContextWorkingHistory, index$a_stripRuntimeReservedToolContextPatch as stripRuntimeReservedToolContextPatch };
492
+ declare const index$b_AgentTool: typeof AgentTool;
493
+ declare const index$b_BaseTool: typeof BaseTool;
494
+ declare const index$b_CommonParameterTypes: typeof CommonParameterTypes;
495
+ type index$b_ContextCheckpointPayload = ContextCheckpointPayload;
496
+ type index$b_ContextCheckpointPayloadExtension = ContextCheckpointPayloadExtension;
497
+ type index$b_ContextCheckpointTool = ContextCheckpointTool;
498
+ declare const index$b_ContextCheckpointTool: typeof ContextCheckpointTool;
499
+ type index$b_ContextCheckpointToolArgs = ContextCheckpointToolArgs;
500
+ type index$b_ContextCheckpointToolHookParams = ContextCheckpointToolHookParams;
501
+ type index$b_ContextCheckpointToolOptions = ContextCheckpointToolOptions;
502
+ declare const index$b_ConversationArtifactContext: typeof ConversationArtifactContext;
503
+ declare const index$b_JsonObjectSchema: typeof JsonObjectSchema;
504
+ declare const index$b_ObservationPreviewContext: typeof ObservationPreviewContext;
505
+ declare const index$b_ObservationPreviewMeta: typeof ObservationPreviewMeta;
506
+ declare const index$b_ObservationPreviewPort: typeof ObservationPreviewPort;
507
+ declare const index$b_ObservationPreviewResult: typeof ObservationPreviewResult;
508
+ declare const index$b_OpenAIToolSchema: typeof OpenAIToolSchema;
509
+ declare const index$b_StructuredToolResult: typeof StructuredToolResult;
510
+ declare const index$b_ToolArgs: typeof ToolArgs;
511
+ declare const index$b_ToolCallResult: typeof ToolCallResult;
512
+ declare const index$b_ToolCatalogPort: typeof ToolCatalogPort;
513
+ declare const index$b_ToolContextCompatibilityFields: typeof ToolContextCompatibilityFields;
514
+ declare const index$b_ToolContextConversationView: typeof ToolContextConversationView;
515
+ declare const index$b_ToolContextPatch: typeof ToolContextPatch;
516
+ declare const index$b_ToolControlInfo: typeof ToolControlInfo;
517
+ declare const index$b_ToolDisplayOptions: typeof ToolDisplayOptions;
518
+ declare const index$b_ToolExecutionContext: typeof ToolExecutionContext;
519
+ declare const index$b_ToolExecutionPort: typeof ToolExecutionPort;
520
+ declare const index$b_ToolExecutionResult: typeof ToolExecutionResult;
521
+ declare const index$b_ToolLayoutOptions: typeof ToolLayoutOptions;
522
+ declare const index$b_ToolParameterProperty: typeof ToolParameterProperty;
523
+ declare const index$b_ToolParameterSchema: typeof ToolParameterSchema;
524
+ declare const index$b_ToolPresentationPort: typeof ToolPresentationPort;
525
+ declare const index$b_ToolRegistryEntry: typeof ToolRegistryEntry;
526
+ declare const index$b_ToolResult: typeof ToolResult;
527
+ declare const index$b_ToolRuntimeDefinition: typeof ToolRuntimeDefinition;
528
+ declare const index$b_ToolRuntimePort: typeof ToolRuntimePort;
529
+ declare const index$b_ToolSchemaContext: typeof ToolSchemaContext;
530
+ declare const index$b_UnifiedToolResult: typeof UnifiedToolResult;
531
+ declare const index$b_computeToolIdempotencyKey: typeof computeToolIdempotencyKey;
532
+ declare const index$b_copyToolContextRuntimeCapability: typeof copyToolContextRuntimeCapability;
533
+ declare const index$b_createContextCheckpointTool: typeof createContextCheckpointTool;
534
+ declare const index$b_ensureToolContextRuntimeCapability: typeof ensureToolContextRuntimeCapability;
535
+ declare const index$b_findCachedToolOutputByIdempotencyKey: typeof findCachedToolOutputByIdempotencyKey;
536
+ declare const index$b_getToolContextRuntimeBinding: typeof getToolContextRuntimeBinding;
537
+ declare const index$b_normalizeToolArgs: typeof normalizeToolArgs;
538
+ declare const index$b_readToolContextModelId: typeof readToolContextModelId;
539
+ declare const index$b_readToolContextPersistedHistory: typeof readToolContextPersistedHistory;
540
+ declare const index$b_readToolContextRunContext: typeof readToolContextRunContext;
541
+ declare const index$b_readToolContextUserQuery: typeof readToolContextUserQuery;
542
+ declare const index$b_readToolContextWorkingHistory: typeof readToolContextWorkingHistory;
543
+ declare const index$b_stripRuntimeReservedToolContextPatch: typeof stripRuntimeReservedToolContextPatch;
544
+ declare namespace index$b {
545
+ export { index$b_AgentTool as AgentTool, index$b_BaseTool as BaseTool, index$b_CommonParameterTypes as CommonParameterTypes, type index$b_ContextCheckpointPayload as ContextCheckpointPayload, type index$b_ContextCheckpointPayloadExtension as ContextCheckpointPayloadExtension, index$b_ContextCheckpointTool as ContextCheckpointTool, type index$b_ContextCheckpointToolArgs as ContextCheckpointToolArgs, type index$b_ContextCheckpointToolHookParams as ContextCheckpointToolHookParams, type index$b_ContextCheckpointToolOptions as ContextCheckpointToolOptions, index$b_ConversationArtifactContext as ConversationArtifactContext, index$b_JsonObjectSchema as JsonObjectSchema, index$b_ObservationPreviewContext as ObservationPreviewContext, index$b_ObservationPreviewMeta as ObservationPreviewMeta, index$b_ObservationPreviewPort as ObservationPreviewPort, index$b_ObservationPreviewResult as ObservationPreviewResult, index$b_OpenAIToolSchema as OpenAIToolSchema, index$b_StructuredToolResult as StructuredToolResult, index$b_ToolArgs as ToolArgs, index$b_ToolCallResult as ToolCallResult, index$b_ToolCatalogPort as ToolCatalogPort, index$b_ToolContextCompatibilityFields as ToolContextCompatibilityFields, index$b_ToolContextConversationView as ToolContextConversationView, index$b_ToolContextPatch as ToolContextPatch, index$b_ToolControlInfo as ToolControlInfo, index$b_ToolDisplayOptions as ToolDisplayOptions, index$b_ToolExecutionContext as ToolExecutionContext, index$b_ToolExecutionPort as ToolExecutionPort, index$b_ToolExecutionResult as ToolExecutionResult, index$b_ToolLayoutOptions as ToolLayoutOptions, index$b_ToolParameterProperty as ToolParameterProperty, index$b_ToolParameterSchema as ToolParameterSchema, index$b_ToolPresentationPort as ToolPresentationPort, index$b_ToolRegistryEntry as ToolRegistryEntry, index$b_ToolResult as ToolResult, index$b_ToolRuntimeDefinition as ToolRuntimeDefinition, index$b_ToolRuntimePort as ToolRuntimePort, index$b_ToolSchemaContext as ToolSchemaContext, index$b_UnifiedToolResult as UnifiedToolResult, index$b_computeToolIdempotencyKey as computeToolIdempotencyKey, index$b_copyToolContextRuntimeCapability as copyToolContextRuntimeCapability, index$b_createContextCheckpointTool as createContextCheckpointTool, index$b_ensureToolContextRuntimeCapability as ensureToolContextRuntimeCapability, index$b_findCachedToolOutputByIdempotencyKey as findCachedToolOutputByIdempotencyKey, index$b_getToolContextRuntimeBinding as getToolContextRuntimeBinding, index$b_normalizeToolArgs as normalizeToolArgs, index$b_readToolContextModelId as readToolContextModelId, index$b_readToolContextPersistedHistory as readToolContextPersistedHistory, index$b_readToolContextRunContext as readToolContextRunContext, index$b_readToolContextUserQuery as readToolContextUserQuery, index$b_readToolContextWorkingHistory as readToolContextWorkingHistory, index$b_stripRuntimeReservedToolContextPatch as stripRuntimeReservedToolContextPatch };
527
546
  }
528
547
 
529
548
  /**
@@ -632,18 +651,18 @@ interface CreateRuntimeErrorEventInput {
632
651
  */
633
652
  declare function createRuntimeErrorEvent(input: CreateRuntimeErrorEventInput): ErrorEvent;
634
653
 
635
- declare const index$9_EventBus: typeof EventBus;
636
- type index$9_EventSequencer = EventSequencer;
637
- declare const index$9_EventSequencer: typeof EventSequencer;
638
- declare const index$9_createRuntimeErrorEvent: typeof createRuntimeErrorEvent;
639
- declare namespace index$9 {
640
- export { index$9_EventBus as EventBus, index$9_EventSequencer as EventSequencer, index$9_createRuntimeErrorEvent as createRuntimeErrorEvent };
654
+ declare const index$a_EventBus: typeof EventBus;
655
+ type index$a_EventSequencer = EventSequencer;
656
+ declare const index$a_EventSequencer: typeof EventSequencer;
657
+ declare const index$a_createRuntimeErrorEvent: typeof createRuntimeErrorEvent;
658
+ declare namespace index$a {
659
+ export { index$a_EventBus as EventBus, index$a_EventSequencer as EventSequencer, index$a_createRuntimeErrorEvent as createRuntimeErrorEvent };
641
660
  }
642
661
 
643
- declare const index$8_RunContext: typeof RunContext;
644
- declare const index$8_createDefaultRunContext: typeof createDefaultRunContext;
645
- declare namespace index$8 {
646
- export { index$8_RunContext as RunContext, index$8_createDefaultRunContext as createDefaultRunContext };
662
+ declare const index$9_RunContext: typeof RunContext;
663
+ declare const index$9_createDefaultRunContext: typeof createDefaultRunContext;
664
+ declare namespace index$9 {
665
+ export { index$9_RunContext as RunContext, index$9_createDefaultRunContext as createDefaultRunContext };
647
666
  }
648
667
 
649
668
  /**
@@ -727,17 +746,17 @@ declare function pickChildRunSeedHistory(params: {
727
746
  historyPolicy?: ChildRunHistoryPolicy;
728
747
  }): RuntimeEvent[];
729
748
 
730
- type index$7_ChildRunAgentConfig = ChildRunAgentConfig;
731
- type index$7_ChildRunInvokeConfig = ChildRunInvokeConfig;
732
- type index$7_ChildRunInvokeResult = ChildRunInvokeResult;
733
- type index$7_ChildRunInvoker = ChildRunInvoker;
734
- declare const index$7_ChildRunInvoker: typeof ChildRunInvoker;
735
- declare const index$7_ChildRunInvokerPort: typeof ChildRunInvokerPort;
736
- declare const index$7_ChildRunRequest: typeof ChildRunRequest;
737
- declare const index$7_ChildRunResult: typeof ChildRunResult;
738
- declare const index$7_pickChildRunSeedHistory: typeof pickChildRunSeedHistory;
739
- declare namespace index$7 {
740
- export { type index$7_ChildRunAgentConfig as ChildRunAgentConfig, type index$7_ChildRunInvokeConfig as ChildRunInvokeConfig, type index$7_ChildRunInvokeResult as ChildRunInvokeResult, index$7_ChildRunInvoker as ChildRunInvoker, index$7_ChildRunInvokerPort as ChildRunInvokerPort, index$7_ChildRunRequest as ChildRunRequest, index$7_ChildRunResult as ChildRunResult, index$7_pickChildRunSeedHistory as pickChildRunSeedHistory };
749
+ type index$8_ChildRunAgentConfig = ChildRunAgentConfig;
750
+ type index$8_ChildRunInvokeConfig = ChildRunInvokeConfig;
751
+ type index$8_ChildRunInvokeResult = ChildRunInvokeResult;
752
+ type index$8_ChildRunInvoker = ChildRunInvoker;
753
+ declare const index$8_ChildRunInvoker: typeof ChildRunInvoker;
754
+ declare const index$8_ChildRunInvokerPort: typeof ChildRunInvokerPort;
755
+ declare const index$8_ChildRunRequest: typeof ChildRunRequest;
756
+ declare const index$8_ChildRunResult: typeof ChildRunResult;
757
+ declare const index$8_pickChildRunSeedHistory: typeof pickChildRunSeedHistory;
758
+ declare namespace index$8 {
759
+ export { type index$8_ChildRunAgentConfig as ChildRunAgentConfig, type index$8_ChildRunInvokeConfig as ChildRunInvokeConfig, type index$8_ChildRunInvokeResult as ChildRunInvokeResult, index$8_ChildRunInvoker as ChildRunInvoker, index$8_ChildRunInvokerPort as ChildRunInvokerPort, index$8_ChildRunRequest as ChildRunRequest, index$8_ChildRunResult as ChildRunResult, index$8_pickChildRunSeedHistory as pickChildRunSeedHistory };
741
760
  }
742
761
 
743
762
  interface EventBusSubRunTracePublisherOptions {
@@ -797,11 +816,11 @@ declare class EventBusSubRunTracePublisher implements SubRunTracePublisher {
797
816
  publish(envelope: SubRunTraceEnvelope): void;
798
817
  }
799
818
 
800
- type index$6_EventBusSubRunTracePublisher = EventBusSubRunTracePublisher;
801
- declare const index$6_EventBusSubRunTracePublisher: typeof EventBusSubRunTracePublisher;
802
- declare const index$6_SubRunTracePublisher: typeof SubRunTracePublisher;
803
- declare namespace index$6 {
804
- export { index$6_EventBusSubRunTracePublisher as EventBusSubRunTracePublisher, index$6_SubRunTracePublisher as SubRunTracePublisher };
819
+ type index$7_EventBusSubRunTracePublisher = EventBusSubRunTracePublisher;
820
+ declare const index$7_EventBusSubRunTracePublisher: typeof EventBusSubRunTracePublisher;
821
+ declare const index$7_SubRunTracePublisher: typeof SubRunTracePublisher;
822
+ declare namespace index$7 {
823
+ export { index$7_EventBusSubRunTracePublisher as EventBusSubRunTracePublisher, index$7_SubRunTracePublisher as SubRunTracePublisher };
805
824
  }
806
825
 
807
826
  /**
@@ -901,13 +920,13 @@ declare class RequestEnricherRegistry {
901
920
  }
902
921
  declare const requestEnricherRegistry: RequestEnricherRegistry;
903
922
 
904
- type index$5_EnrichmentContext = EnrichmentContext;
905
- type index$5_EnrichmentResult = EnrichmentResult;
906
- type index$5_RegistryEnrichmentResult = RegistryEnrichmentResult;
907
- type index$5_RequestEnricher = RequestEnricher;
908
- declare const index$5_requestEnricherRegistry: typeof requestEnricherRegistry;
909
- declare namespace index$5 {
910
- export { type index$5_EnrichmentContext as EnrichmentContext, type index$5_EnrichmentResult as EnrichmentResult, type index$5_RegistryEnrichmentResult as RegistryEnrichmentResult, type index$5_RequestEnricher as RequestEnricher, index$5_requestEnricherRegistry as requestEnricherRegistry };
923
+ type index$6_EnrichmentContext = EnrichmentContext;
924
+ type index$6_EnrichmentResult = EnrichmentResult;
925
+ type index$6_RegistryEnrichmentResult = RegistryEnrichmentResult;
926
+ type index$6_RequestEnricher = RequestEnricher;
927
+ declare const index$6_requestEnricherRegistry: typeof requestEnricherRegistry;
928
+ declare namespace index$6 {
929
+ export { type index$6_EnrichmentContext as EnrichmentContext, type index$6_EnrichmentResult as EnrichmentResult, type index$6_RegistryEnrichmentResult as RegistryEnrichmentResult, type index$6_RequestEnricher as RequestEnricher, index$6_requestEnricherRegistry as requestEnricherRegistry };
911
930
  }
912
931
 
913
932
  declare class NotImplementedError extends Error {
@@ -921,56 +940,56 @@ declare class RunAlreadyRegisteredError extends Error {
921
940
  constructor(runId: string);
922
941
  }
923
942
 
924
- declare const index$4_CancelOpts: typeof CancelOpts;
925
- declare const index$4_DefaultRunHandle: typeof DefaultRunHandle;
926
- declare const index$4_DefaultRunHandleOptions: typeof DefaultRunHandleOptions;
927
- declare const index$4_DefaultRunSupervisor: typeof DefaultRunSupervisor;
928
- declare const index$4_DefaultRunSupervisorOptions: typeof DefaultRunSupervisorOptions;
929
- declare const index$4_FindActiveByConversationOptions: typeof FindActiveByConversationOptions;
930
- declare const index$4_ListRunsFilter: typeof ListRunsFilter;
931
- declare const index$4_MemoryRunRegistryStore: typeof MemoryRunRegistryStore;
932
- type index$4_NotImplementedError = NotImplementedError;
933
- declare const index$4_NotImplementedError: typeof NotImplementedError;
934
- type index$4_RunAlreadyRegisteredError = RunAlreadyRegisteredError;
935
- declare const index$4_RunAlreadyRegisteredError: typeof RunAlreadyRegisteredError;
936
- declare const index$4_RunAwaitingUserPatch: typeof RunAwaitingUserPatch;
937
- declare const index$4_RunCost: typeof RunCost;
938
- declare const index$4_RunCostCollector: typeof RunCostCollector;
939
- declare const index$4_RunExecutionContext: typeof RunExecutionContext;
940
- declare const index$4_RunExecutorPort: typeof RunExecutorPort;
941
- declare const index$4_RunFailureInfo: typeof RunFailureInfo;
942
- declare const index$4_RunHandle: typeof RunHandle;
943
- declare const index$4_RunLifecyclePatch: typeof RunLifecyclePatch;
944
- declare const index$4_RunMeta: typeof RunMeta;
945
- type index$4_RunNotFoundError = RunNotFoundError;
946
- declare const index$4_RunNotFoundError: typeof RunNotFoundError;
947
- declare const index$4_RunObserveFilter: typeof RunObserveFilter;
948
- declare const index$4_RunOutcome: typeof RunOutcome;
949
- declare const index$4_RunRecord: typeof RunRecord;
950
- declare const index$4_RunRegistrationSpec: typeof RunRegistrationSpec;
951
- declare const index$4_RunRegistryStore: typeof RunRegistryStore;
952
- declare const index$4_RunRequestSnapshot: typeof RunRequestSnapshot;
953
- declare const index$4_RunSnapshot: typeof RunSnapshot;
954
- declare const index$4_RunStatus: typeof RunStatus;
955
- declare const index$4_RunSupervisor: typeof RunSupervisor;
956
- declare const index$4_RunTerminalError: typeof RunTerminalError;
957
- declare const index$4_RunTerminalEvent: typeof RunTerminalEvent;
958
- declare const index$4_RunTerminalStatus: typeof RunTerminalStatus;
959
- declare const index$4_RunWaitForTerminalOptions: typeof RunWaitForTerminalOptions;
960
- declare const index$4_runMetaFromRecord: typeof runMetaFromRecord;
961
- declare namespace index$4 {
962
- export { index$4_CancelOpts as CancelOpts, index$4_DefaultRunHandle as DefaultRunHandle, index$4_DefaultRunHandleOptions as DefaultRunHandleOptions, index$4_DefaultRunSupervisor as DefaultRunSupervisor, index$4_DefaultRunSupervisorOptions as DefaultRunSupervisorOptions, index$4_FindActiveByConversationOptions as FindActiveByConversationOptions, index$4_ListRunsFilter as ListRunsFilter, index$4_MemoryRunRegistryStore as MemoryRunRegistryStore, index$4_NotImplementedError as NotImplementedError, index$4_RunAlreadyRegisteredError as RunAlreadyRegisteredError, index$4_RunAwaitingUserPatch as RunAwaitingUserPatch, index$4_RunCost as RunCost, index$4_RunCostCollector as RunCostCollector, index$4_RunExecutionContext as RunExecutionContext, index$4_RunExecutorPort as RunExecutorPort, index$4_RunFailureInfo as RunFailureInfo, index$4_RunHandle as RunHandle, index$4_RunLifecyclePatch as RunLifecyclePatch, index$4_RunMeta as RunMeta, index$4_RunNotFoundError as RunNotFoundError, index$4_RunObserveFilter as RunObserveFilter, index$4_RunOutcome as RunOutcome, index$4_RunRecord as RunRecord, index$4_RunRegistrationSpec as RunRegistrationSpec, index$4_RunRegistryStore as RunRegistryStore, index$4_RunRequestSnapshot as RunRequestSnapshot, index$4_RunSnapshot as RunSnapshot, index$4_RunStatus as RunStatus, index$4_RunSupervisor as RunSupervisor, index$4_RunTerminalError as RunTerminalError, index$4_RunTerminalEvent as RunTerminalEvent, index$4_RunTerminalStatus as RunTerminalStatus, index$4_RunWaitForTerminalOptions as RunWaitForTerminalOptions, index$4_runMetaFromRecord as runMetaFromRecord };
943
+ declare const index$5_CancelOpts: typeof CancelOpts;
944
+ declare const index$5_DefaultRunHandle: typeof DefaultRunHandle;
945
+ declare const index$5_DefaultRunHandleOptions: typeof DefaultRunHandleOptions;
946
+ declare const index$5_DefaultRunSupervisor: typeof DefaultRunSupervisor;
947
+ declare const index$5_DefaultRunSupervisorOptions: typeof DefaultRunSupervisorOptions;
948
+ declare const index$5_FindActiveByConversationOptions: typeof FindActiveByConversationOptions;
949
+ declare const index$5_ListRunsFilter: typeof ListRunsFilter;
950
+ declare const index$5_MemoryRunRegistryStore: typeof MemoryRunRegistryStore;
951
+ type index$5_NotImplementedError = NotImplementedError;
952
+ declare const index$5_NotImplementedError: typeof NotImplementedError;
953
+ type index$5_RunAlreadyRegisteredError = RunAlreadyRegisteredError;
954
+ declare const index$5_RunAlreadyRegisteredError: typeof RunAlreadyRegisteredError;
955
+ declare const index$5_RunAwaitingUserPatch: typeof RunAwaitingUserPatch;
956
+ declare const index$5_RunCost: typeof RunCost;
957
+ declare const index$5_RunCostCollector: typeof RunCostCollector;
958
+ declare const index$5_RunExecutionContext: typeof RunExecutionContext;
959
+ declare const index$5_RunExecutorPort: typeof RunExecutorPort;
960
+ declare const index$5_RunFailureInfo: typeof RunFailureInfo;
961
+ declare const index$5_RunHandle: typeof RunHandle;
962
+ declare const index$5_RunLifecyclePatch: typeof RunLifecyclePatch;
963
+ declare const index$5_RunMeta: typeof RunMeta;
964
+ type index$5_RunNotFoundError = RunNotFoundError;
965
+ declare const index$5_RunNotFoundError: typeof RunNotFoundError;
966
+ declare const index$5_RunObserveFilter: typeof RunObserveFilter;
967
+ declare const index$5_RunOutcome: typeof RunOutcome;
968
+ declare const index$5_RunRecord: typeof RunRecord;
969
+ declare const index$5_RunRegistrationSpec: typeof RunRegistrationSpec;
970
+ declare const index$5_RunRegistryStore: typeof RunRegistryStore;
971
+ declare const index$5_RunRequestSnapshot: typeof RunRequestSnapshot;
972
+ declare const index$5_RunSnapshot: typeof RunSnapshot;
973
+ declare const index$5_RunStatus: typeof RunStatus;
974
+ declare const index$5_RunSupervisor: typeof RunSupervisor;
975
+ declare const index$5_RunTerminalError: typeof RunTerminalError;
976
+ declare const index$5_RunTerminalEvent: typeof RunTerminalEvent;
977
+ declare const index$5_RunTerminalStatus: typeof RunTerminalStatus;
978
+ declare const index$5_RunWaitForTerminalOptions: typeof RunWaitForTerminalOptions;
979
+ declare const index$5_runMetaFromRecord: typeof runMetaFromRecord;
980
+ declare namespace index$5 {
981
+ export { index$5_CancelOpts as CancelOpts, index$5_DefaultRunHandle as DefaultRunHandle, index$5_DefaultRunHandleOptions as DefaultRunHandleOptions, index$5_DefaultRunSupervisor as DefaultRunSupervisor, index$5_DefaultRunSupervisorOptions as DefaultRunSupervisorOptions, index$5_FindActiveByConversationOptions as FindActiveByConversationOptions, index$5_ListRunsFilter as ListRunsFilter, index$5_MemoryRunRegistryStore as MemoryRunRegistryStore, index$5_NotImplementedError as NotImplementedError, index$5_RunAlreadyRegisteredError as RunAlreadyRegisteredError, index$5_RunAwaitingUserPatch as RunAwaitingUserPatch, index$5_RunCost as RunCost, index$5_RunCostCollector as RunCostCollector, index$5_RunExecutionContext as RunExecutionContext, index$5_RunExecutorPort as RunExecutorPort, index$5_RunFailureInfo as RunFailureInfo, index$5_RunHandle as RunHandle, index$5_RunLifecyclePatch as RunLifecyclePatch, index$5_RunMeta as RunMeta, index$5_RunNotFoundError as RunNotFoundError, index$5_RunObserveFilter as RunObserveFilter, index$5_RunOutcome as RunOutcome, index$5_RunRecord as RunRecord, index$5_RunRegistrationSpec as RunRegistrationSpec, index$5_RunRegistryStore as RunRegistryStore, index$5_RunRequestSnapshot as RunRequestSnapshot, index$5_RunSnapshot as RunSnapshot, index$5_RunStatus as RunStatus, index$5_RunSupervisor as RunSupervisor, index$5_RunTerminalError as RunTerminalError, index$5_RunTerminalEvent as RunTerminalEvent, index$5_RunTerminalStatus as RunTerminalStatus, index$5_RunWaitForTerminalOptions as RunWaitForTerminalOptions, index$5_runMetaFromRecord as runMetaFromRecord };
963
982
  }
964
983
 
965
984
  declare const noopTelemetry: TelemetryPort;
966
985
 
967
- declare const index$3_TELEMETRY_EVENT_KINDS: typeof TELEMETRY_EVENT_KINDS;
968
- declare const index$3_TelemetryEvent: typeof TelemetryEvent;
969
- declare const index$3_TelemetryPort: typeof TelemetryPort;
970
- declare const index$3_TelemetryScope: typeof TelemetryScope;
971
- declare const index$3_noopTelemetry: typeof noopTelemetry;
972
- declare namespace index$3 {
973
- export { index$3_TELEMETRY_EVENT_KINDS as TELEMETRY_EVENT_KINDS, index$3_TelemetryEvent as TelemetryEvent, index$3_TelemetryPort as TelemetryPort, index$3_TelemetryScope as TelemetryScope, index$3_noopTelemetry as noopTelemetry };
986
+ declare const index$4_TELEMETRY_EVENT_KINDS: typeof TELEMETRY_EVENT_KINDS;
987
+ declare const index$4_TelemetryEvent: typeof TelemetryEvent;
988
+ declare const index$4_TelemetryPort: typeof TelemetryPort;
989
+ declare const index$4_TelemetryScope: typeof TelemetryScope;
990
+ declare const index$4_noopTelemetry: typeof noopTelemetry;
991
+ declare namespace index$4 {
992
+ export { index$4_TELEMETRY_EVENT_KINDS as TELEMETRY_EVENT_KINDS, index$4_TelemetryEvent as TelemetryEvent, index$4_TelemetryPort as TelemetryPort, index$4_TelemetryScope as TelemetryScope, index$4_noopTelemetry as noopTelemetry };
974
993
  }
975
994
 
976
995
  interface ConsoleAuditOptions {
@@ -1063,29 +1082,29 @@ declare function createFileAudit(options: FileAuditOptions): AuditPort;
1063
1082
 
1064
1083
  declare const noopAudit: AuditPort;
1065
1084
 
1066
- type index$2_AuditEnvelopePersistenceError = AuditEnvelopePersistenceError;
1067
- declare const index$2_AuditEnvelopePersistenceError: typeof AuditEnvelopePersistenceError;
1068
- type index$2_CompositeAuditOptions = CompositeAuditOptions;
1069
- type index$2_CompositeAuditPort = CompositeAuditPort;
1070
- declare const index$2_CompositeAuditPort: typeof CompositeAuditPort;
1071
- type index$2_ConsoleAuditOptions = ConsoleAuditOptions;
1072
- type index$2_EmitAuditEnvelopeParams = EmitAuditEnvelopeParams;
1073
- type index$2_EventStoreAuditOptions = EventStoreAuditOptions;
1074
- type index$2_EventStoreAuditPort = EventStoreAuditPort;
1075
- declare const index$2_EventStoreAuditPort: typeof EventStoreAuditPort;
1076
- type index$2_FileAuditOptions = FileAuditOptions;
1077
- type index$2_FileAuditPort = FileAuditPort;
1078
- declare const index$2_FileAuditPort: typeof FileAuditPort;
1079
- declare const index$2_consoleAudit: typeof consoleAudit;
1080
- declare const index$2_createCompositeAudit: typeof createCompositeAudit;
1081
- declare const index$2_createConsoleAudit: typeof createConsoleAudit;
1082
- declare const index$2_createEventStoreAudit: typeof createEventStoreAudit;
1083
- declare const index$2_createFileAudit: typeof createFileAudit;
1084
- declare const index$2_emitAuditEnvelope: typeof emitAuditEnvelope;
1085
- declare const index$2_emitSandboxDecisionAudit: typeof emitSandboxDecisionAudit;
1086
- declare const index$2_noopAudit: typeof noopAudit;
1087
- declare namespace index$2 {
1088
- export { index$2_AuditEnvelopePersistenceError as AuditEnvelopePersistenceError, type index$2_CompositeAuditOptions as CompositeAuditOptions, index$2_CompositeAuditPort as CompositeAuditPort, type index$2_ConsoleAuditOptions as ConsoleAuditOptions, type index$2_EmitAuditEnvelopeParams as EmitAuditEnvelopeParams, type index$2_EventStoreAuditOptions as EventStoreAuditOptions, index$2_EventStoreAuditPort as EventStoreAuditPort, type index$2_FileAuditOptions as FileAuditOptions, index$2_FileAuditPort as FileAuditPort, index$2_consoleAudit as consoleAudit, index$2_createCompositeAudit as createCompositeAudit, index$2_createConsoleAudit as createConsoleAudit, index$2_createEventStoreAudit as createEventStoreAudit, index$2_createFileAudit as createFileAudit, index$2_emitAuditEnvelope as emitAuditEnvelope, index$2_emitSandboxDecisionAudit as emitSandboxDecisionAudit, index$2_noopAudit as noopAudit };
1085
+ type index$3_AuditEnvelopePersistenceError = AuditEnvelopePersistenceError;
1086
+ declare const index$3_AuditEnvelopePersistenceError: typeof AuditEnvelopePersistenceError;
1087
+ type index$3_CompositeAuditOptions = CompositeAuditOptions;
1088
+ type index$3_CompositeAuditPort = CompositeAuditPort;
1089
+ declare const index$3_CompositeAuditPort: typeof CompositeAuditPort;
1090
+ type index$3_ConsoleAuditOptions = ConsoleAuditOptions;
1091
+ type index$3_EmitAuditEnvelopeParams = EmitAuditEnvelopeParams;
1092
+ type index$3_EventStoreAuditOptions = EventStoreAuditOptions;
1093
+ type index$3_EventStoreAuditPort = EventStoreAuditPort;
1094
+ declare const index$3_EventStoreAuditPort: typeof EventStoreAuditPort;
1095
+ type index$3_FileAuditOptions = FileAuditOptions;
1096
+ type index$3_FileAuditPort = FileAuditPort;
1097
+ declare const index$3_FileAuditPort: typeof FileAuditPort;
1098
+ declare const index$3_consoleAudit: typeof consoleAudit;
1099
+ declare const index$3_createCompositeAudit: typeof createCompositeAudit;
1100
+ declare const index$3_createConsoleAudit: typeof createConsoleAudit;
1101
+ declare const index$3_createEventStoreAudit: typeof createEventStoreAudit;
1102
+ declare const index$3_createFileAudit: typeof createFileAudit;
1103
+ declare const index$3_emitAuditEnvelope: typeof emitAuditEnvelope;
1104
+ declare const index$3_emitSandboxDecisionAudit: typeof emitSandboxDecisionAudit;
1105
+ declare const index$3_noopAudit: typeof noopAudit;
1106
+ declare namespace index$3 {
1107
+ export { index$3_AuditEnvelopePersistenceError as AuditEnvelopePersistenceError, type index$3_CompositeAuditOptions as CompositeAuditOptions, index$3_CompositeAuditPort as CompositeAuditPort, type index$3_ConsoleAuditOptions as ConsoleAuditOptions, type index$3_EmitAuditEnvelopeParams as EmitAuditEnvelopeParams, type index$3_EventStoreAuditOptions as EventStoreAuditOptions, index$3_EventStoreAuditPort as EventStoreAuditPort, type index$3_FileAuditOptions as FileAuditOptions, index$3_FileAuditPort as FileAuditPort, index$3_consoleAudit as consoleAudit, index$3_createCompositeAudit as createCompositeAudit, index$3_createConsoleAudit as createConsoleAudit, index$3_createEventStoreAudit as createEventStoreAudit, index$3_createFileAudit as createFileAudit, index$3_emitAuditEnvelope as emitAuditEnvelope, index$3_emitSandboxDecisionAudit as emitSandboxDecisionAudit, index$3_noopAudit as noopAudit };
1089
1108
  }
1090
1109
 
1091
1110
  /**
@@ -1212,38 +1231,74 @@ declare const budgetWarningTrigger: SystemReminderTriggerEvaluator;
1212
1231
  declare const agentHasToolTrigger: SystemReminderTriggerEvaluator;
1213
1232
  declare const BUILTIN_SYSTEM_REMINDER_TRIGGERS: Record<string, SystemReminderTriggerEvaluator>;
1214
1233
 
1215
- declare const index$1_BUILTIN_SYSTEM_REMINDER_TEMPLATES: typeof BUILTIN_SYSTEM_REMINDER_TEMPLATES;
1216
- declare const index$1_BUILTIN_SYSTEM_REMINDER_TRIGGERS: typeof BUILTIN_SYSTEM_REMINDER_TRIGGERS;
1217
- declare const index$1_DEFAULT_CONTEXT_CHECKPOINT_TOOL_NAME: typeof DEFAULT_CONTEXT_CHECKPOINT_TOOL_NAME;
1218
- declare const index$1_SYSTEM_REMINDER_RULES: typeof SYSTEM_REMINDER_RULES;
1219
- type index$1_SystemReminderContentTemplate = SystemReminderContentTemplate;
1220
- type index$1_SystemReminderContext = SystemReminderContext;
1221
- type index$1_SystemReminderRegistry = SystemReminderRegistry;
1222
- declare const index$1_SystemReminderRegistry: typeof SystemReminderRegistry;
1223
- type index$1_SystemReminderRule = SystemReminderRule;
1224
- type index$1_SystemReminderRuleDefinition = SystemReminderRuleDefinition;
1225
- type index$1_SystemReminderTriggerEvaluator = SystemReminderTriggerEvaluator;
1226
- declare const index$1_agentHasToolTrigger: typeof agentHasToolTrigger;
1227
- declare const index$1_applySystemReminders: typeof applySystemReminders;
1228
- declare const index$1_budgetWarningTrigger: typeof budgetWarningTrigger;
1229
- declare const index$1_contextBudgetWarningTemplate: typeof contextBudgetWarningTemplate;
1230
- declare const index$1_countToolCallsInCurrentRequest: typeof countToolCallsInCurrentRequest;
1231
- declare const index$1_createDefaultSystemReminderRegistry: typeof createDefaultSystemReminderRegistry;
1232
- declare const index$1_createSystemReminderRules: typeof createSystemReminderRules;
1233
- declare const index$1_defaultSystemReminderRegistry: typeof defaultSystemReminderRegistry;
1234
- declare const index$1_lastStepsHintTemplate: typeof lastStepsHintTemplate;
1235
- declare const index$1_maxStepsForceFinalAnswerTemplate: typeof maxStepsForceFinalAnswerTemplate;
1236
- declare const index$1_periodicTaskstateReflectionTemplate: typeof periodicTaskstateReflectionTemplate;
1237
- declare const index$1_phaseEqualsTrigger: typeof phaseEqualsTrigger;
1238
- declare const index$1_readContextCheckpointToolName: typeof readContextCheckpointToolName;
1239
- declare const index$1_readNonEmptyStrings: typeof readNonEmptyStrings;
1240
- declare const index$1_remainingStepsLeqTrigger: typeof remainingStepsLeqTrigger;
1241
- declare const index$1_stepCountModuloTrigger: typeof stepCountModuloTrigger;
1242
- declare const index$1_toDisplayStep: typeof toDisplayStep;
1243
- declare const index$1_toolCallStreakTemplate: typeof toolCallStreakTemplate;
1244
- declare const index$1_toolCallStreakTrigger: typeof toolCallStreakTrigger;
1234
+ declare const index$2_BUILTIN_SYSTEM_REMINDER_TEMPLATES: typeof BUILTIN_SYSTEM_REMINDER_TEMPLATES;
1235
+ declare const index$2_BUILTIN_SYSTEM_REMINDER_TRIGGERS: typeof BUILTIN_SYSTEM_REMINDER_TRIGGERS;
1236
+ declare const index$2_DEFAULT_CONTEXT_CHECKPOINT_TOOL_NAME: typeof DEFAULT_CONTEXT_CHECKPOINT_TOOL_NAME;
1237
+ declare const index$2_SYSTEM_REMINDER_RULES: typeof SYSTEM_REMINDER_RULES;
1238
+ type index$2_SystemReminderContentTemplate = SystemReminderContentTemplate;
1239
+ type index$2_SystemReminderContext = SystemReminderContext;
1240
+ type index$2_SystemReminderRegistry = SystemReminderRegistry;
1241
+ declare const index$2_SystemReminderRegistry: typeof SystemReminderRegistry;
1242
+ type index$2_SystemReminderRule = SystemReminderRule;
1243
+ type index$2_SystemReminderRuleDefinition = SystemReminderRuleDefinition;
1244
+ type index$2_SystemReminderTriggerEvaluator = SystemReminderTriggerEvaluator;
1245
+ declare const index$2_agentHasToolTrigger: typeof agentHasToolTrigger;
1246
+ declare const index$2_applySystemReminders: typeof applySystemReminders;
1247
+ declare const index$2_budgetWarningTrigger: typeof budgetWarningTrigger;
1248
+ declare const index$2_contextBudgetWarningTemplate: typeof contextBudgetWarningTemplate;
1249
+ declare const index$2_countToolCallsInCurrentRequest: typeof countToolCallsInCurrentRequest;
1250
+ declare const index$2_createDefaultSystemReminderRegistry: typeof createDefaultSystemReminderRegistry;
1251
+ declare const index$2_createSystemReminderRules: typeof createSystemReminderRules;
1252
+ declare const index$2_defaultSystemReminderRegistry: typeof defaultSystemReminderRegistry;
1253
+ declare const index$2_lastStepsHintTemplate: typeof lastStepsHintTemplate;
1254
+ declare const index$2_maxStepsForceFinalAnswerTemplate: typeof maxStepsForceFinalAnswerTemplate;
1255
+ declare const index$2_periodicTaskstateReflectionTemplate: typeof periodicTaskstateReflectionTemplate;
1256
+ declare const index$2_phaseEqualsTrigger: typeof phaseEqualsTrigger;
1257
+ declare const index$2_readContextCheckpointToolName: typeof readContextCheckpointToolName;
1258
+ declare const index$2_readNonEmptyStrings: typeof readNonEmptyStrings;
1259
+ declare const index$2_remainingStepsLeqTrigger: typeof remainingStepsLeqTrigger;
1260
+ declare const index$2_stepCountModuloTrigger: typeof stepCountModuloTrigger;
1261
+ declare const index$2_toDisplayStep: typeof toDisplayStep;
1262
+ declare const index$2_toolCallStreakTemplate: typeof toolCallStreakTemplate;
1263
+ declare const index$2_toolCallStreakTrigger: typeof toolCallStreakTrigger;
1264
+ declare namespace index$2 {
1265
+ export { index$2_BUILTIN_SYSTEM_REMINDER_TEMPLATES as BUILTIN_SYSTEM_REMINDER_TEMPLATES, index$2_BUILTIN_SYSTEM_REMINDER_TRIGGERS as BUILTIN_SYSTEM_REMINDER_TRIGGERS, index$2_DEFAULT_CONTEXT_CHECKPOINT_TOOL_NAME as DEFAULT_CONTEXT_CHECKPOINT_TOOL_NAME, index$2_SYSTEM_REMINDER_RULES as SYSTEM_REMINDER_RULES, type index$2_SystemReminderContentTemplate as SystemReminderContentTemplate, type index$2_SystemReminderContext as SystemReminderContext, index$2_SystemReminderRegistry as SystemReminderRegistry, type index$2_SystemReminderRule as SystemReminderRule, type index$2_SystemReminderRuleDefinition as SystemReminderRuleDefinition, type index$2_SystemReminderTriggerEvaluator as SystemReminderTriggerEvaluator, index$2_agentHasToolTrigger as agentHasToolTrigger, index$2_applySystemReminders as applySystemReminders, index$2_budgetWarningTrigger as budgetWarningTrigger, index$2_contextBudgetWarningTemplate as contextBudgetWarningTemplate, index$2_countToolCallsInCurrentRequest as countToolCallsInCurrentRequest, index$2_createDefaultSystemReminderRegistry as createDefaultSystemReminderRegistry, index$2_createSystemReminderRules as createSystemReminderRules, index$2_defaultSystemReminderRegistry as defaultSystemReminderRegistry, index$2_lastStepsHintTemplate as lastStepsHintTemplate, index$2_maxStepsForceFinalAnswerTemplate as maxStepsForceFinalAnswerTemplate, index$2_periodicTaskstateReflectionTemplate as periodicTaskstateReflectionTemplate, index$2_phaseEqualsTrigger as phaseEqualsTrigger, index$2_readContextCheckpointToolName as readContextCheckpointToolName, index$2_readNonEmptyStrings as readNonEmptyStrings, index$2_remainingStepsLeqTrigger as remainingStepsLeqTrigger, index$2_stepCountModuloTrigger as stepCountModuloTrigger, index$2_toDisplayStep as toDisplayStep, index$2_toolCallStreakTemplate as toolCallStreakTemplate, index$2_toolCallStreakTrigger as toolCallStreakTrigger };
1266
+ }
1267
+
1268
+ type LedgerEntryScope = Pick<LlmUsageTokenLedgerEntry, 'runId' | 'parentRunId' | 'conversationId' | 'turnId' | 'stepId' | 'route' | 'createdAt'>;
1269
+ interface CreateLlmUsageLedgerEntryInput extends LedgerEntryScope {
1270
+ id: string;
1271
+ modelId?: string;
1272
+ usage: CanonicalLlmUsage;
1273
+ }
1274
+ interface CreateContextComponentLedgerEntryInput extends LedgerEntryScope {
1275
+ id: string;
1276
+ components: readonly ContextTokenComponent[];
1277
+ }
1278
+ declare function aggregateCanonicalUsage(usages: readonly CanonicalLlmUsage[]): TokenUsageTotals | undefined;
1279
+ declare function createLlmUsageLedgerEntry(input: CreateLlmUsageLedgerEntryInput): LlmUsageTokenLedgerEntry;
1280
+ declare function createContextComponentLedgerEntry(input: CreateContextComponentLedgerEntryInput): ContextComponentTokenLedgerEntry;
1281
+ declare function addUsageTotals(left: TokenUsageTotals | undefined, right: TokenUsageTotals | undefined): TokenUsageTotals | undefined;
1282
+ declare function addLedgerAggregate(left: TokenLedgerAggregate, right: TokenLedgerAggregate): TokenLedgerAggregate;
1283
+ declare function aggregateTokenLedgerEntries(entries: readonly TokenLedgerEntry[]): TokenLedgerAggregate;
1284
+ declare function createRunTokenUsageAggregate(input: {
1285
+ ownEntries: readonly TokenLedgerEntry[];
1286
+ childAggregates?: readonly TokenLedgerAggregate[];
1287
+ }): RunTokenUsageAggregate;
1288
+ declare function computeCost(usage: CanonicalLlmUsage, pricing?: TokenPricing): CostBreakdown;
1289
+
1290
+ type index$1_CreateContextComponentLedgerEntryInput = CreateContextComponentLedgerEntryInput;
1291
+ type index$1_CreateLlmUsageLedgerEntryInput = CreateLlmUsageLedgerEntryInput;
1292
+ declare const index$1_addLedgerAggregate: typeof addLedgerAggregate;
1293
+ declare const index$1_addUsageTotals: typeof addUsageTotals;
1294
+ declare const index$1_aggregateCanonicalUsage: typeof aggregateCanonicalUsage;
1295
+ declare const index$1_aggregateTokenLedgerEntries: typeof aggregateTokenLedgerEntries;
1296
+ declare const index$1_computeCost: typeof computeCost;
1297
+ declare const index$1_createContextComponentLedgerEntry: typeof createContextComponentLedgerEntry;
1298
+ declare const index$1_createLlmUsageLedgerEntry: typeof createLlmUsageLedgerEntry;
1299
+ declare const index$1_createRunTokenUsageAggregate: typeof createRunTokenUsageAggregate;
1245
1300
  declare namespace index$1 {
1246
- export { index$1_BUILTIN_SYSTEM_REMINDER_TEMPLATES as BUILTIN_SYSTEM_REMINDER_TEMPLATES, index$1_BUILTIN_SYSTEM_REMINDER_TRIGGERS as BUILTIN_SYSTEM_REMINDER_TRIGGERS, index$1_DEFAULT_CONTEXT_CHECKPOINT_TOOL_NAME as DEFAULT_CONTEXT_CHECKPOINT_TOOL_NAME, index$1_SYSTEM_REMINDER_RULES as SYSTEM_REMINDER_RULES, type index$1_SystemReminderContentTemplate as SystemReminderContentTemplate, type index$1_SystemReminderContext as SystemReminderContext, index$1_SystemReminderRegistry as SystemReminderRegistry, type index$1_SystemReminderRule as SystemReminderRule, type index$1_SystemReminderRuleDefinition as SystemReminderRuleDefinition, type index$1_SystemReminderTriggerEvaluator as SystemReminderTriggerEvaluator, index$1_agentHasToolTrigger as agentHasToolTrigger, index$1_applySystemReminders as applySystemReminders, index$1_budgetWarningTrigger as budgetWarningTrigger, index$1_contextBudgetWarningTemplate as contextBudgetWarningTemplate, index$1_countToolCallsInCurrentRequest as countToolCallsInCurrentRequest, index$1_createDefaultSystemReminderRegistry as createDefaultSystemReminderRegistry, index$1_createSystemReminderRules as createSystemReminderRules, index$1_defaultSystemReminderRegistry as defaultSystemReminderRegistry, index$1_lastStepsHintTemplate as lastStepsHintTemplate, index$1_maxStepsForceFinalAnswerTemplate as maxStepsForceFinalAnswerTemplate, index$1_periodicTaskstateReflectionTemplate as periodicTaskstateReflectionTemplate, index$1_phaseEqualsTrigger as phaseEqualsTrigger, index$1_readContextCheckpointToolName as readContextCheckpointToolName, index$1_readNonEmptyStrings as readNonEmptyStrings, index$1_remainingStepsLeqTrigger as remainingStepsLeqTrigger, index$1_stepCountModuloTrigger as stepCountModuloTrigger, index$1_toDisplayStep as toDisplayStep, index$1_toolCallStreakTemplate as toolCallStreakTemplate, index$1_toolCallStreakTrigger as toolCallStreakTrigger };
1301
+ export { type index$1_CreateContextComponentLedgerEntryInput as CreateContextComponentLedgerEntryInput, type index$1_CreateLlmUsageLedgerEntryInput as CreateLlmUsageLedgerEntryInput, index$1_addLedgerAggregate as addLedgerAggregate, index$1_addUsageTotals as addUsageTotals, index$1_aggregateCanonicalUsage as aggregateCanonicalUsage, index$1_aggregateTokenLedgerEntries as aggregateTokenLedgerEntries, index$1_computeCost as computeCost, index$1_createContextComponentLedgerEntry as createContextComponentLedgerEntry, index$1_createLlmUsageLedgerEntry as createLlmUsageLedgerEntry, index$1_createRunTokenUsageAggregate as createRunTokenUsageAggregate };
1247
1302
  }
1248
1303
 
1249
1304
  /**
@@ -1310,6 +1365,8 @@ type index_ContextCheckpointToolArgs = ContextCheckpointToolArgs;
1310
1365
  type index_ContextCheckpointToolHookParams = ContextCheckpointToolHookParams;
1311
1366
  type index_ContextCheckpointToolOptions = ContextCheckpointToolOptions;
1312
1367
  declare const index_ConversationArtifactContext: typeof ConversationArtifactContext;
1368
+ type index_CreateContextComponentLedgerEntryInput = CreateContextComponentLedgerEntryInput;
1369
+ type index_CreateLlmUsageLedgerEntryInput = CreateLlmUsageLedgerEntryInput;
1313
1370
  declare const index_DEFAULT_CONTEXT_CHECKPOINT_TOOL_NAME: typeof DEFAULT_CONTEXT_CHECKPOINT_TOOL_NAME;
1314
1371
  declare const index_DefaultGraphExecutorOptions: typeof DefaultGraphExecutorOptions;
1315
1372
  type index_DefaultTokenizerPort = DefaultTokenizerPort;
@@ -1416,12 +1473,17 @@ type index_UserNode = UserNode;
1416
1473
  declare const index_UserNode: typeof UserNode;
1417
1474
  type index_WaitUserNode = WaitUserNode;
1418
1475
  declare const index_WaitUserNode: typeof WaitUserNode;
1476
+ declare const index_addLedgerAggregate: typeof addLedgerAggregate;
1477
+ declare const index_addUsageTotals: typeof addUsageTotals;
1419
1478
  declare const index_agentHasToolTrigger: typeof agentHasToolTrigger;
1479
+ declare const index_aggregateCanonicalUsage: typeof aggregateCanonicalUsage;
1480
+ declare const index_aggregateTokenLedgerEntries: typeof aggregateTokenLedgerEntries;
1420
1481
  declare const index_appendStreamingProviderReasoningDetails: typeof appendStreamingProviderReasoningDetails;
1421
1482
  declare const index_applySystemReminders: typeof applySystemReminders;
1422
1483
  declare const index_budgetWarningTrigger: typeof budgetWarningTrigger;
1423
1484
  declare const index_compactProviderReasoningDetails: typeof compactProviderReasoningDetails;
1424
1485
  declare const index_compactReasoningDetailsInValue: typeof compactReasoningDetailsInValue;
1486
+ declare const index_computeCost: typeof computeCost;
1425
1487
  declare const index_computeToolIdempotencyKey: typeof computeToolIdempotencyKey;
1426
1488
  declare const index_consoleAudit: typeof consoleAudit;
1427
1489
  declare const index_contextBudgetWarningTemplate: typeof contextBudgetWarningTemplate;
@@ -1430,13 +1492,16 @@ declare const index_countToolCallsInCurrentRequest: typeof countToolCallsInCurre
1430
1492
  declare const index_createCompositeAudit: typeof createCompositeAudit;
1431
1493
  declare const index_createConsoleAudit: typeof createConsoleAudit;
1432
1494
  declare const index_createContextCheckpointTool: typeof createContextCheckpointTool;
1495
+ declare const index_createContextComponentLedgerEntry: typeof createContextComponentLedgerEntry;
1433
1496
  declare const index_createDefaultGraphExecutor: typeof createDefaultGraphExecutor;
1434
1497
  declare const index_createDefaultSystemReminderRegistry: typeof createDefaultSystemReminderRegistry;
1435
1498
  declare const index_createDefaultTokenizerPort: typeof createDefaultTokenizerPort;
1436
1499
  declare const index_createEventStoreAudit: typeof createEventStoreAudit;
1437
1500
  declare const index_createFileAudit: typeof createFileAudit;
1438
1501
  declare const index_createGraphLoopHarness: typeof createGraphLoopHarness;
1502
+ declare const index_createLlmUsageLedgerEntry: typeof createLlmUsageLedgerEntry;
1439
1503
  declare const index_createMonotonicEventIdFactory: typeof createMonotonicEventIdFactory;
1504
+ declare const index_createRunTokenUsageAggregate: typeof createRunTokenUsageAggregate;
1440
1505
  declare const index_createSystemReminderRules: typeof createSystemReminderRules;
1441
1506
  declare const index_defaultPolicyEngine: typeof defaultPolicyEngine;
1442
1507
  declare const index_defaultSystemReminderRegistry: typeof defaultSystemReminderRegistry;
@@ -1467,7 +1532,7 @@ declare const index_toDisplayStep: typeof toDisplayStep;
1467
1532
  declare const index_toolCallStreakTemplate: typeof toolCallStreakTemplate;
1468
1533
  declare const index_toolCallStreakTrigger: typeof toolCallStreakTrigger;
1469
1534
  declare namespace index {
1470
- export { index_AgentTool as AgentTool, index_AnswerNode as AnswerNode, index_AuditEnvelopePersistenceError as AuditEnvelopePersistenceError, index_BUILTIN_SYSTEM_REMINDER_TEMPLATES as BUILTIN_SYSTEM_REMINDER_TEMPLATES, index_BUILTIN_SYSTEM_REMINDER_TRIGGERS as BUILTIN_SYSTEM_REMINDER_TRIGGERS, index_BaseTool as BaseTool, index_CheckpointListFilter as CheckpointListFilter, index_CheckpointMeta as CheckpointMeta, index_CheckpointSummary as CheckpointSummary, index_Checkpointer as Checkpointer, index_CommonParameterTypes as CommonParameterTypes, type index_CompositeAuditOptions as CompositeAuditOptions, index_CompositeAuditPort as CompositeAuditPort, type index_ConsoleAuditOptions as ConsoleAuditOptions, type index_ContextCheckpointPayload as ContextCheckpointPayload, type index_ContextCheckpointPayloadExtension as ContextCheckpointPayloadExtension, index_ContextCheckpointTool as ContextCheckpointTool, type index_ContextCheckpointToolArgs as ContextCheckpointToolArgs, type index_ContextCheckpointToolHookParams as ContextCheckpointToolHookParams, type index_ContextCheckpointToolOptions as ContextCheckpointToolOptions, index_ConversationArtifactContext as ConversationArtifactContext, index_DEFAULT_CONTEXT_CHECKPOINT_TOOL_NAME as DEFAULT_CONTEXT_CHECKPOINT_TOOL_NAME, index_DefaultGraphExecutorOptions as DefaultGraphExecutorOptions, index_DefaultTokenizerPort as DefaultTokenizerPort, type index_DefaultTokenizerPortConfig as DefaultTokenizerPortConfig, index_ENGINE_ERROR_CODES as ENGINE_ERROR_CODES, index_ENGINE_STATE_SCHEMA_VERSION as ENGINE_STATE_SCHEMA_VERSION, type index_EmitAuditEnvelopeParams as EmitAuditEnvelopeParams, index_EngineState as EngineState, type index_EnrichmentContext as EnrichmentContext, type index_EnrichmentResult as EnrichmentResult, type index_ErrorClassification as ErrorClassification, index_EventBusSubRunTracePublisher as EventBusSubRunTracePublisher, index_EventRangeOptions as EventRangeOptions, index_EventStore as EventStore, type index_EventStoreAuditOptions as EventStoreAuditOptions, index_EventStoreAuditPort as EventStoreAuditPort, index_ExecutorLocalState as ExecutorLocalState, type index_FileAuditOptions as FileAuditOptions, index_FileAuditPort as FileAuditPort, index_GraphAgentExecutor as GraphAgentExecutor, type index_GraphAgentExecutorDependencies as GraphAgentExecutorDependencies, index_GraphExecutor as GraphExecutor, type index_GraphExecutorContextBuildInput as GraphExecutorContextBuildInput, type index_GraphExecutorContextBuildOutput as GraphExecutorContextBuildOutput, type index_GraphExecutorContextBuilder as GraphExecutorContextBuilder, index_GraphLoopHarness as GraphLoopHarness, index_GraphLoopHarnessOptions as GraphLoopHarnessOptions, index_GraphLoopHarnessRunResult as GraphLoopHarnessRunResult, index_GraphLoopLlmNodeFactoryParams as GraphLoopLlmNodeFactoryParams, index_GraphNode as GraphNode, index_JsonObjectSchema as JsonObjectSchema, index_LLMPolicy as LLMPolicy, index_LLMPolicyEngine as LLMPolicyEngine, index_LLMPolicyErrorDecision as LLMPolicyErrorDecision, index_LLMPolicyMatchContext as LLMPolicyMatchContext, index_LLMPolicyRequestContext as LLMPolicyRequestContext, index_LLMPolicyResponseContext as LLMPolicyResponseContext, index_LlmCallOptions as LlmCallOptions, index_LlmCaller as LlmCaller, index_LlmNode as LlmNode, index_LlmRequestMessage as LlmRequestMessage, index_LlmResponseContent as LlmResponseContent, index_LlmRetryConfig as LlmRetryConfig, index_MemoryCheckpointer as MemoryCheckpointer, index_MemoryEventStore as MemoryEventStore, index_ModelCatalogEntry as ModelCatalogEntry, index_ModelCatalogLike as ModelCatalogLike, index_ModelResolver as ModelResolver, index_ObservationPreviewContext as ObservationPreviewContext, index_ObservationPreviewMeta as ObservationPreviewMeta, index_ObservationPreviewPort as ObservationPreviewPort, index_ObservationPreviewResult as ObservationPreviewResult, index_OpenAIToolSchema as OpenAIToolSchema, type index_PendingContextRuntimeEvent as PendingContextRuntimeEvent, index_PersistedEvent as PersistedEvent, index_ProviderReasoningDetails as ProviderReasoningDetails, type index_RegistryEnrichmentResult as RegistryEnrichmentResult, type index_RequestEnricher as RequestEnricher, index_SYSTEM_REMINDER_RULES as SYSTEM_REMINDER_RULES, index_StructuredToolResult as StructuredToolResult, index_SubRunTracePublisher as SubRunTracePublisher, type index_SystemReminderContentTemplate as SystemReminderContentTemplate, type index_SystemReminderContext as SystemReminderContext, index_SystemReminderRegistry as SystemReminderRegistry, type index_SystemReminderRule as SystemReminderRule, type index_SystemReminderRuleDefinition as SystemReminderRuleDefinition, type index_SystemReminderTriggerEvaluator as SystemReminderTriggerEvaluator, index_ToolArgs as ToolArgs, index_ToolCall as ToolCall, index_ToolCallChunk as ToolCallChunk, index_ToolCallExtraContent as ToolCallExtraContent, index_ToolCallResult as ToolCallResult, index_ToolCatalogPort as ToolCatalogPort, index_ToolContextCompatibilityFields as ToolContextCompatibilityFields, index_ToolContextConversationView as ToolContextConversationView, index_ToolContextPatch as ToolContextPatch, index_ToolControlInfo as ToolControlInfo, index_ToolDisplayOptions as ToolDisplayOptions, index_ToolExecutionContext as ToolExecutionContext, index_ToolExecutionPort as ToolExecutionPort, index_ToolExecutionResult as ToolExecutionResult, index_ToolLayoutOptions as ToolLayoutOptions, index_ToolNode as ToolNode, index_ToolParameterProperty as ToolParameterProperty, index_ToolParameterSchema as ToolParameterSchema, index_ToolPresentationPort as ToolPresentationPort, index_ToolRegistryEntry as ToolRegistryEntry, index_ToolResult as ToolResult, index_ToolRuntimeDefinition as ToolRuntimeDefinition, index_ToolRuntimePort as ToolRuntimePort, index_ToolSchemaContext as ToolSchemaContext, index_UnifiedToolResult as UnifiedToolResult, index_UserNode as UserNode, index_WaitUserNode as WaitUserNode, index_agentHasToolTrigger as agentHasToolTrigger, index_appendStreamingProviderReasoningDetails as appendStreamingProviderReasoningDetails, index_applySystemReminders as applySystemReminders, index$2 as audit, index_budgetWarningTrigger as budgetWarningTrigger, index$6 as childRunTrace, index$7 as childRuns, index_compactProviderReasoningDetails as compactProviderReasoningDetails, index_compactReasoningDetailsInValue as compactReasoningDetailsInValue, index_computeToolIdempotencyKey as computeToolIdempotencyKey, index_consoleAudit as consoleAudit, index_contextBudgetWarningTemplate as contextBudgetWarningTemplate, index_copyToolContextRuntimeCapability as copyToolContextRuntimeCapability, index_countToolCallsInCurrentRequest as countToolCallsInCurrentRequest, index_createCompositeAudit as createCompositeAudit, index_createConsoleAudit as createConsoleAudit, index_createContextCheckpointTool as createContextCheckpointTool, index_createDefaultGraphExecutor as createDefaultGraphExecutor, index_createDefaultSystemReminderRegistry as createDefaultSystemReminderRegistry, index_createDefaultTokenizerPort as createDefaultTokenizerPort, index_createEventStoreAudit as createEventStoreAudit, index_createFileAudit as createFileAudit, index_createGraphLoopHarness as createGraphLoopHarness, index_createMonotonicEventIdFactory as createMonotonicEventIdFactory, index_createSystemReminderRules as createSystemReminderRules, index_defaultPolicyEngine as defaultPolicyEngine, index_defaultSystemReminderRegistry as defaultSystemReminderRegistry, index_emitAuditEnvelope as emitAuditEnvelope, index_emitSandboxDecisionAudit as emitSandboxDecisionAudit, index$5 as enrichment, index_ensureToolContextRuntimeCapability as ensureToolContextRuntimeCapability, index$d as events, index$9 as execution, index_findCachedToolOutputByIdempotencyKey as findCachedToolOutputByIdempotencyKey, index_getToolContextRuntimeBinding as getToolContextRuntimeBinding, index$b as graph, index_lastStepsHintTemplate as lastStepsHintTemplate, index$c as llm, index_maxStepsForceFinalAnswerTemplate as maxStepsForceFinalAnswerTemplate, index_noopAudit as noopAudit, index_normalizeToolArgs as normalizeToolArgs, index_periodicTaskstateReflectionTemplate as periodicTaskstateReflectionTemplate, index_phaseEqualsTrigger as phaseEqualsTrigger, index_readContextCheckpointToolName as readContextCheckpointToolName, index_readNonEmptyStrings as readNonEmptyStrings, index_readToolContextModelId as readToolContextModelId, index_readToolContextPersistedHistory as readToolContextPersistedHistory, index_readToolContextRunContext as readToolContextRunContext, index_readToolContextUserQuery as readToolContextUserQuery, index_readToolContextWorkingHistory as readToolContextWorkingHistory, index_remainingStepsLeqTrigger as remainingStepsLeqTrigger, index_requestEnricherRegistry as requestEnricherRegistry, index$8 as runContext, index$4 as runSupervisor, index_stepCountModuloTrigger as stepCountModuloTrigger, index_stripRuntimeReservedToolContextPatch as stripRuntimeReservedToolContextPatch, index_summarizeCheckpoint as summarizeCheckpoint, index$1 as systemReminder, index$3 as telemetry, index_toDisplayStep as toDisplayStep, index_toolCallStreakTemplate as toolCallStreakTemplate, index_toolCallStreakTrigger as toolCallStreakTrigger, index$a as tools };
1535
+ export { index_AgentTool as AgentTool, index_AnswerNode as AnswerNode, index_AuditEnvelopePersistenceError as AuditEnvelopePersistenceError, index_BUILTIN_SYSTEM_REMINDER_TEMPLATES as BUILTIN_SYSTEM_REMINDER_TEMPLATES, index_BUILTIN_SYSTEM_REMINDER_TRIGGERS as BUILTIN_SYSTEM_REMINDER_TRIGGERS, index_BaseTool as BaseTool, index_CheckpointListFilter as CheckpointListFilter, index_CheckpointMeta as CheckpointMeta, index_CheckpointSummary as CheckpointSummary, index_Checkpointer as Checkpointer, index_CommonParameterTypes as CommonParameterTypes, type index_CompositeAuditOptions as CompositeAuditOptions, index_CompositeAuditPort as CompositeAuditPort, type index_ConsoleAuditOptions as ConsoleAuditOptions, type index_ContextCheckpointPayload as ContextCheckpointPayload, type index_ContextCheckpointPayloadExtension as ContextCheckpointPayloadExtension, index_ContextCheckpointTool as ContextCheckpointTool, type index_ContextCheckpointToolArgs as ContextCheckpointToolArgs, type index_ContextCheckpointToolHookParams as ContextCheckpointToolHookParams, type index_ContextCheckpointToolOptions as ContextCheckpointToolOptions, index_ConversationArtifactContext as ConversationArtifactContext, type index_CreateContextComponentLedgerEntryInput as CreateContextComponentLedgerEntryInput, type index_CreateLlmUsageLedgerEntryInput as CreateLlmUsageLedgerEntryInput, index_DEFAULT_CONTEXT_CHECKPOINT_TOOL_NAME as DEFAULT_CONTEXT_CHECKPOINT_TOOL_NAME, index_DefaultGraphExecutorOptions as DefaultGraphExecutorOptions, index_DefaultTokenizerPort as DefaultTokenizerPort, type index_DefaultTokenizerPortConfig as DefaultTokenizerPortConfig, index_ENGINE_ERROR_CODES as ENGINE_ERROR_CODES, index_ENGINE_STATE_SCHEMA_VERSION as ENGINE_STATE_SCHEMA_VERSION, type index_EmitAuditEnvelopeParams as EmitAuditEnvelopeParams, index_EngineState as EngineState, type index_EnrichmentContext as EnrichmentContext, type index_EnrichmentResult as EnrichmentResult, type index_ErrorClassification as ErrorClassification, index_EventBusSubRunTracePublisher as EventBusSubRunTracePublisher, index_EventRangeOptions as EventRangeOptions, index_EventStore as EventStore, type index_EventStoreAuditOptions as EventStoreAuditOptions, index_EventStoreAuditPort as EventStoreAuditPort, index_ExecutorLocalState as ExecutorLocalState, type index_FileAuditOptions as FileAuditOptions, index_FileAuditPort as FileAuditPort, index_GraphAgentExecutor as GraphAgentExecutor, type index_GraphAgentExecutorDependencies as GraphAgentExecutorDependencies, index_GraphExecutor as GraphExecutor, type index_GraphExecutorContextBuildInput as GraphExecutorContextBuildInput, type index_GraphExecutorContextBuildOutput as GraphExecutorContextBuildOutput, type index_GraphExecutorContextBuilder as GraphExecutorContextBuilder, index_GraphLoopHarness as GraphLoopHarness, index_GraphLoopHarnessOptions as GraphLoopHarnessOptions, index_GraphLoopHarnessRunResult as GraphLoopHarnessRunResult, index_GraphLoopLlmNodeFactoryParams as GraphLoopLlmNodeFactoryParams, index_GraphNode as GraphNode, index_JsonObjectSchema as JsonObjectSchema, index_LLMPolicy as LLMPolicy, index_LLMPolicyEngine as LLMPolicyEngine, index_LLMPolicyErrorDecision as LLMPolicyErrorDecision, index_LLMPolicyMatchContext as LLMPolicyMatchContext, index_LLMPolicyRequestContext as LLMPolicyRequestContext, index_LLMPolicyResponseContext as LLMPolicyResponseContext, index_LlmCallOptions as LlmCallOptions, index_LlmCaller as LlmCaller, index_LlmNode as LlmNode, index_LlmRequestMessage as LlmRequestMessage, index_LlmResponseContent as LlmResponseContent, index_LlmRetryConfig as LlmRetryConfig, index_MemoryCheckpointer as MemoryCheckpointer, index_MemoryEventStore as MemoryEventStore, index_ModelCatalogEntry as ModelCatalogEntry, index_ModelCatalogLike as ModelCatalogLike, index_ModelResolver as ModelResolver, index_ObservationPreviewContext as ObservationPreviewContext, index_ObservationPreviewMeta as ObservationPreviewMeta, index_ObservationPreviewPort as ObservationPreviewPort, index_ObservationPreviewResult as ObservationPreviewResult, index_OpenAIToolSchema as OpenAIToolSchema, type index_PendingContextRuntimeEvent as PendingContextRuntimeEvent, index_PersistedEvent as PersistedEvent, index_ProviderReasoningDetails as ProviderReasoningDetails, type index_RegistryEnrichmentResult as RegistryEnrichmentResult, type index_RequestEnricher as RequestEnricher, index_SYSTEM_REMINDER_RULES as SYSTEM_REMINDER_RULES, index_StructuredToolResult as StructuredToolResult, index_SubRunTracePublisher as SubRunTracePublisher, type index_SystemReminderContentTemplate as SystemReminderContentTemplate, type index_SystemReminderContext as SystemReminderContext, index_SystemReminderRegistry as SystemReminderRegistry, type index_SystemReminderRule as SystemReminderRule, type index_SystemReminderRuleDefinition as SystemReminderRuleDefinition, type index_SystemReminderTriggerEvaluator as SystemReminderTriggerEvaluator, index_ToolArgs as ToolArgs, index_ToolCall as ToolCall, index_ToolCallChunk as ToolCallChunk, index_ToolCallExtraContent as ToolCallExtraContent, index_ToolCallResult as ToolCallResult, index_ToolCatalogPort as ToolCatalogPort, index_ToolContextCompatibilityFields as ToolContextCompatibilityFields, index_ToolContextConversationView as ToolContextConversationView, index_ToolContextPatch as ToolContextPatch, index_ToolControlInfo as ToolControlInfo, index_ToolDisplayOptions as ToolDisplayOptions, index_ToolExecutionContext as ToolExecutionContext, index_ToolExecutionPort as ToolExecutionPort, index_ToolExecutionResult as ToolExecutionResult, index_ToolLayoutOptions as ToolLayoutOptions, index_ToolNode as ToolNode, index_ToolParameterProperty as ToolParameterProperty, index_ToolParameterSchema as ToolParameterSchema, index_ToolPresentationPort as ToolPresentationPort, index_ToolRegistryEntry as ToolRegistryEntry, index_ToolResult as ToolResult, index_ToolRuntimeDefinition as ToolRuntimeDefinition, index_ToolRuntimePort as ToolRuntimePort, index_ToolSchemaContext as ToolSchemaContext, index_UnifiedToolResult as UnifiedToolResult, index_UserNode as UserNode, index_WaitUserNode as WaitUserNode, index_addLedgerAggregate as addLedgerAggregate, index_addUsageTotals as addUsageTotals, index_agentHasToolTrigger as agentHasToolTrigger, index_aggregateCanonicalUsage as aggregateCanonicalUsage, index_aggregateTokenLedgerEntries as aggregateTokenLedgerEntries, index_appendStreamingProviderReasoningDetails as appendStreamingProviderReasoningDetails, index_applySystemReminders as applySystemReminders, index$3 as audit, index_budgetWarningTrigger as budgetWarningTrigger, index$7 as childRunTrace, index$8 as childRuns, index_compactProviderReasoningDetails as compactProviderReasoningDetails, index_compactReasoningDetailsInValue as compactReasoningDetailsInValue, index_computeCost as computeCost, index_computeToolIdempotencyKey as computeToolIdempotencyKey, index_consoleAudit as consoleAudit, index_contextBudgetWarningTemplate as contextBudgetWarningTemplate, index_copyToolContextRuntimeCapability as copyToolContextRuntimeCapability, index_countToolCallsInCurrentRequest as countToolCallsInCurrentRequest, index_createCompositeAudit as createCompositeAudit, index_createConsoleAudit as createConsoleAudit, index_createContextCheckpointTool as createContextCheckpointTool, index_createContextComponentLedgerEntry as createContextComponentLedgerEntry, index_createDefaultGraphExecutor as createDefaultGraphExecutor, index_createDefaultSystemReminderRegistry as createDefaultSystemReminderRegistry, index_createDefaultTokenizerPort as createDefaultTokenizerPort, index_createEventStoreAudit as createEventStoreAudit, index_createFileAudit as createFileAudit, index_createGraphLoopHarness as createGraphLoopHarness, index_createLlmUsageLedgerEntry as createLlmUsageLedgerEntry, index_createMonotonicEventIdFactory as createMonotonicEventIdFactory, index_createRunTokenUsageAggregate as createRunTokenUsageAggregate, index_createSystemReminderRules as createSystemReminderRules, index_defaultPolicyEngine as defaultPolicyEngine, index_defaultSystemReminderRegistry as defaultSystemReminderRegistry, index_emitAuditEnvelope as emitAuditEnvelope, index_emitSandboxDecisionAudit as emitSandboxDecisionAudit, index$6 as enrichment, index_ensureToolContextRuntimeCapability as ensureToolContextRuntimeCapability, index$e as events, index$a as execution, index_findCachedToolOutputByIdempotencyKey as findCachedToolOutputByIdempotencyKey, index_getToolContextRuntimeBinding as getToolContextRuntimeBinding, index$c as graph, index_lastStepsHintTemplate as lastStepsHintTemplate, index$d as llm, index_maxStepsForceFinalAnswerTemplate as maxStepsForceFinalAnswerTemplate, index_noopAudit as noopAudit, index_normalizeToolArgs as normalizeToolArgs, index_periodicTaskstateReflectionTemplate as periodicTaskstateReflectionTemplate, index_phaseEqualsTrigger as phaseEqualsTrigger, index_readContextCheckpointToolName as readContextCheckpointToolName, index_readNonEmptyStrings as readNonEmptyStrings, index_readToolContextModelId as readToolContextModelId, index_readToolContextPersistedHistory as readToolContextPersistedHistory, index_readToolContextRunContext as readToolContextRunContext, index_readToolContextUserQuery as readToolContextUserQuery, index_readToolContextWorkingHistory as readToolContextWorkingHistory, index_remainingStepsLeqTrigger as remainingStepsLeqTrigger, index_requestEnricherRegistry as requestEnricherRegistry, index$9 as runContext, index$5 as runSupervisor, index_stepCountModuloTrigger as stepCountModuloTrigger, index_stripRuntimeReservedToolContextPatch as stripRuntimeReservedToolContextPatch, index_summarizeCheckpoint as summarizeCheckpoint, index$2 as systemReminder, index$4 as telemetry, index_toDisplayStep as toDisplayStep, index$1 as tokenAccounting, index_toolCallStreakTemplate as toolCallStreakTemplate, index_toolCallStreakTrigger as toolCallStreakTrigger, index$b as tools };
1471
1536
  }
1472
1537
 
1473
- export { index$7 as $, AnswerNode as A, BUILTIN_SYSTEM_REMINDER_TEMPLATES as B, type CompositeAuditOptions as C, DefaultTokenizerPort as D, ENGINE_ERROR_CODES as E, type FileAuditOptions as F, GraphAgentExecutor as G, type SystemReminderContentTemplate as H, type SystemReminderContext as I, SystemReminderRegistry as J, type SystemReminderRule as K, LLMPolicyEngine as L, MemoryCheckpointer as M, type SystemReminderRuleDefinition as N, type SystemReminderTriggerEvaluator as O, type PendingContextRuntimeEvent as P, agentHasToolTrigger as Q, type RegistryEnrichmentResult as R, SYSTEM_REMINDER_RULES as S, ToolNode as T, UserNode as U, appendStreamingProviderReasoningDetails as V, WaitUserNode as W, applySystemReminders as X, index$2 as Y, budgetWarningTrigger as Z, index$6 as _, AuditEnvelopePersistenceError as a, compactProviderReasoningDetails as a0, compactReasoningDetailsInValue as a1, consoleAudit as a2, contextBudgetWarningTemplate as a3, copyToolContextRuntimeCapability as a4, countToolCallsInCurrentRequest as a5, createCompositeAudit as a6, createConsoleAudit as a7, createContextCheckpointTool as a8, createDefaultSystemReminderRegistry as a9, index$8 as aA, index$4 as aB, stepCountModuloTrigger as aC, stripRuntimeReservedToolContextPatch as aD, index$1 as aE, index$3 as aF, toDisplayStep as aG, toolCallStreakTemplate as aH, toolCallStreakTrigger as aI, index$a as aJ, createDefaultTokenizerPort as aa, createEventStoreAudit as ab, createFileAudit as ac, createSystemReminderRules as ad, defaultPolicyEngine as ae, defaultSystemReminderRegistry as af, emitAuditEnvelope as ag, emitSandboxDecisionAudit as ah, index$5 as ai, ensureToolContextRuntimeCapability as aj, index$9 as ak, getToolContextRuntimeBinding as al, index$b as am, lastStepsHintTemplate as an, index$c as ao, maxStepsForceFinalAnswerTemplate as ap, noopAudit as aq, normalizeToolArgs as ar, periodicTaskstateReflectionTemplate as as, phaseEqualsTrigger as at, readContextCheckpointToolName as au, readNonEmptyStrings as av, readToolContextPersistedHistory as aw, readToolContextWorkingHistory as ax, remainingStepsLeqTrigger as ay, requestEnricherRegistry as az, BUILTIN_SYSTEM_REMINDER_TRIGGERS as b, CompositeAuditPort as c, type ConsoleAuditOptions as d, type ContextCheckpointPayload as e, type ContextCheckpointPayloadExtension as f, ContextCheckpointTool as g, type ContextCheckpointToolArgs as h, index as i, type ContextCheckpointToolHookParams as j, type ContextCheckpointToolOptions as k, type DefaultTokenizerPortConfig as l, type EmitAuditEnvelopeParams as m, type EnrichmentContext as n, type EnrichmentResult as o, type ErrorClassification as p, EventBusSubRunTracePublisher as q, type EventStoreAuditOptions as r, EventStoreAuditPort as s, FileAuditPort as t, type GraphAgentExecutorDependencies as u, type GraphExecutorContextBuildInput as v, type GraphExecutorContextBuildOutput as w, type GraphExecutorContextBuilder as x, LlmNode as y, type RequestEnricher as z };
1538
+ export { aggregateTokenLedgerEntries as $, AnswerNode as A, BUILTIN_SYSTEM_REMINDER_TEMPLATES as B, type CompositeAuditOptions as C, DefaultTokenizerPort as D, ENGINE_ERROR_CODES as E, type FileAuditOptions as F, GraphAgentExecutor as G, LlmNode as H, type RequestEnricher as I, type SystemReminderContentTemplate as J, type SystemReminderContext as K, LLMPolicyEngine as L, MemoryCheckpointer as M, SystemReminderRegistry as N, type SystemReminderRule as O, type PendingContextRuntimeEvent as P, type SystemReminderRuleDefinition as Q, type RegistryEnrichmentResult as R, SYSTEM_REMINDER_RULES as S, type SystemReminderTriggerEvaluator as T, ToolNode as U, UserNode as V, WaitUserNode as W, addLedgerAggregate as X, addUsageTotals as Y, agentHasToolTrigger as Z, aggregateCanonicalUsage as _, AuditEnvelopePersistenceError as a, appendStreamingProviderReasoningDetails as a0, applySystemReminders as a1, index$3 as a2, budgetWarningTrigger as a3, index$7 as a4, index$8 as a5, compactProviderReasoningDetails as a6, compactReasoningDetailsInValue as a7, computeCost as a8, consoleAudit as a9, noopAudit as aA, normalizeToolArgs as aB, periodicTaskstateReflectionTemplate as aC, phaseEqualsTrigger as aD, readContextCheckpointToolName as aE, readNonEmptyStrings as aF, readToolContextPersistedHistory as aG, readToolContextWorkingHistory as aH, remainingStepsLeqTrigger as aI, requestEnricherRegistry as aJ, index$9 as aK, index$5 as aL, stepCountModuloTrigger as aM, stripRuntimeReservedToolContextPatch as aN, index$2 as aO, index$4 as aP, toDisplayStep as aQ, index$1 as aR, toolCallStreakTemplate as aS, toolCallStreakTrigger as aT, index$b as aU, contextBudgetWarningTemplate as aa, copyToolContextRuntimeCapability as ab, countToolCallsInCurrentRequest as ac, createCompositeAudit as ad, createConsoleAudit as ae, createContextCheckpointTool as af, createContextComponentLedgerEntry as ag, createDefaultSystemReminderRegistry as ah, createDefaultTokenizerPort as ai, createEventStoreAudit as aj, createFileAudit as ak, createLlmUsageLedgerEntry as al, createRunTokenUsageAggregate as am, createSystemReminderRules as an, defaultPolicyEngine as ao, defaultSystemReminderRegistry as ap, emitAuditEnvelope as aq, emitSandboxDecisionAudit as ar, index$6 as as, ensureToolContextRuntimeCapability as at, index$a as au, getToolContextRuntimeBinding as av, index$c as aw, lastStepsHintTemplate as ax, index$d as ay, maxStepsForceFinalAnswerTemplate as az, BUILTIN_SYSTEM_REMINDER_TRIGGERS as b, CompositeAuditPort as c, type ConsoleAuditOptions as d, type ContextCheckpointPayload as e, type ContextCheckpointPayloadExtension as f, ContextCheckpointTool as g, type ContextCheckpointToolArgs as h, index as i, type ContextCheckpointToolHookParams as j, type ContextCheckpointToolOptions as k, type CreateContextComponentLedgerEntryInput as l, type CreateLlmUsageLedgerEntryInput as m, type DefaultTokenizerPortConfig as n, type EmitAuditEnvelopeParams as o, type EnrichmentContext as p, type EnrichmentResult as q, type ErrorClassification as r, EventBusSubRunTracePublisher as s, type EventStoreAuditOptions as t, EventStoreAuditPort as u, FileAuditPort as v, type GraphAgentExecutorDependencies as w, type GraphExecutorContextBuildInput as x, type GraphExecutorContextBuildOutput as y, type GraphExecutorContextBuilder as z };