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,20 +1,20 @@
1
1
  import { d as ToolCallId, r as DelegationId, t as AgentId, u as ThreadId } from "./Identifiers-CN2s30fF.mjs";
2
- import { c as SubagentExecutionFailureClassification, d as SubagentReservationAmounts, l as SubagentGrant, o as SubagentDelegationCaps, s as SubagentExecutionFailure } from "./SubagentContract-tyN9v-Jv.mjs";
2
+ import { c as SubagentExecutionFailureClassification, d as SubagentReservationAmounts, l as SubagentGrant, o as SubagentDelegationCaps, s as SubagentExecutionFailure } from "./SubagentContract-DdPzxYQj.mjs";
3
3
  import { SubagentBudgetExhausted, SubagentReservations } from "./capabilities/SubagentReservations.mjs";
4
- import { a as Receipt, n as JoinedToHost, t as IdempotencyKey } from "./Receipt-BAHyigAF.mjs";
5
- import { r as Update } from "./AgentUpdates-DMJ-_xow.mjs";
6
- import { s as RunTotals } from "./Usage-BNjPR7Zr.mjs";
7
- import { t as ThreadHistory } from "./ThreadHistory-FD-o4TsR.mjs";
8
- import { a as FailureDiagnostic_d_exports, r as Diagnostic } from "./FailureDiagnostic-CaAkzGHL.mjs";
9
- import { E as RunDispositionDeclaration, _ as InstructionSource, c as Definition, m as InputPromptSource, r as AnyDefinition, y as ModelServices } from "./Agent-ZfnNCQXs.mjs";
10
- import { a as WorkerBudgetScope, c as WorkerError, f as WorkerRef, o as WorkerCompletion, p as WorkerReport } from "./Worker-XEBYxRQv.mjs";
11
- import { V as RunSubagentDigests, x as RunContextPreparation } from "./RunOptions-BHmBa05n.mjs";
12
- import { c as MessageRef, l as MessageStatus } from "./Messaging-7VXQnWI3.mjs";
13
- import { f as WorkerReporting, o as SubagentHost } from "./SubagentHost-VTyf_wEF.mjs";
14
- import { S as ToolCallWaiting, _ as SubagentDurability, b as SubagentDurabilityError, c as AgentSpawner, h as SpawnRunOptions, l as AgentSpawnerParent, o as AgentRuntimeFailure, p as RuntimeBinding, s as AgentRuntimeRequirements } from "./AgentRuntime-D1MmB_0z.mjs";
15
- import { t as RunEventSink } from "./RunEventSink-9CUdI9Ar.mjs";
16
- import { Tool, Toolkit } from "effect/unstable/ai";
4
+ import { a as Receipt, n as JoinedToHost, t as IdempotencyKey } from "./Receipt-BkM21Qiu.mjs";
5
+ import { r as Update } from "./AgentUpdates-DksV4D0A.mjs";
6
+ import { s as RunTotals } from "./Usage-CzZJ6A2n.mjs";
7
+ import { t as ThreadHistory } from "./ThreadHistory-DQ-IC1hU.mjs";
8
+ import { a as FailureDiagnostic_d_exports, r as Diagnostic } from "./FailureDiagnostic-DvHruCSJ.mjs";
9
+ import { E as RunDispositionDeclaration, _ as InstructionSource, c as Definition, m as InputPromptSource, r as AnyDefinition, y as ModelServices } from "./Agent-D0fbFT2d.mjs";
10
+ import { a as WorkerBudgetScope, c as WorkerError, f as WorkerRef, o as WorkerCompletion, p as WorkerReport } from "./Worker-DH5SAVIK.mjs";
11
+ import { V as RunSubagentDigests, x as RunContextPreparation } from "./RunOptions-CkSZSuIh.mjs";
12
+ import { c as MessageRef, l as MessageStatus } from "./Messaging-DF_IWnxV.mjs";
13
+ import { f as WorkerReporting, o as SubagentHost } from "./SubagentHost-CXFlEpj0.mjs";
14
+ import { S as ToolCallWaiting, _ as SubagentDurability, b as SubagentDurabilityError, c as AgentSpawner, h as SpawnRunOptions, l as AgentSpawnerParent, o as AgentRuntimeFailure, p as RuntimeBinding, s as AgentRuntimeRequirements } from "./AgentRuntime-BM36roNi.mjs";
15
+ import { t as RunEventSink } from "./RunEventSink-sDXDkrAl.mjs";
17
16
  import { Crypto, Duration, Effect, Layer, Schema, Scope, Stream } from "effect";
17
+ import { Tool, Toolkit } from "effect/unstable/ai";
18
18
  //#region src/capabilities/internal/subagent-contract.d.ts
