@linnlabs/linnkit 0.32.0 → 0.32.1

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 (468) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/context-manager/features/context-compaction/definitions/contextCheckpointFormat.d.cts +3 -0
  3. package/dist/context-manager/features/context-compaction/definitions/contextCheckpointFormat.d.ts +3 -0
  4. package/dist/context-manager/features/context-compaction/definitions/historySummaryDraft.d.cts +22 -0
  5. package/dist/context-manager/features/context-compaction/definitions/historySummaryDraft.d.ts +22 -0
  6. package/dist/context-manager/profiles/agent/config.d.cts +33 -0
  7. package/dist/context-manager/profiles/agent/config.d.ts +33 -0
  8. package/dist/context-manager/profiles/agent/context/AgentContextManager.d.cts +132 -0
  9. package/dist/context-manager/profiles/agent/context/AgentContextManager.d.ts +132 -0
  10. package/dist/context-manager/profiles/agent/context/ConversationSession.d.cts +131 -0
  11. package/dist/context-manager/profiles/agent/context/ConversationSession.d.ts +131 -0
  12. package/dist/context-manager/profiles/agent/context/config.d.cts +191 -0
  13. package/dist/context-manager/profiles/agent/context/config.d.ts +191 -0
  14. package/dist/context-manager/profiles/agent/context/index.d.cts +8 -0
  15. package/dist/context-manager/profiles/agent/context/index.d.ts +8 -0
  16. package/dist/context-manager/profiles/agent/context/providers/AgentCoreContextProvider.d.cts +52 -0
  17. package/dist/context-manager/profiles/agent/context/providers/AgentCoreContextProvider.d.ts +52 -0
  18. package/dist/context-manager/profiles/agent/context/providers/AgentWorkingMemoryProvider.d.cts +50 -0
  19. package/dist/context-manager/profiles/agent/context/providers/AgentWorkingMemoryProvider.d.ts +50 -0
  20. package/dist/context-manager/profiles/agent/context/providers/base.d.cts +11 -0
  21. package/dist/context-manager/profiles/agent/context/providers/base.d.ts +11 -0
  22. package/dist/context-manager/profiles/agent/context/providers/index.d.cts +12 -0
  23. package/dist/context-manager/profiles/agent/context/providers/index.d.ts +12 -0
  24. package/dist/context-manager/profiles/agent/contracts.d.cts +27 -0
  25. package/dist/context-manager/profiles/agent/contracts.d.ts +27 -0
  26. package/dist/context-manager/profiles/agent/orchestration/AgentMessageOrchestrator.d.cts +140 -0
  27. package/dist/context-manager/profiles/agent/orchestration/AgentMessageOrchestrator.d.ts +140 -0
  28. package/dist/context-manager/profiles/agent/orchestration/index.d.cts +1 -0
  29. package/dist/context-manager/profiles/agent/orchestration/index.d.ts +1 -0
  30. package/dist/context-manager/profiles/agent/preprocessors/base.d.cts +17 -0
  31. package/dist/context-manager/profiles/agent/preprocessors/base.d.ts +17 -0
  32. package/dist/context-manager/profiles/agent/preprocessors/index.d.cts +117 -0
  33. package/dist/context-manager/profiles/agent/preprocessors/index.d.ts +117 -0
  34. package/dist/context-manager/profiles/agent/preprocessors/toolHistoryCompressor.d.cts +47 -0
  35. package/dist/context-manager/profiles/agent/preprocessors/toolHistoryCompressor.d.ts +47 -0
  36. package/dist/context-manager/profiles/agent/preprocessors/toolReplayProtocolGuard.d.cts +27 -0
  37. package/dist/context-manager/profiles/agent/preprocessors/toolReplayProtocolGuard.d.ts +27 -0
  38. package/dist/context-manager/profiles/agent/tasks/BaseAgentTask.d.cts +43 -0
  39. package/dist/context-manager/profiles/agent/tasks/BaseAgentTask.d.ts +43 -0
  40. package/dist/context-manager/profiles/agent/tasks/base.d.cts +18 -0
  41. package/dist/context-manager/profiles/agent/tasks/base.d.ts +18 -0
  42. package/dist/context-manager/profiles/agent/tasks/index.d.cts +2 -0
  43. package/dist/context-manager/profiles/agent/tasks/index.d.ts +2 -0
  44. package/dist/context-manager/profiles/agent/tools/ToolManager.d.cts +27 -0
  45. package/dist/context-manager/profiles/agent/tools/ToolManager.d.ts +27 -0
  46. package/dist/context-manager/profiles/agent/tools/index.d.cts +1 -0
  47. package/dist/context-manager/profiles/agent/tools/index.d.ts +1 -0
  48. package/dist/context-manager/profiles/agent/utils/eventConverter.d.cts +15 -0
  49. package/dist/context-manager/profiles/agent/utils/eventConverter.d.ts +15 -0
  50. package/dist/context-manager/profiles/agent/utils/index.d.cts +2 -0
  51. package/dist/context-manager/profiles/agent/utils/index.d.ts +2 -0
  52. package/dist/context-manager/profiles/agent/utils/toolOutputSummarizer.d.cts +26 -0
  53. package/dist/context-manager/profiles/agent/utils/toolOutputSummarizer.d.ts +26 -0
  54. package/dist/context-manager/shared/MessageFormatter.d.cts +55 -0
  55. package/dist/context-manager/shared/MessageFormatter.d.ts +55 -0
  56. package/dist/context-manager/shared/agentSpecAdapter.d.cts +63 -0
  57. package/dist/context-manager/shared/agentSpecAdapter.d.ts +63 -0
  58. package/dist/context-manager/shared/context-manager-base.d.cts +102 -0
  59. package/dist/context-manager/shared/context-manager-base.d.ts +102 -0
  60. package/dist/context-manager/shared/context-pipeline.d.cts +42 -0
  61. package/dist/context-manager/shared/context-pipeline.d.ts +42 -0
  62. package/dist/context-manager/shared/context-trace.d.cts +102 -0
  63. package/dist/context-manager/shared/context-trace.d.ts +102 -0
  64. package/dist/context-manager/shared/contextPolicyMerge.d.cts +19 -0
  65. package/dist/context-manager/shared/contextPolicyMerge.d.ts +19 -0
  66. package/dist/context-manager/shared/contracts/chatLineMessage.d.cts +15 -0
  67. package/dist/context-manager/shared/contracts/chatLineMessage.d.ts +15 -0
  68. package/dist/context-manager/shared/fences/FenceRegistry.d.cts +24 -0
  69. package/dist/context-manager/shared/fences/FenceRegistry.d.ts +24 -0
  70. package/dist/context-manager/shared/image-input-estimation.d.cts +16 -0
  71. package/dist/context-manager/shared/image-input-estimation.d.ts +16 -0
  72. package/dist/context-manager/shared/policies/MustKeepPolicy.d.cts +19 -0
  73. package/dist/context-manager/shared/policies/MustKeepPolicy.d.ts +19 -0
  74. package/dist/context-manager/shared/preprocessors/base.d.cts +43 -0
  75. package/dist/context-manager/shared/preprocessors/base.d.ts +43 -0
  76. package/dist/context-manager/shared/preprocessors/currentTurnMessageAssembler.d.cts +26 -0
  77. package/dist/context-manager/shared/preprocessors/currentTurnMessageAssembler.d.ts +26 -0
  78. package/dist/context-manager/shared/preprocessors/fenceLifetimeManager.d.cts +18 -0
  79. package/dist/context-manager/shared/preprocessors/fenceLifetimeManager.d.ts +18 -0
  80. package/dist/context-manager/shared/preprocessors/historyPurification.d.cts +19 -0
  81. package/dist/context-manager/shared/preprocessors/historyPurification.d.ts +19 -0
  82. package/dist/context-manager/shared/preprocessors/priority.d.cts +17 -0
  83. package/dist/context-manager/shared/preprocessors/priority.d.ts +17 -0
  84. package/dist/context-manager/shared/providers/base.d.cts +106 -0
  85. package/dist/context-manager/shared/providers/base.d.ts +106 -0
  86. package/dist/context-manager/shared/providers/registry.d.cts +11 -0
  87. package/dist/context-manager/shared/providers/registry.d.ts +11 -0
  88. package/dist/context-manager/shared/token-calibration.d.cts +25 -0
  89. package/dist/context-manager/shared/token-calibration.d.ts +25 -0
  90. package/dist/context-manager.d.cts +34 -1559
  91. package/dist/context-manager.d.ts +34 -1559
  92. package/dist/contracts/agentSpec.d.cts +869 -0
  93. package/dist/contracts/agentSpec.d.ts +869 -0
  94. package/dist/{audit-XsNMTt0-.d.cts → contracts/audit.d.cts} +33 -33
  95. package/dist/{audit-XsNMTt0-.d.ts → contracts/audit.d.ts} +33 -33
  96. package/dist/contracts/constants.d.cts +3 -0
  97. package/dist/contracts/constants.d.ts +3 -0
  98. package/dist/contracts/contextCompaction.d.cts +43 -0
  99. package/dist/contracts/contextCompaction.d.ts +43 -0
  100. package/dist/contracts/contextPolicy.d.cts +1121 -0
  101. package/dist/contracts/contextPolicy.d.ts +1121 -0
  102. package/dist/{final-answer-oOQ_7nPt.d.ts → contracts/events.d.cts} +1219 -1222
  103. package/dist/{final-answer-B0_kx5_U.d.cts → contracts/events.d.ts} +1219 -1222
  104. package/dist/{execution-B7e01ZjW.d.cts → contracts/execution.d.cts} +21 -21
  105. package/dist/{execution-B7e01ZjW.d.ts → contracts/execution.d.ts} +21 -21
  106. package/dist/contracts/final-answer.d.cts +7 -0
  107. package/dist/contracts/final-answer.d.ts +7 -0
  108. package/dist/contracts/identity/definitions.d.cts +70 -0
  109. package/dist/contracts/identity/definitions.d.ts +70 -0
  110. package/dist/contracts/identity/generators.d.cts +33 -0
  111. package/dist/contracts/identity/generators.d.ts +33 -0
  112. package/dist/contracts/identity/invariants.d.cts +24 -0
  113. package/dist/contracts/identity/invariants.d.ts +24 -0
  114. package/dist/contracts/json.d.cts +12 -0
  115. package/dist/contracts/json.d.ts +12 -0
  116. package/dist/{provider-continuation-CTZdCB--.d.cts → contracts/messages.d.cts} +210 -957
  117. package/dist/{provider-continuation-CTZdCB--.d.ts → contracts/messages.d.ts} +210 -957
  118. package/dist/contracts/provider-continuation.d.cts +609 -0
  119. package/dist/contracts/provider-continuation.d.ts +609 -0
  120. package/dist/contracts/reasoning.d.cts +77 -0
  121. package/dist/contracts/reasoning.d.ts +77 -0
  122. package/dist/contracts/resource-ref.d.cts +73 -0
  123. package/dist/contracts/resource-ref.d.ts +73 -0
  124. package/dist/contracts/runtime-status.d.cts +8 -0
  125. package/dist/contracts/runtime-status.d.ts +8 -0
  126. package/dist/contracts/sse-framing.d.cts +28 -0
  127. package/dist/contracts/sse-framing.d.ts +28 -0
  128. package/dist/{index-Cp1_oUj0.d.ts → contracts/sse.d.cts} +1218 -1574
  129. package/dist/{index-JYf6n2Ik.d.cts → contracts/sse.d.ts} +1218 -1574
  130. package/dist/contracts/sub-run-trace-payload.d.cts +187 -0
  131. package/dist/contracts/sub-run-trace-payload.d.ts +187 -0
  132. package/dist/{summarization-CMMLhaCe.d.ts → contracts/summarization.d.cts} +2 -2
  133. package/dist/{summarization-kLeweZ5-.d.cts → contracts/summarization.d.ts} +2 -2
  134. package/dist/contracts/token-accounting.d.cts +1177 -0
  135. package/dist/contracts/token-accounting.d.ts +1177 -0
  136. package/dist/{token-calibration-GtFyMJtM.d.cts → contracts/token-calibration.d.cts} +1 -42
  137. package/dist/{token-calibration-GtFyMJtM.d.ts → contracts/token-calibration.d.ts} +1 -42
  138. package/dist/{reasoning-bffu9R2B.d.cts → contracts/token-usage.d.cts} +9 -84
  139. package/dist/{reasoning-bffu9R2B.d.ts → contracts/token-usage.d.ts} +9 -84
  140. package/dist/contracts.d.cts +24 -10
  141. package/dist/contracts.d.ts +24 -10
  142. package/dist/index.d.cts +14 -77
  143. package/dist/index.d.ts +14 -77
  144. package/dist/ports/agent-invocation.d.cts +42 -0
  145. package/dist/ports/agent-invocation.d.ts +42 -0
  146. package/dist/{audit-DnuOSwWE.d.ts → ports/audit.d.cts} +2 -2
  147. package/dist/{audit-C9LPbPib.d.cts → ports/audit.d.ts} +2 -2
  148. package/dist/ports/canonical-inference.d.cts +135 -0
  149. package/dist/ports/canonical-inference.d.ts +135 -0
  150. package/dist/ports/llm-call.d.cts +109 -0
  151. package/dist/ports/llm-call.d.ts +109 -0
  152. package/dist/ports/llm-input-materialization.d.cts +69 -0
  153. package/dist/ports/llm-input-materialization.d.ts +69 -0
  154. package/dist/{token-counter-BjiHQEJ-.d.ts → ports/token-counter.d.cts} +3 -3
  155. package/dist/{token-counter-DiGIoaq2.d.cts → ports/token-counter.d.ts} +3 -3
  156. package/dist/{tokenizer-yIFTTc-W.d.ts → ports/tokenizer.d.cts} +2 -2
  157. package/dist/{tokenizer-Dz5Y3KT0.d.cts → ports/tokenizer.d.ts} +2 -2
  158. package/dist/ports/tool-schema.d.cts +30 -0
  159. package/dist/ports/tool-schema.d.ts +30 -0
  160. package/dist/ports/usage-normalizer.d.cts +16 -0
  161. package/dist/ports/usage-normalizer.d.ts +16 -0
  162. package/dist/ports.d.cts +10 -9
  163. package/dist/ports.d.ts +10 -9
  164. package/dist/quickstart/defineAgent.d.cts +12 -0
  165. package/dist/quickstart/defineAgent.d.ts +12 -0
  166. package/dist/quickstart/defineConfig.d.cts +7 -0
  167. package/dist/quickstart/defineConfig.d.ts +7 -0
  168. package/dist/quickstart/runAgent.d.cts +12 -0
  169. package/dist/quickstart/runAgent.d.ts +12 -0
  170. package/dist/quickstart/toolRuntime.d.cts +14 -0
  171. package/dist/quickstart/toolRuntime.d.ts +14 -0
  172. package/dist/{runAgent-jxZ0uNto.d.ts → quickstart/types.d.cts} +10 -28
  173. package/dist/{runAgent-QiBiFXHR.d.cts → quickstart/types.d.ts} +10 -28
  174. package/dist/quickstart.d.cts +5 -23
  175. package/dist/quickstart.d.ts +5 -23
  176. package/dist/runtime-kernel/audit/compositeAudit.d.cts +23 -0
  177. package/dist/runtime-kernel/audit/compositeAudit.d.ts +23 -0
  178. package/dist/runtime-kernel/audit/consoleAudit.d.cts +10 -0
  179. package/dist/runtime-kernel/audit/consoleAudit.d.ts +10 -0
  180. package/dist/runtime-kernel/audit/emitAudit.d.cts +31 -0
  181. package/dist/runtime-kernel/audit/emitAudit.d.ts +31 -0
  182. package/dist/runtime-kernel/audit/eventStoreAudit.d.cts +27 -0
  183. package/dist/runtime-kernel/audit/eventStoreAudit.d.ts +27 -0
  184. package/dist/runtime-kernel/audit/fileAudit.d.cts +22 -0
  185. package/dist/runtime-kernel/audit/fileAudit.d.ts +22 -0
  186. package/dist/runtime-kernel/audit/index.d.cts +6 -0
  187. package/dist/runtime-kernel/audit/index.d.ts +6 -0
  188. package/dist/runtime-kernel/audit/noopAudit.d.cts +5 -0
  189. package/dist/runtime-kernel/audit/noopAudit.d.ts +5 -0
  190. package/dist/runtime-kernel/child-run-trace/childRunParentTraceProjection.d.cts +26 -0
  191. package/dist/runtime-kernel/child-run-trace/childRunParentTraceProjection.d.ts +26 -0
  192. package/dist/runtime-kernel/child-run-trace/index.d.cts +4 -0
  193. package/dist/runtime-kernel/child-run-trace/index.d.ts +4 -0
  194. package/dist/runtime-kernel/child-run-trace/projectChildRuntimeEventToSubRunTrace.d.cts +10 -0
  195. package/dist/runtime-kernel/child-run-trace/projectChildRuntimeEventToSubRunTrace.d.ts +10 -0
  196. package/dist/runtime-kernel/child-run-trace/runtimeEventSubRunTracePublisher.d.cts +47 -0
  197. package/dist/runtime-kernel/child-run-trace/runtimeEventSubRunTracePublisher.d.ts +47 -0
  198. package/dist/runtime-kernel/child-run-trace/subrunTrace.types.d.cts +81 -0
  199. package/dist/runtime-kernel/child-run-trace/subrunTrace.types.d.ts +81 -0
  200. package/dist/runtime-kernel/child-runs/childRunInvoker.d.cts +101 -0
  201. package/dist/runtime-kernel/child-runs/childRunInvoker.d.ts +101 -0
  202. package/dist/runtime-kernel/child-runs/historyPolicy.d.cts +9 -0
  203. package/dist/runtime-kernel/child-runs/historyPolicy.d.ts +9 -0
  204. package/dist/runtime-kernel/child-runs/index.d.cts +3 -0
  205. package/dist/runtime-kernel/child-runs/index.d.ts +3 -0
  206. package/dist/runtime-kernel/child-runs/types.d.cts +82 -0
  207. package/dist/runtime-kernel/child-runs/types.d.ts +82 -0
  208. package/dist/runtime-kernel/enrichment/index.d.cts +2 -0
  209. package/dist/runtime-kernel/enrichment/index.d.ts +2 -0
  210. package/dist/runtime-kernel/enrichment/registry.d.cts +25 -0
  211. package/dist/runtime-kernel/enrichment/registry.d.ts +25 -0
  212. package/dist/runtime-kernel/enrichment/types.d.cts +83 -0
  213. package/dist/runtime-kernel/enrichment/types.d.ts +83 -0
  214. package/dist/runtime-kernel/events/agent-to-runtime.d.cts +6 -0
  215. package/dist/runtime-kernel/events/agent-to-runtime.d.ts +6 -0
  216. package/dist/{agentEvents-yvamy9xt.d.cts → runtime-kernel/events/agentEvents.d.cts} +127 -126
  217. package/dist/{agentEvents-DhXdKeXD.d.ts → runtime-kernel/events/agentEvents.d.ts} +127 -126
  218. package/dist/runtime-kernel/events/eventGovernance.d.cts +47 -0
  219. package/dist/runtime-kernel/events/eventGovernance.d.ts +47 -0
  220. package/dist/runtime-kernel/events/eventMappers.d.cts +41 -0
  221. package/dist/runtime-kernel/events/eventMappers.d.ts +41 -0
  222. package/dist/runtime-kernel/events/finalAnswerAssembler.d.cts +27 -0
  223. package/dist/runtime-kernel/events/finalAnswerAssembler.d.ts +27 -0
  224. package/dist/runtime-kernel/events/finalAnswerCompletion.d.cts +6 -0
  225. package/dist/runtime-kernel/events/finalAnswerCompletion.d.ts +6 -0
  226. package/dist/runtime-kernel/events/provider-sidecar.d.cts +33 -0
  227. package/dist/runtime-kernel/events/provider-sidecar.d.ts +33 -0
  228. package/dist/runtime-kernel/events/runtime-to-ai-message.d.cts +14 -0
  229. package/dist/runtime-kernel/events/runtime-to-ai-message.d.ts +14 -0
  230. package/dist/runtime-kernel/events.d.cts +7 -5
  231. package/dist/runtime-kernel/events.d.ts +7 -5
  232. package/dist/runtime-kernel/execution/event-bus.d.cts +52 -0
  233. package/dist/runtime-kernel/execution/event-bus.d.ts +52 -0
  234. package/dist/runtime-kernel/execution/eventBusEventPersistence.d.cts +40 -0
  235. package/dist/runtime-kernel/execution/eventBusEventPersistence.d.ts +40 -0
  236. package/dist/runtime-kernel/execution/index.d.cts +5 -0
  237. package/dist/runtime-kernel/execution/index.d.ts +5 -0
  238. package/dist/runtime-kernel/execution/runtimeErrorEventFactory.d.cts +46 -0
  239. package/dist/runtime-kernel/execution/runtimeErrorEventFactory.d.ts +46 -0
  240. package/dist/runtime-kernel/execution/runtimeEventPublisher.d.cts +34 -0
  241. package/dist/runtime-kernel/execution/runtimeEventPublisher.d.ts +34 -0
  242. package/dist/runtime-kernel/execution/sequencer.d.cts +69 -0
  243. package/dist/runtime-kernel/execution/sequencer.d.ts +69 -0
  244. package/dist/runtime-kernel/graph-engine/checkpointer/base.d.cts +59 -0
  245. package/dist/runtime-kernel/graph-engine/checkpointer/base.d.ts +59 -0
  246. package/dist/runtime-kernel/graph-engine/checkpointer/memoryCheckpointer.d.cts +14 -0
  247. package/dist/runtime-kernel/graph-engine/checkpointer/memoryCheckpointer.d.ts +14 -0
  248. package/dist/runtime-kernel/graph-engine/definitions/primaryPromptCapacityError.d.cts +22 -0
  249. package/dist/runtime-kernel/graph-engine/definitions/primaryPromptCapacityError.d.ts +22 -0
  250. package/dist/runtime-kernel/graph-engine/engine.d.cts +64 -0
  251. package/dist/runtime-kernel/graph-engine/engine.d.ts +64 -0
  252. package/dist/runtime-kernel/graph-engine/event-store/base.d.cts +26 -0
  253. package/dist/runtime-kernel/graph-engine/event-store/base.d.ts +26 -0
  254. package/dist/runtime-kernel/graph-engine/event-store/memoryEventStore.d.cts +14 -0
  255. package/dist/runtime-kernel/graph-engine/event-store/memoryEventStore.d.ts +14 -0
  256. package/dist/runtime-kernel/graph-engine/executor.d.cts +59 -0
  257. package/dist/runtime-kernel/graph-engine/executor.d.ts +59 -0
  258. package/dist/runtime-kernel/graph-engine/executorContextBuilder.d.cts +104 -0
  259. package/dist/runtime-kernel/graph-engine/executorContextBuilder.d.ts +104 -0
  260. package/dist/runtime-kernel/graph-engine/functions/createHostToolCallBootstrap.d.cts +41 -0
  261. package/dist/runtime-kernel/graph-engine/functions/createHostToolCallBootstrap.d.ts +41 -0
  262. package/dist/runtime-kernel/graph-engine/functions/engineStateSnapshot.d.cts +23 -0
  263. package/dist/runtime-kernel/graph-engine/functions/engineStateSnapshot.d.ts +23 -0
  264. package/dist/runtime-kernel/graph-engine/functions/evaluatePrimaryPromptCapacity.d.cts +15 -0
  265. package/dist/runtime-kernel/graph-engine/functions/evaluatePrimaryPromptCapacity.d.ts +15 -0
  266. package/dist/runtime-kernel/graph-engine/functions/runtimeFailureFact.d.cts +7 -0
  267. package/dist/runtime-kernel/graph-engine/functions/runtimeFailureFact.d.ts +7 -0
  268. package/dist/runtime-kernel/graph-engine/index.d.cts +18 -0
  269. package/dist/runtime-kernel/graph-engine/index.d.ts +18 -0
  270. package/dist/runtime-kernel/graph-engine/nodes/llmNode.d.cts +26 -0
  271. package/dist/runtime-kernel/graph-engine/nodes/llmNode.d.ts +26 -0
  272. package/dist/runtime-kernel/graph-engine/nodes/llmNode.eventBridge.d.cts +6 -0
  273. package/dist/runtime-kernel/graph-engine/nodes/llmNode.eventBridge.d.ts +6 -0
  274. package/dist/runtime-kernel/graph-engine/nodes/toolNode.d.cts +44 -0
  275. package/dist/runtime-kernel/graph-engine/nodes/toolNode.d.ts +44 -0
  276. package/dist/runtime-kernel/graph-engine/nodes/userNode.d.cts +8 -0
  277. package/dist/runtime-kernel/graph-engine/nodes/userNode.d.ts +8 -0
  278. package/dist/runtime-kernel/graph-engine/nodes/waitUserNode.d.cts +15 -0
  279. package/dist/runtime-kernel/graph-engine/nodes/waitUserNode.d.ts +15 -0
  280. package/dist/runtime-kernel/graph-engine/tick-pipeline/types.d.cts +57 -0
  281. package/dist/runtime-kernel/graph-engine/tick-pipeline/types.d.ts +57 -0
  282. package/dist/runtime-kernel/graph-engine/types.d.cts +143 -0
  283. package/dist/runtime-kernel/graph-engine/types.d.ts +143 -0
  284. package/dist/runtime-kernel/llm/caller.d.cts +50 -0
  285. package/dist/runtime-kernel/llm/caller.d.ts +50 -0
  286. package/dist/runtime-kernel/llm/canonical-inference/definitions/canonicalInferenceStreamState.d.cts +28 -0
  287. package/dist/runtime-kernel/llm/canonical-inference/definitions/canonicalInferenceStreamState.d.ts +28 -0
  288. package/dist/runtime-kernel/llm/canonical-inference/functions/advanceCanonicalInferenceStreamState.d.cts +6 -0
  289. package/dist/runtime-kernel/llm/canonical-inference/functions/advanceCanonicalInferenceStreamState.d.ts +6 -0
  290. package/dist/runtime-kernel/llm/canonical-inference/orchestration/consumeCanonicalInferenceStream.d.cts +6 -0
  291. package/dist/runtime-kernel/llm/canonical-inference/orchestration/consumeCanonicalInferenceStream.d.ts +6 -0
  292. package/dist/runtime-kernel/llm/definitions/llmCallInvocationContext.d.cts +29 -0
  293. package/dist/runtime-kernel/llm/definitions/llmCallInvocationContext.d.ts +29 -0
  294. package/dist/runtime-kernel/llm/definitions/llmFallbackObserver.d.cts +26 -0
  295. package/dist/runtime-kernel/llm/definitions/llmFallbackObserver.d.ts +26 -0
  296. package/dist/runtime-kernel/llm/functions/evaluateFallbackPromptCapacity.d.cts +9 -0
  297. package/dist/runtime-kernel/llm/functions/evaluateFallbackPromptCapacity.d.ts +9 -0
  298. package/dist/runtime-kernel/llm/index.d.cts +22 -0
  299. package/dist/runtime-kernel/llm/index.d.ts +22 -0
  300. package/dist/runtime-kernel/llm/input-capabilities/definitions/modelInputCapability.d.cts +24 -0
  301. package/dist/runtime-kernel/llm/input-capabilities/definitions/modelInputCapability.d.ts +24 -0
  302. package/dist/runtime-kernel/llm/input-capabilities/definitions/modelInputCapabilityError.d.cts +31 -0
  303. package/dist/runtime-kernel/llm/input-capabilities/definitions/modelInputCapabilityError.d.ts +31 -0
  304. package/dist/runtime-kernel/llm/input-capabilities/functions/createModelInputCompatibilityError.d.cts +13 -0
  305. package/dist/runtime-kernel/llm/input-capabilities/functions/createModelInputCompatibilityError.d.ts +13 -0
  306. package/dist/runtime-kernel/llm/input-capabilities/functions/deriveModelInputRequirement.d.cts +6 -0
  307. package/dist/runtime-kernel/llm/input-capabilities/functions/deriveModelInputRequirement.d.ts +6 -0
  308. package/dist/runtime-kernel/llm/input-capabilities/functions/evaluateModelInputCompatibility.d.cts +7 -0
  309. package/dist/runtime-kernel/llm/input-capabilities/functions/evaluateModelInputCompatibility.d.ts +7 -0
  310. package/dist/runtime-kernel/llm/input-capabilities/orchestration/assertModelInputCompatibility.d.cts +10 -0
  311. package/dist/runtime-kernel/llm/input-capabilities/orchestration/assertModelInputCompatibility.d.ts +10 -0
  312. package/dist/runtime-kernel/llm/modelCatalog.d.cts +62 -0
  313. package/dist/runtime-kernel/llm/modelCatalog.d.ts +62 -0
  314. package/dist/runtime-kernel/llm/modelResolver.d.cts +40 -0
  315. package/dist/runtime-kernel/llm/modelResolver.d.ts +40 -0
  316. package/dist/runtime-kernel/llm/policies/defaultPolicyEngine.d.cts +15 -0
  317. package/dist/runtime-kernel/llm/policies/defaultPolicyEngine.d.ts +15 -0
  318. package/dist/runtime-kernel/llm/policies/policyEngine.d.cts +18 -0
  319. package/dist/runtime-kernel/llm/policies/policyEngine.d.ts +18 -0
  320. package/dist/runtime-kernel/llm/policies/types.d.cts +27 -0
  321. package/dist/runtime-kernel/llm/policies/types.d.ts +27 -0
  322. package/dist/runtime-kernel/llm/request-builder.d.cts +22 -0
  323. package/dist/runtime-kernel/llm/request-builder.d.ts +22 -0
  324. package/dist/runtime-kernel/llm/usage-telemetry.d.cts +17 -0
  325. package/dist/runtime-kernel/llm/usage-telemetry.d.ts +17 -0
  326. package/dist/runtime-kernel/run-context/index.d.cts +1 -0
  327. package/dist/runtime-kernel/run-context/index.d.ts +1 -0
  328. package/dist/runtime-kernel/run-context/types.d.cts +44 -0
  329. package/dist/runtime-kernel/run-context/types.d.ts +44 -0
  330. package/dist/runtime-kernel/run-supervisor/definitions/runSupervisorContracts.d.cts +131 -0
  331. package/dist/runtime-kernel/run-supervisor/definitions/runSupervisorContracts.d.ts +131 -0
  332. package/dist/runtime-kernel/run-supervisor/index.d.cts +6 -0
  333. package/dist/runtime-kernel/run-supervisor/index.d.ts +6 -0
  334. package/dist/runtime-kernel/run-supervisor/memoryRunRegistryStore.d.cts +15 -0
  335. package/dist/runtime-kernel/run-supervisor/memoryRunRegistryStore.d.ts +15 -0
  336. package/dist/runtime-kernel/run-supervisor/runErrors.d.cts +24 -0
  337. package/dist/runtime-kernel/run-supervisor/runErrors.d.ts +24 -0
  338. package/dist/runtime-kernel/run-supervisor/runHandle.d.cts +155 -0
  339. package/dist/runtime-kernel/run-supervisor/runHandle.d.ts +155 -0
  340. package/dist/runtime-kernel/run-supervisor/runRegistryStorePort.d.cts +47 -0
  341. package/dist/runtime-kernel/run-supervisor/runRegistryStorePort.d.ts +47 -0
  342. package/dist/runtime-kernel/run-supervisor/runSupervisor.d.cts +57 -0
  343. package/dist/runtime-kernel/run-supervisor/runSupervisor.d.ts +57 -0
  344. package/dist/runtime-kernel/system-reminder/apply.d.cts +38 -0
  345. package/dist/runtime-kernel/system-reminder/apply.d.ts +38 -0
  346. package/dist/runtime-kernel/system-reminder/helpers.d.cts +11 -0
  347. package/dist/runtime-kernel/system-reminder/helpers.d.ts +11 -0
  348. package/dist/runtime-kernel/system-reminder/index.d.cts +7 -0
  349. package/dist/runtime-kernel/system-reminder/index.d.ts +7 -0
  350. package/dist/runtime-kernel/system-reminder/registry.d.cts +17 -0
  351. package/dist/runtime-kernel/system-reminder/registry.d.ts +17 -0
  352. package/dist/runtime-kernel/system-reminder/rules.d.cts +20 -0
  353. package/dist/runtime-kernel/system-reminder/rules.d.ts +20 -0
  354. package/dist/runtime-kernel/system-reminder/templates.d.cts +10 -0
  355. package/dist/runtime-kernel/system-reminder/templates.d.ts +10 -0
  356. package/dist/runtime-kernel/system-reminder/triggers.d.cts +10 -0
  357. package/dist/runtime-kernel/system-reminder/triggers.d.ts +10 -0
  358. package/dist/runtime-kernel/system-reminder/types.d.cts +46 -0
  359. package/dist/runtime-kernel/system-reminder/types.d.ts +46 -0
  360. package/dist/runtime-kernel/telemetry/index.d.cts +3 -0
  361. package/dist/runtime-kernel/telemetry/index.d.ts +3 -0
  362. package/dist/runtime-kernel/telemetry/noopTelemetry.d.cts +5 -0
  363. package/dist/runtime-kernel/telemetry/noopTelemetry.d.ts +5 -0
  364. package/dist/runtime-kernel/telemetry/telemetryEvents.d.cts +5 -0
  365. package/dist/runtime-kernel/telemetry/telemetryEvents.d.ts +5 -0
  366. package/dist/runtime-kernel/telemetry/telemetryPort.d.cts +95 -0
  367. package/dist/runtime-kernel/telemetry/telemetryPort.d.ts +95 -0
  368. package/dist/runtime-kernel/testkit/defaultGraphExecutor.d.cts +23 -0
  369. package/dist/runtime-kernel/testkit/defaultGraphExecutor.d.ts +23 -0
  370. package/dist/runtime-kernel/testkit/graphLoopHarness.d.cts +49 -0
  371. package/dist/runtime-kernel/testkit/graphLoopHarness.d.ts +49 -0
  372. package/dist/runtime-kernel/token-accounting/functions.d.cts +27 -0
  373. package/dist/runtime-kernel/token-accounting/functions.d.ts +27 -0
  374. package/dist/runtime-kernel/token-accounting/index.d.cts +1 -0
  375. package/dist/runtime-kernel/token-accounting/index.d.ts +1 -0
  376. package/dist/runtime-kernel/tools/argNormalizer.d.cts +10 -0
  377. package/dist/runtime-kernel/tools/argNormalizer.d.ts +10 -0
  378. package/dist/runtime-kernel/tools/conversationView.d.cts +22 -0
  379. package/dist/runtime-kernel/tools/conversationView.d.ts +22 -0
  380. package/dist/runtime-kernel/tools/idempotency/toolIdempotency.d.cts +25 -0
  381. package/dist/runtime-kernel/tools/idempotency/toolIdempotency.d.ts +25 -0
  382. package/dist/runtime-kernel/tools/index.d.cts +15 -0
  383. package/dist/runtime-kernel/tools/index.d.ts +15 -0
  384. package/dist/runtime-kernel/tools/model-input/definitions/toolModelInput.d.cts +51 -0
  385. package/dist/runtime-kernel/tools/model-input/definitions/toolModelInput.d.ts +51 -0
  386. package/dist/runtime-kernel/tools/model-input/definitions/toolModelInputPolicy.d.cts +17 -0
  387. package/dist/runtime-kernel/tools/model-input/definitions/toolModelInputPolicy.d.ts +17 -0
  388. package/dist/runtime-kernel/tools/model-input/functions/parseToolModelInputDeclaration.d.cts +17 -0
  389. package/dist/runtime-kernel/tools/model-input/functions/parseToolModelInputDeclaration.d.ts +17 -0
  390. package/dist/runtime-kernel/tools/model-input/orchestration/resolveToolModelInput.d.cts +16 -0
  391. package/dist/runtime-kernel/tools/model-input/orchestration/resolveToolModelInput.d.ts +16 -0
  392. package/dist/runtime-kernel/tools/ports.d.cts +119 -0
  393. package/dist/runtime-kernel/tools/ports.d.ts +119 -0
  394. package/dist/runtime-kernel/tools/schema/functions/assertToolParameterSchema.d.cts +15 -0
  395. package/dist/runtime-kernel/tools/schema/functions/assertToolParameterSchema.d.ts +15 -0
  396. package/dist/runtime-kernel/tools/toolContextPatch.d.cts +14 -0
  397. package/dist/runtime-kernel/tools/toolContextPatch.d.ts +14 -0
  398. package/dist/runtime-kernel/tools/toolContextRuntime.d.cts +37 -0
  399. package/dist/runtime-kernel/tools/toolContextRuntime.d.ts +37 -0
  400. package/dist/runtime-kernel/tools/toolContracts.d.cts +109 -0
  401. package/dist/runtime-kernel/tools/toolContracts.d.ts +109 -0
  402. package/dist/runtime-kernel/tools/toolExecutionContext.d.cts +104 -0
  403. package/dist/runtime-kernel/tools/toolExecutionContext.d.ts +104 -0
  404. package/dist/runtime-kernel/tools/ui-types.d.cts +72 -0
  405. package/dist/runtime-kernel/tools/ui-types.d.ts +72 -0
  406. package/dist/runtime-kernel.d.cts +106 -20
  407. package/dist/runtime-kernel.d.ts +106 -20
  408. package/dist/shared/defaultTokenizerPort.d.cts +29 -0
  409. package/dist/shared/defaultTokenizerPort.d.ts +29 -0
  410. package/dist/shared/errorClassifier.d.cts +42 -0
  411. package/dist/shared/errorClassifier.d.ts +42 -0
  412. package/dist/shared/llmAuditProjection.d.cts +11 -0
  413. package/dist/shared/llmAuditProjection.d.ts +11 -0
  414. package/dist/shared/llmAuditRecorder.d.cts +44 -0
  415. package/dist/shared/llmAuditRecorder.d.ts +44 -0
  416. package/dist/shared/llmImageInputError.d.cts +34 -0
  417. package/dist/shared/llmImageInputError.d.ts +34 -0
  418. package/dist/shared/llmTelemetryContext.d.cts +52 -0
  419. package/dist/shared/llmTelemetryContext.d.ts +52 -0
  420. package/dist/shared/logger.d.cts +12 -0
  421. package/dist/shared/logger.d.ts +12 -0
  422. package/dist/{prompt-budget-yciFkC9U.d.cts → shared/prompt-budget.d.cts} +2 -1
  423. package/dist/{prompt-budget-yciFkC9U.d.ts → shared/prompt-budget.d.ts} +2 -1
  424. package/dist/testkit/agent-harness/assertions.d.cts +10 -0
  425. package/dist/testkit/agent-harness/assertions.d.ts +10 -0
  426. package/dist/testkit/agent-harness/scriptedInferenceHarness.d.cts +52 -0
  427. package/dist/testkit/agent-harness/scriptedInferenceHarness.d.ts +52 -0
  428. package/dist/testkit/context-harness/invariants/index.d.cts +7 -0
  429. package/dist/testkit/context-harness/invariants/index.d.ts +7 -0
  430. package/dist/testkit/context-harness/invariants/types.d.cts +32 -0
  431. package/dist/testkit/context-harness/invariants/types.d.ts +32 -0
  432. package/dist/testkit/context-harness/replayHarness.d.cts +18 -0
  433. package/dist/testkit/context-harness/replayHarness.d.ts +18 -0
  434. package/dist/testkit/mocks/tokenizerPort.d.cts +17 -0
  435. package/dist/testkit/mocks/tokenizerPort.d.ts +17 -0
  436. package/dist/testkit/run-harness/collectingAuditPort.d.cts +21 -0
  437. package/dist/testkit/run-harness/collectingAuditPort.d.ts +21 -0
  438. package/dist/testkit/run-harness/invariants/index.d.cts +7 -0
  439. package/dist/testkit/run-harness/invariants/index.d.ts +7 -0
  440. package/dist/testkit/run-harness/invariants/types.d.cts +48 -0
  441. package/dist/testkit/run-harness/invariants/types.d.ts +48 -0
  442. package/dist/testkit/run-harness/mockTelemetryPort.d.cts +35 -0
  443. package/dist/testkit/run-harness/mockTelemetryPort.d.ts +35 -0
  444. package/dist/testkit/run-harness/runSupervisorHarness.d.cts +60 -0
  445. package/dist/testkit/run-harness/runSupervisorHarness.d.ts +60 -0
  446. package/dist/testkit/tool-fixtures/toolContext.d.cts +19 -0
  447. package/dist/testkit/tool-fixtures/toolContext.d.ts +19 -0
  448. package/dist/testkit.d.cts +17 -277
  449. package/dist/testkit.d.ts +17 -277
  450. package/package.json +6 -4
  451. package/dist/base-DRRrRhxS.d.cts +0 -216
  452. package/dist/base-DVyQIl_d.d.ts +0 -216
  453. package/dist/defaultGraphExecutor-Chr16eYO.d.cts +0 -914
  454. package/dist/defaultGraphExecutor-hT7dchpC.d.ts +0 -914
  455. package/dist/index-1pE6gSpV.d.cts +0 -172
  456. package/dist/index-C2PSqU1I.d.cts +0 -1971
  457. package/dist/index-CZMXtw4h.d.ts +0 -1971
  458. package/dist/index-D_csW7Zl.d.ts +0 -172
  459. package/dist/index-DpSWZ1L6.d.ts +0 -67
  460. package/dist/index-oCM3XEu2.d.cts +0 -67
  461. package/dist/llm-input-materialization-Vce5Swvc.d.ts +0 -366
  462. package/dist/llm-input-materialization-r-V3n9U-.d.cts +0 -366
  463. package/dist/runHandle--l0kE205.d.cts +0 -490
  464. package/dist/runHandle-ouLd6Tgp.d.ts +0 -490
  465. package/dist/token-accounting-19cXG7hM.d.cts +0 -3342
  466. package/dist/token-accounting-CVW37Uri.d.ts +0 -3342
  467. package/dist/toolContracts--KrHHNCY.d.cts +0 -424
  468. package/dist/toolContracts-BQ4kIso_.d.ts +0 -424
