effect-agent 0.1.0-beta.11 → 0.1.0-beta.111
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-DriBcXBN.d.mts +245 -0
- package/dist/AgentError-Bn1ytXRD.d.mts +117 -0
- package/dist/AgentPolicy-BqDoSXO6.d.mts +96 -0
- package/dist/AgentRuntime-CWkHuzyt.d.mts +346 -0
- package/dist/AgentRuntime-DLwPoEVH.mjs +4735 -0
- package/dist/AgentRuntime-DLwPoEVH.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-PyIgNYXF.mjs +6772 -0
- package/dist/DurableAgentRuntime-PyIgNYXF.mjs.map +1 -0
- package/dist/DurableFailpoint-mx3-nsxU.d.mts +41 -0
- package/dist/DurableStep-Cry_iol4.d.mts +103 -0
- package/dist/EventSource-BUYLmL77.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-DaZDlBqh.d.mts +1067 -0
- package/dist/Messaging-Dkg87ebg.d.mts +221 -0
- package/dist/MessagingHost-D89X7ma8.mjs +110 -0
- package/dist/MessagingHost-D89X7ma8.mjs.map +1 -0
- package/dist/MessagingHost-e1Sbzfao.d.mts +74 -0
- package/dist/OperationAuthorizer-TzcQtpX5.d.mts +61 -0
- package/dist/Output-CAFJTAbP.d.mts +25 -0
- package/dist/PageCapture-Df8Xwskw.d.mts +583 -0
- package/dist/PageScreenshot-BpgZKAxl.d.mts +48 -0
- package/dist/PreparedInputAdmission-J3YK6LAm.d.mts +42 -0
- package/dist/Receipt-BAHyigAF.d.mts +33 -0
- package/dist/Records-4qnRmniE.d.mts +4058 -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-BoESJrxw.d.mts +935 -0
- package/dist/RunPolicyUsage-ClZxyR46.d.mts +21 -0
- package/dist/Sandbox-CEsDWBLq.d.mts +173 -0
- package/dist/Schedule-C2lH2kxY.d.mts +847 -0
- package/dist/Scheduling-DPb2QyAK.mjs +691 -0
- package/dist/Scheduling-DPb2QyAK.mjs.map +1 -0
- package/dist/Subagent-D9eYdGTl.mjs +1537 -0
- package/dist/Subagent-D9eYdGTl.mjs.map +1 -0
- package/dist/Subagent-F72tuaxy.d.mts +1360 -0
- package/dist/SubagentContract-DdT7Cqe6.d.mts +116 -0
- package/dist/SubagentHost-CmiNTOBZ.d.mts +149 -0
- package/dist/Subscription-pQUv0QD6.d.mts +945 -0
- package/dist/SubscriptionInput-DdJOiNMY.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-Du9dhVnp.d.mts +279 -0
- package/dist/Worker-T_3RbaKc.mjs +210 -0
- package/dist/Worker-T_3RbaKc.mjs.map +1 -0
- package/dist/agent-registration-B5CI-Ygk.mjs +201 -0
- package/dist/agent-registration-B5CI-Ygk.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 +260 -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 +98 -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 +876 -0
- package/dist/durable/MessageDelivery.mjs +549 -0
- package/dist/durable/MessageDelivery.mjs.map +1 -0
- package/dist/durable/MessageDeliveryStoreConformance.d.mts +376 -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 +841 -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 +173 -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 +49 -0
- package/dist/durable/SqlThreadNativeReads.mjs +153 -0
- package/dist/durable/SqlThreadNativeReads.mjs.map +1 -0
- package/dist/durable/SubmissionLedger.d.mts +3 -0
- package/dist/durable/SubmissionLedger.mjs +918 -0
- package/dist/durable/SubmissionLedger.mjs.map +1 -0
- package/dist/durable/SubmissionLedgerConformance.d.mts +29 -0
- package/dist/durable/SubmissionLedgerConformance.mjs +1993 -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 +336 -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 +72 -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 +273 -0
- package/dist/sandbox/ProtectedBrowser.mjs +287 -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 +427 -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 +2488 -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 +1246 -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 +261 -0
- package/src/capabilities/internal/utf8.ts +10 -0
- package/src/core/Agent.ts +595 -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 +184 -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 +10950 -0
- package/src/durable/DurableFailpoint.ts +107 -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 +817 -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 +1065 -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 +321 -0
- package/src/durable/SqlStorageV2Upgrade.ts +500 -0
- package/src/durable/SqlSubscriptionStore.ts +1440 -0
- package/src/durable/SqlThreadNativeReads.ts +256 -0
- package/src/durable/SubmissionLedger.ts +1205 -0
- package/src/durable/SubmissionLedgerConformance.ts +4590 -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 +552 -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 +621 -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 +2678 -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 +193 -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 +10485 -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 +436 -0
- package/src/sandbox/Sandbox.ts +241 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { AiError } from "effect/unstable/ai";
|
|
3
|
+
declare namespace ToolResult_d_exports {
|
|
4
|
+
export { ToolParameterRejection, ToolResultBounds, TruncatedToolResult, UnserializableToolResult, applyToolResultBounds, unserializableToolResult };
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Engine-owned evidence that a fresh model call failed parameter validation.
|
|
8
|
+
* Retain the exact JSON arguments beside the native error so recovery can distinguish
|
|
9
|
+
* a rejected request from damaged executable parameters. This never authorizes execution.
|
|
10
|
+
*/
|
|
11
|
+
declare const ToolParameterRejection: Schema.Struct<{
|
|
12
|
+
readonly toolCallId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ToolCallId">;
|
|
13
|
+
readonly parameters: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
14
|
+
readonly error: Schema.toEncoded<Schema.Struct<{
|
|
15
|
+
readonly _tag: Schema.tag<"AiError">;
|
|
16
|
+
readonly module: Schema.String;
|
|
17
|
+
readonly method: Schema.String;
|
|
18
|
+
readonly reason: typeof AiError.ToolParameterValidationError;
|
|
19
|
+
}>>;
|
|
20
|
+
}>;
|
|
21
|
+
type ToolParameterRejection = typeof ToolParameterRejection.Type;
|
|
22
|
+
declare const ToolResultBounds_base: Schema.Class<ToolResultBounds, Schema.Struct<{
|
|
23
|
+
readonly maxBytes: Schema.Int;
|
|
24
|
+
}>, {}>;
|
|
25
|
+
/** Byte bound applied to one encoded application Tool result before it enters history. */
|
|
26
|
+
declare class ToolResultBounds extends ToolResultBounds_base {}
|
|
27
|
+
declare const TruncatedToolResult_base: Schema.Class<TruncatedToolResult, Schema.Struct<{
|
|
28
|
+
readonly truncatedToolResult: Schema.Literal<true>;
|
|
29
|
+
readonly originalBytes: Schema.Natural;
|
|
30
|
+
readonly head: Schema.String;
|
|
31
|
+
readonly tail: Schema.String;
|
|
32
|
+
}>, {}>;
|
|
33
|
+
/**
|
|
34
|
+
* Canonical envelope replacing an encoded Tool result that exceeded its
|
|
35
|
+
* policy bounds. `head` and `tail` are an exact prefix and suffix of the
|
|
36
|
+
* original encoded JSON text; the middle is dropped, never paraphrased.
|
|
37
|
+
*/
|
|
38
|
+
declare class TruncatedToolResult extends TruncatedToolResult_base {}
|
|
39
|
+
declare const UnserializableToolResult_base: Schema.Class<UnserializableToolResult, Schema.Struct<{
|
|
40
|
+
readonly unserializableToolResult: Schema.Literal<true>;
|
|
41
|
+
readonly reason: Schema.String;
|
|
42
|
+
}>, {}>;
|
|
43
|
+
/**
|
|
44
|
+
* Canonical fail-closed sentinel replacing an encoded Tool result that could
|
|
45
|
+
* not be JSON-serialized at all (cyclic value, BigInt, `undefined`, throwing
|
|
46
|
+
* `toJSON`). The original value never enters history or durable records —
|
|
47
|
+
* an unserializable value is unbounded by construction, so the bound seam
|
|
48
|
+
* replaces it wholesale rather than passing it through (runtime spec §9).
|
|
49
|
+
*/
|
|
50
|
+
declare class UnserializableToolResult extends UnserializableToolResult_base {}
|
|
51
|
+
/**
|
|
52
|
+
* Build the encoded sentinel for a serialization failure. Total by
|
|
53
|
+
* construction — the cause is untrusted (a hostile `toString` or an
|
|
54
|
+
* accessor-backed `Error.message` can itself throw on this last-resort
|
|
55
|
+
* path) — and byte-bound: the complete encoded sentinel stays within the
|
|
56
|
+
* 256-byte `ToolResultBounds` schema floor, so it fits every accepted
|
|
57
|
+
* policy without the caller re-applying bounds.
|
|
58
|
+
*/
|
|
59
|
+
declare const unserializableToolResult: (cause: unknown) => typeof UnserializableToolResult.Encoded;
|
|
60
|
+
/**
|
|
61
|
+
* Bound one encoded Tool result to `bounds.maxBytes` UTF-8 bytes.
|
|
62
|
+
*
|
|
63
|
+
* Within bounds the input is returned unchanged. Over bounds the result is
|
|
64
|
+
* the JSON-encoded `TruncatedToolResult` envelope preserving an exact prefix
|
|
65
|
+
* and suffix of the input, split ~50/50 across the byte budget left after
|
|
66
|
+
* the envelope's own overhead and shrunk deterministically until the encoded
|
|
67
|
+
* envelope itself fits. Slicing never splits a UTF-16 surrogate pair, so the
|
|
68
|
+
* envelope always re-encodes as valid JSON.
|
|
69
|
+
*
|
|
70
|
+
* The Schema-level 256-byte floor on `ToolResultBounds.maxBytes` guarantees
|
|
71
|
+
* every accepted bound fits the minimal envelope (at most 81 bytes), so the
|
|
72
|
+
* returned value never exceeds `maxBytes` for a decodable bound. The
|
|
73
|
+
* minimal-envelope fallback below survives purely as defense in depth.
|
|
74
|
+
*/
|
|
75
|
+
declare const applyToolResultBounds: (encodedJson: string, bounds: ToolResultBounds) => string;
|
|
76
|
+
//#endregion
|
|
77
|
+
export { UnserializableToolResult as a, TruncatedToolResult as i, ToolResultBounds as n, applyToolResultBounds as o, ToolResult_d_exports as r, unserializableToolResult as s, ToolParameterRejection as t };
|
|
78
|
+
//# sourceMappingURL=ToolResult-BKdqWRff.d.mts.map
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { Effect, Schema } from "effect";
|
|
2
|
+
declare namespace Usage_d_exports {
|
|
3
|
+
export { ChildRunUsage, InputTokenUsage, ModelCallUsage, ModelResponseIdentity, ModelUsageGroup, OutputTokenUsage, RunTotals, RunUsageReport, RunUsageSummary, UsageAggregationError, UsageCompleteness, emptyRunTotals, runTotalsFromSummary, sumRunTotals, summarizeModelUsage, unknownRunTotals };
|
|
4
|
+
}
|
|
5
|
+
declare const ModelResponseIdentity_base: Schema.Class<ModelResponseIdentity, Schema.Struct<{
|
|
6
|
+
readonly id: Schema.optionalKey<Schema.NonEmptyString>;
|
|
7
|
+
readonly model: Schema.optionalKey<Schema.NonEmptyString>;
|
|
8
|
+
}>, {}>;
|
|
9
|
+
/** Bounded provider response identity. Request configuration is not response evidence. */
|
|
10
|
+
declare class ModelResponseIdentity extends ModelResponseIdentity_base {}
|
|
11
|
+
/** Missing legacy status means unknown, never a free call or a complete report. */
|
|
12
|
+
declare const UsageCompleteness: Schema.Literals<readonly ["complete", "partial", "unknown"]>;
|
|
13
|
+
declare const InputTokenUsage_base: Schema.Class<InputTokenUsage, Schema.Struct<{
|
|
14
|
+
readonly total: Schema.Natural;
|
|
15
|
+
readonly uncached: Schema.Natural;
|
|
16
|
+
readonly cacheRead: Schema.Natural;
|
|
17
|
+
readonly cacheWrite: Schema.Natural;
|
|
18
|
+
}>, {}>;
|
|
19
|
+
/** Provider-reported input-token components for one completed model call. */
|
|
20
|
+
declare class InputTokenUsage extends InputTokenUsage_base {}
|
|
21
|
+
declare const OutputTokenUsage_base: Schema.Class<OutputTokenUsage, Schema.Struct<{
|
|
22
|
+
readonly total: Schema.Natural;
|
|
23
|
+
readonly text: Schema.Natural;
|
|
24
|
+
readonly reasoning: Schema.Natural;
|
|
25
|
+
}>, {}>;
|
|
26
|
+
/** Provider-reported output-token components for one completed model call. */
|
|
27
|
+
declare class OutputTokenUsage extends OutputTokenUsage_base {}
|
|
28
|
+
declare const ModelCallUsage_base: Schema.Class<ModelCallUsage, Schema.Struct<{
|
|
29
|
+
readonly provider: Schema.NonEmptyString;
|
|
30
|
+
/** Configured binding identity. See response.model for provider-reported identity. */
|
|
31
|
+
readonly model: Schema.NonEmptyString;
|
|
32
|
+
readonly serviceTier: Schema.optionalKey<Schema.NonEmptyString>;
|
|
33
|
+
readonly pricingVersion: Schema.optionalKey<Schema.NonEmptyString>;
|
|
34
|
+
readonly response: Schema.optionalKey<typeof ModelResponseIdentity>;
|
|
35
|
+
readonly purpose: Schema.optionalKey<Schema.Literals<readonly ["turn", "summary"]>>;
|
|
36
|
+
readonly usageStatus: Schema.optionalKey<Schema.Literals<readonly ["complete", "partial", "unknown"]>>;
|
|
37
|
+
readonly pricingStatus: Schema.optionalKey<Schema.Literals<readonly ["estimated", "unknown"]>>;
|
|
38
|
+
readonly inputTokens: typeof InputTokenUsage;
|
|
39
|
+
readonly outputTokens: typeof OutputTokenUsage;
|
|
40
|
+
readonly costMicrousd: Schema.Natural;
|
|
41
|
+
}>, {}>;
|
|
42
|
+
/** Canonical, provider-independent accounting for one completed model call. */
|
|
43
|
+
declare class ModelCallUsage extends ModelCallUsage_base {}
|
|
44
|
+
declare const RunTotals_base: Schema.Class<RunTotals, Schema.Struct<{
|
|
45
|
+
readonly modelCalls: Schema.Natural;
|
|
46
|
+
readonly inputTokens: Schema.Natural;
|
|
47
|
+
readonly outputTokens: Schema.Natural;
|
|
48
|
+
readonly costMicrousd: Schema.Natural;
|
|
49
|
+
readonly usageStatus: Schema.optionalKey<Schema.Literals<readonly ["complete", "partial", "unknown"]>>;
|
|
50
|
+
readonly pricingStatus: Schema.optionalKey<Schema.Literals<readonly ["complete", "partial", "unknown"]>>;
|
|
51
|
+
readonly unobservedModelCalls: Schema.optionalKey<Schema.Natural>;
|
|
52
|
+
}>, {}>;
|
|
53
|
+
/**
|
|
54
|
+
* Observed model usage and estimated cost, without per-model attribution.
|
|
55
|
+
* Numeric zero with unknown coverage never establishes free execution. Missing legacy
|
|
56
|
+
* statuses mean unknown. Unobserved calls are excluded from the numeric call/token totals.
|
|
57
|
+
*/
|
|
58
|
+
declare class RunTotals extends RunTotals_base {}
|
|
59
|
+
declare const RunUsageReport_base: Schema.Class<RunUsageReport, Schema.Struct<{
|
|
60
|
+
readonly usage: typeof RunTotals;
|
|
61
|
+
readonly delegatedUsage: typeof RunTotals;
|
|
62
|
+
}>, {}>;
|
|
63
|
+
/** Own Run usage and disjoint attached-descendant usage. Add each component once. */
|
|
64
|
+
declare class RunUsageReport extends RunUsageReport_base {}
|
|
65
|
+
declare const ChildRunUsage_base: Schema.Class<ChildRunUsage, Schema.Struct<{
|
|
66
|
+
readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
|
|
67
|
+
readonly report: typeof RunUsageReport;
|
|
68
|
+
}>, {}>;
|
|
69
|
+
/** A verified child report retained across durable parent Attempts. */
|
|
70
|
+
declare class ChildRunUsage extends ChildRunUsage_base {}
|
|
71
|
+
/** Known absence of observed work. */
|
|
72
|
+
declare const emptyRunTotals: () => RunTotals;
|
|
73
|
+
/** No accounting evidence, including legacy child reports. This is not known zero spend. */
|
|
74
|
+
declare const unknownRunTotals: () => RunTotals;
|
|
75
|
+
declare const ModelUsageGroup_base: Schema.Class<ModelUsageGroup, Schema.Struct<{
|
|
76
|
+
readonly provider: Schema.NonEmptyString;
|
|
77
|
+
readonly model: Schema.NonEmptyString;
|
|
78
|
+
/** Actual returned model; absent when only the configured binding is known. */
|
|
79
|
+
readonly responseModel: Schema.optionalKey<Schema.NonEmptyString>;
|
|
80
|
+
readonly serviceTier: Schema.optionalKey<Schema.NonEmptyString>;
|
|
81
|
+
readonly pricingVersion: Schema.optionalKey<Schema.NonEmptyString>;
|
|
82
|
+
readonly modelCalls: Schema.Natural;
|
|
83
|
+
readonly inputTokens: typeof InputTokenUsage;
|
|
84
|
+
readonly outputTokens: typeof OutputTokenUsage;
|
|
85
|
+
readonly costMicrousd: Schema.Natural;
|
|
86
|
+
}>, {}>;
|
|
87
|
+
/** Settlement-sized aggregate for calls sharing one pricing identity. */
|
|
88
|
+
declare class ModelUsageGroup extends ModelUsageGroup_base {}
|
|
89
|
+
declare const RunUsageSummary_base: Schema.Class<RunUsageSummary, Schema.Struct<{
|
|
90
|
+
readonly modelCalls: Schema.Natural;
|
|
91
|
+
readonly inputTokens: typeof InputTokenUsage;
|
|
92
|
+
readonly outputTokens: typeof OutputTokenUsage;
|
|
93
|
+
readonly costMicrousd: Schema.Natural;
|
|
94
|
+
readonly byModel: Schema.$Array<typeof ModelUsageGroup>;
|
|
95
|
+
/** Coverage of recorded calls only; interruptions can make the Run less complete. */
|
|
96
|
+
readonly usageStatus: Schema.optionalKey<Schema.Literals<readonly ["complete", "partial", "unknown"]>>;
|
|
97
|
+
readonly pricingStatus: Schema.optionalKey<Schema.Literals<readonly ["complete", "partial", "unknown"]>>;
|
|
98
|
+
/** Observed invocations without retained accounting, excluded from numeric call/token totals. */
|
|
99
|
+
readonly unobservedModelCalls: Schema.optionalKey<Schema.Natural>;
|
|
100
|
+
}>, {}>;
|
|
101
|
+
/** Settlement aggregate included with a terminal Run settlement. */
|
|
102
|
+
declare class RunUsageSummary extends RunUsageSummary_base {}
|
|
103
|
+
declare const UsageAggregationError_base: Schema.Class<UsageAggregationError, Schema.TaggedStruct<"UsageAggregationError", {
|
|
104
|
+
readonly field: Schema.NonEmptyString;
|
|
105
|
+
readonly message: Schema.String;
|
|
106
|
+
}>, import("effect/Cause").YieldableError>;
|
|
107
|
+
/** Canonical usage could not be aggregated without exceeding safe-integer accounting. */
|
|
108
|
+
declare class UsageAggregationError extends UsageAggregationError_base {}
|
|
109
|
+
/** Combine disjoint totals, retaining uncertainty and rejecting numeric overflow. */
|
|
110
|
+
declare const sumRunTotals: (contributions: readonly RunTotals[]) => Effect.Effect<RunTotals, UsageAggregationError, never>;
|
|
111
|
+
/** Flatten a canonical settlement summary without discarding its coverage markers. */
|
|
112
|
+
declare const runTotalsFromSummary: (summary: RunUsageSummary) => RunTotals;
|
|
113
|
+
/**
|
|
114
|
+
* Deterministically aggregate canonical per-call usage without making cached tokens free.
|
|
115
|
+
* A validated seed retains earlier call totals and pricing groups without retaining those calls.
|
|
116
|
+
* Empty contributions do not change completeness; the seed is never mutated.
|
|
117
|
+
*/
|
|
118
|
+
declare const summarizeModelUsage: (calls: readonly ModelCallUsage[], seed?: RunUsageSummary | undefined) => Effect.Effect<RunUsageSummary, UsageAggregationError, never>;
|
|
119
|
+
//#endregion
|
|
120
|
+
export { unknownRunTotals as _, ModelUsageGroup as a, RunUsageReport as c, UsageCompleteness as d, Usage_d_exports as f, summarizeModelUsage as g, sumRunTotals as h, ModelResponseIdentity as i, RunUsageSummary as l, runTotalsFromSummary as m, InputTokenUsage as n, OutputTokenUsage as o, emptyRunTotals as p, ModelCallUsage as r, RunTotals as s, ChildRunUsage as t, UsageAggregationError as u };
|
|
121
|
+
//# sourceMappingURL=Usage-Dx0aknfk.d.mts.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { u as ThreadId } from "./Identifiers-CN2s30fF.mjs";
|
|
2
|
+
import { Context, Effect, Layer, Scope, Stream } from "effect";
|
|
3
|
+
declare namespace WakeScheduler_d_exports {
|
|
4
|
+
export { WakeScheduler, WakeSubscriptionHub, makeWakeSubscriptionHub };
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Incarnation-local, thread-keyed wake registrations. A registration is installed before
|
|
8
|
+
* its returned Effect can be awaited, which lets a caller subscribe, check durable authority,
|
|
9
|
+
* and then park without a lost-wakeup window.
|
|
10
|
+
*/
|
|
11
|
+
interface WakeSubscriptionHub {
|
|
12
|
+
/** Register one Scope-owned waiter and return its one-shot wake Effect. */
|
|
13
|
+
readonly subscribe: (threadId: ThreadId) => Effect.Effect<Effect.Effect<void>, never, Scope.Scope>;
|
|
14
|
+
/** Wake every currently registered waiter for exactly this Thread. */
|
|
15
|
+
readonly notify: (threadId: ThreadId) => Effect.Effect<void>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Build the shared per-incarnation registration primitive used by host WakeSchedulers. The hub
|
|
19
|
+
* contains hints only: eviction may discard it, while a reconnecting caller re-subscribes and
|
|
20
|
+
* rechecks canonical storage. Scope finalizers remove cancelled waiters, and notify broadcasts
|
|
21
|
+
* instead of consuming a signal that belongs to another waiter.
|
|
22
|
+
*/
|
|
23
|
+
declare const makeWakeSubscriptionHub: Effect.Effect<WakeSubscriptionHub>;
|
|
24
|
+
declare const WakeScheduler_base: Context.ServiceClass<WakeScheduler, "@effect-agent/thread/WakeScheduler", {
|
|
25
|
+
/** Best-effort hint that `threadId` may have claimable or settled work. Never fails. */
|
|
26
|
+
readonly notify: (threadId: ThreadId) => Effect.Effect<void>;
|
|
27
|
+
/** Scope-owned one-shot registration for exactly one Thread. */
|
|
28
|
+
readonly subscribe: (threadId: ThreadId) => Effect.Effect<Effect.Effect<void>, never, Scope.Scope>;
|
|
29
|
+
/** Scope-owned subscription to wake hints, starting at subscription time. */
|
|
30
|
+
readonly wakes: Stream.Stream<ThreadId>;
|
|
31
|
+
}>;
|
|
32
|
+
/**
|
|
33
|
+
* Liveness hint channel for durable schedulers. `notify` announces that a Thread lane may
|
|
34
|
+
* have claimable, canonical, or settled work; `wakes` is the all-lanes subscription surface for
|
|
35
|
+
* workers, while `subscribe` installs an efficient one-Thread wait registration.
|
|
36
|
+
*
|
|
37
|
+
* Correctness must NEVER depend on delivery: notifications may be dropped, coalesced, duplicated,
|
|
38
|
+
* or observed by no subscriber (a notify before any subscription is simply lost). Every consumer
|
|
39
|
+
* must pair a wake with durable authority: workers use periodic SubmissionLedger scans, while a
|
|
40
|
+
* public progress waiter subscribes before its canonical read and reconnects/rechecks after an
|
|
41
|
+
* incarnation loss (persistence §14).
|
|
42
|
+
*
|
|
43
|
+
* Each run of `wakes` creates its own subscription whose resources live in that run's Scope and
|
|
44
|
+
* are released when the consuming stream ends or is interrupted. Implementations must not spawn
|
|
45
|
+
* daemon fibers.
|
|
46
|
+
*/
|
|
47
|
+
declare class WakeScheduler extends WakeScheduler_base {
|
|
48
|
+
/**
|
|
49
|
+
* Discards every notification and never wakes anyone. Valid because WakeScheduler is only a
|
|
50
|
+
* liveness hint: consumers relying on ledger scans stay correct, merely slower.
|
|
51
|
+
*/
|
|
52
|
+
static readonly layerNoop: Layer.Layer<WakeScheduler>;
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
export { makeWakeSubscriptionHub as i, WakeScheduler_d_exports as n, WakeSubscriptionHub as r, WakeScheduler as t };
|
|
56
|
+
//# sourceMappingURL=WakeScheduler-EjUF-GhC.d.mts.map
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import { l as SubagentGrant, p as WorkerOperationTool, 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 { a as FailureDiagnostic_d_exports, r as Diagnostic } from "./FailureDiagnostic-CaAkzGHL.mjs";
|
|
5
|
+
import { t as AgentPolicy } from "./AgentPolicy-BqDoSXO6.mjs";
|
|
6
|
+
import { Schema } from "effect";
|
|
7
|
+
declare namespace Worker_d_exports {
|
|
8
|
+
export { FrameworkMessage, WorkerBudgetScope, WorkerCompletion, WorkerContext, WorkerError, WorkerHistoryEntry, WorkerOperationTool, WorkerPage, WorkerRef, WorkerReport, WorkerSource, WorkerStarted, WorkerSummary, WorkerUpdate };
|
|
9
|
+
}
|
|
10
|
+
/** A reusable child Thread, correlated with its declaration. This value grants no authority. */
|
|
11
|
+
declare const WorkerRef: Schema.Struct<{
|
|
12
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
13
|
+
readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
|
|
14
|
+
readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
15
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
16
|
+
}>;
|
|
17
|
+
type WorkerRef = typeof WorkerRef.Type;
|
|
18
|
+
/** A continuing worker identity and retained first delivery, never an execution handle. */
|
|
19
|
+
declare const WorkerStarted: Schema.Struct<{
|
|
20
|
+
readonly worker: Schema.Struct<{
|
|
21
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
22
|
+
readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
|
|
23
|
+
readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
24
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
25
|
+
}>;
|
|
26
|
+
readonly delivery: Schema.Union<readonly [Schema.Struct<{
|
|
27
|
+
readonly message: Schema.Struct<{
|
|
28
|
+
readonly ownerThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
29
|
+
readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
30
|
+
}>;
|
|
31
|
+
readonly status: Schema.Literal<"pending">;
|
|
32
|
+
readonly receipt: Schema.Null;
|
|
33
|
+
readonly settlement: Schema.Null;
|
|
34
|
+
readonly reason: Schema.NullOr<Schema.NonEmptyString>;
|
|
35
|
+
}>, Schema.Struct<{
|
|
36
|
+
readonly message: Schema.Struct<{
|
|
37
|
+
readonly ownerThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
38
|
+
readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
39
|
+
}>;
|
|
40
|
+
readonly status: Schema.Literal<"accepted">;
|
|
41
|
+
readonly receipt: typeof Receipt;
|
|
42
|
+
readonly settlement: Schema.Null;
|
|
43
|
+
readonly reason: Schema.NullOr<Schema.NonEmptyString>;
|
|
44
|
+
}>, Schema.Struct<{
|
|
45
|
+
readonly message: Schema.Struct<{
|
|
46
|
+
readonly ownerThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
47
|
+
readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
48
|
+
}>;
|
|
49
|
+
readonly status: Schema.Literal<"processed">;
|
|
50
|
+
readonly receipt: typeof Receipt;
|
|
51
|
+
readonly settlement: Schema.Struct<{
|
|
52
|
+
readonly settlementId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SettlementId">;
|
|
53
|
+
readonly outcome: Schema.Literals<readonly ["completed", "failed", "aborted"]>;
|
|
54
|
+
}>;
|
|
55
|
+
readonly reason: Schema.Null;
|
|
56
|
+
}>, Schema.Struct<{
|
|
57
|
+
readonly message: Schema.Struct<{
|
|
58
|
+
readonly ownerThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
59
|
+
readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
60
|
+
}>;
|
|
61
|
+
readonly status: Schema.Literal<"refused">;
|
|
62
|
+
readonly receipt: Schema.Null;
|
|
63
|
+
readonly settlement: Schema.Null;
|
|
64
|
+
readonly reason: Schema.NonEmptyString;
|
|
65
|
+
}>, Schema.Struct<{
|
|
66
|
+
readonly message: Schema.Struct<{
|
|
67
|
+
readonly ownerThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
68
|
+
readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
69
|
+
}>;
|
|
70
|
+
readonly status: Schema.Literal<"parked">;
|
|
71
|
+
readonly receipt: Schema.NullOr<typeof Receipt>;
|
|
72
|
+
readonly settlement: Schema.Null;
|
|
73
|
+
readonly reason: Schema.NonEmptyString;
|
|
74
|
+
}>]>;
|
|
75
|
+
}>;
|
|
76
|
+
type WorkerStarted = typeof WorkerStarted.Type;
|
|
77
|
+
/** A host-authorized Run allowance is independent of the immutable delegation lineage. */
|
|
78
|
+
declare const WorkerBudgetScope: Schema.Literals<readonly ["source-subtree", "worker-run"]>;
|
|
79
|
+
type WorkerBudgetScope = typeof WorkerBudgetScope.Type;
|
|
80
|
+
/** Host-bound caller metadata. Programmatic calls never fabricate Run or Tool Call identities. */
|
|
81
|
+
declare const WorkerSource: Schema.Union<readonly [Schema.Struct<{
|
|
82
|
+
readonly _tag: Schema.Literal<"tool">;
|
|
83
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
84
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
85
|
+
readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
|
|
86
|
+
readonly toolCallId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ToolCallId">;
|
|
87
|
+
}>, Schema.Struct<{
|
|
88
|
+
readonly _tag: Schema.Literal<"programmatic">;
|
|
89
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
90
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
91
|
+
}>]>;
|
|
92
|
+
type WorkerSource = typeof WorkerSource.Type;
|
|
93
|
+
/** The caller's effective policy and root-relative depth, resolved by its host. */
|
|
94
|
+
declare const WorkerContext: Schema.Struct<{
|
|
95
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
96
|
+
readonly _tag: Schema.Literal<"tool">;
|
|
97
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
98
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
99
|
+
readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
|
|
100
|
+
readonly toolCallId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ToolCallId">;
|
|
101
|
+
}>, Schema.Struct<{
|
|
102
|
+
readonly _tag: Schema.Literal<"programmatic">;
|
|
103
|
+
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
104
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
105
|
+
}>]>;
|
|
106
|
+
readonly policy: typeof AgentPolicy;
|
|
107
|
+
readonly depth: Schema.Natural;
|
|
108
|
+
readonly grant: Schema.optionalKey<typeof SubagentGrant>;
|
|
109
|
+
}>;
|
|
110
|
+
type WorkerContext = typeof WorkerContext.Type;
|
|
111
|
+
/** Bounded durable listing data; a latest Receipt never substitutes for a requested Receipt. */
|
|
112
|
+
declare const WorkerSummary: Schema.Struct<{
|
|
113
|
+
readonly worker: Schema.Struct<{
|
|
114
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
115
|
+
readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
|
|
116
|
+
readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
117
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
118
|
+
}>;
|
|
119
|
+
readonly latestReceipt: Schema.NullOr<typeof Receipt>;
|
|
120
|
+
readonly state: Schema.Literals<readonly ["starting", "active", "idle"]>;
|
|
121
|
+
}>;
|
|
122
|
+
type WorkerSummary = typeof WorkerSummary.Type;
|
|
123
|
+
declare const WorkerPage: Schema.Struct<{
|
|
124
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
125
|
+
readonly worker: Schema.Struct<{
|
|
126
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
127
|
+
readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
|
|
128
|
+
readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
129
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
130
|
+
}>;
|
|
131
|
+
readonly latestReceipt: Schema.NullOr<typeof Receipt>;
|
|
132
|
+
readonly state: Schema.Literals<readonly ["starting", "active", "idle"]>;
|
|
133
|
+
}>>;
|
|
134
|
+
readonly next: Schema.NullOr<Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">>;
|
|
135
|
+
}>;
|
|
136
|
+
type WorkerPage = typeof WorkerPage.Type;
|
|
137
|
+
/** Authorized canonical history, encoded independently of storage-adapter representations. */
|
|
138
|
+
declare const WorkerHistoryEntry: Schema.Struct<{
|
|
139
|
+
readonly sequence: Schema.Natural;
|
|
140
|
+
readonly recordId: Schema.NonEmptyString;
|
|
141
|
+
readonly record: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
142
|
+
}>;
|
|
143
|
+
type WorkerHistoryEntry = typeof WorkerHistoryEntry.Type;
|
|
144
|
+
declare const WorkerError_base: Schema.Class<WorkerError, Schema.TaggedStruct<"WorkerError", {
|
|
145
|
+
readonly cause: Schema.optionalKey<Schema.decodeTo<Schema.Unknown, Schema.Codec<Diagnostic, Diagnostic, never, never>, never, never>>;
|
|
146
|
+
readonly stack: Schema.optionalKey<Schema.String>;
|
|
147
|
+
/** Concurrency pressure may clear without changing the request. */
|
|
148
|
+
readonly retryable: Schema.optionalKey<Schema.Literal<true>>;
|
|
149
|
+
readonly operation: Schema.Literals<readonly ["context", "start", "followUp", "inspect", "observe", "await", "list", "cancel"]>;
|
|
150
|
+
readonly reason: Schema.Literals<readonly ["denied", "declaration-unavailable", "worker-mismatch", "receipt-mismatch", "message-mismatch", "idempotency-conflict", "capacity", "not-found", "delivery-pending", "storage", "corrupt", "unavailable"]>;
|
|
151
|
+
}>, import("effect/Cause").YieldableError>;
|
|
152
|
+
/**
|
|
153
|
+
* Closed host-boundary failures. Original causes stay private and survive diagnostic transport.
|
|
154
|
+
* Retained delivery states are successful MessageStatus values, including pending and refused.
|
|
155
|
+
* After a storage failure, keep the same idempotency key and parameters when reconciling.
|
|
156
|
+
*/
|
|
157
|
+
declare class WorkerError extends WorkerError_base {}
|
|
158
|
+
/** One projected canonical Run outcome. Joined receipts share this identity. */
|
|
159
|
+
declare const WorkerReport: <Success extends Schema.Top>(success: Success) => Schema.Union<readonly [Schema.Struct<{
|
|
160
|
+
readonly _tag: Schema.Literal<"Settled">;
|
|
161
|
+
readonly worker: Schema.Struct<{
|
|
162
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
163
|
+
readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
|
|
164
|
+
readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
165
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
166
|
+
}>;
|
|
167
|
+
readonly receipt: typeof Receipt;
|
|
168
|
+
readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
|
|
169
|
+
readonly settlementId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SettlementId">;
|
|
170
|
+
readonly outcome: Schema.Literal<"completed">;
|
|
171
|
+
readonly result: Schema.Union<readonly [Success]>;
|
|
172
|
+
}>, Schema.Struct<{
|
|
173
|
+
readonly _tag: Schema.Literal<"Settled">;
|
|
174
|
+
readonly worker: Schema.Struct<{
|
|
175
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
176
|
+
readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
|
|
177
|
+
readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
178
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
179
|
+
}>;
|
|
180
|
+
readonly receipt: typeof Receipt;
|
|
181
|
+
readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
|
|
182
|
+
readonly settlementId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SettlementId">;
|
|
183
|
+
readonly outcome: Schema.Literals<readonly ["failed", "aborted"]>;
|
|
184
|
+
readonly failure: typeof SubagentExecutionFailure;
|
|
185
|
+
}>]>;
|
|
186
|
+
type WorkerReport<Success extends Schema.Top> = ReturnType<typeof WorkerReport<Success>>["Type"];
|
|
187
|
+
/** Framework message stored separately from the parent's application input. */
|
|
188
|
+
declare const WorkerCompletion: Schema.Struct<{
|
|
189
|
+
readonly _tag: Schema.Literal<"WorkerCompletion">;
|
|
190
|
+
readonly budgetExhausted: Schema.Boolean;
|
|
191
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
192
|
+
readonly report: Schema.Union<readonly [Schema.Struct<{
|
|
193
|
+
readonly _tag: Schema.Literal<"Settled">;
|
|
194
|
+
readonly worker: Schema.Struct<{
|
|
195
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
196
|
+
readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
|
|
197
|
+
readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
198
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
199
|
+
}>;
|
|
200
|
+
readonly receipt: typeof Receipt;
|
|
201
|
+
readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
|
|
202
|
+
readonly settlementId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SettlementId">;
|
|
203
|
+
readonly outcome: Schema.Literal<"completed">;
|
|
204
|
+
readonly result: Schema.Union<readonly [Schema.Codec<Schema.Json, Schema.Json, never, never>]>;
|
|
205
|
+
}>, Schema.Struct<{
|
|
206
|
+
readonly _tag: Schema.Literal<"Settled">;
|
|
207
|
+
readonly worker: Schema.Struct<{
|
|
208
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
209
|
+
readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
|
|
210
|
+
readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
211
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
212
|
+
}>;
|
|
213
|
+
readonly receipt: typeof Receipt;
|
|
214
|
+
readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
|
|
215
|
+
readonly settlementId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SettlementId">;
|
|
216
|
+
readonly outcome: Schema.Literals<readonly ["failed", "aborted"]>;
|
|
217
|
+
readonly failure: typeof SubagentExecutionFailure;
|
|
218
|
+
}>]>;
|
|
219
|
+
}>;
|
|
220
|
+
type WorkerCompletion = typeof WorkerCompletion.Type;
|
|
221
|
+
/** Source-worker intermediate output, kept separate from application input. */
|
|
222
|
+
declare const WorkerUpdate: Schema.Struct<{
|
|
223
|
+
readonly _tag: Schema.Literal<"WorkerUpdate">;
|
|
224
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
225
|
+
readonly worker: Schema.Struct<{
|
|
226
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
227
|
+
readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
|
|
228
|
+
readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
229
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
230
|
+
}>;
|
|
231
|
+
readonly update: typeof Update;
|
|
232
|
+
}>;
|
|
233
|
+
type WorkerUpdate = typeof WorkerUpdate.Type;
|
|
234
|
+
declare const FrameworkMessage: Schema.Union<readonly [Schema.Struct<{
|
|
235
|
+
readonly _tag: Schema.Literal<"WorkerCompletion">;
|
|
236
|
+
readonly budgetExhausted: Schema.Boolean;
|
|
237
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
238
|
+
readonly report: Schema.Union<readonly [Schema.Struct<{
|
|
239
|
+
readonly _tag: Schema.Literal<"Settled">;
|
|
240
|
+
readonly worker: Schema.Struct<{
|
|
241
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
242
|
+
readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
|
|
243
|
+
readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
244
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
245
|
+
}>;
|
|
246
|
+
readonly receipt: typeof Receipt;
|
|
247
|
+
readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
|
|
248
|
+
readonly settlementId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SettlementId">;
|
|
249
|
+
readonly outcome: Schema.Literal<"completed">;
|
|
250
|
+
readonly result: Schema.Union<readonly [Schema.Codec<Schema.Json, Schema.Json, never, never>]>;
|
|
251
|
+
}>, Schema.Struct<{
|
|
252
|
+
readonly _tag: Schema.Literal<"Settled">;
|
|
253
|
+
readonly worker: Schema.Struct<{
|
|
254
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
255
|
+
readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
|
|
256
|
+
readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
257
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
258
|
+
}>;
|
|
259
|
+
readonly receipt: typeof Receipt;
|
|
260
|
+
readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
|
|
261
|
+
readonly settlementId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SettlementId">;
|
|
262
|
+
readonly outcome: Schema.Literals<readonly ["failed", "aborted"]>;
|
|
263
|
+
readonly failure: typeof SubagentExecutionFailure;
|
|
264
|
+
}>]>;
|
|
265
|
+
}>, Schema.Struct<{
|
|
266
|
+
readonly _tag: Schema.Literal<"WorkerUpdate">;
|
|
267
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
268
|
+
readonly worker: Schema.Struct<{
|
|
269
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
270
|
+
readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
|
|
271
|
+
readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
272
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
273
|
+
}>;
|
|
274
|
+
readonly update: typeof Update;
|
|
275
|
+
}>]>;
|
|
276
|
+
type FrameworkMessage = typeof FrameworkMessage.Type;
|
|
277
|
+
//#endregion
|
|
278
|
+
export { WorkerError as a, WorkerRef as c, WorkerStarted as d, WorkerSummary as f, WorkerContext as i, WorkerReport as l, Worker_d_exports as m, WorkerBudgetScope as n, WorkerHistoryEntry as o, WorkerUpdate as p, WorkerCompletion as r, WorkerPage as s, FrameworkMessage as t, WorkerSource as u };
|
|
279
|
+
//# sourceMappingURL=Worker-Du9dhVnp.d.mts.map
|