effect-agent 0.1.0-beta.164 → 0.1.0-beta.165

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 (285) hide show
  1. package/dist/{Admin-Vhz6NdaH.d.mts → Admin-CbwoQEm8.d.mts} +24 -24
  2. package/dist/{Agent-BMATXYsI.mjs → Agent-B0WrUcHy.mjs} +9 -9
  3. package/dist/Agent-B0WrUcHy.mjs.map +1 -0
  4. package/dist/{Agent-ZfnNCQXs.d.mts → Agent-D0fbFT2d.d.mts} +27 -24
  5. package/dist/{AgentError-Bn1ytXRD.d.mts → AgentError-BMqPzIVt.d.mts} +3 -3
  6. package/dist/{AgentPolicy-B4oH8TbG.d.mts → AgentPolicy-CclAEpHn.d.mts} +2 -2
  7. package/dist/{AgentRuntime-D1MmB_0z.d.mts → AgentRuntime-BM36roNi.d.mts} +44 -30
  8. package/dist/{AgentRuntime-Q50HloUc.mjs → AgentRuntime-BTfPyMXN.mjs} +91 -30
  9. package/dist/AgentRuntime-BTfPyMXN.mjs.map +1 -0
  10. package/dist/{AgentUpdates-DMJ-_xow.d.mts → AgentUpdates-DksV4D0A.d.mts} +6 -3
  11. package/dist/{ContextCompactor-BoKQOjr5.d.mts → ContextCompactor-DLpX-HUG.d.mts} +18 -12
  12. package/dist/{ContextWindow-DRQ5Mbm2.d.mts → ContextWindow-aGZOPIPq.d.mts} +24 -22
  13. package/dist/{Digest-COAt3Orl.d.mts → Digest-3l_02jaM.d.mts} +2 -2
  14. package/dist/{DurableAgentRuntime-BTMOgDl_.mjs → DurableAgentRuntime-CWmWREPj.mjs} +11 -11
  15. package/dist/{DurableAgentRuntime-BTMOgDl_.mjs.map → DurableAgentRuntime-CWmWREPj.mjs.map} +1 -1
  16. package/dist/{DurableStep-Cry_iol4.d.mts → DurableStep-CTqx6DOV.d.mts} +13 -11
  17. package/dist/{EventSource-CtS0RBM7.d.mts → EventSource-D29Jsj5U.d.mts} +3 -3
  18. package/dist/{FailureDiagnostic-BElLOoED.mjs → FailureDiagnostic-D9oW23Cn.mjs} +16 -10
  19. package/dist/FailureDiagnostic-D9oW23Cn.mjs.map +1 -0
  20. package/dist/{FailureDiagnostic-CaAkzGHL.d.mts → FailureDiagnostic-DvHruCSJ.d.mts} +10 -9
  21. package/dist/InMemory.d.mts +28 -5
  22. package/dist/InMemory.mjs +37 -4
  23. package/dist/InMemory.mjs.map +1 -1
  24. package/dist/{Messaging-CICd_CSi.d.mts → Messaging-BbuaphiQ.d.mts} +6 -6
  25. package/dist/{Messaging-7VXQnWI3.d.mts → Messaging-DF_IWnxV.d.mts} +5 -5
  26. package/dist/{MessagingHost-DXwWnrMh.d.mts → MessagingHost-Bfbfkx6f.d.mts} +13 -12
  27. package/dist/{MessagingHost-DfsbMPvq.mjs → MessagingHost-DJZJZILu.mjs} +4 -3
  28. package/dist/MessagingHost-DJZJZILu.mjs.map +1 -0
  29. package/dist/{Output-CY7NZByV.d.mts → Output-UsQKiPhz.d.mts} +4 -4
  30. package/dist/{PreparedInputAdmission-CS_zlCvD.d.mts → PreparedInputAdmission-DXvjTe4U.d.mts} +6 -6
  31. package/dist/{Receipt-BAHyigAF.d.mts → Receipt-BkM21Qiu.d.mts} +2 -2
  32. package/dist/{Records-Bm4Qt70a.d.mts → Records-CAQktL0z.d.mts} +8 -8
  33. package/dist/{RunEvent-D0aepYwN.d.mts → RunEvent-B3CRIqIC.d.mts} +5 -5
  34. package/dist/{RunEventSink-9CUdI9Ar.d.mts → RunEventSink-sDXDkrAl.d.mts} +9 -7
  35. package/dist/{RunJournal-D8Vvf_io.mjs → RunJournal-NRgq1PNe.mjs} +3 -3
  36. package/dist/{RunJournal-D8Vvf_io.mjs.map → RunJournal-NRgq1PNe.mjs.map} +1 -1
  37. package/dist/{RunOptions-BHmBa05n.d.mts → RunOptions-CkSZSuIh.d.mts} +87 -83
  38. package/dist/{RunPolicyUsage-CUudVtg_.d.mts → RunPolicyUsage-QmYVw9z8.d.mts} +2 -2
  39. package/dist/{Schedule-Bi_XVKLF.d.mts → Schedule-rEIiYnRq.d.mts} +4 -4
  40. package/dist/{Subagent-Cxvuaius.mjs → Subagent-C-fyHbcp.mjs} +5 -5
  41. package/dist/{Subagent-Cxvuaius.mjs.map → Subagent-C-fyHbcp.mjs.map} +1 -1
  42. package/dist/{Subagent-D59om8SR.d.mts → Subagent-t3pJDZMN.d.mts} +15 -15
  43. package/dist/{SubagentContract-tyN9v-Jv.d.mts → SubagentContract-DdPzxYQj.d.mts} +3 -2
  44. package/dist/{SubagentHost-VTyf_wEF.d.mts → SubagentHost-CXFlEpj0.d.mts} +19 -16
  45. package/dist/{Subscription-nbSNY6Hs.d.mts → Subscription-BJj-R-6V.d.mts} +8 -8
  46. package/dist/{SubscriptionInput-DbXnOMS2.d.mts → SubscriptionInput-DyQtODg2.d.mts} +3 -3
  47. package/dist/Thread-DT8RTLIQ.d.mts +117 -0
  48. package/dist/{ThreadHistory-FD-o4TsR.d.mts → ThreadHistory-DQ-IC1hU.d.mts} +12 -9
  49. package/dist/{ToolBroker-DWs4tZra.d.mts → ToolBroker-DXwv2aUT.d.mts} +14 -12
  50. package/dist/{ToolExposure-UCN12eCd.d.mts → ToolExposure-BsaSH15e.d.mts} +5 -4
  51. package/dist/{ToolExposure-r2eOWk4F.d.mts → ToolExposure-Ckg3-sTf.d.mts} +3 -2
  52. package/dist/{ToolExposure-9uF_Yo0T.mjs → ToolExposure-DBATXxmL.mjs} +2 -2
  53. package/dist/ToolExposure-DBATXxmL.mjs.map +1 -0
  54. package/dist/{ToolExposure-C93U1sPu.mjs → ToolExposure-hTJT2ekj.mjs} +3 -2
  55. package/dist/ToolExposure-hTJT2ekj.mjs.map +1 -0
  56. package/dist/ToolExposure.d.mts +2 -2
  57. package/dist/ToolExposure.mjs +2 -2
  58. package/dist/{ToolResult-BKdqWRff.d.mts → ToolResult-DqyEhJLF.d.mts} +2 -2
  59. package/dist/{Usage-BNjPR7Zr.d.mts → Usage-CzZJ6A2n.d.mts} +3 -2
  60. package/dist/{Worker-XEBYxRQv.d.mts → Worker-DH5SAVIK.d.mts} +7 -7
  61. package/dist/{Worker-CfwzMZEK.mjs → Worker-DZjdMjZn.mjs} +3 -3
  62. package/dist/Worker-DZjdMjZn.mjs.map +1 -0
  63. package/dist/{WorkerAdmission-BVbSB8_A.mjs → WorkerAdmission-DJ76C2b-.mjs} +4 -4
  64. package/dist/{WorkerAdmission-BVbSB8_A.mjs.map → WorkerAdmission-DJ76C2b-.mjs.map} +1 -1
  65. package/dist/{agent-registration-BIOzAej4.mjs → agent-registration-D1dWV7KK.mjs} +3 -3
  66. package/dist/{agent-registration-BIOzAej4.mjs.map → agent-registration-D1dWV7KK.mjs.map} +1 -1
  67. package/dist/capabilities/BrowserUse.d.mts +1 -1
  68. package/dist/capabilities/BrowserUse.mjs +1 -1
  69. package/dist/capabilities/CodeMode.d.mts +2 -2
  70. package/dist/capabilities/CodeMode.mjs +3 -3
  71. package/dist/capabilities/Commands.d.mts +1 -1
  72. package/dist/capabilities/ContextTools.d.mts +2 -2
  73. package/dist/capabilities/ContextTools.mjs +1 -1
  74. package/dist/capabilities/Mcp.d.mts +1 -1
  75. package/dist/capabilities/Mcp.mjs +1 -1
  76. package/dist/capabilities/McpClient.d.mts +1 -1
  77. package/dist/capabilities/McpClient.mjs +1 -1
  78. package/dist/capabilities/MemoryNotes.d.mts +2 -2
  79. package/dist/capabilities/MemoryNotes.mjs +1 -1
  80. package/dist/capabilities/Messaging.d.mts +2 -2
  81. package/dist/capabilities/Messaging.mjs +3 -3
  82. package/dist/capabilities/ModelContext.d.mts +1 -1
  83. package/dist/capabilities/Redaction.d.mts +1 -1
  84. package/dist/capabilities/RunHooks.d.mts +7 -6
  85. package/dist/capabilities/RunHooks.mjs +2 -1
  86. package/dist/capabilities/RunHooks.mjs.map +1 -1
  87. package/dist/capabilities/SemanticMemory.d.mts +1 -1
  88. package/dist/capabilities/SemanticMemory.mjs +1 -1
  89. package/dist/capabilities/Subagent.d.mts +3 -3
  90. package/dist/capabilities/Subagent.mjs +2 -2
  91. package/dist/capabilities/SubagentReservations.d.mts +64 -60
  92. package/dist/capabilities/SubagentReservations.mjs +6 -1
  93. package/dist/capabilities/SubagentReservations.mjs.map +1 -1
  94. package/dist/capabilities/ToolDiscovery.d.mts +2 -2
  95. package/dist/capabilities/ToolDiscovery.mjs +3 -3
  96. package/dist/capabilities/WebCapture.d.mts +1 -1
  97. package/dist/capabilities/WebCapture.mjs +1 -1
  98. package/dist/capabilities/WebSearch.d.mts +1 -1
  99. package/dist/capabilities/WebSearch.mjs +1 -1
  100. package/dist/{compaction-BQK4MUg3.mjs → compaction-FDJhjbzH.mjs} +4 -3
  101. package/dist/compaction-FDJhjbzH.mjs.map +1 -0
  102. package/dist/core/Agent.d.mts +1 -1
  103. package/dist/core/Agent.mjs +1 -1
  104. package/dist/core/AgentError.d.mts +1 -1
  105. package/dist/core/AgentError.mjs +4 -4
  106. package/dist/core/AgentError.mjs.map +1 -1
  107. package/dist/core/AgentPolicy.d.mts +1 -1
  108. package/dist/core/AgentUpdates.d.mts +1 -1
  109. package/dist/core/AgentUpdates.mjs +5 -1
  110. package/dist/core/AgentUpdates.mjs.map +1 -1
  111. package/dist/core/FailureDiagnostic.d.mts +1 -1
  112. package/dist/core/FailureDiagnostic.mjs +1 -1
  113. package/dist/core/IdGenerator.d.mts +3 -1
  114. package/dist/core/IdGenerator.mjs +8 -5
  115. package/dist/core/IdGenerator.mjs.map +1 -1
  116. package/dist/core/Receipt.d.mts +1 -1
  117. package/dist/core/Receipt.mjs +1 -1
  118. package/dist/core/Receipt.mjs.map +1 -1
  119. package/dist/core/RunEvent.d.mts +1 -1
  120. package/dist/core/RunEvent.mjs +2 -2
  121. package/dist/core/RunEvent.mjs.map +1 -1
  122. package/dist/core/RunPolicyUsage.d.mts +1 -1
  123. package/dist/core/RunPolicyUsage.mjs +1 -1
  124. package/dist/core/RunPolicyUsage.mjs.map +1 -1
  125. package/dist/core/SubagentContract.d.mts +1 -1
  126. package/dist/core/SubagentContract.mjs +2 -1
  127. package/dist/core/SubagentContract.mjs.map +1 -1
  128. package/dist/core/Thread.d.mts +2 -2
  129. package/dist/core/Thread.mjs +82 -33
  130. package/dist/core/Thread.mjs.map +1 -1
  131. package/dist/core/ToolResult.d.mts +1 -1
  132. package/dist/core/ToolResult.mjs +1 -1
  133. package/dist/core/ToolResult.mjs.map +1 -1
  134. package/dist/core/Usage.d.mts +1 -1
  135. package/dist/core/Usage.mjs +2 -1
  136. package/dist/core/Usage.mjs.map +1 -1
  137. package/dist/core/Worker.d.mts +2 -2
  138. package/dist/core/Worker.mjs +1 -1
  139. package/dist/durable/ActivityStore.d.mts +1 -1
  140. package/dist/durable/Admin.d.mts +1 -1
  141. package/dist/durable/AgentRegistration.d.mts +1 -1
  142. package/dist/durable/AgentRegistration.mjs +1 -1
  143. package/dist/durable/Certification.d.mts +1 -1
  144. package/dist/durable/CommittedActivity.d.mts +3 -3
  145. package/dist/durable/Digest.d.mts +1 -1
  146. package/dist/durable/DurableAgentRuntime.d.mts +2 -2
  147. package/dist/durable/DurableAgentRuntime.mjs +2 -2
  148. package/dist/durable/EventSource.d.mts +1 -1
  149. package/dist/durable/GitHubWorkflowSource.d.mts +4 -4
  150. package/dist/durable/GitHubWorkflowSource.mjs +1 -1
  151. package/dist/durable/LifecyclePublication.d.mts +1 -1
  152. package/dist/durable/LifecyclePublication.mjs +1 -1
  153. package/dist/durable/MessageDelivery.d.mts +9 -9
  154. package/dist/durable/MessageDelivery.mjs +2 -2
  155. package/dist/durable/MessageDeliveryStoreConformance.d.mts +28 -28
  156. package/dist/durable/MessageDeliveryStoreConformance.mjs +1 -1
  157. package/dist/durable/PersistentHistory.d.mts +2 -2
  158. package/dist/durable/PersistentHistory.mjs +2 -2
  159. package/dist/durable/PreparedInputAdmission.d.mts +1 -1
  160. package/dist/durable/PreparedInputAdmission.mjs +1 -1
  161. package/dist/durable/Records.d.mts +1 -1
  162. package/dist/durable/Records.mjs +5 -5
  163. package/dist/durable/Recovery.d.mts +1 -1
  164. package/dist/durable/RunJournal.d.mts +1 -1
  165. package/dist/durable/RunJournal.mjs +1 -1
  166. package/dist/durable/Schedule.d.mts +1 -1
  167. package/dist/durable/Schedule.mjs +1 -1
  168. package/dist/durable/ScheduleStoreConformance.d.mts +1 -1
  169. package/dist/durable/ScheduleTransition.d.mts +1 -1
  170. package/dist/durable/Scheduling.d.mts +4 -4
  171. package/dist/durable/SubmissionLedger.d.mts +2 -2
  172. package/dist/durable/SubmissionLedger.mjs +3 -3
  173. package/dist/durable/SubmissionLedgerConformance.d.mts +2 -2
  174. package/dist/durable/SubmissionLedgerConformance.mjs +3 -3
  175. package/dist/durable/SubmissionStatus.d.mts +1 -1
  176. package/dist/durable/Subscription.d.mts +1 -1
  177. package/dist/durable/Subscription.mjs +1 -1
  178. package/dist/durable/SubscriptionInput.d.mts +1 -1
  179. package/dist/durable/SubscriptionInput.mjs +1 -1
  180. package/dist/durable/SubscriptionStoreConformance.d.mts +1 -1
  181. package/dist/durable/SubscriptionTools.d.mts +7 -7
  182. package/dist/durable/SubscriptionTools.mjs +1 -1
  183. package/dist/durable/SubscriptionTransition.d.mts +1 -1
  184. package/dist/durable/Subscriptions.d.mts +7 -7
  185. package/dist/durable/ThreadContextHistory.d.mts +1 -1
  186. package/dist/durable/ThreadContextHistoryProjection.d.mts +1 -1
  187. package/dist/durable/ThreadContextHistoryProjection.mjs +2 -2
  188. package/dist/durable/ThreadInvariants.d.mts +2 -2
  189. package/dist/durable/ThreadInvariants.mjs +1 -1
  190. package/dist/durable/ThreadProjection.d.mts +1 -1
  191. package/dist/durable/ThreadProjectionMaintenance.d.mts +1 -1
  192. package/dist/durable/ThreadStore.d.mts +1 -1
  193. package/dist/durable/ThreadStore.mjs +1 -1
  194. package/dist/durable/ThreadStoreConformance.d.mts +1 -1
  195. package/dist/durable/ThreadStoreConformance.mjs +1 -1
  196. package/dist/durable/WorkerAdmission.d.mts +6 -6
  197. package/dist/durable/WorkerAdmission.mjs +1 -1
  198. package/dist/durable/WorkerHost.d.mts +7 -7
  199. package/dist/durable/WorkerHost.mjs +1 -1
  200. package/dist/engine/AgentRuntime.d.mts +1 -1
  201. package/dist/engine/AgentRuntime.mjs +1 -1
  202. package/dist/engine/Compaction.d.mts +1 -1
  203. package/dist/engine/Compaction.mjs +1 -1
  204. package/dist/engine/ContextCompactor.d.mts +1 -1
  205. package/dist/engine/ContextCompactor.mjs +8 -3
  206. package/dist/engine/ContextCompactor.mjs.map +1 -1
  207. package/dist/engine/ContextWindow.d.mts +1 -1
  208. package/dist/engine/ContextWindow.mjs +3 -1
  209. package/dist/engine/ContextWindow.mjs.map +1 -1
  210. package/dist/engine/DurableStep.d.mts +1 -1
  211. package/dist/engine/DurableStep.mjs +2 -1
  212. package/dist/engine/DurableStep.mjs.map +1 -1
  213. package/dist/engine/MessagingHost.d.mts +1 -1
  214. package/dist/engine/MessagingHost.mjs +1 -1
  215. package/dist/engine/Output.d.mts +1 -1
  216. package/dist/engine/Output.mjs +1 -1
  217. package/dist/engine/RunEventSink.d.mts +1 -1
  218. package/dist/engine/RunEventSink.mjs +2 -1
  219. package/dist/engine/RunEventSink.mjs.map +1 -1
  220. package/dist/engine/RunOptions.d.mts +1 -1
  221. package/dist/engine/RunOptions.mjs +5 -2
  222. package/dist/engine/RunOptions.mjs.map +1 -1
  223. package/dist/engine/SubagentHost.d.mts +1 -1
  224. package/dist/engine/SubagentHost.mjs +4 -2
  225. package/dist/engine/SubagentHost.mjs.map +1 -1
  226. package/dist/engine/ThreadHistory.d.mts +1 -1
  227. package/dist/engine/ThreadHistory.mjs +12 -10
  228. package/dist/engine/ThreadHistory.mjs.map +1 -1
  229. package/dist/engine/ToolBroker.d.mts +1 -1
  230. package/dist/engine/ToolBroker.mjs +2 -1
  231. package/dist/engine/ToolBroker.mjs.map +1 -1
  232. package/dist/index.d.mts +34 -34
  233. package/dist/index.mjs +9 -9
  234. package/dist/{output-contract-DS-S8mTv.mjs → output-contract-DUNIO6as.mjs} +4 -3
  235. package/dist/output-contract-DUNIO6as.mjs.map +1 -0
  236. package/package.json +1 -1
  237. package/src/InMemory.ts +61 -2
  238. package/src/capabilities/RunHooks.ts +6 -3
  239. package/src/capabilities/SubagentReservations.ts +7 -1
  240. package/src/core/Agent.ts +3 -8
  241. package/src/core/AgentError.ts +1 -1
  242. package/src/core/AgentUpdates.ts +5 -1
  243. package/src/core/FailureDiagnostic.ts +6 -8
  244. package/src/core/IdGenerator.ts +5 -2
  245. package/src/core/Messaging.ts +1 -1
  246. package/src/core/Receipt.ts +1 -1
  247. package/src/core/RunEvent.ts +1 -1
  248. package/src/core/RunPolicyUsage.ts +1 -1
  249. package/src/core/SubagentContract.ts +2 -1
  250. package/src/core/Thread.ts +163 -61
  251. package/src/core/ToolExposure.ts +2 -1
  252. package/src/core/ToolResult.ts +1 -1
  253. package/src/core/Usage.ts +2 -1
  254. package/src/core/Worker.ts +1 -1
  255. package/src/core/internal/agent-updates.ts +3 -2
  256. package/src/core/internal/message-status.ts +1 -1
  257. package/src/core/internal/strict-schema.ts +3 -1
  258. package/src/engine/ContextCompactor.ts +8 -2
  259. package/src/engine/ContextWindow.ts +4 -1
  260. package/src/engine/DurableStep.ts +2 -1
  261. package/src/engine/MessagingHost.ts +2 -1
  262. package/src/engine/RunEventSink.ts +2 -1
  263. package/src/engine/RunOptions.ts +5 -1
  264. package/src/engine/SubagentHost.ts +3 -1
  265. package/src/engine/ThreadHistory.ts +20 -10
  266. package/src/engine/ToolBroker.ts +2 -1
  267. package/src/engine/ToolExposure.ts +2 -1
  268. package/src/engine/internal/agent-runtime.ts +41 -49
  269. package/src/engine/internal/bounded-value.ts +2 -1
  270. package/src/engine/internal/compaction.ts +3 -2
  271. package/src/engine/internal/output-contract.ts +3 -2
  272. package/src/engine/internal/primitive-delta.ts +51 -10
  273. package/src/engine/internal/tool-derivative.ts +5 -1
  274. package/src/engine/internal/tool-exposure.ts +5 -2
  275. package/src/engine/internal/tool-telemetry.ts +12 -13
  276. package/dist/Agent-BMATXYsI.mjs.map +0 -1
  277. package/dist/AgentRuntime-Q50HloUc.mjs.map +0 -1
  278. package/dist/FailureDiagnostic-BElLOoED.mjs.map +0 -1
  279. package/dist/MessagingHost-DfsbMPvq.mjs.map +0 -1
  280. package/dist/Thread-DOBQ0QUY.d.mts +0 -96
  281. package/dist/ToolExposure-9uF_Yo0T.mjs.map +0 -1
  282. package/dist/ToolExposure-C93U1sPu.mjs.map +0 -1
  283. package/dist/Worker-CfwzMZEK.mjs.map +0 -1
  284. package/dist/compaction-BQK4MUg3.mjs.map +0 -1
  285. package/dist/output-contract-DS-S8mTv.mjs.map +0 -1