@@ -21,38 +21,38 @@ declare const EventEnvelopeSchema: z.ZodObject<{
21
21
  content: z.ZodDefault<z.ZodEnum<["markdown", "text", "json", "image_url", "code"]>>;
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  content: "code" | "text" | "markdown" | "json" | "image_url";
24
- card?: "image" | "none" | "normal" | "collapsible" | "interactive" | undefined;
24
+ card?: "none" | "image" | "normal" | "collapsible" | "interactive" | undefined;
25
25
  }, {
26
26
  content?: "code" | "text" | "markdown" | "json" | "image_url" | undefined;
27
- card?: "image" | "none" | "normal" | "collapsible" | "interactive" | undefined;
27
+ card?: "none" | "image" | "normal" | "collapsible" | "interactive" | undefined;
28
28
  }>>;
29
29
  run_location: z.ZodOptional<z.ZodEnum<["frontend", "backend"]>>;
30
30
  }, "strip", z.ZodTypeAny, {
31
+ timestamp: number;
32
+ source: string;
33
+ seq: number;
31
34
  trace: {
32
35
  execution_id: string;
33
36
  trace_id?: string | undefined;
34
37
  };
35
- timestamp: number;
36
- seq: number;
37
- source: string;
38
38
  payload?: unknown;
39
39
  render_hint?: {
40
40
  content: "code" | "text" | "markdown" | "json" | "image_url";
41
- card?: "image" | "none" | "normal" | "collapsible" | "interactive" | undefined;
41
+ card?: "none" | "image" | "normal" | "collapsible" | "interactive" | undefined;
42
42
  } | undefined;
43
43
  run_location?: "frontend" | "backend" | undefined;
44
44
  }, {
45
+ timestamp: number;
46
+ source: string;
47
+ seq: number;
45
48
  trace: {
46
49
  execution_id: string;
47
50
  trace_id?: string | undefined;
48
51
  };
49
- timestamp: number;
50
- seq: number;
51
- source: string;
52
52
  payload?: unknown;
53
53
  render_hint?: {
54
54
  content?: "code" | "text" | "markdown" | "json" | "image_url" | undefined;
55
- card?: "image" | "none" | "normal" | "collapsible" | "interactive" | undefined;
55
+ card?: "none" | "image" | "normal" | "collapsible" | "interactive" | undefined;
56
56
  } | undefined;
57
57
  run_location?: "frontend" | "backend" | undefined;
58
58
  }>;