19
19
  declare const SubagentPolicyFields: Schema.Struct<{
20
20
  /** Total invocation slots, including reserved descendants, available through this delegation budget. */
@@ -1647,4 +1647,4 @@ declare function background<const Name extends string, Input extends Schema.Top,
1647
1647
  declare function background<const Name extends string, Input extends Schema.Top, Output extends Schema.Top, Parameters extends Schema.Top, Success extends Schema.Top, Failure extends Schema.Top, Prepare, Project, const Selected extends BackgroundOptions>(declaration: Declaration<Name, Input, Output, Parameters, Success, Failure, Prepare, Project>, selected: Selected): ReturnType<typeof background$1<Name, Input, Output, Parameters, Success, Failure, Prepare, Project, Selected>>;
1648
1648
  //#endregion
1649
1649
  export { list as A, BackgroundTools as C, cancel as D, awaitWorker as E, SubagentPolicyInput as F, SubagentPrestartDenied as I, SubagentProjectionFailure as L, start as M, stop as N, followUp as O, SubagentPolicy as P, delegationAllocationFromPolicy as R, BackgroundOptions as S, WorkerObservation as T, SubagentTools as _, SubagentDelegation as a, layer as b, SubagentFailureMode as c, SubagentResult as d, SubagentResultContext as f, SubagentToolFailure as g, SubagentTool as h, SubagentDefineOptions as i, observe as j, inspect as k, SubagentLayerRequirements as l, SubagentRuntimeOptions as m, SubagentContainedFailure as n, SubagentDurableAccounting as o, SubagentReturnModeFailure as p, SubagentDeclarationOptions as r, SubagentDurableOptions as s, SubagentChildRunFailure as t, SubagentPrepareContext as u, Subagent_d_exports as v, Worker as w, make as x, background as y, delegationCapsFromPolicy as z };
1650
- //# sourceMappingURL=Subagent-D59om8SR.d.mts.map
1650
+ //# sourceMappingURL=Subagent-t3pJDZMN.d.mts.map
@@ -1,4 +1,5 @@
1
- import { Context, Schema } from "effect";
1
+ import * as Schema from "effect/Schema";
2
+ import * as Context from "effect/Context";
2
3
  declare namespace SubagentContract_d_exports {
3
4
  export { BackgroundSpawnTool, DelegationDepth, DelegationTool, SubagentBudgetReservation, SubagentDelegationCaps, SubagentExecutionFailure, SubagentExecutionFailureClassification, SubagentGrant, SubagentParentLink, SubagentReservationAmounts, ToolExecutionKind, WorkerOperationTool, getToolExecutionKind, isSubagentToolAllowed, maxErrorTagLength, narrowSubagentGrant };
4
5
  }
@@ -109,4 +110,4 @@ declare const SubagentExecutionFailure_base: Schema.Class<SubagentExecutionFailu
109
110
  declare class SubagentExecutionFailure extends SubagentExecutionFailure_base {}
110
111
  //#endregion
111
112
  export { narrowSubagentGrant as _, SubagentContract_d_exports as a, SubagentExecutionFailureClassification as c, SubagentReservationAmounts as d, ToolExecutionKind as f, maxErrorTagLength as g, isSubagentToolAllowed as h, SubagentBudgetReservation as i, SubagentGrant as l, getToolExecutionKind as m, DelegationDepth as n, SubagentDelegationCaps as o, WorkerOperationTool as p, DelegationTool as r, SubagentExecutionFailure as s, BackgroundSpawnTool as t, SubagentParentLink as u };
112
- //# sourceMappingURL=SubagentContract-tyN9v-Jv.d.mts.map
113
+ //# sourceMappingURL=SubagentContract-DdPzxYQj.d.mts.map
@@ -1,13 +1,16 @@
1
1
  import { c as SettlementId, r as DelegationId, s as RunId, u as ThreadId } from "./Identifiers-CN2s30fF.mjs";
2
- import { i as SubagentBudgetReservation } from "./SubagentContract-tyN9v-Jv.mjs";
3
- import { a as Receipt, n as JoinedToHost, t as IdempotencyKey } from "./Receipt-BAHyigAF.mjs";
4
- import { r as Update } from "./AgentUpdates-DMJ-_xow.mjs";
5
- import { a as FailureDiagnostic_d_exports, i as Failure } from "./FailureDiagnostic-CaAkzGHL.mjs";
6
- import { t as AgentPolicy } from "./AgentPolicy-B4oH8TbG.mjs";
7
- import { r as AnyDefinition, t as Agent_d_exports } from "./Agent-ZfnNCQXs.mjs";
8
- import { _ as WorkerStop, a as WorkerBudgetScope, c as WorkerError, d as WorkerPage, f as WorkerRef, g as WorkerStarted, h as WorkerSource, l as WorkerHistoryEntry, o as WorkerCompletion, s as WorkerContext, v as WorkerStopped, y as WorkerSummary } from "./Worker-XEBYxRQv.mjs";
9
- import { c as MessageRef, l as MessageStatus } from "./Messaging-7VXQnWI3.mjs";
10
- import { Context, Effect, Option, Schema, Stream } from "effect";
2
+ import { i as SubagentBudgetReservation } from "./SubagentContract-DdPzxYQj.mjs";
3
+ import { a as Receipt, n as JoinedToHost, t as IdempotencyKey } from "./Receipt-BkM21Qiu.mjs";
4
+ import { r as Update } from "./AgentUpdates-DksV4D0A.mjs";
5
+ import { a as FailureDiagnostic_d_exports, i as Failure } from "./FailureDiagnostic-DvHruCSJ.mjs";
6
+ import { t as AgentPolicy } from "./AgentPolicy-CclAEpHn.mjs";
7
+ import { r as AnyDefinition, t as Agent_d_exports } from "./Agent-D0fbFT2d.mjs";
8
+ import { _ as WorkerStop, a as WorkerBudgetScope, c as WorkerError, d as WorkerPage, f as WorkerRef, g as WorkerStarted, h as WorkerSource, l as WorkerHistoryEntry, o as WorkerCompletion, s as WorkerContext, v as WorkerStopped, y as WorkerSummary } from "./Worker-DH5SAVIK.mjs";
9
+ import { c as MessageRef, l as MessageStatus } from "./Messaging-DF_IWnxV.mjs";
10
+ import * as Schema$1 from "effect/Schema";
11
+ import * as Context$1 from "effect/Context";
12
+ import * as Stream$1 from "effect/Stream";
13
+ import { Effect, Option } from "effect";
11
14
  declare namespace SubagentHost_d_exports {
12
15
  export { BackgroundReporting, DeferredFollowUpWorkerRequest, DeferredStartWorkerRequest, FollowUpWorkerRequest, StartWorkerRequest, SubagentHost, WorkerMessageRequest, WorkerObservation, WorkerReceiptRequest, WorkerReportPreparationFailure, WorkerReporting, WorkerRunReport };
13
16
  }
@@ -93,8 +96,8 @@ interface WorkerRunReport {
93
96
  readonly runId: RunId;
94
97
  };
95
98
  }
96
- declare const WorkerReportPreparationFailure_base: Schema.Class<WorkerReportPreparationFailure, Schema.TaggedStruct<"WorkerReportPreparationFailure", {
97
- readonly stage: Schema.Literals<readonly ["projection", "input", "preparation"]>;
99
+ declare const WorkerReportPreparationFailure_base: Schema$1.Class<WorkerReportPreparationFailure, Schema$1.TaggedStruct<"WorkerReportPreparationFailure", {
100
+ readonly stage: Schema$1.Literals<readonly ["projection", "input", "preparation"]>;
98
101
  }>, import("effect/Cause").YieldableError>;
99
102
  /** A bounded projection failure; raw application errors never enter durable report records. */
100
103
  declare class WorkerReportPreparationFailure extends WorkerReportPreparationFailure_base {}
@@ -115,8 +118,8 @@ interface WorkerReporting<E = never, R = never> {
115
118
  }, E | WorkerReportPreparationFailure, R>;
116
119
  }
117
120
  /** Descriptor carried by background tools; registration discovers it without an app handoff. */
118
- declare const BackgroundReporting: Context.Reference<WorkerReporting<WorkerReportPreparationFailure, never> | undefined>;
119
- declare const SubagentHost_base: Context.ServiceClass<SubagentHost, "@effect-agent/engine/SubagentHost", {
121
+ declare const BackgroundReporting: Context$1.Reference<WorkerReporting<WorkerReportPreparationFailure, never> | undefined>;
122
+ declare const SubagentHost_base: Context$1.ServiceClass<SubagentHost, "@effect-agent/engine/SubagentHost", {
120
123
  readonly context: Effect.Effect<WorkerContext, WorkerError>;
121
124
  /** Resolve prepared input through host authority; None retains legacy target inheritance. */
122
125
  readonly resolveTargetPolicy: (request: {
@@ -139,7 +142,7 @@ declare const SubagentHost_base: Context.ServiceClass<SubagentHost, "@effect-age
139
142
  readonly worker: WorkerRef;
140
143
  readonly target: AnyDefinition;
141
144
  readonly after?: number;
142
- }) => Stream.Stream<WorkerHistoryEntry, WorkerError>;
145
+ }) => Stream$1.Stream<WorkerHistoryEntry, WorkerError>;
143
146
  /** Interrupting this wait never requests cancellation of accepted work. */
144
147
  readonly await: (request: WorkerReceiptRequest) => Effect.Effect<WorkerObservation, WorkerError>;