@@ -1,32 +1,32 @@
1
1
  import { c as SettlementId, d as ToolCallId, f as TurnId, l as SubmissionId, s as RunId, t as AgentId, u as ThreadId } from "./Identifiers-CN2s30fF.mjs";
2
- import { d as SubagentReservationAmounts, l as SubagentGrant, o as SubagentDelegationCaps, s as SubagentExecutionFailure } from "./SubagentContract-tyN9v-Jv.mjs";
3
- import { a as Receipt, i as QueueSequence, n as JoinedToHost, r as Principal, t as IdempotencyKey } from "./Receipt-BAHyigAF.mjs";
4
- import { r as Update } from "./AgentUpdates-DMJ-_xow.mjs";
5
- import { c as Selection, l as Snapshot } from "./ToolExposure-r2eOWk4F.mjs";
6
- import { l as RunUsageSummary, r as ModelCallUsage } from "./Usage-BNjPR7Zr.mjs";
7
- import { a as ExhaustedLimit } from "./RunEvent-D0aepYwN.mjs";
8
- import { t as ThreadHistory } from "./ThreadHistory-FD-o4TsR.mjs";
9
- import { a as FailureDiagnostic_d_exports, r as Diagnostic } from "./FailureDiagnostic-CaAkzGHL.mjs";
10
- import { a as AgentInputError } from "./AgentError-Bn1ytXRD.mjs";
11
- import { t as ToolParameterRejection } from "./ToolResult-BKdqWRff.mjs";
12
- import { t as AgentPolicy } from "./AgentPolicy-B4oH8TbG.mjs";
13
- import { E as RunDispositionDeclaration, _ as InstructionSource, c as Definition, m as InputPromptSource, n as Any, r as AnyDefinition, t as Agent_d_exports, y as ModelServices } from "./Agent-ZfnNCQXs.mjs";
14
- import { t as RunPolicyUsage } from "./RunPolicyUsage-CUudVtg_.mjs";
15
- import { c as WorkerError, f as WorkerRef, n as AssignmentTerminal } from "./Worker-XEBYxRQv.mjs";
16
- import { G as RunToolAuthorization, O as RunCostEstimator, h as RunApprovalHook, x as RunContextPreparation } from "./RunOptions-BHmBa05n.mjs";
17
- import { o as MessagingError, r as InputMessage } from "./Messaging-7VXQnWI3.mjs";
18
- import { t as MessagingHost } from "./MessagingHost-DXwWnrMh.mjs";
19
- import "./Messaging-CICd_CSi.mjs";
20
- import { d as WorkerReportPreparationFailure, f as WorkerReporting, o as SubagentHost } from "./SubagentHost-VTyf_wEF.mjs";
21
- import { p as RuntimeBinding, r as AgentCompletionProjectionRequirements, s as AgentRuntimeRequirements } from "./AgentRuntime-D1MmB_0z.mjs";
22
- import { $ as ToolApprovalRequested, E as ModelResponseRecorded, H as SettlementFailureDiagnostic, J as SubmissionSettled, K as SubagentRequested, L as RunCompleted, M as RecordEnvelope, N as RecordId, Q as ToolApprovalDecided, V as RunStartedRecord, W as SubagentJoined, Y as SubmissionSettledRecord, a as BatchId, ct as UserInputRecorded, d as CanonicalSequence, dt as WorkerInputCompleted, et as ToolCallPrepared, f as CompactionCreated, ft as WorkerInputRequested, g as DeploymentId, h as DefinitionDigests, j as ProducerId, k as PersistedJson, l as CanonicalRecordEnvelope, lt as WorkerAdmission, m as DefinitionDigestInput, q as SubagentStarted, r as AgentUpdateEmitted, rt as ToolCallSettled, s as CanonicalBatch, t as AbortRequested, vt as WorkerStopRequested } from "./Records-Bm4Qt70a.mjs";
23
- import { t as DigestError } from "./Digest-COAt3Orl.mjs";
2
+ import { d as SubagentReservationAmounts, l as SubagentGrant, o as SubagentDelegationCaps, s as SubagentExecutionFailure } from "./SubagentContract-DdPzxYQj.mjs";
3
+ import { a as Receipt, i as QueueSequence, n as JoinedToHost, r as Principal, t as IdempotencyKey } from "./Receipt-BkM21Qiu.mjs";
4
+ import { r as Update } from "./AgentUpdates-DksV4D0A.mjs";
5
+ import { c as Selection, l as Snapshot } from "./ToolExposure-Ckg3-sTf.mjs";
6
+ import { l as RunUsageSummary, r as ModelCallUsage } from "./Usage-CzZJ6A2n.mjs";
7
+ import { a as ExhaustedLimit } from "./RunEvent-B3CRIqIC.mjs";
8
+ import { t as ThreadHistory } from "./ThreadHistory-DQ-IC1hU.mjs";
9
+ import { a as FailureDiagnostic_d_exports, r as Diagnostic } from "./FailureDiagnostic-DvHruCSJ.mjs";
10
+ import { a as AgentInputError } from "./AgentError-BMqPzIVt.mjs";
11
+ import { t as ToolParameterRejection } from "./ToolResult-DqyEhJLF.mjs";
12
+ import { t as AgentPolicy } from "./AgentPolicy-CclAEpHn.mjs";
13
+ import { E as RunDispositionDeclaration, _ as InstructionSource, c as Definition, m as InputPromptSource, n as Any, r as AnyDefinition, t as Agent_d_exports, y as ModelServices } from "./Agent-D0fbFT2d.mjs";
14
+ import { t as RunPolicyUsage } from "./RunPolicyUsage-QmYVw9z8.mjs";
15
+ import { c as WorkerError, f as WorkerRef, n as AssignmentTerminal } from "./Worker-DH5SAVIK.mjs";
16
+ import { G as RunToolAuthorization, O as RunCostEstimator, h as RunApprovalHook, x as RunContextPreparation } from "./RunOptions-CkSZSuIh.mjs";
17
+ import { o as MessagingError, r as InputMessage } from "./Messaging-DF_IWnxV.mjs";
18
+ import { t as MessagingHost } from "./MessagingHost-Bfbfkx6f.mjs";
19
+ import "./Messaging-BbuaphiQ.mjs";
20
+ import { d as WorkerReportPreparationFailure, f as WorkerReporting, o as SubagentHost } from "./SubagentHost-CXFlEpj0.mjs";
21
+ import { p as RuntimeBinding, r as AgentCompletionProjectionRequirements, s as AgentRuntimeRequirements } from "./AgentRuntime-BM36roNi.mjs";
22
+ import { $ as ToolApprovalRequested, E as ModelResponseRecorded, H as SettlementFailureDiagnostic, J as SubmissionSettled, K as SubagentRequested, L as RunCompleted, M as RecordEnvelope, N as RecordId, Q as ToolApprovalDecided, V as RunStartedRecord, W as SubagentJoined, Y as SubmissionSettledRecord, a as BatchId, ct as UserInputRecorded, d as CanonicalSequence, dt as WorkerInputCompleted, et as ToolCallPrepared, f as CompactionCreated, ft as WorkerInputRequested, g as DeploymentId, h as DefinitionDigests, j as ProducerId, k as PersistedJson, l as CanonicalRecordEnvelope, lt as WorkerAdmission, m as DefinitionDigestInput, q as SubagentStarted, r as AgentUpdateEmitted, rt as ToolCallSettled, s as CanonicalBatch, t as AbortRequested, vt as WorkerStopRequested } from "./Records-CAQktL0z.mjs";
23
+ import { t as DigestError } from "./Digest-3l_02jaM.mjs";
24
24
  import { n as DurableRuntimeFailpoint, r as DurableRuntimeFailpointError } from "./DurableFailpoint-Cnr3wx1L.mjs";
25
25
  import { o as OperationDenied } from "./OperationAuthorizer-TzcQtpX5.mjs";
26
26
  import { s as ToolReconciler } from "./ToolReconciler-BmVRAHKs.mjs";
27
27
  import { t as WakeScheduler } from "./WakeScheduler-EjUF-GhC.mjs";
28
- import { Prompt, Tool } from "effect/unstable/ai";
29
28
  import { Cause, Context, Crypto, DateTime, Duration, Effect, Layer, Option, Result, Schema, Scope, Stream } from "effect";