@@ -78,38 +78,38 @@ declare const EventEnvelope: z.ZodObject<{
78
78
  content: z.ZodDefault<z.ZodEnum<["markdown", "text", "json", "image_url", "code"]>>;
79
79
  }, "strip", z.ZodTypeAny, {
80
80
  content: "code" | "text" | "markdown" | "json" | "image_url";
81
- card?: "image" | "none" | "normal" | "collapsible" | "interactive" | undefined;
81
+ card?: "none" | "image" | "normal" | "collapsible" | "interactive" | undefined;
82
82
  }, {
83
83
  content?: "code" | "text" | "markdown" | "json" | "image_url" | undefined;
84
- card?: "image" | "none" | "normal" | "collapsible" | "interactive" | undefined;
84
+ card?: "none" | "image" | "normal" | "collapsible" | "interactive" | undefined;
85
85
  }>>;
86
86
  run_location: z.ZodOptional<z.ZodEnum<["frontend", "backend"]>>;
87
87
  }, "strip", z.ZodTypeAny, {
88
+ timestamp: number;
89
+ source: string;
90
+ seq: number;
88
91
  trace: {
89
92
  execution_id: string;
90
93
  trace_id?: string | undefined;
91
94
  };
92
- timestamp: number;
93
- seq: number;
94
- source: string;
95
95
  payload?: unknown;
96
96
  render_hint?: {
97
97
  content: "code" | "text" | "markdown" | "json" | "image_url";
98
- card?: "image" | "none" | "normal" | "collapsible" | "interactive" | undefined;
98
+ card?: "none" | "image" | "normal" | "collapsible" | "interactive" | undefined;
99
99
  } | undefined;
100
100
  run_location?: "frontend" | "backend" | undefined;
101
101
  }, {
102
+ timestamp: number;
103
+ source: string;
104
+ seq: number;
102
105
  trace: {
103
106
  execution_id: string;
104
107
  trace_id?: string | undefined;
105
108
  };
106
- timestamp: number;
107
- seq: number;
108
- source: string;
109
109
  payload?: unknown;
110
110
  render_hint?: {
111
111
  content?: "code" | "text" | "markdown" | "json" | "image_url" | undefined;
112
- card?: "image" | "none" | "normal" | "collapsible" | "interactive" | undefined;
112
+ card?: "none" | "image" | "normal" | "collapsible" | "interactive" | undefined;
113
113
  } | undefined;
114
114
  run_location?: "frontend" | "backend" | undefined;
115
115
  }>;
