effect-agent 0.1.0-beta.15 → 0.1.0-beta.151
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/dist/Admin-CKIdJoP8.d.mts +4236 -0
- package/dist/Agent-1DMSO_Fl.mjs +86 -0
- package/dist/Agent-1DMSO_Fl.mjs.map +1 -0
- package/dist/Agent-Cjd_ZveM.d.mts +259 -0
- package/dist/AgentError-Bn1ytXRD.d.mts +117 -0
- package/dist/AgentPolicy-BqDoSXO6.d.mts +96 -0
- package/dist/AgentRuntime-D8U9gl9Q.mjs +4745 -0
- package/dist/AgentRuntime-D8U9gl9Q.mjs.map +1 -0
- package/dist/AgentRuntime-sXpKcyxu.d.mts +346 -0
- package/dist/AgentUpdates-DMJ-_xow.d.mts +53 -0
- package/dist/ContextCompactor-WwSIG_Z2.d.mts +161 -0
- package/dist/ContextWindow-DRQ5Mbm2.d.mts +58 -0
- package/dist/Digest-U69rDHuO.d.mts +22 -0
- package/dist/DurableAgentRuntime-R2LUYnRl.mjs +7207 -0
- package/dist/DurableAgentRuntime-R2LUYnRl.mjs.map +1 -0
- package/dist/DurableFailpoint-Cnr3wx1L.d.mts +41 -0
- package/dist/DurableStep-Cry_iol4.d.mts +103 -0
- package/dist/EventSource-CMbXXmwe.d.mts +51 -0
- package/dist/FailureDiagnostic-BElLOoED.mjs +274 -0
- package/dist/FailureDiagnostic-BElLOoED.mjs.map +1 -0
- package/dist/FailureDiagnostic-CaAkzGHL.d.mts +223 -0
- package/dist/Identifiers-CN2s30fF.d.mts +40 -0
- package/dist/InMemory.d.mts +24 -0
- package/dist/InMemory.mjs +24 -0
- package/dist/InMemory.mjs.map +1 -0
- package/dist/MemoryNamespace-BbRW5p71.d.mts +36 -0
- package/dist/MemoryReference-B8Q3UJoJ.d.mts +79 -0
- package/dist/Messaging-Dkg87ebg.d.mts +221 -0
- package/dist/Messaging-ccQURKCf.d.mts +1067 -0
- package/dist/MessagingHost-D04wE-7W.d.mts +74 -0
- package/dist/MessagingHost-DfsbMPvq.mjs +110 -0
- package/dist/MessagingHost-DfsbMPvq.mjs.map +1 -0
- package/dist/OperationAuthorizer-TzcQtpX5.d.mts +61 -0
- package/dist/Output-CFD1CPfU.d.mts +25 -0
- package/dist/PageCapture-Df8Xwskw.d.mts +583 -0
- package/dist/PreparedInputAdmission-Bt6rgtVu.d.mts +42 -0
- package/dist/Receipt-BAHyigAF.d.mts +33 -0
- package/dist/Records-B5GFWCpn.d.mts +1104 -0
- package/dist/RunEvent-DIrzkjLr.d.mts +460 -0
- package/dist/RunEventSink-D5aVhISG.d.mts +108 -0
- package/dist/RunJournal-Gd83HYqG.mjs +954 -0
- package/dist/RunJournal-Gd83HYqG.mjs.map +1 -0
- package/dist/RunOptions-Bv9NpkPZ.d.mts +943 -0
- package/dist/RunPolicyUsage-ClZxyR46.d.mts +21 -0
- package/dist/Sandbox-CEsDWBLq.d.mts +173 -0
- package/dist/Schedule-CtYREFnz.d.mts +847 -0
- package/dist/Scheduling-DPb2QyAK.mjs +691 -0
- package/dist/Scheduling-DPb2QyAK.mjs.map +1 -0
- package/dist/Subagent-VHrANXFy.d.mts +1652 -0
- package/dist/Subagent-hG9lJ7tJ.mjs +1502 -0
- package/dist/Subagent-hG9lJ7tJ.mjs.map +1 -0
- package/dist/SubagentContract-DdT7Cqe6.d.mts +116 -0
- package/dist/SubagentHost-C-4A7tA2.d.mts +172 -0
- package/dist/Subscription-BJAzYNw1.d.mts +979 -0
- package/dist/SubscriptionInput-CkBJt0AS.d.mts +41 -0
- package/dist/Thread-DOBQ0QUY.d.mts +96 -0
- package/dist/ThreadHistory-tS1KwxHR.d.mts +60 -0
- package/dist/ToolBroker-DWs4tZra.d.mts +133 -0
- package/dist/ToolExposure-9uF_Yo0T.mjs +10 -0
- package/dist/ToolExposure-9uF_Yo0T.mjs.map +1 -0
- package/dist/ToolExposure-C93U1sPu.mjs +30 -0
- package/dist/ToolExposure-C93U1sPu.mjs.map +1 -0
- package/dist/ToolExposure-UCN12eCd.d.mts +39 -0
- package/dist/ToolExposure-r2eOWk4F.d.mts +46 -0
- package/dist/ToolExposure.d.mts +8 -0
- package/dist/ToolExposure.mjs +21 -0
- package/dist/ToolExposure.mjs.map +1 -0
- package/dist/ToolReconciler-BmVRAHKs.d.mts +80 -0
- package/dist/ToolResult-BKdqWRff.d.mts +78 -0
- package/dist/Usage-Dx0aknfk.d.mts +121 -0
- package/dist/WakeScheduler-EjUF-GhC.d.mts +56 -0
- package/dist/Worker-CfwzMZEK.mjs +271 -0
- package/dist/Worker-CfwzMZEK.mjs.map +1 -0
- package/dist/Worker-fwWkBg12.d.mts +472 -0
- package/dist/WorkerAdmission-CJ_oWRuS.mjs +171 -0
- package/dist/WorkerAdmission-CJ_oWRuS.mjs.map +1 -0
- package/dist/agent-registration-CKNsrpwo.mjs +201 -0
- package/dist/agent-registration-CKNsrpwo.mjs.map +1 -0
- package/dist/capabilities/Approval.d.mts +114 -0
- package/dist/capabilities/Approval.mjs +226 -0
- package/dist/capabilities/Approval.mjs.map +1 -0
- package/dist/capabilities/Budget.d.mts +112 -0
- package/dist/capabilities/Budget.mjs +346 -0
- package/dist/capabilities/Budget.mjs.map +1 -0
- package/dist/capabilities/CodeMode.d.mts +157 -0
- package/dist/capabilities/CodeMode.mjs +523 -0
- package/dist/capabilities/CodeMode.mjs.map +1 -0
- package/dist/capabilities/Commands.d.mts +55 -0
- package/dist/capabilities/Commands.mjs +57 -0
- package/dist/capabilities/Commands.mjs.map +1 -0
- package/dist/capabilities/ContextTools.d.mts +321 -0
- package/dist/capabilities/ContextTools.mjs +126 -0
- package/dist/capabilities/ContextTools.mjs.map +1 -0
- package/dist/capabilities/Mcp.d.mts +108 -0
- package/dist/capabilities/Mcp.mjs +259 -0
- package/dist/capabilities/Mcp.mjs.map +1 -0
- package/dist/capabilities/McpClient.d.mts +115 -0
- package/dist/capabilities/McpClient.mjs +519 -0
- package/dist/capabilities/McpClient.mjs.map +1 -0
- package/dist/capabilities/MemoryNotes.d.mts +424 -0
- package/dist/capabilities/MemoryNotes.mjs +128 -0
- package/dist/capabilities/MemoryNotes.mjs.map +1 -0
- package/dist/capabilities/Messaging.d.mts +3 -0
- package/dist/capabilities/Messaging.mjs +152 -0
- package/dist/capabilities/Messaging.mjs.map +1 -0
- package/dist/capabilities/ModelContext.d.mts +89 -0
- package/dist/capabilities/ModelContext.mjs +168 -0
- package/dist/capabilities/ModelContext.mjs.map +1 -0
- package/dist/capabilities/Redaction.d.mts +37 -0
- package/dist/capabilities/Redaction.mjs +104 -0
- package/dist/capabilities/Redaction.mjs.map +1 -0
- package/dist/capabilities/Remembering.d.mts +434 -0
- package/dist/capabilities/Remembering.mjs +290 -0
- package/dist/capabilities/Remembering.mjs.map +1 -0
- package/dist/capabilities/RunHooks.d.mts +82 -0
- package/dist/capabilities/RunHooks.mjs +144 -0
- package/dist/capabilities/RunHooks.mjs.map +1 -0
- package/dist/capabilities/SemanticMemory.d.mts +431 -0
- package/dist/capabilities/SemanticMemory.mjs +315 -0
- package/dist/capabilities/SemanticMemory.mjs.map +1 -0
- package/dist/capabilities/Subagent.d.mts +4 -0
- package/dist/capabilities/Subagent.mjs +5 -0
- package/dist/capabilities/SubagentReservations.d.mts +186 -0
- package/dist/capabilities/SubagentReservations.mjs +479 -0
- package/dist/capabilities/SubagentReservations.mjs.map +1 -0
- package/dist/capabilities/ToolDiscovery.d.mts +124 -0
- package/dist/capabilities/ToolDiscovery.mjs +230 -0
- package/dist/capabilities/ToolDiscovery.mjs.map +1 -0
- package/dist/capabilities/WebCapture.d.mts +163 -0
- package/dist/capabilities/WebCapture.mjs +335 -0
- package/dist/capabilities/WebCapture.mjs.map +1 -0
- package/dist/capabilities/WebSearch.d.mts +71 -0
- package/dist/capabilities/WebSearch.mjs +115 -0
- package/dist/capabilities/WebSearch.mjs.map +1 -0
- package/dist/compaction-C2OTceKw.mjs +505 -0
- package/dist/compaction-C2OTceKw.mjs.map +1 -0
- package/dist/core/Agent.d.mts +2 -0
- package/dist/core/Agent.mjs +2 -0
- package/dist/core/AgentError.d.mts +2 -0
- package/dist/core/AgentError.mjs +134 -0
- package/dist/core/AgentError.mjs.map +1 -0
- package/dist/core/AgentPolicy.d.mts +2 -0
- package/dist/core/AgentPolicy.mjs +94 -0
- package/dist/core/AgentPolicy.mjs.map +1 -0
- package/dist/core/AgentUpdates.d.mts +2 -0
- package/dist/core/AgentUpdates.mjs +63 -0
- package/dist/core/AgentUpdates.mjs.map +1 -0
- package/dist/core/FailureDiagnostic.d.mts +2 -0
- package/dist/core/FailureDiagnostic.mjs +2 -0
- package/dist/core/IdGenerator.d.mts +26 -0
- package/dist/core/IdGenerator.mjs +27 -0
- package/dist/core/IdGenerator.mjs.map +1 -0
- package/dist/core/Identifiers.d.mts +2 -0
- package/dist/core/Identifiers.mjs +43 -0
- package/dist/core/Identifiers.mjs.map +1 -0
- package/dist/core/Memory.d.mts +57 -0
- package/dist/core/Memory.mjs +203 -0
- package/dist/core/Memory.mjs.map +1 -0
- package/dist/core/MemoryNamespace.d.mts +2 -0
- package/dist/core/MemoryNamespace.mjs +116 -0
- package/dist/core/MemoryNamespace.mjs.map +1 -0
- package/dist/core/MemoryReference.d.mts +2 -0
- package/dist/core/MemoryReference.mjs +109 -0
- package/dist/core/MemoryReference.mjs.map +1 -0
- package/dist/core/MemoryRevalidation.d.mts +65 -0
- package/dist/core/MemoryRevalidation.mjs +126 -0
- package/dist/core/MemoryRevalidation.mjs.map +1 -0
- package/dist/core/MemoryStore.d.mts +186 -0
- package/dist/core/MemoryStore.mjs +243 -0
- package/dist/core/MemoryStore.mjs.map +1 -0
- package/dist/core/Receipt.d.mts +2 -0
- package/dist/core/Receipt.mjs +36 -0
- package/dist/core/Receipt.mjs.map +1 -0
- package/dist/core/RememberingStore.d.mts +1562 -0
- package/dist/core/RememberingStore.mjs +190 -0
- package/dist/core/RememberingStore.mjs.map +1 -0
- package/dist/core/RunEvent.d.mts +2 -0
- package/dist/core/RunEvent.mjs +337 -0
- package/dist/core/RunEvent.mjs.map +1 -0
- package/dist/core/RunPolicyUsage.d.mts +2 -0
- package/dist/core/RunPolicyUsage.mjs +21 -0
- package/dist/core/RunPolicyUsage.mjs.map +1 -0
- package/dist/core/SemanticMemoryIndex.d.mts +826 -0
- package/dist/core/SemanticMemoryIndex.mjs +185 -0
- package/dist/core/SemanticMemoryIndex.mjs.map +1 -0
- package/dist/core/SemanticMemoryRevalidation.d.mts +45 -0
- package/dist/core/SemanticMemoryRevalidation.mjs +191 -0
- package/dist/core/SemanticMemoryRevalidation.mjs.map +1 -0
- package/dist/core/SubagentContract.d.mts +2 -0
- package/dist/core/SubagentContract.mjs +148 -0
- package/dist/core/SubagentContract.mjs.map +1 -0
- package/dist/core/Thread.d.mts +2 -0
- package/dist/core/Thread.mjs +250 -0
- package/dist/core/Thread.mjs.map +1 -0
- package/dist/core/ToolResult.d.mts +2 -0
- package/dist/core/ToolResult.mjs +156 -0
- package/dist/core/ToolResult.mjs.map +1 -0
- package/dist/core/Usage.d.mts +2 -0
- package/dist/core/Usage.mjs +319 -0
- package/dist/core/Usage.mjs.map +1 -0
- package/dist/core/Worker.d.mts +3 -0
- package/dist/core/Worker.mjs +3 -0
- package/dist/durable/ActivityStore.d.mts +116 -0
- package/dist/durable/ActivityStore.mjs +131 -0
- package/dist/durable/ActivityStore.mjs.map +1 -0
- package/dist/durable/Admin.d.mts +2 -0
- package/dist/durable/Admin.mjs +330 -0
- package/dist/durable/Admin.mjs.map +1 -0
- package/dist/durable/AgentRegistration.d.mts +2 -0
- package/dist/durable/AgentRegistration.mjs +14 -0
- package/dist/durable/AgentRegistration.mjs.map +1 -0
- package/dist/durable/Certification.d.mts +110 -0
- package/dist/durable/Certification.mjs +159 -0
- package/dist/durable/Certification.mjs.map +1 -0
- package/dist/durable/CommittedActivity.d.mts +64 -0
- package/dist/durable/CommittedActivity.mjs +159 -0
- package/dist/durable/CommittedActivity.mjs.map +1 -0
- package/dist/durable/Digest.d.mts +2 -0
- package/dist/durable/Digest.mjs +50 -0
- package/dist/durable/Digest.mjs.map +1 -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 +102 -0
- package/dist/durable/DurableFailpoint.mjs.map +1 -0
- package/dist/durable/DurableFailpointTestControl.d.mts +14 -0
- package/dist/durable/DurableFailpointTestControl.mjs +19 -0
- package/dist/durable/DurableFailpointTestControl.mjs.map +1 -0
- package/dist/durable/EventSource.d.mts +2 -0
- package/dist/durable/EventSource.mjs +65 -0
- package/dist/durable/EventSource.mjs.map +1 -0
- package/dist/durable/GitHubWorkflowSource.d.mts +185 -0
- package/dist/durable/GitHubWorkflowSource.mjs +209 -0
- package/dist/durable/GitHubWorkflowSource.mjs.map +1 -0
- package/dist/durable/LifecyclePublication.d.mts +2 -0
- package/dist/durable/LifecyclePublication.mjs +189 -0
- package/dist/durable/LifecyclePublication.mjs.map +1 -0
- package/dist/durable/MessageDelivery.d.mts +935 -0
- package/dist/durable/MessageDelivery.mjs +557 -0
- package/dist/durable/MessageDelivery.mjs.map +1 -0
- package/dist/durable/MessageDeliveryStoreConformance.d.mts +400 -0
- package/dist/durable/MessageDeliveryStoreConformance.mjs +270 -0
- package/dist/durable/MessageDeliveryStoreConformance.mjs.map +1 -0
- package/dist/durable/OperationAuthorizer.d.mts +2 -0
- package/dist/durable/OperationAuthorizer.mjs +70 -0
- package/dist/durable/OperationAuthorizer.mjs.map +1 -0
- package/dist/durable/PersistentHistory.d.mts +16 -0
- package/dist/durable/PersistentHistory.mjs +125 -0
- package/dist/durable/PersistentHistory.mjs.map +1 -0
- package/dist/durable/PreparedInputAdmission.d.mts +2 -0
- package/dist/durable/PreparedInputAdmission.mjs +38 -0
- package/dist/durable/PreparedInputAdmission.mjs.map +1 -0
- package/dist/durable/Records.d.mts +2 -0
- package/dist/durable/Records.mjs +858 -0
- package/dist/durable/Records.mjs.map +1 -0
- package/dist/durable/Recovery.d.mts +2 -0
- package/dist/durable/Recovery.mjs +739 -0
- package/dist/durable/Recovery.mjs.map +1 -0
- package/dist/durable/RunJournal.d.mts +2 -0
- package/dist/durable/RunJournal.mjs +2 -0
- package/dist/durable/Schedule.d.mts +2 -0
- package/dist/durable/Schedule.mjs +391 -0
- package/dist/durable/Schedule.mjs.map +1 -0
- package/dist/durable/ScheduleStoreConformance.d.mts +17 -0
- package/dist/durable/ScheduleStoreConformance.mjs +420 -0
- package/dist/durable/ScheduleStoreConformance.mjs.map +1 -0
- package/dist/durable/ScheduleTransition.d.mts +24 -0
- package/dist/durable/ScheduleTransition.mjs +180 -0
- package/dist/durable/ScheduleTransition.mjs.map +1 -0
- package/dist/durable/Scheduling.d.mts +55 -0
- package/dist/durable/Scheduling.mjs +2 -0
- package/dist/durable/SqlMemoryStore.d.mts +29 -0
- package/dist/durable/SqlMemoryStore.mjs +436 -0
- package/dist/durable/SqlMemoryStore.mjs.map +1 -0
- package/dist/durable/SubmissionLedger.d.mts +3 -0
- package/dist/durable/SubmissionLedger.mjs +986 -0
- package/dist/durable/SubmissionLedger.mjs.map +1 -0
- package/dist/durable/SubmissionLedgerConformance.d.mts +30 -0
- package/dist/durable/SubmissionLedgerConformance.mjs +2254 -0
- package/dist/durable/SubmissionLedgerConformance.mjs.map +1 -0
- package/dist/durable/SubmissionStatus.d.mts +2 -0
- package/dist/durable/SubmissionStatus.mjs +18 -0
- package/dist/durable/SubmissionStatus.mjs.map +1 -0
- package/dist/durable/Subscription.d.mts +2 -0
- package/dist/durable/Subscription.mjs +360 -0
- package/dist/durable/Subscription.mjs.map +1 -0
- package/dist/durable/SubscriptionInput.d.mts +2 -0
- package/dist/durable/SubscriptionInput.mjs +52 -0
- package/dist/durable/SubscriptionInput.mjs.map +1 -0
- package/dist/durable/SubscriptionStoreConformance.d.mts +16 -0
- package/dist/durable/SubscriptionStoreConformance.mjs +625 -0
- package/dist/durable/SubscriptionStoreConformance.mjs.map +1 -0
- package/dist/durable/SubscriptionTools.d.mts +274 -0
- package/dist/durable/SubscriptionTools.mjs +190 -0
- package/dist/durable/SubscriptionTools.mjs.map +1 -0
- package/dist/durable/SubscriptionTransition.d.mts +21 -0
- package/dist/durable/SubscriptionTransition.mjs +148 -0
- package/dist/durable/SubscriptionTransition.mjs.map +1 -0
- package/dist/durable/Subscriptions.d.mts +74 -0
- package/dist/durable/Subscriptions.mjs +627 -0
- package/dist/durable/Subscriptions.mjs.map +1 -0
- package/dist/durable/ThreadContextHistory.d.mts +32 -0
- package/dist/durable/ThreadContextHistory.mjs +152 -0
- package/dist/durable/ThreadContextHistory.mjs.map +1 -0
- package/dist/durable/ThreadContextHistoryProjection.d.mts +60 -0
- package/dist/durable/ThreadContextHistoryProjection.mjs +149 -0
- package/dist/durable/ThreadContextHistoryProjection.mjs.map +1 -0
- package/dist/durable/ThreadInvariants.d.mts +77 -0
- package/dist/durable/ThreadInvariants.mjs +246 -0
- package/dist/durable/ThreadInvariants.mjs.map +1 -0
- package/dist/durable/ThreadProjection.d.mts +78 -0
- package/dist/durable/ThreadProjection.mjs +158 -0
- package/dist/durable/ThreadProjection.mjs.map +1 -0
- package/dist/durable/ThreadProjectionMaintenance.d.mts +49 -0
- package/dist/durable/ThreadProjectionMaintenance.mjs +33 -0
- package/dist/durable/ThreadProjectionMaintenance.mjs.map +1 -0
- package/dist/durable/ThreadStore.d.mts +2 -0
- package/dist/durable/ThreadStore.mjs +383 -0
- package/dist/durable/ThreadStore.mjs.map +1 -0
- package/dist/durable/ThreadStoreConformance.d.mts +28 -0
- package/dist/durable/ThreadStoreConformance.mjs +543 -0
- package/dist/durable/ThreadStoreConformance.mjs.map +1 -0
- package/dist/durable/ToolReconciler.d.mts +2 -0
- package/dist/durable/ToolReconciler.mjs +85 -0
- package/dist/durable/ToolReconciler.mjs.map +1 -0
- package/dist/durable/WakeScheduler.d.mts +2 -0
- package/dist/durable/WakeScheduler.mjs +85 -0
- package/dist/durable/WakeScheduler.mjs.map +1 -0
- package/dist/durable/WorkerAdmission.d.mts +172 -0
- package/dist/durable/WorkerAdmission.mjs +2 -0
- package/dist/durable/WorkerHost.d.mts +156 -0
- package/dist/durable/WorkerHost.mjs +77 -0
- package/dist/durable/WorkerHost.mjs.map +1 -0
- package/dist/engine/AgentRuntime.d.mts +2 -0
- package/dist/engine/AgentRuntime.mjs +2 -0
- package/dist/engine/Compaction.d.mts +7 -0
- package/dist/engine/Compaction.mjs +16 -0
- package/dist/engine/Compaction.mjs.map +1 -0
- package/dist/engine/ContextCompactor.d.mts +2 -0
- package/dist/engine/ContextCompactor.mjs +119 -0
- package/dist/engine/ContextCompactor.mjs.map +1 -0
- package/dist/engine/ContextHistory.d.mts +65 -0
- package/dist/engine/ContextHistory.mjs +76 -0
- package/dist/engine/ContextHistory.mjs.map +1 -0
- package/dist/engine/ContextWindow.d.mts +2 -0
- package/dist/engine/ContextWindow.mjs +59 -0
- package/dist/engine/ContextWindow.mjs.map +1 -0
- package/dist/engine/DurableStep.d.mts +2 -0
- package/dist/engine/DurableStep.mjs +62 -0
- package/dist/engine/DurableStep.mjs.map +1 -0
- package/dist/engine/MessagingHost.d.mts +2 -0
- package/dist/engine/MessagingHost.mjs +2 -0
- package/dist/engine/Output.d.mts +2 -0
- package/dist/engine/Output.mjs +8 -0
- package/dist/engine/Output.mjs.map +1 -0
- package/dist/engine/RunEventSink.d.mts +2 -0
- package/dist/engine/RunEventSink.mjs +22 -0
- package/dist/engine/RunEventSink.mjs.map +1 -0
- package/dist/engine/RunOptions.d.mts +2 -0
- package/dist/engine/RunOptions.mjs +124 -0
- package/dist/engine/RunOptions.mjs.map +1 -0
- package/dist/engine/SubagentHost.d.mts +2 -0
- package/dist/engine/SubagentHost.mjs +76 -0
- package/dist/engine/SubagentHost.mjs.map +1 -0
- package/dist/engine/ThreadHistory.d.mts +2 -0
- package/dist/engine/ThreadHistory.mjs +67 -0
- package/dist/engine/ThreadHistory.mjs.map +1 -0
- package/dist/engine/ToolBroker.d.mts +2 -0
- package/dist/engine/ToolBroker.mjs +42 -0
- package/dist/engine/ToolBroker.mjs.map +1 -0
- package/dist/foreign-diagnostic-DBQ1XHKh.mjs +37 -0
- package/dist/foreign-diagnostic-DBQ1XHKh.mjs.map +1 -0
- package/dist/index.d.mts +92 -6
- package/dist/index.mjs +100 -6
- package/dist/output-contract-DS-S8mTv.mjs +135 -0
- package/dist/output-contract-DS-S8mTv.mjs.map +1 -0
- package/dist/rolldown-runtime-D7D4PA-g.mjs +13 -0
- package/dist/sandbox/CodeExecutor.d.mts +194 -0
- package/dist/sandbox/CodeExecutor.mjs +278 -0
- package/dist/sandbox/CodeExecutor.mjs.map +1 -0
- package/dist/sandbox/InteractiveBrowser.d.mts +257 -0
- package/dist/sandbox/InteractiveBrowser.mjs +236 -0
- package/dist/sandbox/InteractiveBrowser.mjs.map +1 -0
- package/dist/sandbox/PageCapture.d.mts +2 -0
- package/dist/sandbox/PageCapture.mjs +450 -0
- package/dist/sandbox/PageCapture.mjs.map +1 -0
- package/dist/sandbox/PageCrawl.d.mts +88 -0
- package/dist/sandbox/PageCrawl.mjs +124 -0
- package/dist/sandbox/PageCrawl.mjs.map +1 -0
- package/dist/sandbox/PageScreenshot.d.mts +48 -0
- package/dist/sandbox/PageScreenshot.mjs +53 -0
- package/dist/sandbox/PageScreenshot.mjs.map +1 -0
- package/dist/sandbox/Sandbox.d.mts +2 -0
- package/dist/sandbox/Sandbox.mjs +208 -0
- package/dist/sandbox/Sandbox.mjs.map +1 -0
- package/dist/utf8-BYfhEkcj.mjs +11 -0
- package/dist/utf8-BYfhEkcj.mjs.map +1 -0
- package/dist/utf8-DchGZRBd.mjs +23 -0
- package/dist/utf8-DchGZRBd.mjs.map +1 -0
- package/package.json +1 -40
- package/src/InMemory.ts +19 -0
- package/src/ToolExposure.ts +2 -0
- package/src/capabilities/Approval.ts +352 -0
- package/src/capabilities/Budget.ts +536 -0
- package/src/capabilities/CodeMode.ts +1099 -0
- package/src/capabilities/Commands.ts +86 -0
- package/src/capabilities/ContextTools.ts +184 -0
- package/src/capabilities/Mcp.ts +426 -0
- package/src/capabilities/McpClient.ts +983 -0
- package/src/capabilities/MemoryNotes.ts +174 -0
- package/src/capabilities/Messaging.ts +261 -0
- package/src/capabilities/ModelContext.ts +354 -0
- package/src/capabilities/Redaction.ts +157 -0
- package/src/capabilities/Remembering.ts +550 -0
- package/src/capabilities/RunHooks.ts +280 -0
- package/src/capabilities/SemanticMemory.ts +447 -0
- package/src/capabilities/Subagent.ts +2489 -0
- package/src/capabilities/SubagentReservations.ts +850 -0
- package/src/capabilities/ToolDiscovery.ts +369 -0
- package/src/capabilities/WebCapture.ts +722 -0
- package/src/capabilities/WebSearch.ts +190 -0
- package/src/capabilities/internal/subagent-background.ts +1307 -0
- package/src/capabilities/internal/subagent-contract.ts +146 -0
- package/src/capabilities/internal/subagent-policy.ts +235 -0
- package/src/capabilities/internal/subagent-reporting.ts +136 -0
- package/src/capabilities/internal/utf8.ts +10 -0
- package/src/core/Agent.ts +609 -0
- package/src/core/AgentError.ts +172 -0
- package/src/core/AgentPolicy.ts +153 -0
- package/src/core/AgentUpdates.ts +100 -0
- package/src/core/FailureDiagnostic.ts +343 -0
- package/src/core/IdGenerator.ts +39 -0
- package/src/core/Identifiers.ts +48 -0
- package/src/core/Memory.ts +290 -0
- package/src/core/MemoryNamespace.ts +196 -0
- package/src/core/MemoryReference.ts +121 -0
- package/src/core/MemoryRevalidation.ts +185 -0
- package/src/core/MemoryStore.ts +368 -0
- package/src/core/Messaging.ts +72 -0
- package/src/core/Receipt.ts +42 -0
- package/src/core/RememberingStore.ts +300 -0
- package/src/core/RunEvent.ts +366 -0
- package/src/core/RunPolicyUsage.ts +17 -0
- package/src/core/SemanticMemoryIndex.ts +250 -0
- package/src/core/SemanticMemoryRevalidation.ts +254 -0
- package/src/core/SubagentContract.ts +196 -0
- package/src/core/Thread.ts +371 -0
- package/src/core/ToolExposure.ts +74 -0
- package/src/core/ToolResult.ts +190 -0
- package/src/core/Usage.ts +529 -0
- package/src/core/Worker.ts +240 -0
- package/src/core/internal/agent-updates.ts +34 -0
- package/src/core/internal/message-status.ts +60 -0
- package/src/core/internal/strict-schema.ts +14 -0
- package/src/core/internal/utf8.ts +23 -0
- package/src/durable/ActivityStore.ts +160 -0
- package/src/durable/Admin.ts +505 -0
- package/src/durable/AgentRegistration.ts +14 -0
- package/src/durable/Certification.ts +210 -0
- package/src/durable/CommittedActivity.ts +296 -0
- package/src/durable/Digest.ts +87 -0
- package/src/durable/DurableAgentRuntime.ts +11367 -0
- package/src/durable/DurableFailpoint.ts +111 -0
- package/src/durable/DurableFailpointTestControl.ts +39 -0
- package/src/durable/EventSource.ts +172 -0
- package/src/durable/GitHubWorkflowSource.ts +447 -0
- package/src/durable/LifecyclePublication.ts +298 -0
- package/src/durable/MessageDelivery.ts +834 -0
- package/src/durable/MessageDeliveryStoreConformance.ts +410 -0
- package/src/durable/OperationAuthorizer.ts +85 -0
- package/src/durable/PersistentHistory.ts +260 -0
- package/src/durable/PreparedInputAdmission.ts +57 -0
- package/src/durable/Records.ts +1087 -0
- package/src/durable/Recovery.ts +1018 -0
- package/src/durable/RunJournal.ts +1695 -0
- package/src/durable/Schedule.ts +513 -0
- package/src/durable/ScheduleStoreConformance.ts +638 -0
- package/src/durable/ScheduleTransition.ts +265 -0
- package/src/durable/Scheduling.ts +1077 -0
- package/src/durable/SqlMemoryStore.ts +778 -0
- package/src/durable/SubmissionLedger.ts +1297 -0
- package/src/durable/SubmissionLedgerConformance.ts +4940 -0
- package/src/durable/SubmissionStatus.ts +14 -0
- package/src/durable/Subscription.ts +544 -0
- package/src/durable/SubscriptionInput.ts +144 -0
- package/src/durable/SubscriptionStoreConformance.ts +945 -0
- package/src/durable/SubscriptionTools.ts +327 -0
- package/src/durable/SubscriptionTransition.ts +302 -0
- package/src/durable/Subscriptions.ts +1210 -0
- package/src/durable/ThreadContextHistory.ts +227 -0
- package/src/durable/ThreadContextHistoryProjection.ts +216 -0
- package/src/durable/ThreadInvariants.ts +507 -0
- package/src/durable/ThreadProjection.ts +269 -0
- package/src/durable/ThreadProjectionMaintenance.ts +67 -0
- package/src/durable/ThreadStore.ts +637 -0
- package/src/durable/ThreadStoreConformance.ts +1296 -0
- package/src/durable/ToolReconciler.ts +109 -0
- package/src/durable/WakeScheduler.ts +134 -0
- package/src/durable/WorkerAdmission.ts +104 -0
- package/src/durable/WorkerHost.ts +205 -0
- package/src/durable/internal/agent-registration.ts +587 -0
- package/src/durable/internal/agent-updates.ts +306 -0
- package/src/durable/internal/foreign-diagnostic.ts +47 -0
- package/src/durable/internal/journal-checkpoint.ts +104 -0
- package/src/durable/internal/journal-metadata.ts +124 -0
- package/src/durable/internal/message-status.ts +20 -0
- package/src/durable/internal/messaging-host.ts +637 -0
- package/src/durable/internal/schedule-time.ts +303 -0
- package/src/durable/internal/thread-initialization.ts +195 -0
- package/src/durable/internal/worker-host.ts +3309 -0
- package/src/durable/internal/worker-runtime.ts +9 -0
- package/src/engine/AgentRuntime.ts +37 -0
- package/src/engine/Compaction.ts +11 -0
- package/src/engine/ContextCompactor.ts +277 -0
- package/src/engine/ContextHistory.ts +73 -0
- package/src/engine/ContextWindow.ts +72 -0
- package/src/engine/DurableStep.ts +132 -0
- package/src/engine/MessagingHost.ts +110 -0
- package/src/engine/Output.ts +2 -0
- package/src/engine/RunEventSink.ts +132 -0
- package/src/engine/RunOptions.ts +1109 -0
- package/src/engine/SubagentHost.ts +239 -0
- package/src/engine/ThreadHistory.ts +120 -0
- package/src/engine/ToolBroker.ts +157 -0
- package/src/engine/ToolExposure.ts +48 -0
- package/src/engine/internal/agent-runtime.ts +10596 -0
- package/src/engine/internal/bounded-value.ts +315 -0
- package/src/engine/internal/compaction.ts +678 -0
- package/src/engine/internal/error-diagnostic.ts +39 -0
- package/src/engine/internal/output-contract.ts +250 -0
- package/src/engine/internal/primitive-delta.ts +80 -0
- package/src/engine/internal/provider-result-staging.ts +211 -0
- package/src/engine/internal/tool-derivative.ts +106 -0
- package/src/engine/internal/tool-exposure.ts +224 -0
- package/src/engine/internal/tool-telemetry.ts +484 -0
- package/src/index.ts +99 -22
- package/src/sandbox/CodeExecutor.ts +352 -0
- package/src/sandbox/InteractiveBrowser.ts +339 -0
- package/src/sandbox/PageCapture.ts +691 -0
- package/src/sandbox/PageCrawl.ts +148 -0
- package/src/sandbox/PageScreenshot.ts +81 -0
- package/src/sandbox/Sandbox.ts +241 -0
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
import { d as SubagentReservationAmounts, l as SubagentGrant, o as SubagentDelegationCaps, s as SubagentExecutionFailure } from "../SubagentContract-DdT7Cqe6.mjs";
|
|
2
|
+
import { a as Receipt } from "../Receipt-BAHyigAF.mjs";
|
|
3
|
+
import { r as Update } from "../AgentUpdates-DMJ-_xow.mjs";
|
|
4
|
+
import { r as Diagnostic } from "../FailureDiagnostic-CaAkzGHL.mjs";
|
|
5
|
+
import { t as AgentPolicy } from "../AgentPolicy-BqDoSXO6.mjs";
|
|
6
|
+
import { h as DefinitionDigests } from "../Records-B5GFWCpn.mjs";
|
|
7
|
+
import { t as DigestError } from "../Digest-U69rDHuO.mjs";
|
|
8
|
+
import { fn as Settlement } from "../Admin-CKIdJoP8.mjs";
|
|
9
|
+
import { MessageDeliveryError, MessageDeliveryFailure, MessageDeliveryStore } from "./MessageDelivery.mjs";
|
|
10
|
+
import { Effect, Schema } from "effect";
|
|
11
|
+
//#region src/durable/MessageDeliveryStoreConformance.d.ts
|
|
12
|
+
declare const MessageDeliveryConformanceViolation_base: Schema.Class<MessageDeliveryConformanceViolation, Schema.TaggedStruct<"MessageDeliveryConformanceViolation", {
|
|
13
|
+
readonly message: Schema.String;
|
|
14
|
+
}>, import("effect/Cause").YieldableError>;
|
|
15
|
+
export declare class MessageDeliveryConformanceViolation extends MessageDeliveryConformanceViolation_base {}
|
|
16
|
+
/** One valid frozen envelope shared by real storage and restart tests. */
|
|
17
|
+
export declare const makeMessageDeliveryFixture: (messageId?: any, owner?: any, text?: any) => Effect.Effect<{
|
|
18
|
+
readonly schemaVersion: 1;
|
|
19
|
+
readonly key: {
|
|
20
|
+
readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
21
|
+
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
22
|
+
};
|
|
23
|
+
readonly envelope: {
|
|
24
|
+
readonly schemaVersion: 1;
|
|
25
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
26
|
+
readonly deliveryPrincipal: string & import("effect/Brand").Brand<"@effect-agent/thread/Principal">;
|
|
27
|
+
readonly admissionGroup?: string | undefined;
|
|
28
|
+
readonly admissionFence?: {
|
|
29
|
+
readonly policyId: string;
|
|
30
|
+
readonly key: string;
|
|
31
|
+
readonly revision: string;
|
|
32
|
+
} | undefined;
|
|
33
|
+
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
34
|
+
readonly definitions: DefinitionDigests;
|
|
35
|
+
readonly input: Schema.Json;
|
|
36
|
+
readonly inputDigest: string & import("effect/Brand").Brand<"@effect-agent/thread/Digest">;
|
|
37
|
+
readonly admissionKey: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
38
|
+
readonly authorization: {
|
|
39
|
+
readonly policyId: string;
|
|
40
|
+
readonly decisionId: string;
|
|
41
|
+
};
|
|
42
|
+
readonly workerAdmission?: {
|
|
43
|
+
readonly origin: {
|
|
44
|
+
readonly worker: {
|
|
45
|
+
readonly schemaVersion: 1;
|
|
46
|
+
readonly delegationId: string & import("effect/Brand").Brand<"@effect-agent/core/DelegationId">;
|
|
47
|
+
readonly targetAgentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
48
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
49
|
+
};
|
|
50
|
+
readonly source: {
|
|
51
|
+
readonly _tag: "tool";
|
|
52
|
+
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
53
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
54
|
+
readonly runId: string & import("effect/Brand").Brand<"@effect-agent/core/RunId">;
|
|
55
|
+
readonly toolCallId: string & import("effect/Brand").Brand<"@effect-agent/core/ToolCallId">;
|
|
56
|
+
} | {
|
|
57
|
+
readonly _tag: "programmatic";
|
|
58
|
+
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
59
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
60
|
+
};
|
|
61
|
+
readonly continuationOf?: {
|
|
62
|
+
readonly worker: {
|
|
63
|
+
readonly schemaVersion: 1;
|
|
64
|
+
readonly delegationId: string & import("effect/Brand").Brand<"@effect-agent/core/DelegationId">;
|
|
65
|
+
readonly targetAgentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
66
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
67
|
+
};
|
|
68
|
+
readonly receipt: Receipt;
|
|
69
|
+
readonly settlementId: string & import("effect/Brand").Brand<"@effect-agent/core/SettlementId">;
|
|
70
|
+
} | undefined;
|
|
71
|
+
readonly budgetScope?: "source-subtree" | "worker-run" | undefined;
|
|
72
|
+
readonly lifecycle?: "assignment" | undefined;
|
|
73
|
+
readonly targetDigests: DefinitionDigests;
|
|
74
|
+
readonly policy: AgentPolicy;
|
|
75
|
+
readonly budget: {
|
|
76
|
+
readonly caps: SubagentDelegationCaps;
|
|
77
|
+
readonly allocation: SubagentReservationAmounts;
|
|
78
|
+
readonly descendantInvocations?: number | undefined;
|
|
79
|
+
};
|
|
80
|
+
readonly grant: SubagentGrant;
|
|
81
|
+
readonly depth: number;
|
|
82
|
+
readonly toolCallAllowance?: number | undefined;
|
|
83
|
+
readonly firstMessageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
84
|
+
readonly createdAtMillis: number;
|
|
85
|
+
readonly expiresAtMillis: number;
|
|
86
|
+
readonly reporting?: {
|
|
87
|
+
readonly mode?: "standard" | undefined;
|
|
88
|
+
readonly sourceDigests: DefinitionDigests;
|
|
89
|
+
readonly destinationDelegationId?: (string & import("effect/Brand").Brand<"@effect-agent/core/DelegationId">) | undefined;
|
|
90
|
+
readonly returnAddress?: {
|
|
91
|
+
readonly input: Schema.Json;
|
|
92
|
+
readonly principal: string & import("effect/Brand").Brand<"@effect-agent/thread/Principal">;
|
|
93
|
+
readonly policy: AgentPolicy;
|
|
94
|
+
readonly depth: number;
|
|
95
|
+
readonly grant?: SubagentGrant | undefined;
|
|
96
|
+
readonly workerAdmission?: Schema.Json | undefined;
|
|
97
|
+
} | undefined;
|
|
98
|
+
} | undefined;
|
|
99
|
+
};
|
|
100
|
+
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
101
|
+
readonly parameters: Schema.Json;
|
|
102
|
+
readonly createdAtMillis: number;
|
|
103
|
+
readonly sourceSubmissionId?: (string & import("effect/Brand").Brand<"@effect-agent/core/SubmissionId">) | undefined;
|
|
104
|
+
readonly deliveryPrincipal?: (string & import("effect/Brand").Brand<"@effect-agent/thread/Principal">) | undefined;
|
|
105
|
+
readonly reportKind?: "update" | undefined;
|
|
106
|
+
} | undefined;
|
|
107
|
+
readonly messageAdmission?: {
|
|
108
|
+
readonly schemaVersion: 1;
|
|
109
|
+
readonly message: {
|
|
110
|
+
readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
111
|
+
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
112
|
+
};
|
|
113
|
+
readonly peerName: string;
|
|
114
|
+
readonly sender: {
|
|
115
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
116
|
+
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
117
|
+
};
|
|
118
|
+
readonly returnAddress: {
|
|
119
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
120
|
+
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
121
|
+
};
|
|
122
|
+
readonly inReplyTo?: {
|
|
123
|
+
readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
124
|
+
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
125
|
+
} | undefined;
|
|
126
|
+
} | {
|
|
127
|
+
readonly _tag: "WorkerCompletion";
|
|
128
|
+
readonly budgetExhausted: boolean;
|
|
129
|
+
readonly schemaVersion: 1;
|
|
130
|
+
readonly report: {
|
|
131
|
+
readonly _tag: "Settled";
|
|
132
|
+
readonly worker: {
|
|
133
|
+
readonly schemaVersion: 1;
|
|
134
|
+
readonly delegationId: string & import("effect/Brand").Brand<"@effect-agent/core/DelegationId">;
|
|
135
|
+
readonly targetAgentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
136
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
137
|
+
};
|
|
138
|
+
readonly receipt: Receipt;
|
|
139
|
+
readonly runId: string & import("effect/Brand").Brand<"@effect-agent/core/RunId">;
|
|
140
|
+
readonly settlementId: string & import("effect/Brand").Brand<"@effect-agent/core/SettlementId">;
|
|
141
|
+
readonly outcome: "completed";
|
|
142
|
+
readonly result: Schema.Json;
|
|
143
|
+
} | {
|
|
144
|
+
readonly _tag: "Settled";
|
|
145
|
+
readonly worker: {
|
|
146
|
+
readonly schemaVersion: 1;
|
|
147
|
+
readonly delegationId: string & import("effect/Brand").Brand<"@effect-agent/core/DelegationId">;
|
|
148
|
+
readonly targetAgentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
149
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
150
|
+
};
|
|
151
|
+
readonly receipt: Receipt;
|
|
152
|
+
readonly runId: string & import("effect/Brand").Brand<"@effect-agent/core/RunId">;
|
|
153
|
+
readonly settlementId: string & import("effect/Brand").Brand<"@effect-agent/core/SettlementId">;
|
|
154
|
+
readonly outcome: "aborted" | "failed";
|
|
155
|
+
readonly failure: SubagentExecutionFailure;
|
|
156
|
+
};
|
|
157
|
+
} | {
|
|
158
|
+
readonly _tag: "WorkerUpdate";
|
|
159
|
+
readonly schemaVersion: 1;
|
|
160
|
+
readonly worker: {
|
|
161
|
+
readonly schemaVersion: 1;
|
|
162
|
+
readonly delegationId: string & import("effect/Brand").Brand<"@effect-agent/core/DelegationId">;
|
|
163
|
+
readonly targetAgentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
164
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
165
|
+
};
|
|
166
|
+
readonly update: Update;
|
|
167
|
+
} | undefined;
|
|
168
|
+
};
|
|
169
|
+
readonly envelopeDigest: string & import("effect/Brand").Brand<"@effect-agent/thread/Digest">;
|
|
170
|
+
readonly predecessor?: (string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">) | undefined;
|
|
171
|
+
readonly createdAtMillis: number;
|
|
172
|
+
readonly initialDeadlineAtMillis: number;
|
|
173
|
+
readonly deadlineAtMillis: number;
|
|
174
|
+
readonly policy: {
|
|
175
|
+
readonly maxAutomaticAttempts: number;
|
|
176
|
+
readonly attemptTimeoutMillis: number;
|
|
177
|
+
readonly retryBaseMillis: number;
|
|
178
|
+
readonly retryMaxMillis: number;
|
|
179
|
+
readonly settlementPollMillis: number;
|
|
180
|
+
};
|
|
181
|
+
readonly version: number;
|
|
182
|
+
readonly status: "accepted" | "parked" | "pending" | "processed" | "refused";
|
|
183
|
+
readonly receipt: Receipt | null;
|
|
184
|
+
readonly settlement: Settlement | null;
|
|
185
|
+
readonly refusal: string | null;
|
|
186
|
+
readonly parkReason: "deadline" | "exhausted" | "status-unavailable" | null;
|
|
187
|
+
readonly leaseUntilMillis: number | null;
|
|
188
|
+
readonly retry: {
|
|
189
|
+
readonly attempts: number;
|
|
190
|
+
readonly generation: number;
|
|
191
|
+
readonly automaticAttempts: number;
|
|
192
|
+
readonly parked: boolean;
|
|
193
|
+
readonly nextAttemptAtMillis: number;
|
|
194
|
+
readonly lastAttemptAtMillis: number | null;
|
|
195
|
+
readonly lastFailure: "ambiguous" | "capacity" | "host-closed" | "storage" | "timeout" | "transport" | null;
|
|
196
|
+
};
|
|
197
|
+
readonly lastFailureDiagnostic?: Diagnostic | undefined;
|
|
198
|
+
}, DigestError | MessageDeliveryError, import("effect/Crypto").Crypto>;
|
|
199
|
+
export declare const messageDeliveryFixtureReceipt: Receipt;
|
|
200
|
+
export declare const makeWorkerUpdateDeliveryFixture: (id: string) => Effect.Effect<{
|
|
201
|
+
readonly schemaVersion: 1;
|
|
202
|
+
readonly key: {
|
|
203
|
+
readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
204
|
+
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
205
|
+
};
|
|
206
|
+
readonly envelope: {
|
|
207
|
+
readonly schemaVersion: 1;
|
|
208
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
209
|
+
readonly deliveryPrincipal: string & import("effect/Brand").Brand<"@effect-agent/thread/Principal">;
|
|
210
|
+
readonly admissionGroup?: string | undefined;
|
|
211
|
+
readonly admissionFence?: {
|
|
212
|
+
readonly policyId: string;
|
|
213
|
+
readonly key: string;
|
|
214
|
+
readonly revision: string;
|
|
215
|
+
} | undefined;
|
|
216
|
+
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
217
|
+
readonly definitions: DefinitionDigests;
|
|
218
|
+
readonly input: Schema.Json;
|
|
219
|
+
readonly inputDigest: string & import("effect/Brand").Brand<"@effect-agent/thread/Digest">;
|
|
220
|
+
readonly admissionKey: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
221
|
+
readonly authorization: {
|
|
222
|
+
readonly policyId: string;
|
|
223
|
+
readonly decisionId: string;
|
|
224
|
+
};
|
|
225
|
+
readonly workerAdmission?: {
|
|
226
|
+
readonly origin: {
|
|
227
|
+
readonly worker: {
|
|
228
|
+
readonly schemaVersion: 1;
|
|
229
|
+
readonly delegationId: string & import("effect/Brand").Brand<"@effect-agent/core/DelegationId">;
|
|
230
|
+
readonly targetAgentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
231
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
232
|
+
};
|
|
233
|
+
readonly source: {
|
|
234
|
+
readonly _tag: "tool";
|
|
235
|
+
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
236
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
237
|
+
readonly runId: string & import("effect/Brand").Brand<"@effect-agent/core/RunId">;
|
|
238
|
+
readonly toolCallId: string & import("effect/Brand").Brand<"@effect-agent/core/ToolCallId">;
|
|
239
|
+
} | {
|
|
240
|
+
readonly _tag: "programmatic";
|
|
241
|
+
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
242
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
243
|
+
};
|
|
244
|
+
readonly continuationOf?: {
|
|
245
|
+
readonly worker: {
|
|
246
|
+
readonly schemaVersion: 1;
|
|
247
|
+
readonly delegationId: string & import("effect/Brand").Brand<"@effect-agent/core/DelegationId">;
|
|
248
|
+
readonly targetAgentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
249
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
250
|
+
};
|
|
251
|
+
readonly receipt: Receipt;
|
|
252
|
+
readonly settlementId: string & import("effect/Brand").Brand<"@effect-agent/core/SettlementId">;
|
|
253
|
+
} | undefined;
|
|
254
|
+
readonly budgetScope?: "source-subtree" | "worker-run" | undefined;
|
|
255
|
+
readonly lifecycle?: "assignment" | undefined;
|
|
256
|
+
readonly targetDigests: DefinitionDigests;
|
|
257
|
+
readonly policy: AgentPolicy;
|
|
258
|
+
readonly budget: {
|
|
259
|
+
readonly caps: SubagentDelegationCaps;
|
|
260
|
+
readonly allocation: SubagentReservationAmounts;
|
|
261
|
+
readonly descendantInvocations?: number | undefined;
|
|
262
|
+
};
|
|
263
|
+
readonly grant: SubagentGrant;
|
|
264
|
+
readonly depth: number;
|
|
265
|
+
readonly toolCallAllowance?: number | undefined;
|
|
266
|
+
readonly firstMessageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
267
|
+
readonly createdAtMillis: number;
|
|
268
|
+
readonly expiresAtMillis: number;
|
|
269
|
+
readonly reporting?: {
|
|
270
|
+
readonly mode?: "standard" | undefined;
|
|
271
|
+
readonly sourceDigests: DefinitionDigests;
|
|
272
|
+
readonly destinationDelegationId?: (string & import("effect/Brand").Brand<"@effect-agent/core/DelegationId">) | undefined;
|
|
273
|
+
readonly returnAddress?: {
|
|
274
|
+
readonly input: Schema.Json;
|
|
275
|
+
readonly principal: string & import("effect/Brand").Brand<"@effect-agent/thread/Principal">;
|
|
276
|
+
readonly policy: AgentPolicy;
|
|
277
|
+
readonly depth: number;
|
|
278
|
+
readonly grant?: SubagentGrant | undefined;
|
|
279
|
+
readonly workerAdmission?: Schema.Json | undefined;
|
|
280
|
+
} | undefined;
|
|
281
|
+
} | undefined;
|
|
282
|
+
};
|
|
283
|
+
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
284
|
+
readonly parameters: Schema.Json;
|
|
285
|
+
readonly createdAtMillis: number;
|
|
286
|
+
readonly sourceSubmissionId?: (string & import("effect/Brand").Brand<"@effect-agent/core/SubmissionId">) | undefined;
|
|
287
|
+
readonly deliveryPrincipal?: (string & import("effect/Brand").Brand<"@effect-agent/thread/Principal">) | undefined;
|
|
288
|
+
readonly reportKind?: "update" | undefined;
|
|
289
|
+
} | undefined;
|
|
290
|
+
readonly messageAdmission?: {
|
|
291
|
+
readonly schemaVersion: 1;
|
|
292
|
+
readonly message: {
|
|
293
|
+
readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
294
|
+
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
295
|
+
};
|
|
296
|
+
readonly peerName: string;
|
|
297
|
+
readonly sender: {
|
|
298
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
299
|
+
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
300
|
+
};
|
|
301
|
+
readonly returnAddress: {
|
|
302
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
303
|
+
readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
304
|
+
};
|
|
305
|
+
readonly inReplyTo?: {
|
|
306
|
+
readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
307
|
+
readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
|
|
308
|
+
} | undefined;
|
|
309
|
+
} | {
|
|
310
|
+
readonly _tag: "WorkerCompletion";
|
|
311
|
+
readonly budgetExhausted: boolean;
|
|
312
|
+
readonly schemaVersion: 1;
|
|
313
|
+
readonly report: {
|
|
314
|
+
readonly _tag: "Settled";
|
|
315
|
+
readonly worker: {
|
|
316
|
+
readonly schemaVersion: 1;
|
|
317
|
+
readonly delegationId: string & import("effect/Brand").Brand<"@effect-agent/core/DelegationId">;
|
|
318
|
+
readonly targetAgentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
319
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
320
|
+
};
|
|
321
|
+
readonly receipt: Receipt;
|
|
322
|
+
readonly runId: string & import("effect/Brand").Brand<"@effect-agent/core/RunId">;
|
|
323
|
+
readonly settlementId: string & import("effect/Brand").Brand<"@effect-agent/core/SettlementId">;
|
|
324
|
+
readonly outcome: "completed";
|
|
325
|
+
readonly result: Schema.Json;
|
|
326
|
+
} | {
|
|
327
|
+
readonly _tag: "Settled";
|
|
328
|
+
readonly worker: {
|
|
329
|
+
readonly schemaVersion: 1;
|
|
330
|
+
readonly delegationId: string & import("effect/Brand").Brand<"@effect-agent/core/DelegationId">;
|
|
331
|
+
readonly targetAgentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
332
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
333
|
+
};
|
|
334
|
+
readonly receipt: Receipt;
|
|
335
|
+
readonly runId: string & import("effect/Brand").Brand<"@effect-agent/core/RunId">;
|
|
336
|
+
readonly settlementId: string & import("effect/Brand").Brand<"@effect-agent/core/SettlementId">;
|
|
337
|
+
readonly outcome: "aborted" | "failed";
|
|
338
|
+
readonly failure: SubagentExecutionFailure;
|
|
339
|
+
};
|
|
340
|
+
} | {
|
|
341
|
+
readonly _tag: "WorkerUpdate";
|
|
342
|
+
readonly schemaVersion: 1;
|
|
343
|
+
readonly worker: {
|
|
344
|
+
readonly schemaVersion: 1;
|
|
345
|
+
readonly delegationId: string & import("effect/Brand").Brand<"@effect-agent/core/DelegationId">;
|
|
346
|
+
readonly targetAgentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
|
|
347
|
+
readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
|
|
348
|
+
};
|
|
349
|
+
readonly update: Update;
|
|
350
|
+
} | undefined;
|
|
351
|
+
};
|
|
352
|
+
readonly envelopeDigest: string & import("effect/Brand").Brand<"@effect-agent/thread/Digest">;
|
|
353
|
+
readonly predecessor?: (string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">) | undefined;
|
|
354
|
+
readonly createdAtMillis: number;
|
|
355
|
+
readonly initialDeadlineAtMillis: number;
|
|
356
|
+
readonly deadlineAtMillis: number;
|
|
357
|
+
readonly policy: {
|
|
358
|
+
readonly maxAutomaticAttempts: number;
|
|
359
|
+
readonly attemptTimeoutMillis: number;
|
|
360
|
+
readonly retryBaseMillis: number;
|
|
361
|
+
readonly retryMaxMillis: number;
|
|
362
|
+
readonly settlementPollMillis: number;
|
|
363
|
+
};
|
|
364
|
+
readonly version: number;
|
|
365
|
+
readonly status: "accepted" | "parked" | "pending" | "processed" | "refused";
|
|
366
|
+
readonly receipt: Receipt | null;
|
|
367
|
+
readonly settlement: Settlement | null;
|
|
368
|
+
readonly refusal: string | null;
|
|
369
|
+
readonly parkReason: "deadline" | "exhausted" | "status-unavailable" | null;
|
|
370
|
+
readonly leaseUntilMillis: number | null;
|
|
371
|
+
readonly retry: {
|
|
372
|
+
readonly attempts: number;
|
|
373
|
+
readonly generation: number;
|
|
374
|
+
readonly automaticAttempts: number;
|
|
375
|
+
readonly parked: boolean;
|
|
376
|
+
readonly nextAttemptAtMillis: number;
|
|
377
|
+
readonly lastAttemptAtMillis: number | null;
|
|
378
|
+
readonly lastFailure: "ambiguous" | "capacity" | "host-closed" | "storage" | "timeout" | "transport" | null;
|
|
379
|
+
};
|
|
380
|
+
readonly lastFailureDiagnostic?: Diagnostic | undefined;
|
|
381
|
+
}, DigestError | MessageDeliveryError, import("effect/Crypto").Crypto>;
|
|
382
|
+
/** Every case starts with an empty store; all clocks and expected values are explicit. */
|
|
383
|
+
export declare const messageDeliveryStoreConformanceCases: readonly [{
|
|
384
|
+
readonly name: "reserves ordinary delivery capacity when worker updates saturate their separate bound";
|
|
385
|
+
readonly run: Effect.Effect<void, DigestError | MessageDeliveryConformanceViolation | MessageDeliveryFailure, import("effect/Crypto").Crypto | MessageDeliveryStore>;
|
|
386
|
+
}, {
|
|
387
|
+
readonly name: "retains predecessor identity and defers ordering waits without spending attempts";
|
|
388
|
+
readonly run: Effect.Effect<void, DigestError | MessageDeliveryConformanceViolation | MessageDeliveryFailure, import("effect/Crypto").Crypto | MessageDeliveryStore>;
|
|
389
|
+
}, {
|
|
390
|
+
readonly name: "retains pending, accepted and processed facts with stable duplicate admission";
|
|
391
|
+
readonly run: Effect.Effect<void, DigestError | MessageDeliveryConformanceViolation | MessageDeliveryFailure, import("effect/Crypto").Crypto | MessageDeliveryStore>;
|
|
392
|
+
}, {
|
|
393
|
+
readonly name: "rejects conflicting identity and scopes cursors and discovery to the source owner";
|
|
394
|
+
readonly run: Effect.Effect<void, DigestError | MessageDeliveryConformanceViolation | MessageDeliveryFailure, import("effect/Crypto").Crypto | MessageDeliveryStore>;
|
|
395
|
+
}, {
|
|
396
|
+
readonly name: "fences stale completion and preserves parked work for explicit recovery";
|
|
397
|
+
readonly run: Effect.Effect<void, DigestError | MessageDeliveryConformanceViolation | MessageDeliveryFailure, import("effect/Crypto").Crypto | MessageDeliveryStore>;
|
|
398
|
+
}];
|
|
399
|
+
//#endregion
|
|
400
|
+
//# sourceMappingURL=MessageDeliveryStoreConformance.d.mts.map
|