29
+ import { Prompt, Tool } from "effect/unstable/ai";
30
30
  //#region src/durable/internal/agent-registration.d.ts
31
31
  declare const BindingUnavailable_base: Schema.Class<BindingUnavailable, Schema.TaggedStruct<"BindingUnavailable", {
32
32
  readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
@@ -4275,4 +4275,4 @@ declare const RetryRefused_base: Schema.Class<RetryRefused, Schema.TaggedStruct<
4275
4275
  declare class RetryRefused extends RetryRefused_base {}
4276
4276
  //#endregion
4277
4277
  export { RepairSubagentStartLink as $, runDurationBatchId as $i, DurableApprovalFailure as $n, ThreadRecoveryCheckpoints as $r, ParentLinkage as $t, AwaitChildSettlement as A, turnResultsBatchId as Aa, JournalBoundary as Ai, SuspensionReason as An, CheckpointRejected as Ar, ChildReservationConflict as At, MarkUnknown as B, DurableBindingFailure as Ba, compactionBatchId as Bi, settlementFailureFromRecord as Bn, ThreadExport as Br, InputAppliedMarker as Bt, renderRecoveryExplanation as C, turnBatchId as Ca, drainLifecyclePublications as Ci, SubmissionLookupByKey as Cn, isolateRecovery as Cr, ApprovalDecisionIntent as Ct, ApplyUnknownResolutions as D, turnResponseBatch as Da, SettledSubmission as Di, SubmissionWorkItem as Dn, threadCreatedRecordId as Dr, ChildAttachmentSnapshot as Dt, ApplyJoinAccounting as E, turnPreparedBatchId as Ea, PendingSubmission as Ei, SubmissionState as En, threadCreatedBatchId as Er, BeginChildBudgetReleaseRequest as Et, CompleteMaterialization as F, AgentAttemptContext as Fa, TurnCommitInput as Fi, UnknownResolutionIntent as Fn, SaveCheckpointRequest as Fr, Claim as Ft, PropagateChildAbort as G, compileBindingContracts as Ga, modelResponseInterruptedRecordId as Gi, submissionSettlementBatchId as Gn, ThreadNotMaterialized as Gr, MarkInputAppliedRequest as Gt, OpenDelegationCallEvidence as H, ExecutableAgentBinding as Ha, firstWorkerInputRecordId as Hi, submissionAbortRecordId as Hn, ThreadIdentity as Hr, JoiningClaim as Ht, DeclaredPendingBatchEvidence as I, AgentRegistration as Ia, agentUpdateRecordId as Ii, WaitingChild as In, SaveRecoveryCheckpointRequest as Ir, ClaimHandoff as It, Recovery_d_exports as J, projectRunJournal as Ji, workerTerminalFromRecord as Jn, ThreadOutstandingRequest as Jr, MarkUnknownRequest as Jt, RecoveryDecision as K, compileRegistrations as Ka, modelResponseRecordId as Ki, submissionSettlementId as Kn, ThreadObservation as Kr, MarkJoinedRequest as Kt, DelegationAdmissionEvidence as L, BindingSelection as La, approvalDecisionBatchId as Li, WaitingForChildSuspension as Ln, SelectedThreadRead as Lr, ClaimJoiningRequest as Lt, AwaitParentEstablishment as M, workerOriginRecordId as Ma, RunJournalProjection as Mi, UnknownResolution as Mn, FencedAppendRequest as Mr, ChildReservationStatus as Mt, AwaitUnknownResolution as N, workerReportRecordId as Na, RunJournalUsage as Ni, UnknownResolutionCommand as Nn, LoadCheckpointRequest as Nr, ChildSettledNotification as Nt, AwaitApprovalDecision as O, turnResponseBatchId as Oa, SubmissionStatus as Oi, SuspendRequest as On, AppendConflict as Or, ChildBudgetReservationRequest as Ot, CompleteChildAdmission as P, AgentRegistration_d_exports as Pa, RunJournal_d_exports as Pi, UnknownResolutionConflict as Pn, MAX_THREAD_EXPORT_RECORDS as Pr, ChildSettledOutcome as Pt, RepairReadiness as Q, runCompletionDigest as Qi, DurableAgentRuntime_d_exports as Qn, ThreadRecordRequest as Qr, OwnershipToken as Qt, EnsureWaitingForChild as R, BindingUnavailable as Ra, childIdempotencyKeyFor as Ri, WorkerLedgerState as Rn, ThreadCheckpoint as Rr, ClaimRequest as Rt, recoveryDecisionMeaning as S, turnApprovalsBatchId as Sa, LifecyclePublication_d_exports as Si, SubmissionLookupById as Sn, childReservationIdFor as Sr, ApprovalDecisionCommand as St, ApplyInput as T, turnIdForRun as Ta, lifecyclePublicationLayer as Ti, SubmissionSnapshot as Tn, recoveryRepairRecordId as Tr, AttachChildToReservationRequest as Tt, OpenToolCallEvidence as U, ReplayVersions as Ua, markUnknownBatchId as Ui, submissionInputBatchId as Un, ThreadIdentityRequest as Ur, LedgerCapabilities as Ut, NoAction as V, DurableWorkerBinding as Va, compactionRecordId as Vi, submissionAbortBatchId as Vn, ThreadExportRequest as Vr, JoinSnapshot as Vt, PendingApprovalEvidence as W, ResolvedBinding as Wa, modelResponseInterruptedBatchId as Wi, submissionInputRecordId as Wn, ThreadMaterialization as Wr, LedgerError as Wt, RepairInputMarker as X, promptFromCanonicalRecords as Xi, DurableAbortFailure as Xn, ThreadRead as Xr, OwnershipRenewal as Xt, ReleaseOrphanChildReservation as Y, projectRunJournalStream as Yi, ApprovalSuspensionError as Yn, ThreadPeerCountRequest as Yr, OwnershipLost as Yt, RepairJoinMarker as Z, runCompletedRecordId as Zi, DurableAgentRuntime as Zn, ThreadReadRequest as Zr, OwnershipSnapshot as Zt, RetryCommand as _, toolCallResultBatchId as _a, LifecyclePublicationError as _i, SubmissionAdmissionFence as _n, RecoveryBlocked as _r, AdmissionPolicyError as _t, IntegrityCheck as a, subagentJoinedRecordId as aa, ThreadStoreFailure as ai, ReservedChildBudget as an, DurableObserveOptions as ar, SettleAborted as at, obligationSeverityOf as b, toolStepSettledBatchId as ba, LifecyclePublicationSource as bi, SubmissionLedger_d_exports as bn, RecoverySweepOptions as br, AdmissionResult as bt, IntegrityReport as c, subagentRequestedBatchId as ca, ThreadTailRequest as ci, ResolutionCompletedWithResult as cn, DurableRetryFailure as cr, AbortCommand as ct, ObligationReport as d, subagentStartedRecordId as da, getRunInput as di, RevertJoiningRequest as dn, DurableSubmitAgent as dr, AdmissionAdmitted as dt, runDurationRecordId as ea, ThreadRunInputRequest as ei, RecoverySnapshot as en, DurableApprovalResolver as er, ResumeFromTurnBoundary as et, ObligationSeverity as f, toolApprovalDecisionRecordId as fa, readOutstanding as fi, Settlement as fn, DurableSubmitFailure as fr, AdmissionConflict as ft, RecoveryExplanation as g, toolCallResolvedRecordId as ga, LifecyclePublicationConfig as gi, SettlementReservationSnapshot as gn, DurableWorkerRequirements as gr, AdmissionNotAdmitted as gt, RecoveryDisposition as h, toolCallResolutionBatchId as ha, LifecyclePublicationBatch as hi, SettlementReservation as hn, DurableWorkerFailure as hr, AdmissionIndeterminate as ht, ExplainedUnknownCall as i, subagentJoinBatchId as ia, ThreadStoreError as ii, RenewOwnershipRequest as in, DurableObligationFailure as ir, RevertJoining as it, AwaitHostSettlement as j, workerInputRecordId as ja, RunJournalError as ji, SuspensionSnapshot as jn, FenceRejected as jr, ChildReservationId as jt, AwaitChildAdmissionResolution as k, turnResultsBatch as ka, SubmissionStatus_d_exports as ki, SuspensionOutcome as kn, AppendResult as kr, ChildBudgetReservationSnapshot as kt, ObligationBlockedOn as l, subagentRequestedRecordId as la, ThreadWorkerStateRequest as li, ResolutionNeverHappened as ln, DurableRuntimeConfig as lr, AbortIntent as lt, RECOVERY_DECISION_MEANINGS as m, toolCallPreparedRecordId as ma, LifecyclePublication as mi, SettlementFinalization as mn, DurableVerifyFailure as mr, AdmissionGroup as mt, ExplainedEvidence as n, runStartedBatchId as na, ThreadStore as ni, ReleaseChildBudgetRequest as nn, DurableAwaitFailure as nr, ResumeSuspended as nt, IntegrityCheckName as o, subagentLineageBatchId as oa, ThreadStore_d_exports as oi, ReservedSettlement as on, DurableProgressFailure as or, SettleJoinedWithHost as ot, ObligationThresholds as p, toolApprovalRequestRecordId as pa, readWorkerState as pi, SettlementConflict as pn, DurableSubmitOptions as pr, AdmissionFence as pt, RecoveryEvidence as q, definitionDigestsEqual as qa, peerMessageRecordId as qi, submissionSettlementRecordId as qn, ThreadOutstanding as qr, MarkReadyRequest as qt, ExplainedSubmission as r, runStartedRecordId as ra, ThreadStoreDiagnostic as ri, ReleaseOwnershipRequest as rn, DurableExplainFailure as rr, ResumeWaitingParent as rt, IntegrityCheckStatus as s, subagentLineageRecordId as sa, ThreadTail as si, ResolutionAbortSubmission as sn, DurableResolveFailure as sr, classifyRecovery as st, Admin_d_exports as t, runIdForSubmission as ta, ThreadSelection as ti, RecoverySnapshotRequest as tn, DurableApprovalSuspension as tr, ResumePendingToolBatch as tt, ObligationEntry as u, subagentStartedBatchId as ua, getRecord as ui, ResolutionSafeToRetry as un, DurableRuntimeConfigOptions as ur, AbortIntentRequest as ut, RetryRefusalReason as v, toolCallSettledRecordId as va, LifecyclePublicationFact as vi, SubmissionLedger as vn, RecoveryFailure as vr, AdmissionRequest as vt, AppendReservedSettlement as w, turnCanonicalBatch as wa, lifecyclePublicationBatchMaxFacts as wi, SubmissionScheduling as wn, recoveryRepairBatchId as wr, ApprovalPendingSuspension as wt, predictRecoveryDisposition as x, toolStepSettledRecordId as xa, LifecyclePublicationStorage as xi, SubmissionLookup as xn, RecoverySweepResult as xr, ApprovalConflict as xt, RetryRefused as y, toolCallUnknownRecordId as ya, LifecyclePublicationHandler as yi, SubmissionLedgerFailure as yn, RecoveryReport as yr, AdmissionResolution as yt, FinalizeLedgerFromHistory as z, CurrentBindingSelection as za, childThreadIdFor as zi, WorkerStopCommand as zn, ThreadCheckpoints as zr, DEFAULT_OWNERSHIP_LEASE_DURATION as zt };
4278
- //# sourceMappingURL=Admin-Vhz6NdaH.d.mts.map
4278
+ //# sourceMappingURL=Admin-CbwoQEm8.d.mts.map
@@ -2,9 +2,9 @@ import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
2
  import { AgentId } from "./core/Identifiers.mjs";
3
3
  import { AgentPolicy } from "./core/AgentPolicy.mjs";
4
4
  import { Emitter, UpdateError } from "./core/AgentUpdates.mjs";
5
- import * as S from "effect/Schema";
6
- import { Tool, Toolkit } from "effect/unstable/ai";
7
- import { Schema } from "effect";
5
+ import * as Schema from "effect/Schema";
6
+ import * as Tool from "effect/unstable/ai/Tool";
7
+ import * as Toolkit from "effect/unstable/ai/Toolkit";
8
8
  //#region src/core/internal/agent-updates.ts
9
9
  /** Definition-owned native Tool. Runtime supplies its handler under the same identity. */
10
10
  const updateTool = (schema) => Tool.make("emit_update", {
@@ -31,11 +31,11 @@ var Agent_exports = /* @__PURE__ */ __exportAll({
31
31
  /** Detect the deferred resolver capability on a trusted, host-provided model service. */
32
32
  const isModelResolver = (model) => "resolve" in model && typeof model.resolve === "function";
33
33
  /** Native Tool configuration for inspection; it does not predict an invocation's outcome. */
34
- const ToolInspection = S.Struct({
35
- name: S.String,
36
- failureMode: S.Literals(["error", "return"]),
34
+ const ToolInspection = Schema.Struct({
35
+ name: Schema.String,
36
+ failureMode: Schema.Literals(["error", "return"]),
37
37
  /** False for provider-executed Tools, whose results do not pass through local handlers. */
38
- requiresHandler: S.Boolean
38
+ requiresHandler: Schema.Boolean
39
39
  });
40
40
  /**
41
41
  * Inspect registered native Tools in declaration order without acquiring handlers or a Model.
@@ -75,7 +75,7 @@ function make(id, options) {
75
75
  ...options.toolExposure,
76
76
  initialToolNames: Object.freeze([...options.toolExposure.initialToolNames ?? []])
77
77
  }),
78
- id: S.decodeSync(AgentId)(id),
78
+ id: Schema.decodeSync(AgentId)(id),
79
79
  metadata: options.metadata === void 0 ? void 0 : Object.freeze({ ...options.metadata }),
80
80
  completion: options.completion === void 0 ? void 0 : Object.freeze({ ...options.completion }),
81
81
  completionFromTools: options.completionFromTools === void 0 ? void 0 : Object.freeze(options.completionFromTools.map((declaration) => Object.freeze({ ...declaration }))),
@@ -90,4 +90,4 @@ const withModel = (definition, model) => Object.freeze({
90
90
  //#endregion
91
91
  export { make as a, isModelResolver as i, ToolInspection as n, withModel as o, inspectTools as r, Agent_exports as t };
92
92
 
93
- //# sourceMappingURL=Agent-BMATXYsI.mjs.map
93
+ //# sourceMappingURL=Agent-B0WrUcHy.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Agent-B0WrUcHy.mjs","names":["S"],"sources":["../src/core/internal/agent-updates.ts","../src/core/Agent.ts"],"sourcesContent":["import * as Schema from \"effect/Schema\";\nimport * as Tool from \"effect/unstable/ai/Tool\";\nimport * as Toolkit from \"effect/unstable/ai/Toolkit\";\n\nimport { Emitter, UpdateError } from \"../AgentUpdates.ts\";\n\n/** Definition-owned native Tool. Runtime supplies its handler under the same identity. */\nexport const updateTool = <S extends Schema.Top>(schema: S) =>\n Tool.make(\"emit_update\", {\n description:\n \"Emit a structured intermediate update. Success acknowledges acceptance by this Run; \" +\n \"parent delivery and processing are separate. This does not complete the task.\",\n parameters: Schema.Struct({ value: schema }),\n success: Schema.Struct({ emitted: Schema.Literal(true) }),\n failure: UpdateError,\n failureMode: \"return\",\n }).addDependency(Emitter);\n\nexport type UpdateToolkit<\n T extends Toolkit.Any,\n S extends Schema.Top | undefined,\n> = S extends Schema.Top\n ? Toolkit.Toolkit<T[\"tools\"] & { readonly emit_update: ReturnType<typeof updateTool<S>> }>\n : T;\n\nexport const withUpdateTool = (\n toolkit: Toolkit.Any,\n schema: Schema.Top | undefined,\n): Toolkit.Any => {\n if (schema === undefined) return toolkit;\n if (Object.hasOwn(toolkit.tools, \"emit_update\"))\n throw new TypeError(\"emit_update is reserved for Agent updates\");\n\n return Toolkit.make(...Object.values(toolkit.tools), updateTool(schema));\n};\n","import type { Effect, Layer, Option, Schema } from \"effect\";\nimport * as S from \"effect/Schema\";\nimport type { AiError, LanguageModel, Model, Prompt } from \"effect/unstable/ai\";\nimport * as Tool from \"effect/unstable/ai/Tool\";\nimport * as Toolkit from \"effect/unstable/ai/Toolkit\";\n\nimport type { AgentInputError, AgentOutputError, AgentRunDispositionError } from \"./AgentError.ts\";\nimport { AgentPolicy, type AgentPolicyInput } from \"./AgentPolicy.ts\";\nimport { AgentId } from \"./Identifiers.ts\";\nimport { type UpdateToolkit, withUpdateTool } from \"./internal/agent-updates.ts\";\nimport type { Configuration } from \"./ToolExposure.ts\";\n\n/** Prompt input produced directly or by an Effect that preserves its failure and requirements. */\nexport type InstructionResult<E = never, R = never> =\n | Prompt.RawInput\n | Effect.Effect<Prompt.RawInput, E, R>;\n\n/** Static prompt input or an input-dependent source evaluated once while preparing a run. */\nexport type InstructionSource<Input, E = never, R = never> =\n | Prompt.RawInput\n | ((input: Input) => InstructionResult<E, R>);\n\n/** Definition-owned projection from decoded Agent input to model-visible prompt content. */\nexport type InputPromptSource<Input, E = never, R = never> = (\n input: Input,\n) => InstructionResult<E, R>;\n\n/** Native services needed to execute and identify model calls. */\nexport type ModelServices = LanguageModel.LanguageModel | Model.ProviderName | Model.ModelName;\n\n/**\n * An optional capability on a provided LanguageModel service. The runtime supplies\n * only model-visible task context and eligible Tool descriptions after validating input.\n * The resolver owns retaining one choice per Thread, including across Runs and\n * recovery; it captures client requirements and returns a closed native Layer\n * that the interpreter acquires for the Run. Context hooks may prepare prompts\n * but cannot replace this model through a per-Turn modelCall.\n * Selection failures remain AiError values and all selector/client services stay in R.\n */\nexport interface ModelResolver extends LanguageModel.LanguageModel {\n readonly resolve: (request: {\n readonly threadId: string;\n readonly state: Schema.JsonObject;\n }) => Effect.Effect<Layer.Layer<ModelServices>, AiError.AiError>;\n}\n\n/** Detect the deferred resolver capability on a trusted, host-provided model service. */\nexport const isModelResolver = (model: LanguageModel.LanguageModel): model is ModelResolver =>\n \"resolve\" in model && typeof model.resolve === \"function\";\n\n/** Accepts native model Layers that provide generation and model identity. */\nexport type NativeModel<ModelValue> =\n ModelValue extends Layer.Layer<infer Provides, never, infer _Requires>\n ? ModelServices extends Provides\n ? ModelValue\n : never\n : never;\n\n/** Definition-owned boundary for selecting and validating an application run disposition. */\nexport interface RunDispositionDeclaration<Output, DispositionSchema extends Schema.Top> {\n /**\n * Opt background workers into one retained assignment. The encoded disposition must be\n * Worker.AssignmentDisposition: completed seals the worker, waiting leaves it steerable.\n * Failures and exhausted Runs seal as failed; aborting an active Run seals as cancelled.\n * The worker origin retains this choice. Omission preserves reusable workers.\n */\n readonly workerLifecycle?: \"assignment\" | undefined;\n /** Canonical Schema used to validate and encode the selected disposition. */\n readonly schema: DispositionSchema;\n /** Pure selection from decoded output. `undefined` declares none, except for assignments. */\n readonly fromOutput: (output: Output) => unknown;\n}\n\n/** Values available to a Definition-owned completion Tool projector after canonical decoding. */\nexport interface CompletionProjectionInput<Parameters = unknown, Result = unknown> {\n readonly parameters: Parameters;\n readonly result: Result;\n}\n\n/**\n * One application Tool whose successful result can complete its owning Agent when it is the\n * only application call. Provider-executed calls may accompany it only with terminal results.\n * Mixed, wholly unexecuted application batches are rejected with failed Tool results so the\n * model can correct them within ordinary Run budgets; completed provider results are retained.\n * Missing provider results and invalid pending resumed batches fail closed. The completion\n * designation never permits side-effect replay.\n */\nexport interface CompletionToolDeclaration<\n Parameters = unknown,\n Result = unknown,\n Output = unknown,\n> {\n readonly tool: string;\n /** Require native Tool use on every model Turn and this Tool for final completion. */\n readonly required?: boolean | undefined;\n readonly project: (input: CompletionProjectionInput<Parameters, Result>) => Output;\n}\n\ntype CompletionToolFor<ToolkitValue extends Toolkit.Any, Output> = {\n readonly [Name in keyof ToolkitValue[\"tools\"] & string]: CompletionToolDeclaration<\n Tool.Parameters<ToolkitValue[\"tools\"][Name]>,\n Tool.Success<ToolkitValue[\"tools\"][Name]>,\n Output\n > & { readonly tool: Name };\n}[keyof ToolkitValue[\"tools\"] & string];\n\n/**\n * An ordinary action Tool whose canonical success may satisfy the whole request.\n * Projectors must be pure and deterministic: recovery re-evaluates them. None preserves\n * ordinary continuation; Some is validated as the Agent output. These Tools must be the sole\n * application call; terminal provider results may accompany them. They never receive the\n * required completion Tool's exhaustion allowance.\n */\nexport interface CompletionFromToolDeclaration<\n Parameters = unknown,\n Result = unknown,\n Output = unknown,\n> {\n readonly tool: string;\n readonly project: (input: CompletionProjectionInput<Parameters, Result>) => Option.Option<Output>;\n}\n\ntype CompletionFromToolFor<ToolkitValue extends Toolkit.Any, Output> = {\n readonly [Name in keyof ToolkitValue[\"tools\"] & string]: CompletionFromToolDeclaration<\n Tool.Parameters<ToolkitValue[\"tools\"][Name]>,\n Tool.Success<ToolkitValue[\"tools\"][Name]>,\n Output\n > & { readonly tool: Name };\n}[keyof ToolkitValue[\"tools\"] & string];\n\n/** Immutable, model-agnostic schemas, behavior, tools, and bounds for an agent. */\nexport interface Definition<\n InputSchema extends Schema.Top,\n OutputSchema extends Schema.Top,\n Instructions,\n ToolkitValue extends Toolkit.Any,\n RunDispositionValue = undefined,\n InputPromptValue = undefined,\n UpdatesSchema extends Schema.Top | undefined = undefined,\n> {\n /** Stable agent identity; changing it creates a distinct definition identity. */\n readonly id: AgentId;\n /** Canonical Schema for intermediate updates emitted by this Agent. */\n readonly updates?: UpdatesSchema;\n /** Canonical schema used to decode and encode run input. */\n readonly input: InputSchema;\n /** Canonical schema used to decode the final model output. */\n readonly output: OutputSchema;\n /**\n * Evaluated once while preparing each Run. OpenAI, xAI and native adapters advertising support\n * preserve chronological system messages, omitting exact repeats only when no distinct system\n * instruction intervenes. The actual selected model determines support on each call. Other\n * adapters group systems first and keep the last exact repeat, including provider options;\n * Anthropic requires an upstream adapter with mid-conversation system-message support.\n * Stored history is unchanged.\n */\n readonly instructions: Instructions;\n /** Optional projection from decoded input to model-visible native Effect AI prompt content. */\n readonly inputPrompt?: InputPromptValue | undefined;\n /** Native Effect AI toolkit whose failures and requirements remain visible. */\n readonly toolkit: ToolkitValue;\n readonly toolExposure?: Configuration | undefined;\n /** Finite execution bounds enforced by the runtime. */\n readonly policy: AgentPolicy;\n /** Explicit policy fields, retained so delegated runs can inherit omitted fields. */\n readonly policyOverrides?: Partial<AgentPolicyInput> | undefined;\n /** Optional successful Tool result that projects directly to the Agent output and settles. */\n readonly completion?: CompletionToolDeclaration | undefined;\n readonly completionFromTools?: ReadonlyArray<CompletionFromToolDeclaration> | undefined;\n readonly runDisposition?: RunDispositionValue | undefined;\n readonly description?: string | undefined;\n readonly metadata?: Readonly<Record<string, string>> | undefined;\n}\n\n/** Options for a model-agnostic agent definition. */\nexport interface DefinitionOptions<\n InputSchema extends Schema.Top,\n OutputSchema extends Schema.Top,\n Instructions extends InstructionSource<InputSchema[\"Type\"], unknown, unknown>,\n ToolkitValue extends Toolkit.Any,\n RunDispositionValue extends\n | RunDispositionDeclaration<OutputSchema[\"Type\"], Schema.Top>\n | undefined = undefined,\n InputPromptValue extends InputPromptSource<InputSchema[\"Type\"], unknown, unknown> | undefined =\n undefined,\n UpdatesSchema extends Schema.Top | undefined = undefined,\n> {\n readonly updates?: UpdatesSchema;\n readonly input: InputSchema;\n readonly output: OutputSchema;\n readonly instructions: Instructions;\n readonly inputPrompt?: InputPromptValue | undefined;\n readonly toolkit: ToolkitValue;\n readonly toolExposure?: Configuration | undefined;\n readonly policy?: Partial<AgentPolicyInput> | undefined;\n readonly completion?: CompletionToolFor<ToolkitValue, OutputSchema[\"Type\"]> | undefined;\n readonly completionFromTools?:\n | ReadonlyArray<CompletionFromToolFor<ToolkitValue, OutputSchema[\"Type\"]>>\n | undefined;\n readonly runDisposition?: RunDispositionValue | undefined;\n readonly description?: string | undefined;\n readonly metadata?: Readonly<Record<string, string>> | undefined;\n}\n\ntype AnyDefinitionShape = Definition<\n Schema.Top,\n Schema.Top,\n unknown,\n Toolkit.Any,\n RunDispositionDeclaration<never, Schema.Top> | undefined,\n unknown,\n Schema.Top | undefined\n>;\n\n/** Immutable pairing of an agent definition with a native model Layer or thread resolver. */\nexport interface Binding<DefinitionValue extends AnyDefinitionShape, ModelValue> {\n readonly definition: DefinitionValue;\n readonly model: NativeModel<ModelValue>;\n}\n\ntype InstructionEffect<Instructions, Input> = Instructions extends (input: Input) => infer Result\n ? Result\n : Instructions;\n\ntype InputPromptEffect<InputPrompt, Input> = InputPrompt extends (input: Input) => infer Result\n ? Result\n : never;\n\ntype EffectError<Value> =\n Value extends Effect.Effect<infer _Success, infer Error, infer _Services> ? Error : never;\n\ntype EffectServices<Value> =\n Value extends Effect.Effect<infer _Success, infer _Error, infer Services> ? Services : never;\n\ntype ModelRequirements<Value> =\n Value extends Layer.Layer<infer _Provides, infer _Error, infer Services> ? Services : never;\n\n/** Constructors and type projections for definitions and runnable model bindings. */\n\n/** Type-erased definition used at generic framework boundaries. */\nexport type AnyDefinition = AnyDefinitionShape;\n\n/** Read-only interpreter program or binding used at inspection and projection boundaries. */\nexport interface Any {\n readonly definition: AnyDefinition;\n readonly model?: unknown;\n}\n\n/** Native Tool configuration for inspection; it does not predict an invocation's outcome. */\nexport const ToolInspection = S.Struct({\n name: S.String,\n failureMode: S.Literals([\"error\", \"return\"]),\n /** False for provider-executed Tools, whose results do not pass through local handlers. */\n requiresHandler: S.Boolean,\n});\n\nexport type ToolInspection = typeof ToolInspection.Type;\n\n/**\n * Inspect registered native Tools in declaration order without acquiring handlers or a Model.\n * This is the full Definition toolkit, before run-specific visibility or exposure filtering.\n * `failureMode` is Effect AI's configured mode, including its `\"error\"` default. Handler-level\n * recovery, programmatic invocation and Subagent containment can change where failures go;\n * consult execution diagnostics for the actual route. No arguments, results or services are read.\n */\nexport const inspectTools = (agent: AnyDefinition | Any): ReadonlyArray<ToolInspection> => {\n const definition = \"definition\" in agent ? agent.definition : agent;\n\n return Object.values(definition.toolkit.tools).map((tool) =>\n ToolInspection.make({\n name: tool.name,\n failureMode: tool.failureMode,\n requiresHandler: !Tool.isProviderDefined(tool) || tool.requiresHandler,\n }),\n );\n};\n\ntype DefinitionOf<AgentValue extends AnyDefinition | Any> = AgentValue extends {\n readonly definition: infer DefinitionValue extends AnyDefinition;\n}\n ? DefinitionValue\n : AgentValue;\n\ntype RunDispositionSchemaOf<DefinitionValue extends AnyDefinition> = [\n Exclude<DefinitionValue[\"runDisposition\"], undefined>,\n] extends [never]\n ? never\n : Exclude<DefinitionValue[\"runDisposition\"], undefined> extends RunDispositionDeclaration<\n never,\n infer DispositionSchema\n >\n ? DispositionSchema\n : never;\n\n/** Literal Agent ID, retained by Agent.make. */\nexport type Name<A extends AnyDefinition | Any> = DefinitionOf<A>[\"id\"] extends AgentId &\n (infer N extends string)\n ? N\n : string;\n\n/** Declared update Schema, or never for Agents without updates. */\nexport type UpdatesSchema<A extends AnyDefinition | Any> = Exclude<\n DefinitionOf<A>[\"updates\"],\n undefined\n>;\n\n/** Decoded intermediate update value. */\nexport type Update<A extends AnyDefinition | Any> = UpdatesSchema<A>[\"Type\"];\n\n/** Decoded input type of a definition or binding. */\nexport type Input<AgentValue extends AnyDefinition | Any> =\n DefinitionOf<AgentValue>[\"input\"][\"Type\"];\n\n/** Encoded input accepted by the primary execution operations. */\nexport type EncodedInput<AgentValue extends AnyDefinition | Any> =\n DefinitionOf<AgentValue>[\"input\"][\"Encoded\"];\n\n/** Decoded output type of a definition or binding. */\nexport type Output<AgentValue extends AnyDefinition | Any> =\n DefinitionOf<AgentValue>[\"output\"][\"Type\"];\n\n/** Input Schema carried by a definition or binding. */\nexport type InputSchema<AgentValue extends AnyDefinition | Any> = DefinitionOf<AgentValue>[\"input\"];\n\n/** Output Schema carried by a definition or binding. */\nexport type OutputSchema<AgentValue extends AnyDefinition | Any> =\n DefinitionOf<AgentValue>[\"output\"];\n\n/** Application run-disposition Schema carried by a definition or binding, or `never`. */\nexport type RunDispositionSchema<AgentValue extends AnyDefinition | Any> = RunDispositionSchemaOf<\n DefinitionOf<AgentValue>\n>;\n\n/** Decoded application run disposition declared by a definition or binding. */\nexport type RunDisposition<AgentValue extends AnyDefinition | Any> = [\n RunDispositionSchema<AgentValue>,\n] extends [never]\n ? never\n : RunDispositionSchema<AgentValue>[\"Type\"];\n\n/** Validation failure admitted only by definitions that declare a run disposition. */\nexport type RunDispositionFailure<AgentValue extends AnyDefinition | Any> = [\n RunDispositionSchemaOf<DefinitionOf<AgentValue>>,\n] extends [never]\n ? never\n : AgentRunDispositionError;\n\n/** Effect AI tool map carried by a definition or binding. */\nexport type Tools<AgentValue extends AnyDefinition | Any> = Toolkit.Tools<\n DefinitionOf<AgentValue>[\"toolkit\"]\n>;\n\ntype ApplicationTools<A extends AnyDefinition> = [UpdatesSchema<A>] extends [never]\n ? Tools<A>\n : Omit<Tools<A>, \"emit_update\">;\n\ntype ToolMapValues<ToolMap extends Record<string, Tool.Any>> = ToolMap extends unknown\n ? ToolMap[keyof ToolMap]\n : never;\n\n/** All possible tools, including keys present in only one definition or binding branch. */\nexport type ToolUnion<AgentValue extends AnyDefinition | Any> = ToolMapValues<Tools<AgentValue>>;\n\n/** Instruction, tool-handler, and Schema services required before a Model is bound. */\nexport type DefinitionRequirements<DefinitionValue extends AnyDefinition> =\n DefinitionValue extends unknown\n ?\n | EffectServices<InstructionEffect<DefinitionValue[\"instructions\"], Input<DefinitionValue>>>\n | EffectServices<InputPromptEffect<DefinitionValue[\"inputPrompt\"], Input<DefinitionValue>>>\n | Tool.HandlersFor<ApplicationTools<DefinitionValue>>\n | Tool.HandlerServices<ToolMapValues<ApplicationTools<DefinitionValue>>>\n // The interpreter canonically re-encodes decoded Tool parameters before recording them.\n | Tool.ParametersSchema<ToolUnion<DefinitionValue>>[\"EncodingServices\"]\n | Tool.SuccessSchema<ToolUnion<DefinitionValue>>[\"DecodingServices\"]\n | DefinitionValue[\"input\"][\"DecodingServices\"]\n | DefinitionValue[\"input\"][\"EncodingServices\"]\n | DefinitionValue[\"output\"][\"DecodingServices\"]\n | DefinitionValue[\"output\"][\"EncodingServices\"]\n | UpdatesSchema<DefinitionValue>[\"DecodingServices\"]\n | UpdatesSchema<DefinitionValue>[\"EncodingServices\"]\n | RunDispositionSchemaOf<DefinitionValue>[\"DecodingServices\"]\n | RunDispositionSchemaOf<DefinitionValue>[\"EncodingServices\"]\n : never;\n\n/** Definition services plus native model services, or a binding's model Layer requirements. */\nexport type Requirements<AgentValue extends AnyDefinition | Any> =\n | DefinitionRequirements<DefinitionOf<AgentValue>>\n | (AgentValue extends { readonly model: infer ModelValue }\n ? ModelRequirements<ModelValue>\n : ModelServices);\n\n// Distribute after unwrapping bindings too: withModel may itself contain a definition union.\ntype DefinitionFailure<DefinitionValue extends AnyDefinition> = DefinitionValue extends unknown\n ?\n | EffectError<InstructionEffect<DefinitionValue[\"instructions\"], Input<DefinitionValue>>>\n | EffectError<InputPromptEffect<DefinitionValue[\"inputPrompt\"], Input<DefinitionValue>>>\n | Tool.HandlerError<ToolUnion<DefinitionValue>>\n : never;\n\n/** Failures from every possible definition, preserving each branch's instruction input type. */\nexport type Failure<AgentValue extends AnyDefinition | Any> =\n | DefinitionFailure<DefinitionOf<AgentValue>>\n | AiError.AiError\n | AgentInputError\n | AgentOutputError\n | RunDispositionFailure<AgentValue>;\n\n/** Validate an agent ID and return a shallowly frozen, model-agnostic definition. */\nexport function make<\n const Name extends string,\n InputSchema extends Schema.Top,\n OutputSchema extends Schema.Top,\n Instructions extends InstructionSource<InputSchema[\"Type\"], unknown, unknown>,\n ToolkitValue extends Toolkit.Any,\n DispositionSchema extends Schema.Top,\n InputPromptValue extends InputPromptSource<InputSchema[\"Type\"], unknown, unknown> | undefined,\n UpdatesSchema extends Schema.Top | undefined = undefined,\n>(\n id: Name,\n options: DefinitionOptions<\n InputSchema,\n OutputSchema,\n Instructions,\n ToolkitValue,\n RunDispositionDeclaration<OutputSchema[\"Type\"], DispositionSchema>,\n InputPromptValue,\n UpdatesSchema\n > & {\n readonly runDisposition: RunDispositionDeclaration<OutputSchema[\"Type\"], DispositionSchema>;\n readonly inputPrompt: InputPromptValue;\n },\n): Definition<\n InputSchema,\n OutputSchema,\n Instructions,\n UpdateToolkit<ToolkitValue, NoInfer<UpdatesSchema>>,\n RunDispositionDeclaration<OutputSchema[\"Type\"], DispositionSchema>,\n InputPromptValue,\n NoInfer<UpdatesSchema>\n> & { readonly id: AgentId & Name };\n\nexport function make<\n const Name extends string,\n InputSchema extends Schema.Top,\n OutputSchema extends Schema.Top,\n Instructions extends InstructionSource<InputSchema[\"Type\"], unknown, unknown>,\n ToolkitValue extends Toolkit.Any,\n DispositionSchema extends Schema.Top,\n UpdatesSchema extends Schema.Top | undefined = undefined,\n>(\n id: Name,\n options: DefinitionOptions<\n InputSchema,\n OutputSchema,\n Instructions,\n ToolkitValue,\n RunDispositionDeclaration<OutputSchema[\"Type\"], DispositionSchema>,\n undefined,\n UpdatesSchema\n > & {\n readonly runDisposition: RunDispositionDeclaration<OutputSchema[\"Type\"], DispositionSchema>;\n readonly inputPrompt?: undefined;\n },\n): Definition<\n InputSchema,\n OutputSchema,\n Instructions,\n UpdateToolkit<ToolkitValue, NoInfer<UpdatesSchema>>,\n RunDispositionDeclaration<OutputSchema[\"Type\"], DispositionSchema>,\n undefined,\n NoInfer<UpdatesSchema>\n> & { readonly id: AgentId & Name };\n\nexport function make<\n const Name extends string,\n InputSchema extends Schema.Top,\n OutputSchema extends Schema.Top,\n Instructions extends InstructionSource<InputSchema[\"Type\"], unknown, unknown>,\n ToolkitValue extends Toolkit.Any,\n InputPromptValue extends InputPromptSource<InputSchema[\"Type\"], unknown, unknown> | undefined,\n UpdatesSchema extends Schema.Top | undefined = undefined,\n>(\n id: Name,\n options: DefinitionOptions<\n InputSchema,\n OutputSchema,\n Instructions,\n ToolkitValue,\n undefined,\n InputPromptValue,\n UpdatesSchema\n > & {\n readonly inputPrompt: InputPromptValue;\n readonly runDisposition?: undefined;\n },\n): Definition<\n InputSchema,\n OutputSchema,\n Instructions,\n UpdateToolkit<ToolkitValue, NoInfer<UpdatesSchema>>,\n undefined,\n InputPromptValue,\n NoInfer<UpdatesSchema>\n> & { readonly id: AgentId & Name };\n\nexport function make<\n const Name extends string,\n InputSchema extends Schema.Top,\n OutputSchema extends Schema.Top,\n Instructions extends InstructionSource<InputSchema[\"Type\"], unknown, unknown>,\n ToolkitValue extends Toolkit.Any,\n UpdatesSchema extends Schema.Top | undefined = undefined,\n>(\n id: Name,\n options: DefinitionOptions<\n InputSchema,\n OutputSchema,\n Instructions,\n ToolkitValue,\n undefined,\n undefined,\n UpdatesSchema\n > & {\n readonly inputPrompt?: undefined;\n readonly runDisposition?: undefined;\n },\n): Definition<\n InputSchema,\n OutputSchema,\n Instructions,\n UpdateToolkit<ToolkitValue, NoInfer<UpdatesSchema>>,\n undefined,\n undefined,\n NoInfer<UpdatesSchema>\n> & { readonly id: AgentId & Name };\n\nexport function make(\n id: string,\n options: {\n readonly updates?: Schema.Top | undefined;\n readonly input: Schema.Top;\n readonly output: Schema.Top;\n readonly instructions: unknown;\n readonly inputPrompt?: unknown;\n readonly toolkit: Toolkit.Any;\n readonly toolExposure?: Configuration | undefined;\n readonly policy?: Partial<AgentPolicyInput> | undefined;\n readonly completion?: CompletionToolDeclaration | undefined;\n readonly completionFromTools?: ReadonlyArray<CompletionFromToolDeclaration> | undefined;\n readonly runDisposition?: RunDispositionDeclaration<never, Schema.Top> | undefined;\n readonly description?: string | undefined;\n readonly metadata?: Readonly<Record<string, string>> | undefined;\n },\n): AnyDefinition {\n const completionNames = new Set<string>();\n\n for (const declaration of options.completionFromTools ?? []) {\n if (declaration.tool === options.completion?.tool || completionNames.has(declaration.tool)) {\n throw new Error(`Tool ${declaration.tool} has more than one completion declaration`);\n }\n if (!Object.hasOwn(options.toolkit.tools, declaration.tool)) {\n throw new Error(`Unknown completion Tool ${declaration.tool}`);\n }\n completionNames.add(declaration.tool);\n }\n\n const tools = Object.values(options.toolkit.tools);\n\n const readonlyTools = tools.map((tool) =>\n Tool.isProviderDefined(tool) &&\n !tool.requiresHandler &&\n [\"web_search\", \"web_search_preview\", \"file_search\"].includes(tool.providerName)\n ? tool.annotate(Tool.Readonly, true)\n : tool,\n );\n\n const toolkit = readonlyTools.some((tool, index) => tool !== tools[index])\n ? Toolkit.make(...readonlyTools)\n : options.toolkit;\n\n return Object.freeze({\n ...options,\n toolkit: withUpdateTool(toolkit, options.updates),\n policy: AgentPolicy.resolve(options.policy),\n policyOverrides: Object.freeze({ ...options.policy }),\n toolExposure:\n options.toolExposure === undefined\n ? undefined\n : Object.freeze({\n ...options.toolExposure,\n initialToolNames: Object.freeze([...(options.toolExposure.initialToolNames ?? [])]),\n }),\n id: S.decodeSync(AgentId)(id),\n metadata: options.metadata === undefined ? undefined : Object.freeze({ ...options.metadata }),\n completion:\n options.completion === undefined ? undefined : Object.freeze({ ...options.completion }),\n completionFromTools:\n options.completionFromTools === undefined\n ? undefined\n : Object.freeze(\n options.completionFromTools.map((declaration) => Object.freeze({ ...declaration })),\n ),\n runDisposition:\n options.runDisposition === undefined\n ? undefined\n : Object.freeze({ ...options.runDisposition }),\n });\n}\n\n/** Bind a native model or thread resolver without acquiring or hiding its requirements. */\nexport const withModel = <DefinitionValue extends AnyDefinition, ModelValue>(\n definition: DefinitionValue,\n model: NativeModel<ModelValue>,\n): Binding<DefinitionValue, ModelValue> =>\n Object.freeze({\n definition,\n model,\n });\n"],"mappings":";;;;;;;;;AAOA,MAAa,cAAoC,WAC/C,KAAK,KAAK,eAAe;CACvB,aACE;CAEF,YAAY,OAAO,OAAO,EAAE,OAAO,OAAO,CAAC;CAC3C,SAAS,OAAO,OAAO,EAAE,SAAS,OAAO,QAAQ,IAAI,EAAE,CAAC;CACxD,SAAS;CACT,aAAa;AACf,CAAC,CAAC,CAAC,cAAc,OAAO;AAS1B,MAAa,kBACX,SACA,WACgB;CAChB,IAAI,WAAW,KAAA,GAAW,OAAO;CACjC,IAAI,OAAO,OAAO,QAAQ,OAAO,aAAa,GAC5C,MAAM,IAAI,UAAU,2CAA2C;CAEjE,OAAO,QAAQ,KAAK,GAAG,OAAO,OAAO,QAAQ,KAAK,GAAG,WAAW,MAAM,CAAC;AACzE;;;;;;;;;;;ACaA,MAAa,mBAAmB,UAC9B,aAAa,SAAS,OAAO,MAAM,YAAY;;AAyMjD,MAAa,iBAAiBA,OAAE,OAAO;CACrC,MAAMA,OAAE;CACR,aAAaA,OAAE,SAAS,CAAC,SAAS,QAAQ,CAAC;;CAE3C,iBAAiBA,OAAE;AACrB,CAAC;;;;;;;;AAWD,MAAa,gBAAgB,UAA8D;CACzF,MAAM,aAAa,gBAAgB,QAAQ,MAAM,aAAa;CAE9D,OAAO,OAAO,OAAO,WAAW,QAAQ,KAAK,CAAC,CAAC,KAAK,SAClD,eAAe,KAAK;EAClB,MAAM,KAAK;EACX,aAAa,KAAK;EAClB,iBAAiB,CAAC,KAAK,kBAAkB,IAAI,KAAK,KAAK;CACzD,CAAC,CACH;AACF;AAqQA,SAAgB,KACd,IACA,SAee;CACf,MAAM,kCAAkB,IAAI,IAAY;CAExC,KAAK,MAAM,eAAe,QAAQ,uBAAuB,CAAC,GAAG;EAC3D,IAAI,YAAY,SAAS,QAAQ,YAAY,QAAQ,gBAAgB,IAAI,YAAY,IAAI,GACvF,MAAM,IAAI,MAAM,QAAQ,YAAY,KAAK,0CAA0C;EAErF,IAAI,CAAC,OAAO,OAAO,QAAQ,QAAQ,OAAO,YAAY,IAAI,GACxD,MAAM,IAAI,MAAM,2BAA2B,YAAY,MAAM;EAE/D,gBAAgB,IAAI,YAAY,IAAI;CACtC;CAEA,MAAM,QAAQ,OAAO,OAAO,QAAQ,QAAQ,KAAK;CAEjD,MAAM,gBAAgB,MAAM,KAAK,SAC/B,KAAK,kBAAkB,IAAI,KAC3B,CAAC,KAAK,mBACN;EAAC;EAAc;EAAsB;CAAa,CAAC,CAAC,SAAS,KAAK,YAAY,IAC1E,KAAK,SAAS,KAAK,UAAU,IAAI,IACjC,IACN;CAEA,MAAM,UAAU,cAAc,MAAM,MAAM,UAAU,SAAS,MAAM,MAAM,IACrE,QAAQ,KAAK,GAAG,aAAa,IAC7B,QAAQ;CAEZ,OAAO,OAAO,OAAO;EACnB,GAAG;EACH,SAAS,eAAe,SAAS,QAAQ,OAAO;EAChD,QAAQ,YAAY,QAAQ,QAAQ,MAAM;EAC1C,iBAAiB,OAAO,OAAO,EAAE,GAAG,QAAQ,OAAO,CAAC;EACpD,cACE,QAAQ,iBAAiB,KAAA,IACrB,KAAA,IACA,OAAO,OAAO;GACZ,GAAG,QAAQ;GACX,kBAAkB,OAAO,OAAO,CAAC,GAAI,QAAQ,aAAa,oBAAoB,CAAC,CAAE,CAAC;EACpF,CAAC;EACP,IAAIA,OAAE,WAAW,OAAO,CAAC,CAAC,EAAE;EAC5B,UAAU,QAAQ,aAAa,KAAA,IAAY,KAAA,IAAY,OAAO,OAAO,EAAE,GAAG,QAAQ,SAAS,CAAC;EAC5F,YACE,QAAQ,eAAe,KAAA,IAAY,KAAA,IAAY,OAAO,OAAO,EAAE,GAAG,QAAQ,WAAW,CAAC;EACxF,qBACE,QAAQ,wBAAwB,KAAA,IAC5B,KAAA,IACA,OAAO,OACL,QAAQ,oBAAoB,KAAK,gBAAgB,OAAO,OAAO,EAAE,GAAG,YAAY,CAAC,CAAC,CACpF;EACN,gBACE,QAAQ,mBAAmB,KAAA,IACvB,KAAA,IACA,OAAO,OAAO,EAAE,GAAG,QAAQ,eAAe,CAAC;CACnD,CAAC;AACH;;AAGA,MAAa,aACX,YACA,UAEA,OAAO,OAAO;CACZ;CACA;AACF,CAAC"}
@@ -1,23 +1,26 @@
1
1
  import { t as AgentId } from "./Identifiers-CN2s30fF.mjs";
2
- import { i as UpdateError, n as Emitter } from "./AgentUpdates-DMJ-_xow.mjs";
3
- import { r as Configuration } from "./ToolExposure-r2eOWk4F.mjs";
4
- import { a as AgentInputError, l as AgentRunDispositionError, s as AgentOutputError } from "./AgentError-Bn1ytXRD.mjs";
5
- import { n as AgentPolicyInput, t as AgentPolicy } from "./AgentPolicy-B4oH8TbG.mjs";
6
- import { AiError, LanguageModel, Model, Prompt, Tool, Toolkit } from "effect/unstable/ai";
2
+ import { i as UpdateError, n as Emitter } from "./AgentUpdates-DksV4D0A.mjs";
3
+ import { r as Configuration } from "./ToolExposure-Ckg3-sTf.mjs";
4
+ import { a as AgentInputError, l as AgentRunDispositionError, s as AgentOutputError } from "./AgentError-BMqPzIVt.mjs";
5
+ import { n as AgentPolicyInput, t as AgentPolicy } from "./AgentPolicy-CclAEpHn.mjs";
6
+ import * as Schema$1 from "effect/Schema";
7
+ import * as Tool$1 from "effect/unstable/ai/Tool";
8
+ import * as Toolkit$1 from "effect/unstable/ai/Toolkit";
7
9
  import { Effect, Layer, Option, Schema } from "effect";
10
+ import { AiError, LanguageModel, Model, Prompt } from "effect/unstable/ai";
8
11
  //#region src/core/internal/agent-updates.d.ts
9
12
  /** Definition-owned native Tool. Runtime supplies its handler under the same identity. */
10
- declare const updateTool: <S extends Schema.Top>(schema: S) => Tool.Tool<"emit_update", {
11
- readonly parameters: Schema.Struct<{
13
+ declare const updateTool: <S extends Schema$1.Top>(schema: S) => Tool$1.Tool<"emit_update", {
14
+ readonly parameters: Schema$1.Struct<{
12
15
  readonly value: S;
13
16
  }>;
14
- readonly success: Schema.Struct<{
15
- readonly emitted: Schema.Literal<true>;
17
+ readonly success: Schema$1.Struct<{
18
+ readonly emitted: Schema$1.Literal<true>;
16
19
  }>;
17
20
  readonly failure: typeof UpdateError;
18
21
  readonly failureMode: "return";
19
22
  }, Emitter>;
20
- type UpdateToolkit<T extends Toolkit.Any, S extends Schema.Top | undefined> = S extends Schema.Top ? Toolkit.Toolkit<T["tools"] & {
23
+ type UpdateToolkit<T extends Toolkit$1.Any, S extends Schema$1.Top | undefined> = S extends Schema$1.Top ? Toolkit$1.Toolkit<T["tools"] & {
21
24
  readonly emit_update: ReturnType<typeof updateTool<S>>;
22
25
  }> : T;
23
26
  declare namespace Agent_d_exports {
@@ -83,7 +86,7 @@ interface CompletionToolDeclaration<Parameters = unknown, Result = unknown, Outp
83
86
  readonly required?: boolean | undefined;
84
87
  readonly project: (input: CompletionProjectionInput<Parameters, Result>) => Output;
85
88
  }
86
- type CompletionToolFor<ToolkitValue extends Toolkit.Any, Output> = { readonly [Name in keyof ToolkitValue["tools"] & string]: CompletionToolDeclaration<Tool.Parameters<ToolkitValue["tools"][Name]>, Tool.Success<ToolkitValue["tools"][Name]>, Output> & {
89
+ type CompletionToolFor<ToolkitValue extends Toolkit$1.Any, Output> = { readonly [Name in keyof ToolkitValue["tools"] & string]: CompletionToolDeclaration<Tool$1.Parameters<ToolkitValue["tools"][Name]>, Tool$1.Success<ToolkitValue["tools"][Name]>, Output> & {
87
90
  readonly tool: Name;
88
91
  }; }[keyof ToolkitValue["tools"] & string];
89
92
  /**
@@ -97,11 +100,11 @@ interface CompletionFromToolDeclaration<Parameters = unknown, Result = unknown,
97
100
  readonly tool: string;
98
101
  readonly project: (input: CompletionProjectionInput<Parameters, Result>) => Option.Option<Output>;
99
102
  }
100
- type CompletionFromToolFor<ToolkitValue extends Toolkit.Any, Output> = { readonly [Name in keyof ToolkitValue["tools"] & string]: CompletionFromToolDeclaration<Tool.Parameters<ToolkitValue["tools"][Name]>, Tool.Success<ToolkitValue["tools"][Name]>, Output> & {
103
+ type CompletionFromToolFor<ToolkitValue extends Toolkit$1.Any, Output> = { readonly [Name in keyof ToolkitValue["tools"] & string]: CompletionFromToolDeclaration<Tool$1.Parameters<ToolkitValue["tools"][Name]>, Tool$1.Success<ToolkitValue["tools"][Name]>, Output> & {
101
104
  readonly tool: Name;
102
105
  }; }[keyof ToolkitValue["tools"] & string];
103
106
  /** Immutable, model-agnostic schemas, behavior, tools, and bounds for an agent. */
104
- interface Definition<InputSchema extends Schema.Top, OutputSchema extends Schema.Top, Instructions, ToolkitValue extends Toolkit.Any, RunDispositionValue = undefined, InputPromptValue = undefined, UpdatesSchema extends Schema.Top | undefined = undefined> {
107
+ interface Definition<InputSchema extends Schema.Top, OutputSchema extends Schema.Top, Instructions, ToolkitValue extends Toolkit$1.Any, RunDispositionValue = undefined, InputPromptValue = undefined, UpdatesSchema extends Schema.Top | undefined = undefined> {
105
108
  /** Stable agent identity; changing it creates a distinct definition identity. */
106
109
  readonly id: AgentId;
107
110
  /** Canonical Schema for intermediate updates emitted by this Agent. */
@@ -136,7 +139,7 @@ interface Definition<InputSchema extends Schema.Top, OutputSchema extends Schema
136
139
  readonly metadata?: Readonly<Record<string, string>> | undefined;
137
140
  }
138
141
  /** Options for a model-agnostic agent definition. */
139
- interface DefinitionOptions<InputSchema extends Schema.Top, OutputSchema extends Schema.Top, Instructions extends InstructionSource<InputSchema["Type"], unknown, unknown>, ToolkitValue extends Toolkit.Any, RunDispositionValue extends RunDispositionDeclaration<OutputSchema["Type"], Schema.Top> | undefined = undefined, InputPromptValue extends InputPromptSource<InputSchema["Type"], unknown, unknown> | undefined = undefined, UpdatesSchema extends Schema.Top | undefined = undefined> {
142
+ interface DefinitionOptions<InputSchema extends Schema.Top, OutputSchema extends Schema.Top, Instructions extends InstructionSource<InputSchema["Type"], unknown, unknown>, ToolkitValue extends Toolkit$1.Any, RunDispositionValue extends RunDispositionDeclaration<OutputSchema["Type"], Schema.Top> | undefined = undefined, InputPromptValue extends InputPromptSource<InputSchema["Type"], unknown, unknown> | undefined = undefined, UpdatesSchema extends Schema.Top | undefined = undefined> {
140
143
  readonly updates?: UpdatesSchema;
141
144
  readonly input: InputSchema;
142
145
  readonly output: OutputSchema;
@@ -151,7 +154,7 @@ interface DefinitionOptions<InputSchema extends Schema.Top, OutputSchema extends
151
154
  readonly description?: string | undefined;
152
155
  readonly metadata?: Readonly<Record<string, string>> | undefined;
153
156
  }
154
- type AnyDefinitionShape = Definition<Schema.Top, Schema.Top, unknown, Toolkit.Any, RunDispositionDeclaration<never, Schema.Top> | undefined, unknown, Schema.Top | undefined>;
157
+ type AnyDefinitionShape = Definition<Schema.Top, Schema.Top, unknown, Toolkit$1.Any, RunDispositionDeclaration<never, Schema.Top> | undefined, unknown, Schema.Top | undefined>;
155
158
  /** Immutable pairing of an agent definition with a native model Layer or thread resolver. */
156
159
  interface Binding<DefinitionValue extends AnyDefinitionShape, ModelValue> {
157
160
  readonly definition: DefinitionValue;
@@ -213,40 +216,40 @@ type RunDisposition<AgentValue extends AnyDefinition | Any> = [RunDispositionSch
213
216
  /** Validation failure admitted only by definitions that declare a run disposition. */
214
217
  type RunDispositionFailure<AgentValue extends AnyDefinition | Any> = [RunDispositionSchemaOf<DefinitionOf<AgentValue>>] extends [never] ? never : AgentRunDispositionError;
215
218
  /** Effect AI tool map carried by a definition or binding. */
216
- type Tools<AgentValue extends AnyDefinition | Any> = Toolkit.Tools<DefinitionOf<AgentValue>["toolkit"]>;
219
+ type Tools<AgentValue extends AnyDefinition | Any> = Toolkit$1.Tools<DefinitionOf<AgentValue>["toolkit"]>;
217
220
  type ApplicationTools<A extends AnyDefinition> = [UpdatesSchema<A>] extends [never] ? Tools<A> : Omit<Tools<A>, "emit_update">;
218
- type ToolMapValues<ToolMap extends Record<string, Tool.Any>> = ToolMap extends unknown ? ToolMap[keyof ToolMap] : never;
221
+ type ToolMapValues<ToolMap extends Record<string, Tool$1.Any>> = ToolMap extends unknown ? ToolMap[keyof ToolMap] : never;
219
222
  /** All possible tools, including keys present in only one definition or binding branch. */
220
223
  type ToolUnion<AgentValue extends AnyDefinition | Any> = ToolMapValues<Tools<AgentValue>>;
221
224
  /** Instruction, tool-handler, and Schema services required before a Model is bound. */
222
- type DefinitionRequirements<DefinitionValue extends AnyDefinition> = DefinitionValue extends unknown ? EffectServices<InstructionEffect<DefinitionValue["instructions"], Input<DefinitionValue>>> | EffectServices<InputPromptEffect<DefinitionValue["inputPrompt"], Input<DefinitionValue>>> | Tool.HandlersFor<ApplicationTools<DefinitionValue>> | Tool.HandlerServices<ToolMapValues<ApplicationTools<DefinitionValue>>> | Tool.ParametersSchema<ToolUnion<DefinitionValue>>["EncodingServices"] | Tool.SuccessSchema<ToolUnion<DefinitionValue>>["DecodingServices"] | DefinitionValue["input"]["DecodingServices"] | DefinitionValue["input"]["EncodingServices"] | DefinitionValue["output"]["DecodingServices"] | DefinitionValue["output"]["EncodingServices"] | UpdatesSchema<DefinitionValue>["DecodingServices"] | UpdatesSchema<DefinitionValue>["EncodingServices"] | RunDispositionSchemaOf<DefinitionValue>["DecodingServices"] | RunDispositionSchemaOf<DefinitionValue>["EncodingServices"] : never;
225
+ type DefinitionRequirements<DefinitionValue extends AnyDefinition> = DefinitionValue extends unknown ? EffectServices<InstructionEffect<DefinitionValue["instructions"], Input<DefinitionValue>>> | EffectServices<InputPromptEffect<DefinitionValue["inputPrompt"], Input<DefinitionValue>>> | Tool$1.HandlersFor<ApplicationTools<DefinitionValue>> | Tool$1.HandlerServices<ToolMapValues<ApplicationTools<DefinitionValue>>> | Tool$1.ParametersSchema<ToolUnion<DefinitionValue>>["EncodingServices"] | Tool$1.SuccessSchema<ToolUnion<DefinitionValue>>["DecodingServices"] | DefinitionValue["input"]["DecodingServices"] | DefinitionValue["input"]["EncodingServices"] | DefinitionValue["output"]["DecodingServices"] | DefinitionValue["output"]["EncodingServices"] | UpdatesSchema<DefinitionValue>["DecodingServices"] | UpdatesSchema<DefinitionValue>["EncodingServices"] | RunDispositionSchemaOf<DefinitionValue>["DecodingServices"] | RunDispositionSchemaOf<DefinitionValue>["EncodingServices"] : never;
223
226
  /** Definition services plus native model services, or a binding's model Layer requirements. */
224
227
  type Requirements<AgentValue extends AnyDefinition | Any> = DefinitionRequirements<DefinitionOf<AgentValue>> | (AgentValue extends {
225
228
  readonly model: infer ModelValue;
226
229
  } ? ModelRequirements<ModelValue> : ModelServices);
227
- type DefinitionFailure<DefinitionValue extends AnyDefinition> = DefinitionValue extends unknown ? EffectError<InstructionEffect<DefinitionValue["instructions"], Input<DefinitionValue>>> | EffectError<InputPromptEffect<DefinitionValue["inputPrompt"], Input<DefinitionValue>>> | Tool.HandlerError<ToolUnion<DefinitionValue>> : never;
230
+ type DefinitionFailure<DefinitionValue extends AnyDefinition> = DefinitionValue extends unknown ? EffectError<InstructionEffect<DefinitionValue["instructions"], Input<DefinitionValue>>> | EffectError<InputPromptEffect<DefinitionValue["inputPrompt"], Input<DefinitionValue>>> | Tool$1.HandlerError<ToolUnion<DefinitionValue>> : never;
228
231
  /** Failures from every possible definition, preserving each branch's instruction input type. */
229
232
  type Failure<AgentValue extends AnyDefinition | Any> = DefinitionFailure<DefinitionOf<AgentValue>> | AiError.AiError | AgentInputError | AgentOutputError | RunDispositionFailure<AgentValue>;
230
233
  /** Validate an agent ID and return a shallowly frozen, model-agnostic definition. */
231
- declare function make<const Name extends string, InputSchema extends Schema.Top, OutputSchema extends Schema.Top, Instructions extends InstructionSource<InputSchema["Type"], unknown, unknown>, ToolkitValue extends Toolkit.Any, DispositionSchema extends Schema.Top, InputPromptValue extends InputPromptSource<InputSchema["Type"], unknown, unknown> | undefined, UpdatesSchema extends Schema.Top | undefined = undefined>(id: Name, options: DefinitionOptions<InputSchema, OutputSchema, Instructions, ToolkitValue, RunDispositionDeclaration<OutputSchema["Type"], DispositionSchema>, InputPromptValue, UpdatesSchema> & {
234
+ declare function make<const Name extends string, InputSchema extends Schema.Top, OutputSchema extends Schema.Top, Instructions extends InstructionSource<InputSchema["Type"], unknown, unknown>, ToolkitValue extends Toolkit$1.Any, DispositionSchema extends Schema.Top, InputPromptValue extends InputPromptSource<InputSchema["Type"], unknown, unknown> | undefined, UpdatesSchema extends Schema.Top | undefined = undefined>(id: Name, options: DefinitionOptions<InputSchema, OutputSchema, Instructions, ToolkitValue, RunDispositionDeclaration<OutputSchema["Type"], DispositionSchema>, InputPromptValue, UpdatesSchema> & {
232
235
  readonly runDisposition: RunDispositionDeclaration<OutputSchema["Type"], DispositionSchema>;
233
236
  readonly inputPrompt: InputPromptValue;
234
237
  }): Definition<InputSchema, OutputSchema, Instructions, UpdateToolkit<ToolkitValue, NoInfer<UpdatesSchema>>, RunDispositionDeclaration<OutputSchema["Type"], DispositionSchema>, InputPromptValue, NoInfer<UpdatesSchema>> & {
235
238
  readonly id: AgentId & Name;
236
239
  };
237
- declare function make<const Name extends string, InputSchema extends Schema.Top, OutputSchema extends Schema.Top, Instructions extends InstructionSource<InputSchema["Type"], unknown, unknown>, ToolkitValue extends Toolkit.Any, DispositionSchema extends Schema.Top, UpdatesSchema extends Schema.Top | undefined = undefined>(id: Name, options: DefinitionOptions<InputSchema, OutputSchema, Instructions, ToolkitValue, RunDispositionDeclaration<OutputSchema["Type"], DispositionSchema>, undefined, UpdatesSchema> & {
240
+ declare function make<const Name extends string, InputSchema extends Schema.Top, OutputSchema extends Schema.Top, Instructions extends InstructionSource<InputSchema["Type"], unknown, unknown>, ToolkitValue extends Toolkit$1.Any, DispositionSchema extends Schema.Top, UpdatesSchema extends Schema.Top | undefined = undefined>(id: Name, options: DefinitionOptions<InputSchema, OutputSchema, Instructions, ToolkitValue, RunDispositionDeclaration<OutputSchema["Type"], DispositionSchema>, undefined, UpdatesSchema> & {
238
241
  readonly runDisposition: RunDispositionDeclaration<OutputSchema["Type"], DispositionSchema>;
239
242
  readonly inputPrompt?: undefined;
240
243
  }): Definition<InputSchema, OutputSchema, Instructions, UpdateToolkit<ToolkitValue, NoInfer<UpdatesSchema>>, RunDispositionDeclaration<OutputSchema["Type"], DispositionSchema>, undefined, NoInfer<UpdatesSchema>> & {
241
244
  readonly id: AgentId & Name;
242
245
  };
243
- declare function make<const Name extends string, InputSchema extends Schema.Top, OutputSchema extends Schema.Top, Instructions extends InstructionSource<InputSchema["Type"], unknown, unknown>, ToolkitValue extends Toolkit.Any, InputPromptValue extends InputPromptSource<InputSchema["Type"], unknown, unknown> | undefined, UpdatesSchema extends Schema.Top | undefined = undefined>(id: Name, options: DefinitionOptions<InputSchema, OutputSchema, Instructions, ToolkitValue, undefined, InputPromptValue, UpdatesSchema> & {
246
+ declare function make<const Name extends string, InputSchema extends Schema.Top, OutputSchema extends Schema.Top, Instructions extends InstructionSource<InputSchema["Type"], unknown, unknown>, ToolkitValue extends Toolkit$1.Any, InputPromptValue extends InputPromptSource<InputSchema["Type"], unknown, unknown> | undefined, UpdatesSchema extends Schema.Top | undefined = undefined>(id: Name, options: DefinitionOptions<InputSchema, OutputSchema, Instructions, ToolkitValue, undefined, InputPromptValue, UpdatesSchema> & {
244
247
  readonly inputPrompt: InputPromptValue;
245
248
  readonly runDisposition?: undefined;
246
249
  }): Definition<InputSchema, OutputSchema, Instructions, UpdateToolkit<ToolkitValue, NoInfer<UpdatesSchema>>, undefined, InputPromptValue, NoInfer<UpdatesSchema>> & {
247
250
  readonly id: AgentId & Name;
248
251
  };
249
- declare function make<const Name extends string, InputSchema extends Schema.Top, OutputSchema extends Schema.Top, Instructions extends InstructionSource<InputSchema["Type"], unknown, unknown>, ToolkitValue extends Toolkit.Any, UpdatesSchema extends Schema.Top | undefined = undefined>(id: Name, options: DefinitionOptions<InputSchema, OutputSchema, Instructions, ToolkitValue, undefined, undefined, UpdatesSchema> & {
252
+ declare function make<const Name extends string, InputSchema extends Schema.Top, OutputSchema extends Schema.Top, Instructions extends InstructionSource<InputSchema["Type"], unknown, unknown>, ToolkitValue extends Toolkit$1.Any, UpdatesSchema extends Schema.Top | undefined = undefined>(id: Name, options: DefinitionOptions<InputSchema, OutputSchema, Instructions, ToolkitValue, undefined, undefined, UpdatesSchema> & {
250
253
  readonly inputPrompt?: undefined;
251
254
  readonly runDisposition?: undefined;
252
255
  }): Definition<InputSchema, OutputSchema, Instructions, UpdateToolkit<ToolkitValue, NoInfer<UpdatesSchema>>, undefined, undefined, NoInfer<UpdatesSchema>> & {
@@ -256,4 +259,4 @@ declare function make<const Name extends string, InputSchema extends Schema.Top,
256
259
  declare const withModel: <DefinitionValue extends AnyDefinition, ModelValue>(definition: DefinitionValue, model: NativeModel<ModelValue>) => Binding<DefinitionValue, ModelValue>;
257
260
  //#endregion
258
261
  export { ToolUnion as A, OutputSchema as C, RunDispositionFailure as D, RunDispositionDeclaration as E, isModelResolver as F, make as I, withModel as L, Update as M, UpdatesSchema as N, RunDispositionSchema as O, inspectTools as P, Output as S, RunDisposition as T, InstructionSource as _, CompletionFromToolDeclaration as a, Name as b, Definition as c, EncodedInput as d, Failure as f, InstructionResult as g, InputSchema as h, Binding as i, Tools as j, ToolInspection as k, DefinitionOptions as l, InputPromptSource as m, Any as n, CompletionProjectionInput as o, Input as p, AnyDefinition as r, CompletionToolDeclaration as s, Agent_d_exports as t, DefinitionRequirements as u, ModelResolver as v, Requirements as w, NativeModel as x, ModelServices as y };
259
- //# sourceMappingURL=Agent-ZfnNCQXs.d.mts.map
262
+ //# sourceMappingURL=Agent-D0fbFT2d.d.mts.map
@@ -1,5 +1,5 @@
1
- import { a as FailureDiagnostic_d_exports, r as Diagnostic } from "./FailureDiagnostic-CaAkzGHL.mjs";
2
- import { Schema } from "effect";
1
+ import { a as FailureDiagnostic_d_exports, r as Diagnostic } from "./FailureDiagnostic-DvHruCSJ.mjs";
2
+ import * as Schema from "effect/Schema";
3
3
  declare namespace AgentError_d_exports {
4
4
  export { AgentApprovalDenied, AgentApprovalPending, AgentError, AgentInputError, AgentInterrupted, AgentOutputError, AgentPolicyError, AgentRunDispositionError, AgentToolAuthorizationCheckError, AgentToolAuthorizationDenied, ContextBudgetError, ContextOverflowError, ModelProtocolError, PolicyLimit };
5
5
  }
@@ -114,4 +114,4 @@ declare const AgentError: Schema.Union<readonly [typeof AgentInputError, typeof
114
114
  type AgentError = typeof AgentError.Type;
115
115
  //#endregion
116
116
  export { AgentInputError as a, AgentPolicyError as c, AgentToolAuthorizationDenied as d, ContextBudgetError as f, PolicyLimit as h, AgentError_d_exports as i, AgentRunDispositionError as l, ModelProtocolError as m, AgentApprovalPending as n, AgentInterrupted as o, ContextOverflowError as p, AgentError as r, AgentOutputError as s, AgentApprovalDenied as t, AgentToolAuthorizationCheckError as u };
117
- //# sourceMappingURL=AgentError-Bn1ytXRD.d.mts.map
117
+ //# sourceMappingURL=AgentError-BMqPzIVt.d.mts.map
@@ -1,4 +1,4 @@
1
- import { n as ToolResultBounds } from "./ToolResult-BKdqWRff.mjs";
1
+ import { n as ToolResultBounds } from "./ToolResult-DqyEhJLF.mjs";
2
2
  import * as Schema from "effect/Schema";
3
3
  import * as Duration from "effect/Duration";
4
4
  declare namespace AgentPolicy_d_exports {
@@ -109,4 +109,4 @@ declare class AgentPolicy extends AgentPolicy_base {
109
109
  }
110
110
  //#endregion
111
111
  export { CompactionPolicyInput as a, CompactionPolicy as i, AgentPolicyInput as n, AgentPolicy_d_exports as r, AgentPolicy as t };
112
- //# sourceMappingURL=AgentPolicy-B4oH8TbG.d.mts.map
112
+ //# sourceMappingURL=AgentPolicy-CclAEpHn.d.mts.map
@@ -1,24 +1,38 @@
1
1
  import { d as ToolCallId, r as DelegationId, s as RunId, t as AgentId, u as ThreadId } from "./Identifiers-CN2s30fF.mjs";
2
- import { i as SubagentBudgetReservation, l as SubagentGrant, u as SubagentParentLink } from "./SubagentContract-tyN9v-Jv.mjs";
3
- import { i as UpdateError, n as Emitter } from "./AgentUpdates-DMJ-_xow.mjs";
4
- import { c as RunUsageReport, s as RunTotals } from "./Usage-BNjPR7Zr.mjs";
5
- import { u as RunEvent } from "./RunEvent-D0aepYwN.mjs";
6
- import { n as ThreadHistoryError, t as ThreadHistory } from "./ThreadHistory-FD-o4TsR.mjs";
7
- import { n as CurrentToolCatalog } from "./ToolExposure-UCN12eCd.mjs";
8
- import { s as ToolBroker } from "./ToolBroker-DWs4tZra.mjs";
9
- import { a as AgentInputError, c as AgentPolicyError, d as AgentToolAuthorizationDenied, f as ContextBudgetError, m as ModelProtocolError, n as AgentApprovalPending, p as ContextOverflowError, s as AgentOutputError, t as AgentApprovalDenied, u as AgentToolAuthorizationCheckError } from "./AgentError-Bn1ytXRD.mjs";
10
- import { t as AgentPolicy } from "./AgentPolicy-B4oH8TbG.mjs";
11
- import { A as ToolUnion, C as OutputSchema, D as RunDispositionFailure, E as RunDispositionDeclaration, N as UpdatesSchema, O as RunDispositionSchema, S as Output, _ as InstructionSource, a as CompletionFromToolDeclaration, c as Definition, d as EncodedInput, f as Failure, m as InputPromptSource, n as Any, r as AnyDefinition, s as CompletionToolDeclaration, t as Agent_d_exports, w as Requirements } from "./Agent-ZfnNCQXs.mjs";
12
- import { a as WorkerBudgetScope } from "./Worker-XEBYxRQv.mjs";
13
- import { a as ContextWindow } from "./ContextWindow-DRQ5Mbm2.mjs";
14
- import { n as CompactionError } from "./ContextCompactor-BoKQOjr5.mjs";
15
- import { t as DurableStep } from "./DurableStep-Cry_iol4.mjs";
16
- import { B as RunSubagentChildIdentity, H as RunSubagentEstablishRequest, M as RunOptions, S as RunContextPreparationError, W as RunSubagentJoinRequest, i as ChildEstablishStatus, l as ModelUsageAccounting, t as AgentUpdateAcceptance, x as RunContextPreparation } from "./RunOptions-BHmBa05n.mjs";
17
- import { t as MessagingHost } from "./MessagingHost-DXwWnrMh.mjs";
18
- import { o as SubagentHost } from "./SubagentHost-VTyf_wEF.mjs";
19
- import { t as RunEventSink } from "./RunEventSink-9CUdI9Ar.mjs";
20
- import { AiError, LanguageModel, Model, Prompt, Tool, Toolkit } from "effect/unstable/ai";
21
- import { Cause, Context, Effect, Layer, Option, Schema, Scope, Stream, Tracer } from "effect";
2
+ import { i as SubagentBudgetReservation, l as SubagentGrant, u as SubagentParentLink } from "./SubagentContract-DdPzxYQj.mjs";
3
+ import { i as UpdateError, n as Emitter } from "./AgentUpdates-DksV4D0A.mjs";
4
+ import { c as RunUsageReport, s as RunTotals } from "./Usage-CzZJ6A2n.mjs";
5
+ import { u as RunEvent } from "./RunEvent-B3CRIqIC.mjs";
6
+ import { n as ThreadHistoryError, t as ThreadHistory } from "./ThreadHistory-DQ-IC1hU.mjs";
7
+ import { n as CurrentToolCatalog } from "./ToolExposure-BsaSH15e.mjs";
8
+ import { s as ToolBroker } from "./ToolBroker-DXwv2aUT.mjs";
9
+ import { a as AgentInputError, c as AgentPolicyError, d as AgentToolAuthorizationDenied, f as ContextBudgetError, m as ModelProtocolError, n as AgentApprovalPending, p as ContextOverflowError, s as AgentOutputError, t as AgentApprovalDenied, u as AgentToolAuthorizationCheckError } from "./AgentError-BMqPzIVt.mjs";
10
+ import { t as AgentPolicy } from "./AgentPolicy-CclAEpHn.mjs";
11
+ import { A as ToolUnion, C as OutputSchema, D as RunDispositionFailure, E as RunDispositionDeclaration, N as UpdatesSchema, O as RunDispositionSchema, S as Output, _ as InstructionSource, a as CompletionFromToolDeclaration, c as Definition, d as EncodedInput, f as Failure, m as InputPromptSource, n as Any, r as AnyDefinition, s as CompletionToolDeclaration, t as Agent_d_exports, w as Requirements } from "./Agent-D0fbFT2d.mjs";
12
+ import { a as WorkerBudgetScope } from "./Worker-DH5SAVIK.mjs";
13
+ import { a as ContextWindow } from "./ContextWindow-aGZOPIPq.mjs";
14
+ import { n as CompactionError } from "./ContextCompactor-DLpX-HUG.mjs";
15
+ import { t as DurableStep } from "./DurableStep-CTqx6DOV.mjs";
16
+ import { B as RunSubagentChildIdentity, H as RunSubagentEstablishRequest, M as RunOptions, S as RunContextPreparationError, W as RunSubagentJoinRequest, i as ChildEstablishStatus, l as ModelUsageAccounting, t as AgentUpdateAcceptance, x as RunContextPreparation } from "./RunOptions-CkSZSuIh.mjs";
17
+ import { t as MessagingHost } from "./MessagingHost-Bfbfkx6f.mjs";
18
+ import { o as SubagentHost } from "./SubagentHost-CXFlEpj0.mjs";
19
+ import { t as RunEventSink } from "./RunEventSink-sDXDkrAl.mjs";
20
+ import * as Schema from "effect/Schema";
21
+ import * as Tool$1 from "effect/unstable/ai/Tool";
22
+ import * as Toolkit$1 from "effect/unstable/ai/Toolkit";
23
+ import "effect/unstable/ai/AiError";
24
+ import * as Context from "effect/Context";
25
+ import * as Effect from "effect/Effect";
26
+ import * as Option from "effect/Option";
27
+ import * as Stream from "effect/Stream";
28
+ import * as Cause from "effect/Cause";
29
+ import * as Layer from "effect/Layer";
30
+ import * as Scope from "effect/Scope";
31
+ import "effect/Tracer";
32
+ import * as LanguageModel$1 from "effect/unstable/ai/LanguageModel";
33
+ import * as Model$1 from "effect/unstable/ai/Model";
34
+ import * as Prompt$1 from "effect/unstable/ai/Prompt";
35
+ import { Tool } from "effect/unstable/ai";
22
36
  //#region src/engine/internal/tool-telemetry.d.ts
23
37
  interface ToolSpanTelemetryService {
24
38
  /** Measure one Tool handler attempt while isolating every host span-lifecycle defect. */
@@ -39,8 +53,8 @@ declare class ToolSpanTelemetry extends ToolSpanTelemetry_base {
39
53
  }
40
54
  //#endregion
41
55
  //#region src/engine/internal/agent-runtime.d.ts
42
- type RuntimeProgram<InputSchema extends Schema.Top, OutputSchema extends Schema.Top, Instructions, Tools extends Record<string, Tool.Any>, InstructionError = InstructionErrorOf<Instructions, InputSchema["Type"]>, InstructionRequirements = InstructionRequirementsOf<Instructions, InputSchema["Type"]>, RunDispositionValue extends RunDispositionDeclaration<OutputSchema["Type"], Schema.Top> | undefined = undefined, InputPromptValue extends InputPromptSource<InputSchema["Type"], unknown, unknown> | undefined = undefined, UpdatesSchema extends Schema.Top | undefined = undefined> = {
43
- readonly definition: Definition<InputSchema, OutputSchema, Instructions, Toolkit.Toolkit<Tools>, RunDispositionValue, InputPromptValue, UpdatesSchema> & {
56
+ type RuntimeProgram<InputSchema extends Schema.Top, OutputSchema extends Schema.Top, Instructions, Tools extends Record<string, Tool$1.Any>, InstructionError = InstructionErrorOf<Instructions, InputSchema["Type"]>, InstructionRequirements = InstructionRequirementsOf<Instructions, InputSchema["Type"]>, RunDispositionValue extends RunDispositionDeclaration<OutputSchema["Type"], Schema.Top> | undefined = undefined, InputPromptValue extends InputPromptSource<InputSchema["Type"], unknown, unknown> | undefined = undefined, UpdatesSchema extends Schema.Top | undefined = undefined> = {
57
+ readonly definition: Definition<InputSchema, OutputSchema, Instructions, Toolkit$1.Toolkit<Tools>, RunDispositionValue, InputPromptValue, UpdatesSchema> & {
44
58
  readonly instructions: InstructionSource<InputSchema["Type"], NoInfer<InstructionError>, NoInfer<InstructionRequirements>>;
45
59
  readonly inputPrompt?: InputPromptValue | undefined;
46
60
  };
@@ -51,8 +65,8 @@ type RuntimeProgram<InputSchema extends Schema.Top, OutputSchema extends Schema.
51
65
  * native model Layer whose requirements stay visible. The Layer must provide
52
66
  * LanguageModel, ProviderName, and ModelName, including after requirement capture.
53
67
  */
54
- type RuntimeBinding<InputSchema extends Schema.Top, OutputSchema extends Schema.Top, Instructions, Tools extends Record<string, Tool.Any>, _Provider, ModelProvides, ModelRequires, InstructionError = InstructionErrorOf<Instructions, InputSchema["Type"]>, InstructionRequirements = InstructionRequirementsOf<Instructions, InputSchema["Type"]>, RunDispositionValue extends RunDispositionDeclaration<OutputSchema["Type"], Schema.Top> | undefined = undefined, InputPromptValue extends InputPromptSource<InputSchema["Type"], unknown, unknown> | undefined = undefined, UpdatesSchema extends Schema.Top | undefined = undefined> = RuntimeProgram<InputSchema, OutputSchema, Instructions, Tools, InstructionError, InstructionRequirements, RunDispositionValue, InputPromptValue, UpdatesSchema> & {
55
- readonly model: Layer.Layer<LanguageModel.LanguageModel | Model.ProviderName | Model.ModelName | ModelProvides, never, ModelRequires>;
68
+ type RuntimeBinding<InputSchema extends Schema.Top, OutputSchema extends Schema.Top, Instructions, Tools extends Record<string, Tool$1.Any>, _Provider, ModelProvides, ModelRequires, InstructionError = InstructionErrorOf<Instructions, InputSchema["Type"]>, InstructionRequirements = InstructionRequirementsOf<Instructions, InputSchema["Type"]>, RunDispositionValue extends RunDispositionDeclaration<OutputSchema["Type"], Schema.Top> | undefined = undefined, InputPromptValue extends InputPromptSource<InputSchema["Type"], unknown, unknown> | undefined = undefined, UpdatesSchema extends Schema.Top | undefined = undefined> = RuntimeProgram<InputSchema, OutputSchema, Instructions, Tools, InstructionError, InstructionRequirements, RunDispositionValue, InputPromptValue, UpdatesSchema> & {
69
+ readonly model: Layer.Layer<LanguageModel$1.LanguageModel | Model$1.ProviderName | Model$1.ModelName | ModelProvides, never, ModelRequires>;
56
70
  };
57
71
  type InstructionResultOf<Instructions, Input> = Instructions extends ((input: Input) => infer Result) ? Result : Instructions;
58
72
  type InstructionErrorOf<Instructions, Input> = InstructionResultOf<Instructions, Input> extends Effect.Effect<infer _Success, infer Error, infer _Requirements> ? Error : never;
@@ -89,7 +103,7 @@ type AgentRuntimeFailure<AgentValue extends AnyDefinition | Any, HookError = nev
89
103
  */
90
104
  type EngineProvidedToolServices = Emitter | AgentSpawner | RunEventSink | DurableStep | SubagentDurability | SubagentHost | MessagingHost | ToolBroker | ToolSpanTelemetry | ContextWindow | CurrentToolCatalog;
91
105
  /** Schema services needed to reconstruct a completion Tool's canonical Agent output. */
92
- type AgentCompletionProjectionRequirements<AgentValue extends AnyDefinition | Any> = OutputSchema<AgentValue>["DecodingServices"] | OutputSchema<AgentValue>["EncodingServices"] | Tool.ParametersSchema<ToolUnion<AgentValue>>["DecodingServices"] | Tool.SuccessSchema<ToolUnion<AgentValue>>["DecodingServices"];
106
+ type AgentCompletionProjectionRequirements<AgentValue extends AnyDefinition | Any> = OutputSchema<AgentValue>["DecodingServices"] | OutputSchema<AgentValue>["EncodingServices"] | Tool$1.ParametersSchema<ToolUnion<AgentValue>>["DecodingServices"] | Tool$1.SuccessSchema<ToolUnion<AgentValue>>["DecodingServices"];
93
107
  /**
94
108
  * Inferred agent services plus the runtime's identity and Thread history authorities.
95
109
  * Engine-provided Tool handler services are excluded because the interpreter
@@ -99,9 +113,9 @@ type AgentCompletionProjectionRequirements<AgentValue extends AnyDefinition | An
99
113
  * handler boundary, `run`/`start` re-decode terminal output, and durable recovery
100
114
  * re-decodes canonical completion Tool parameters/results.
101
115
  */
102
- type AgentRuntimeRequirements<AgentValue extends AnyDefinition | Any, HookRequirements = never, InstructionRequirements = never> = Exclude<Requirements<AgentValue>, EngineProvidedToolServices> | Tool.ParametersSchema<ToolUnion<AgentValue>>["EncodingServices"] | AgentCompletionProjectionRequirements<AgentValue> | OutputSchema<AgentValue>["DecodingServices"] | ThreadHistory | HookRequirements | InstructionRequirements;
116
+ type AgentRuntimeRequirements<AgentValue extends AnyDefinition | Any, HookRequirements = never, InstructionRequirements = never> = Exclude<Requirements<AgentValue>, EngineProvidedToolServices> | Tool$1.ParametersSchema<ToolUnion<AgentValue>>["EncodingServices"] | AgentCompletionProjectionRequirements<AgentValue> | OutputSchema<AgentValue>["DecodingServices"] | ThreadHistory | HookRequirements | InstructionRequirements;
103
117
  /** Render decoded Agent input for model visibility, preserving the legacy JSON default. */
104
- declare function renderInputPrompt<Input, InputPromptValue extends InputPromptSource<NoInfer<Input>, unknown, unknown> | undefined>(inputPrompt: InputPromptValue, decodedInput: Input, encodedInput: unknown): Effect.Effect<Prompt.RawInput, AgentInputError | InputPromptErrorOf<InputPromptValue, Input>, InputPromptRequirementsOf<InputPromptValue, Input>>;
118
+ declare function renderInputPrompt<Input, InputPromptValue extends InputPromptSource<NoInfer<Input>, unknown, unknown> | undefined>(inputPrompt: InputPromptValue, decodedInput: Input, encodedInput: unknown): Effect.Effect<Prompt$1.RawInput, AgentInputError | InputPromptErrorOf<InputPromptValue, Input>, InputPromptRequirementsOf<InputPromptValue, Input>>;
105
119
  declare const decodeFinalOutput: <AgentValue extends Any>(agent: AgentValue, text: string) => Effect.Effect<{
106
120
  readonly encoded: Schema.Json;
107
121
  readonly decoded: Output<AgentValue>;
@@ -145,7 +159,7 @@ type ExecutableDefinition = AnyDefinition & {
145
159
  };
146
160
  type ExecutableAgent = ExecutableDefinition | {
147
161
  readonly definition: ExecutableDefinition;
148
- readonly model: Layer.Layer<LanguageModel.LanguageModel | Model.ProviderName | Model.ModelName, never, unknown>;
162
+ readonly model: Layer.Layer<LanguageModel$1.LanguageModel | Model$1.ProviderName | Model$1.ModelName, never, unknown>;
149
163
  };
150
164
  /** Decode external input before instructions or model execution. */
151
165
  declare const streamUnknown: <A extends ExecutableAgent, H = never, R = never>(agent: A, input: unknown, options?: RunOptions<H, R>) => Stream.Stream<RunEvent, AgentRuntimeFailure<A, H>, AgentRuntimeRequirements<A, R>>;
@@ -304,7 +318,7 @@ interface AgentSpawnerService {
304
318
  readonly budget?: SubagentBudgetReservation;
305
319
  readonly budgetScope?: WorkerBudgetScope;
306
320
  readonly parent: AgentSpawnerParent;
307
- readonly spawn: <InputSchema extends Schema.Top, OutputSchema extends Schema.Top, Instructions, Tools extends Record<string, Tool.Any>, Provider, ModelProvides, ModelRequires, HookError = never, HookRequirements = never, InstructionError = InstructionErrorOf<Instructions, InputSchema["Type"]>, InstructionRequirements = InstructionRequirementsOf<Instructions, InputSchema["Type"]>, RunDispositionValue extends RunDispositionDeclaration<OutputSchema["Type"], Schema.Top> | undefined = undefined, InputPromptValue extends InputPromptSource<InputSchema["Type"], unknown, unknown> | undefined = undefined, UpdatesSchema extends Schema.Top | undefined = undefined>(binding: RuntimeBinding<InputSchema, OutputSchema, Instructions, Tools, Provider, ModelProvides, ModelRequires, InstructionError, InstructionRequirements, RunDispositionValue, InputPromptValue, UpdatesSchema>, input: unknown, delegation: SpawnDelegation, options?: SpawnRunOptions<HookError, HookRequirements>) => Effect.Effect<SpawnedChildRun<OutputSchema["Type"], AgentRuntimeFailure<RuntimeBinding<InputSchema, OutputSchema, Instructions, Tools, Provider, ModelProvides, ModelRequires, InstructionError, InstructionRequirements, RunDispositionValue, InputPromptValue, UpdatesSchema>, HookError, InstructionError>>, never, Scope.Scope | Exclude<AgentRuntimeRequirements<RuntimeBinding<InputSchema, OutputSchema, Instructions, Tools, Provider, ModelProvides, ModelRequires, InstructionError, InstructionRequirements, RunDispositionValue, InputPromptValue, UpdatesSchema>, HookRequirements, InstructionRequirements>, ThreadHistory | RunContextPreparation>>;
321
+ readonly spawn: <InputSchema extends Schema.Top, OutputSchema extends Schema.Top, Instructions, Tools extends Record<string, Tool$1.Any>, Provider, ModelProvides, ModelRequires, HookError = never, HookRequirements = never, InstructionError = InstructionErrorOf<Instructions, InputSchema["Type"]>, InstructionRequirements = InstructionRequirementsOf<Instructions, InputSchema["Type"]>, RunDispositionValue extends RunDispositionDeclaration<OutputSchema["Type"], Schema.Top> | undefined = undefined, InputPromptValue extends InputPromptSource<InputSchema["Type"], unknown, unknown> | undefined = undefined, UpdatesSchema extends Schema.Top | undefined = undefined>(binding: RuntimeBinding<InputSchema, OutputSchema, Instructions, Tools, Provider, ModelProvides, ModelRequires, InstructionError, InstructionRequirements, RunDispositionValue, InputPromptValue, UpdatesSchema>, input: unknown, delegation: SpawnDelegation, options?: SpawnRunOptions<HookError, HookRequirements>) => Effect.Effect<SpawnedChildRun<OutputSchema["Type"], AgentRuntimeFailure<RuntimeBinding<InputSchema, OutputSchema, Instructions, Tools, Provider, ModelProvides, ModelRequires, InstructionError, InstructionRequirements, RunDispositionValue, InputPromptValue, UpdatesSchema>, HookError, InstructionError>>, never, Scope.Scope | Exclude<AgentRuntimeRequirements<RuntimeBinding<InputSchema, OutputSchema, Instructions, Tools, Provider, ModelProvides, ModelRequires, InstructionError, InstructionRequirements, RunDispositionValue, InputPromptValue, UpdatesSchema>, HookRequirements, InstructionRequirements>, ThreadHistory | RunContextPreparation>>;
308
322
  }
309
323
  declare const AgentSpawner_base: Context.ServiceClass<AgentSpawner, "@effect-agent/engine/AgentSpawner", AgentSpawnerService>;
310
324
  /**
@@ -343,4 +357,4 @@ declare namespace AgentRuntime_d_exports {
343
357
  }
344
358
  //#endregion
345
359
  export { start as A, decodeFinalOutput as C, renderInputPrompt as D, projectCompletionOutput as E, withTerminalDefectEvent as F, stream as M, streamUnknown as N, run as O, streamWithUsageAccountingUnknown as P, ToolCallWaiting as S, projectCompletionFromToolOutput as T, SubagentDurability as _, AgentResultSchema as a, SubagentDurabilityError as b, AgentSpawner as c, DetachedRun as d, EngineProvidedToolServices as f, SpawnedChildRun as g, SpawnRunOptions as h, AgentResult as i, startUnknown as j, runUnknown as k, AgentSpawnerParent as l, SpawnDelegation as m, AgentChildPending as n, AgentRuntimeFailure as o, RuntimeBinding as p, AgentCompletionProjectionRequirements as r, AgentRuntimeRequirements as s, AgentRuntime_d_exports as t, AgentSpawnerService as u, SubagentDurabilityDurable as v, encodeRunDisposition as w, SubagentDurabilityService as x, SubagentDurabilityEphemeral as y };
346
- //# sourceMappingURL=AgentRuntime-D1MmB_0z.d.mts.map
360
+ //# sourceMappingURL=AgentRuntime-BM36roNi.d.mts.map