@@ -129,4 +129,4 @@ declare const ExecutionTraceContext: z.ZodObject<{
129
129
  }>;
130
130
  type ExecutionTraceContext = z.infer<typeof ExecutionTraceContext>;
131
131
 
132
- export { EventEnvelope as E, ExecutionTraceContext as a };
132
+ export { EventEnvelope, ExecutionTraceContext };
@@ -21,38 +21,38 @@ declare const EventEnvelopeSchema: z.ZodObject<{
21
21
  content: z.ZodDefault<z.ZodEnum<["markdown", "text", "json", "image_url", "code"]>>;
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  content: "code" | "text" | "markdown" | "json" | "image_url";
24
- card?: "image" | "none" | "normal" | "collapsible" | "interactive" | undefined;
24
+ card?: "none" | "image" | "normal" | "collapsible" | "interactive" | undefined;
25
25
  }, {
26
26
  content?: "code" | "text" | "markdown" | "json" | "image_url" | undefined;
27
- card?: "image" | "none" | "normal" | "collapsible" | "interactive" | undefined;
27
+ card?: "none" | "image" | "normal" | "collapsible" | "interactive" | undefined;
28
28
  }>>;
29
29
  run_location: z.ZodOptional<z.ZodEnum<["frontend", "backend"]>>;
