effect-agent 0.1.0-beta.12 → 0.1.0-beta.121
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/Agent-1DMSO_Fl.mjs +86 -0
- package/dist/Agent-1DMSO_Fl.mjs.map +1 -0
- package/dist/Agent-D9cXqfF3.d.mts +252 -0
- package/dist/AgentError-Bn1ytXRD.d.mts +117 -0
- package/dist/AgentPolicy-BqDoSXO6.d.mts +96 -0
- package/dist/AgentRuntime-BUxDdLpw.d.mts +346 -0
- package/dist/AgentRuntime-Cp1hAb-W.mjs +4739 -0
- package/dist/AgentRuntime-Cp1hAb-W.mjs.map +1 -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/DurableAgentRuntime-B-9w7jDt.mjs +7061 -0
- package/dist/DurableAgentRuntime-B-9w7jDt.mjs.map +1 -0
- package/dist/DurableFailpoint-Cnr3wx1L.d.mts +41 -0
- package/dist/DurableStep-Cry_iol4.d.mts +103 -0
- package/dist/EventSource-CnlZ3Kma.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-JYYN3oYS.d.mts +1067 -0
- package/dist/MessagingHost-CqzpxbGz.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-V-6YL1_Z.d.mts +25 -0
- package/dist/PageCapture-Df8Xwskw.d.mts +583 -0
- package/dist/PageScreenshot-BpgZKAxl.d.mts +48 -0
- package/dist/PreparedInputAdmission-BQLGldl-.d.mts +42 -0
- package/dist/Receipt-BAHyigAF.d.mts +33 -0
- package/dist/Records-D88mgvyS.d.mts +4214 -0
- package/dist/RunEvent-DIrzkjLr.d.mts +460 -0
- package/dist/RunEventSink-D5aVhISG.d.mts +108 -0
- package/dist/RunJournal-BXrq0VIK.mjs +931 -0
- package/dist/RunJournal-BXrq0VIK.mjs.map +1 -0
- package/dist/RunOptions-CSBsSj0X.d.mts +935 -0
- package/dist/RunPolicyUsage-ClZxyR46.d.mts +21 -0
- package/dist/Sandbox-CEsDWBLq.d.mts +173 -0
- package/dist/Schedule-BIOHA6RR.d.mts +847 -0
- package/dist/Scheduling-DPb2QyAK.mjs +691 -0
- package/dist/Scheduling-DPb2QyAK.mjs.map +1 -0
- package/dist/Subagent-CNik9RiA.d.mts +1635 -0
- package/dist/Subagent-DCrB7an7.mjs +1498 -0
- package/dist/Subagent-DCrB7an7.mjs.map +1 -0
- package/dist/SubagentContract-DdT7Cqe6.d.mts +116 -0
- package/dist/SubagentHost-4WB8Hj0C.d.mts +164 -0
- package/dist/Subscription-CRteOKRf.d.mts +948 -0
- package/dist/SubscriptionInput-oNcwTPti.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/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 +522 -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 +506 -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 +62 -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 +3 -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/MessageDelivery.d.mts +893 -0
- package/dist/durable/MessageDelivery.mjs +557 -0
- package/dist/durable/MessageDelivery.mjs.map +1 -0
- package/dist/durable/MessageDeliveryStoreConformance.d.mts +378 -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 +848 -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 +54 -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/SqlMessageDeliveryStore.d.mts +42 -0
- package/dist/durable/SqlMessageDeliveryStore.mjs +179 -0
- package/dist/durable/SqlMessageDeliveryStore.mjs.map +1 -0
- package/dist/durable/SqlStorageV2Upgrade.d.mts +21 -0
- package/dist/durable/SqlStorageV2Upgrade.mjs +459 -0
- package/dist/durable/SqlStorageV2Upgrade.mjs.map +1 -0
- package/dist/durable/SqlSubscriptionStore.d.mts +62 -0
- package/dist/durable/SqlSubscriptionStore.mjs +751 -0
- package/dist/durable/SqlSubscriptionStore.mjs.map +1 -0
- package/dist/durable/SqlThreadNativeReads.d.mts +53 -0
- package/dist/durable/SqlThreadNativeReads.mjs +159 -0
- package/dist/durable/SqlThreadNativeReads.mjs.map +1 -0
- package/dist/durable/SubmissionLedger.d.mts +3 -0
- package/dist/durable/SubmissionLedger.mjs +959 -0
- package/dist/durable/SubmissionLedger.mjs.map +1 -0
- package/dist/durable/SubmissionLedgerConformance.d.mts +29 -0
- package/dist/durable/SubmissionLedgerConformance.mjs +2187 -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 +273 -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 +73 -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 +76 -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 +355 -0
- package/dist/durable/ThreadStore.mjs.map +1 -0
- package/dist/durable/ThreadStoreConformance.d.mts +28 -0
- package/dist/durable/ThreadStoreConformance.mjs +503 -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/WorkerHost.d.mts +129 -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 +91 -6
- package/dist/index.mjs +100 -6
- package/dist/output-contract-BC7tjlGw.mjs +84 -0
- package/dist/output-contract-BC7tjlGw.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 +2 -0
- package/dist/sandbox/PageScreenshot.mjs +53 -0
- package/dist/sandbox/PageScreenshot.mjs.map +1 -0
- package/dist/sandbox/ProtectedBrowser.d.mts +283 -0
- package/dist/sandbox/ProtectedBrowser.mjs +298 -0
- package/dist/sandbox/ProtectedBrowser.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 +1090 -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 +967 -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 +1273 -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 +602 -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 +11275 -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/MessageDelivery.ts +832 -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 +1075 -0
- package/src/durable/Recovery.ts +1018 -0
- package/src/durable/RunJournal.ts +1631 -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/SqlMessageDeliveryStore.ts +335 -0
- package/src/durable/SqlStorageV2Upgrade.ts +500 -0
- package/src/durable/SqlSubscriptionStore.ts +1440 -0
- package/src/durable/SqlThreadNativeReads.ts +270 -0
- package/src/durable/SubmissionLedger.ts +1265 -0
- package/src/durable/SubmissionLedgerConformance.ts +4820 -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 +573 -0
- package/src/durable/ThreadStoreConformance.ts +1156 -0
- package/src/durable/ToolReconciler.ts +109 -0
- package/src/durable/WakeScheduler.ts +134 -0
- package/src/durable/WorkerHost.ts +171 -0
- package/src/durable/internal/agent-registration.ts +587 -0
- package/src/durable/internal/agent-updates.ts +302 -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 +117 -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/storage-v2-layout.ts +163 -0
- package/src/durable/internal/storage-v2.ts +73 -0
- package/src/durable/internal/worker-host.ts +2885 -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 +1101 -0
- package/src/engine/SubagentHost.ts +230 -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 +10500 -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 +173 -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 -21
- 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/ProtectedBrowser.ts +452 -0
- package/src/sandbox/Sandbox.ts +241 -0
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { Cause, Schema } from "effect";
|
|
2
|
+
declare namespace FailureDiagnostic_d_exports {
|
|
3
|
+
export { Cause$1 as Cause, Context$1 as Context, Diagnostic, Failure, Value, capture, captureContext, redactText };
|
|
4
|
+
}
|
|
5
|
+
/** Correlation only: never include inputs, tool parameters, request bodies, or credentials. */
|
|
6
|
+
declare const Context$1: Schema.declareConstructor<{
|
|
7
|
+
readonly agentId?: string | undefined;
|
|
8
|
+
readonly threadId?: string | undefined;
|
|
9
|
+
readonly runId?: string | undefined;
|
|
10
|
+
readonly submissionId?: string | undefined;
|
|
11
|
+
readonly attemptId?: string | undefined;
|
|
12
|
+
readonly turnId?: string | undefined;
|
|
13
|
+
readonly toolCallId?: string | undefined;
|
|
14
|
+
readonly toolName?: string | undefined;
|
|
15
|
+
readonly callId?: string | undefined;
|
|
16
|
+
readonly check?: string | undefined;
|
|
17
|
+
readonly operation?: string | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
readonly agentId?: string | undefined;
|
|
20
|
+
readonly threadId?: string | undefined;
|
|
21
|
+
readonly runId?: string | undefined;
|
|
22
|
+
readonly submissionId?: string | undefined;
|
|
23
|
+
readonly attemptId?: string | undefined;
|
|
24
|
+
readonly turnId?: string | undefined;
|
|
25
|
+
readonly toolCallId?: string | undefined;
|
|
26
|
+
readonly toolName?: string | undefined;
|
|
27
|
+
readonly callId?: string | undefined;
|
|
28
|
+
readonly check?: string | undefined;
|
|
29
|
+
readonly operation?: string | undefined;
|
|
30
|
+
}, readonly [Schema.Struct<{
|
|
31
|
+
readonly agentId: Schema.optionalKey<Schema.String>;
|
|
32
|
+
readonly threadId: Schema.optionalKey<Schema.String>;
|
|
33
|
+
readonly runId: Schema.optionalKey<Schema.String>;
|
|
34
|
+
readonly submissionId: Schema.optionalKey<Schema.String>;
|
|
35
|
+
readonly attemptId: Schema.optionalKey<Schema.String>;
|
|
36
|
+
readonly turnId: Schema.optionalKey<Schema.String>;
|
|
37
|
+
readonly toolCallId: Schema.optionalKey<Schema.String>;
|
|
38
|
+
readonly toolName: Schema.optionalKey<Schema.String>;
|
|
39
|
+
readonly callId: Schema.optionalKey<Schema.String>;
|
|
40
|
+
readonly check: Schema.optionalKey<Schema.String>;
|
|
41
|
+
readonly operation: Schema.optionalKey<Schema.String>;
|
|
42
|
+
}>], {
|
|
43
|
+
readonly agentId?: string | undefined;
|
|
44
|
+
readonly threadId?: string | undefined;
|
|
45
|
+
readonly runId?: string | undefined;
|
|
46
|
+
readonly submissionId?: string | undefined;
|
|
47
|
+
readonly attemptId?: string | undefined;
|
|
48
|
+
readonly turnId?: string | undefined;
|
|
49
|
+
readonly toolCallId?: string | undefined;
|
|
50
|
+
readonly toolName?: string | undefined;
|
|
51
|
+
readonly callId?: string | undefined;
|
|
52
|
+
readonly check?: string | undefined;
|
|
53
|
+
readonly operation?: string | undefined;
|
|
54
|
+
}>;
|
|
55
|
+
type Context$1 = typeof Context$1.Type;
|
|
56
|
+
type CauseReason = {
|
|
57
|
+
readonly _tag: "Fail";
|
|
58
|
+
readonly error: Diagnostic;
|
|
59
|
+
} | {
|
|
60
|
+
readonly _tag: "Die";
|
|
61
|
+
readonly defect: Diagnostic;
|
|
62
|
+
} | {
|
|
63
|
+
readonly _tag: "Interrupt";
|
|
64
|
+
readonly fiberId?: number;
|
|
65
|
+
};
|
|
66
|
+
/** A private diagnostic projection, not a JavaScript error reconstruction or model response. */
|
|
67
|
+
type Diagnostic = {
|
|
68
|
+
readonly _tag: "Error";
|
|
69
|
+
readonly errorTag?: string;
|
|
70
|
+
readonly name?: string;
|
|
71
|
+
readonly message?: string;
|
|
72
|
+
readonly stack?: string;
|
|
73
|
+
readonly reason?: Diagnostic;
|
|
74
|
+
readonly code?: string | number;
|
|
75
|
+
readonly cause?: Diagnostic;
|
|
76
|
+
readonly errors?: ReadonlyArray<Diagnostic>;
|
|
77
|
+
readonly context?: Context$1;
|
|
78
|
+
readonly omittedFields?: ReadonlyArray<string>;
|
|
79
|
+
readonly truncated?: true;
|
|
80
|
+
} | {
|
|
81
|
+
readonly _tag: "Cause";
|
|
82
|
+
readonly reasons: ReadonlyArray<CauseReason>;
|
|
83
|
+
readonly truncated?: true;
|
|
84
|
+
} | {
|
|
85
|
+
readonly _tag: "Value";
|
|
86
|
+
readonly value: string | number | boolean | null;
|
|
87
|
+
} | {
|
|
88
|
+
readonly _tag: "Omitted";
|
|
89
|
+
readonly reason: "redacted" | "cycle" | "limit" | "unsupported";
|
|
90
|
+
};
|
|
91
|
+
/** Structured, allowlisted Error fields and ordered Effect Fail/Die/Interrupt reasons. */
|
|
92
|
+
declare const Diagnostic: Schema.Codec<Diagnostic>;
|
|
93
|
+
/** Remove common credential forms; hosts must keep arbitrary private payloads out of error text. */
|
|
94
|
+
declare const redactText: (text: string) => string;
|
|
95
|
+
/**
|
|
96
|
+
* Capture only diagnostic fields. Local values are never mutated. Cycles and exhausted limits
|
|
97
|
+
* are explicit, not silently dropped; capture visits at most 1,024 nodes, with 56 JSON levels
|
|
98
|
+
* and 128 KiB text. Inner causes have priority over outer stacks when the text budget is exhausted.
|
|
99
|
+
* Text remains operator-private. No generic serializer can identify secrets embedded in arbitrary
|
|
100
|
+
* prose: application error messages must exclude payloads, and hosts may supply stricter redaction.
|
|
101
|
+
*/
|
|
102
|
+
declare const capture: (value: unknown, options?: {
|
|
103
|
+
readonly redactText?: (text: string) => string;
|
|
104
|
+
}) => Diagnostic;
|
|
105
|
+
/** Bound and redact a diagnostic copy; canonical identities stay in their owning records. */
|
|
106
|
+
declare const captureContext: (context: Context$1) => Context$1;
|
|
107
|
+
/**
|
|
108
|
+
* Preserve the original value in-process; across JSON retain its structured diagnostic projection.
|
|
109
|
+
* Decoding returns Diagnostic data, never claims to reconstruct an application error class.
|
|
110
|
+
*/
|
|
111
|
+
declare const Value: Schema.decodeTo<Schema.Unknown, Schema.Codec<Diagnostic, Diagnostic, never, never>, never, never>;
|
|
112
|
+
/** Original local Effect Cause; its JSON codec preserves ordered typed, defect and interrupt reasons. */
|
|
113
|
+
declare const Cause$1: Schema.decodeTo<Schema.declare<Cause.Cause<unknown>, Cause.Cause<unknown>>, Schema.Cause<Schema.decodeTo<Schema.Unknown, Schema.Codec<Diagnostic, Diagnostic, never, never>, never, never>, Schema.decodeTo<Schema.Unknown, Schema.Codec<Diagnostic, Diagnostic, never, never>, never, never>>, never, never>;
|
|
114
|
+
/** Safe summary plus optional operator-private causal evidence retained at a terminal boundary. */
|
|
115
|
+
declare const Failure: Schema.declareConstructor<{
|
|
116
|
+
readonly errorTag: string;
|
|
117
|
+
readonly message: string;
|
|
118
|
+
readonly diagnostic?: Diagnostic | undefined;
|
|
119
|
+
readonly context?: {
|
|
120
|
+
readonly agentId?: string | undefined;
|
|
121
|
+
readonly threadId?: string | undefined;
|
|
122
|
+
readonly runId?: string | undefined;
|
|
123
|
+
readonly submissionId?: string | undefined;
|
|
124
|
+
readonly attemptId?: string | undefined;
|
|
125
|
+
readonly turnId?: string | undefined;
|
|
126
|
+
readonly toolCallId?: string | undefined;
|
|
127
|
+
readonly toolName?: string | undefined;
|
|
128
|
+
readonly callId?: string | undefined;
|
|
129
|
+
readonly check?: string | undefined;
|
|
130
|
+
readonly operation?: string | undefined;
|
|
131
|
+
} | undefined;
|
|
132
|
+
}, {
|
|
133
|
+
readonly errorTag: string;
|
|
134
|
+
readonly message: string;
|
|
135
|
+
readonly diagnostic?: Diagnostic | undefined;
|
|
136
|
+
readonly context?: {
|
|
137
|
+
readonly agentId?: string | undefined;
|
|
138
|
+
readonly threadId?: string | undefined;
|
|
139
|
+
readonly runId?: string | undefined;
|
|
140
|
+
readonly submissionId?: string | undefined;
|
|
141
|
+
readonly attemptId?: string | undefined;
|
|
142
|
+
readonly turnId?: string | undefined;
|
|
143
|
+
readonly toolCallId?: string | undefined;
|
|
144
|
+
readonly toolName?: string | undefined;
|
|
145
|
+
readonly callId?: string | undefined;
|
|
146
|
+
readonly check?: string | undefined;
|
|
147
|
+
readonly operation?: string | undefined;
|
|
148
|
+
} | undefined;
|
|
149
|
+
}, readonly [Schema.Struct<{
|
|
150
|
+
readonly errorTag: Schema.NonEmptyString;
|
|
151
|
+
readonly message: Schema.String;
|
|
152
|
+
readonly diagnostic: Schema.optionalKey<Schema.Codec<Diagnostic, Diagnostic, never, never>>;
|
|
153
|
+
readonly context: Schema.optionalKey<Schema.declareConstructor<{
|
|
154
|
+
readonly agentId?: string | undefined;
|
|
155
|
+
readonly threadId?: string | undefined;
|
|
156
|
+
readonly runId?: string | undefined;
|
|
157
|
+
readonly submissionId?: string | undefined;
|
|
158
|
+
readonly attemptId?: string | undefined;
|
|
159
|
+
readonly turnId?: string | undefined;
|
|
160
|
+
readonly toolCallId?: string | undefined;
|
|
161
|
+
readonly toolName?: string | undefined;
|
|
162
|
+
readonly callId?: string | undefined;
|
|
163
|
+
readonly check?: string | undefined;
|
|
164
|
+
readonly operation?: string | undefined;
|
|
165
|
+
}, {
|
|
166
|
+
readonly agentId?: string | undefined;
|
|
167
|
+
readonly threadId?: string | undefined;
|
|
168
|
+
readonly runId?: string | undefined;
|
|
169
|
+
readonly submissionId?: string | undefined;
|
|
170
|
+
readonly attemptId?: string | undefined;
|
|
171
|
+
readonly turnId?: string | undefined;
|
|
172
|
+
readonly toolCallId?: string | undefined;
|
|
173
|
+
readonly toolName?: string | undefined;
|
|
174
|
+
readonly callId?: string | undefined;
|
|
175
|
+
readonly check?: string | undefined;
|
|
176
|
+
readonly operation?: string | undefined;
|
|
177
|
+
}, readonly [Schema.Struct<{
|
|
178
|
+
readonly agentId: Schema.optionalKey<Schema.String>;
|
|
179
|
+
readonly threadId: Schema.optionalKey<Schema.String>;
|
|
180
|
+
readonly runId: Schema.optionalKey<Schema.String>;
|
|
181
|
+
readonly submissionId: Schema.optionalKey<Schema.String>;
|
|
182
|
+
readonly attemptId: Schema.optionalKey<Schema.String>;
|
|
183
|
+
readonly turnId: Schema.optionalKey<Schema.String>;
|
|
184
|
+
readonly toolCallId: Schema.optionalKey<Schema.String>;
|
|
185
|
+
readonly toolName: Schema.optionalKey<Schema.String>;
|
|
186
|
+
readonly callId: Schema.optionalKey<Schema.String>;
|
|
187
|
+
readonly check: Schema.optionalKey<Schema.String>;
|
|
188
|
+
readonly operation: Schema.optionalKey<Schema.String>;
|
|
189
|
+
}>], {
|
|
190
|
+
readonly agentId?: string | undefined;
|
|
191
|
+
readonly threadId?: string | undefined;
|
|
192
|
+
readonly runId?: string | undefined;
|
|
193
|
+
readonly submissionId?: string | undefined;
|
|
194
|
+
readonly attemptId?: string | undefined;
|
|
195
|
+
readonly turnId?: string | undefined;
|
|
196
|
+
readonly toolCallId?: string | undefined;
|
|
197
|
+
readonly toolName?: string | undefined;
|
|
198
|
+
readonly callId?: string | undefined;
|
|
199
|
+
readonly check?: string | undefined;
|
|
200
|
+
readonly operation?: string | undefined;
|
|
201
|
+
}>>;
|
|
202
|
+
}>], {
|
|
203
|
+
readonly errorTag: string;
|
|
204
|
+
readonly message: string;
|
|
205
|
+
readonly diagnostic?: Diagnostic | undefined;
|
|
206
|
+
readonly context?: {
|
|
207
|
+
readonly agentId?: string | undefined;
|
|
208
|
+
readonly threadId?: string | undefined;
|
|
209
|
+
readonly runId?: string | undefined;
|
|
210
|
+
readonly submissionId?: string | undefined;
|
|
211
|
+
readonly attemptId?: string | undefined;
|
|
212
|
+
readonly turnId?: string | undefined;
|
|
213
|
+
readonly toolCallId?: string | undefined;
|
|
214
|
+
readonly toolName?: string | undefined;
|
|
215
|
+
readonly callId?: string | undefined;
|
|
216
|
+
readonly check?: string | undefined;
|
|
217
|
+
readonly operation?: string | undefined;
|
|
218
|
+
} | undefined;
|
|
219
|
+
}>;
|
|
220
|
+
type Failure = typeof Failure.Type;
|
|
221
|
+
//#endregion
|
|
222
|
+
export { FailureDiagnostic_d_exports as a, captureContext as c, Failure as i, redactText as l, Context$1 as n, Value as o, Diagnostic as r, capture as s, Cause$1 as t };
|
|
223
|
+
//# sourceMappingURL=FailureDiagnostic-CaAkzGHL.d.mts.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
declare namespace Identifiers_d_exports {
|
|
3
|
+
export { AgentId, AttemptId, DelegationId, EventOffset, ReceiptId, RunId, SettlementId, SubmissionId, ThreadId, ToolCallId, TurnId };
|
|
4
|
+
}
|
|
5
|
+
/** Stable identity of an agent definition, distinct from a display name. */
|
|
6
|
+
declare const AgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
7
|
+
type AgentId = typeof AgentId.Type;
|
|
8
|
+
/** Identity shared by runs that participate in one thread history. */
|
|
9
|
+
declare const ThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
10
|
+
type ThreadId = typeof ThreadId.Type;
|
|
11
|
+
/** Identity of one accepted input submission. */
|
|
12
|
+
declare const SubmissionId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SubmissionId">;
|
|
13
|
+
type SubmissionId = typeof SubmissionId.Type;
|
|
14
|
+
/** Durable identity returned once ledger admission and Thread readiness are committed. */
|
|
15
|
+
declare const ReceiptId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ReceiptId">;
|
|
16
|
+
type ReceiptId = typeof ReceiptId.Type;
|
|
17
|
+
/** Identity of the single durable terminal outcome owed to one accepted Submission. */
|
|
18
|
+
declare const SettlementId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SettlementId">;
|
|
19
|
+
type SettlementId = typeof SettlementId.Type;
|
|
20
|
+
/** Identity of one execution ownership period for accepted work. */
|
|
21
|
+
declare const AttemptId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AttemptId">;
|
|
22
|
+
type AttemptId = typeof AttemptId.Type;
|
|
23
|
+
/** Identity of one logical agent run. */
|
|
24
|
+
declare const RunId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
|
|
25
|
+
type RunId = typeof RunId.Type;
|
|
26
|
+
/** Identity of one model turn within a run. */
|
|
27
|
+
declare const TurnId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/TurnId">;
|
|
28
|
+
type TurnId = typeof TurnId.Type;
|
|
29
|
+
/** Identity used to correlate a Tool Call with progress and its terminal outcome. */
|
|
30
|
+
declare const ToolCallId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ToolCallId">;
|
|
31
|
+
type ToolCallId = typeof ToolCallId.Type;
|
|
32
|
+
/** Stable identity of one configured Subagent capability. */
|
|
33
|
+
declare const DelegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
|
|
34
|
+
type DelegationId = typeof DelegationId.Type;
|
|
35
|
+
/** Opaque position in a semantic event sequence. */
|
|
36
|
+
declare const EventOffset: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/EventOffset">;
|
|
37
|
+
type EventOffset = typeof EventOffset.Type;
|
|
38
|
+
//#endregion
|
|
39
|
+
export { Identifiers_d_exports as a, SettlementId as c, ToolCallId as d, TurnId as f, EventOffset as i, SubmissionId as l, AttemptId as n, ReceiptId as o, DelegationId as r, RunId as s, AgentId as t, ThreadId as u };
|
|
40
|
+
//# sourceMappingURL=Identifiers-CN2s30fF.d.mts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { t as Store } from "./Thread-DOBQ0QUY.mjs";
|
|
2
|
+
import { SubagentReservations } from "./capabilities/SubagentReservations.mjs";
|
|
3
|
+
import { t as ThreadHistory } from "./ThreadHistory-tS1KwxHR.mjs";
|
|
4
|
+
import { Layer } from "effect";
|
|
5
|
+
declare namespace InMemory_d_exports {
|
|
6
|
+
export { layer };
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Run agents and attached subagents with in-memory conversation history.
|
|
10
|
+
* Provide once around the parent program and all child handler Layers so siblings
|
|
11
|
+
* share history and one reservation ledger. Reuse a Thread ID to continue a conversation.
|
|
12
|
+
* Conversations can span any number of Runs within the store's capacity limits.
|
|
13
|
+
* Each independent Layer build owns fresh state; state is released when its Scope closes.
|
|
14
|
+
* Process loss loses history and active execution; this Layer provides no crash recovery.
|
|
15
|
+
*
|
|
16
|
+
* Models, tool handlers, and provider clients remain application-supplied. Default
|
|
17
|
+
* IDs need no Layer; enclosing ID and context-preparation overrides are preserved.
|
|
18
|
+
* For storage-backed history, provide PersistentHistory.layer and a shared
|
|
19
|
+
* SubagentReservationsMemoryLive instead. Durable hosts own their own assembly.
|
|
20
|
+
*/
|
|
21
|
+
export declare const layer: Layer.Layer<Store | SubagentReservations | ThreadHistory, never, never>;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { InMemory_d_exports as t };
|
|
24
|
+
//# sourceMappingURL=InMemory.d.mts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
|
|
2
|
+
import { layer as layer$1 } from "./engine/ThreadHistory.mjs";
|
|
3
|
+
import { SubagentReservationsMemoryLive } from "./capabilities/SubagentReservations.mjs";
|
|
4
|
+
import { Layer } from "effect";
|
|
5
|
+
//#region src/InMemory.ts
|
|
6
|
+
var InMemory_exports = /* @__PURE__ */ __exportAll({ layer: () => layer });
|
|
7
|
+
/**
|
|
8
|
+
* Run agents and attached subagents with in-memory conversation history.
|
|
9
|
+
* Provide once around the parent program and all child handler Layers so siblings
|
|
10
|
+
* share history and one reservation ledger. Reuse a Thread ID to continue a conversation.
|
|
11
|
+
* Conversations can span any number of Runs within the store's capacity limits.
|
|
12
|
+
* Each independent Layer build owns fresh state; state is released when its Scope closes.
|
|
13
|
+
* Process loss loses history and active execution; this Layer provides no crash recovery.
|
|
14
|
+
*
|
|
15
|
+
* Models, tool handlers, and provider clients remain application-supplied. Default
|
|
16
|
+
* IDs need no Layer; enclosing ID and context-preparation overrides are preserved.
|
|
17
|
+
* For storage-backed history, provide PersistentHistory.layer and a shared
|
|
18
|
+
* SubagentReservationsMemoryLive instead. Durable hosts own their own assembly.
|
|
19
|
+
*/
|
|
20
|
+
const layer = Layer.merge(layer$1, SubagentReservationsMemoryLive);
|
|
21
|
+
//#endregion
|
|
22
|
+
export { layer, InMemory_exports as t };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=InMemory.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InMemory.mjs","names":["historyLayer"],"sources":["../src/InMemory.ts"],"sourcesContent":["import { Layer } from \"effect\";\n\nimport { SubagentReservationsMemoryLive } from \"./capabilities/SubagentReservations.ts\";\nimport { layer as historyLayer } from \"./engine/ThreadHistory.ts\";\n\n/**\n * Run agents and attached subagents with in-memory conversation history.\n * Provide once around the parent program and all child handler Layers so siblings\n * share history and one reservation ledger. Reuse a Thread ID to continue a conversation.\n * Conversations can span any number of Runs within the store's capacity limits.\n * Each independent Layer build owns fresh state; state is released when its Scope closes.\n * Process loss loses history and active execution; this Layer provides no crash recovery.\n *\n * Models, tool handlers, and provider clients remain application-supplied. Default\n * IDs need no Layer; enclosing ID and context-preparation overrides are preserved.\n * For storage-backed history, provide PersistentHistory.layer and a shared\n * SubagentReservationsMemoryLive instead. Durable hosts own their own assembly.\n */\nexport const layer = Layer.merge(historyLayer, SubagentReservationsMemoryLive);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAkBA,MAAa,QAAQ,MAAM,MAAMA,SAAc,8BAA8B"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Effect, Schema } from "effect";
|
|
2
|
+
declare namespace MemoryNamespace_d_exports {
|
|
3
|
+
export { Any, MemoryNamespaceAddress, MemoryNamespaceError, Value, define, equals };
|
|
4
|
+
}
|
|
5
|
+
declare const MemoryNamespaceError_base: Schema.Class<MemoryNamespaceError, Schema.TaggedStruct<"MemoryNamespaceError", {
|
|
6
|
+
readonly reason: Schema.Literals<readonly ["invalid-identity", "invalid-address", "wrong-definition", "unsupported-format"]>;
|
|
7
|
+
}>, import("effect/Cause").YieldableError>;
|
|
8
|
+
declare class MemoryNamespaceError extends MemoryNamespaceError_base {}
|
|
9
|
+
declare const MemoryNamespaceAddress: Schema.brand<Schema.String, "@effect-agent/core/MemoryNamespaceAddress">;
|
|
10
|
+
/** Application-defined identity. No membership or authorization policy is implied. */
|
|
11
|
+
/** Heterogeneous adapter representation. Restore through a definition before typed use. */
|
|
12
|
+
declare const Any: Schema.Struct<{
|
|
13
|
+
readonly address: Schema.brand<Schema.String, "@effect-agent/core/MemoryNamespaceAddress">;
|
|
14
|
+
}>;
|
|
15
|
+
type Any = typeof Any.Type;
|
|
16
|
+
interface Value<Name extends string, Version extends number, Identity> extends Any {
|
|
17
|
+
readonly name: Name;
|
|
18
|
+
readonly version: Version;
|
|
19
|
+
readonly identity: Identity;
|
|
20
|
+
readonly _type: (value: readonly [Name, Version, Identity]) => readonly [Name, Version, Identity];
|
|
21
|
+
}
|
|
22
|
+
declare const equals: (left: Any, right: Any) => boolean;
|
|
23
|
+
declare const define: <const Name extends string, const Version extends number, Identity, Encoded extends Schema.Json>(options: {
|
|
24
|
+
readonly name: Name;
|
|
25
|
+
readonly version: Version;
|
|
26
|
+
readonly identity: Schema.Codec<Identity, Encoded, never, never>;
|
|
27
|
+
}) => {
|
|
28
|
+
name: Name;
|
|
29
|
+
version: Version;
|
|
30
|
+
make: (identity: Identity) => Value<Name, Version, Identity>;
|
|
31
|
+
decode: (input: unknown) => Effect.Effect<Readonly<Value<Name, Version, Identity>>, MemoryNamespaceError, never>;
|
|
32
|
+
restore: (input: unknown) => Effect.Effect<Readonly<Value<Name, Version, Identity>>, MemoryNamespaceError, never>;
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { Value as a, MemoryNamespace_d_exports as i, MemoryNamespaceAddress as n, define as o, MemoryNamespaceError as r, equals as s, Any as t };
|
|
36
|
+
//# sourceMappingURL=MemoryNamespace-BbRW5p71.d.mts.map
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
declare namespace MemoryReference_d_exports {
|
|
3
|
+
export { MemoryAttribution, MemoryContent, MemoryLookup, MemoryMetadata, MemoryPassage, MemoryRecallError, MemoryRecallLimits, MemorySourceReference };
|
|
4
|
+
}
|
|
5
|
+
/** Consumer-defined JSON metadata, bounded independently of readable content. */
|
|
6
|
+
declare const MemoryMetadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
7
|
+
declare const MemorySourceReference_base: Schema.Class<MemorySourceReference, Schema.Struct<{
|
|
8
|
+
readonly id: Schema.NonEmptyString;
|
|
9
|
+
readonly locator: Schema.NonEmptyString;
|
|
10
|
+
readonly revision: Schema.NullOr<Schema.NonEmptyString>;
|
|
11
|
+
}>, {}>;
|
|
12
|
+
/** Identity in the consumer's authoritative source. `null` means revision is unknown. */
|
|
13
|
+
declare class MemorySourceReference extends MemorySourceReference_base {}
|
|
14
|
+
declare const MemoryAttribution_base: Schema.Class<MemoryAttribution, Schema.Struct<{
|
|
15
|
+
readonly originId: Schema.NonEmptyString;
|
|
16
|
+
readonly speaker: Schema.NonEmptyString;
|
|
17
|
+
readonly observers: Schema.$Array<Schema.NonEmptyString>;
|
|
18
|
+
readonly locator: Schema.NonEmptyString;
|
|
19
|
+
readonly activityAt: Schema.NullOr<Schema.Number>;
|
|
20
|
+
readonly interpretation: Schema.NonEmptyString;
|
|
21
|
+
}>, {}>;
|
|
22
|
+
/**
|
|
23
|
+
* Evidence of who said something, where, when, and who observed it. Interpretation is
|
|
24
|
+
* consumer-defined, for example "proposal" or "inference". Repeated references retain
|
|
25
|
+
* the same originId; they are not independent corroboration. Unknown activity time is null.
|
|
26
|
+
*/
|
|
27
|
+
declare class MemoryAttribution extends MemoryAttribution_base {}
|
|
28
|
+
declare const MemoryContent_base: Schema.Class<MemoryContent, Schema.Struct<{
|
|
29
|
+
readonly text: Schema.NonEmptyString;
|
|
30
|
+
readonly attributions: Schema.$Array<typeof MemoryAttribution>;
|
|
31
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
32
|
+
readonly recordedAt: Schema.Number;
|
|
33
|
+
readonly extractedAt: Schema.optionalKey<Schema.Number>;
|
|
34
|
+
}>, {}>;
|
|
35
|
+
/**
|
|
36
|
+
* Readable authoritative content, independent of any index, model, or fixed memory taxonomy.
|
|
37
|
+
* Recording/extraction time never substitutes for the original source activity time.
|
|
38
|
+
*/
|
|
39
|
+
declare class MemoryContent extends MemoryContent_base {}
|
|
40
|
+
declare const MemoryPassage_base: Schema.Class<MemoryPassage, Schema.Struct<{
|
|
41
|
+
readonly version: Schema.Literal<1>;
|
|
42
|
+
/** Host-bound authority for composition, not model-visible metadata or an access grant. */
|
|
43
|
+
readonly authority: Schema.optionalKey<Schema.NonEmptyString>;
|
|
44
|
+
readonly source: typeof MemorySourceReference;
|
|
45
|
+
readonly passageId: Schema.NonEmptyString;
|
|
46
|
+
readonly content: typeof MemoryContent;
|
|
47
|
+
}>, {}>;
|
|
48
|
+
/** A bounded passage supplied directly by a document reader or external retriever. */
|
|
49
|
+
declare class MemoryPassage extends MemoryPassage_base {}
|
|
50
|
+
/** No-match, unavailable, and insufficient freshness are distinct consumer-visible outcomes. */
|
|
51
|
+
declare const MemoryLookup: Schema.Union<readonly [Schema.TaggedStruct<"Found", {
|
|
52
|
+
readonly passages: Schema.$Array<typeof MemoryPassage>;
|
|
53
|
+
}>, Schema.TaggedStruct<"NoMatch", {}>, Schema.TaggedStruct<"Unavailable", {
|
|
54
|
+
readonly message: Schema.String;
|
|
55
|
+
}>, Schema.TaggedStruct<"InsufficientFreshness", {
|
|
56
|
+
readonly message: Schema.String;
|
|
57
|
+
}>]>;
|
|
58
|
+
type MemoryLookup = typeof MemoryLookup.Type;
|
|
59
|
+
declare const MemoryRecallLimits_base: Schema.Class<MemoryRecallLimits, Schema.Struct<{
|
|
60
|
+
readonly maxSources: Schema.Int;
|
|
61
|
+
readonly maxItems: Schema.Int;
|
|
62
|
+
readonly maxBytes: Schema.Int;
|
|
63
|
+
readonly maxTokens: Schema.Int;
|
|
64
|
+
/** Aggregate UTF-8 JSON passage input, including omitted/duplicate candidates. Defaults to 16 MiB. */
|
|
65
|
+
readonly maxInputBytes: Schema.optionalKey<Schema.Int>;
|
|
66
|
+
readonly timeoutMillis: Schema.Int;
|
|
67
|
+
}>, {}>;
|
|
68
|
+
/** Output bounds cover the complete rendered reference text, including citations and provenance. */
|
|
69
|
+
declare class MemoryRecallLimits extends MemoryRecallLimits_base {}
|
|
70
|
+
declare const MemoryRecallError_base: Schema.Class<MemoryRecallError, Schema.TaggedStruct<"MemoryRecallError", {
|
|
71
|
+
readonly reason: Schema.Literals<readonly ["invalid-input", "unavailable", "insufficient-freshness", "budget", "timeout"]>;
|
|
72
|
+
readonly sourceId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
73
|
+
readonly message: Schema.String;
|
|
74
|
+
}>, import("effect/Cause").YieldableError>;
|
|
75
|
+
/** A recall contract or essential-source requirement could not be satisfied. */
|
|
76
|
+
declare class MemoryRecallError extends MemoryRecallError_base {}
|
|
77
|
+
//#endregion
|
|
78
|
+
export { MemoryPassage as a, MemoryReference_d_exports as c, MemoryMetadata as i, MemorySourceReference as l, MemoryContent as n, MemoryRecallError as o, MemoryLookup as r, MemoryRecallLimits as s, MemoryAttribution as t };
|
|
79
|
+
//# sourceMappingURL=MemoryReference-B8Q3UJoJ.d.mts.map
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { 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 { Schema } from "effect";
|
|
5
|
+
//#region src/core/internal/message-status.d.ts
|
|
6
|
+
/** A retained outbound delivery identity, not a destination Receipt or access grant. */
|
|
7
|
+
declare const MessageRef: Schema.Struct<{
|
|
8
|
+
readonly ownerThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
9
|
+
readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
10
|
+
}>;
|
|
11
|
+
type MessageRef = typeof MessageRef.Type;
|
|
12
|
+
/**
|
|
13
|
+
* Source-owned delivery evidence. Pending confirms retention only; accepted supplies the
|
|
14
|
+
* destination Receipt, and processed supplies its canonical settlement. Neither retention nor
|
|
15
|
+
* acceptance proves execution. Refused is a definite rejection; parked stops automatic retry
|
|
16
|
+
* while retaining the same identity and any acceptance evidence. Inspect instead of resending.
|
|
17
|
+
*/
|
|
18
|
+
declare const MessageStatus: Schema.Union<readonly [Schema.Struct<{
|
|
19
|
+
readonly message: Schema.Struct<{
|
|
20
|
+
readonly ownerThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
21
|
+
readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
22
|
+
}>;
|
|
23
|
+
readonly status: Schema.Literal<"pending">;
|
|
24
|
+
readonly receipt: Schema.Null;
|
|
25
|
+
readonly settlement: Schema.Null;
|
|
26
|
+
readonly reason: Schema.NullOr<Schema.NonEmptyString>;
|
|
27
|
+
}>, Schema.Struct<{
|
|
28
|
+
readonly message: Schema.Struct<{
|
|
29
|
+
readonly ownerThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
30
|
+
readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
31
|
+
}>;
|
|
32
|
+
readonly status: Schema.Literal<"accepted">;
|
|
33
|
+
readonly receipt: typeof Receipt;
|
|
34
|
+
readonly settlement: Schema.Null;
|
|
35
|
+
readonly reason: Schema.NullOr<Schema.NonEmptyString>;
|
|
36
|
+
}>, Schema.Struct<{
|
|
37
|
+
readonly message: Schema.Struct<{
|
|
38
|
+
readonly ownerThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
39
|
+
readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
40
|
+
}>;
|
|
41
|
+
readonly status: Schema.Literal<"processed">;
|
|
42
|
+
readonly receipt: typeof Receipt;
|
|
43
|
+
readonly settlement: Schema.Struct<{
|
|
44
|
+
readonly settlementId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SettlementId">;
|
|
45
|
+
readonly outcome: Schema.Literals<readonly ["completed", "failed", "aborted"]>;
|
|
46
|
+
}>;
|
|
47
|
+
readonly reason: Schema.Null;
|
|
48
|
+
}>, Schema.Struct<{
|
|
49
|
+
readonly message: Schema.Struct<{
|
|
50
|
+
readonly ownerThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
51
|
+
readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
52
|
+
}>;
|
|
53
|
+
readonly status: Schema.Literal<"refused">;
|
|
54
|
+
readonly receipt: Schema.Null;
|
|
55
|
+
readonly settlement: Schema.Null;
|
|
56
|
+
readonly reason: Schema.NonEmptyString;
|
|
57
|
+
}>, Schema.Struct<{
|
|
58
|
+
readonly message: Schema.Struct<{
|
|
59
|
+
readonly ownerThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
60
|
+
readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
61
|
+
}>;
|
|
62
|
+
readonly status: Schema.Literal<"parked">;
|
|
63
|
+
readonly receipt: Schema.NullOr<typeof Receipt>;
|
|
64
|
+
readonly settlement: Schema.Null;
|
|
65
|
+
readonly reason: Schema.NonEmptyString;
|
|
66
|
+
}>]>;
|
|
67
|
+
type MessageStatus = typeof MessageStatus.Type;
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/core/Messaging.d.ts
|
|
70
|
+
/** Application-chosen fixed route name; it never authorizes a destination by itself. */
|
|
71
|
+
declare const PeerName: Schema.NonEmptyString;
|
|
72
|
+
type PeerName = typeof PeerName.Type;
|
|
73
|
+
declare const MessageAddress: Schema.Struct<{
|
|
74
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
75
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
76
|
+
}>;
|
|
77
|
+
type MessageAddress = typeof MessageAddress.Type;
|
|
78
|
+
/** Host-authenticated provenance stored separately from destination-owned application input. */
|
|
79
|
+
declare const MessageAdmission: Schema.Struct<{
|
|
80
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
81
|
+
readonly message: Schema.Struct<{
|
|
82
|
+
readonly ownerThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
83
|
+
readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
84
|
+
}>;
|
|
85
|
+
readonly peerName: Schema.NonEmptyString;
|
|
86
|
+
readonly sender: Schema.Struct<{
|
|
87
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
88
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
89
|
+
}>;
|
|
90
|
+
readonly returnAddress: Schema.Struct<{
|
|
91
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
92
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
93
|
+
}>;
|
|
94
|
+
readonly inReplyTo: Schema.optionalKey<Schema.Struct<{
|
|
95
|
+
readonly ownerThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
96
|
+
readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
97
|
+
}>>;
|
|
98
|
+
}>;
|
|
99
|
+
type MessageAdmission = typeof MessageAdmission.Type;
|
|
100
|
+
declare const InboxEntry: Schema.Struct<{
|
|
101
|
+
readonly sequence: Schema.Natural;
|
|
102
|
+
readonly admission: Schema.Struct<{
|
|
103
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
104
|
+
readonly message: Schema.Struct<{
|
|
105
|
+
readonly ownerThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
106
|
+
readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
107
|
+
}>;
|
|
108
|
+
readonly peerName: Schema.NonEmptyString;
|
|
109
|
+
readonly sender: Schema.Struct<{
|
|
110
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
111
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
112
|
+
}>;
|
|
113
|
+
readonly returnAddress: Schema.Struct<{
|
|
114
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
115
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
116
|
+
}>;
|
|
117
|
+
readonly inReplyTo: Schema.optionalKey<Schema.Struct<{
|
|
118
|
+
readonly ownerThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
119
|
+
readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
120
|
+
}>>;
|
|
121
|
+
}>;
|
|
122
|
+
}>;
|
|
123
|
+
type InboxEntry = typeof InboxEntry.Type;
|
|
124
|
+
declare const InboxPage: Schema.Struct<{
|
|
125
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
126
|
+
readonly sequence: Schema.Natural;
|
|
127
|
+
readonly admission: Schema.Struct<{
|
|
128
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
129
|
+
readonly message: Schema.Struct<{
|
|
130
|
+
readonly ownerThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
131
|
+
readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
132
|
+
}>;
|
|
133
|
+
readonly peerName: Schema.NonEmptyString;
|
|
134
|
+
readonly sender: Schema.Struct<{
|
|
135
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
136
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
137
|
+
}>;
|
|
138
|
+
readonly returnAddress: Schema.Struct<{
|
|
139
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
140
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
141
|
+
}>;
|
|
142
|
+
readonly inReplyTo: Schema.optionalKey<Schema.Struct<{
|
|
143
|
+
readonly ownerThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
144
|
+
readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
145
|
+
}>>;
|
|
146
|
+
}>;
|
|
147
|
+
}>>;
|
|
148
|
+
readonly next: Schema.NullOr<Schema.Natural>;
|
|
149
|
+
}>;
|
|
150
|
+
type InboxPage = typeof InboxPage.Type;
|
|
151
|
+
declare const MessagingError_base: Schema.Class<MessagingError, Schema.TaggedStruct<"MessagingError", {
|
|
152
|
+
readonly operation: Schema.Literals<readonly ["context", "send", "reply", "inbox", "inspect", "retry"]>;
|
|
153
|
+
readonly reason: Schema.Literals<readonly ["denied", "unavailable", "route-unavailable", "binding-mismatch", "invalid-input", "invalid-reference", "conflict", "capacity", "not-found", "storage", "corrupt"]>;
|
|
154
|
+
}>, import("effect/Cause").YieldableError>;
|
|
155
|
+
declare class MessagingError extends MessagingError_base {}
|
|
156
|
+
/** Canonical input provenance: peer input or a framework-owned completion message. */
|
|
157
|
+
declare const InputMessage: Schema.Union<readonly [Schema.Struct<{
|
|
158
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
159
|
+
readonly message: Schema.Struct<{
|
|
160
|
+
readonly ownerThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
161
|
+
readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
162
|
+
}>;
|
|
163
|
+
readonly peerName: Schema.NonEmptyString;
|
|
164
|
+
readonly sender: Schema.Struct<{
|
|
165
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
166
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
167
|
+
}>;
|
|
168
|
+
readonly returnAddress: Schema.Struct<{
|
|
169
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
170
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
171
|
+
}>;
|
|
172
|
+
readonly inReplyTo: Schema.optionalKey<Schema.Struct<{
|
|
173
|
+
readonly ownerThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
174
|
+
readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
175
|
+
}>>;
|
|
176
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
177
|
+
readonly _tag: Schema.Literal<"WorkerCompletion">;
|
|
178
|
+
readonly budgetExhausted: Schema.Boolean;
|
|
179
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
180
|
+
readonly report: Schema.Union<readonly [Schema.Struct<{
|
|
181
|
+
readonly _tag: Schema.Literal<"Settled">;
|
|
182
|
+
readonly worker: Schema.Struct<{
|
|
183
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
184
|
+
readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
|
|
185
|
+
readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
186
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
187
|
+
}>;
|
|
188
|
+
readonly receipt: typeof Receipt;
|
|
189
|
+
readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
|
|
190
|
+
readonly settlementId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SettlementId">;
|
|
191
|
+
readonly outcome: Schema.Literal<"completed">;
|
|
192
|
+
readonly result: Schema.Union<readonly [Schema.Codec<Schema.Json, Schema.Json, never, never>]>;
|
|
193
|
+
}>, Schema.Struct<{
|
|
194
|
+
readonly _tag: Schema.Literal<"Settled">;
|
|
195
|
+
readonly worker: Schema.Struct<{
|
|
196
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
197
|
+
readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
|
|
198
|
+
readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
199
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
200
|
+
}>;
|
|
201
|
+
readonly receipt: typeof Receipt;
|
|
202
|
+
readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
|
|
203
|
+
readonly settlementId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SettlementId">;
|
|
204
|
+
readonly outcome: Schema.Literals<readonly ["failed", "aborted"]>;
|
|
205
|
+
readonly failure: typeof SubagentExecutionFailure;
|
|
206
|
+
}>]>;
|
|
207
|
+
}>, Schema.Struct<{
|
|
208
|
+
readonly _tag: Schema.Literal<"WorkerUpdate">;
|
|
209
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
210
|
+
readonly worker: Schema.Struct<{
|
|
211
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
212
|
+
readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
|
|
213
|
+
readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
214
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
215
|
+
}>;
|
|
216
|
+
readonly update: typeof Update;
|
|
217
|
+
}>]>]>;
|
|
218
|
+
type InputMessage = typeof InputMessage.Type;
|
|
219
|
+
//#endregion
|
|
220
|
+
export { MessageAdmission as a, MessageRef as c, MessageAddress as i, MessageStatus as l, InboxPage as n, MessagingError as o, InputMessage as r, PeerName as s, InboxEntry as t };
|
|
221
|
+
//# sourceMappingURL=Messaging-Dkg87ebg.d.mts.map
|