@systemfsoftware/agent 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/ActivityStore-CEy3oY41.mjs +90 -0
- package/dist/ActivityStore-CEy3oY41.mjs.map +1 -0
- package/dist/ActivityStore-CPXWRHGz.d.mts +91 -0
- package/dist/Admin-26pelcl9.d.mts +5678 -0
- package/dist/Admin-BcQDrWKY.mjs +329 -0
- package/dist/Admin-BcQDrWKY.mjs.map +1 -0
- package/dist/Agent-BH_R6LOI.d.mts +219 -0
- package/dist/Agent-Bn3zMhDH.mjs +60 -0
- package/dist/Agent-Bn3zMhDH.mjs.map +1 -0
- package/dist/AgentError-RkUaetX8.d.mts +128 -0
- package/dist/AgentError-yFdnS9bl.mjs +141 -0
- package/dist/AgentError-yFdnS9bl.mjs.map +1 -0
- package/dist/AgentPolicy-CI7LRBQa.mjs +116 -0
- package/dist/AgentPolicy-CI7LRBQa.mjs.map +1 -0
- package/dist/AgentPolicy-D-GmZQex.d.mts +128 -0
- package/dist/AgentRegistration-h07X1mZM.mjs +14 -0
- package/dist/AgentRegistration-h07X1mZM.mjs.map +1 -0
- package/dist/AgentRuntime-C3GQPdrv.d.mts +751 -0
- package/dist/AgentRuntime-CrYYV9RF.mjs +5224 -0
- package/dist/AgentRuntime-CrYYV9RF.mjs.map +1 -0
- package/dist/AgentUpdates-7xT0It_R.d.mts +54 -0
- package/dist/AgentUpdates-BS_6gR5K.mjs +66 -0
- package/dist/AgentUpdates-BS_6gR5K.mjs.map +1 -0
- package/dist/BrowserUse-DgCEbTwW.d.mts +196 -0
- package/dist/BrowserUse-DjEyFDLZ.mjs +156 -0
- package/dist/BrowserUse-DjEyFDLZ.mjs.map +1 -0
- package/dist/Budget-CXh_ChFJ.d.mts +112 -0
- package/dist/Budget-j1UkthgY.mjs +351 -0
- package/dist/Budget-j1UkthgY.mjs.map +1 -0
- package/dist/CodeExecutor-B_Vt1Ghy.mjs +281 -0
- package/dist/CodeExecutor-B_Vt1Ghy.mjs.map +1 -0
- package/dist/CodeExecutor-D5-Rda75.d.mts +198 -0
- package/dist/CodeMode-B7JvfKAD.d.mts +159 -0
- package/dist/CodeMode-BI7WhUkr.mjs +555 -0
- package/dist/CodeMode-BI7WhUkr.mjs.map +1 -0
- package/dist/CommittedActivity-DMfj2beT.d.mts +62 -0
- package/dist/CommittedActivity-DXyCKCtX.mjs +146 -0
- package/dist/CommittedActivity-DXyCKCtX.mjs.map +1 -0
- package/dist/Compaction-C0hWAmOG.mjs +15 -0
- package/dist/Compaction-C0hWAmOG.mjs.map +1 -0
- package/dist/Compaction-e5cNeFmY.d.mts +5 -0
- package/dist/ContextCompactor-Chm9BLrD.d.mts +165 -0
- package/dist/ContextCompactor-DV4NOQvg.mjs +134 -0
- package/dist/ContextCompactor-DV4NOQvg.mjs.map +1 -0
- package/dist/ContextHistory-C80rW5M7.mjs +76 -0
- package/dist/ContextHistory-C80rW5M7.mjs.map +1 -0
- package/dist/ContextHistory-akQ1Td7a.d.mts +65 -0
- package/dist/ContextTools-D5jrWNNH.d.mts +186 -0
- package/dist/ContextTools-p8JDPo-W.mjs +88 -0
- package/dist/ContextTools-p8JDPo-W.mjs.map +1 -0
- package/dist/ContextWindow-BJZI4MMt.d.mts +61 -0
- package/dist/ContextWindow-kbFcs1IF.mjs +63 -0
- package/dist/ContextWindow-kbFcs1IF.mjs.map +1 -0
- package/dist/Digest-BDToAbaX.d.mts +25 -0
- package/dist/Digest-CU6IWj-2.mjs +106 -0
- package/dist/Digest-CU6IWj-2.mjs.map +1 -0
- package/dist/DurableAgentRuntime-D3UTrNQg.mjs +8432 -0
- package/dist/DurableAgentRuntime-D3UTrNQg.mjs.map +1 -0
- package/dist/DurableFailpoint-BD5nowNl.mjs +98 -0
- package/dist/DurableFailpoint-BD5nowNl.mjs.map +1 -0
- package/dist/DurableFailpoint-Cqi5tyof.d.mts +42 -0
- package/dist/DurableStep-CzVIho7y.mjs +54 -0
- package/dist/DurableStep-CzVIho7y.mjs.map +1 -0
- package/dist/DurableStep-cI_Ho_rU.d.mts +109 -0
- package/dist/EventSource-BWY08cyT.d.mts +52 -0
- package/dist/EventSource-BwZVkEQi.mjs +66 -0
- package/dist/EventSource-BwZVkEQi.mjs.map +1 -0
- package/dist/FailureDiagnostic-DdHV2eFs.mjs +304 -0
- package/dist/FailureDiagnostic-DdHV2eFs.mjs.map +1 -0
- package/dist/FailureDiagnostic-DpzYNI8f.d.mts +232 -0
- package/dist/IdGenerator-BCzwV0ZI.mjs +29 -0
- package/dist/IdGenerator-BCzwV0ZI.mjs.map +1 -0
- package/dist/IdGenerator-BY8NH74o.d.mts +26 -0
- package/dist/Identifiers-LWd4837I.mjs +41 -0
- package/dist/Identifiers-LWd4837I.mjs.map +1 -0
- package/dist/Identifiers-qafW4EP0.d.mts +38 -0
- package/dist/InMemory-BrTm6XEO.mjs +57 -0
- package/dist/InMemory-BrTm6XEO.mjs.map +1 -0
- package/dist/InMemory-C3qXFT5k.d.mts +46 -0
- package/dist/InMemory.d.mts +2 -0
- package/dist/InMemory.mjs +1 -0
- package/dist/InteractiveBrowser-B-hlNJy5.mjs +237 -0
- package/dist/InteractiveBrowser-B-hlNJy5.mjs.map +1 -0
- package/dist/InteractiveBrowser-nnML0r7w.d.mts +258 -0
- package/dist/LifecyclePublication-BDc_ug5v.mjs +204 -0
- package/dist/LifecyclePublication-BDc_ug5v.mjs.map +1 -0
- package/dist/Memory-CT5bDZqi.d.mts +57 -0
- package/dist/Memory-Dl9ecPpm.mjs +204 -0
- package/dist/Memory-Dl9ecPpm.mjs.map +1 -0
- package/dist/MemoryNamespace-BtnlH_E6.d.mts +35 -0
- package/dist/MemoryNamespace-DZSpjLj9.mjs +116 -0
- package/dist/MemoryNamespace-DZSpjLj9.mjs.map +1 -0
- package/dist/MemoryNotes-CPvcb5OX.d.mts +425 -0
- package/dist/MemoryNotes-i41TsH11.mjs +132 -0
- package/dist/MemoryNotes-i41TsH11.mjs.map +1 -0
- package/dist/MemoryReference-Dd3KSMa7.d.mts +77 -0
- package/dist/MemoryReference-RFU0HQJG.mjs +108 -0
- package/dist/MemoryReference-RFU0HQJG.mjs.map +1 -0
- package/dist/MemoryRevalidation--aAh_Pfq.mjs +136 -0
- package/dist/MemoryRevalidation--aAh_Pfq.mjs.map +1 -0
- package/dist/MemoryRevalidation-FsJ8E61W.d.mts +64 -0
- package/dist/MemoryStore-Bg5RunTk.d.mts +187 -0
- package/dist/MemoryStore-E0J99hb2.mjs +245 -0
- package/dist/MemoryStore-E0J99hb2.mjs.map +1 -0
- package/dist/MessageDelivery-BE2Yf3FC.mjs +615 -0
- package/dist/MessageDelivery-BE2Yf3FC.mjs.map +1 -0
- package/dist/MessageDelivery-C0S-Cakt.d.mts +1129 -0
- package/dist/Messaging-BqWHYf93.d.mts +216 -0
- package/dist/Messaging-DgSiv4f4.mjs +154 -0
- package/dist/Messaging-DgSiv4f4.mjs.map +1 -0
- package/dist/Messaging-DnnpWe-H.d.mts +1074 -0
- package/dist/MessagingHost-Bm5e-kAX.mjs +117 -0
- package/dist/MessagingHost-Bm5e-kAX.mjs.map +1 -0
- package/dist/MessagingHost-DPPHTLdT.d.mts +80 -0
- package/dist/OperationAuthorizer-VSiHCC2S.mjs +72 -0
- package/dist/OperationAuthorizer-VSiHCC2S.mjs.map +1 -0
- package/dist/OperationAuthorizer-y-F-Ox_Q.d.mts +62 -0
- package/dist/Output-CafxF31F.d.mts +22 -0
- package/dist/Output-DQ8mWcgf.mjs +7 -0
- package/dist/Output-DQ8mWcgf.mjs.map +1 -0
- package/dist/PageCapture-BfRURUOA.mjs +275 -0
- package/dist/PageCapture-BfRURUOA.mjs.map +1 -0
- package/dist/PageCapture-C_mE72Sd.d.mts +216 -0
- package/dist/PageScreenshot-BJTASs4o.mjs +53 -0
- package/dist/PageScreenshot-BJTASs4o.mjs.map +1 -0
- package/dist/PageScreenshot-CaoaH7mc.d.mts +48 -0
- package/dist/PersistentHistory-CTAVhHKH.mjs +147 -0
- package/dist/PersistentHistory-CTAVhHKH.mjs.map +1 -0
- package/dist/PersistentHistory-h-C7avqL.d.mts +14 -0
- package/dist/PreparedInputAdmission-DYugcCHR.d.mts +973 -0
- package/dist/PreparedInputAdmission-adqVJJa6.mjs +95 -0
- package/dist/PreparedInputAdmission-adqVJJa6.mjs.map +1 -0
- package/dist/ProvisionalText-BcKpPYKQ.d.mts +70 -0
- package/dist/ProvisionalText-DXddTK4c.mjs +47 -0
- package/dist/ProvisionalText-DXddTK4c.mjs.map +1 -0
- package/dist/Receipt-B-FlCaNH.mjs +35 -0
- package/dist/Receipt-B-FlCaNH.mjs.map +1 -0
- package/dist/Receipt-B4feBxMY.d.mts +31 -0
- package/dist/RecordFormat-DoNh-AFe.mjs +79 -0
- package/dist/RecordFormat-DoNh-AFe.mjs.map +1 -0
- package/dist/RecordFormat-ZMus8Dx8.d.mts +52 -0
- package/dist/Records-C645aQks.mjs +1145 -0
- package/dist/Records-C645aQks.mjs.map +1 -0
- package/dist/Records-C9I1nCL9.d.mts +1423 -0
- package/dist/Recovery-zWy_kmZq.mjs +736 -0
- package/dist/Recovery-zWy_kmZq.mjs.map +1 -0
- package/dist/Redaction-C0zLBAn6.d.mts +28 -0
- package/dist/Redaction-CtyCBMEj.mjs +116 -0
- package/dist/Redaction-CtyCBMEj.mjs.map +1 -0
- package/dist/RememberingStore-BO-OnCgP.mjs +23 -0
- package/dist/RememberingStore-BO-OnCgP.mjs.map +1 -0
- package/dist/RememberingStore-DgqXmILx.d.mts +14 -0
- package/dist/RunContinuation-Bpfp087i.mjs +1060 -0
- package/dist/RunContinuation-Bpfp087i.mjs.map +1 -0
- package/dist/RunContinuation-Cy2W8ASl.d.mts +127 -0
- package/dist/RunEvent-CwgDzXcH.d.mts +465 -0
- package/dist/RunEvent-DJxENnJi.mjs +345 -0
- package/dist/RunEvent-DJxENnJi.mjs.map +1 -0
- package/dist/RunEventSink-B8uM8bw2.mjs +22 -0
- package/dist/RunEventSink-B8uM8bw2.mjs.map +1 -0
- package/dist/RunEventSink-f-T4jbNB.d.mts +105 -0
- package/dist/RunHooks-Bob22Bcj.d.mts +40 -0
- package/dist/RunHooks-DWuLBVdU.mjs +60 -0
- package/dist/RunHooks-DWuLBVdU.mjs.map +1 -0
- package/dist/RunJournal-C_1eqQdr.mjs +1107 -0
- package/dist/RunJournal-C_1eqQdr.mjs.map +1 -0
- package/dist/RunOptions-BVSa3BO2.d.mts +560 -0
- package/dist/RunOptions-COEUCrx4.mjs +61 -0
- package/dist/RunOptions-COEUCrx4.mjs.map +1 -0
- package/dist/RunPolicyUsage-B-JXRZYO.mjs +25 -0
- package/dist/RunPolicyUsage-B-JXRZYO.mjs.map +1 -0
- package/dist/RunPolicyUsage-jvJo0vJp.d.mts +21 -0
- package/dist/RunStorage-CsQQ0Y5u.mjs +304 -0
- package/dist/RunStorage-CsQQ0Y5u.mjs.map +1 -0
- package/dist/Sandbox-37vXP0BV.d.mts +24 -0
- package/dist/Sandbox-Bze6pHYc.mjs +30 -0
- package/dist/Sandbox-Bze6pHYc.mjs.map +1 -0
- package/dist/Schedule-BY0lzbij.mjs +336 -0
- package/dist/Schedule-BY0lzbij.mjs.map +1 -0
- package/dist/ScheduleTransition-DcqokgFt.d.mts +22 -0
- package/dist/ScheduleTransition-DtNzlN9k.mjs +180 -0
- package/dist/ScheduleTransition-DtNzlN9k.mjs.map +1 -0
- package/dist/Scheduling-BaJXJIVt.d.mts +57 -0
- package/dist/Scheduling-BpJN9E1j.mjs +699 -0
- package/dist/Scheduling-BpJN9E1j.mjs.map +1 -0
- package/dist/SemanticMemory-BRV0cuWg.mjs +300 -0
- package/dist/SemanticMemory-BRV0cuWg.mjs.map +1 -0
- package/dist/SemanticMemory-rgWlhW87.d.mts +431 -0
- package/dist/SemanticMemoryIndex-D7yNEWpt.d.mts +826 -0
- package/dist/SemanticMemoryIndex-godQDjNx.mjs +186 -0
- package/dist/SemanticMemoryIndex-godQDjNx.mjs.map +1 -0
- package/dist/SemanticMemoryRevalidation-Bm3_pfsI.d.mts +44 -0
- package/dist/SemanticMemoryRevalidation-D8VV-eU6.mjs +179 -0
- package/dist/SemanticMemoryRevalidation-D8VV-eU6.mjs.map +1 -0
- package/dist/Subagent-BJJN6n0E.mjs +1315 -0
- package/dist/Subagent-BJJN6n0E.mjs.map +1 -0
- package/dist/Subagent-GXU32fQt.d.mts +2368 -0
- package/dist/SubagentContract-B7vQPueI.d.mts +176 -0
- package/dist/SubagentContract-C-7AxTm_.mjs +187 -0
- package/dist/SubagentContract-C-7AxTm_.mjs.map +1 -0
- package/dist/SubagentHost-BC9B9dNT.d.mts +167 -0
- package/dist/SubagentHost-BEnICu7g.mjs +70 -0
- package/dist/SubagentHost-BEnICu7g.mjs.map +1 -0
- package/dist/SubagentReservations-BYNAHPpm.mjs +465 -0
- package/dist/SubagentReservations-BYNAHPpm.mjs.map +1 -0
- package/dist/SubagentReservations-WrmIVzO5.d.mts +185 -0
- package/dist/SubmissionLedger-WG0beEyt.mjs +921 -0
- package/dist/SubmissionLedger-WG0beEyt.mjs.map +1 -0
- package/dist/SubmissionStatus-CPZsOM5a.mjs +17 -0
- package/dist/SubmissionStatus-CPZsOM5a.mjs.map +1 -0
- package/dist/Subscription-BJ0TtZwM.d.mts +815 -0
- package/dist/Subscription-BhQbmUD-.mjs +340 -0
- package/dist/Subscription-BhQbmUD-.mjs.map +1 -0
- package/dist/SubscriptionInput-BbV69oX_.mjs +53 -0
- package/dist/SubscriptionInput-BbV69oX_.mjs.map +1 -0
- package/dist/SubscriptionInput-D6Okd6-z.d.mts +42 -0
- package/dist/SubscriptionTransition-Da9DmAr_.d.mts +23 -0
- package/dist/SubscriptionTransition-lrf733c8.mjs +154 -0
- package/dist/SubscriptionTransition-lrf733c8.mjs.map +1 -0
- package/dist/Subscriptions-BS3AXmQ0.mjs +638 -0
- package/dist/Subscriptions-BS3AXmQ0.mjs.map +1 -0
- package/dist/Subscriptions-DgjahL6V.d.mts +75 -0
- package/dist/Thread-B8JApGHa.mjs +283 -0
- package/dist/Thread-B8JApGHa.mjs.map +1 -0
- package/dist/Thread-BnAtkJl4.d.mts +116 -0
- package/dist/ThreadArchiveRange-1PMdjpdJ.mjs +64 -0
- package/dist/ThreadArchiveRange-1PMdjpdJ.mjs.map +1 -0
- package/dist/ThreadContextHistory-BSStMOLX.mjs +211 -0
- package/dist/ThreadContextHistory-BSStMOLX.mjs.map +1 -0
- package/dist/ThreadContextHistory-BVTD96Pe.d.mts +33 -0
- package/dist/ThreadContextHistoryProjection-Cp7_RR6V.d.mts +59 -0
- package/dist/ThreadContextHistoryProjection-_8uNz-h1.mjs +149 -0
- package/dist/ThreadContextHistoryProjection-_8uNz-h1.mjs.map +1 -0
- package/dist/ThreadHistory-BkyGfv5E.d.mts +76 -0
- package/dist/ThreadHistory-Blt_W31N.mjs +69 -0
- package/dist/ThreadHistory-Blt_W31N.mjs.map +1 -0
- package/dist/ThreadImport-BQDW9E_Y.d.mts +843 -0
- package/dist/ThreadImport-C8Tqiezd.mjs +491 -0
- package/dist/ThreadImport-C8Tqiezd.mjs.map +1 -0
- package/dist/ThreadInvariants-fniroLRY.mjs +154 -0
- package/dist/ThreadInvariants-fniroLRY.mjs.map +1 -0
- package/dist/ThreadInvariants-w53c67YS.d.mts +23 -0
- package/dist/ThreadProjectionMaintenance-4ccU1auU.d.mts +51 -0
- package/dist/ThreadProjectionMaintenance-D6fBjr1q.mjs +37 -0
- package/dist/ThreadProjectionMaintenance-D6fBjr1q.mjs.map +1 -0
- package/dist/ThreadStore-BMUAp5Ta.mjs +937 -0
- package/dist/ThreadStore-BMUAp5Ta.mjs.map +1 -0
- package/dist/ThreadTransfer-B3NkyO_y.mjs +154 -0
- package/dist/ThreadTransfer-B3NkyO_y.mjs.map +1 -0
- package/dist/ThreadTransfer-D0KsqkSR.d.mts +63 -0
- package/dist/ThreadWork-C-xa2Boi.mjs +484 -0
- package/dist/ThreadWork-C-xa2Boi.mjs.map +1 -0
- package/dist/ToolBroker-DkoVyx6T.mjs +42 -0
- package/dist/ToolBroker-DkoVyx6T.mjs.map +1 -0
- package/dist/ToolBroker-Dy2xM6ht.d.mts +134 -0
- package/dist/ToolDiscovery-DHySvLQd.mjs +211 -0
- package/dist/ToolDiscovery-DHySvLQd.mjs.map +1 -0
- package/dist/ToolDiscovery-DvcfbTBk.d.mts +119 -0
- package/dist/ToolExposure-Cn7xETn5.d.mts +6 -0
- package/dist/ToolExposure-D7id9Gt5.d.mts +37 -0
- package/dist/ToolExposure-DCvQWFIa.mjs +9 -0
- package/dist/ToolExposure-DCvQWFIa.mjs.map +1 -0
- package/dist/ToolExposure-DNME8BkG.d.mts +44 -0
- package/dist/ToolExposure-DPnq8Won.mjs +30 -0
- package/dist/ToolExposure-DPnq8Won.mjs.map +1 -0
- package/dist/ToolExposure-DaGaF5tj.mjs +20 -0
- package/dist/ToolExposure-DaGaF5tj.mjs.map +1 -0
- package/dist/ToolExposure.d.mts +4 -0
- package/dist/ToolExposure.mjs +4 -0
- package/dist/ToolReconciler-6bb7xlip.d.mts +81 -0
- package/dist/ToolReconciler-DJQd3SZA.mjs +87 -0
- package/dist/ToolReconciler-DJQd3SZA.mjs.map +1 -0
- package/dist/ToolResult-By5KAje4.d.mts +79 -0
- package/dist/ToolResult-DwZxjlHw.mjs +160 -0
- package/dist/ToolResult-DwZxjlHw.mjs.map +1 -0
- package/dist/ToolResultStorage-BmoRewhh.mjs +46 -0
- package/dist/ToolResultStorage-BmoRewhh.mjs.map +1 -0
- package/dist/ToolResultStorage-Bp5fm0do.d.mts +49 -0
- package/dist/ToolResults-NUk_x837.d.mts +33 -0
- package/dist/ToolResults-nCgBlTp2.mjs +45 -0
- package/dist/ToolResults-nCgBlTp2.mjs.map +1 -0
- package/dist/Usage-B0xgME5f.mjs +340 -0
- package/dist/Usage-B0xgME5f.mjs.map +1 -0
- package/dist/Usage-Bc-jXe_9.d.mts +128 -0
- package/dist/WakeScheduler-DVYj66C-.mjs +74 -0
- package/dist/WakeScheduler-DVYj66C-.mjs.map +1 -0
- package/dist/WakeScheduler-SFqj67Sk.d.mts +74 -0
- package/dist/WebCapture-CA4ZarW2.mjs +64 -0
- package/dist/WebCapture-CA4ZarW2.mjs.map +1 -0
- package/dist/WebCapture-pzIeUJ5W.d.mts +49 -0
- package/dist/WebSearch-DnbOzRL_.mjs +30 -0
- package/dist/WebSearch-DnbOzRL_.mjs.map +1 -0
- package/dist/WebSearch-RBUUOfT8.d.mts +18 -0
- package/dist/Worker-CQu8Qp1j.mjs +267 -0
- package/dist/Worker-CQu8Qp1j.mjs.map +1 -0
- package/dist/Worker-xxucY_0b.d.mts +468 -0
- package/dist/WorkerAdmission-CubQgpsl.d.mts +171 -0
- package/dist/WorkerAdmission-D8tw_OmT.mjs +162 -0
- package/dist/WorkerAdmission-D8tw_OmT.mjs.map +1 -0
- package/dist/WorkerHost-BciHCzHq.d.mts +150 -0
- package/dist/WorkerHost-DuQug9Bq.mjs +73 -0
- package/dist/WorkerHost-DuQug9Bq.mjs.map +1 -0
- package/dist/agent-registration-D9ofkoBa.mjs +262 -0
- package/dist/agent-registration-D9ofkoBa.mjs.map +1 -0
- package/dist/capabilities/BrowserUse.d.mts +2 -0
- package/dist/capabilities/BrowserUse.mjs +1 -0
- package/dist/capabilities/Budget.d.mts +2 -0
- package/dist/capabilities/Budget.mjs +1 -0
- package/dist/capabilities/CodeMode.d.mts +2 -0
- package/dist/capabilities/CodeMode.mjs +1 -0
- package/dist/capabilities/ContextTools.d.mts +2 -0
- package/dist/capabilities/ContextTools.mjs +1 -0
- package/dist/capabilities/MemoryNotes.d.mts +2 -0
- package/dist/capabilities/MemoryNotes.mjs +1 -0
- package/dist/capabilities/Messaging.d.mts +3 -0
- package/dist/capabilities/Messaging.mjs +4 -0
- package/dist/capabilities/Redaction.d.mts +2 -0
- package/dist/capabilities/Redaction.mjs +1 -0
- package/dist/capabilities/RunHooks.d.mts +2 -0
- package/dist/capabilities/RunHooks.mjs +1 -0
- package/dist/capabilities/SemanticMemory.d.mts +2 -0
- package/dist/capabilities/SemanticMemory.mjs +1 -0
- package/dist/capabilities/Subagent.d.mts +4 -0
- package/dist/capabilities/Subagent.mjs +6 -0
- package/dist/capabilities/SubagentReservations.d.mts +2 -0
- package/dist/capabilities/SubagentReservations.mjs +1 -0
- package/dist/capabilities/ToolDiscovery.d.mts +2 -0
- package/dist/capabilities/ToolDiscovery.mjs +1 -0
- package/dist/capabilities/ToolResults.d.mts +2 -0
- package/dist/capabilities/ToolResults.mjs +1 -0
- package/dist/capabilities/WebCapture.d.mts +2 -0
- package/dist/capabilities/WebCapture.mjs +1 -0
- package/dist/capabilities/WebSearch.d.mts +2 -0
- package/dist/capabilities/WebSearch.mjs +1 -0
- package/dist/compaction-C3hXuO4Z.mjs +539 -0
- package/dist/compaction-C3hXuO4Z.mjs.map +1 -0
- package/dist/completion-B_WDnSg-.d.mts +11 -0
- package/dist/core/Agent.d.mts +2 -0
- package/dist/core/Agent.mjs +1 -0
- package/dist/core/AgentError.d.mts +2 -0
- package/dist/core/AgentError.mjs +1 -0
- package/dist/core/AgentPolicy.d.mts +2 -0
- package/dist/core/AgentPolicy.mjs +1 -0
- package/dist/core/AgentUpdates.d.mts +2 -0
- package/dist/core/AgentUpdates.mjs +1 -0
- package/dist/core/FailureDiagnostic.d.mts +2 -0
- package/dist/core/FailureDiagnostic.mjs +1 -0
- package/dist/core/IdGenerator.d.mts +2 -0
- package/dist/core/IdGenerator.mjs +1 -0
- package/dist/core/Identifiers.d.mts +2 -0
- package/dist/core/Identifiers.mjs +1 -0
- package/dist/core/Memory.d.mts +2 -0
- package/dist/core/Memory.mjs +1 -0
- package/dist/core/MemoryNamespace.d.mts +2 -0
- package/dist/core/MemoryNamespace.mjs +1 -0
- package/dist/core/MemoryReference.d.mts +2 -0
- package/dist/core/MemoryReference.mjs +1 -0
- package/dist/core/MemoryRevalidation.d.mts +2 -0
- package/dist/core/MemoryRevalidation.mjs +1 -0
- package/dist/core/MemoryStore.d.mts +2 -0
- package/dist/core/MemoryStore.mjs +1 -0
- package/dist/core/ProvisionalText.d.mts +2 -0
- package/dist/core/ProvisionalText.mjs +1 -0
- package/dist/core/Receipt.d.mts +2 -0
- package/dist/core/Receipt.mjs +1 -0
- package/dist/core/RememberingStore.d.mts +2 -0
- package/dist/core/RememberingStore.mjs +1 -0
- package/dist/core/RunEvent.d.mts +3 -0
- package/dist/core/RunEvent.mjs +1 -0
- package/dist/core/RunPolicyUsage.d.mts +2 -0
- package/dist/core/RunPolicyUsage.mjs +1 -0
- package/dist/core/SemanticMemoryIndex.d.mts +2 -0
- package/dist/core/SemanticMemoryIndex.mjs +1 -0
- package/dist/core/SemanticMemoryRevalidation.d.mts +2 -0
- package/dist/core/SemanticMemoryRevalidation.mjs +1 -0
- package/dist/core/SubagentContract.d.mts +2 -0
- package/dist/core/SubagentContract.mjs +1 -0
- package/dist/core/Thread.d.mts +2 -0
- package/dist/core/Thread.mjs +1 -0
- package/dist/core/ToolResult.d.mts +2 -0
- package/dist/core/ToolResult.mjs +1 -0
- package/dist/core/ToolResultStorage.d.mts +2 -0
- package/dist/core/ToolResultStorage.mjs +1 -0
- package/dist/core/Usage.d.mts +2 -0
- package/dist/core/Usage.mjs +1 -0
- package/dist/core/Worker.d.mts +3 -0
- package/dist/core/Worker.mjs +3 -0
- package/dist/durable/ActivityStore.d.mts +2 -0
- package/dist/durable/ActivityStore.mjs +1 -0
- package/dist/durable/Admin.d.mts +2 -0
- package/dist/durable/Admin.mjs +1 -0
- package/dist/durable/AgentRegistration.d.mts +3 -0
- package/dist/durable/AgentRegistration.mjs +2 -0
- package/dist/durable/CommittedActivity.d.mts +2 -0
- package/dist/durable/CommittedActivity.mjs +1 -0
- package/dist/durable/Digest.d.mts +2 -0
- package/dist/durable/Digest.mjs +3 -0
- package/dist/durable/DurableAgentRuntime.d.mts +3 -0
- package/dist/durable/DurableAgentRuntime.mjs +4 -0
- package/dist/durable/DurableFailpoint.d.mts +2 -0
- package/dist/durable/DurableFailpoint.mjs +1 -0
- package/dist/durable/DurableFailpointTestControl.d.mts +14 -0
- package/dist/durable/DurableFailpointTestControl.mjs +21 -0
- package/dist/durable/DurableFailpointTestControl.mjs.map +1 -0
- package/dist/durable/EventSource.d.mts +2 -0
- package/dist/durable/EventSource.mjs +1 -0
- package/dist/durable/LifecyclePublication.d.mts +2 -0
- package/dist/durable/LifecyclePublication.mjs +1 -0
- package/dist/durable/MessageDelivery.d.mts +2 -0
- package/dist/durable/MessageDelivery.mjs +1 -0
- package/dist/durable/MessageDeliveryStoreConformance.d.mts +401 -0
- package/dist/durable/MessageDeliveryStoreConformance.mjs +273 -0
- package/dist/durable/MessageDeliveryStoreConformance.mjs.map +1 -0
- package/dist/durable/OperationAuthorizer.d.mts +2 -0
- package/dist/durable/OperationAuthorizer.mjs +1 -0
- package/dist/durable/PersistentHistory.d.mts +2 -0
- package/dist/durable/PersistentHistory.mjs +1 -0
- package/dist/durable/PreparedInputAdmission.d.mts +2 -0
- package/dist/durable/PreparedInputAdmission.mjs +1 -0
- package/dist/durable/RecordFormat.d.mts +2 -0
- package/dist/durable/RecordFormat.mjs +1 -0
- package/dist/durable/Records.d.mts +2 -0
- package/dist/durable/Records.mjs +1 -0
- package/dist/durable/Recovery.d.mts +2 -0
- package/dist/durable/Recovery.mjs +1 -0
- package/dist/durable/RunContinuation.d.mts +4 -0
- package/dist/durable/RunContinuation.mjs +4 -0
- package/dist/durable/RunJournal.d.mts +2 -0
- package/dist/durable/RunJournal.mjs +1 -0
- package/dist/durable/RunStorage.d.mts +2 -0
- package/dist/durable/RunStorage.mjs +1 -0
- package/dist/durable/Schedule.d.mts +2 -0
- package/dist/durable/Schedule.mjs +1 -0
- package/dist/durable/ScheduleStoreConformance.d.mts +16 -0
- package/dist/durable/ScheduleStoreConformance.mjs +421 -0
- package/dist/durable/ScheduleStoreConformance.mjs.map +1 -0
- package/dist/durable/ScheduleTransition.d.mts +2 -0
- package/dist/durable/ScheduleTransition.mjs +1 -0
- package/dist/durable/Scheduling.d.mts +2 -0
- package/dist/durable/Scheduling.mjs +1 -0
- package/dist/durable/SettlementPublisher.d.mts +2 -0
- package/dist/durable/SettlementPublisher.mjs +99 -0
- package/dist/durable/SettlementPublisher.mjs.map +1 -0
- package/dist/durable/SqlMemoryStore.d.mts +729 -0
- package/dist/durable/SqlMemoryStore.mjs +626 -0
- package/dist/durable/SqlMemoryStore.mjs.map +1 -0
- package/dist/durable/SqlStorageOwner.d.mts +18 -0
- package/dist/durable/SqlStorageOwner.mjs +6 -0
- package/dist/durable/SqlStorageOwner.mjs.map +1 -0
- package/dist/durable/SubmissionLedger.d.mts +3 -0
- package/dist/durable/SubmissionLedger.mjs +3 -0
- package/dist/durable/SubmissionLedgerConformance.d.mts +31 -0
- package/dist/durable/SubmissionLedgerConformance.mjs +2090 -0
- package/dist/durable/SubmissionLedgerConformance.mjs.map +1 -0
- package/dist/durable/SubmissionStatus.d.mts +2 -0
- package/dist/durable/SubmissionStatus.mjs +1 -0
- package/dist/durable/Subscription.d.mts +2 -0
- package/dist/durable/Subscription.mjs +1 -0
- package/dist/durable/SubscriptionInput.d.mts +2 -0
- package/dist/durable/SubscriptionInput.mjs +1 -0
- package/dist/durable/SubscriptionStoreConformance.d.mts +15 -0
- package/dist/durable/SubscriptionStoreConformance.mjs +816 -0
- package/dist/durable/SubscriptionStoreConformance.mjs.map +1 -0
- package/dist/durable/SubscriptionTransition.d.mts +2 -0
- package/dist/durable/SubscriptionTransition.mjs +1 -0
- package/dist/durable/Subscriptions.d.mts +2 -0
- package/dist/durable/Subscriptions.mjs +1 -0
- package/dist/durable/ThreadArchiveRange.d.mts +2 -0
- package/dist/durable/ThreadArchiveRange.mjs +1 -0
- package/dist/durable/ThreadContextHistory.d.mts +2 -0
- package/dist/durable/ThreadContextHistory.mjs +1 -0
- package/dist/durable/ThreadContextHistoryProjection.d.mts +2 -0
- package/dist/durable/ThreadContextHistoryProjection.mjs +1 -0
- package/dist/durable/ThreadImport.d.mts +2 -0
- package/dist/durable/ThreadImport.mjs +1 -0
- package/dist/durable/ThreadInvariants.d.mts +2 -0
- package/dist/durable/ThreadInvariants.mjs +1 -0
- package/dist/durable/ThreadProjectionMaintenance.d.mts +2 -0
- package/dist/durable/ThreadProjectionMaintenance.mjs +1 -0
- package/dist/durable/ThreadReader.d.mts +2 -0
- package/dist/durable/ThreadReader.mjs +1 -0
- package/dist/durable/ThreadStore.d.mts +3 -0
- package/dist/durable/ThreadStore.mjs +3 -0
- package/dist/durable/ThreadStoreConformance.d.mts +53 -0
- package/dist/durable/ThreadStoreConformance.mjs +402 -0
- package/dist/durable/ThreadStoreConformance.mjs.map +1 -0
- package/dist/durable/ThreadTransfer.d.mts +2 -0
- package/dist/durable/ThreadTransfer.mjs +1 -0
- package/dist/durable/ThreadWork.d.mts +2 -0
- package/dist/durable/ThreadWork.mjs +1 -0
- package/dist/durable/ToolReconciler.d.mts +2 -0
- package/dist/durable/ToolReconciler.mjs +1 -0
- package/dist/durable/WakeScheduler.d.mts +2 -0
- package/dist/durable/WakeScheduler.mjs +1 -0
- package/dist/durable/WorkerAdmission.d.mts +2 -0
- package/dist/durable/WorkerAdmission.mjs +1 -0
- package/dist/durable/WorkerHost.d.mts +2 -0
- package/dist/durable/WorkerHost.mjs +1 -0
- package/dist/engine/AgentRuntime.d.mts +2 -0
- package/dist/engine/AgentRuntime.mjs +1 -0
- package/dist/engine/Compaction.d.mts +4 -0
- package/dist/engine/Compaction.mjs +2 -0
- package/dist/engine/ContextCompactor.d.mts +2 -0
- package/dist/engine/ContextCompactor.mjs +1 -0
- package/dist/engine/ContextHistory.d.mts +2 -0
- package/dist/engine/ContextHistory.mjs +1 -0
- package/dist/engine/ContextWindow.d.mts +2 -0
- package/dist/engine/ContextWindow.mjs +1 -0
- package/dist/engine/DurableStep.d.mts +2 -0
- package/dist/engine/DurableStep.mjs +3 -0
- package/dist/engine/MessagingHost.d.mts +2 -0
- package/dist/engine/MessagingHost.mjs +1 -0
- package/dist/engine/Output.d.mts +3 -0
- package/dist/engine/Output.mjs +2 -0
- package/dist/engine/RunEventSink.d.mts +2 -0
- package/dist/engine/RunEventSink.mjs +1 -0
- package/dist/engine/RunOptions.d.mts +2 -0
- package/dist/engine/RunOptions.mjs +1 -0
- package/dist/engine/SubagentHost.d.mts +2 -0
- package/dist/engine/SubagentHost.mjs +1 -0
- package/dist/engine/ThreadHistory.d.mts +2 -0
- package/dist/engine/ThreadHistory.mjs +1 -0
- package/dist/engine/ToolBroker.d.mts +2 -0
- package/dist/engine/ToolBroker.mjs +1 -0
- package/dist/index.d.mts +90 -0
- package/dist/index.mjs +101 -0
- package/dist/output-contract-CYA4oBhe.mjs +128 -0
- package/dist/output-contract-CYA4oBhe.mjs.map +1 -0
- package/dist/rolldown-runtime-D3KUYPsf.mjs +12 -0
- package/dist/run-context-reader-D1Tx1G6V.d.mts +17 -0
- package/dist/sandbox/CodeExecutor.d.mts +2 -0
- package/dist/sandbox/CodeExecutor.mjs +1 -0
- package/dist/sandbox/InteractiveBrowser.d.mts +2 -0
- package/dist/sandbox/InteractiveBrowser.mjs +1 -0
- package/dist/sandbox/PageCapture.d.mts +2 -0
- package/dist/sandbox/PageCapture.mjs +1 -0
- package/dist/sandbox/PageScreenshot.d.mts +2 -0
- package/dist/sandbox/PageScreenshot.mjs +1 -0
- package/dist/sandbox/Sandbox.d.mts +2 -0
- package/dist/sandbox/Sandbox.mjs +1 -0
- package/dist/subagent-policy-xRJhrc0a.mjs +133 -0
- package/dist/subagent-policy-xRJhrc0a.mjs.map +1 -0
- package/dist/tool-execution-Cl7v8fXU.mjs +16 -0
- package/dist/tool-execution-Cl7v8fXU.mjs.map +1 -0
- package/dist/tool-operations-CauPonM8.mjs +84 -0
- package/dist/tool-operations-CauPonM8.mjs.map +1 -0
- package/dist/utf8-Bl0ZhhGe.mjs +27 -0
- package/dist/utf8-Bl0ZhhGe.mjs.map +1 -0
- package/package.json +491 -3
- package/src/InMemory.ts +79 -0
- package/src/ToolExposure.ts +2 -0
- package/src/capabilities/BrowserUse.ts +212 -0
- package/src/capabilities/Budget.ts +544 -0
- package/src/capabilities/CodeMode.ts +1129 -0
- package/src/capabilities/ContextTools.ts +131 -0
- package/src/capabilities/MemoryNotes.ts +177 -0
- package/src/capabilities/Messaging.ts +260 -0
- package/src/capabilities/Redaction.ts +163 -0
- package/src/capabilities/RunHooks.ts +116 -0
- package/src/capabilities/SemanticMemory.ts +402 -0
- package/src/capabilities/Subagent.ts +2343 -0
- package/src/capabilities/SubagentReservations.ts +807 -0
- package/src/capabilities/ToolDiscovery.ts +291 -0
- package/src/capabilities/ToolResults.ts +50 -0
- package/src/capabilities/WebCapture.ts +64 -0
- package/src/capabilities/WebSearch.ts +45 -0
- package/src/capabilities/internal/subagent-background.ts +1137 -0
- package/src/capabilities/internal/subagent-contract.ts +92 -0
- package/src/capabilities/internal/subagent-policy.ts +205 -0
- package/src/capabilities/internal/subagent-reporting.ts +152 -0
- package/src/core/Agent.ts +528 -0
- package/src/core/AgentError.ts +189 -0
- package/src/core/AgentPolicy.ts +194 -0
- package/src/core/AgentUpdates.ts +104 -0
- package/src/core/FailureDiagnostic.ts +392 -0
- package/src/core/IdGenerator.ts +42 -0
- package/src/core/Identifiers.ts +64 -0
- package/src/core/Memory.ts +283 -0
- package/src/core/MemoryNamespace.ts +202 -0
- package/src/core/MemoryReference.ts +120 -0
- package/src/core/MemoryRevalidation.ts +151 -0
- package/src/core/MemoryStore.ts +371 -0
- package/src/core/Messaging.ts +72 -0
- package/src/core/ProvisionalText.ts +53 -0
- package/src/core/Receipt.ts +42 -0
- package/src/core/RememberingStore.ts +22 -0
- package/src/core/RunEvent.ts +345 -0
- package/src/core/RunPolicyUsage.ts +19 -0
- package/src/core/SemanticMemoryIndex.ts +259 -0
- package/src/core/SemanticMemoryRevalidation.ts +220 -0
- package/src/core/SubagentContract.ts +263 -0
- package/src/core/Thread.ts +447 -0
- package/src/core/ToolExposure.ts +75 -0
- package/src/core/ToolResult.ts +204 -0
- package/src/core/ToolResultStorage.ts +56 -0
- package/src/core/Usage.ts +562 -0
- package/src/core/Worker.ts +236 -0
- package/src/core/internal/agent-updates.ts +42 -0
- package/src/core/internal/completion.ts +33 -0
- package/src/core/internal/json.ts +17 -0
- package/src/core/internal/memory-document.ts +39 -0
- package/src/core/internal/message-status.ts +60 -0
- package/src/core/internal/strict-schema.ts +14 -0
- package/src/core/internal/tool-execution.ts +33 -0
- package/src/core/internal/utf8.ts +32 -0
- package/src/durable/ActivityStore.ts +131 -0
- package/src/durable/Admin.ts +504 -0
- package/src/durable/AgentRegistration.ts +16 -0
- package/src/durable/CommittedActivity.ts +262 -0
- package/src/durable/Digest.ts +57 -0
- package/src/durable/DurableAgentRuntime.ts +12758 -0
- package/src/durable/DurableFailpoint.ts +108 -0
- package/src/durable/DurableFailpointTestControl.ts +39 -0
- package/src/durable/EventSource.ts +179 -0
- package/src/durable/LifecyclePublication.ts +343 -0
- package/src/durable/MessageDelivery.ts +949 -0
- package/src/durable/MessageDeliveryStoreConformance.ts +407 -0
- package/src/durable/OperationAuthorizer.ts +89 -0
- package/src/durable/PersistentHistory.ts +322 -0
- package/src/durable/PreparedInputAdmission.ts +128 -0
- package/src/durable/RecordFormat.ts +113 -0
- package/src/durable/Records.ts +1396 -0
- package/src/durable/Recovery.ts +1022 -0
- package/src/durable/RunContinuation.ts +1946 -0
- package/src/durable/RunJournal.ts +1926 -0
- package/src/durable/RunStorage.ts +533 -0
- package/src/durable/Schedule.ts +445 -0
- package/src/durable/ScheduleStoreConformance.ts +642 -0
- package/src/durable/ScheduleTransition.ts +267 -0
- package/src/durable/Scheduling.ts +1031 -0
- package/src/durable/SettlementPublisher.ts +172 -0
- package/src/durable/SqlMemoryStore.ts +1042 -0
- package/src/durable/SqlStorageOwner.ts +25 -0
- package/src/durable/SubmissionLedger.ts +1247 -0
- package/src/durable/SubmissionLedgerConformance.ts +4695 -0
- package/src/durable/SubmissionStatus.ts +14 -0
- package/src/durable/Subscription.ts +527 -0
- package/src/durable/SubscriptionInput.ts +145 -0
- package/src/durable/SubscriptionStoreConformance.ts +1275 -0
- package/src/durable/SubscriptionTransition.ts +330 -0
- package/src/durable/Subscriptions.ts +1245 -0
- package/src/durable/ThreadArchiveRange.ts +91 -0
- package/src/durable/ThreadContextHistory.ts +338 -0
- package/src/durable/ThreadContextHistoryProjection.ts +219 -0
- package/src/durable/ThreadImport.ts +1199 -0
- package/src/durable/ThreadInvariants.ts +312 -0
- package/src/durable/ThreadProjectionMaintenance.ts +72 -0
- package/src/durable/ThreadReader.ts +21 -0
- package/src/durable/ThreadStore.ts +1258 -0
- package/src/durable/ThreadStoreConformance.ts +877 -0
- package/src/durable/ThreadTransfer.ts +263 -0
- package/src/durable/ThreadWork.ts +713 -0
- package/src/durable/ToolReconciler.ts +112 -0
- package/src/durable/WakeScheduler.ts +125 -0
- package/src/durable/WorkerAdmission.ts +98 -0
- package/src/durable/WorkerHost.ts +204 -0
- package/src/durable/internal/StorageOwner.ts +181 -0
- package/src/durable/internal/agent-registration.ts +713 -0
- package/src/durable/internal/agent-updates.ts +338 -0
- package/src/durable/internal/canonical-json.ts +110 -0
- package/src/durable/internal/evidence.ts +29 -0
- package/src/durable/internal/foreign-diagnostic.ts +48 -0
- package/src/durable/internal/history-prompt.ts +87 -0
- package/src/durable/internal/initial-context.ts +215 -0
- package/src/durable/internal/journal-metadata.ts +188 -0
- package/src/durable/internal/message-status.ts +18 -0
- package/src/durable/internal/messaging-host.ts +615 -0
- package/src/durable/internal/prompt-footprint.ts +47 -0
- package/src/durable/internal/prompt-history-cache.ts +604 -0
- package/src/durable/internal/record-encoding.ts +258 -0
- package/src/durable/internal/record-ownership.ts +68 -0
- package/src/durable/internal/run-context-reader.ts +51 -0
- package/src/durable/internal/run-context.ts +211 -0
- package/src/durable/internal/schedule-time.ts +304 -0
- package/src/durable/internal/thread-import-reader.ts +85 -0
- package/src/durable/internal/thread-initialization.ts +181 -0
- package/src/durable/internal/thread-transfer-source.ts +7 -0
- package/src/durable/internal/tool-operations.ts +138 -0
- package/src/durable/internal/transfer-dependencies.ts +40 -0
- package/src/durable/internal/usage-totals.ts +36 -0
- package/src/durable/internal/worker-host.ts +4041 -0
- package/src/durable/internal/worker-runtime.ts +10 -0
- package/src/engine/AgentRuntime.ts +100 -0
- package/src/engine/Compaction.ts +11 -0
- package/src/engine/ContextCompactor.ts +302 -0
- package/src/engine/ContextHistory.ts +75 -0
- package/src/engine/ContextWindow.ts +81 -0
- package/src/engine/DurableStep.ts +115 -0
- package/src/engine/MessagingHost.ts +118 -0
- package/src/engine/Output.ts +2 -0
- package/src/engine/RunEventSink.ts +124 -0
- package/src/engine/RunOptions.ts +664 -0
- package/src/engine/SubagentHost.ts +231 -0
- package/src/engine/ThreadHistory.ts +125 -0
- package/src/engine/ToolBroker.ts +159 -0
- package/src/engine/ToolExposure.ts +49 -0
- package/src/engine/internal/agent-runtime.ts +11083 -0
- package/src/engine/internal/bounded-value.ts +312 -0
- package/src/engine/internal/compaction.ts +673 -0
- package/src/engine/internal/error-diagnostic.ts +39 -0
- package/src/engine/internal/image-tokens.ts +61 -0
- package/src/engine/internal/interpreter-options.ts +569 -0
- package/src/engine/internal/output-contract.ts +226 -0
- package/src/engine/internal/primitive-delta.ts +103 -0
- package/src/engine/internal/provider-result-staging.ts +211 -0
- package/src/engine/internal/provisional-text.ts +107 -0
- package/src/engine/internal/tool-derivative.ts +47 -0
- package/src/engine/internal/tool-exposure.ts +228 -0
- package/src/engine/internal/tool-telemetry.ts +488 -0
- package/src/index.ts +100 -0
- package/src/sandbox/CodeExecutor.ts +352 -0
- package/src/sandbox/InteractiveBrowser.ts +343 -0
- package/src/sandbox/PageCapture.ts +391 -0
- package/src/sandbox/PageScreenshot.ts +83 -0
- package/src/sandbox/Sandbox.ts +29 -0
- package/README.md +0 -3
|
@@ -0,0 +1,921 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D3KUYPsf.mjs";
|
|
2
|
+
import * as Brand from "effect/Brand";
|
|
3
|
+
import * as Context from "effect/Context";
|
|
4
|
+
import * as Effect from "effect/Effect";
|
|
5
|
+
import * as Schema from "effect/Schema";
|
|
6
|
+
import { l as InputMessage } from "./MessagingHost-Bm5e-kAX.mjs";
|
|
7
|
+
import { o as Value } from "./FailureDiagnostic-DdHV2eFs.mjs";
|
|
8
|
+
import { c as SettlementId, d as ToolCallId, l as SubmissionId, n as AttemptId, o as ReceiptId, t as AgentId, u as ThreadId } from "./Identifiers-LWd4837I.mjs";
|
|
9
|
+
import { i as QueueSequence, n as JoinedToHost, r as Principal, t as IdempotencyKey } from "./Receipt-B-FlCaNH.mjs";
|
|
10
|
+
import { l as RunUsageSummary } from "./Usage-B0xgME5f.mjs";
|
|
11
|
+
import { n as AssignmentTerminal } from "./Worker-CQu8Qp1j.mjs";
|
|
12
|
+
import { r as canonicalJson } from "./Digest-CU6IWj-2.mjs";
|
|
13
|
+
import { Ct as ToolCallResolved, Tt as ToolCallUnknown, U as PersistedJson, Z as RecordId, b as Digest, bt as ToolApprovalDecided, dt as SettlementOutcome, f as CanonicalSequence, jt as WorkerAdmission, r as ApprovalDecision, t as AbortRequested, ut as SettlementFailureDiagnostic, v as DefinitionDigests, y as DeploymentId } from "./Records-C645aQks.mjs";
|
|
14
|
+
// src/durable/SubmissionLedger.ts
|
|
15
|
+
var SubmissionLedger_exports = /* @__PURE__ */ __exportAll({
|
|
16
|
+
AbortCommand: () => AbortCommand,
|
|
17
|
+
AbortIntent: () => AbortIntent,
|
|
18
|
+
AbortIntentRequest: () => AbortIntentRequest,
|
|
19
|
+
AdmissionAdmitted: () => AdmissionAdmitted,
|
|
20
|
+
AdmissionConflict: () => AdmissionConflict,
|
|
21
|
+
AdmissionFence: () => AdmissionFence,
|
|
22
|
+
AdmissionGroup: () => AdmissionGroup,
|
|
23
|
+
AdmissionIndeterminate: () => AdmissionIndeterminate,
|
|
24
|
+
AdmissionNotAdmitted: () => AdmissionNotAdmitted,
|
|
25
|
+
AdmissionPolicyError: () => AdmissionPolicyError,
|
|
26
|
+
AdmissionRequest: () => AdmissionRequest,
|
|
27
|
+
AdmissionResolution: () => AdmissionResolution,
|
|
28
|
+
AdmissionResult: () => AdmissionResult,
|
|
29
|
+
ApprovalConflict: () => ApprovalConflict,
|
|
30
|
+
ApprovalDecisionCommand: () => ApprovalDecisionCommand,
|
|
31
|
+
ApprovalDecisionIntent: () => ApprovalDecisionIntent,
|
|
32
|
+
ApprovalPendingSuspension: () => ApprovalPendingSuspension,
|
|
33
|
+
AttachChildToReservationRequest: () => AttachChildToReservationRequest,
|
|
34
|
+
BeginChildBudgetReleaseRequest: () => BeginChildBudgetReleaseRequest,
|
|
35
|
+
ChildAttachmentSnapshot: () => ChildAttachmentSnapshot,
|
|
36
|
+
ChildBudgetReservationRequest: () => ChildBudgetReservationRequest,
|
|
37
|
+
ChildBudgetReservationSnapshot: () => ChildBudgetReservationSnapshot,
|
|
38
|
+
ChildReservationConflict: () => ChildReservationConflict,
|
|
39
|
+
ChildReservationId: () => ChildReservationId,
|
|
40
|
+
ChildReservationStatus: () => ChildReservationStatus,
|
|
41
|
+
ChildSettledNotification: () => ChildSettledNotification,
|
|
42
|
+
ChildSettledOutcome: () => ChildSettledOutcome,
|
|
43
|
+
Claim: () => Claim,
|
|
44
|
+
ClaimHandoff: () => ClaimHandoff,
|
|
45
|
+
ClaimJoiningRequest: () => ClaimJoiningRequest,
|
|
46
|
+
ClaimRequest: () => ClaimRequest,
|
|
47
|
+
FundingOwner: () => FundingOwner,
|
|
48
|
+
FundingOwnerRequest: () => FundingOwnerRequest,
|
|
49
|
+
IdempotencyKey: () => IdempotencyKey,
|
|
50
|
+
InputAppliedMarker: () => InputAppliedMarker,
|
|
51
|
+
JoinSnapshot: () => JoinSnapshot,
|
|
52
|
+
JoinedToHost: () => JoinedToHost,
|
|
53
|
+
JoiningClaim: () => JoiningClaim,
|
|
54
|
+
LedgerCapabilities: () => LedgerCapabilities,
|
|
55
|
+
LedgerError: () => LedgerError,
|
|
56
|
+
MarkInputAppliedRequest: () => MarkInputAppliedRequest,
|
|
57
|
+
MarkJoinedRequest: () => MarkJoinedRequest,
|
|
58
|
+
MarkReadyRequest: () => MarkReadyRequest,
|
|
59
|
+
MarkUnknownRequest: () => MarkUnknownRequest,
|
|
60
|
+
OwnershipLost: () => OwnershipLost,
|
|
61
|
+
ParentLinkage: () => ParentLinkage,
|
|
62
|
+
Principal: () => Principal,
|
|
63
|
+
QueueSequence: () => QueueSequence,
|
|
64
|
+
RecoverySnapshot: () => RecoverySnapshot,
|
|
65
|
+
RecoverySnapshotRequest: () => RecoverySnapshotRequest,
|
|
66
|
+
ReleaseChildBudgetRequest: () => ReleaseChildBudgetRequest,
|
|
67
|
+
ReservedChildBudget: () => ReservedChildBudget,
|
|
68
|
+
ResolutionAbortSubmission: () => ResolutionAbortSubmission,
|
|
69
|
+
ResolutionCompletedWithResult: () => ResolutionCompletedWithResult,
|
|
70
|
+
ResolutionNeverHappened: () => ResolutionNeverHappened,
|
|
71
|
+
ResolutionSafeToRetry: () => ResolutionSafeToRetry,
|
|
72
|
+
RevertJoiningRequest: () => RevertJoiningRequest,
|
|
73
|
+
Settlement: () => Settlement,
|
|
74
|
+
SettlementConflict: () => SettlementConflict,
|
|
75
|
+
SettlementFinalization: () => SettlementFinalization,
|
|
76
|
+
SubmissionAdmissionFence: () => SubmissionAdmissionFence,
|
|
77
|
+
SubmissionLedger: () => SubmissionLedger,
|
|
78
|
+
SubmissionLookup: () => SubmissionLookup,
|
|
79
|
+
SubmissionLookupById: () => SubmissionLookupById,
|
|
80
|
+
SubmissionLookupByKey: () => SubmissionLookupByKey,
|
|
81
|
+
SubmissionScheduling: () => SubmissionScheduling,
|
|
82
|
+
SubmissionSnapshot: () => SubmissionSnapshot,
|
|
83
|
+
SubmissionState: () => SubmissionState,
|
|
84
|
+
SubmissionWorkItem: () => SubmissionWorkItem,
|
|
85
|
+
SuspendRequest: () => SuspendRequest,
|
|
86
|
+
SuspensionOutcome: () => SuspensionOutcome,
|
|
87
|
+
SuspensionReason: () => SuspensionReason,
|
|
88
|
+
SuspensionSnapshot: () => SuspensionSnapshot,
|
|
89
|
+
UnknownResolution: () => UnknownResolution,
|
|
90
|
+
UnknownResolutionCommand: () => UnknownResolutionCommand,
|
|
91
|
+
UnknownResolutionConflict: () => UnknownResolutionConflict,
|
|
92
|
+
UnknownResolutionIntent: () => UnknownResolutionIntent,
|
|
93
|
+
UnknownResolutionKind: () => UnknownResolutionKind,
|
|
94
|
+
WaitingChild: () => WaitingChild,
|
|
95
|
+
WaitingForChildSuspension: () => WaitingForChildSuspension,
|
|
96
|
+
WorkerLedgerState: () => WorkerLedgerState,
|
|
97
|
+
WorkerStopCommand: () => WorkerStopCommand,
|
|
98
|
+
approvalDecisionsCover: () => approvalDecisionsCover,
|
|
99
|
+
settlementFailureFromRecord: () => settlementFailureFromRecord,
|
|
100
|
+
submissionAbortBatchId: () => submissionAbortBatchId,
|
|
101
|
+
submissionAbortRecordId: () => submissionAbortRecordId,
|
|
102
|
+
submissionInputBatchId: () => submissionInputBatchId,
|
|
103
|
+
submissionInputRecordId: () => submissionInputRecordId,
|
|
104
|
+
submissionSettlementBatchId: () => submissionSettlementBatchId,
|
|
105
|
+
submissionSettlementId: () => submissionSettlementId,
|
|
106
|
+
submissionSettlementRecordId: () => submissionSettlementRecordId,
|
|
107
|
+
unknownResolutionKind: () => unknownResolutionKind,
|
|
108
|
+
unknownResolutionMatchesResult: () => unknownResolutionMatchesResult,
|
|
109
|
+
workerTerminalFromRecord: () => workerTerminalFromRecord
|
|
110
|
+
});
|
|
111
|
+
/**
|
|
112
|
+
* Ledger lifecycle states for one Submission. `settled` is the only terminal state; every other
|
|
113
|
+
* state carries an outstanding accepted-work obligation (Accepted-work Contract, DUR-002).
|
|
114
|
+
*
|
|
115
|
+
* Phase 5 states:
|
|
116
|
+
*
|
|
117
|
+
* - `joining` — a queued Submission claimed by an active host Run, before its canonical
|
|
118
|
+
* `UserInputRecorded` append; recovery reverts it to `ready` (DUR-016).
|
|
119
|
+
* - `joined` — the input is canonical and linked to its host; the Submission settles WITH the
|
|
120
|
+
* host Run's outcome.
|
|
121
|
+
* - `suspended` — durably waiting for explicit approval decisions; the ownership period has
|
|
122
|
+
* ended and the lane consumes no worker permit while the obligation stays owed.
|
|
123
|
+
* - `unknown` — at least one Tool Call has a durable Unknown Outcome; this Submission is
|
|
124
|
+
* parked until an authorized resolution covers every open call or a durable abort intent
|
|
125
|
+
* authorizes cleanup without Tool replay. Later eligible input may run (DUR-012/DUR-017).
|
|
126
|
+
*
|
|
127
|
+
* `claim` never grants or bypasses a `joining`, `joined`, or `suspended` head. It skips unknown
|
|
128
|
+
* work without an abort intent. Any live ownership in the Thread prevents another claim.
|
|
129
|
+
*/
|
|
130
|
+
const SubmissionState = Schema.Literals([
|
|
131
|
+
"admitted",
|
|
132
|
+
"ready",
|
|
133
|
+
"joining",
|
|
134
|
+
"joined",
|
|
135
|
+
"input-applied",
|
|
136
|
+
"suspended",
|
|
137
|
+
"unknown",
|
|
138
|
+
"settled"
|
|
139
|
+
]);
|
|
140
|
+
/**
|
|
141
|
+
* Opt-in host policy for handling the next runnable same-Agent input in its own Run at a complete Turn
|
|
142
|
+
* boundary. This never joins inputs or changes their principals, grants, or receipts. The
|
|
143
|
+
* runtime selects the ordered candidate; policy cannot select an arbitrary Submission.
|
|
144
|
+
* Approval waits, child waits and incomplete Tool batches are not handoff boundaries. Hosts
|
|
145
|
+
* retaining independent replies must also leave those inputs unclaimed by `claimJoining`.
|
|
146
|
+
* In-flight model requests and Tool batches run to their existing safe boundary.
|
|
147
|
+
*/
|
|
148
|
+
const SubmissionScheduling = Context.Reference("@effect-agent/thread/SubmissionScheduling", { defaultValue: () => ({}) });
|
|
149
|
+
/**
|
|
150
|
+
* What a SubmissionLedger adapter claims about itself. `durable-node` asserts single-node
|
|
151
|
+
* process-crash durability (fsync-backed storage); `durable-cloudflare` asserts the same
|
|
152
|
+
* single-serialized-owner crash durability through Durable Object storage output gates;
|
|
153
|
+
* `non-durable` marks reference adapters whose state does not survive the process (in-memory
|
|
154
|
+
* conformance/test adapters). The label is an honest self-description for reports and
|
|
155
|
+
* evidence — no runtime behavior branches on it.
|
|
156
|
+
*/
|
|
157
|
+
var LedgerCapabilities = class extends Schema.Class("@effect-agent/thread/LedgerCapabilities")({ durability: Schema.Literals([
|
|
158
|
+
"durable-node",
|
|
159
|
+
"durable-cloudflare",
|
|
160
|
+
"non-durable"
|
|
161
|
+
]) }) {};
|
|
162
|
+
/**
|
|
163
|
+
* Immutable lineage from a child Submission to the exact parent Tool Call that established it
|
|
164
|
+
* (spec §12 step 5, SUB-004). Recorded once at admission and never rewritten; it is an
|
|
165
|
+
* identifier, not an authorization capability (D10) — the join path verifies the canonical
|
|
166
|
+
* Parent Link records, never this marker alone.
|
|
167
|
+
*/
|
|
168
|
+
var ParentLinkage = class extends Schema.Class("@effect-agent/thread/ParentLinkage")({
|
|
169
|
+
parentSubmissionId: SubmissionId,
|
|
170
|
+
parentToolCallId: ToolCallId
|
|
171
|
+
}) {};
|
|
172
|
+
/** Host-owned policy coordinates, interpreted only by the destination transaction owner. */
|
|
173
|
+
const AdmissionFence = Schema.Struct({
|
|
174
|
+
policyId: Schema.NonEmptyString.check(Schema.isMaxLength(128)),
|
|
175
|
+
key: Schema.NonEmptyString.check(Schema.isMaxLength(256)),
|
|
176
|
+
revision: Schema.NonEmptyString.check(Schema.isMaxLength(256))
|
|
177
|
+
});
|
|
178
|
+
const AdmissionGroup = Schema.NonEmptyString.check(Schema.isMaxLength(256));
|
|
179
|
+
/** Fresh admission alone may be refused; unavailability never proves non-admission. */
|
|
180
|
+
var AdmissionPolicyError = class extends Schema.TaggedError()("AdmissionPolicyError", {
|
|
181
|
+
reason: Schema.Literals([
|
|
182
|
+
"refused",
|
|
183
|
+
"unavailable",
|
|
184
|
+
"occupied"
|
|
185
|
+
]),
|
|
186
|
+
code: Schema.NonEmptyString.check(Schema.isMaxLength(128)),
|
|
187
|
+
cause: Schema.optionalKey(Value),
|
|
188
|
+
stack: Schema.optionalKey(Schema.String)
|
|
189
|
+
}) {};
|
|
190
|
+
/**
|
|
191
|
+
* Durable admission input. `inputDigest` must be the digest of the canonical JSON encoding of
|
|
192
|
+
* `inputPayload` (see `digestJson`); admission idempotency compares digests, never re-encodes.
|
|
193
|
+
* `agentId`/`agentDigests`/`deploymentId` are persisted so recovery can complete Thread
|
|
194
|
+
* materialization without the submitting client. `parentLinkage` is present exactly when the
|
|
195
|
+
* Submission is a durable attached child (spec §12); an admission replay must repeat the same
|
|
196
|
+
* linkage (or its absence) or fail with `AdmissionConflict`.
|
|
197
|
+
*/
|
|
198
|
+
var AdmissionRequest = class extends Schema.Class("@effect-agent/thread/AdmissionRequest")({
|
|
199
|
+
threadId: ThreadId,
|
|
200
|
+
principal: Principal,
|
|
201
|
+
idempotencyKey: IdempotencyKey,
|
|
202
|
+
agentId: AgentId,
|
|
203
|
+
agentDigests: DefinitionDigests,
|
|
204
|
+
deploymentId: DeploymentId,
|
|
205
|
+
inputPayload: PersistedJson,
|
|
206
|
+
inputDigest: Digest,
|
|
207
|
+
parentLinkage: Schema.optionalKey(ParentLinkage),
|
|
208
|
+
workerAdmission: Schema.optionalKey(WorkerAdmission),
|
|
209
|
+
messageAdmission: Schema.optionalKey(InputMessage),
|
|
210
|
+
admissionGroup: Schema.optionalKey(AdmissionGroup),
|
|
211
|
+
admissionFence: Schema.optionalKey(AdmissionFence)
|
|
212
|
+
}) {};
|
|
213
|
+
/**
|
|
214
|
+
* The committed admission row. `replayed` is true when an identical (thread, principal,
|
|
215
|
+
* idempotencyKey, inputDigest) admission already existed; the original identities are returned
|
|
216
|
+
* unchanged so a client retry resumes rather than duplicates (DUR-001).
|
|
217
|
+
*/
|
|
218
|
+
var AdmissionResult = class extends Schema.Class("@effect-agent/thread/AdmissionResult")({
|
|
219
|
+
submissionId: SubmissionId,
|
|
220
|
+
receiptId: ReceiptId,
|
|
221
|
+
queueSequence: QueueSequence,
|
|
222
|
+
state: SubmissionState,
|
|
223
|
+
replayed: Schema.Boolean
|
|
224
|
+
}) {};
|
|
225
|
+
var MarkReadyRequest = class extends Schema.Class("@effect-agent/thread/MarkReadyRequest")({ submissionId: SubmissionId }) {};
|
|
226
|
+
var SubmissionLookupById = class extends Schema.TaggedClass("@effect-agent/thread/SubmissionLookupById")("SubmissionLookupById", { submissionId: SubmissionId }) {};
|
|
227
|
+
var SubmissionLookupByKey = class extends Schema.TaggedClass("@effect-agent/thread/SubmissionLookupByKey")("SubmissionLookupByKey", {
|
|
228
|
+
threadId: ThreadId,
|
|
229
|
+
principal: Principal,
|
|
230
|
+
idempotencyKey: IdempotencyKey
|
|
231
|
+
}) {};
|
|
232
|
+
/** Lookup by Submission identity or by the scoped client idempotency key. */
|
|
233
|
+
const SubmissionLookup = Schema.Union([SubmissionLookupById, SubmissionLookupByKey]);
|
|
234
|
+
/**
|
|
235
|
+
* Control-only worklist entry. Discovery validates identities, ordering and state without
|
|
236
|
+
* decoding retained execution payloads. Hydrate only the selected Thread through `lookup`
|
|
237
|
+
* or `loadRecoverySnapshot`, inside its recovery failure boundary.
|
|
238
|
+
*/
|
|
239
|
+
var SubmissionWorkItem = class extends Schema.Class("@effect-agent/thread/SubmissionWorkItem")({
|
|
240
|
+
submissionId: SubmissionId,
|
|
241
|
+
threadId: ThreadId,
|
|
242
|
+
queueSequence: QueueSequence,
|
|
243
|
+
principal: Principal,
|
|
244
|
+
idempotencyKey: IdempotencyKey,
|
|
245
|
+
deploymentId: DeploymentId,
|
|
246
|
+
receiptId: ReceiptId,
|
|
247
|
+
state: SubmissionState
|
|
248
|
+
}) {};
|
|
249
|
+
/** The full durable ledger view of one Submission. */
|
|
250
|
+
var SubmissionSnapshot = class extends Schema.Class("@effect-agent/thread/SubmissionSnapshot")({
|
|
251
|
+
...SubmissionWorkItem.fields,
|
|
252
|
+
agentId: AgentId,
|
|
253
|
+
agentDigests: DefinitionDigests,
|
|
254
|
+
inputPayload: PersistedJson,
|
|
255
|
+
inputDigest: Digest,
|
|
256
|
+
settledOutcome: Schema.optionalKey(SettlementOutcome),
|
|
257
|
+
/** First committed finalization time; paired with settledRecordId by native adapters. */
|
|
258
|
+
settledAt: Schema.optionalKey(Schema.DateTimeUtcFromString),
|
|
259
|
+
/** Exact canonical settlement behind the finalized projection; not a substitute for reading it. */
|
|
260
|
+
settledRecordId: Schema.optionalKey(RecordId),
|
|
261
|
+
createdAt: Schema.DateTimeUtcFromString,
|
|
262
|
+
readyAt: Schema.optionalKey(Schema.DateTimeUtcFromString),
|
|
263
|
+
admissionGroup: Schema.optionalKey(AdmissionGroup),
|
|
264
|
+
admissionFence: Schema.optionalKey(AdmissionFence),
|
|
265
|
+
parentLinkage: Schema.optionalKey(ParentLinkage),
|
|
266
|
+
workerAdmission: Schema.optionalKey(WorkerAdmission),
|
|
267
|
+
messageAdmission: Schema.optionalKey(InputMessage)
|
|
268
|
+
}) {};
|
|
269
|
+
/** Resolve the exact selected input to its immutable host Run without enumerating joins. */
|
|
270
|
+
const FundingOwnerRequest = Schema.Struct({
|
|
271
|
+
threadId: ThreadId,
|
|
272
|
+
submissionId: SubmissionId
|
|
273
|
+
});
|
|
274
|
+
const FundingOwner = Schema.Struct({
|
|
275
|
+
selected: SubmissionSnapshot,
|
|
276
|
+
owner: SubmissionSnapshot
|
|
277
|
+
});
|
|
278
|
+
/** Bounded native control facts. Canonical input/Run records remain ThreadStore-owned. */
|
|
279
|
+
const WorkerLedgerState = Schema.Struct({
|
|
280
|
+
latest: Schema.NullOr(SubmissionSnapshot),
|
|
281
|
+
active: Schema.NullOr(SubmissionSnapshot),
|
|
282
|
+
stopped: Schema.Boolean,
|
|
283
|
+
terminal: Schema.optionalKey(AssignmentTerminal)
|
|
284
|
+
}).check(Schema.makeFilter((state) => state.terminal === void 0 || state.stopped));
|
|
285
|
+
/** The authoritative store proves the scoped idempotency key was never admitted (SUB-031). */
|
|
286
|
+
var AdmissionNotAdmitted = class extends Schema.TaggedClass("@effect-agent/thread/AdmissionNotAdmitted")("NotAdmitted", {}) {};
|
|
287
|
+
/** The scoped idempotency key was admitted; the full Submission snapshot is authoritative. */
|
|
288
|
+
var AdmissionAdmitted = class extends Schema.TaggedClass("@effect-agent/thread/AdmissionAdmitted")("Admitted", { submission: SubmissionSnapshot }) {};
|
|
289
|
+
/**
|
|
290
|
+
* The adapter cannot currently prove admission or its absence (e.g. the authoritative child
|
|
291
|
+
* owner is unreachable on a partitioned platform). Callers wait and retry; an indeterminate
|
|
292
|
+
* answer NEVER permits a second admission attempt (SUB-031).
|
|
293
|
+
*/
|
|
294
|
+
var AdmissionIndeterminate = class extends Schema.TaggedClass("@effect-agent/thread/AdmissionIndeterminate")("Indeterminate", { reason: Schema.String.check(Schema.isMaxLength(4096)) }) {};
|
|
295
|
+
/**
|
|
296
|
+
* The tri-state answer of `resolveAdmission` (spec §12: "absence from an eventually consistent
|
|
297
|
+
* projection is never proof"). Single strongly consistent stores derive `NotAdmitted`/`Admitted`
|
|
298
|
+
* from a direct lookup; only adapters that can genuinely fail to reach the authoritative owner
|
|
299
|
+
* answer `Indeterminate`.
|
|
300
|
+
*/
|
|
301
|
+
const AdmissionResolution = Schema.Union([
|
|
302
|
+
AdmissionNotAdmitted,
|
|
303
|
+
AdmissionAdmitted,
|
|
304
|
+
AdmissionIndeterminate
|
|
305
|
+
]);
|
|
306
|
+
/**
|
|
307
|
+
* A trusted runtime's advisory handoff after committing a complete Turn and closing its
|
|
308
|
+
* Attempt. The owner rechecks the entire deferred prefix and target under its mutation gate.
|
|
309
|
+
* Deferred Runs retain their identities and obligations; losing this hint resumes FIFO.
|
|
310
|
+
*/
|
|
311
|
+
var ClaimHandoff = class extends Schema.Class("@effect-agent/thread/ClaimHandoff")({
|
|
312
|
+
deferredSubmissionIds: Schema.NonEmptyArray(SubmissionId),
|
|
313
|
+
submissionId: SubmissionId
|
|
314
|
+
}) {};
|
|
315
|
+
var ClaimRequest = class extends Schema.Class("@effect-agent/thread/ClaimRequest")({
|
|
316
|
+
threadId: ThreadId,
|
|
317
|
+
handoff: Schema.optionalKey(ClaimHandoff)
|
|
318
|
+
}) {};
|
|
319
|
+
/**
|
|
320
|
+
* Selected accepted work. Attempt identity is diagnostic; only the bound scoped session
|
|
321
|
+
* grants execution authority. No field is a portable ownership capability.
|
|
322
|
+
*/
|
|
323
|
+
var Claim = class extends Schema.Class("@effect-agent/thread/Claim")({
|
|
324
|
+
submissionId: SubmissionId,
|
|
325
|
+
attemptId: AttemptId,
|
|
326
|
+
inputPayload: PersistedJson
|
|
327
|
+
}) {};
|
|
328
|
+
/**
|
|
329
|
+
* The canonical position of the applied `UserInputRecorded` record for one Submission.
|
|
330
|
+
*/
|
|
331
|
+
var MarkInputAppliedRequest = class extends Schema.Class("@effect-agent/thread/MarkInputAppliedRequest")({
|
|
332
|
+
submissionId: SubmissionId,
|
|
333
|
+
recordId: RecordId,
|
|
334
|
+
sequence: CanonicalSequence
|
|
335
|
+
}) {};
|
|
336
|
+
var InputAppliedMarker = class extends Schema.Class("@effect-agent/thread/InputAppliedMarker")({
|
|
337
|
+
recordId: RecordId,
|
|
338
|
+
sequence: CanonicalSequence
|
|
339
|
+
}) {};
|
|
340
|
+
var SettlementFinalization = class extends Schema.Class("@effect-agent/thread/SettlementFinalization")({
|
|
341
|
+
submissionId: SubmissionId,
|
|
342
|
+
settlementId: SettlementId
|
|
343
|
+
}) {};
|
|
344
|
+
const SettlementFields = Schema.Struct({
|
|
345
|
+
submissionId: SubmissionId,
|
|
346
|
+
settlementId: SettlementId,
|
|
347
|
+
receiptId: ReceiptId,
|
|
348
|
+
outcome: SettlementOutcome,
|
|
349
|
+
/** Schema-encoded application disposition materialized from the exact canonical settlement. */
|
|
350
|
+
runDisposition: Schema.optionalKey(PersistedJson),
|
|
351
|
+
/** Canonical aggregate of model usage and estimated spend for this Run. */
|
|
352
|
+
usageSummary: Schema.optionalKey(RunUsageSummary),
|
|
353
|
+
/** Present exactly for `failed`; its Schema rejects excess keys before canonical projection. */
|
|
354
|
+
failure: Schema.optionalKey(SettlementFailureDiagnostic),
|
|
355
|
+
settledAt: Schema.DateTimeUtcFromString
|
|
356
|
+
}).check(Schema.makeFilter((settlement) => settlement.outcome === "failed" === (settlement.failure !== void 0), { title: "failure exactly on a failed Settlement" }));
|
|
357
|
+
/** The single durable terminal outcome recorded for one accepted Submission (DUR-002). */
|
|
358
|
+
var Settlement = class extends Schema.Class("@effect-agent/thread/Settlement")(SettlementFields) {};
|
|
359
|
+
/**
|
|
360
|
+
* Project the bounded failed-settlement diagnostic from an already Schema-validated exact
|
|
361
|
+
* canonical record. Storage adapters use this when materializing their operational Settlement value;
|
|
362
|
+
* the canonical record remains the authority.
|
|
363
|
+
*/
|
|
364
|
+
const settlementFailureFromRecord = (record) => {
|
|
365
|
+
const payload = record.payload;
|
|
366
|
+
return payload._tag === "SubmissionSettled" && payload.outcome === "failed" ? payload.result : void 0;
|
|
367
|
+
};
|
|
368
|
+
/**
|
|
369
|
+
* Assignment intent derived only from frozen admission and exact settlement evidence.
|
|
370
|
+
* Joined receipts and cancellation before a Run starts do not finish an assignment.
|
|
371
|
+
* Adapters suppress completed intent when newer accepted input remains unapplied, then
|
|
372
|
+
* install the first seal and outstanding abort intents atomically before releasing the lane.
|
|
373
|
+
*/
|
|
374
|
+
const workerTerminalFromRecord = (submission, record) => {
|
|
375
|
+
const payload = record.payload;
|
|
376
|
+
if (submission.workerAdmission?.origin.lifecycle !== "assignment" || payload._tag !== "SubmissionSettled" || payload.runId !== void 0 && payload.runId !== `run:${submission.submissionId}`) return;
|
|
377
|
+
if (payload.outcome === "failed" || payload.finishReason === "budget-exhausted") return "failed";
|
|
378
|
+
if (payload.outcome === "aborted") return payload.runId === void 0 ? void 0 : "cancelled";
|
|
379
|
+
return payload.runDisposition === "completed" ? "completed" : void 0;
|
|
380
|
+
};
|
|
381
|
+
/** Destination-owned permanent inbox seal; recorded atomically with all outstanding abort intents. */
|
|
382
|
+
const WorkerStopCommand = Schema.Struct({
|
|
383
|
+
threadId: ThreadId,
|
|
384
|
+
author: Principal
|
|
385
|
+
});
|
|
386
|
+
/**
|
|
387
|
+
* A durable abort command (durability §13). Field bounds are exactly those of the canonical
|
|
388
|
+
* `AbortRequested` payload so the intent can become canonical without re-validation.
|
|
389
|
+
*/
|
|
390
|
+
var AbortCommand = class extends Schema.Class("@effect-agent/thread/AbortCommand")({
|
|
391
|
+
submissionId: SubmissionId,
|
|
392
|
+
author: AbortRequested.fields.author,
|
|
393
|
+
reason: AbortRequested.fields.reason
|
|
394
|
+
}) {};
|
|
395
|
+
/**
|
|
396
|
+
* The recorded abort intent. `canonicalRecordId` is present once the corresponding canonical
|
|
397
|
+
* `AbortRequested` record has been appended (its identity is deterministic; see
|
|
398
|
+
* `submissionAbortRecordId`).
|
|
399
|
+
*/
|
|
400
|
+
var AbortIntent = class extends Schema.Class("@effect-agent/thread/AbortIntent")({
|
|
401
|
+
submissionId: SubmissionId,
|
|
402
|
+
author: AbortRequested.fields.author,
|
|
403
|
+
reason: AbortRequested.fields.reason,
|
|
404
|
+
requestedAt: Schema.DateTimeUtcFromString,
|
|
405
|
+
canonicalRecordId: Schema.optionalKey(RecordId)
|
|
406
|
+
}) {};
|
|
407
|
+
/** Address one lane-local abort intent without loading unrelated recovery state. */
|
|
408
|
+
var AbortIntentRequest = class extends Schema.Class("@effect-agent/thread/AbortIntentRequest")({ submissionId: SubmissionId }) {};
|
|
409
|
+
/**
|
|
410
|
+
* Atomic claim of the contiguous ready prefix of strictly-later queued Submissions for joining
|
|
411
|
+
* into the active host Run (plan §2.5). The bound host session owns the lane. An `admitted`-but-not-`ready` row breaks the prefix;
|
|
412
|
+
* an aborted-settled row is a closed obligation and is skipped as a non-gap (P7 §7(c)).
|
|
413
|
+
*/
|
|
414
|
+
var ClaimJoiningRequest = class extends Schema.Class("@effect-agent/thread/ClaimJoiningRequest")({
|
|
415
|
+
threadId: ThreadId,
|
|
416
|
+
hostSubmissionId: SubmissionId,
|
|
417
|
+
maxCount: Schema.Int.check(Schema.isGreaterThan(0))
|
|
418
|
+
}) {};
|
|
419
|
+
/** One queued Submission transitioned to `joining` under the host's ownership. */
|
|
420
|
+
var JoiningClaim = class extends Schema.Class("@effect-agent/thread/JoiningClaim")({
|
|
421
|
+
submissionId: SubmissionId,
|
|
422
|
+
queueSequence: QueueSequence,
|
|
423
|
+
inputPayload: PersistedJson
|
|
424
|
+
}) {};
|
|
425
|
+
/**
|
|
426
|
+
* The canonical position of one joined Submission's `UserInputRecorded` record (`input:{sid}`).
|
|
427
|
+
* Marking transitions `joining → joined` and records the host linkage established at claim time.
|
|
428
|
+
*/
|
|
429
|
+
var MarkJoinedRequest = class extends Schema.Class("@effect-agent/thread/MarkJoinedRequest")({
|
|
430
|
+
submissionId: SubmissionId,
|
|
431
|
+
recordId: RecordId,
|
|
432
|
+
sequence: CanonicalSequence
|
|
433
|
+
}) {};
|
|
434
|
+
/**
|
|
435
|
+
* Recovery-only revert of a `joining` Submission whose canonical input append never committed
|
|
436
|
+
* (DUR-016): `joining → ready`, idempotent, a no-op when the Submission already joined.
|
|
437
|
+
* A guard limits the revert to the exact linked host: the root gate serializes it with the linked host. A changed host link is a no-op.
|
|
438
|
+
* Adapters validate the guard atomically with the transition. Unguarded requests retain the
|
|
439
|
+
* caller-owned recovery contract.
|
|
440
|
+
*/
|
|
441
|
+
var RevertJoiningRequest = class extends Schema.Class("@effect-agent/thread/RevertJoiningRequest")({
|
|
442
|
+
submissionId: SubmissionId,
|
|
443
|
+
guard: Schema.optionalKey(Schema.Struct({ hostSubmissionId: SubmissionId }))
|
|
444
|
+
}) {};
|
|
445
|
+
/**
|
|
446
|
+
* Why one Submission is durably suspended. Approval was the only Phase 5 reason; S2 adds
|
|
447
|
+
* `WaitingForChild` (spec §12 step 10) and the union keeps later suspension families (e.g.
|
|
448
|
+
* operator quarantine) additive.
|
|
449
|
+
*/
|
|
450
|
+
var ApprovalPendingSuspension = class extends Schema.TaggedClass("@effect-agent/thread/ApprovalPendingSuspension")("ApprovalPending", { toolCallIds: Schema.NonEmptyArray(ToolCallId) }) {};
|
|
451
|
+
/** A denial ends the batch; otherwise every retained approval must be decided to wake it. */
|
|
452
|
+
const approvalDecisionsCover = (toolCallIds, decisionFor) => {
|
|
453
|
+
let allDecided = true;
|
|
454
|
+
for (const toolCallId of toolCallIds) {
|
|
455
|
+
const decision = decisionFor(toolCallId);
|
|
456
|
+
if (decision === "denied") return true;
|
|
457
|
+
if (decision === void 0) allDecided = false;
|
|
458
|
+
}
|
|
459
|
+
return allDecided;
|
|
460
|
+
};
|
|
461
|
+
/** One attached child a `waitingForChild` parent is durably waiting on (spec §12 step 10). */
|
|
462
|
+
var WaitingChild = class extends Schema.Class("@effect-agent/thread/WaitingChild")({
|
|
463
|
+
toolCallId: ToolCallId,
|
|
464
|
+
childSubmissionId: SubmissionId
|
|
465
|
+
}) {};
|
|
466
|
+
/**
|
|
467
|
+
* The parent Attempt ended without settling because attached durable children must settle and
|
|
468
|
+
* join first (spec §12 step 10, SUB-030). The suspended lane holds no worker permit; each listed
|
|
469
|
+
* child settles on its own Thread lane and `recordChildSettled` wakes the parent once
|
|
470
|
+
* every listed child is settled.
|
|
471
|
+
*/
|
|
472
|
+
var WaitingForChildSuspension = class extends Schema.TaggedClass("@effect-agent/thread/WaitingForChildSuspension")("WaitingForChild", { children: Schema.NonEmptyArray(WaitingChild) }) {};
|
|
473
|
+
const SuspensionReason = Schema.Union([ApprovalPendingSuspension, WaitingForChildSuspension]);
|
|
474
|
+
/**
|
|
475
|
+
* Durable suspension of owned work (plan §2.6): `input-applied`/`ready` → `suspended`, the
|
|
476
|
+
* ownership period ends, NO settlement occurs — the accepted-work obligation stays owed while
|
|
477
|
+
* the lane consumes no worker permit.
|
|
478
|
+
*/
|
|
479
|
+
var SuspendRequest = class extends Schema.Class("@effect-agent/thread/SuspendRequest")({
|
|
480
|
+
submissionId: SubmissionId,
|
|
481
|
+
reason: SuspensionReason
|
|
482
|
+
}) {};
|
|
483
|
+
/**
|
|
484
|
+
* `suspended` when the lane is now durably waiting; `resume-immediately` when the suspension
|
|
485
|
+
* reason is already fully covered (a covering decision or child settlement raced ahead of the
|
|
486
|
+
* suspend transaction), so the caller resumes without releasing the lane.
|
|
487
|
+
*/
|
|
488
|
+
const SuspensionOutcome = Schema.Literals(["suspended", "resume-immediately"]);
|
|
489
|
+
/**
|
|
490
|
+
* A durable child-settlement notification for one waitingForChild parent (spec §12 step 10).
|
|
491
|
+
* The child's canonical Settlement is the authority; this command only drives the parent lane's
|
|
492
|
+
* wake transition.
|
|
493
|
+
*/
|
|
494
|
+
var ChildSettledNotification = class extends Schema.Class("@effect-agent/thread/ChildSettledNotification")({
|
|
495
|
+
parentSubmissionId: SubmissionId,
|
|
496
|
+
childSubmissionId: SubmissionId
|
|
497
|
+
}) {};
|
|
498
|
+
/**
|
|
499
|
+
* `woken` when this notification completed the waiting set and the parent transitioned
|
|
500
|
+
* `suspended(WaitingForChild) → input-applied`; `still-waiting` while other listed children are
|
|
501
|
+
* unsettled; `not-waiting` when the parent is not (or no longer) suspended waiting on this
|
|
502
|
+
* child — including replays after a wake, so the operation is idempotent.
|
|
503
|
+
*/
|
|
504
|
+
const ChildSettledOutcome = Schema.Literals([
|
|
505
|
+
"woken",
|
|
506
|
+
"still-waiting",
|
|
507
|
+
"not-waiting"
|
|
508
|
+
]);
|
|
509
|
+
/** Parent-owned child budget reservation identity, deterministically derived by the
|
|
510
|
+
* coordinator from the parent Run and Tool Call identity (spec §12 step 2). */
|
|
511
|
+
const ChildReservationId = Schema.NonEmptyString.check(Schema.isMaxLength(256)).pipe(Schema.brand("@effect-agent/thread/ChildReservationId"));
|
|
512
|
+
/**
|
|
513
|
+
* The reservation state machine (spec §12 steps 2 and 6): `reserved` while the child may still
|
|
514
|
+
* consume the allocation, `releasePending` once the final accounting decision is frozen, and
|
|
515
|
+
* `released` after the unused allocation returned exactly once.
|
|
516
|
+
*/
|
|
517
|
+
const ChildReservationStatus = Schema.Literals([
|
|
518
|
+
"reserved",
|
|
519
|
+
"releasePending",
|
|
520
|
+
"released"
|
|
521
|
+
]);
|
|
522
|
+
/**
|
|
523
|
+
* Creation input for one parent-owned child budget reservation. The allocation is an opaque
|
|
524
|
+
* Schema-encoded budget document (D8: adapters implement transitions only and never interpret
|
|
525
|
+
* budget dimensions); `allocationDigest` must be the digest of its canonical JSON encoding.
|
|
526
|
+
*/
|
|
527
|
+
var ChildBudgetReservationRequest = class extends Schema.Class("@effect-agent/thread/ChildBudgetReservationRequest")({
|
|
528
|
+
reservationId: ChildReservationId,
|
|
529
|
+
parentSubmissionId: SubmissionId,
|
|
530
|
+
parentToolCallId: ToolCallId,
|
|
531
|
+
allocation: PersistedJson,
|
|
532
|
+
allocationDigest: Digest
|
|
533
|
+
}) {};
|
|
534
|
+
/** One child budget reservation row as the port exposes it. */
|
|
535
|
+
var ChildBudgetReservationSnapshot = class extends Schema.Class("@effect-agent/thread/ChildBudgetReservationSnapshot")({
|
|
536
|
+
reservationId: ChildReservationId,
|
|
537
|
+
parentSubmissionId: SubmissionId,
|
|
538
|
+
parentToolCallId: ToolCallId,
|
|
539
|
+
childSubmissionId: Schema.optionalKey(SubmissionId),
|
|
540
|
+
status: ChildReservationStatus,
|
|
541
|
+
allocation: PersistedJson,
|
|
542
|
+
allocationDigest: Digest,
|
|
543
|
+
accounting: Schema.optionalKey(PersistedJson),
|
|
544
|
+
reservedAt: Schema.DateTimeUtcFromString,
|
|
545
|
+
releaseBeganAt: Schema.optionalKey(Schema.DateTimeUtcFromString),
|
|
546
|
+
releasedAt: Schema.optionalKey(Schema.DateTimeUtcFromString)
|
|
547
|
+
}) {};
|
|
548
|
+
/**
|
|
549
|
+
* The committed reservation. `replayed` is true when an identical reservation already existed;
|
|
550
|
+
* the stored row is returned unchanged so a recovering caller resumes rather than duplicates
|
|
551
|
+
* (SUB-016).
|
|
552
|
+
*/
|
|
553
|
+
var ReservedChildBudget = class extends Schema.Class("@effect-agent/thread/ReservedChildBudget")({
|
|
554
|
+
reservation: ChildBudgetReservationSnapshot,
|
|
555
|
+
replayed: Schema.Boolean
|
|
556
|
+
}) {};
|
|
557
|
+
/** Records the admitted child on its reservation row (repairable from `SubagentStarted`). */
|
|
558
|
+
var AttachChildToReservationRequest = class extends Schema.Class("@effect-agent/thread/AttachChildToReservationRequest")({
|
|
559
|
+
reservationId: ChildReservationId,
|
|
560
|
+
childSubmissionId: SubmissionId
|
|
561
|
+
}) {};
|
|
562
|
+
/**
|
|
563
|
+
* Freezes the final consumed/released accounting decision (spec §12 join step 6). The
|
|
564
|
+
* accounting is an opaque Schema-encoded document replayed from the canonical `SubagentJoined`
|
|
565
|
+
* record (or the deterministic zero-consumed decision for an orphaned reservation), so the
|
|
566
|
+
* decision itself authorizes the transition — no execution owner is required (DUR-015).
|
|
567
|
+
*/
|
|
568
|
+
var BeginChildBudgetReleaseRequest = class extends Schema.Class("@effect-agent/thread/BeginChildBudgetReleaseRequest")({
|
|
569
|
+
reservationId: ChildReservationId,
|
|
570
|
+
accounting: PersistedJson
|
|
571
|
+
}) {};
|
|
572
|
+
/** Applies the frozen accounting decision: `releasePending → released`, exactly once. */
|
|
573
|
+
var ReleaseChildBudgetRequest = class extends Schema.Class("@effect-agent/thread/ReleaseChildBudgetRequest")({ reservationId: ChildReservationId }) {};
|
|
574
|
+
/**
|
|
575
|
+
* A durable approval decision command (plan §2.6, `abort`-shaped). Field bounds are exactly those
|
|
576
|
+
* of the canonical `ToolApprovalDecided` payload so the intent can become canonical without
|
|
577
|
+
* re-validation.
|
|
578
|
+
*/
|
|
579
|
+
var ApprovalDecisionCommand = class extends Schema.Class("@effect-agent/thread/ApprovalDecisionCommand")({
|
|
580
|
+
submissionId: SubmissionId,
|
|
581
|
+
toolCallId: ToolCallId,
|
|
582
|
+
decision: ApprovalDecision,
|
|
583
|
+
resolver: ToolApprovalDecided.fields.resolver,
|
|
584
|
+
reason: ToolApprovalDecided.fields.reason
|
|
585
|
+
}) {};
|
|
586
|
+
/**
|
|
587
|
+
* The recorded approval-decision intent, idempotent per `(submissionId, toolCallId)`.
|
|
588
|
+
* `canonicalRecordId` is present once the corresponding canonical `ToolApprovalDecided` record
|
|
589
|
+
* has been appended (see `toolApprovalDecisionRecordId`).
|
|
590
|
+
*/
|
|
591
|
+
var ApprovalDecisionIntent = class extends Schema.Class("@effect-agent/thread/ApprovalDecisionIntent")({
|
|
592
|
+
submissionId: SubmissionId,
|
|
593
|
+
toolCallId: ToolCallId,
|
|
594
|
+
decision: ApprovalDecision,
|
|
595
|
+
resolver: ToolApprovalDecided.fields.resolver,
|
|
596
|
+
reason: ToolApprovalDecided.fields.reason,
|
|
597
|
+
decidedAt: Schema.DateTimeUtcFromString,
|
|
598
|
+
canonicalRecordId: Schema.optionalKey(RecordId)
|
|
599
|
+
}) {};
|
|
600
|
+
/**
|
|
601
|
+
* Durable Unknown marking for one Submission's open ordinary Tool Calls (DUR-009): state →
|
|
602
|
+
* `unknown`, parking that Submission without changing its local owner generation. Idempotent.
|
|
603
|
+
*/
|
|
604
|
+
var MarkUnknownRequest = class extends Schema.Class("@effect-agent/thread/MarkUnknownRequest")({
|
|
605
|
+
submissionId: SubmissionId,
|
|
606
|
+
toolCallIds: Schema.NonEmptyArray(ToolCallId),
|
|
607
|
+
reason: ToolCallUnknown.fields.reason
|
|
608
|
+
}) {};
|
|
609
|
+
/** The recovered supplier truth: the external effect completed with this exact result. */
|
|
610
|
+
var ResolutionCompletedWithResult = class extends Schema.TaggedClass("@effect-agent/thread/ResolutionCompletedWithResult")("CompletedWithResult", {
|
|
611
|
+
result: PersistedJson,
|
|
612
|
+
isFailure: Schema.Boolean
|
|
613
|
+
}) {};
|
|
614
|
+
/** The external effect provably never happened; the call may re-execute on resume. */
|
|
615
|
+
var ResolutionNeverHappened = class extends Schema.TaggedClass("@effect-agent/thread/ResolutionNeverHappened")("NeverHappened", {}) {};
|
|
616
|
+
/** The call is safe to repeat under the external system's idempotency contract. */
|
|
617
|
+
var ResolutionSafeToRetry = class extends Schema.TaggedClass("@effect-agent/thread/ResolutionSafeToRetry")("SafeToRetry", {}) {};
|
|
618
|
+
/** Give up on the Submission: route into the abort path (unknown calls stay recorded; abort
|
|
619
|
+
* never claims external rollback, durability §13). */
|
|
620
|
+
var ResolutionAbortSubmission = class extends Schema.TaggedClass("@effect-agent/thread/ResolutionAbortSubmission")("AbortSubmission", {}) {};
|
|
621
|
+
/** An authorized execution decision or factual closure for one Unknown Outcome (DUR-017). */
|
|
622
|
+
const UnknownResolution = Schema.Union([
|
|
623
|
+
ResolutionCompletedWithResult,
|
|
624
|
+
ResolutionNeverHappened,
|
|
625
|
+
ResolutionSafeToRetry,
|
|
626
|
+
ResolutionAbortSubmission
|
|
627
|
+
]);
|
|
628
|
+
/** Execution permission never establishes whether the original external effect happened. */
|
|
629
|
+
const UnknownResolutionKind = Schema.Literals(["execution", "factual"]);
|
|
630
|
+
const unknownResolutionKind = (resolution) => resolution._tag === "CompletedWithResult" || resolution._tag === "NeverHappened" ? "factual" : "execution";
|
|
631
|
+
/** A new factual intent cannot replace an already committed Tool result. */
|
|
632
|
+
const unknownResolutionMatchesResult = (resolution, result) => resolution._tag === "CompletedWithResult" && resolution.isFailure === result.isFailure && canonicalJson(resolution.result) === canonicalJson(result.result);
|
|
633
|
+
/**
|
|
634
|
+
* A durable Unknown-Outcome resolution command (DUR-017, `abort`-shaped). Possession of the
|
|
635
|
+
* runtime service plus the mandatory `author`/`reason` audit fields is the Phase 5 authorization
|
|
636
|
+
* boundary — identical to `abort`; the authenticated operator surface is a P7 deliverable.
|
|
637
|
+
* Field bounds are exactly those of the canonical `ToolCallResolved` payload.
|
|
638
|
+
*/
|
|
639
|
+
var UnknownResolutionCommand = class extends Schema.Class("@effect-agent/thread/UnknownResolutionCommand")({
|
|
640
|
+
submissionId: SubmissionId,
|
|
641
|
+
toolCallId: ToolCallId,
|
|
642
|
+
author: ToolCallResolved.fields.author,
|
|
643
|
+
reason: ToolCallResolved.fields.reason,
|
|
644
|
+
resolution: UnknownResolution
|
|
645
|
+
}) {};
|
|
646
|
+
/**
|
|
647
|
+
* The recorded resolution intent, idempotent per `(submissionId, toolCallId, kind)`. An
|
|
648
|
+
* execution decision remains immutable when later supplier truth closes the original effect;
|
|
649
|
+
* divergent decisions or divergent factual outcomes conflict within their respective kind.
|
|
650
|
+
* New factual outcomes also have to agree with any already committed Tool result.
|
|
651
|
+
* The canonical `ToolCallResolved` (+ `ToolCallSettled` for `CompletedWithResult`) is appended
|
|
652
|
+
* by the recovery pass or the next owning Attempt; `canonicalRecordId` is present once it is.
|
|
653
|
+
*/
|
|
654
|
+
var UnknownResolutionIntent = class extends Schema.Class("@effect-agent/thread/UnknownResolutionIntent")({
|
|
655
|
+
submissionId: SubmissionId,
|
|
656
|
+
toolCallId: ToolCallId,
|
|
657
|
+
author: ToolCallResolved.fields.author,
|
|
658
|
+
reason: ToolCallResolved.fields.reason,
|
|
659
|
+
resolution: UnknownResolution,
|
|
660
|
+
resolvedAt: Schema.DateTimeUtcFromString,
|
|
661
|
+
canonicalRecordId: Schema.optionalKey(RecordId)
|
|
662
|
+
}) {};
|
|
663
|
+
var RecoverySnapshotRequest = class extends Schema.Class("@effect-agent/thread/RecoverySnapshotRequest")({ submissionId: SubmissionId }) {};
|
|
664
|
+
/** One joined/joining Submission of a host Run, as the host's recovery sees it. */
|
|
665
|
+
var JoinSnapshot = class extends Schema.Class("@effect-agent/thread/JoinSnapshot")({
|
|
666
|
+
submissionId: SubmissionId,
|
|
667
|
+
state: SubmissionState,
|
|
668
|
+
hostSubmissionId: SubmissionId
|
|
669
|
+
}) {};
|
|
670
|
+
/** A durable suspension as recovery sees it. */
|
|
671
|
+
var SuspensionSnapshot = class extends Schema.Class("@effect-agent/thread/SuspensionSnapshot")({
|
|
672
|
+
reason: SuspensionReason,
|
|
673
|
+
suspendedAt: Schema.DateTimeUtcFromString
|
|
674
|
+
}) {};
|
|
675
|
+
/**
|
|
676
|
+
* One attached child of this parent as its recovery sees it: the reservation's recorded child
|
|
677
|
+
* plus that child's current lane state. A disposable derived view — the canonical
|
|
678
|
+
* `SubagentRequested`/`SubagentStarted` records and the child's own canonical Settlement remain
|
|
679
|
+
* the recovery truth (DUR-015).
|
|
680
|
+
*/
|
|
681
|
+
var ChildAttachmentSnapshot = class extends Schema.Class("@effect-agent/thread/ChildAttachmentSnapshot")({
|
|
682
|
+
toolCallId: ToolCallId,
|
|
683
|
+
childSubmissionId: SubmissionId,
|
|
684
|
+
childState: SubmissionState,
|
|
685
|
+
childOutcome: Schema.optionalKey(SettlementOutcome)
|
|
686
|
+
}) {};
|
|
687
|
+
/**
|
|
688
|
+
* Everything the pure recovery classifier needs about one Submission, read strongly consistently
|
|
689
|
+
* (STORE-003). Canonical history still wins over every marker in this snapshot (DUR-015).
|
|
690
|
+
*
|
|
691
|
+
* Phase 5 fields: `joins` is the host-side view (every Submission `joining`/`joined` to this
|
|
692
|
+
* one); `hostSubmissionId` is the joined-side view; `suspension` mirrors the `suspended` state;
|
|
693
|
+
* `approvalDecisions` and `unknownResolutions` are the durable intents recorded against this
|
|
694
|
+
* Submission (empty when none exist).
|
|
695
|
+
*
|
|
696
|
+
* S2 fields: `childReservations`/`childAttachments` are the parent-side subagent view (ordered
|
|
697
|
+
* by parent Tool Call id) and `parentLinkage` is the child-side view. They default to
|
|
698
|
+
* empty/absent at construction so pre-S2 call sites stay valid; adapters always populate them.
|
|
699
|
+
*/
|
|
700
|
+
var RecoverySnapshot = class extends Schema.Class("@effect-agent/thread/RecoverySnapshot")({
|
|
701
|
+
submission: SubmissionSnapshot,
|
|
702
|
+
hasOwner: Schema.Boolean,
|
|
703
|
+
inputApplied: Schema.optionalKey(InputAppliedMarker),
|
|
704
|
+
abortIntent: Schema.optionalKey(AbortIntent),
|
|
705
|
+
joins: Schema.Array(JoinSnapshot),
|
|
706
|
+
hostSubmissionId: Schema.optionalKey(SubmissionId),
|
|
707
|
+
suspension: Schema.optionalKey(SuspensionSnapshot),
|
|
708
|
+
approvalDecisions: Schema.Array(ApprovalDecisionIntent),
|
|
709
|
+
unknownResolutions: Schema.Array(UnknownResolutionIntent),
|
|
710
|
+
childReservations: Schema.Array(ChildBudgetReservationSnapshot).pipe(Schema.withConstructorDefault(Effect.succeed([]))),
|
|
711
|
+
childAttachments: Schema.Array(ChildAttachmentSnapshot).pipe(Schema.withConstructorDefault(Effect.succeed([]))),
|
|
712
|
+
parentLinkage: Schema.optionalKey(ParentLinkage)
|
|
713
|
+
}) {};
|
|
714
|
+
/** The same idempotency key was admitted with different canonical input content. */
|
|
715
|
+
var AdmissionConflict = class extends Schema.TaggedError()("AdmissionConflict", {
|
|
716
|
+
threadId: ThreadId,
|
|
717
|
+
principal: Principal,
|
|
718
|
+
idempotencyKey: IdempotencyKey,
|
|
719
|
+
existingInputDigest: Digest,
|
|
720
|
+
attemptedInputDigest: Digest
|
|
721
|
+
}) {};
|
|
722
|
+
/**
|
|
723
|
+
* The captured local session has closed or was replaced. Reading current state cannot
|
|
724
|
+
* grant that session authority again.
|
|
725
|
+
*/
|
|
726
|
+
var OwnershipLost = class extends Schema.TaggedError()("OwnershipLost", { submissionId: SubmissionId }) {};
|
|
727
|
+
/** A conflicting terminal outcome was already reserved or finalized (DUR-002, DUR-012). */
|
|
728
|
+
var SettlementConflict = class extends Schema.TaggedError()("SettlementConflict", {
|
|
729
|
+
submissionId: SubmissionId,
|
|
730
|
+
existingOutcome: SettlementOutcome
|
|
731
|
+
}) {};
|
|
732
|
+
/**
|
|
733
|
+
* A divergent approval re-decision for an already-decided `(submissionId, toolCallId)` pair.
|
|
734
|
+
* Repeating the SAME decision replays the recorded intent instead (idempotency).
|
|
735
|
+
*/
|
|
736
|
+
var ApprovalConflict = class extends Schema.TaggedError()("ApprovalConflict", {
|
|
737
|
+
submissionId: SubmissionId,
|
|
738
|
+
toolCallId: ToolCallId,
|
|
739
|
+
existingDecision: ApprovalDecision
|
|
740
|
+
}) {};
|
|
741
|
+
/**
|
|
742
|
+
* A resolution contradicts an accepted intent of the same kind or an already committed Tool
|
|
743
|
+
* result (DUR-017). Repeating the SAME accepted resolution replays the recorded intent instead.
|
|
744
|
+
*/
|
|
745
|
+
var UnknownResolutionConflict = class extends Schema.TaggedError()("UnknownResolutionConflict", {
|
|
746
|
+
submissionId: SubmissionId,
|
|
747
|
+
toolCallId: ToolCallId
|
|
748
|
+
}) {};
|
|
749
|
+
/**
|
|
750
|
+
* A child budget reservation request contradicts recorded reservation state: a divergent
|
|
751
|
+
* allocation for the same reservation id, a second reservation id for the same parent Tool
|
|
752
|
+
* Call, a divergent child attachment, a divergent accounting freeze, or an out-of-order state
|
|
753
|
+
* transition. `status` reports the existing row's status. Identical replays never conflict.
|
|
754
|
+
*/
|
|
755
|
+
var ChildReservationConflict = class extends Schema.TaggedError()("ChildReservationConflict", {
|
|
756
|
+
reservationId: ChildReservationId,
|
|
757
|
+
status: ChildReservationStatus,
|
|
758
|
+
message: Schema.String
|
|
759
|
+
}) {};
|
|
760
|
+
/** Adapter-level ledger failure (storage unavailable, unknown submission, corrupt row, ...). */
|
|
761
|
+
var LedgerError = class extends Schema.TaggedError()("LedgerError", {
|
|
762
|
+
operation: Schema.String,
|
|
763
|
+
message: Schema.String,
|
|
764
|
+
cause: Schema.optionalKey(Value)
|
|
765
|
+
}) {};
|
|
766
|
+
/**
|
|
767
|
+
* Operational durable state for accepted work: admission, FIFO readiness, readiness,
|
|
768
|
+
* abort intent, and settlement obligations (STORE-001). The Thread Log remains the
|
|
769
|
+
* authority for applied input and terminal outcomes; every marker in this ledger can be rebuilt
|
|
770
|
+
* from canonical history (DUR-015).
|
|
771
|
+
*
|
|
772
|
+
* Operation contracts:
|
|
773
|
+
*
|
|
774
|
+
* - `admit` — atomic and idempotent by (threadId, principal, idempotencyKey). A replay
|
|
775
|
+
* with the same `inputDigest` returns the original `AdmissionResult` with `replayed` set; a
|
|
776
|
+
* replay with a different digest fails with `AdmissionConflict`. Admission allocates the
|
|
777
|
+
* Submission's `queueSequence` (FIFO position, DUR-004) and mints `submissionId`/`receiptId`.
|
|
778
|
+
* An optional `parentLinkage` is recorded immutably at first admission (SUB-016); a replay
|
|
779
|
+
* whose linkage diverges (present vs. absent, or different identities) fails with
|
|
780
|
+
* `AdmissionConflict` even when the input digest matches.
|
|
781
|
+
* With `readyIfInitialized`, an adapter may insert a fresh ordinary Submission as ready
|
|
782
|
+
* when it proves Thread initialization under the admission's owner transaction. Readiness,
|
|
783
|
+
* its lifecycle fact and source progress commit with the receipt. Otherwise it returns
|
|
784
|
+
* admitted and the caller completes materialization and `markReady` as usual.
|
|
785
|
+
* - `resolveAdmission` — authoritative tri-state admission lookup by scoped idempotency key
|
|
786
|
+
* (SUB-031): `NotAdmitted` proves absence, `Admitted` carries the full snapshot, and
|
|
787
|
+
* `Indeterminate` states that the adapter cannot currently prove either. Only `NotAdmitted`
|
|
788
|
+
* permits an admission attempt. Single strongly consistent stores derive the answer from a
|
|
789
|
+
* direct lookup and never answer `Indeterminate`.
|
|
790
|
+
* - `markReady` — idempotent transition admitted → ready after Thread materialization.
|
|
791
|
+
* Marking an already-ready (or later-state) Submission is a no-op.
|
|
792
|
+
* - `lookup` — read one Submission by identity or scoped idempotency key; strongly consistent
|
|
793
|
+
* with prior ledger writes.
|
|
794
|
+
* - `selectHead` — selects the lowest eligible unsettled queue position for the storage owner's
|
|
795
|
+
* scoped Run session. The local owner serializes selection and permits only one live session
|
|
796
|
+
* per Thread. Elapsed time never grants a second session. Unknown work without abort intent
|
|
797
|
+
* may be skipped; approval, joining and child-wait barriers remain ordered. An advisory
|
|
798
|
+
* handoff may defer only the named input-applied prefix and must select the exact next
|
|
799
|
+
* runnable Submission. A fresh diagnostic Attempt identity is not persisted ownership.
|
|
800
|
+
* - `markInputApplied` — idempotent marker that the deterministic `UserInputRecorded` record is
|
|
801
|
+
* canonical (state → input-applied). Recovery repairs this marker from history when the append
|
|
802
|
+
* committed but the marker write was lost.
|
|
803
|
+
* - `finalizeSettlement` — idempotent terminal projection (state → settled) from the
|
|
804
|
+
* deterministic canonical SubmissionSettled record. It validates the admitted receipt and
|
|
805
|
+
* retains the first finalization timestamp. Native adapters seal opted-in worker assignments
|
|
806
|
+
* atomically before releasing the lane. Canonical history authorizes finalization; missing or contradictory canonical evidence fails without mutation.
|
|
807
|
+
* - `requestAbort` — durable, idempotent by `submissionId`: repeating returns the recorded
|
|
808
|
+
* intent unchanged (DUR-012). Fails with `SettlementConflict` once the Submission is settled;
|
|
809
|
+
* abort never rewrites a terminal outcome. Fails with `JoinedToHost` for a `joined` Submission
|
|
810
|
+
* — it settles with its host, so the abort target is the host (plan §2.5). Abort of a
|
|
811
|
+
* `joining` Submission records the intent; it is honored only if the host has not consumed the
|
|
812
|
+
* input (revert-then-abort).
|
|
813
|
+
* - `claimJoining` — atomic: transitions the contiguous `ready` prefix of strictly-later
|
|
814
|
+
* `queueSequence`s (up to `maxCount`) to `joining` under the bound host session, recording
|
|
815
|
+
* the host linkage. An
|
|
816
|
+
* `admitted`-not-`ready` row breaks the prefix; an aborted-settled row is a closed obligation
|
|
817
|
+
* and is skipped as a non-gap (P7 §7(c)). Fails with `OwnershipLost` once superseded.
|
|
818
|
+
* - `markJoined` — idempotent `joining → joined` with the canonical input record position;
|
|
819
|
+
* repairable from history when the append committed but the marker write was lost (DUR-016).
|
|
820
|
+
* - `revertJoining` — recovery-only, idempotent `joining → ready`; a no-op when already joined.
|
|
821
|
+
* - `suspend` — `input-applied`/`ready` → `suspended`; ends the ownership period WITHOUT
|
|
822
|
+
* settling (the obligation stays owed, the lane consumes no worker permit). Returns
|
|
823
|
+
* `resume-immediately` when the reason is already fully covered: for `ApprovalPending`,
|
|
824
|
+
* a recorded denial ends the batch or decisions cover every pending call; for
|
|
825
|
+
* `WaitingForChild`, every listed child is already provably settled. Adapters must guarantee
|
|
826
|
+
* that a child settlement reported before
|
|
827
|
+
* the suspend transaction commits is observed by that suspend (single-store adapters derive
|
|
828
|
+
* this from the child's own row; cross-store adapters record a durable notification marker).
|
|
829
|
+
* Fails with `SettlementConflict` once settled.
|
|
830
|
+
* - `recordApprovalDecision` — durable, idempotent per `(submissionId, toolCallId)`: repeating
|
|
831
|
+
* the same decision replays the intent; a divergent re-decision fails with `ApprovalConflict`.
|
|
832
|
+
* Transitions `suspended(ApprovalPending) → input-applied` once every pending call of the
|
|
833
|
+
* suspension reason is decided or one is denied, waking the lane. Fails with
|
|
834
|
+
* `SettlementConflict` once settled.
|
|
835
|
+
* - `recordChildSettled` — idempotent cross-lane wake (spec §12 step 10): transitions
|
|
836
|
+
* `suspended(WaitingForChild) → input-applied` exactly when EVERY listed child is settled,
|
|
837
|
+
* answering `woken`; `still-waiting` while any listed child is unsettled; `not-waiting` when
|
|
838
|
+
* the parent is not suspended waiting on this child (including replays after the wake). The
|
|
839
|
+
* child's canonical Settlement is the authority. The runtime reports it after the exact
|
|
840
|
+
* record is published and before ledger finalization. Adapters verify that canonical record
|
|
841
|
+
* under their mutation authority; an earlier child is an adapter-checked caller error. It never
|
|
842
|
+
* settles the parent; the canonically recorded child settlement authorizes the wake.
|
|
843
|
+
* - `reserveChildBudget` — idempotent get-or-create of the parent-owned child budget
|
|
844
|
+
* reservation (spec §12 step 2), checked by the parent session. An
|
|
845
|
+
* identical administrative replay returns the stored row with `replayed` set;
|
|
846
|
+
* a divergent allocation for the same id, or a second id for the same
|
|
847
|
+
* `(parentSubmissionId, parentToolCallId)`, fails with `ChildReservationConflict`.
|
|
848
|
+
* - `attachChildToReservation` — idempotent: records the admitted child on the reservation row
|
|
849
|
+
* (repairable from the canonical `SubagentStarted` record). A replay with the recorded child
|
|
850
|
+
* is a no-op; the first attach is guarded by the parent session and requires status `reserved`;
|
|
851
|
+
* a divergent child fails with `ChildReservationConflict`.
|
|
852
|
+
* - `beginChildBudgetRelease` — `reserved → releasePending`: freezes the final accounting
|
|
853
|
+
* decision exactly once. Replaying the identical accounting (at `releasePending` or
|
|
854
|
+
* `released`) is a no-op; a divergent accounting fails with `ChildReservationConflict`.
|
|
855
|
+
* The accounting is replayed from the canonical `SubagentJoined`
|
|
856
|
+
* record (or is the deterministic zero-consumed decision for an orphaned reservation), so
|
|
857
|
+
* canonical history authorizes the transition (DUR-015) and the freeze comparison — not a
|
|
858
|
+
* fence — guarantees one decision.
|
|
859
|
+
* - `releaseChildBudget` — `releasePending → released`, applied exactly once; replaying returns
|
|
860
|
+
* the released row unchanged. Releasing a still-`reserved` row (no frozen accounting) fails
|
|
861
|
+
* with `ChildReservationConflict`. "A crash before release leaves budget unavailable until
|
|
862
|
+
* repair, never available twice" (spec §12).
|
|
863
|
+
* - `markUnknown` — idempotent, ownership-free (canonical evidence authorizes it): state →
|
|
864
|
+
* `unknown`, parking the Submission while its accepted settlement obligation stays visible.
|
|
865
|
+
* The current session must close before another claim (DUR-009/DUR-017).
|
|
866
|
+
* Fails with `SettlementConflict` once settled.
|
|
867
|
+
* - `recordUnknownResolution` — durable, idempotent per `(submissionId, toolCallId, kind)`;
|
|
868
|
+
* divergent decisions or factual outcomes fail with `UnknownResolutionConflict`. Later
|
|
869
|
+
* factual closure preserves the original execution decision. New execution permission after
|
|
870
|
+
* factual closure conflicts. Before retaining a new factual intent, adapters check the
|
|
871
|
+
* canonical Tool result under the journal's write boundary, even on a nonterminal Run.
|
|
872
|
+
* Transitions `unknown → input-applied` once every open call is
|
|
873
|
+
* covered, waking the lane. Settled lanes accept only factual closure and never reopen.
|
|
874
|
+
* - `scanNonterminal` — streams control-only entries for every Submission whose state is not
|
|
875
|
+
* `settled`, ordered by (threadId, queueSequence); recovery's admission-independent worklist
|
|
876
|
+
* (DUR-014). It must not decode execution payloads. SQL or control-identity corruption fails
|
|
877
|
+
* the scan; selected-Thread payload hydration belongs inside the caller's isolation boundary.
|
|
878
|
+
* - `loadRecoverySnapshot` — strongly consistent full snapshot for the pure recovery classifier.
|
|
879
|
+
*
|
|
880
|
+
* No operation claims exactly-once external side effects; the ledger records decisions
|
|
881
|
+
* exactly once (DUR-003).
|
|
882
|
+
*/
|
|
883
|
+
var SubmissionLedger = class extends Context.Service()("@effect-agent/thread/SubmissionLedger") {};
|
|
884
|
+
const makeBatchId = Brand.nominal();
|
|
885
|
+
const makeRecordId = Brand.nominal();
|
|
886
|
+
const makeSettlementId = Brand.nominal();
|
|
887
|
+
/**
|
|
888
|
+
* Deterministic identity rules shared by every adapter and the durable coordinator. The batch
|
|
889
|
+
* carrying one Submission's canonical `UserInputRecorded` record is `submission-input:{sid}` and
|
|
890
|
+
* the record is `input:{sid}`, so batch idempotency (DUR-007) makes the input append
|
|
891
|
+
* exactly-once-canonical across Attempts.
|
|
892
|
+
*/
|
|
893
|
+
const submissionInputBatchId = (submissionId) => makeBatchId(`submission-input:${submissionId}`);
|
|
894
|
+
/** Deterministic canonical record identity of one Submission's `UserInputRecorded` record. */
|
|
895
|
+
const submissionInputRecordId = (submissionId) => makeRecordId(`input:${submissionId}`);
|
|
896
|
+
/** Deterministic `SettlementId` for one Submission: `settlement:{sid}`. */
|
|
897
|
+
const submissionSettlementId = (submissionId) => makeSettlementId(`settlement:${submissionId}`);
|
|
898
|
+
/** Deterministic batch identity of one Submission's canonical `SubmissionSettled` append. */
|
|
899
|
+
const submissionSettlementBatchId = (submissionId) => makeBatchId(`submission-settlement:${submissionId}`);
|
|
900
|
+
/** Deterministic canonical record identity of one Submission's `SubmissionSettled` record. */
|
|
901
|
+
const submissionSettlementRecordId = (submissionId) => makeRecordId(`settlement:${submissionId}`);
|
|
902
|
+
/** Deterministic batch identity of one Submission's canonical `AbortRequested` append. */
|
|
903
|
+
const submissionAbortBatchId = (submissionId) => makeBatchId(`submission-abort:${submissionId}`);
|
|
904
|
+
/** Deterministic canonical record identity of one Submission's `AbortRequested` record. */
|
|
905
|
+
const submissionAbortRecordId = (submissionId) => makeRecordId(`abort:${submissionId}`);
|
|
906
|
+
/** Destination policy, captured when the ledger is acquired. It runs inside fresh admission's
|
|
907
|
+
* serialization after replay lookup. The host must keep it bounded and must not reenter admit.
|
|
908
|
+
* The callback must read authoritative policy in this SAME local transaction, through the
|
|
909
|
+
* acquired SqlClient. Memory evaluates the callback synchronously inside its atomic mutation;
|
|
910
|
+
* an async callback fails with `unavailable/synchronous-memory-policy-required`. Remote reads do not fence remote changes.
|
|
911
|
+
* All policy writers must use that transaction owner. Do not fork, reenter admission, or retain
|
|
912
|
+
* transaction resources. Failure/defect/interruption commits no fresh admission.
|
|
913
|
+
* Current policy never invalidates an exact retained receipt. A supplied fence fails closed
|
|
914
|
+
* unless the destination installed an interpreter for it. */
|
|
915
|
+
const SubmissionAdmissionFence = Context.Reference("@effect-agent/thread/SubmissionAdmissionFence", { defaultValue: () => ({ check: (request) => request.admissionFence === void 0 ? Effect.void : AdmissionPolicyError.make({
|
|
916
|
+
reason: "refused",
|
|
917
|
+
code: "unsupported-policy"
|
|
918
|
+
}) }) });
|
|
919
|
+
export { RevertJoiningRequest as $, ClaimJoiningRequest as A, submissionInputBatchId as At, MarkJoinedRequest as B, ChildReservationConflict as C, WaitingForChildSuspension as Ct, ChildSettledOutcome as D, settlementFailureFromRecord as Dt, ChildSettledNotification as E, approvalDecisionsCover as Et, JoinSnapshot as F, unknownResolutionKind as Ft, RecoverySnapshot as G, MarkUnknownRequest as H, JoiningClaim as I, unknownResolutionMatchesResult as It, ReservedChildBudget as J, RecoverySnapshotRequest as K, LedgerCapabilities as L, workerTerminalFromRecord as Lt, FundingOwner as M, submissionSettlementBatchId as Mt, FundingOwnerRequest as N, submissionSettlementId as Nt, Claim as O, submissionAbortBatchId as Ot, InputAppliedMarker as P, submissionSettlementRecordId as Pt, ResolutionSafeToRetry as Q, LedgerError as R, ChildBudgetReservationSnapshot as S, WaitingChild as St, ChildReservationStatus as T, WorkerStopCommand as Tt, OwnershipLost as U, MarkReadyRequest as V, ParentLinkage as W, ResolutionCompletedWithResult as X, ResolutionAbortSubmission as Y, ResolutionNeverHappened as Z, ApprovalPendingSuspension as _, UnknownResolution as _t, AdmissionConflict as a, SubmissionLedger_exports as at, ChildAttachmentSnapshot as b, UnknownResolutionIntent as bt, AdmissionIndeterminate as c, SubmissionLookupByKey as ct, AdmissionRequest as d, SubmissionState as dt, Settlement as et, AdmissionResolution as f, SubmissionWorkItem as ft, ApprovalDecisionIntent as g, SuspensionSnapshot as gt, ApprovalDecisionCommand as h, SuspensionReason as ht, AdmissionAdmitted as i, SubmissionLedger as it, ClaimRequest as j, submissionInputRecordId as jt, ClaimHandoff as k, submissionAbortRecordId as kt, AdmissionNotAdmitted as l, SubmissionScheduling as lt, ApprovalConflict as m, SuspensionOutcome as mt, AbortIntent as n, SettlementFinalization as nt, AdmissionFence as o, SubmissionLookup as ot, AdmissionResult as p, SuspendRequest as pt, ReleaseChildBudgetRequest as q, AbortIntentRequest as r, SubmissionAdmissionFence as rt, AdmissionGroup as s, SubmissionLookupById as st, AbortCommand as t, SettlementConflict as tt, AdmissionPolicyError as u, SubmissionSnapshot as ut, AttachChildToReservationRequest as v, UnknownResolutionCommand as vt, ChildReservationId as w, WorkerLedgerState as wt, ChildBudgetReservationRequest as x, UnknownResolutionKind as xt, BeginChildBudgetReleaseRequest as y, UnknownResolutionConflict as yt, MarkInputAppliedRequest as z };
|
|
920
|
+
|
|
921
|
+
//# sourceMappingURL=SubmissionLedger-WG0beEyt.mjs.map
|