30
30
  }, "strip", z.ZodTypeAny, {
31
+ timestamp: number;
32
+ source: string;
33
+ seq: number;
31
34
  trace: {
32
35
  execution_id: string;
33
36
  trace_id?: string | undefined;
34
37
  };
35
- timestamp: number;
36
- seq: number;
37
- source: string;
38
38
  payload?: unknown;
39
39
  render_hint?: {
40
40
  content: "code" | "text" | "markdown" | "json" | "image_url";
41
- card?: "image" | "none" | "normal" | "collapsible" | "interactive" | undefined;
41
+ card?: "none" | "image" | "normal" | "collapsible" | "interactive" | undefined;
42
42
  } | undefined;
43
43
  run_location?: "frontend" | "backend" | undefined;
44
44
  }, {
45
+ timestamp: number;
46
+ source: string;
47
+ seq: number;
45
48
  trace: {
46
49
  execution_id: string;
47
50
  trace_id?: string | undefined;
48
51
  };
49
- timestamp: number;
50
- seq: number;
51
- source: string;
52
52
  payload?: unknown;
53
53
  render_hint?: {
54
54
  content?: "code" | "text" | "markdown" | "json" | "image_url" | undefined;
55
- card?: "image" | "none" | "normal" | "collapsible" | "interactive" | undefined;
55
+ card?: "none" | "image" | "normal" | "collapsible" | "interactive" | undefined;
56
56
  } | undefined;
57
57
  run_location?: "frontend" | "backend" | undefined;
58
58
  }>;
