@systemfsoftware/agent 0.0.0-bootstrap.0 → 0.1.0-beta.192
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-BcQDrWKY.mjs +329 -0
- package/dist/Admin-BcQDrWKY.mjs.map +1 -0
- package/dist/Admin-BfolLkHj.d.mts +5678 -0
- package/dist/Agent-Bn3zMhDH.mjs +60 -0
- package/dist/Agent-Bn3zMhDH.mjs.map +1 -0
- package/dist/Agent-DSVEpq4e.d.mts +219 -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-Dg53p6du.mjs +14 -0
- package/dist/AgentRegistration-Dg53p6du.mjs.map +1 -0
- package/dist/AgentRuntime-CoGy_5dm.d.mts +751 -0
- package/dist/AgentRuntime-CzP4I4RB.mjs +5249 -0
- package/dist/AgentRuntime-CzP4I4RB.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-C9vict2M.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-DXyCKCtX.mjs +146 -0
- package/dist/CommittedActivity-DXyCKCtX.mjs.map +1 -0
- package/dist/CommittedActivity-LWOKXqdi.d.mts +62 -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-917r7gpv.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-BHXo8GPJ.mjs +8432 -0
- package/dist/DurableAgentRuntime-BHXo8GPJ.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-BwZVkEQi.mjs +66 -0
- package/dist/EventSource-BwZVkEQi.mjs.map +1 -0
- package/dist/EventSource-C0TCBeIf.d.mts +52 -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-4CRzkPBD.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-Dh6GZBt_.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-DhM-APnP.d.mts +1074 -0
- package/dist/MessagingHost-Bm5e-kAX.mjs +117 -0
- package/dist/MessagingHost-Bm5e-kAX.mjs.map +1 -0
- package/dist/MessagingHost-CubWeYKN.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-DQ8mWcgf.mjs +7 -0
- package/dist/Output-DQ8mWcgf.mjs.map +1 -0
- package/dist/Output-SbOdlBFL.d.mts +22 -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-BrtZ0g2j.d.mts +14 -0
- package/dist/PersistentHistory-CTAVhHKH.mjs +147 -0
- package/dist/PersistentHistory-CTAVhHKH.mjs.map +1 -0
- package/dist/PreparedInputAdmission-Ci18uY4s.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-BVAHoYlN.d.mts +127 -0
- package/dist/RunContinuation-Bpfp087i.mjs +1060 -0
- package/dist/RunContinuation-Bpfp087i.mjs.map +1 -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-CjVP48I8.d.mts +22 -0
- package/dist/ScheduleTransition-DtNzlN9k.mjs +180 -0
- package/dist/ScheduleTransition-DtNzlN9k.mjs.map +1 -0
- package/dist/Scheduling-BpJN9E1j.mjs +699 -0
- package/dist/Scheduling-BpJN9E1j.mjs.map +1 -0
- package/dist/Scheduling-DYTM29s9.d.mts +57 -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-CSIRUgUo.mjs +1315 -0
- package/dist/Subagent-CSIRUgUo.mjs.map +1 -0
- package/dist/Subagent-CXEI5YZ8.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-BEnICu7g.mjs +70 -0
- package/dist/SubagentHost-BEnICu7g.mjs.map +1 -0
- package/dist/SubagentHost-CKhz1vbH.d.mts +167 -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-BhQbmUD-.mjs +340 -0
- package/dist/Subscription-BhQbmUD-.mjs.map +1 -0
- package/dist/Subscription-CC--_OnU.d.mts +815 -0
- package/dist/SubscriptionInput-BEeB0Cj8.d.mts +42 -0
- package/dist/SubscriptionInput-Xcd4JjEs.mjs +53 -0
- package/dist/SubscriptionInput-Xcd4JjEs.mjs.map +1 -0
- package/dist/SubscriptionTransition-CWt9UVH0.d.mts +23 -0
- package/dist/SubscriptionTransition-lrf733c8.mjs +154 -0
- package/dist/SubscriptionTransition-lrf733c8.mjs.map +1 -0
- package/dist/Subscriptions-4K_qu_2f.mjs +638 -0
- package/dist/Subscriptions-4K_qu_2f.mjs.map +1 -0
- package/dist/Subscriptions-BF3aSf8X.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-lTZ8Ftq1.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-C8Tqiezd.mjs +491 -0
- package/dist/ThreadImport-C8Tqiezd.mjs.map +1 -0
- package/dist/ThreadImport-DaSmrlRi.d.mts +843 -0
- package/dist/ThreadInvariants-DyPhMeo-.d.mts +23 -0
- package/dist/ThreadInvariants-fniroLRY.mjs +154 -0
- package/dist/ThreadInvariants-fniroLRY.mjs.map +1 -0
- package/dist/ThreadProjectionMaintenance-D6fBjr1q.mjs +37 -0
- package/dist/ThreadProjectionMaintenance-D6fBjr1q.mjs.map +1 -0
- package/dist/ThreadProjectionMaintenance-DjUy7kCa.d.mts +51 -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-BM02cbOo.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-VjamzX3q.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-C4-HsMCp.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-CD0V--qh.d.mts +18 -0
- package/dist/WebSearch-DnbOzRL_.mjs +30 -0
- package/dist/WebSearch-DnbOzRL_.mjs.map +1 -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-BhFjx86s.mjs +162 -0
- package/dist/WorkerAdmission-BhFjx86s.mjs.map +1 -0
- package/dist/WorkerAdmission-BnRuXLWF.d.mts +171 -0
- package/dist/WorkerHost-DtYzi54D.d.mts +150 -0
- package/dist/WorkerHost-DuQug9Bq.mjs +73 -0
- package/dist/WorkerHost-DuQug9Bq.mjs.map +1 -0
- package/dist/agent-registration-CNs2twrr.mjs +262 -0
- package/dist/agent-registration-CNs2twrr.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-CHox63hg.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 +489 -5
- 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 +11137 -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,491 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D3KUYPsf.mjs";
|
|
2
|
+
import { n as utf8ByteLength } from "./utf8-Bl0ZhhGe.mjs";
|
|
3
|
+
import * as Context from "effect/Context";
|
|
4
|
+
import * as Effect from "effect/Effect";
|
|
5
|
+
import * as Pull from "effect/Pull";
|
|
6
|
+
import * as Schema from "effect/Schema";
|
|
7
|
+
import * as Stream from "effect/Stream";
|
|
8
|
+
import { l as InputMessage } from "./MessagingHost-Bm5e-kAX.mjs";
|
|
9
|
+
import { d as ToolCallId, l as SubmissionId, u as ThreadId } from "./Identifiers-LWd4837I.mjs";
|
|
10
|
+
import { f as WorkerRef } from "./Worker-CQu8Qp1j.mjs";
|
|
11
|
+
import { r as canonicalJson, s as digestJson } from "./Digest-CU6IWj-2.mjs";
|
|
12
|
+
import { _ as readRunContext, m as validateSuffix, o as isOperationalRecord, v as validateContextBoundary, y as RunContextReader } from "./RunContinuation-Bpfp087i.mjs";
|
|
13
|
+
import * as Layer from "effect/Layer";
|
|
14
|
+
import { c as transferDependencies, l as transferSections, s as sameTransferManifest, u as ImportSourcePhase } from "./ThreadTransfer-B3NkyO_y.mjs";
|
|
15
|
+
import { r as toolOperationStates } from "./tool-operations-CauPonM8.mjs";
|
|
16
|
+
import { O as sameMessageDeliveryIdentity, T as prepareCanonicalMessageDeliveries, f as MessageDeliveryRecord } from "./MessageDelivery-BE2Yf3FC.mjs";
|
|
17
|
+
import { c as decodeExportRecord } from "./RecordFormat-DoNh-AFe.mjs";
|
|
18
|
+
import { Q as RecordJson, X as RecordEnvelope, c as CanonicalBatch, f as CanonicalSequence, o as CURRENT_RECORD_FORMAT, u as CanonicalRecordEnvelope, vt as SubtreeBudgetReserved } from "./Records-C645aQks.mjs";
|
|
19
|
+
import { S as runIdForSubmission } from "./RunJournal-C_1eqQdr.mjs";
|
|
20
|
+
import { validateCanonicalSettlement, validateJoinedSettlement } from "./durable/SettlementPublisher.mjs";
|
|
21
|
+
import { Ft as unknownResolutionKind, P as InputAppliedMarker, Pt as submissionSettlementRecordId, _ as ApprovalPendingSuspension, bt as UnknownResolutionIntent, dt as SubmissionState, g as ApprovalDecisionIntent, gt as SuspensionSnapshot, jt as submissionInputRecordId, kt as submissionAbortRecordId, n as AbortIntent } from "./SubmissionLedger-WG0beEyt.mjs";
|
|
22
|
+
import { C as ThreadExport, H as ThreadResolutionFact, at as makeTransferFactCheck, b as ThreadAdmission, ct as transferPageFits, mt as isPreContinuationFact, pt as executionRunIds, x as ThreadApprovalFact, y as ThreadAbortFact } from "./ThreadStore-BMUAp5Ta.mjs";
|
|
23
|
+
import { P as workIndexChanges } from "./ThreadWork-C-xa2Boi.mjs";
|
|
24
|
+
// src/durable/internal/thread-import-reader.ts
|
|
25
|
+
/** Exact indexes for one captured Thread transaction. Run records and commands enforce count and byte bounds. */
|
|
26
|
+
var ThreadImportReader = class ThreadImportReader extends Context.Service()("@effect-agent/thread/ThreadImportReader") {
|
|
27
|
+
/** Bind context reconstruction to this same captured transaction. */
|
|
28
|
+
static layer(reader) {
|
|
29
|
+
return Layer.succeedContext(Context.make(ThreadImportReader, reader).pipe(Context.add(RunContextReader, {
|
|
30
|
+
record: reader.record,
|
|
31
|
+
read: (request) => reader.read({
|
|
32
|
+
threadId: request.threadId,
|
|
33
|
+
selection: {
|
|
34
|
+
_tag: "PromptEvidence",
|
|
35
|
+
throughSequence: request.throughSequence
|
|
36
|
+
},
|
|
37
|
+
page: {
|
|
38
|
+
limit: request.limit,
|
|
39
|
+
...request.afterSequence === void 0 ? {} : { afterSequence: request.afterSequence }
|
|
40
|
+
}
|
|
41
|
+
})
|
|
42
|
+
})));
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
/** Delivery evidence reads: the importing Thread uses staged facts; foreign Threads use retained facts. */
|
|
46
|
+
var ThreadDeliveryImportReader = class extends Context.Service()("@effect-agent/thread/ThreadDeliveryImportReader") {};
|
|
47
|
+
// src/durable/ThreadImport.ts
|
|
48
|
+
var ThreadImport_exports = /* @__PURE__ */ __exportAll({
|
|
49
|
+
RebuiltSubmission: () => RebuiltSubmission,
|
|
50
|
+
ThreadArchive: () => ThreadArchive,
|
|
51
|
+
ThreadDeliveryImportReader: () => ThreadDeliveryImportReader,
|
|
52
|
+
ThreadImport: () => ThreadImport,
|
|
53
|
+
ThreadImportReader: () => ThreadImportReader,
|
|
54
|
+
ThreadImportRejected: () => ThreadImportRejected,
|
|
55
|
+
ThreadImportResult: () => ThreadImportResult,
|
|
56
|
+
captureImportSource: () => captureImportSource,
|
|
57
|
+
finishThreadImport: () => finishThreadImport,
|
|
58
|
+
invalidThreadArchive: () => invalidThreadArchive,
|
|
59
|
+
makeThreadImportProgress: () => makeThreadImportProgress,
|
|
60
|
+
prepareImportPage: () => prepareImportPage,
|
|
61
|
+
rebuildClosedSubmission: () => rebuildClosedSubmission,
|
|
62
|
+
rebuildImportedSubmission: () => rebuildImportedSubmission,
|
|
63
|
+
reencodeThread: () => reencodeThread,
|
|
64
|
+
validateClosedRun: () => validateClosedRun,
|
|
65
|
+
validateImportedExecution: () => validateImportedExecution,
|
|
66
|
+
validateImportedRunExecution: () => validateImportedRunExecution,
|
|
67
|
+
verifyImportedInputOrder: () => verifyImportedInputOrder,
|
|
68
|
+
verifyImportedReferences: () => verifyImportedReferences
|
|
69
|
+
});
|
|
70
|
+
const sameInputMessage = Schema.toEquivalence(InputMessage);
|
|
71
|
+
/** One owned wire page. Canonical batches precede admissions; all admissions precede accepted commands.
|
|
72
|
+
* Every fact section is required, including empty sections. This order permits indexed atomic staging. */
|
|
73
|
+
const ThreadArchive = Schema.Struct({
|
|
74
|
+
...ThreadExport.fields,
|
|
75
|
+
records: Schema.Array(Schema.Struct({
|
|
76
|
+
...CanonicalRecordEnvelope.fields,
|
|
77
|
+
record: RecordJson
|
|
78
|
+
})).check(Schema.isMaxLength(256))
|
|
79
|
+
});
|
|
80
|
+
const admissionFitsTransfer = makeTransferFactCheck(ThreadAdmission);
|
|
81
|
+
const abortFitsTransfer = makeTransferFactCheck(ThreadAbortFact);
|
|
82
|
+
const approvalFitsTransfer = makeTransferFactCheck(ThreadApprovalFact);
|
|
83
|
+
const resolutionFitsTransfer = makeTransferFactCheck(ThreadResolutionFact);
|
|
84
|
+
const deliveryFitsTransfer = makeTransferFactCheck(MessageDeliveryRecord);
|
|
85
|
+
var ThreadImportResult = class extends Schema.Class("@effect-agent/thread/ThreadImportResult")({
|
|
86
|
+
threadId: ThreadId,
|
|
87
|
+
format: Schema.String,
|
|
88
|
+
tailSequence: CanonicalSequence,
|
|
89
|
+
recordCount: Schema.Natural,
|
|
90
|
+
submissionCount: Schema.Natural
|
|
91
|
+
}) {};
|
|
92
|
+
var ThreadImportRejected = class extends Schema.TaggedError()("ThreadImportRejected", {
|
|
93
|
+
threadId: Schema.optionalKey(ThreadId),
|
|
94
|
+
reason: Schema.Literals([
|
|
95
|
+
"unsupported-format",
|
|
96
|
+
"invalid-archive",
|
|
97
|
+
"target-not-empty",
|
|
98
|
+
"unsupported-obligations",
|
|
99
|
+
"destination-conflict",
|
|
100
|
+
"admission-policy-conflict",
|
|
101
|
+
"admission-policy-unavailable",
|
|
102
|
+
"unsupported-capacity"
|
|
103
|
+
]),
|
|
104
|
+
message: Schema.String
|
|
105
|
+
}) {};
|
|
106
|
+
/** One owner transaction consumes the stream; E and R are preserved, including rollback on interruption. */
|
|
107
|
+
var ThreadImport = class extends Context.Service()("@effect-agent/thread/ThreadImport") {};
|
|
108
|
+
var RebuiltSubmission = class extends Schema.Class("@effect-agent/thread/RebuiltSubmission")({
|
|
109
|
+
admission: ThreadAdmission,
|
|
110
|
+
state: SubmissionState,
|
|
111
|
+
inputApplied: Schema.optionalKey(InputAppliedMarker),
|
|
112
|
+
joinedHostSubmissionId: Schema.optionalKey(SubmissionId),
|
|
113
|
+
settlement: Schema.optionalKey(RecordEnvelope),
|
|
114
|
+
suspension: Schema.optionalKey(SuspensionSnapshot),
|
|
115
|
+
unknownToolCallIds: Schema.Array(ToolCallId),
|
|
116
|
+
abort: Schema.optionalKey(AbortIntent),
|
|
117
|
+
approvals: Schema.Array(ApprovalDecisionIntent),
|
|
118
|
+
resolutions: Schema.Array(UnknownResolutionIntent)
|
|
119
|
+
}) {};
|
|
120
|
+
/** Resolve every declared immutable reference, even in a preparation without a continuation. */
|
|
121
|
+
const verifyImportedReferences = Effect.fnUntraced(function* (entry) {
|
|
122
|
+
const reader = yield* ThreadImportReader;
|
|
123
|
+
const resolve = reader.record;
|
|
124
|
+
const payload = entry.record.payload;
|
|
125
|
+
const deliveries = yield* prepareCanonicalMessageDeliveries(entry.threadId, [entry.record]).pipe(Effect.mapError(() => invalid("Invalid canonical delivery", entry.threadId)));
|
|
126
|
+
for (const expected of deliveries) {
|
|
127
|
+
const retained = yield* reader.delivery(expected.key.messageId);
|
|
128
|
+
if (retained === void 0 || !sameMessageDeliveryIdentity(retained, expected)) return yield* invalid("Canonical delivery has no matching outbox row", entry.threadId);
|
|
129
|
+
}
|
|
130
|
+
if (payload._tag === "WorkHandoffCompleted") {
|
|
131
|
+
const preparation = yield* resolve(payload.preparationId);
|
|
132
|
+
if (preparation === void 0 || preparation.threadId !== entry.threadId || preparation.sequence >= entry.sequence || entry.record.recordId !== `work-handoff-completed:${payload.preparationId}`) return yield* invalid("Missing or ambiguous handoff preparation", entry.threadId);
|
|
133
|
+
if (!(yield* workIndexChanges(preparation, "none")).some((change) => change._tag === "Put" && change.entry.owner._tag === "Handoff" && change.entry.id === payload.ownerId)) return yield* invalid("Handoff closure does not identify its preparation's exact owner", entry.threadId);
|
|
134
|
+
}
|
|
135
|
+
if (payload._tag === "RunContextRecorded") {
|
|
136
|
+
const owner = yield* reader.runOwner(payload.runId);
|
|
137
|
+
const original = owner === void 0 ? void 0 : yield* resolve(submissionInputRecordId(owner.submissionId));
|
|
138
|
+
if (original === void 0 || original.threadId !== entry.threadId || original.sequence >= entry.sequence) return yield* invalid("Saved context has no original admitted input", entry.threadId);
|
|
139
|
+
yield* validateContextBoundary(payload, original).pipe(Effect.mapError((error) => invalid(error.message, entry.threadId)));
|
|
140
|
+
}
|
|
141
|
+
const references = payload._tag === "WorkerInputRefused" ? [payload.reservation, payload.stop] : payload._tag === "RunContextRecorded" ? payload.retained : payload._tag === "RunContinuation" ? [
|
|
142
|
+
payload.originalInput,
|
|
143
|
+
payload.savedContext,
|
|
144
|
+
payload.latestResponse,
|
|
145
|
+
payload.terminal,
|
|
146
|
+
payload.lastFact
|
|
147
|
+
].filter((ref) => ref !== void 0) : [];
|
|
148
|
+
for (const ref of references) {
|
|
149
|
+
const evidence = yield* resolve(ref.recordId);
|
|
150
|
+
if (evidence === void 0 || evidence.threadId !== entry.threadId || evidence.sequence >= entry.sequence || "sequence" in ref && evidence.sequence !== ref.sequence) return yield* invalid("Missing, foreign or forward canonical dependency", entry.threadId);
|
|
151
|
+
}
|
|
152
|
+
if (payload._tag === "WorkerInputRefused") {
|
|
153
|
+
const request = (yield* resolve(payload.reservation.recordId)).record.payload;
|
|
154
|
+
const stop = (yield* resolve(payload.stop.recordId)).record.payload;
|
|
155
|
+
const retained = yield* reader.delivery(payload.messageId);
|
|
156
|
+
if (retained === void 0 || retained.key.ownerThreadId !== entry.threadId || retained.key.messageId !== payload.messageId || retained.status !== "refused" || retained.receipt !== null || retained.settlement !== null || retained.version !== payload.deliveryVersion || retained.envelopeDigest !== payload.envelopeDigest || retained.envelope.threadId !== payload.workerThreadId || retained.envelope.deliveryPrincipal !== payload.receiver.principal || retained.envelope.admissionKey !== payload.receiver.idempotencyKey || retained.envelope.inputDigest !== payload.receiver.inputDigest || retained.envelope.workerAdmission === void 0 || retained.envelope.workerAdmission.messageId !== payload.messageId || retained.envelope.workerAdmission.origin.source.threadId !== entry.threadId || stop._tag !== "WorkerStopRequested" || !Schema.toEquivalence(WorkerRef)(stop.command.worker, retained.envelope.workerAdmission.origin.worker)) return yield* invalid("Worker refusal has no exact refused delivery and source stop proof", entry.threadId);
|
|
157
|
+
if (request._tag === "WorkerInputRequested") {
|
|
158
|
+
if (request.inputDigest !== retained.envelope.inputDigest || !Schema.toEquivalence(MessageDeliveryRecord.fields.envelope.fields.workerAdmission)(request.admission, retained.envelope.workerAdmission)) return yield* invalid("Worker refusal reservation differs from its exact request", entry.threadId);
|
|
159
|
+
} else if (request._tag !== "SubtreeBudgetReserved" || request.childThreadId !== payload.workerThreadId || request.reservationId !== payload.messageId || request.lifetime !== "background" || request.executionRunId !== retained.envelope.workerAdmission.executionRunId || request.sourceSubmissionId !== retained.envelope.workerAdmission.sourceSubmissionId || request.depth !== retained.envelope.workerAdmission.origin.depth || !Schema.toEquivalence(SubtreeBudgetReserved.fields.policy)(request.policy, retained.envelope.workerAdmission.origin.policy) || !Schema.toEquivalence(SubtreeBudgetReserved.fields.grant)(request.grant, retained.envelope.workerAdmission.origin.grant) || !Schema.toEquivalence(SubtreeBudgetReserved.fields.budget)(request.budget, retained.envelope.workerAdmission.origin.budget)) return yield* invalid("Worker refusal has no exact source reservation", entry.threadId);
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
const sequence = Schema.decodeSync(CanonicalSequence);
|
|
163
|
+
const digest = (value) => digestJson(value).pipe(Effect.mapError(() => invalid("Unable to digest imported facts")));
|
|
164
|
+
const invalidThreadArchive = (message, threadId) => ThreadImportRejected.make({
|
|
165
|
+
reason: "invalid-archive",
|
|
166
|
+
message,
|
|
167
|
+
...threadId === void 0 ? {} : { threadId }
|
|
168
|
+
});
|
|
169
|
+
const invalid = invalidThreadArchive;
|
|
170
|
+
/** Validate authoritative active state against the same staged/captured history and admissions. */
|
|
171
|
+
const validateImportedExecution = Effect.fnUntraced(function* (threadId, checkpoint, tailSequence) {
|
|
172
|
+
const reader = yield* ThreadImportReader;
|
|
173
|
+
const progress = checkpoint.progress;
|
|
174
|
+
const admission = yield* reader.admission(progress.submissionId);
|
|
175
|
+
const own = (yield* reader.runRecords(progress.runId)).filter((entry) => executionRunIds(entry.record).includes(progress.runId));
|
|
176
|
+
const local = new Map(checkpoint.operational.map((record) => [record.recordId, record]));
|
|
177
|
+
if (admission === void 0 || admission.threadId !== threadId || runIdForSubmission(admission.submissionId) !== progress.runId || checkpoint.progressRecord.recordId !== JSON.stringify([
|
|
178
|
+
"continuation@1",
|
|
179
|
+
progress.runId,
|
|
180
|
+
checkpoint.batchId
|
|
181
|
+
]) || checkpoint.throughSequence > tailSequence || checkpoint.originalSequence > checkpoint.throughSequence || local.size !== checkpoint.operational.length || checkpoint.operational.some((record) => !isOperationalRecord(record) || !executionRunIds(record).includes(progress.runId)) || own.filter((entry) => entry.sequence <= checkpoint.throughSequence).length !== checkpoint.canonicalRecords || !validateSuffix(own, checkpoint.throughSequence)) return yield* invalid("Active execution identity, revision or history boundary is invalid", threadId);
|
|
182
|
+
for (const id of local.keys()) if ((yield* reader.record(id)) !== void 0) return yield* invalid("Operational identity collides with retained history", threadId);
|
|
183
|
+
const resolve = Effect.fnUntraced(function* (ref) {
|
|
184
|
+
const retained = yield* reader.record(ref.recordId);
|
|
185
|
+
const record = local.get(ref.recordId) ?? retained?.record;
|
|
186
|
+
if (record === void 0 || retained !== void 0 && (retained.threadId !== threadId || retained.sequence > checkpoint.throughSequence) || !executionRunIds(record).includes(progress.runId)) return yield* invalid("Active execution reference is missing, foreign or corrupt", threadId);
|
|
187
|
+
return record;
|
|
188
|
+
});
|
|
189
|
+
const original = yield* reader.record(progress.originalInput.recordId);
|
|
190
|
+
const input = (yield* resolve(progress.originalInput)).payload;
|
|
191
|
+
if (original === void 0 || original.sequence !== checkpoint.originalSequence || input._tag !== "UserInputRecorded" || input.kind !== "user" || input.runId !== progress.runId || input.submissionId !== progress.submissionId) return yield* invalid("Active execution has no exact original admitted input", threadId);
|
|
192
|
+
yield* resolve(progress.lastFact);
|
|
193
|
+
if (progress.savedContext !== void 0) {
|
|
194
|
+
const context = yield* resolve(progress.savedContext);
|
|
195
|
+
if (context.payload._tag !== "RunContextRecorded" || !local.has(context.recordId)) return yield* invalid("Saved context is not owned active state", threadId);
|
|
196
|
+
yield* validateContextBoundary(context.payload, original).pipe(Effect.mapError((cause) => invalid(cause.message, threadId)));
|
|
197
|
+
yield* readRunContext(context.payload, original, progress.savedContext.recordId).pipe(Effect.mapError((cause) => invalid(cause.message, threadId)));
|
|
198
|
+
}
|
|
199
|
+
if (progress.latestResponse !== void 0) {
|
|
200
|
+
const response = (yield* resolve(progress.latestResponse)).payload;
|
|
201
|
+
if (response._tag !== "ModelResponseRecorded" || response.turn !== progress.accounting.committedTurns || progress.savedContext === void 0) return yield* invalid("Active execution has invalid declared operation evidence", threadId);
|
|
202
|
+
} else if (progress.accounting.committedTurns !== 0) return yield* invalid("Active accounting has no corresponding response", threadId);
|
|
203
|
+
if (progress.terminal !== void 0) {
|
|
204
|
+
const terminal = (yield* resolve(progress.terminal)).payload;
|
|
205
|
+
if (terminal._tag !== "RunCompleted" && terminal._tag !== "RunFailed" && terminal._tag !== "SubmissionSettled") return yield* invalid("Active execution has invalid terminal intent", threadId);
|
|
206
|
+
if (progress.position === "settled" && terminal._tag !== "SubmissionSettled") return yield* invalid("Settled active state has no canonical terminal outcome", threadId);
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
/** An executed unfinished Run cannot be imported without its authoritative operational owner. */
|
|
210
|
+
const validateImportedRunExecution = Effect.fnUntraced(function* (threadId, runId, tailSequence) {
|
|
211
|
+
const reader = yield* ThreadImportReader;
|
|
212
|
+
const checkpoint = yield* reader.execution(runId);
|
|
213
|
+
if (checkpoint !== void 0) return yield* validateImportedExecution(threadId, checkpoint, tailSequence);
|
|
214
|
+
const records = yield* reader.runRecords(runId);
|
|
215
|
+
if (records.some(({ record }) => record.payload._tag === "UserInputRecorded" && record.payload.kind === "user" && record.payload.submissionId !== void 0) && !records.some(({ record }) => record.payload._tag === "SubmissionSettled" && record.payload.runId === runId) && records.some(({ record }) => !isPreContinuationFact(record))) return yield* invalid("Unfinished execution is missing its authoritative checkpoint", threadId);
|
|
216
|
+
});
|
|
217
|
+
/** Own the first page before entering a destination gate; reuse the same scoped source pull. */
|
|
218
|
+
const captureImportSource = (pages, use) => Effect.scoped(Effect.suspend(() => {
|
|
219
|
+
const phase = { writing: false };
|
|
220
|
+
return Effect.gen(function* () {
|
|
221
|
+
const pull = yield* Stream.toPull(Stream.rechunk(pages, 1));
|
|
222
|
+
const first = yield* Pull.catchDone(pull, () => Effect.fail(invalid("Missing transfer pages")));
|
|
223
|
+
const codec = Schema.fromJsonString(ThreadArchive);
|
|
224
|
+
const wire = yield* Schema.encodeEffect(codec)(first[0]).pipe(Effect.mapError((cause) => invalid(`Malformed first transfer page: ${cause.message}`)));
|
|
225
|
+
if (utf8ByteLength(wire) > 33554432) return yield* invalid("Transfer page exceeds 32 MiB");
|
|
226
|
+
const owned = yield* Schema.decodeEffect(codec)(wire).pipe(Effect.mapError((cause) => invalid(`Malformed first transfer page: ${cause.message}`)));
|
|
227
|
+
phase.writing = true;
|
|
228
|
+
return yield* use(Stream.succeed(owned).pipe(Stream.concat(Stream.fromPull(Effect.succeed(pull)))));
|
|
229
|
+
}).pipe(Effect.provideService(ImportSourcePhase, phase));
|
|
230
|
+
}));
|
|
231
|
+
const makeThreadImportProgress = () => ({
|
|
232
|
+
manifest: void 0,
|
|
233
|
+
sequence: 0,
|
|
234
|
+
ended: false,
|
|
235
|
+
cursor: void 0,
|
|
236
|
+
counts: {
|
|
237
|
+
admissions: 0,
|
|
238
|
+
aborts: 0,
|
|
239
|
+
approvals: 0,
|
|
240
|
+
resolutions: 0,
|
|
241
|
+
deliveries: 0
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
/** Capture before awaiting any writes; the retained manifest never retains page payload arrays. */
|
|
245
|
+
const prepareImportPage = Effect.fnUntraced(function* (state, input, options) {
|
|
246
|
+
const codec = Schema.fromJsonString(ThreadArchive);
|
|
247
|
+
const wire = yield* Schema.encodeEffect(codec)(input).pipe(Effect.mapError(() => invalid("Malformed transfer page")));
|
|
248
|
+
if (utf8ByteLength(wire) > 33554432) return yield* invalid("Transfer page exceeds 32 MiB");
|
|
249
|
+
const archive = yield* Schema.decodeEffect(codec)(wire).pipe(Effect.mapError(() => invalid("Malformed transfer page")));
|
|
250
|
+
const { threadId } = archive;
|
|
251
|
+
if (!transferPageFits(threadId) || archive.admissions.some((fact) => !admissionFitsTransfer(threadId, fact)) || archive.commands.aborts.some((fact) => !abortFitsTransfer(threadId, fact)) || archive.commands.approvals.some((fact) => !approvalFitsTransfer(threadId, fact)) || archive.commands.resolutions.some((fact) => !resolutionFitsTransfer(threadId, fact)) || archive.deliveries.some((fact) => !deliveryFitsTransfer(threadId, fact))) return yield* ThreadImportRejected.make({
|
|
252
|
+
threadId,
|
|
253
|
+
reason: "unsupported-capacity",
|
|
254
|
+
message: "Imported fact exceeds its bounded transfer representation"
|
|
255
|
+
});
|
|
256
|
+
if (state.ended) return yield* invalid("Page after the final transfer page", threadId);
|
|
257
|
+
if (archive.format !== "effect-agent/thread@6") return yield* ThreadImportRejected.make({
|
|
258
|
+
threadId,
|
|
259
|
+
reason: "unsupported-format",
|
|
260
|
+
message: `Only ${CURRENT_RECORD_FORMAT} can be imported`
|
|
261
|
+
});
|
|
262
|
+
if (state.manifest !== void 0 && !sameTransferManifest(state.manifest, archive)) return yield* invalid("Transfer snapshot changed", threadId);
|
|
263
|
+
if (archive.fromSequence !== state.sequence + 1 || archive.cursor !== void 0 && archive.cursor === state.cursor) return yield* invalid("Transfer page position is invalid", threadId);
|
|
264
|
+
if (archive.records.length > 0 && transferSections.some((section) => state.counts[section] > 0)) return yield* invalid("Canonical records follow immutable fact sections", threadId);
|
|
265
|
+
if (archive.admissions.length > 0 && state.counts.aborts + state.counts.approvals + state.counts.resolutions + state.counts.deliveries > 0) return yield* invalid("Admissions follow accepted command sections", threadId);
|
|
266
|
+
const records = [];
|
|
267
|
+
const prepared = [];
|
|
268
|
+
let index = 0;
|
|
269
|
+
for (const batch of archive.batches) {
|
|
270
|
+
const current = [];
|
|
271
|
+
const encoded = [];
|
|
272
|
+
const firstSequence = sequence(state.sequence + 1);
|
|
273
|
+
while (archive.records[index]?.batchId === batch.batchId) {
|
|
274
|
+
const entry = archive.records[index];
|
|
275
|
+
if (entry.threadId !== threadId || entry.sequence !== state.sequence + 1) return yield* invalid("Canonical identity or sequence mismatch", threadId);
|
|
276
|
+
const record = yield* decodeExportRecord(archive.format, entry.record).pipe(Effect.mapError((e) => invalid(e.message, threadId)));
|
|
277
|
+
if (record.payload._tag === "RunContinuation") return yield* invalid("Mutable interpreter progress is not canonical history", threadId);
|
|
278
|
+
records.push(CanonicalRecordEnvelope.make({
|
|
279
|
+
...entry,
|
|
280
|
+
record
|
|
281
|
+
}));
|
|
282
|
+
current.push(record);
|
|
283
|
+
encoded.push(entry.record);
|
|
284
|
+
index++;
|
|
285
|
+
state.sequence++;
|
|
286
|
+
}
|
|
287
|
+
const canonical = yield* Schema.decodeUnknownEffect(Schema.toType(Schema.Struct(CanonicalBatch.fields)))({
|
|
288
|
+
...batch,
|
|
289
|
+
records: current
|
|
290
|
+
}).pipe(Effect.mapError(() => invalid("Empty or oversized canonical batch", threadId)), Effect.map((value) => CanonicalBatch.make(value)));
|
|
291
|
+
const batchJson = canonicalJson({
|
|
292
|
+
...batch,
|
|
293
|
+
records: encoded
|
|
294
|
+
});
|
|
295
|
+
if (utf8ByteLength(batchJson) > 16777216) return yield* invalid("Canonical batch exceeds 16 MiB", threadId);
|
|
296
|
+
prepared.push({
|
|
297
|
+
batch: canonical,
|
|
298
|
+
batchJson,
|
|
299
|
+
recordJson: encoded.map(canonicalJson),
|
|
300
|
+
firstSequence,
|
|
301
|
+
lastSequence: sequence(state.sequence)
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
if (index !== archive.records.length || state.sequence > archive.tailSequence) return yield* invalid("Unbound canonical records or records beyond the captured tail", threadId);
|
|
305
|
+
if (archive.admissions.length + archive.commands.aborts.length + archive.commands.approvals.length + archive.commands.resolutions.length + archive.deliveries.length > 0 && state.sequence !== archive.tailSequence) return yield* invalid("Immutable sections precede the complete canonical prefix", threadId);
|
|
306
|
+
if (archive.commands.aborts.length + archive.commands.approvals.length + archive.commands.resolutions.length > 0 && state.counts.admissions + archive.admissions.length !== archive.snapshot.admissions) return yield* invalid("Accepted commands precede the complete admission directory", threadId);
|
|
307
|
+
const sectionLength = (section) => section === "admissions" ? archive.admissions.length : section === "deliveries" ? archive.deliveries.length : archive.commands[section].length;
|
|
308
|
+
for (let index = 0; index < transferSections.length; index++) {
|
|
309
|
+
if (sectionLength(transferSections[index]) === 0) continue;
|
|
310
|
+
if (transferSections.slice(0, index).some((prior) => state.counts[prior] + sectionLength(prior) !== archive.snapshot[prior]) || transferSections.slice(index + 1).some((later) => state.counts[later] !== 0)) return yield* invalid("Transfer fact sections are out of order", threadId);
|
|
311
|
+
}
|
|
312
|
+
const required = transferDependencies(records);
|
|
313
|
+
if (canonicalJson(required) !== canonicalJson([...archive.dependencies].sort())) return yield* invalid("Cross-range dependency directory is incomplete or ambiguous", threadId);
|
|
314
|
+
for (const section of transferSections) {
|
|
315
|
+
state.counts[section] += sectionLength(section);
|
|
316
|
+
if (state.counts[section] > archive.snapshot[section]) return yield* invalid(`Too many ${section} facts`, threadId);
|
|
317
|
+
}
|
|
318
|
+
for (const admission of archive.admissions) {
|
|
319
|
+
if (!options?.verification && admission.settledAt === void 0) return yield* invalid("Closed admission is missing its stable settlement timestamp", threadId);
|
|
320
|
+
if (admission.threadId !== threadId || (yield* digest(admission.inputPayload)) !== admission.inputDigest) return yield* invalid("Admission identity or input digest mismatch", threadId);
|
|
321
|
+
}
|
|
322
|
+
for (const delivery of archive.deliveries) {
|
|
323
|
+
const encoded = yield* Schema.encodeEffect(MessageDeliveryRecord)(delivery).pipe(Effect.mapError(() => invalid("Invalid delivery fact", threadId)));
|
|
324
|
+
if (delivery.key.ownerThreadId !== threadId || !options?.verification && (delivery.leaseUntilMillis !== null || !["processed", "refused"].includes(delivery.status)) || (yield* digest(encoded.envelope)) !== delivery.envelopeDigest) return yield* invalid("Delivery ownership, lease or envelope digest mismatch", threadId);
|
|
325
|
+
}
|
|
326
|
+
state.manifest = {
|
|
327
|
+
...archive,
|
|
328
|
+
records: [],
|
|
329
|
+
batches: [],
|
|
330
|
+
admissions: [],
|
|
331
|
+
commands: {
|
|
332
|
+
aborts: [],
|
|
333
|
+
approvals: [],
|
|
334
|
+
resolutions: []
|
|
335
|
+
},
|
|
336
|
+
deliveries: [],
|
|
337
|
+
dependencies: []
|
|
338
|
+
};
|
|
339
|
+
state.cursor = archive.cursor;
|
|
340
|
+
state.ended = archive.cursor === void 0;
|
|
341
|
+
return {
|
|
342
|
+
archive,
|
|
343
|
+
records,
|
|
344
|
+
batches: prepared
|
|
345
|
+
};
|
|
346
|
+
});
|
|
347
|
+
const finishThreadImport = Effect.fnUntraced(function* (state) {
|
|
348
|
+
const page = state.manifest;
|
|
349
|
+
if (page === void 0 || !state.ended || state.sequence !== page.tailSequence || transferSections.some((section) => state.counts[section] !== page.snapshot[section])) return yield* invalid("Transfer stream ended before its complete canonical sequence and fact sections");
|
|
350
|
+
return ThreadImportResult.make({
|
|
351
|
+
threadId: page.threadId,
|
|
352
|
+
format: page.format,
|
|
353
|
+
tailSequence: page.tailSequence,
|
|
354
|
+
recordCount: state.sequence,
|
|
355
|
+
submissionCount: state.counts.admissions
|
|
356
|
+
});
|
|
357
|
+
});
|
|
358
|
+
/** An executed receipt must settle strictly after its own input. FIFO inputs are checked in one pass. */
|
|
359
|
+
const verifyImportedInputOrder = Effect.fnUntraced(function* (admission) {
|
|
360
|
+
const reader = yield* ThreadImportReader;
|
|
361
|
+
const settlement = yield* reader.record(submissionSettlementRecordId(admission.submissionId));
|
|
362
|
+
if (settlement === void 0) return;
|
|
363
|
+
const applied = yield* reader.record(submissionInputRecordId(admission.submissionId));
|
|
364
|
+
const payload = settlement.record.payload;
|
|
365
|
+
if (applied === void 0 && payload._tag === "SubmissionSettled" && payload.outcome === "aborted") return;
|
|
366
|
+
if (applied === void 0 || applied.sequence >= settlement.sequence) return yield* invalid("Executed settlement has no preceding canonical input", admission.threadId);
|
|
367
|
+
});
|
|
368
|
+
/** Rebuild ONE admitted submission from exact staged evidence; terminal state does not erase uncertainty. */
|
|
369
|
+
const rebuildImportedSubmission = Effect.fnUntraced(function* (admission) {
|
|
370
|
+
const reader = yield* ThreadImportReader;
|
|
371
|
+
const threadId = admission.threadId;
|
|
372
|
+
const inputEntry = yield* reader.record(submissionInputRecordId(admission.submissionId));
|
|
373
|
+
const payload = inputEntry?.record.payload;
|
|
374
|
+
if (inputEntry !== void 0 && (payload?._tag !== "UserInputRecorded" || payload.submissionId !== admission.submissionId || payload.kind !== "user" && payload.kind !== "steering" || (payload.messageAdmission === void 0 ? admission.messageAdmission !== void 0 : admission.messageAdmission === void 0 || !sameInputMessage(payload.messageAdmission, admission.messageAdmission)) || canonicalJson(payload.input) !== canonicalJson(admission.inputPayload))) return yield* invalid("Canonical input disagrees with its immutable admission", threadId);
|
|
375
|
+
const runId = payload?._tag === "UserInputRecorded" ? payload.runId : void 0;
|
|
376
|
+
const host = runId === void 0 ? void 0 : yield* reader.runOwner(runId);
|
|
377
|
+
if (inputEntry !== void 0 && host === void 0) return yield* invalid("Canonical Run has no admitted owner", threadId);
|
|
378
|
+
const joined = host !== void 0 && host.submissionId !== admission.submissionId ? host.submissionId : void 0;
|
|
379
|
+
if (payload?._tag === "UserInputRecorded" && payload.kind !== (joined === void 0 ? "user" : "steering")) return yield* invalid("Canonical input kind disagrees with its admitted Run owner", threadId);
|
|
380
|
+
if (joined !== void 0 && host !== void 0 && host.queueSequence >= admission.queueSequence) return yield* invalid("Joined input precedes its host admission", threadId);
|
|
381
|
+
const settlement = (yield* reader.record(submissionSettlementRecordId(admission.submissionId)))?.record;
|
|
382
|
+
if (settlement !== void 0) {
|
|
383
|
+
yield* validateCanonicalSettlement(settlement, admission).pipe(Effect.mapError(() => invalid("Canonical settlement disagrees with its receipt", threadId)));
|
|
384
|
+
if (settlement.payload._tag !== "SubmissionSettled" || settlement.payload.runId !== runId) return yield* invalid("Settlement Run does not own its canonical input", threadId);
|
|
385
|
+
if (joined !== void 0) {
|
|
386
|
+
const hostSettlement = (yield* reader.record(submissionSettlementRecordId(joined)))?.record.payload;
|
|
387
|
+
if (hostSettlement?._tag !== "SubmissionSettled") return yield* invalid("Joined settlement has no host settlement", threadId);
|
|
388
|
+
yield* validateJoinedSettlement(settlement.payload, hostSettlement).pipe(Effect.mapError(() => invalid("Joined settlement conflicts with its host", threadId)));
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
const ownRun = runIdForSubmission(admission.submissionId);
|
|
392
|
+
const runRecords = yield* reader.runRecords(ownRun);
|
|
393
|
+
if (inputEntry === void 0 && runRecords.some(({ record }) => !isPreContinuationFact(record))) return yield* invalid("Admitted Run executed without its original canonical input", threadId);
|
|
394
|
+
const operations = toolOperationStates(runRecords, ownRun);
|
|
395
|
+
const operationCounts = /* @__PURE__ */ new Map();
|
|
396
|
+
for (const state of operations) operationCounts.set(state.operation.toolCallId, (operationCounts.get(state.operation.toolCallId) ?? 0) + 1);
|
|
397
|
+
const toolRecords = /* @__PURE__ */ new Map();
|
|
398
|
+
for (const entry of runRecords) {
|
|
399
|
+
const payload = entry.record.payload;
|
|
400
|
+
if (!("toolCallId" in payload)) continue;
|
|
401
|
+
const entries = toolRecords.get(payload.toolCallId) ?? [];
|
|
402
|
+
entries.push(entry);
|
|
403
|
+
toolRecords.set(payload.toolCallId, entries);
|
|
404
|
+
}
|
|
405
|
+
const commands = yield* reader.commands(admission.submissionId);
|
|
406
|
+
const approvals = commands.approvals.map((intent) => ApprovalDecisionIntent.make(intent));
|
|
407
|
+
const resolutions = commands.resolutions.map((intent) => UnknownResolutionIntent.make(intent));
|
|
408
|
+
const acceptedAbort = commands.aborts[0];
|
|
409
|
+
if (commands.aborts.length > 1) return yield* invalid("Duplicate accepted abort", threadId);
|
|
410
|
+
const canonicalAbort = yield* reader.record(submissionAbortRecordId(admission.submissionId));
|
|
411
|
+
if (canonicalAbort !== void 0 && acceptedAbort === void 0) return yield* invalid("Canonical abort has no immutable accepted command", threadId);
|
|
412
|
+
const abort = canonicalAbort?.record.payload._tag === "AbortRequested" ? AbortIntent.make({
|
|
413
|
+
...canonicalAbort.record.payload,
|
|
414
|
+
requestedAt: acceptedAbort?.requestedAt ?? canonicalAbort.record.createdAt,
|
|
415
|
+
canonicalRecordId: canonicalAbort.record.recordId
|
|
416
|
+
}) : acceptedAbort === void 0 ? void 0 : AbortIntent.make(acceptedAbort);
|
|
417
|
+
if (acceptedAbort !== void 0 && abort !== void 0 && (acceptedAbort.author !== abort.author || acceptedAbort.reason !== abort.reason)) return yield* invalid("Accepted abort conflicts with the canonical command", threadId);
|
|
418
|
+
for (const command of [...approvals, ...resolutions]) if (operationCounts.get(command.toolCallId) !== 1) return yield* invalid("Accepted tool command has no unambiguous canonical declaration", threadId);
|
|
419
|
+
for (const command of approvals) {
|
|
420
|
+
const requested = (toolRecords.get(command.toolCallId) ?? []).filter(({ record: { payload } }) => payload._tag === "ToolApprovalRequested" && payload.toolCallId === command.toolCallId);
|
|
421
|
+
const decided = (toolRecords.get(command.toolCallId) ?? []).filter(({ record: { payload } }) => payload._tag === "ToolApprovalDecided" && payload.toolCallId === command.toolCallId);
|
|
422
|
+
if (requested.length !== 1 || decided.length > 1 || decided.some(({ record: { payload } }) => payload._tag === "ToolApprovalDecided" && (payload.decision !== command.decision || payload.resolver !== command.resolver || payload.reason !== command.reason))) return yield* invalid("Accepted approval conflicts with its canonical request or decision", threadId);
|
|
423
|
+
}
|
|
424
|
+
for (const command of resolutions) {
|
|
425
|
+
if (command.resolution._tag === "AbortSubmission" && abort === void 0) return yield* invalid("AbortSubmission resolution has no accepted or canonical abort", threadId);
|
|
426
|
+
const resolved = (toolRecords.get(command.toolCallId) ?? []).filter(({ record: { payload } }) => payload._tag === "ToolCallResolved" && payload.toolCallId === command.toolCallId && (payload.resolution === "safe-retry" ? "execution" : "factual") === unknownResolutionKind(command.resolution));
|
|
427
|
+
const expected = command.resolution._tag === "CompletedWithResult" ? command.resolution.isFailure ? "failed-with-error" : "completed-with-result" : command.resolution._tag === "NeverHappened" ? "never-started" : command.resolution._tag === "SafeToRetry" ? "safe-retry" : void 0;
|
|
428
|
+
if (resolved.length > 1 || resolved.some(({ record: { payload } }) => payload._tag === "ToolCallResolved" && (payload.resolution !== expected || payload.author !== command.author || payload.reason !== command.reason))) return yield* invalid("Accepted resolution conflicts with its canonical audit", threadId);
|
|
429
|
+
if (command.resolution._tag === "CompletedWithResult") {
|
|
430
|
+
const result = command.resolution;
|
|
431
|
+
const outcomes = (toolRecords.get(command.toolCallId) ?? []).filter(({ record: { payload } }) => payload._tag === "ToolCallSettled" && payload.toolCallId === command.toolCallId);
|
|
432
|
+
if (outcomes.length > 1 || outcomes.some(({ record: { payload } }) => payload._tag === "ToolCallSettled" && (payload.isFailure !== result.isFailure || canonicalJson(payload.result) !== canonicalJson(result.result)))) return yield* invalid("Accepted resolution conflicts with the canonical tool result", threadId);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
const unknown = operations.filter((state) => !state.settled && !state.resolved && (state.unknown || !state.dispatchBlocked && state.operation.executionKind === "ordinary" && state.operation.executionClass !== "readonly")).map((state) => state.operation.toolCallId);
|
|
436
|
+
const acceptedApprovals = new Set(approvals.map((intent) => intent.toolCallId));
|
|
437
|
+
const pendingApprovals = runRecords.filter(({ record: { payload } }) => payload._tag === "ToolApprovalRequested").flatMap(({ record }) => {
|
|
438
|
+
if (record.payload._tag !== "ToolApprovalRequested") return [];
|
|
439
|
+
const id = record.payload.toolCallId;
|
|
440
|
+
return acceptedApprovals.has(id) || (toolRecords.get(id) ?? []).some(({ record: { payload } }) => payload._tag === "ToolApprovalDecided" && payload.toolCallId === id) ? [] : [id];
|
|
441
|
+
});
|
|
442
|
+
const suspension = pendingApprovals.length === 0 ? void 0 : SuspensionSnapshot.make({
|
|
443
|
+
reason: ApprovalPendingSuspension.make({ toolCallIds: [pendingApprovals[0], ...pendingApprovals.slice(1)] }),
|
|
444
|
+
suspendedAt: runRecords.at(-1)?.record.createdAt ?? admission.createdAt
|
|
445
|
+
});
|
|
446
|
+
const state = settlement !== void 0 ? "settled" : joined !== void 0 ? "joined" : unknown.length > 0 ? "unknown" : suspension !== void 0 ? "suspended" : inputEntry !== void 0 ? "input-applied" : (yield* reader.hasAgent(admission.agentId)) ? "ready" : "admitted";
|
|
447
|
+
return RebuiltSubmission.make({
|
|
448
|
+
admission,
|
|
449
|
+
state,
|
|
450
|
+
...inputEntry === void 0 ? {} : { inputApplied: InputAppliedMarker.make({
|
|
451
|
+
recordId: inputEntry.record.recordId,
|
|
452
|
+
sequence: inputEntry.sequence
|
|
453
|
+
}) },
|
|
454
|
+
...joined === void 0 ? {} : { joinedHostSubmissionId: joined },
|
|
455
|
+
...settlement === void 0 ? {} : { settlement },
|
|
456
|
+
...state !== "suspended" || suspension === void 0 ? {} : { suspension },
|
|
457
|
+
unknownToolCallIds: unknown,
|
|
458
|
+
...abort === void 0 ? {} : { abort },
|
|
459
|
+
approvals,
|
|
460
|
+
resolutions
|
|
461
|
+
});
|
|
462
|
+
});
|
|
463
|
+
/** Immediate persistent history has no ledger/checkpoint owner, but still needs a terminal Run fact. */
|
|
464
|
+
const validateClosedRun = Effect.fnUntraced(function* (threadId, runId) {
|
|
465
|
+
const records = yield* (yield* ThreadImportReader).runRecords(runId);
|
|
466
|
+
const opened = records.some(({ record: { payload } }) => (payload._tag === "UserInputRecorded" || payload._tag === "RunStarted" || payload._tag === "ModelResponseRecorded") && payload.runId === runId);
|
|
467
|
+
const closed = records.some(({ record: { payload } }) => (payload._tag === "RunCompleted" || payload._tag === "RunFailed" || payload._tag === "SubmissionSettled") && payload.runId === runId);
|
|
468
|
+
if (opened && !closed) return yield* invalid("Transfer contains an unfinished Run", threadId);
|
|
469
|
+
});
|
|
470
|
+
/** Idle transfer keeps closed receipts, never the authority to finish their former work. */
|
|
471
|
+
const rebuildClosedSubmission = Effect.fnUntraced(function* (admission) {
|
|
472
|
+
if (admission.settledAt === void 0) return yield* invalid("Closed admission is missing its stable settlement timestamp", admission.threadId);
|
|
473
|
+
const rebuilt = yield* rebuildImportedSubmission(admission);
|
|
474
|
+
const reader = yield* ThreadImportReader;
|
|
475
|
+
if (rebuilt.state !== "settled" || rebuilt.unknownToolCallIds.length > 0 || rebuilt.suspension !== void 0) return yield* invalid("Transfer contains unfinished accepted work", admission.threadId);
|
|
476
|
+
if (rebuilt.abort !== void 0 && rebuilt.abort.canonicalRecordId === void 0) return yield* invalid("Transfer contains an unapplied abort", admission.threadId);
|
|
477
|
+
const records = yield* reader.runRecords(runIdForSubmission(admission.submissionId));
|
|
478
|
+
const decidedApprovals = new Set(records.flatMap(({ record: { payload } }) => payload._tag === "ToolApprovalDecided" ? [payload.toolCallId] : []));
|
|
479
|
+
if (records.some(({ record: { payload } }) => payload._tag === "ToolApprovalRequested" && !decidedApprovals.has(payload.toolCallId))) return yield* invalid("Transfer contains an unresolved approval", admission.threadId);
|
|
480
|
+
for (const approval of rebuilt.approvals) if (!records.some(({ record: { payload } }) => payload._tag === "ToolApprovalDecided" && payload.toolCallId === approval.toolCallId)) return yield* invalid("Transfer contains an unapplied approval", admission.threadId);
|
|
481
|
+
for (const resolution of rebuilt.resolutions) if (resolution.resolution._tag !== "AbortSubmission" && !records.some(({ record: { payload } }) => payload._tag === "ToolCallResolved" && payload.toolCallId === resolution.toolCallId && (payload.resolution === "safe-retry" ? "execution" : "factual") === unknownResolutionKind(resolution.resolution))) return yield* invalid("Transfer contains an unapplied resolution", admission.threadId);
|
|
482
|
+
yield* verifyImportedInputOrder(admission);
|
|
483
|
+
return rebuilt;
|
|
484
|
+
});
|
|
485
|
+
/** Encode one page at a time and retain upstream stream errors and requirements. */
|
|
486
|
+
const reencodeThread = Effect.fnUntraced(function* (source) {
|
|
487
|
+
return yield* (yield* ThreadImport).import(source.pipe(Stream.mapEffect((page) => Schema.encodeEffect(ThreadExport)(page).pipe(Effect.flatMap(Schema.decodeUnknownEffect(ThreadArchive)), Effect.mapError(() => invalid("Unable to encode source page", page.threadId))))));
|
|
488
|
+
});
|
|
489
|
+
export { validateImportedRunExecution as _, ThreadImportResult as a, ThreadDeliveryImportReader as b, finishThreadImport as c, prepareImportPage as d, rebuildClosedSubmission as f, validateImportedExecution as g, validateClosedRun as h, ThreadImportRejected as i, invalidThreadArchive as l, reencodeThread as m, ThreadArchive as n, ThreadImport_exports as o, rebuildImportedSubmission as p, ThreadImport as r, captureImportSource as s, RebuiltSubmission as t, makeThreadImportProgress as u, verifyImportedInputOrder as v, ThreadImportReader as x, verifyImportedReferences as y };
|
|
490
|
+
|
|
491
|
+
//# sourceMappingURL=ThreadImport-C8Tqiezd.mjs.map
|