145
148
  readonly list: (request: {
@@ -163,10 +166,10 @@ declare const SubagentHost_base: Context.ServiceClass<SubagentHost, "@effect-age
163
166
  declare class SubagentHost extends SubagentHost_base {
164
167
  static readonly unavailable: SubagentHost["Service"];
165
168
  /** Runtime-owned per-call binding. Unconfigured Runs deny background operations. */
166
- static readonly forTool: Context.Reference<(source: Extract<WorkerSource, {
169
+ static readonly forTool: Context$1.Reference<(source: Extract<WorkerSource, {
167
170
  readonly _tag: "tool";
168
171
  }>) => SubagentHost["Service"]>;
169
172
  }
170
173
  //#endregion
171
174
  export { StartWorkerRequest as a, WorkerMessageRequest as c, WorkerReportPreparationFailure as d, WorkerReporting as f, FollowUpWorkerRequest as i, WorkerObservation as l, DeferredFollowUpWorkerRequest as n, SubagentHost as o, WorkerRunReport as p, DeferredStartWorkerRequest as r, SubagentHost_d_exports as s, BackgroundReporting as t, WorkerReceiptRequest as u };
172
- //# sourceMappingURL=SubagentHost-VTyf_wEF.d.mts.map
175
+ //# sourceMappingURL=SubagentHost-CXFlEpj0.d.mts.map
@@ -1,10 +1,10 @@
1
- import { d as SubagentReservationAmounts, l as SubagentGrant, o as SubagentDelegationCaps, s as SubagentExecutionFailure } from "./SubagentContract-tyN9v-Jv.mjs";
2
- import { a as Receipt, r as Principal } from "./Receipt-BAHyigAF.mjs";
3
- import { r as Update } from "./AgentUpdates-DMJ-_xow.mjs";
4
- import { t as AgentPolicy } from "./AgentPolicy-B4oH8TbG.mjs";
5
- import { _ as Digest, h as DefinitionDigests } from "./Records-Bm4Qt70a.mjs";
6
- import "./Admin-Vhz6NdaH.mjs";
7
- import { t as ScheduleAuthorizationDecision } from "./Schedule-Bi_XVKLF.mjs";
1
+ import { d as SubagentReservationAmounts, l as SubagentGrant, o as SubagentDelegationCaps, s as SubagentExecutionFailure } from "./SubagentContract-DdPzxYQj.mjs";
2
+ import { a as Receipt, r as Principal } from "./Receipt-BkM21Qiu.mjs";
3
+ import { r as Update } from "./AgentUpdates-DksV4D0A.mjs";
4
+ import { t as AgentPolicy } from "./AgentPolicy-CclAEpHn.mjs";
5
+ import { _ as Digest, h as DefinitionDigests } from "./Records-CAQktL0z.mjs";
6
+ import "./Admin-CbwoQEm8.mjs";
7
+ import { t as ScheduleAuthorizationDecision } from "./Schedule-rEIiYnRq.mjs";
8
8
  import { Context, Effect, Schema } from "effect";
9
9
  declare namespace Subscription_d_exports {
10
10
  export { AcceptedEvent, DeliveryChange, EventAcknowledgement, EventSourceVersion, PreparedInput, SourcePartition, SourceRecovery, SubscriptionAuthorizer, SubscriptionChange, SubscriptionConfiguration, SubscriptionDelivery, SubscriptionDeliveryKey, SubscriptionDeliverySnapshot, SubscriptionError, SubscriptionFailpoint, SubscriptionFailpointError, SubscriptionKey, SubscriptionLimits, SubscriptionName, SubscriptionRecord, SubscriptionRefusal, SubscriptionRetentionPolicy, SubscriptionScanCursors, SubscriptionScope, SubscriptionSnapshot, SubscriptionSourceError, SubscriptionStore, SubscriptionStoreFailure, defaultSubscriptionLimits, subscriptionDeliveryKeyString, subscriptionKeyString };
@@ -976,4 +976,4 @@ declare const subscriptionKeyString: (key: SubscriptionKey) => string;
976
976
  declare const subscriptionDeliveryKeyString: (key: SubscriptionDeliveryKey) => string;
977
977
  //#endregion
978
978
  export { defaultSubscriptionLimits as A, SubscriptionScanCursors as C, SubscriptionStore as D, SubscriptionSourceError as E, subscriptionKeyString as M, SubscriptionStoreFailure as O, SubscriptionRetentionPolicy as S, SubscriptionSnapshot as T, SubscriptionKey as _, PreparedInput as a, SubscriptionRecord as b, SubscriptionAuthorizer as c, SubscriptionDelivery as d, SubscriptionDeliveryKey as f, SubscriptionFailpointError as g, SubscriptionFailpoint as h, EventSourceVersion as i, subscriptionDeliveryKeyString as j, Subscription_d_exports as k, SubscriptionChange as l, SubscriptionError as m, DeliveryChange as n, SourcePartition as o, SubscriptionDeliverySnapshot as p, EventAcknowledgement as r, SourceRecovery as s, AcceptedEvent as t, SubscriptionConfiguration as u, SubscriptionLimits as v, SubscriptionScope as w, SubscriptionRefusal as x, SubscriptionName as y };
979
- //# sourceMappingURL=Subscription-nbSNY6Hs.d.mts.map
979
+ //# sourceMappingURL=Subscription-BJj-R-6V.d.mts.map
@@ -1,6 +1,6 @@
1
1
  import { t as AgentId } from "./Identifiers-CN2s30fF.mjs";
2
- import { h as DefinitionDigests, k as PersistedJson } from "./Records-Bm4Qt70a.mjs";
3
- import { E as SubscriptionSourceError, b as SubscriptionRecord, i as EventSourceVersion, m as SubscriptionError, t as AcceptedEvent, u as SubscriptionConfiguration } from "./Subscription-nbSNY6Hs.mjs";
2
+ import { h as DefinitionDigests, k as PersistedJson } from "./Records-CAQktL0z.mjs";
3
+ import { E as SubscriptionSourceError, b as SubscriptionRecord, i as EventSourceVersion, m as SubscriptionError, t as AcceptedEvent, u as SubscriptionConfiguration } from "./Subscription-BJj-R-6V.mjs";
4
4
  import { Context, Effect, Schema, Scope } from "effect";
5
5
  declare namespace SubscriptionInput_d_exports {
6
6
  export { SubscriptionInputBinding, SubscriptionInputBindings, makeSubscriptionInputBinding, resolveSubscriptionInput };
@@ -38,4 +38,4 @@ declare const makeSubscriptionInputBinding: <Event extends Schema.Top, Parameter
38
38
  }) => Effect.Effect<SubscriptionInputBinding, never, Exclude<R, Scope.Scope> | Exclude<Continuation["DecodingServices"], Scope.Scope> | Exclude<Continuation["EncodingServices"], Scope.Scope> | Exclude<Event["DecodingServices"], Scope.Scope> | Exclude<Input["EncodingServices"], Scope.Scope> | Exclude<Parameters["DecodingServices"], Scope.Scope>>;
39
39
  //#endregion
40
40
  export { resolveSubscriptionInput as a, makeSubscriptionInputBinding as i, SubscriptionInputBindings as n, SubscriptionInput_d_exports as r, SubscriptionInputBinding as t };
41
- //# sourceMappingURL=SubscriptionInput-DbXnOMS2.d.mts.map
41
+ //# sourceMappingURL=SubscriptionInput-DyQtODg2.d.mts.map
@@ -0,0 +1,117 @@
1
+ import { s as RunId, u as ThreadId } from "./Identifiers-CN2s30fF.mjs";
2
+ import * as Schema$1 from "effect/Schema";
3
+ import * as Context$1 from "effect/Context";
4
+ import * as Effect$1 from "effect/Effect";
5
+ import * as Layer$1 from "effect/Layer";
6
+ import * as Prompt from "effect/unstable/ai/Prompt";
7
+ import { Scope } from "effect";
8
+ declare namespace Thread_d_exports {
9
+ export { Store, Thread, ThreadAppend, ThreadEncodingError, ThreadError, ThreadExport, ThreadHistoryDiverged, ThreadLimitExceeded, ThreadMessage, ThreadNotFound, ThreadOwnershipError, ThreadText, layerMemory, toPrompt };
10
+ }
11
+ /** Bound applied to one text projection before it can enter a model context. */
12
+ declare const ThreadText: Schema$1.String;
13
+ declare const ThreadMessage_base: Schema$1.Class<ThreadMessage, Schema$1.Struct<{
14
+ readonly threadId: Schema$1.brand<Schema$1.NonEmptyString, "@effect-agent/core/ThreadId">;
15
+ readonly sequence: Schema$1.Natural;
16
+ readonly runId: Schema$1.optionalKey<Schema$1.brand<Schema$1.NonEmptyString, "@effect-agent/core/RunId">>;
17
+ readonly message: Schema$1.Codec<Prompt.Message, Prompt.MessageEncoded, never, never>;
18
+ readonly encodedBytes: Schema$1.Natural;
19
+ readonly timestamp: Schema$1.DateTimeUtcFromString;
20
+ }>, {}>;
21
+ /** One append-only native Effect AI message in a conversation. */
22
+ declare class ThreadMessage extends ThreadMessage_base {}
23
+ declare const Thread_base: Schema$1.Class<Thread, Schema$1.Struct<{
24
+ readonly version: Schema$1.Literal<1>;
25
+ readonly threadId: Schema$1.brand<Schema$1.NonEmptyString, "@effect-agent/core/ThreadId">;
26
+ readonly nextSequence: Schema$1.Natural;
27
+ readonly contentBytes: Schema$1.Natural;
28
+ readonly messages: Schema$1.$Array<typeof ThreadMessage>;
29
+ }>, {}>;
30
+ /** An identified, ordered conversation snapshot. Storage and execution recovery are separate concerns. */
31
+ declare class Thread extends Thread_base {}
32
+ declare const ThreadExport_base: Schema$1.Class<ThreadExport, Schema$1.Struct<{
33
+ readonly format: Schema$1.Literal<"effect-agent/ephemeral-thread@1">;
34
+ readonly exportedAt: Schema$1.DateTimeUtcFromString;
35
+ readonly snapshot: typeof Thread;
36
+ }>, {}>;
37
+ /** Portable conversation snapshot. Its format is independent of the durable execution journal. */
38
+ declare class ThreadExport extends ThreadExport_base {}
39
+ declare const ThreadAppend_base: Schema$1.Class<ThreadAppend, Schema$1.Struct<{
40
+ readonly runId: Schema$1.optionalKey<Schema$1.brand<Schema$1.NonEmptyString, "@effect-agent/core/RunId">>;
41
+ readonly message: Schema$1.Codec<Prompt.Message, Prompt.MessageEncoded, never, never>;
42
+ }>, {}>;
43
+ /** Native message accepted by the append-only thread. */
44
+ declare class ThreadAppend extends ThreadAppend_base {}
45
+ declare const ThreadNotFound_base: Schema$1.Class<ThreadNotFound, Schema$1.TaggedStruct<"ThreadNotFound", {
46
+ readonly threadId: Schema$1.brand<Schema$1.NonEmptyString, "@effect-agent/core/ThreadId">;
47
+ }>, import("effect/Cause").YieldableError>;
48
+ /** The requested Thread has not been created in this store. */
49
+ declare class ThreadNotFound extends ThreadNotFound_base {}
50
+ declare const ThreadLimitExceeded_base: Schema$1.Class<ThreadLimitExceeded, Schema$1.TaggedStruct<"ThreadLimitExceeded", {
51
+ readonly threadId: Schema$1.brand<Schema$1.NonEmptyString, "@effect-agent/core/ThreadId">;
52
+ readonly limit: Schema$1.Literals<readonly ["messages", "content-bytes", "threads", "store-content-bytes"]>;
53
+ readonly limitValue: Schema$1.Natural;
54
+ readonly observedValue: Schema$1.Natural;
55
+ }>, import("effect/Cause").YieldableError>;
56
+ /** A process-local Thread store reached an explicit count or encoded-content bound. */
57
+ declare class ThreadLimitExceeded extends ThreadLimitExceeded_base {}
58
+ declare const ThreadHistoryDiverged_base: Schema$1.Class<ThreadHistoryDiverged, Schema$1.TaggedStruct<"ThreadHistoryDiverged", {
59
+ readonly threadId: Schema$1.brand<Schema$1.NonEmptyString, "@effect-agent/core/ThreadId">;
60
+ readonly message: Schema$1.String;
61
+ }>, import("effect/Cause").YieldableError>;
62
+ /** Engine history was not an append-only extension of the official snapshot. */
63
+ declare class ThreadHistoryDiverged extends ThreadHistoryDiverged_base {}
64
+ declare const ThreadEncodingError_base: Schema$1.Class<ThreadEncodingError, Schema$1.TaggedStruct<"ThreadEncodingError", {
65
+ readonly threadId: Schema$1.brand<Schema$1.NonEmptyString, "@effect-agent/core/ThreadId">;
66
+ readonly message: Schema$1.String;
67
+ }>, import("effect/Cause").YieldableError>;
68
+ /** Native Prompt encoding failed before a bounded state mutation. */
69
+ declare class ThreadEncodingError extends ThreadEncodingError_base {}
70
+ declare const ThreadOwnershipError_base: Schema$1.Class<ThreadOwnershipError, Schema$1.TaggedStruct<"ThreadOwnershipError", {
71
+ readonly threadId: Schema$1.brand<Schema$1.NonEmptyString, "@effect-agent/core/ThreadId">;
72
+ readonly reason: Schema$1.Literals<readonly ["closed", "foreign"]>;
73
+ readonly message: Schema$1.String;
74
+ }>, import("effect/Cause").YieldableError>;
75
+ /** A scoped view cannot access another owner's history or be used after closure. */
76
+ declare class ThreadOwnershipError extends ThreadOwnershipError_base {}
77
+ type ThreadError = ThreadNotFound | ThreadLimitExceeded | ThreadHistoryDiverged | ThreadEncodingError | ThreadOwnershipError;
78
+ /** Reconstruct exact Effect AI Prompt history, including tools, reasoning, files, and options. */
79
+ declare const toPrompt: (snapshot: Thread) => Prompt.Prompt;
80
+ /**
81
+ * Process-local state for conversation history. Updates remain visible even
82
+ * when a Run later fails; this service has no successful-Run commit boundary or durable recovery.
83
+ * ThreadHistory.layer uses this store for ordinary Runs and interactive history.
84
+ * Scope closure releases all in-memory state.
85
+ */
86
+ interface StoreService {
87
+ /**
88
+ * Acquire an isolated ownership view over this same bounded store. Newly created Threads
89
+ * belong to the supplied Scope; closing it releases only that view's Threads and bytes.
90
+ * Supplied by layerMemory; custom stores may omit this capability.
91
+ * The view rejects foreign IDs and all access after closure. Keep its Scope open through
92
+ * all users, including streams, child Runs, snapshots and history hooks.
93
+ */
94
+ readonly scoped?: Effect$1.Effect<StoreService, never, Scope.Scope>;
95
+ readonly create: (threadId: ThreadId) => Effect$1.Effect<Thread, ThreadLimitExceeded | ThreadOwnershipError>;
96
+ readonly append: (threadId: ThreadId, message: ThreadAppend) => Effect$1.Effect<Thread, ThreadNotFound | ThreadLimitExceeded | ThreadEncodingError | ThreadOwnershipError>;
97
+ /**
98
+ * Record an engine-emitted full history only when it is an append-only
99
+ * extension of the exact official Prompt already stored. The entire
100
+ * suffix commits in one transaction or not at all: concurrent writers are
101
+ * serialized, a writer whose history no longer extends the committed
102
+ * official history fails with ThreadHistoryDiverged, and a limit
103
+ * failure inside the suffix records nothing. Earlier updates remain committed if the Run
104
+ * later fails or is interrupted; this transaction covers one update, not the whole Run.
105
+ */
106
+ readonly recordHistory: (threadId: ThreadId, runId: RunId, history: Prompt.Prompt) => Effect$1.Effect<Thread, ThreadError>;
107
+ readonly snapshot: (threadId: ThreadId) => Effect$1.Effect<Thread, ThreadNotFound | ThreadOwnershipError>;
108
+ readonly export: (threadId: ThreadId) => Effect$1.Effect<ThreadExport, ThreadNotFound | ThreadOwnershipError>;
109
+ }
110
+ declare const Store_base: Context$1.ServiceClass<Store, "@effect-agent/capabilities/EphemeralThreads", StoreService>;
111
+ /** Process-local conversation store supplied by layerMemory. */
112
+ declare class Store extends Store_base {}
113
+ /** In-memory storage shared for the consumer's Scope; it does not survive process loss. */
114
+ declare const layerMemory: Layer$1.Layer<Store, never, never>;
115
+ //#endregion
116
+ export { ThreadError as a, ThreadLimitExceeded as c, ThreadOwnershipError as d, ThreadText as f, toPrompt as h, ThreadEncodingError as i, ThreadMessage as l, layerMemory as m, Thread as n, ThreadExport as o, Thread_d_exports as p, ThreadAppend as r, ThreadHistoryDiverged as s, Store as t, ThreadNotFound as u };
117
+ //# sourceMappingURL=Thread-DT8RTLIQ.d.mts.map
@@ -1,8 +1,11 @@
1
1
  import { s as RunId, u as ThreadId } from "./Identifiers-CN2s30fF.mjs";
2
- import { t as Store } from "./Thread-DOBQ0QUY.mjs";
3
- import { l as RunCompleted } from "./RunEvent-D0aepYwN.mjs";
2
+ import { t as Store } from "./Thread-DT8RTLIQ.mjs";
3
+ import { l as RunCompleted } from "./RunEvent-B3CRIqIC.mjs";
4
+ import * as Schema from "effect/Schema";
5
+ import * as Context from "effect/Context";
6
+ import * as Effect from "effect/Effect";
7
+ import * as Layer from "effect/Layer";
4
8
  import { Prompt } from "effect/unstable/ai";
5
- import { Context, Effect, Layer, Schema } from "effect";
6
9
  declare namespace ThreadHistory_d_exports {
7
10
  export { ThreadHistory, ThreadHistoryError, ThreadHistoryRun, layer };
8
11
  }
@@ -32,6 +35,8 @@ interface ThreadHistoryRun {
32
35
  }
33
36
  declare const ThreadHistory_base: Context.ServiceClass<ThreadHistory, "@effect-agent/engine/ThreadHistory", {
34
37
  readonly retention: "incremental" | "on-success";
38
+ /** Present only for the in-memory adapter; identifies its exact Store ownership view. */
39
+ readonly memoryStore?: Store["Service"];
35
40
  readonly open: (request: {
36
41
  readonly threadId: ThreadId;
37
42
  readonly runId: RunId;
@@ -46,15 +51,13 @@ declare const ThreadHistory_base: Context.ServiceClass<ThreadHistory, "@effect-a
46
51
  * No implementation may retry model or Tool execution or claim interrupted-work recovery.
47
52
  */
48
53
  declare class ThreadHistory extends ThreadHistory_base {
49
- /**
50
- * Retain bounded in-memory history across Runs. Provide once around the application so
51
- * all Runs share the same store. The underlying Thread.Store service is exposed for
52
- * snapshots and interactive hooks; separate Layer builds own separate stores.
53
- */
54
+ /** Bind incremental history to the supplied Thread.Store, including scoped ownership views. */
55
+ static readonly layerFromStore: Layer.Layer<ThreadHistory, never, Store>;
56
+ /** Retain bounded history for the application Scope. Separate Layer builds own separate stores. */
54
57
  static readonly layer: Layer.Layer<Store | ThreadHistory, never, never>;
55
58
  }
56
59
  /** Retain in-memory conversation history for the application Scope. */
57
60
  declare const layer: Layer.Layer<Store | ThreadHistory, never, never>;
58
61
  //#endregion
59
62
  export { layer as a, ThreadHistory_d_exports as i, ThreadHistoryError as n, ThreadHistoryRun as r, ThreadHistory as t };
60
- //# sourceMappingURL=ThreadHistory-FD-o4TsR.d.mts.map
63
+ //# sourceMappingURL=ThreadHistory-DQ-IC1hU.d.mts.map
@@ -1,5 +1,7 @@
1
+ import * as Schema$1 from "effect/Schema";
2
+ import * as Context$1 from "effect/Context";
3
+ import { Effect } from "effect";
1
4
  import { Tool, Toolkit } from "effect/unstable/ai";
2
- import { Context, Effect, Schema } from "effect";
3
5
  declare namespace ToolBroker_d_exports {
4
6
  export { ProgrammaticCallError, ProgrammaticCallFailure, ProgrammaticCallOutcome, ProgrammaticCallRecord, ProgrammaticCallSuccess, ProgrammaticToolInput, ToolBroker, ToolBrokerConfigurationError, ToolBrokerPass, ToolBrokerPassOptions, ToolBrokerService, ToolBrokerUnavailableError };
5
7
  }
@@ -64,11 +66,11 @@ type ProgrammaticCallOutcome = ProgrammaticCallSuccess | ProgrammaticCallFailure
64
66
  * results are copied into this diagnostic. A started call without a confirmed result is uncertain;
65
67
  * a failed call is a confirmed failure, not a promise that external effects were rolled back.
66
68
  */
67
- declare const ProgrammaticCallRecord: Schema.Struct<{
68
- readonly sequenceIndex: Schema.Natural;
69
- readonly toolName: Schema.String;
70
- readonly status: Schema.Literals<readonly ["not-started", "succeeded", "failed", "uncertain"]>;
71
- readonly errorTag: Schema.optionalKey<Schema.String>;
69
+ declare const ProgrammaticCallRecord: Schema$1.Struct<{
70
+ readonly sequenceIndex: Schema$1.Natural;
71
+ readonly toolName: Schema$1.String;
72
+ readonly status: Schema$1.Literals<readonly ["not-started", "succeeded", "failed", "uncertain"]>;
73
+ readonly errorTag: Schema$1.optionalKey<Schema$1.String>;
72
74
  }>;
73
75
  type ProgrammaticCallRecord = typeof ProgrammaticCallRecord.Type;
74
76
  /** Broker-owned per-pass policy for results crossing back into the sandbox. */
@@ -98,13 +100,13 @@ interface ToolBrokerPass {
98
100
  /** Owned snapshot in invocation order, including interrupted and rejected calls. Never replay it. */
99
101
  readonly snapshot: Effect.Effect<ReadonlyArray<ProgrammaticCallRecord>>;
100
102
  }
101
- declare const ToolBrokerUnavailableError_base: Schema.Class<ToolBrokerUnavailableError, Schema.TaggedStruct<"ToolBrokerUnavailableError", {
102
- readonly message: Schema.String;
103
+ declare const ToolBrokerUnavailableError_base: Schema$1.Class<ToolBrokerUnavailableError, Schema$1.TaggedStruct<"ToolBrokerUnavailableError", {
104
+ readonly message: Schema$1.String;
103
105
  }>, import("effect/Cause").YieldableError>;
104
106
  /** The broker was used outside a live Tool batch; there is nothing to bind to. */
105
107
  declare class ToolBrokerUnavailableError extends ToolBrokerUnavailableError_base {}
106
- declare const ToolBrokerConfigurationError_base: Schema.Class<ToolBrokerConfigurationError, Schema.TaggedStruct<"ToolBrokerConfigurationError", {
107
- readonly message: Schema.String;
108
+ declare const ToolBrokerConfigurationError_base: Schema$1.Class<ToolBrokerConfigurationError, Schema$1.TaggedStruct<"ToolBrokerConfigurationError", {
109
+ readonly message: Schema$1.String;
108
110
  }>, import("effect/Cause").YieldableError>;
109
111
  /**
110
112
  * The pass options are invalid — for example a `maxResultBytes` that is not
@@ -121,7 +123,7 @@ declare class ToolBrokerConfigurationError extends ToolBrokerConfigurationError_
121
123
  interface ToolBrokerService {
122
124
  readonly openPass: <Tools extends Record<string, Tool.Any>>(toolkit: Toolkit.WithHandler<Tools>, options: ToolBrokerPassOptions) => Effect.Effect<ToolBrokerPass, ToolBrokerUnavailableError | ToolBrokerConfigurationError, Tool.HandlerServices<Tools[keyof Tools]>>;
123
125
  }
124
- declare const ToolBroker_base: Context.ServiceClass<ToolBroker, "@effect-agent/engine/ToolBroker", ToolBrokerService>;
126
+ declare const ToolBroker_base: Context$1.ServiceClass<ToolBroker, "@effect-agent/engine/ToolBroker", ToolBrokerService>;
125
127
  /**
126
128
  * Engine-provided programmatic Tool broker (RUN-016, RUN-017). Declare it
127
129
  * with `.addDependency(ToolBroker)` on a Tool that performs programmatic
@@ -130,4 +132,4 @@ declare const ToolBroker_base: Context.ServiceClass<ToolBroker, "@effect-agent/e
130
132
  declare class ToolBroker extends ToolBroker_base {}
131
133
  //#endregion
132
134
  export { ProgrammaticCallSuccess as a, ToolBrokerConfigurationError as c, ToolBrokerService as d, ToolBrokerUnavailableError as f, ProgrammaticCallRecord as i, ToolBrokerPass as l, ProgrammaticCallFailure as n, ProgrammaticToolInput as o, ToolBroker_d_exports as p, ProgrammaticCallOutcome as r, ToolBroker as s, ProgrammaticCallError as t, ToolBrokerPassOptions as u };
133
- //# sourceMappingURL=ToolBroker-DWs4tZra.d.mts.map
135
+ //# sourceMappingURL=ToolBroker-DXwv2aUT.d.mts.map
@@ -1,6 +1,7 @@
1
1
  import { s as RunId, u as ThreadId } from "./Identifiers-CN2s30fF.mjs";
2
+ import * as Context$1 from "effect/Context";
3
+ import { Effect } from "effect";
2
4
  import { Tool } from "effect/unstable/ai";
3
- import { Context, Effect } from "effect";
4
5
  //#region src/engine/ToolExposure.d.ts
5
6
  type CatalogEntry = {
6
7
  readonly kind: "native";
@@ -14,7 +15,7 @@ type CatalogEntry = {
14
15
  readonly method: string;
15
16
  readonly nativeToolName: string;
16
17
  };
17
- declare const CurrentToolCatalog_base: Context.ServiceClass<CurrentToolCatalog, "@effect-agent/engine/ToolExposure/CurrentToolCatalog", {
18
+ declare const CurrentToolCatalog_base: Context$1.ServiceClass<CurrentToolCatalog, "@effect-agent/engine/ToolExposure/CurrentToolCatalog", {
18
19
  readonly entries: ReadonlyArray<CatalogEntry>;
19
20
  }>;
20
21
  /** Engine-owned per-Turn snapshot. All candidates passed host visibility and inherited grants. */
@@ -33,7 +34,7 @@ interface VisibilityHook {
33
34
  readonly visible: (request: VisibilityRequest) => Effect.Effect<ReadonlyArray<string>>;
34
35
  }
35
36
  /** Optional host policy captured by durable runtimes; action authorization remains independent. */
36
- declare const RunToolVisibility: Context.Reference<VisibilityHook | undefined>;
37
+ declare const RunToolVisibility: Context$1.Reference<VisibilityHook | undefined>;
37
38
  //#endregion
38
39
  export { VisibilityRequest as a, VisibilityHook as i, CurrentToolCatalog as n, RunToolVisibility as r, CatalogEntry as t };
39
- //# sourceMappingURL=ToolExposure-UCN12eCd.d.mts.map
40
+ //# sourceMappingURL=ToolExposure-BsaSH15e.d.mts.map
@@ -1,5 +1,6 @@
1
+ import * as Schema from "effect/Schema";
2
+ import * as Context from "effect/Context";
1
3
  import { Tool } from "effect/unstable/ai";
2
- import { Context, Schema } from "effect";
3
4
  //#region src/core/ToolExposure.d.ts
4
5
  /** Registered native names only. Empty selection deliberately clears non-pinned Tools. */
5
6
  declare const ToolNames: Schema.$Array<Schema.String>;
@@ -43,4 +44,4 @@ declare const AdditionalToolCatalog: Context.Reference<readonly AdditionalCatalo
43
44
  declare const IncludesCatalogDocumentation: Context.Reference<boolean>;
44
45
  //#endregion
45
46
  export { IncludesCatalogDocumentation as a, Selection as c, ToolNamespace as d, DiscoveryTool as i, Snapshot as l, AdditionalToolCatalog as n, Limits as o, Configuration as r, PinnedTool as s, AdditionalCatalogEntry as t, ToolNames as u };
46
- //# sourceMappingURL=ToolExposure-r2eOWk4F.d.mts.map
47
+ //# sourceMappingURL=ToolExposure-Ckg3-sTf.d.mts.map
@@ -1,4 +1,4 @@
1
- import { Context } from "effect";
1
+ import * as Context from "effect/Context";
2
2
  //#region src/engine/ToolExposure.ts
3
3
  /** Engine-owned per-Turn snapshot. All candidates passed host visibility and inherited grants. */
4
4
  var CurrentToolCatalog = class extends Context.Service()("@effect-agent/engine/ToolExposure/CurrentToolCatalog") {};
@@ -7,4 +7,4 @@ const RunToolVisibility = Context.Reference("@effect-agent/engine/ToolExposure/R
7
7
  //#endregion
8
8
  export { RunToolVisibility as n, CurrentToolCatalog as t };
9
9
 
10
- //# sourceMappingURL=ToolExposure-9uF_Yo0T.mjs.map
10
+ //# sourceMappingURL=ToolExposure-DBATXxmL.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolExposure-DBATXxmL.mjs","names":[],"sources":["../src/engine/ToolExposure.ts"],"sourcesContent":["import type { Effect } from \"effect\";\nimport * as Context from \"effect/Context\";\nimport type { Tool } from \"effect/unstable/ai\";\n\nimport type { RunId, ThreadId } from \"../core/Identifiers.ts\";\n\nexport type CatalogEntry =\n | {\n readonly kind: \"native\";\n readonly tool: Tool.Any;\n readonly namespace?: string | undefined;\n readonly nativeToolName: string;\n }\n | {\n readonly kind: \"code-mode\";\n readonly tool: Tool.Any;\n readonly namespace: string;\n readonly method: string;\n readonly nativeToolName: string;\n };\n\n/** Engine-owned per-Turn snapshot. All candidates passed host visibility and inherited grants. */\nexport class CurrentToolCatalog extends Context.Service<\n CurrentToolCatalog,\n {\n readonly entries: ReadonlyArray<CatalogEntry>;\n }\n>()(\"@effect-agent/engine/ToolExposure/CurrentToolCatalog\") {}\n\n/** Host visibility is checked before a discovery Handler may inspect candidate documentation. */\nexport interface VisibilityRequest {\n readonly threadId: ThreadId;\n readonly runId: RunId;\n readonly turn: number;\n readonly input: unknown;\n /** Includes registered native names and explicitly advertised programmatic names. */\n readonly toolNames: ReadonlyArray<string>;\n}\n\n/** Resolve host dependencies when constructing the policy Layer. */\nexport interface VisibilityHook {\n readonly visible: (request: VisibilityRequest) => Effect.Effect<ReadonlyArray<string>>;\n}\n\n/** Optional host policy captured by durable runtimes; action authorization remains independent. */\nexport const RunToolVisibility = Context.Reference<VisibilityHook | undefined>(\n \"@effect-agent/engine/ToolExposure/RunToolVisibility\",\n { defaultValue: () => undefined },\n);\n"],"mappings":";;;AAsBA,IAAa,qBAAb,cAAwC,QAAQ,QAK9C,CAAC,CAAC,sDAAsD,CAAC,CAAC,CAAC;;AAkB7D,MAAa,oBAAoB,QAAQ,UACvC,uDACA,EAAE,oBAAoB,KAAA,EAAU,CAClC"}
@@ -1,4 +1,5 @@
1
- import { Context, Schema } from "effect";
1
+ import * as Schema from "effect/Schema";
2
+ import * as Context from "effect/Context";
2
3
  //#region src/core/ToolExposure.ts
3
4
  /** Registered native names only. Empty selection deliberately clears non-pinned Tools. */
4
5
  const ToolNames = Schema.Array(Schema.String.check(Schema.isMinLength(1), Schema.isMaxLength(256))).check(Schema.isMaxLength(1024), Schema.makeFilter((names) => new Set(names).size === names.length, { title: "Tool names are unique" }));
@@ -27,4 +28,4 @@ const IncludesCatalogDocumentation = Context.Reference("@effect-agent/core/ToolE
27
28
  //#endregion
28
29
  export { PinnedTool as a, ToolNames as c, Limits as i, ToolNamespace as l, DiscoveryTool as n, Selection as o, IncludesCatalogDocumentation as r, Snapshot as s, AdditionalToolCatalog as t };
29
30
 
30
- //# sourceMappingURL=ToolExposure-C93U1sPu.mjs.map
31
+ //# sourceMappingURL=ToolExposure-hTJT2ekj.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolExposure-hTJT2ekj.mjs","names":[],"sources":["../src/core/ToolExposure.ts"],"sourcesContent":["import * as Context from \"effect/Context\";\nimport * as Schema from \"effect/Schema\";\nimport type { Tool } from \"effect/unstable/ai\";\n\n/** Registered native names only. Empty selection deliberately clears non-pinned Tools. */\nexport const ToolNames = Schema.Array(\n Schema.String.check(Schema.isMinLength(1), Schema.isMaxLength(256)),\n).check(\n Schema.isMaxLength(1_024),\n Schema.makeFilter((names) => new Set(names).size === names.length, {\n title: \"Tool names are unique\",\n }),\n);\n\n/** One run-scoped replacement, independent of search and of model-visible result text. */\nexport class Selection extends Schema.Class<Selection>(\"@effect-agent/core/ToolExposure/Selection\")(\n {\n toolNames: ToolNames,\n },\n) {}\n\n/** Exact declarations used by one model request, with the selection that produced them. */\nexport class Snapshot extends Schema.Class<Snapshot>(\"@effect-agent/core/ToolExposure/Snapshot\")({\n exposedToolNames: ToolNames,\n selection: Schema.optionalKey(Selection),\n}) {}\n\nexport const Limits = Schema.Struct({\n maxTools: Schema.Int.check(Schema.isGreaterThan(0), Schema.isLessThanOrEqualTo(1_024)),\n maxSchemaBytes: Schema.Int.check(Schema.isGreaterThan(0), Schema.isLessThanOrEqualTo(4_194_304)),\n});\n\n/** Omission preserves eager exposure. Selection changes take effect only after a complete batch. */\nexport interface Configuration {\n readonly initialToolNames?: ReadonlyArray<string> | undefined;\n readonly maxTools?: number | undefined;\n readonly maxSchemaBytes?: number | undefined;\n}\n\n/** Trusted grouping metadata; never inferred from a Tool's name. */\nexport const ToolNamespace = Context.Reference<string | undefined>(\n \"@effect-agent/core/ToolExposure/ToolNamespace\",\n { defaultValue: () => undefined },\n);\n\n/** An ordinary readonly Tool whose successful result has a `toolNames` field of native names. */\nexport const DiscoveryTool = Context.Reference<boolean>(\n \"@effect-agent/core/ToolExposure/DiscoveryTool\",\n { defaultValue: () => false },\n);\n\n/** Remains selected while eligible. Host visibility and inherited grants may hide an explicit\n * pin without failing the Run; discovery, context rollover and required completion stay mandatory.\n */\nexport const PinnedTool = Context.Reference<boolean>(\"@effect-agent/core/ToolExposure/PinnedTool\", {\n defaultValue: () => false,\n});\n\n/** Extra documentation candidates executed through their owning native Tool, such as Code Mode. */\nexport interface AdditionalCatalogEntry {\n readonly tool: Tool.Any;\n readonly namespace: string;\n readonly method: string;\n}\n\nexport const AdditionalToolCatalog = Context.Reference<ReadonlyArray<AdditionalCatalogEntry>>(\n \"@effect-agent/core/ToolExposure/AdditionalToolCatalog\",\n { defaultValue: () => [] },\n);\n\n/** The owning Tool description embeds its complete additional catalogue. */\nexport const IncludesCatalogDocumentation = Context.Reference<boolean>(\n \"@effect-agent/core/ToolExposure/IncludesCatalogDocumentation\",\n { defaultValue: () => false },\n);\n"],"mappings":";;;;AAKA,MAAa,YAAY,OAAO,MAC9B,OAAO,OAAO,MAAM,OAAO,YAAY,CAAC,GAAG,OAAO,YAAY,GAAG,CAAC,CACpE,CAAC,CAAC,MACA,OAAO,YAAY,IAAK,GACxB,OAAO,YAAY,UAAU,IAAI,IAAI,KAAK,CAAC,CAAC,SAAS,MAAM,QAAQ,EACjE,OAAO,wBACT,CAAC,CACH;;AAGA,IAAa,YAAb,cAA+B,OAAO,MAAiB,2CAA2C,CAAC,CACjG,EACE,WAAW,UACb,CACF,CAAC,CAAC,CAAC;;AAGH,IAAa,WAAb,cAA8B,OAAO,MAAgB,0CAA0C,CAAC,CAAC;CAC/F,kBAAkB;CAClB,WAAW,OAAO,YAAY,SAAS;AACzC,CAAC,CAAC,CAAC,CAAC;AAEJ,MAAa,SAAS,OAAO,OAAO;CAClC,UAAU,OAAO,IAAI,MAAM,OAAO,cAAc,CAAC,GAAG,OAAO,oBAAoB,IAAK,CAAC;CACrF,gBAAgB,OAAO,IAAI,MAAM,OAAO,cAAc,CAAC,GAAG,OAAO,oBAAoB,OAAS,CAAC;AACjG,CAAC;;AAUD,MAAa,gBAAgB,QAAQ,UACnC,iDACA,EAAE,oBAAoB,KAAA,EAAU,CAClC;;AAGA,MAAa,gBAAgB,QAAQ,UACnC,iDACA,EAAE,oBAAoB,MAAM,CAC9B;;;;AAKA,MAAa,aAAa,QAAQ,UAAmB,8CAA8C,EACjG,oBAAoB,MACtB,CAAC;AASD,MAAa,wBAAwB,QAAQ,UAC3C,yDACA,EAAE,oBAAoB,CAAC,EAAE,CAC3B;;AAGA,MAAa,+BAA+B,QAAQ,UAClD,gEACA,EAAE,oBAAoB,MAAM,CAC9B"}
@@ -1,5 +1,5 @@
1
- import { a as IncludesCatalogDocumentation, c as Selection, d as ToolNamespace, i as DiscoveryTool, l as Snapshot, n as AdditionalToolCatalog, o as Limits, r as Configuration, s as PinnedTool, t as AdditionalCatalogEntry, u as ToolNames } from "./ToolExposure-r2eOWk4F.mjs";
2
- import { a as VisibilityRequest, i as VisibilityHook, n as CurrentToolCatalog, r as RunToolVisibility, t as CatalogEntry } from "./ToolExposure-UCN12eCd.mjs";
1
+ import { a as IncludesCatalogDocumentation, c as Selection, d as ToolNamespace, i as DiscoveryTool, l as Snapshot, n as AdditionalToolCatalog, o as Limits, r as Configuration, s as PinnedTool, t as AdditionalCatalogEntry, u as ToolNames } from "./ToolExposure-Ckg3-sTf.mjs";
2
+ import { a as VisibilityRequest, i as VisibilityHook, n as CurrentToolCatalog, r as RunToolVisibility, t as CatalogEntry } from "./ToolExposure-BsaSH15e.mjs";
3
3
  declare namespace ToolExposure_d_exports {
4
4
  export { AdditionalCatalogEntry, AdditionalToolCatalog, CatalogEntry, Configuration, CurrentToolCatalog, DiscoveryTool, IncludesCatalogDocumentation, Limits, PinnedTool, RunToolVisibility, Selection, Snapshot, ToolNames, ToolNamespace, VisibilityHook, VisibilityRequest };
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
- import { a as PinnedTool, c as ToolNames, i as Limits, l as ToolNamespace, n as DiscoveryTool, o as Selection, r as IncludesCatalogDocumentation, s as Snapshot, t as AdditionalToolCatalog } from "./ToolExposure-C93U1sPu.mjs";
3
- import { n as RunToolVisibility, t as CurrentToolCatalog } from "./ToolExposure-9uF_Yo0T.mjs";
2
+ import { a as PinnedTool, c as ToolNames, i as Limits, l as ToolNamespace, n as DiscoveryTool, o as Selection, r as IncludesCatalogDocumentation, s as Snapshot, t as AdditionalToolCatalog } from "./ToolExposure-hTJT2ekj.mjs";
3
+ import { n as RunToolVisibility, t as CurrentToolCatalog } from "./ToolExposure-DBATXxmL.mjs";
4
4
  //#region src/ToolExposure.ts
5
5
  var ToolExposure_exports = /* @__PURE__ */ __exportAll({
6
6
  AdditionalToolCatalog: () => AdditionalToolCatalog,
@@ -1,5 +1,5 @@
1
1
  import * as Schema from "effect/Schema";
2
- import { AiError } from "effect/unstable/ai";
2
+ import * as AiError from "effect/unstable/ai/AiError";
3
3
  declare namespace ToolResult_d_exports {
4
4
  export { ToolParameterRejection, ToolResultBounds, TruncatedToolResult, UnserializableToolResult, applyToolResultBounds, unserializableToolResult };
5
5
  }
@@ -75,4 +75,4 @@ declare const unserializableToolResult: (cause: unknown) => typeof Unserializabl
75
75
  declare const applyToolResultBounds: (encodedJson: string, bounds: ToolResultBounds) => string;
76
76
  //#endregion
77
77
  export { UnserializableToolResult as a, TruncatedToolResult as i, ToolResultBounds as n, applyToolResultBounds as o, ToolResult_d_exports as r, unserializableToolResult as s, ToolParameterRejection as t };
78
- //# sourceMappingURL=ToolResult-BKdqWRff.d.mts.map
78
+ //# sourceMappingURL=ToolResult-DqyEhJLF.d.mts.map
@@ -1,4 +1,5 @@
1
- import { Effect, Schema } from "effect";
1
+ import * as Schema from "effect/Schema";
2
+ import * as Effect from "effect/Effect";
2
3
  declare namespace Usage_d_exports {
3
4
  export { ChildRunUsage, InputTokenUsage, ModelCallUsage, ModelResponseIdentity, ModelUsageGroup, OutputTokenUsage, RunTotals, RunUsageReport, RunUsageSummary, UsageAggregationError, UsageCompleteness, emptyRunTotals, runTotalsFromSummary, sumRunTotals, summarizeModelUsage, unknownRunTotals };
4
5
  }
@@ -126,4 +127,4 @@ declare const runTotalsFromSummary: (summary: RunUsageSummary) => RunTotals;
126
127
  declare const summarizeModelUsage: (calls: readonly ModelCallUsage[], seed?: RunUsageSummary | undefined) => Effect.Effect<RunUsageSummary, UsageAggregationError, never>;
127
128
  //#endregion
128
129
  export { unknownRunTotals as _, ModelUsageGroup as a, RunUsageReport as c, UsageCompleteness as d, Usage_d_exports as f, summarizeModelUsage as g, sumRunTotals as h, ModelResponseIdentity as i, RunUsageSummary as l, runTotalsFromSummary as m, InputTokenUsage as n, OutputTokenUsage as o, emptyRunTotals as p, ModelCallUsage as r, RunTotals as s, ChildRunUsage as t, UsageAggregationError as u };
129
- //# sourceMappingURL=Usage-BNjPR7Zr.d.mts.map
130
+ //# sourceMappingURL=Usage-CzZJ6A2n.d.mts.map
@@ -1,9 +1,9 @@
1
- import { l as SubagentGrant, p as WorkerOperationTool, s as SubagentExecutionFailure } from "./SubagentContract-tyN9v-Jv.mjs";
2
- import { a as Receipt } from "./Receipt-BAHyigAF.mjs";
3
- import { r as Update } from "./AgentUpdates-DMJ-_xow.mjs";
4
- import { a as FailureDiagnostic_d_exports, r as Diagnostic } from "./FailureDiagnostic-CaAkzGHL.mjs";
5
- import { t as AgentPolicy } from "./AgentPolicy-B4oH8TbG.mjs";
6
- import { Schema } from "effect";
1
+ import { l as SubagentGrant, p as WorkerOperationTool, s as SubagentExecutionFailure } from "./SubagentContract-DdPzxYQj.mjs";
2
+ import { a as Receipt } from "./Receipt-BkM21Qiu.mjs";
3
+ import { r as Update } from "./AgentUpdates-DksV4D0A.mjs";
4
+ import { a as FailureDiagnostic_d_exports, r as Diagnostic } from "./FailureDiagnostic-DvHruCSJ.mjs";
5
+ import { t as AgentPolicy } from "./AgentPolicy-CclAEpHn.mjs";
6
+ import * as Schema from "effect/Schema";
7
7
  declare namespace Worker_d_exports {
8
8
  export { AssignmentDisposition, AssignmentTerminal, FrameworkMessage, WorkerAppliedInput, WorkerBudgetScope, WorkerCompletion, WorkerContext, WorkerError, WorkerHistoryEntry, WorkerInput, WorkerOperationTool, WorkerPage, WorkerRef, WorkerReport, WorkerRun, WorkerSource, WorkerStarted, WorkerStop, WorkerStopped, WorkerSummary, WorkerUpdate };
9
9
  }
@@ -469,4 +469,4 @@ declare const FrameworkMessage: Schema.Union<readonly [Schema.Struct<{
469
469
  type FrameworkMessage = typeof FrameworkMessage.Type;
470
470
  //#endregion
471
471
  export { WorkerStop as _, WorkerBudgetScope as a, WorkerUpdate as b, WorkerError as c, WorkerPage as d, WorkerRef as f, WorkerStarted as g, WorkerSource as h, WorkerAppliedInput as i, WorkerHistoryEntry as l, WorkerRun as m, AssignmentTerminal as n, WorkerCompletion as o, WorkerReport as p, FrameworkMessage as r, WorkerContext as s, AssignmentDisposition as t, WorkerInput as u, WorkerStopped as v, Worker_d_exports as x, WorkerSummary as y };
472
- //# sourceMappingURL=Worker-XEBYxRQv.d.mts.map
472
+ //# sourceMappingURL=Worker-DH5SAVIK.d.mts.map
@@ -3,9 +3,9 @@ import { AgentId, DelegationId, RunId, SettlementId, ThreadId, ToolCallId } from
3
3
  import { AgentPolicy } from "./core/AgentPolicy.mjs";
4
4
  import { IdempotencyKey, Receipt } from "./core/Receipt.mjs";
5
5
  import { Update } from "./core/AgentUpdates.mjs";
6
- import { o as Value } from "./FailureDiagnostic-BElLOoED.mjs";
6
+ import { o as Value } from "./FailureDiagnostic-D9oW23Cn.mjs";
7
7
  import { SubagentExecutionFailure, SubagentGrant, WorkerOperationTool } from "./core/SubagentContract.mjs";
8
- import { Schema } from "effect";
8
+ import * as Schema from "effect/Schema";
9
9
  //#region src/core/internal/message-status.ts
10
10
  /** A retained outbound delivery identity, not a destination Receipt or access grant. */
11
11
  const MessageRef = Schema.Struct({
@@ -268,4 +268,4 @@ const FrameworkMessage = Schema.Union([WorkerCompletion, WorkerUpdate]);
268
268
  //#endregion
269
269
  export { MessageStatus as C, MessageRef as S, WorkerStop as _, WorkerBudgetScope as a, WorkerUpdate as b, WorkerError as c, WorkerPage as d, WorkerRef as f, WorkerStarted as g, WorkerSource as h, WorkerAppliedInput as i, WorkerHistoryEntry as l, WorkerRun as m, AssignmentTerminal as n, WorkerCompletion as o, WorkerReport as p, FrameworkMessage as r, WorkerContext as s, AssignmentDisposition as t, WorkerInput as u, WorkerStopped as v, Worker_exports as x, WorkerSummary as y };
270
270
 
271
- //# sourceMappingURL=Worker-CfwzMZEK.mjs.map
271
+ //# sourceMappingURL=Worker-DZjdMjZn.mjs.map