@@ -78,38 +78,38 @@ declare const EventEnvelope: z.ZodObject<{
78
78
  content: z.ZodDefault<z.ZodEnum<["markdown", "text", "json", "image_url", "code"]>>;
79
79
  }, "strip", z.ZodTypeAny, {
80
80
  content: "code" | "text" | "markdown" | "json" | "image_url";
81
- card?: "image" | "none" | "normal" | "collapsible" | "interactive" | undefined;
81
+ card?: "none" | "image" | "normal" | "collapsible" | "interactive" | undefined;
82
82
  }, {
83
83
  content?: "code" | "text" | "markdown" | "json" | "image_url" | undefined;
84
- card?: "image" | "none" | "normal" | "collapsible" | "interactive" | undefined;
84
+ card?: "none" | "image" | "normal" | "collapsible" | "interactive" | undefined;
85
85
  }>>;
86
86
  run_location: z.ZodOptional<z.ZodEnum<["frontend", "backend"]>>;
87
87
  }, "strip", z.ZodTypeAny, {
88
+ timestamp: number;
89
+ source: string;
90
+ seq: number;
88
91
  trace: {
89
92
  execution_id: string;
90
93
  trace_id?: string | undefined;
91
94
  };
92
- timestamp: number;
93
- seq: number;
94
- source: string;
95
95
  payload?: unknown;
96
96
  render_hint?: {
97
97
  content: "code" | "text" | "markdown" | "json" | "image_url";
98
- card?: "image" | "none" | "normal" | "collapsible" | "interactive" | undefined;
98
+ card?: "none" | "image" | "normal" | "collapsible" | "interactive" | undefined;
99
99
  } | undefined;
100
100
  run_location?: "frontend" | "backend" | undefined;
101
101
  }, {
102
+ timestamp: number;
103
+ source: string;
104
+ seq: number;
102
105
  trace: {
103
106
  execution_id: string;
104
107
  trace_id?: string | undefined;
105
108
  };
106
- timestamp: number;
107
- seq: number;
108
- source: string;
109
109
  payload?: unknown;
110
110
  render_hint?: {
111
111
  content?: "code" | "text" | "markdown" | "json" | "image_url" | undefined;
112
- card?: "image" | "none" | "normal" | "collapsible" | "interactive" | undefined;
112
+ card?: "none" | "image" | "normal" | "collapsible" | "interactive" | undefined;
113
113
  } | undefined;
114
114
  run_location?: "frontend" | "backend" | undefined;
115
115
  }>;
@@ -129,4 +129,4 @@ declare const ExecutionTraceContext: z.ZodObject<{
129
129
  }>;
130
130
  type ExecutionTraceContext = z.infer<typeof ExecutionTraceContext>;
131
131
 
132
- export { EventEnvelope as E, ExecutionTraceContext as a };
132
+ export { EventEnvelope, ExecutionTraceContext };
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+
3
+ /** answer segment 被封口的业务原因。 */
4
+ declare const FinalAnswerCompletionReason: z.ZodEnum<["terminal", "tool_call", "interrupted"]>;
5
+ type FinalAnswerCompletionReason = z.infer<typeof FinalAnswerCompletionReason>;
6
+
7
+ export { FinalAnswerCompletionReason };
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+
3
+ /** answer segment 被封口的业务原因。 */
4
+ declare const FinalAnswerCompletionReason: z.ZodEnum<["terminal", "tool_call", "interrupted"]>;
5
+ type FinalAnswerCompletionReason = z.infer<typeof FinalAnswerCompletionReason>;
6
+
7
+ export { FinalAnswerCompletionReason };
@@ -0,0 +1,70 @@
1
+ import { z } from 'zod';
2
+
3
+ /** 不可变 Runtime 事实身份;全局唯一。 */
4
+ declare const RuntimeEventIdSchema: z.ZodEffects<z.ZodString, string, string>;
5
+ /** 进入模型上下文的一条消息身份;可以保留来源 Runtime fact ID,也可以由上下文 owner 创建。 */
6
+ declare const AiMessageIdSchema: z.ZodEffects<z.ZodString, string, string>;
7
+ /** Conversation 聚合根身份;全局唯一。 */
8
+ declare const ConversationIdSchema: z.ZodEffects<z.ZodString, string, string>;
9
+ /** 一次用户输入及其后续工作的逻辑轮次身份;conversation 内唯一。 */
10
+ declare const TurnIdSchema: z.ZodEffects<z.ZodString, string, string>;
11
+ /** 一次 Agent run 身份;全局唯一。 */
12
+ declare const RunIdSchema: z.ZodBranded<z.ZodEffects<z.ZodString, string, string>, "RunId">;
13
+ /** 一次前端传输/执行会话身份;全局唯一。 */
14
+ declare const ExecutionIdSchema: z.ZodEffects<z.ZodString, string, string>;
15
+ /** 一条可观察性链路身份;全局唯一,由 execution sequencer 持有。 */
16
+ declare const TraceIdSchema: z.ZodEffects<z.ZodString, string, string>;
17
+ /** 一个可流式聚合的答案段身份;全局唯一。 */
18
+ declare const AnswerSegmentIdSchema: z.ZodEffects<z.ZodString, string, string>;
19
+ /** 一段可增量合并的思考消息身份;run 内唯一。 */
20
+ declare const ThoughtMessageIdSchema: z.ZodEffects<z.ZodString, string, string>;
21
+ /** 一次工具调用身份;run 内唯一。 */
22
+ declare const ToolCallIdSchema: z.ZodBranded<z.ZodEffects<z.ZodString, string, string>, "ToolCallId">;
23
+ /** 一次需要用户继续操作的交互身份;run 内唯一。 */
24
+ declare const InteractionIdSchema: z.ZodEffects<z.ZodString, string, string>;
25
+ /** 一个 child/subrun 身份;全局唯一。 */
26
+ declare const SubrunIdSchema: z.ZodEffects<z.ZodString, string, string>;
27
+ /** 一次等待用户交互的恢复凭据;全局唯一且不可复用。 */
28
+ declare const ResumeTokenSchema: z.ZodEffects<z.ZodString, string, string>;
29
+ /** 一次等待用户交互恢复操作的互斥 claim 身份;全局唯一。 */
30
+ declare const RunResumeClaimIdSchema: z.ZodEffects<z.ZodString, string, string>;
31
+ /** 一份追加只读审计信封的身份;全局唯一。 */
32
+ declare const AuditEnvelopeIdSchema: z.ZodEffects<z.ZodString, string, string>;
33
+ /** 一条上下文构建账本记录的身份;全局唯一。 */
34
+ declare const ContextLedgerEntryIdSchema: z.ZodEffects<z.ZodString, string, string>;
35
+ /**
36
+ * 指向已有 Runtime fact 的关系字段,不创建新的身份命名空间。
37
+ * 采用单独名称是为了让字段语义清楚,而不是允许生成独立 source event ID。
38
+ */
39
+ declare const SourceEventIdSchema: z.ZodEffects<z.ZodString, string, string>;
40
+ /** 历史摘要替换目标;必须引用已有 Runtime fact 的正式 ID。 */
41
+ declare const HistoryMessageReferenceIdSchema: z.ZodEffects<z.ZodString, string, string>;
42
+ /**
43
+ * control 事件操作目标的多态引用。
44
+ *
45
+ * 目标可能是 event、message 或 branch anchor,所以它不是新的实体身份,也不能被收窄成
46
+ * 某一个具体 ID 类型;创建 control 事件的业务边界必须根据 op 解释并校验目标类别。
47
+ */
48
+ declare const ControlTargetReferenceIdSchema: z.ZodEffects<z.ZodString, string, string>;
49
+ type RuntimeEventId = z.infer<typeof RuntimeEventIdSchema>;
50
+ type AiMessageId = z.infer<typeof AiMessageIdSchema>;
51
+ type ConversationId = z.infer<typeof ConversationIdSchema>;
52
+ type TurnId = z.infer<typeof TurnIdSchema>;
53
+ type RunId = z.infer<typeof RunIdSchema>;
54
+ type ExecutionId = z.infer<typeof ExecutionIdSchema>;
55
+ type TraceId = z.infer<typeof TraceIdSchema>;
56
+ type AnswerSegmentId = z.infer<typeof AnswerSegmentIdSchema>;
57
+ type ThoughtMessageId = z.infer<typeof ThoughtMessageIdSchema>;
58
+ type ToolCallId = z.infer<typeof ToolCallIdSchema>;
59
+ type InteractionId = z.infer<typeof InteractionIdSchema>;
60
+ type SubrunId = z.infer<typeof SubrunIdSchema>;
61
+ type ResumeToken = z.infer<typeof ResumeTokenSchema>;
62
+ type RunResumeClaimId = z.infer<typeof RunResumeClaimIdSchema>;
63
+ type AuditEnvelopeId = z.infer<typeof AuditEnvelopeIdSchema>;
64
+ type ContextLedgerEntryId = z.infer<typeof ContextLedgerEntryIdSchema>;
65
+ type SourceEventId = z.infer<typeof SourceEventIdSchema>;
66
+ type HistoryMessageReferenceId = z.infer<typeof HistoryMessageReferenceIdSchema>;
67
+ type ControlTargetReferenceId = z.infer<typeof ControlTargetReferenceIdSchema>;
68
+
69
+ export { AiMessageIdSchema, AnswerSegmentIdSchema, AuditEnvelopeIdSchema, ContextLedgerEntryIdSchema, ControlTargetReferenceIdSchema, ConversationIdSchema, ExecutionIdSchema, HistoryMessageReferenceIdSchema, InteractionIdSchema, ResumeTokenSchema, RunIdSchema, RunResumeClaimIdSchema, RuntimeEventIdSchema, SourceEventIdSchema, SubrunIdSchema, ThoughtMessageIdSchema, ToolCallIdSchema, TraceIdSchema, TurnIdSchema };
70
+ export type { AiMessageId, AnswerSegmentId, AuditEnvelopeId, ContextLedgerEntryId, ControlTargetReferenceId, ConversationId, ExecutionId, HistoryMessageReferenceId, InteractionId, ResumeToken, RunId, RunResumeClaimId, RuntimeEventId, SourceEventId, SubrunId, ThoughtMessageId, ToolCallId, TraceId, TurnId };
@@ -0,0 +1,70 @@
1
+ import { z } from 'zod';
2
+
3
+ /** 不可变 Runtime 事实身份;全局唯一。 */
4
+ declare const RuntimeEventIdSchema: z.ZodEffects<z.ZodString, string, string>;
5
+ /** 进入模型上下文的一条消息身份;可以保留来源 Runtime fact ID,也可以由上下文 owner 创建。 */
6
+ declare const AiMessageIdSchema: z.ZodEffects<z.ZodString, string, string>;
7
+ /** Conversation 聚合根身份;全局唯一。 */
8
+ declare const ConversationIdSchema: z.ZodEffects<z.ZodString, string, string>;
9
+ /** 一次用户输入及其后续工作的逻辑轮次身份;conversation 内唯一。 */
10
+ declare const TurnIdSchema: z.ZodEffects<z.ZodString, string, string>;
11
+ /** 一次 Agent run 身份;全局唯一。 */
12
+ declare const RunIdSchema: z.ZodBranded<z.ZodEffects<z.ZodString, string, string>, "RunId">;
13
+ /** 一次前端传输/执行会话身份;全局唯一。 */
14
+ declare const ExecutionIdSchema: z.ZodEffects<z.ZodString, string, string>;
15
+ /** 一条可观察性链路身份;全局唯一,由 execution sequencer 持有。 */
16
+ declare const TraceIdSchema: z.ZodEffects<z.ZodString, string, string>;
17
+ /** 一个可流式聚合的答案段身份;全局唯一。 */
18
+ declare const AnswerSegmentIdSchema: z.ZodEffects<z.ZodString, string, string>;
19
+ /** 一段可增量合并的思考消息身份;run 内唯一。 */
20
+ declare const ThoughtMessageIdSchema: z.ZodEffects<z.ZodString, string, string>;
21
+ /** 一次工具调用身份;run 内唯一。 */
22
+ declare const ToolCallIdSchema: z.ZodBranded<z.ZodEffects<z.ZodString, string, string>, "ToolCallId">;
23
+ /** 一次需要用户继续操作的交互身份;run 内唯一。 */
24
+ declare const InteractionIdSchema: z.ZodEffects<z.ZodString, string, string>;
25
+ /** 一个 child/subrun 身份;全局唯一。 */
26
+ declare const SubrunIdSchema: z.ZodEffects<z.ZodString, string, string>;
27
+ /** 一次等待用户交互的恢复凭据;全局唯一且不可复用。 */
28
+ declare const ResumeTokenSchema: z.ZodEffects<z.ZodString, string, string>;
29
+ /** 一次等待用户交互恢复操作的互斥 claim 身份;全局唯一。 */
30
+ declare const RunResumeClaimIdSchema: z.ZodEffects<z.ZodString, string, string>;
31
+ /** 一份追加只读审计信封的身份;全局唯一。 */
32
+ declare const AuditEnvelopeIdSchema: z.ZodEffects<z.ZodString, string, string>;
33
+ /** 一条上下文构建账本记录的身份;全局唯一。 */
34
+ declare const ContextLedgerEntryIdSchema: z.ZodEffects<z.ZodString, string, string>;
35
+ /**
36
+ * 指向已有 Runtime fact 的关系字段,不创建新的身份命名空间。
37
+ * 采用单独名称是为了让字段语义清楚,而不是允许生成独立 source event ID。
38
+ */
39
+ declare const SourceEventIdSchema: z.ZodEffects<z.ZodString, string, string>;
40
+ /** 历史摘要替换目标;必须引用已有 Runtime fact 的正式 ID。 */
41
+ declare const HistoryMessageReferenceIdSchema: z.ZodEffects<z.ZodString, string, string>;
42
+ /**
43
+ * control 事件操作目标的多态引用。
44
+ *
45
+ * 目标可能是 event、message 或 branch anchor,所以它不是新的实体身份,也不能被收窄成
46
+ * 某一个具体 ID 类型;创建 control 事件的业务边界必须根据 op 解释并校验目标类别。
47
+ */
48
+ declare const ControlTargetReferenceIdSchema: z.ZodEffects<z.ZodString, string, string>;
49
+ type RuntimeEventId = z.infer<typeof RuntimeEventIdSchema>;
50
+ type AiMessageId = z.infer<typeof AiMessageIdSchema>;
51
+ type ConversationId = z.infer<typeof ConversationIdSchema>;
52
+ type TurnId = z.infer<typeof TurnIdSchema>;
53
+ type RunId = z.infer<typeof RunIdSchema>;
54
+ type ExecutionId = z.infer<typeof ExecutionIdSchema>;
55
+ type TraceId = z.infer<typeof TraceIdSchema>;
56
+ type AnswerSegmentId = z.infer<typeof AnswerSegmentIdSchema>;
57
+ type ThoughtMessageId = z.infer<typeof ThoughtMessageIdSchema>;
58
+ type ToolCallId = z.infer<typeof ToolCallIdSchema>;
59
+ type InteractionId = z.infer<typeof InteractionIdSchema>;
60
+ type SubrunId = z.infer<typeof SubrunIdSchema>;
61
+ type ResumeToken = z.infer<typeof ResumeTokenSchema>;
62
+ type RunResumeClaimId = z.infer<typeof RunResumeClaimIdSchema>;
63
+ type AuditEnvelopeId = z.infer<typeof AuditEnvelopeIdSchema>;
64
+ type ContextLedgerEntryId = z.infer<typeof ContextLedgerEntryIdSchema>;
65
+ type SourceEventId = z.infer<typeof SourceEventIdSchema>;
66
+ type HistoryMessageReferenceId = z.infer<typeof HistoryMessageReferenceIdSchema>;
67
+ type ControlTargetReferenceId = z.infer<typeof ControlTargetReferenceIdSchema>;
68
+
69
+ export { AiMessageIdSchema, AnswerSegmentIdSchema, AuditEnvelopeIdSchema, ContextLedgerEntryIdSchema, ControlTargetReferenceIdSchema, ConversationIdSchema, ExecutionIdSchema, HistoryMessageReferenceIdSchema, InteractionIdSchema, ResumeTokenSchema, RunIdSchema, RunResumeClaimIdSchema, RuntimeEventIdSchema, SourceEventIdSchema, SubrunIdSchema, ThoughtMessageIdSchema, ToolCallIdSchema, TraceIdSchema, TurnIdSchema };
70
+ export type { AiMessageId, AnswerSegmentId, AuditEnvelopeId, ContextLedgerEntryId, ControlTargetReferenceId, ConversationId, ExecutionId, HistoryMessageReferenceId, InteractionId, ResumeToken, RunId, RunResumeClaimId, RuntimeEventId, SourceEventId, SubrunId, ThoughtMessageId, ToolCallId, TraceId, TurnId };
@@ -0,0 +1,33 @@
1
+ import { RunId, ToolCallId, SubrunId, TurnId } from './definitions.cjs';
2
+
3
+ /**
4
+ * Runtime 身份生成器的唯一实现。
5
+ *
6
+ * 每个函数只创建名称对应的实体身份。调用点必须选择真实业务身份,禁止用某个
7
+ * “通用 message ID”代替 event、tool call、interaction 等不同实体。完整 UUID
8
+ * 保留足够的全局唯一性;前缀只用于诊断,不承担类型判断。
9
+ */
10
+
11
+ declare function generateRuntimeEventId(): string;
12
+ declare function generateAiMessageId(): string;
13
+ declare function generateAnswerSegmentId(): string;
14
+ declare function generateConversationId(): string;
15
+ declare function generateTurnId(): string;
16
+ declare function generateRunId(): RunId;
17
+ declare function generateExecutionId(): string;
18
+ declare function generateTraceId(): string;
19
+ declare function generateInferenceAttemptId(): string;
20
+ declare function generateThoughtMessageId(): string;
21
+ declare function generateToolCallId(): ToolCallId;
22
+ declare function generateInteractionId(): string;
23
+ declare function generateResumeToken(): string;
24
+ declare function generateSubrunId(): string;
25
+ declare function generateRunResumeClaimId(): string;
26
+ declare function generateAuditEnvelopeId(): string;
27
+ declare function generateContextLedgerEntryId(): string;
28
+ /** Host-only 持久化沿用 turn identity 时,显式建立其 Run 身份语义。 */
29
+ declare function runIdFromTurnId(turnId: TurnId): RunId;
30
+ /** Child run 沿用 subrun identity 时,显式建立其 Run 身份语义。 */
31
+ declare function runIdFromSubrunId(subrunId: SubrunId): RunId;
32
+
33
+ export { generateAiMessageId, generateAnswerSegmentId, generateAuditEnvelopeId, generateContextLedgerEntryId, generateConversationId, generateExecutionId, generateInferenceAttemptId, generateInteractionId, generateResumeToken, generateRunId, generateRunResumeClaimId, generateRuntimeEventId, generateSubrunId, generateThoughtMessageId, generateToolCallId, generateTraceId, generateTurnId, runIdFromSubrunId, runIdFromTurnId };
@@ -0,0 +1,33 @@
1
+ import { RunId, ToolCallId, SubrunId, TurnId } from './definitions.js';
2
+
3
+ /**
4
+ * Runtime 身份生成器的唯一实现。
5
+ *
6
+ * 每个函数只创建名称对应的实体身份。调用点必须选择真实业务身份,禁止用某个
7
+ * “通用 message ID”代替 event、tool call、interaction 等不同实体。完整 UUID
8
+ * 保留足够的全局唯一性;前缀只用于诊断,不承担类型判断。
9
+ */
10
+
11
+ declare function generateRuntimeEventId(): string;
12
+ declare function generateAiMessageId(): string;
13
+ declare function generateAnswerSegmentId(): string;
14
+ declare function generateConversationId(): string;
15
+ declare function generateTurnId(): string;
16
+ declare function generateRunId(): RunId;
17
+ declare function generateExecutionId(): string;
18
+ declare function generateTraceId(): string;
19
+ declare function generateInferenceAttemptId(): string;
20
+ declare function generateThoughtMessageId(): string;
21
+ declare function generateToolCallId(): ToolCallId;
22
+ declare function generateInteractionId(): string;
23
+ declare function generateResumeToken(): string;
24
+ declare function generateSubrunId(): string;
25
+ declare function generateRunResumeClaimId(): string;
26
+ declare function generateAuditEnvelopeId(): string;
27
+ declare function generateContextLedgerEntryId(): string;
28
+ /** Host-only 持久化沿用 turn identity 时,显式建立其 Run 身份语义。 */
29
+ declare function runIdFromTurnId(turnId: TurnId): RunId;
30
+ /** Child run 沿用 subrun identity 时,显式建立其 Run 身份语义。 */
31
+ declare function runIdFromSubrunId(subrunId: SubrunId): RunId;
32
+
33
+ export { generateAiMessageId, generateAnswerSegmentId, generateAuditEnvelopeId, generateContextLedgerEntryId, generateConversationId, generateExecutionId, generateInferenceAttemptId, generateInteractionId, generateResumeToken, generateRunId, generateRunResumeClaimId, generateRuntimeEventId, generateSubrunId, generateThoughtMessageId, generateToolCallId, generateTraceId, generateTurnId, runIdFromSubrunId, runIdFromTurnId };
@@ -0,0 +1,24 @@
1
+ import { RuntimeEventId, AnswerSegmentId } from './definitions.cjs';
2
+
3
+ /**
4
+ * 校验 final_answer 的正式身份关系。
5
+ *
6
+ * final_answer 与 answer segment 一一对应,所以新事实必须满足 `event.id === answer_id`。
7
+ * final_answer 与 answer segment 一一对应,所有创建、持久化和读取边界均执行同一合同。
8
+ */
9
+ declare function assertCanonicalFinalAnswerIdentity(input: {
10
+ readonly id: RuntimeEventId;
11
+ readonly answer_id: AnswerSegmentId;
12
+ }): AnswerSegmentId;
13
+ /**
14
+ * chunk 是独立的增量事实,必须拥有不同于 answer segment 的 event ID。
15
+ *
16
+ * 如果二者相等,前端 processed-event 账本会先记录 chunk,随后把同 ID 的 seal 当成
17
+ * 重复事件跳过,答案将永远无法封口。这条关系由新事实 admission 强制执行。
18
+ */
19
+ declare function assertDistinctAnswerChunkIdentity(input: {
20
+ readonly id: RuntimeEventId;
21
+ readonly answer_id: AnswerSegmentId;
22
+ }): void;
23
+
24
+ export { assertCanonicalFinalAnswerIdentity, assertDistinctAnswerChunkIdentity };
@@ -0,0 +1,24 @@
1
+ import { RuntimeEventId, AnswerSegmentId } from './definitions.js';
2
+
3
+ /**
4
+ * 校验 final_answer 的正式身份关系。
5
+ *
6
+ * final_answer 与 answer segment 一一对应,所以新事实必须满足 `event.id === answer_id`。
7
+ * final_answer 与 answer segment 一一对应,所有创建、持久化和读取边界均执行同一合同。
8
+ */
9
+ declare function assertCanonicalFinalAnswerIdentity(input: {
10
+ readonly id: RuntimeEventId;
11
+ readonly answer_id: AnswerSegmentId;
12
+ }): AnswerSegmentId;
13
+ /**
14
+ * chunk 是独立的增量事实,必须拥有不同于 answer segment 的 event ID。
15
+ *
16
+ * 如果二者相等,前端 processed-event 账本会先记录 chunk,随后把同 ID 的 seal 当成
17
+ * 重复事件跳过,答案将永远无法封口。这条关系由新事实 admission 强制执行。
18
+ */
19
+ declare function assertDistinctAnswerChunkIdentity(input: {
20
+ readonly id: RuntimeEventId;
21
+ readonly answer_id: AnswerSegmentId;
22
+ }): void;
23
+
24
+ export { assertCanonicalFinalAnswerIdentity, assertDistinctAnswerChunkIdentity };
@@ -0,0 +1,12 @@
1
+ import { z } from 'zod';
2
+
3
+ type SerializableJsonValue = string | number | boolean | null | SerializableJsonValue[] | {
4
+ [key: string]: SerializableJsonValue;
5
+ };
6
+ declare const SerializableJsonValue: z.ZodType<SerializableJsonValue>;
7
+ declare const SerializableJsonRecord: z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>;
8
+ type SerializableJsonRecord = z.infer<typeof SerializableJsonRecord>;
9
+ declare function toSerializableJsonValue(value: unknown): SerializableJsonValue | undefined;
10
+ declare function toSerializableJsonRecord(value: unknown): SerializableJsonRecord | undefined;
11
+
12
+ export { SerializableJsonRecord, SerializableJsonValue, toSerializableJsonRecord, toSerializableJsonValue };
@@ -0,0 +1,12 @@
1
+ import { z } from 'zod';
2
+
3
+ type SerializableJsonValue = string | number | boolean | null | SerializableJsonValue[] | {
4
+ [key: string]: SerializableJsonValue;
5
+ };
6
+ declare const SerializableJsonValue: z.ZodType<SerializableJsonValue>;
7
+ declare const SerializableJsonRecord: z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>;
8
+ type SerializableJsonRecord = z.infer<typeof SerializableJsonRecord>;
9
+ declare function toSerializableJsonValue(value: unknown): SerializableJsonValue | undefined;
10
+ declare function toSerializableJsonRecord(value: unknown): SerializableJsonRecord | undefined;
11
+
12
+ export { SerializableJsonRecord, SerializableJsonValue, toSerializableJsonRecord, toSerializableJsonValue };