effect-agent 0.1.0-beta.93 → 0.1.0-beta.94
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-RklVROrm.mjs → Agent-CG_VMrtA.mjs} +2 -2
- package/dist/{Agent-RklVROrm.mjs.map → Agent-CG_VMrtA.mjs.map} +1 -1
- package/dist/{Agent-CN0EWRsR.d.mts → Agent-CM6JubNX.d.mts} +2 -2
- package/dist/{AgentPolicy-CetmQrf3.d.mts → AgentPolicy-BqDoSXO6.d.mts} +2 -2
- package/dist/{AgentRuntime-BPjQM1Nv.mjs → AgentRuntime-Cdvqw7l_.mjs} +88 -32
- package/dist/AgentRuntime-Cdvqw7l_.mjs.map +1 -0
- package/dist/{AgentRuntime-uxR_a4VM.d.mts → AgentRuntime-CufqQ4JM.d.mts} +8 -8
- package/dist/{ContextCompactor-Dxu5zhOL.d.mts → ContextCompactor-WwSIG_Z2.d.mts} +2 -2
- package/dist/{DurableAgentRuntime-CdrBuKZY.mjs → DurableAgentRuntime-BaGsWDHO.mjs} +9 -5
- package/dist/DurableAgentRuntime-BaGsWDHO.mjs.map +1 -0
- package/dist/{EventSource-c6GRTCsl.d.mts → EventSource-DVfX1GRH.d.mts} +3 -3
- package/dist/{Messaging-CkcIdt4I.d.mts → Messaging-QMYhp297.d.mts} +3 -3
- package/dist/{MessagingHost-CRk0kXzT.d.mts → MessagingHost-gAxs5gme.d.mts} +3 -3
- package/dist/{Output-D6SkedVx.d.mts → Output-CjocJzsl.d.mts} +2 -2
- package/dist/{PreparedInputAdmission-QzFbW2LQ.d.mts → PreparedInputAdmission-DoWaMC2R.d.mts} +4 -4
- package/dist/{Records-vFp_ZQ9Y.d.mts → Records-B84j3Jq_.d.mts} +21 -9
- package/dist/{Records-C9cezOEf.mjs → Records-CsEsSW2o.mjs} +5 -2
- package/dist/Records-CsEsSW2o.mjs.map +1 -0
- package/dist/{RunJournal-lwbrh2hZ.mjs → RunJournal-yYpUlTOE.mjs} +3 -2
- package/dist/RunJournal-yYpUlTOE.mjs.map +1 -0
- package/dist/{RunOptions-g1aigcKI.d.mts → RunOptions-CE-G3niT.d.mts} +14 -8
- package/dist/{Schedule-BkZvKyMw.d.mts → Schedule-DCYBfhgT.d.mts} +2 -2
- package/dist/{Scheduling-D0QqOoeT.mjs → Scheduling-CUuYc3-D.mjs} +3 -3
- package/dist/{Scheduling-D0QqOoeT.mjs.map → Scheduling-CUuYc3-D.mjs.map} +1 -1
- package/dist/{Subagent-CnTzCy8k.mjs → Subagent-Cbfzylz1.mjs} +3 -3
- package/dist/{Subagent-CnTzCy8k.mjs.map → Subagent-Cbfzylz1.mjs.map} +1 -1
- package/dist/{Subagent-DyfzHNdv.d.mts → Subagent-DscbtbNY.d.mts} +6 -6
- package/dist/{SubagentHost-CJUBQlcc.d.mts → SubagentHost-DaFMZnVR.d.mts} +4 -4
- package/dist/{Subscription-CKQ0KDHN.d.mts → Subscription-C8IHdmFk.d.mts} +4 -4
- package/dist/{SubscriptionInput-Cth8F_7b.d.mts → SubscriptionInput-DhM3jUW2.d.mts} +3 -3
- package/dist/{ToolResult-DmmgoChv.d.mts → ToolResult-BKdqWRff.d.mts} +20 -3
- package/dist/{Worker-CaPYykpe.d.mts → Worker--j87JI__.d.mts} +2 -2
- package/dist/capabilities/Approval.mjs +1 -1
- package/dist/capabilities/Commands.d.mts +1 -1
- package/dist/capabilities/Messaging.d.mts +2 -2
- package/dist/capabilities/ModelContext.mjs +1 -1
- package/dist/capabilities/RunHooks.d.mts +1 -1
- package/dist/capabilities/Subagent.d.mts +2 -2
- package/dist/capabilities/Subagent.mjs +1 -1
- package/dist/capabilities/ToolDiscovery.d.mts +19 -4
- package/dist/capabilities/ToolDiscovery.mjs +33 -14
- package/dist/capabilities/ToolDiscovery.mjs.map +1 -1
- package/dist/core/Agent.d.mts +1 -1
- package/dist/core/Agent.mjs +1 -1
- package/dist/core/AgentPolicy.d.mts +1 -1
- package/dist/core/Thread.mjs +1 -1
- package/dist/core/ToolResult.d.mts +2 -2
- package/dist/core/ToolResult.mjs +17 -1
- package/dist/core/ToolResult.mjs.map +1 -1
- package/dist/core/Worker.d.mts +1 -1
- package/dist/core/Worker.mjs +1 -1
- package/dist/durable/ActivityStore.d.mts +1 -1
- package/dist/durable/ActivityStore.mjs +1 -1
- package/dist/durable/Admin.d.mts +1 -1
- package/dist/durable/Admin.mjs +1 -1
- package/dist/durable/AgentRegistration.d.mts +1 -1
- package/dist/durable/Certification.d.mts +1 -1
- package/dist/durable/CommittedActivity.d.mts +1 -1
- package/dist/durable/CommittedActivity.mjs +1 -1
- package/dist/durable/Digest.d.mts +1 -1
- package/dist/durable/Digest.mjs +1 -1
- package/dist/durable/DurableAgentRuntime.d.mts +1 -1
- package/dist/durable/DurableAgentRuntime.mjs +1 -1
- package/dist/durable/EventSource.d.mts +1 -1
- package/dist/durable/EventSource.mjs +1 -1
- package/dist/durable/GitHubWorkflowSource.d.mts +3 -3
- package/dist/durable/GitHubWorkflowSource.mjs +1 -1
- package/dist/durable/MessageDelivery.d.mts +23 -23
- package/dist/durable/MessageDelivery.mjs +1 -1
- package/dist/durable/MessageDeliveryStoreConformance.d.mts +40 -40
- package/dist/durable/MessageDeliveryStoreConformance.mjs +1 -1
- package/dist/durable/PersistentHistory.d.mts +1 -1
- package/dist/durable/PersistentHistory.mjs +2 -2
- package/dist/durable/PreparedInputAdmission.d.mts +1 -1
- package/dist/durable/Records.d.mts +1 -1
- package/dist/durable/Records.mjs +1 -1
- package/dist/durable/Recovery.d.mts +1 -1
- package/dist/durable/Recovery.mjs +1 -1
- package/dist/durable/RunJournal.d.mts +1 -1
- package/dist/durable/RunJournal.mjs +1 -1
- package/dist/durable/Schedule.d.mts +1 -1
- package/dist/durable/Schedule.mjs +1 -1
- package/dist/durable/ScheduleStoreConformance.d.mts +1 -1
- package/dist/durable/ScheduleStoreConformance.mjs +1 -1
- package/dist/durable/ScheduleTransition.d.mts +1 -1
- package/dist/durable/ScheduleTransition.mjs +1 -1
- package/dist/durable/Scheduling.d.mts +2 -2
- package/dist/durable/Scheduling.mjs +1 -1
- package/dist/durable/SqlStorageV2Upgrade.d.mts +2 -2
- package/dist/durable/SqlStorageV2Upgrade.mjs +1 -1
- package/dist/durable/SqlSubscriptionStore.d.mts +2 -2
- package/dist/durable/SqlSubscriptionStore.mjs +1 -1
- package/dist/durable/SubmissionLedger.d.mts +1 -1
- package/dist/durable/SubmissionLedger.mjs +1 -1
- package/dist/durable/SubmissionLedgerConformance.d.mts +1 -1
- package/dist/durable/SubmissionLedgerConformance.mjs +2 -2
- package/dist/durable/SubmissionStatus.d.mts +1 -1
- package/dist/durable/Subscription.d.mts +1 -1
- package/dist/durable/Subscription.mjs +1 -1
- package/dist/durable/SubscriptionInput.d.mts +1 -1
- package/dist/durable/SubscriptionInput.mjs +1 -1
- package/dist/durable/SubscriptionStoreConformance.d.mts +1 -1
- package/dist/durable/SubscriptionStoreConformance.mjs +1 -1
- package/dist/durable/SubscriptionTools.d.mts +3 -3
- package/dist/durable/SubscriptionTransition.d.mts +1 -1
- package/dist/durable/SubscriptionTransition.mjs +1 -1
- package/dist/durable/Subscriptions.d.mts +5 -5
- package/dist/durable/Subscriptions.mjs +2 -2
- package/dist/durable/ThreadContextHistory.d.mts +1 -1
- package/dist/durable/ThreadContextHistory.mjs +1 -1
- package/dist/durable/ThreadContextHistoryProjection.d.mts +1 -1
- package/dist/durable/ThreadContextHistoryProjection.mjs +1 -1
- package/dist/durable/ThreadInvariants.d.mts +1 -1
- package/dist/durable/ThreadInvariants.mjs +1 -1
- package/dist/durable/ThreadProjection.d.mts +1 -1
- package/dist/durable/ThreadProjection.mjs +1 -1
- package/dist/durable/ThreadProjectionMaintenance.d.mts +1 -1
- package/dist/durable/ThreadStore.d.mts +1 -1
- package/dist/durable/ThreadStore.mjs +1 -1
- package/dist/durable/ThreadStoreConformance.d.mts +1 -1
- package/dist/durable/ThreadStoreConformance.mjs +1 -1
- package/dist/durable/ToolReconciler.mjs +1 -1
- package/dist/durable/WorkerHost.d.mts +4 -4
- package/dist/engine/AgentRuntime.d.mts +1 -1
- package/dist/engine/AgentRuntime.mjs +1 -1
- package/dist/engine/Compaction.d.mts +1 -1
- package/dist/engine/ContextCompactor.d.mts +1 -1
- package/dist/engine/MessagingHost.d.mts +1 -1
- package/dist/engine/Output.d.mts +1 -1
- package/dist/engine/RunOptions.d.mts +1 -1
- package/dist/engine/RunOptions.mjs.map +1 -1
- package/dist/engine/SubagentHost.d.mts +1 -1
- package/dist/index.d.mts +18 -18
- package/dist/index.mjs +8 -8
- package/package.json +1 -1
- package/src/capabilities/ToolDiscovery.ts +48 -18
- package/src/core/ToolResult.ts +20 -0
- package/src/durable/DurableAgentRuntime.ts +7 -0
- package/src/durable/Records.ts +3 -0
- package/src/durable/RunJournal.ts +5 -0
- package/src/engine/RunOptions.ts +9 -3
- package/src/engine/internal/agent-runtime.ts +254 -67
- package/dist/AgentRuntime-BPjQM1Nv.mjs.map +0 -1
- package/dist/DurableAgentRuntime-CdrBuKZY.mjs.map +0 -1
- package/dist/Records-C9cezOEf.mjs.map +0 -1
- package/dist/RunJournal-lwbrh2hZ.mjs.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as WorkerReportPreparationFailure, i as SubagentHost, l as WorkerReporting, n as FollowUpWorkerRequest, o as WorkerObservation, r as StartWorkerRequest, s as WorkerReceiptRequest, t as BackgroundReporting, u as WorkerRunReport } from "../SubagentHost-
|
|
1
|
+
import { c as WorkerReportPreparationFailure, i as SubagentHost, l as WorkerReporting, n as FollowUpWorkerRequest, o as WorkerObservation, r as StartWorkerRequest, s as WorkerReceiptRequest, t as BackgroundReporting, u as WorkerRunReport } from "../SubagentHost-DaFMZnVR.mjs";
|
|
2
2
|
export { BackgroundReporting, FollowUpWorkerRequest, StartWorkerRequest, SubagentHost, WorkerObservation, WorkerReceiptRequest, WorkerReportPreparationFailure, WorkerReporting, WorkerRunReport };
|
package/dist/index.d.mts
CHANGED
|
@@ -17,16 +17,16 @@ import { D as Sandbox_d_exports } from "./Sandbox-CEsDWBLq.mjs";
|
|
|
17
17
|
import { t as CodeExecutor_d_exports } from "./sandbox/CodeExecutor.mjs";
|
|
18
18
|
import { t as CodeMode_d_exports } from "./capabilities/CodeMode.mjs";
|
|
19
19
|
import { i as AgentError_d_exports } from "./AgentError-CggcAQ7V.mjs";
|
|
20
|
-
import {
|
|
21
|
-
import { r as AgentPolicy_d_exports } from "./AgentPolicy-
|
|
22
|
-
import { t as Agent_d_exports } from "./Agent-
|
|
20
|
+
import { r as ToolResult_d_exports } from "./ToolResult-BKdqWRff.mjs";
|
|
21
|
+
import { r as AgentPolicy_d_exports } from "./AgentPolicy-BqDoSXO6.mjs";
|
|
22
|
+
import { t as Agent_d_exports } from "./Agent-CM6JubNX.mjs";
|
|
23
23
|
import { c as MemoryReference_d_exports } from "./MemoryReference-B8Q3UJoJ.mjs";
|
|
24
24
|
import { n as RunPolicyUsage_d_exports } from "./RunPolicyUsage-ClZxyR46.mjs";
|
|
25
|
-
import { m as Worker_d_exports } from "./Worker
|
|
25
|
+
import { m as Worker_d_exports } from "./Worker--j87JI__.mjs";
|
|
26
26
|
import { s as ContextWindow_d_exports } from "./ContextWindow-DRQ5Mbm2.mjs";
|
|
27
|
-
import { s as ContextCompactor_d_exports } from "./ContextCompactor-
|
|
27
|
+
import { s as ContextCompactor_d_exports } from "./ContextCompactor-WwSIG_Z2.mjs";
|
|
28
28
|
import { i as DurableStep_d_exports } from "./DurableStep-Cry_iol4.mjs";
|
|
29
|
-
import { F as RunOptions_d_exports } from "./RunOptions-
|
|
29
|
+
import { F as RunOptions_d_exports } from "./RunOptions-CE-G3niT.mjs";
|
|
30
30
|
import { t as Commands_d_exports } from "./capabilities/Commands.mjs";
|
|
31
31
|
import { t as ContextHistory_d_exports } from "./engine/ContextHistory.mjs";
|
|
32
32
|
import { t as ContextTools_d_exports } from "./capabilities/ContextTools.mjs";
|
|
@@ -35,8 +35,8 @@ import { t as McpClient_d_exports } from "./capabilities/McpClient.mjs";
|
|
|
35
35
|
import { i as MemoryNamespace_d_exports } from "./MemoryNamespace-BbRW5p71.mjs";
|
|
36
36
|
import { t as MemoryStore_d_exports } from "./core/MemoryStore.mjs";
|
|
37
37
|
import { t as MemoryNotes_d_exports } from "./capabilities/MemoryNotes.mjs";
|
|
38
|
-
import { n as MessagingHost_d_exports } from "./MessagingHost-
|
|
39
|
-
import { t as Messaging_d_exports } from "./Messaging-
|
|
38
|
+
import { n as MessagingHost_d_exports } from "./MessagingHost-gAxs5gme.mjs";
|
|
39
|
+
import { t as Messaging_d_exports } from "./Messaging-QMYhp297.mjs";
|
|
40
40
|
import { t as ModelContext_d_exports } from "./capabilities/ModelContext.mjs";
|
|
41
41
|
import { t as RememberingStore_d_exports } from "./core/RememberingStore.mjs";
|
|
42
42
|
import { t as Remembering_d_exports } from "./capabilities/Remembering.mjs";
|
|
@@ -45,28 +45,28 @@ import { t as MemoryRevalidation_d_exports } from "./core/MemoryRevalidation.mjs
|
|
|
45
45
|
import { t as SemanticMemoryIndex_d_exports } from "./core/SemanticMemoryIndex.mjs";
|
|
46
46
|
import { t as SemanticMemoryRevalidation_d_exports } from "./core/SemanticMemoryRevalidation.mjs";
|
|
47
47
|
import { t as SemanticMemory_d_exports } from "./capabilities/SemanticMemory.mjs";
|
|
48
|
-
import { a as SubagentHost_d_exports } from "./SubagentHost-
|
|
49
|
-
import { t as AgentRuntime_d_exports } from "./AgentRuntime-
|
|
48
|
+
import { a as SubagentHost_d_exports } from "./SubagentHost-DaFMZnVR.mjs";
|
|
49
|
+
import { t as AgentRuntime_d_exports } from "./AgentRuntime-CufqQ4JM.mjs";
|
|
50
50
|
import { i as RunEventSink_d_exports } from "./RunEventSink-D5aVhISG.mjs";
|
|
51
|
-
import { v as Subagent_d_exports } from "./Subagent-
|
|
51
|
+
import { v as Subagent_d_exports } from "./Subagent-DscbtbNY.mjs";
|
|
52
52
|
import { t as ToolDiscovery_d_exports } from "./capabilities/ToolDiscovery.mjs";
|
|
53
53
|
import { D as PageCapture_d_exports } from "./PageCapture-Df8Xwskw.mjs";
|
|
54
54
|
import { t as WebCapture_d_exports } from "./capabilities/WebCapture.mjs";
|
|
55
55
|
import { t as WebSearch_d_exports } from "./capabilities/WebSearch.mjs";
|
|
56
56
|
import { t as IdGenerator_d_exports } from "./core/IdGenerator.mjs";
|
|
57
57
|
import { t as Memory_d_exports } from "./core/Memory.mjs";
|
|
58
|
-
import { Ar as AgentRegistration_d_exports, Hr as Digest_d_exports, N as Records_d_exports, Ua as SubmissionLedger_d_exports, an as ThreadStore_d_exports, dn as SubmissionStatus_d_exports, gn as RunJournal_d_exports, mt as DurableAgentRuntime_d_exports, sr as Admin_d_exports, vi as Recovery_d_exports } from "./Records-
|
|
58
|
+
import { Ar as AgentRegistration_d_exports, Hr as Digest_d_exports, N as Records_d_exports, Ua as SubmissionLedger_d_exports, an as ThreadStore_d_exports, dn as SubmissionStatus_d_exports, gn as RunJournal_d_exports, mt as DurableAgentRuntime_d_exports, sr as Admin_d_exports, vi as Recovery_d_exports } from "./Records-B84j3Jq_.mjs";
|
|
59
59
|
import { t as DurableFailpoint_d_exports } from "./DurableFailpoint-Oinuuedm.mjs";
|
|
60
60
|
import { a as OperationAuthorizer_d_exports } from "./OperationAuthorizer-TzcQtpX5.mjs";
|
|
61
61
|
import { l as ToolReconciler_d_exports } from "./ToolReconciler-DQVaJfpE.mjs";
|
|
62
62
|
import { n as WakeScheduler_d_exports } from "./WakeScheduler-EjUF-GhC.mjs";
|
|
63
63
|
import { t as ActivityStore_d_exports } from "./durable/ActivityStore.mjs";
|
|
64
64
|
import { t as CommittedActivity_d_exports } from "./durable/CommittedActivity.mjs";
|
|
65
|
-
import { R as Schedule_d_exports } from "./Schedule-
|
|
66
|
-
import { k as Subscription_d_exports } from "./Subscription-
|
|
67
|
-
import { n as EventSource_d_exports } from "./EventSource-
|
|
68
|
-
import { n as PreparedInputAdmission_d_exports } from "./PreparedInputAdmission-
|
|
69
|
-
import { r as SubscriptionInput_d_exports } from "./SubscriptionInput-
|
|
65
|
+
import { R as Schedule_d_exports } from "./Schedule-DCYBfhgT.mjs";
|
|
66
|
+
import { k as Subscription_d_exports } from "./Subscription-C8IHdmFk.mjs";
|
|
67
|
+
import { n as EventSource_d_exports } from "./EventSource-DVfX1GRH.mjs";
|
|
68
|
+
import { n as PreparedInputAdmission_d_exports } from "./PreparedInputAdmission-DoWaMC2R.mjs";
|
|
69
|
+
import { r as SubscriptionInput_d_exports } from "./SubscriptionInput-DhM3jUW2.mjs";
|
|
70
70
|
import { t as Subscriptions_d_exports } from "./durable/Subscriptions.mjs";
|
|
71
71
|
import { t as MessageDelivery_d_exports } from "./durable/MessageDelivery.mjs";
|
|
72
72
|
import { t as PersistentHistory_d_exports } from "./durable/PersistentHistory.mjs";
|
|
@@ -81,7 +81,7 @@ import { t as ThreadProjection_d_exports } from "./durable/ThreadProjection.mjs"
|
|
|
81
81
|
import { t as ThreadProjectionMaintenance_d_exports } from "./durable/ThreadProjectionMaintenance.mjs";
|
|
82
82
|
import { t as WorkerHost_d_exports } from "./durable/WorkerHost.mjs";
|
|
83
83
|
import { t as Compaction_d_exports } from "./engine/Compaction.mjs";
|
|
84
|
-
import { t as Output_d_exports } from "./Output-
|
|
84
|
+
import { t as Output_d_exports } from "./Output-CjocJzsl.mjs";
|
|
85
85
|
import { c as PageScreenshot_d_exports } from "./PageScreenshot-BpgZKAxl.mjs";
|
|
86
86
|
import { t as InteractiveBrowser_d_exports } from "./sandbox/InteractiveBrowser.mjs";
|
|
87
87
|
import { t as PageCrawl_d_exports } from "./sandbox/PageCrawl.mjs";
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { t as Identifiers_exports } from "./core/Identifiers.mjs";
|
|
1
2
|
import { t as ToolResult_exports } from "./core/ToolResult.mjs";
|
|
2
3
|
import { t as AgentPolicy_exports } from "./core/AgentPolicy.mjs";
|
|
3
|
-
import { t as Identifiers_exports } from "./core/Identifiers.mjs";
|
|
4
4
|
import { t as Receipt_exports } from "./core/Receipt.mjs";
|
|
5
5
|
import { t as AgentUpdates_exports } from "./core/AgentUpdates.mjs";
|
|
6
|
-
import { t as Agent_exports } from "./Agent-
|
|
6
|
+
import { t as Agent_exports } from "./Agent-CG_VMrtA.mjs";
|
|
7
7
|
import { t as AgentError_exports } from "./core/AgentError.mjs";
|
|
8
8
|
import { t as IdGenerator_exports } from "./core/IdGenerator.mjs";
|
|
9
9
|
import { t as SubagentContract_exports } from "./core/SubagentContract.mjs";
|
|
@@ -14,7 +14,7 @@ import { n as MessagingHost_exports } from "./MessagingHost-CWi_PP3g.mjs";
|
|
|
14
14
|
import { t as SubagentHost_exports } from "./engine/SubagentHost.mjs";
|
|
15
15
|
import { t as Thread_exports } from "./core/Thread.mjs";
|
|
16
16
|
import { t as ThreadHistory_exports } from "./engine/ThreadHistory.mjs";
|
|
17
|
-
import { t as AgentRuntime_exports } from "./AgentRuntime-
|
|
17
|
+
import { t as AgentRuntime_exports } from "./AgentRuntime-Cdvqw7l_.mjs";
|
|
18
18
|
import { t as ContextWindow_exports } from "./engine/ContextWindow.mjs";
|
|
19
19
|
import { t as DurableStep_exports } from "./engine/DurableStep.mjs";
|
|
20
20
|
import { t as ContextCompactor_exports } from "./engine/ContextCompactor.mjs";
|
|
@@ -56,12 +56,12 @@ import { t as RunHooks_exports } from "./capabilities/RunHooks.mjs";
|
|
|
56
56
|
import { t as SemanticMemoryIndex_exports } from "./core/SemanticMemoryIndex.mjs";
|
|
57
57
|
import { t as SemanticMemoryRevalidation_exports } from "./core/SemanticMemoryRevalidation.mjs";
|
|
58
58
|
import { t as SemanticMemory_exports } from "./capabilities/SemanticMemory.mjs";
|
|
59
|
-
import { r as Subagent_exports } from "./Subagent-
|
|
59
|
+
import { r as Subagent_exports } from "./Subagent-Cbfzylz1.mjs";
|
|
60
60
|
import { t as ToolDiscovery_exports } from "./capabilities/ToolDiscovery.mjs";
|
|
61
61
|
import { t as ToolExposure_exports } from "./ToolExposure.mjs";
|
|
62
62
|
import { t as WebCapture_exports } from "./capabilities/WebCapture.mjs";
|
|
63
63
|
import { t as WebSearch_exports } from "./capabilities/WebSearch.mjs";
|
|
64
|
-
import { A as Records_exports } from "./Records-
|
|
64
|
+
import { A as Records_exports } from "./Records-CsEsSW2o.mjs";
|
|
65
65
|
import { t as ActivityStore_exports } from "./durable/ActivityStore.mjs";
|
|
66
66
|
import { t as SubmissionLedger_exports } from "./durable/SubmissionLedger.mjs";
|
|
67
67
|
import { t as Recovery_exports } from "./durable/Recovery.mjs";
|
|
@@ -75,8 +75,8 @@ import { t as Schedule_exports } from "./durable/Schedule.mjs";
|
|
|
75
75
|
import { t as PreparedInputAdmission_exports } from "./durable/PreparedInputAdmission.mjs";
|
|
76
76
|
import { t as Subscription_exports } from "./durable/Subscription.mjs";
|
|
77
77
|
import { t as MessageDelivery_exports } from "./durable/MessageDelivery.mjs";
|
|
78
|
-
import { n as DurableAgentRuntime_exports } from "./DurableAgentRuntime-
|
|
79
|
-
import { n as RunJournal_exports } from "./RunJournal-
|
|
78
|
+
import { n as DurableAgentRuntime_exports } from "./DurableAgentRuntime-BaGsWDHO.mjs";
|
|
79
|
+
import { n as RunJournal_exports } from "./RunJournal-yYpUlTOE.mjs";
|
|
80
80
|
import { t as WorkerHost_exports } from "./durable/WorkerHost.mjs";
|
|
81
81
|
import { t as OperationAuthorizer_exports } from "./durable/OperationAuthorizer.mjs";
|
|
82
82
|
import { t as SubmissionStatus_exports } from "./durable/SubmissionStatus.mjs";
|
|
@@ -86,7 +86,7 @@ import { t as WakeScheduler_exports } from "./durable/WakeScheduler.mjs";
|
|
|
86
86
|
import { t as EventSource_exports } from "./durable/EventSource.mjs";
|
|
87
87
|
import { t as PersistentHistory_exports } from "./durable/PersistentHistory.mjs";
|
|
88
88
|
import { t as ScheduleTransition_exports } from "./durable/ScheduleTransition.mjs";
|
|
89
|
-
import { i as Scheduling_exports } from "./Scheduling-
|
|
89
|
+
import { i as Scheduling_exports } from "./Scheduling-CUuYc3-D.mjs";
|
|
90
90
|
import { t as SubscriptionInput_exports } from "./durable/SubscriptionInput.mjs";
|
|
91
91
|
import { t as Subscriptions_exports } from "./durable/Subscriptions.mjs";
|
|
92
92
|
import { t as SubscriptionTools_exports } from "./durable/SubscriptionTools.mjs";
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"effect-agent","version":"0.1.0-beta.93","devDependencies":{"@effect/platform-node":"4.0.0-rc.115","@effect/vitest":"4.0.0-rc.115","effect":"4.0.0-rc.115","typescript":"7.0.2","vite-plus":"0.3.0"},"peerDependencies":{"effect":"^4.0.0-rc.115"},"exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"./activity-store":{"types":"./dist/durable/ActivityStore.d.mts","default":"./dist/durable/ActivityStore.mjs"},"./admin":{"types":"./dist/durable/Admin.d.mts","default":"./dist/durable/Admin.mjs"},"./agent":{"types":"./dist/core/Agent.d.mts","default":"./dist/core/Agent.mjs"},"./agent-error":{"types":"./dist/core/AgentError.d.mts","default":"./dist/core/AgentError.mjs"},"./agent-policy":{"types":"./dist/core/AgentPolicy.d.mts","default":"./dist/core/AgentPolicy.mjs"},"./agent-registration":{"types":"./dist/durable/AgentRegistration.d.mts","default":"./dist/durable/AgentRegistration.mjs"},"./agent-runtime":{"types":"./dist/engine/AgentRuntime.d.mts","default":"./dist/engine/AgentRuntime.mjs"},"./agent-updates":{"types":"./dist/core/AgentUpdates.d.mts","default":"./dist/core/AgentUpdates.mjs"},"./approval":{"types":"./dist/capabilities/Approval.d.mts","default":"./dist/capabilities/Approval.mjs"},"./budget":{"types":"./dist/capabilities/Budget.d.mts","default":"./dist/capabilities/Budget.mjs"},"./code-executor":{"types":"./dist/sandbox/CodeExecutor.d.mts","default":"./dist/sandbox/CodeExecutor.mjs"},"./code-mode":{"types":"./dist/capabilities/CodeMode.d.mts","default":"./dist/capabilities/CodeMode.mjs"},"./commands":{"types":"./dist/capabilities/Commands.d.mts","default":"./dist/capabilities/Commands.mjs"},"./committed-activity":{"types":"./dist/durable/CommittedActivity.d.mts","default":"./dist/durable/CommittedActivity.mjs"},"./compaction":{"types":"./dist/engine/Compaction.d.mts","default":"./dist/engine/Compaction.mjs"},"./context-compactor":{"types":"./dist/engine/ContextCompactor.d.mts","default":"./dist/engine/ContextCompactor.mjs"},"./context-history":{"types":"./dist/engine/ContextHistory.d.mts","default":"./dist/engine/ContextHistory.mjs"},"./context-tools":{"types":"./dist/capabilities/ContextTools.d.mts","default":"./dist/capabilities/ContextTools.mjs"},"./context-window":{"types":"./dist/engine/ContextWindow.d.mts","default":"./dist/engine/ContextWindow.mjs"},"./digest":{"types":"./dist/durable/Digest.d.mts","default":"./dist/durable/Digest.mjs"},"./durable-agent-runtime":{"types":"./dist/durable/DurableAgentRuntime.d.mts","default":"./dist/durable/DurableAgentRuntime.mjs"},"./durable-failpoint":{"types":"./dist/durable/DurableFailpoint.d.mts","default":"./dist/durable/DurableFailpoint.mjs"},"./durable-step":{"types":"./dist/engine/DurableStep.d.mts","default":"./dist/engine/DurableStep.mjs"},"./event-source":{"types":"./dist/durable/EventSource.d.mts","default":"./dist/durable/EventSource.mjs"},"./git-hub-workflow-source":{"types":"./dist/durable/GitHubWorkflowSource.d.mts","default":"./dist/durable/GitHubWorkflowSource.mjs"},"./id-generator":{"types":"./dist/core/IdGenerator.d.mts","default":"./dist/core/IdGenerator.mjs"},"./identifiers":{"types":"./dist/core/Identifiers.d.mts","default":"./dist/core/Identifiers.mjs"},"./in-memory":{"types":"./dist/InMemory.d.mts","default":"./dist/InMemory.mjs"},"./interactive-browser":{"types":"./dist/sandbox/InteractiveBrowser.d.mts","default":"./dist/sandbox/InteractiveBrowser.mjs"},"./mcp":{"types":"./dist/capabilities/Mcp.d.mts","default":"./dist/capabilities/Mcp.mjs"},"./mcp-client":{"types":"./dist/capabilities/McpClient.d.mts","default":"./dist/capabilities/McpClient.mjs"},"./memory":{"types":"./dist/core/Memory.d.mts","default":"./dist/core/Memory.mjs"},"./memory-namespace":{"types":"./dist/core/MemoryNamespace.d.mts","default":"./dist/core/MemoryNamespace.mjs"},"./memory-notes":{"types":"./dist/capabilities/MemoryNotes.d.mts","default":"./dist/capabilities/MemoryNotes.mjs"},"./memory-reference":{"types":"./dist/core/MemoryReference.d.mts","default":"./dist/core/MemoryReference.mjs"},"./memory-revalidation":{"types":"./dist/core/MemoryRevalidation.d.mts","default":"./dist/core/MemoryRevalidation.mjs"},"./memory-store":{"types":"./dist/core/MemoryStore.d.mts","default":"./dist/core/MemoryStore.mjs"},"./message-delivery":{"types":"./dist/durable/MessageDelivery.d.mts","default":"./dist/durable/MessageDelivery.mjs"},"./messaging":{"types":"./dist/capabilities/Messaging.d.mts","default":"./dist/capabilities/Messaging.mjs"},"./messaging-host":{"types":"./dist/engine/MessagingHost.d.mts","default":"./dist/engine/MessagingHost.mjs"},"./model-context":{"types":"./dist/capabilities/ModelContext.d.mts","default":"./dist/capabilities/ModelContext.mjs"},"./operation-authorizer":{"types":"./dist/durable/OperationAuthorizer.d.mts","default":"./dist/durable/OperationAuthorizer.mjs"},"./output":{"types":"./dist/engine/Output.d.mts","default":"./dist/engine/Output.mjs"},"./page-capture":{"types":"./dist/sandbox/PageCapture.d.mts","default":"./dist/sandbox/PageCapture.mjs"},"./page-crawl":{"types":"./dist/sandbox/PageCrawl.d.mts","default":"./dist/sandbox/PageCrawl.mjs"},"./page-screenshot":{"types":"./dist/sandbox/PageScreenshot.d.mts","default":"./dist/sandbox/PageScreenshot.mjs"},"./persistent-history":{"types":"./dist/durable/PersistentHistory.d.mts","default":"./dist/durable/PersistentHistory.mjs"},"./prepared-input-admission":{"types":"./dist/durable/PreparedInputAdmission.d.mts","default":"./dist/durable/PreparedInputAdmission.mjs"},"./protected-browser":{"types":"./dist/sandbox/ProtectedBrowser.d.mts","default":"./dist/sandbox/ProtectedBrowser.mjs"},"./receipt":{"types":"./dist/core/Receipt.d.mts","default":"./dist/core/Receipt.mjs"},"./records":{"types":"./dist/durable/Records.d.mts","default":"./dist/durable/Records.mjs"},"./recovery":{"types":"./dist/durable/Recovery.d.mts","default":"./dist/durable/Recovery.mjs"},"./redaction":{"types":"./dist/capabilities/Redaction.d.mts","default":"./dist/capabilities/Redaction.mjs"},"./remembering":{"types":"./dist/capabilities/Remembering.d.mts","default":"./dist/capabilities/Remembering.mjs"},"./remembering-store":{"types":"./dist/core/RememberingStore.d.mts","default":"./dist/core/RememberingStore.mjs"},"./run-event":{"types":"./dist/core/RunEvent.d.mts","default":"./dist/core/RunEvent.mjs"},"./run-event-sink":{"types":"./dist/engine/RunEventSink.d.mts","default":"./dist/engine/RunEventSink.mjs"},"./run-hooks":{"types":"./dist/capabilities/RunHooks.d.mts","default":"./dist/capabilities/RunHooks.mjs"},"./run-journal":{"types":"./dist/durable/RunJournal.d.mts","default":"./dist/durable/RunJournal.mjs"},"./run-options":{"types":"./dist/engine/RunOptions.d.mts","default":"./dist/engine/RunOptions.mjs"},"./run-policy-usage":{"types":"./dist/core/RunPolicyUsage.d.mts","default":"./dist/core/RunPolicyUsage.mjs"},"./sandbox":{"types":"./dist/sandbox/Sandbox.d.mts","default":"./dist/sandbox/Sandbox.mjs"},"./schedule":{"types":"./dist/durable/Schedule.d.mts","default":"./dist/durable/Schedule.mjs"},"./schedule-transition":{"types":"./dist/durable/ScheduleTransition.d.mts","default":"./dist/durable/ScheduleTransition.mjs"},"./scheduling":{"types":"./dist/durable/Scheduling.d.mts","default":"./dist/durable/Scheduling.mjs"},"./semantic-memory":{"types":"./dist/capabilities/SemanticMemory.d.mts","default":"./dist/capabilities/SemanticMemory.mjs"},"./semantic-memory-index":{"types":"./dist/core/SemanticMemoryIndex.d.mts","default":"./dist/core/SemanticMemoryIndex.mjs"},"./semantic-memory-revalidation":{"types":"./dist/core/SemanticMemoryRevalidation.d.mts","default":"./dist/core/SemanticMemoryRevalidation.mjs"},"./sql-memory-store":{"types":"./dist/durable/SqlMemoryStore.d.mts","default":"./dist/durable/SqlMemoryStore.mjs"},"./sql-message-delivery-store":{"types":"./dist/durable/SqlMessageDeliveryStore.d.mts","default":"./dist/durable/SqlMessageDeliveryStore.mjs"},"./sql-storage-v2-upgrade":{"types":"./dist/durable/SqlStorageV2Upgrade.d.mts","default":"./dist/durable/SqlStorageV2Upgrade.mjs"},"./sql-subscription-store":{"types":"./dist/durable/SqlSubscriptionStore.d.mts","default":"./dist/durable/SqlSubscriptionStore.mjs"},"./subagent":{"types":"./dist/capabilities/Subagent.d.mts","default":"./dist/capabilities/Subagent.mjs"},"./subagent-contract":{"types":"./dist/core/SubagentContract.d.mts","default":"./dist/core/SubagentContract.mjs"},"./subagent-host":{"types":"./dist/engine/SubagentHost.d.mts","default":"./dist/engine/SubagentHost.mjs"},"./subagent-reservations":{"types":"./dist/capabilities/SubagentReservations.d.mts","default":"./dist/capabilities/SubagentReservations.mjs"},"./submission-ledger":{"types":"./dist/durable/SubmissionLedger.d.mts","default":"./dist/durable/SubmissionLedger.mjs"},"./submission-status":{"types":"./dist/durable/SubmissionStatus.d.mts","default":"./dist/durable/SubmissionStatus.mjs"},"./subscription":{"types":"./dist/durable/Subscription.d.mts","default":"./dist/durable/Subscription.mjs"},"./subscription-input":{"types":"./dist/durable/SubscriptionInput.d.mts","default":"./dist/durable/SubscriptionInput.mjs"},"./subscription-tools":{"types":"./dist/durable/SubscriptionTools.d.mts","default":"./dist/durable/SubscriptionTools.mjs"},"./subscription-transition":{"types":"./dist/durable/SubscriptionTransition.d.mts","default":"./dist/durable/SubscriptionTransition.mjs"},"./subscriptions":{"types":"./dist/durable/Subscriptions.d.mts","default":"./dist/durable/Subscriptions.mjs"},"./testing/certification":{"types":"./dist/durable/Certification.d.mts","default":"./dist/durable/Certification.mjs"},"./testing/durable-failpoint-test-control":{"types":"./dist/durable/DurableFailpointTestControl.d.mts","default":"./dist/durable/DurableFailpointTestControl.mjs"},"./testing/message-delivery-store-conformance":{"types":"./dist/durable/MessageDeliveryStoreConformance.d.mts","default":"./dist/durable/MessageDeliveryStoreConformance.mjs"},"./testing/schedule-store-conformance":{"types":"./dist/durable/ScheduleStoreConformance.d.mts","default":"./dist/durable/ScheduleStoreConformance.mjs"},"./testing/submission-ledger-conformance":{"types":"./dist/durable/SubmissionLedgerConformance.d.mts","default":"./dist/durable/SubmissionLedgerConformance.mjs"},"./testing/subscription-store-conformance":{"types":"./dist/durable/SubscriptionStoreConformance.d.mts","default":"./dist/durable/SubscriptionStoreConformance.mjs"},"./testing/thread-store-conformance":{"types":"./dist/durable/ThreadStoreConformance.d.mts","default":"./dist/durable/ThreadStoreConformance.mjs"},"./thread":{"types":"./dist/core/Thread.d.mts","default":"./dist/core/Thread.mjs"},"./thread-context-history":{"types":"./dist/durable/ThreadContextHistory.d.mts","default":"./dist/durable/ThreadContextHistory.mjs"},"./thread-context-history-projection":{"types":"./dist/durable/ThreadContextHistoryProjection.d.mts","default":"./dist/durable/ThreadContextHistoryProjection.mjs"},"./thread-history":{"types":"./dist/engine/ThreadHistory.d.mts","default":"./dist/engine/ThreadHistory.mjs"},"./thread-invariants":{"types":"./dist/durable/ThreadInvariants.d.mts","default":"./dist/durable/ThreadInvariants.mjs"},"./thread-projection":{"types":"./dist/durable/ThreadProjection.d.mts","default":"./dist/durable/ThreadProjection.mjs"},"./thread-projection-maintenance":{"types":"./dist/durable/ThreadProjectionMaintenance.d.mts","default":"./dist/durable/ThreadProjectionMaintenance.mjs"},"./thread-store":{"types":"./dist/durable/ThreadStore.d.mts","default":"./dist/durable/ThreadStore.mjs"},"./tool-broker":{"types":"./dist/engine/ToolBroker.d.mts","default":"./dist/engine/ToolBroker.mjs"},"./tool-discovery":{"types":"./dist/capabilities/ToolDiscovery.d.mts","default":"./dist/capabilities/ToolDiscovery.mjs"},"./tool-exposure":{"types":"./dist/ToolExposure.d.mts","default":"./dist/ToolExposure.mjs"},"./tool-reconciler":{"types":"./dist/durable/ToolReconciler.d.mts","default":"./dist/durable/ToolReconciler.mjs"},"./tool-result":{"types":"./dist/core/ToolResult.d.mts","default":"./dist/core/ToolResult.mjs"},"./usage":{"types":"./dist/core/Usage.d.mts","default":"./dist/core/Usage.mjs"},"./wake-scheduler":{"types":"./dist/durable/WakeScheduler.d.mts","default":"./dist/durable/WakeScheduler.mjs"},"./web-capture":{"types":"./dist/capabilities/WebCapture.d.mts","default":"./dist/capabilities/WebCapture.mjs"},"./web-search":{"types":"./dist/capabilities/WebSearch.d.mts","default":"./dist/capabilities/WebSearch.mjs"},"./worker":{"types":"./dist/core/Worker.d.mts","default":"./dist/core/Worker.mjs"},"./worker-host":{"types":"./dist/durable/WorkerHost.d.mts","default":"./dist/durable/WorkerHost.mjs"}},"description":"Effect-native agents, execution, subagents, and sandbox contracts in one tree-shakeable package.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/danieljvdm/effect-agent.git","directory":"packages/effect-agent"},"files":["dist","src"],"type":"module","sideEffects":[],"publishConfig":{"access":"public"},"scripts":{"build":"vp pack","check":"tsc --noEmit -p tsconfig.json","test":"vp test --passWithNoTests"}}
|
|
1
|
+
{"name":"effect-agent","version":"0.1.0-beta.94","devDependencies":{"@effect/platform-node":"4.0.0-rc.115","@effect/vitest":"4.0.0-rc.115","effect":"4.0.0-rc.115","typescript":"7.0.2","vite-plus":"0.3.0"},"peerDependencies":{"effect":"^4.0.0-rc.115"},"exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"./activity-store":{"types":"./dist/durable/ActivityStore.d.mts","default":"./dist/durable/ActivityStore.mjs"},"./admin":{"types":"./dist/durable/Admin.d.mts","default":"./dist/durable/Admin.mjs"},"./agent":{"types":"./dist/core/Agent.d.mts","default":"./dist/core/Agent.mjs"},"./agent-error":{"types":"./dist/core/AgentError.d.mts","default":"./dist/core/AgentError.mjs"},"./agent-policy":{"types":"./dist/core/AgentPolicy.d.mts","default":"./dist/core/AgentPolicy.mjs"},"./agent-registration":{"types":"./dist/durable/AgentRegistration.d.mts","default":"./dist/durable/AgentRegistration.mjs"},"./agent-runtime":{"types":"./dist/engine/AgentRuntime.d.mts","default":"./dist/engine/AgentRuntime.mjs"},"./agent-updates":{"types":"./dist/core/AgentUpdates.d.mts","default":"./dist/core/AgentUpdates.mjs"},"./approval":{"types":"./dist/capabilities/Approval.d.mts","default":"./dist/capabilities/Approval.mjs"},"./budget":{"types":"./dist/capabilities/Budget.d.mts","default":"./dist/capabilities/Budget.mjs"},"./code-executor":{"types":"./dist/sandbox/CodeExecutor.d.mts","default":"./dist/sandbox/CodeExecutor.mjs"},"./code-mode":{"types":"./dist/capabilities/CodeMode.d.mts","default":"./dist/capabilities/CodeMode.mjs"},"./commands":{"types":"./dist/capabilities/Commands.d.mts","default":"./dist/capabilities/Commands.mjs"},"./committed-activity":{"types":"./dist/durable/CommittedActivity.d.mts","default":"./dist/durable/CommittedActivity.mjs"},"./compaction":{"types":"./dist/engine/Compaction.d.mts","default":"./dist/engine/Compaction.mjs"},"./context-compactor":{"types":"./dist/engine/ContextCompactor.d.mts","default":"./dist/engine/ContextCompactor.mjs"},"./context-history":{"types":"./dist/engine/ContextHistory.d.mts","default":"./dist/engine/ContextHistory.mjs"},"./context-tools":{"types":"./dist/capabilities/ContextTools.d.mts","default":"./dist/capabilities/ContextTools.mjs"},"./context-window":{"types":"./dist/engine/ContextWindow.d.mts","default":"./dist/engine/ContextWindow.mjs"},"./digest":{"types":"./dist/durable/Digest.d.mts","default":"./dist/durable/Digest.mjs"},"./durable-agent-runtime":{"types":"./dist/durable/DurableAgentRuntime.d.mts","default":"./dist/durable/DurableAgentRuntime.mjs"},"./durable-failpoint":{"types":"./dist/durable/DurableFailpoint.d.mts","default":"./dist/durable/DurableFailpoint.mjs"},"./durable-step":{"types":"./dist/engine/DurableStep.d.mts","default":"./dist/engine/DurableStep.mjs"},"./event-source":{"types":"./dist/durable/EventSource.d.mts","default":"./dist/durable/EventSource.mjs"},"./git-hub-workflow-source":{"types":"./dist/durable/GitHubWorkflowSource.d.mts","default":"./dist/durable/GitHubWorkflowSource.mjs"},"./id-generator":{"types":"./dist/core/IdGenerator.d.mts","default":"./dist/core/IdGenerator.mjs"},"./identifiers":{"types":"./dist/core/Identifiers.d.mts","default":"./dist/core/Identifiers.mjs"},"./in-memory":{"types":"./dist/InMemory.d.mts","default":"./dist/InMemory.mjs"},"./interactive-browser":{"types":"./dist/sandbox/InteractiveBrowser.d.mts","default":"./dist/sandbox/InteractiveBrowser.mjs"},"./mcp":{"types":"./dist/capabilities/Mcp.d.mts","default":"./dist/capabilities/Mcp.mjs"},"./mcp-client":{"types":"./dist/capabilities/McpClient.d.mts","default":"./dist/capabilities/McpClient.mjs"},"./memory":{"types":"./dist/core/Memory.d.mts","default":"./dist/core/Memory.mjs"},"./memory-namespace":{"types":"./dist/core/MemoryNamespace.d.mts","default":"./dist/core/MemoryNamespace.mjs"},"./memory-notes":{"types":"./dist/capabilities/MemoryNotes.d.mts","default":"./dist/capabilities/MemoryNotes.mjs"},"./memory-reference":{"types":"./dist/core/MemoryReference.d.mts","default":"./dist/core/MemoryReference.mjs"},"./memory-revalidation":{"types":"./dist/core/MemoryRevalidation.d.mts","default":"./dist/core/MemoryRevalidation.mjs"},"./memory-store":{"types":"./dist/core/MemoryStore.d.mts","default":"./dist/core/MemoryStore.mjs"},"./message-delivery":{"types":"./dist/durable/MessageDelivery.d.mts","default":"./dist/durable/MessageDelivery.mjs"},"./messaging":{"types":"./dist/capabilities/Messaging.d.mts","default":"./dist/capabilities/Messaging.mjs"},"./messaging-host":{"types":"./dist/engine/MessagingHost.d.mts","default":"./dist/engine/MessagingHost.mjs"},"./model-context":{"types":"./dist/capabilities/ModelContext.d.mts","default":"./dist/capabilities/ModelContext.mjs"},"./operation-authorizer":{"types":"./dist/durable/OperationAuthorizer.d.mts","default":"./dist/durable/OperationAuthorizer.mjs"},"./output":{"types":"./dist/engine/Output.d.mts","default":"./dist/engine/Output.mjs"},"./page-capture":{"types":"./dist/sandbox/PageCapture.d.mts","default":"./dist/sandbox/PageCapture.mjs"},"./page-crawl":{"types":"./dist/sandbox/PageCrawl.d.mts","default":"./dist/sandbox/PageCrawl.mjs"},"./page-screenshot":{"types":"./dist/sandbox/PageScreenshot.d.mts","default":"./dist/sandbox/PageScreenshot.mjs"},"./persistent-history":{"types":"./dist/durable/PersistentHistory.d.mts","default":"./dist/durable/PersistentHistory.mjs"},"./prepared-input-admission":{"types":"./dist/durable/PreparedInputAdmission.d.mts","default":"./dist/durable/PreparedInputAdmission.mjs"},"./protected-browser":{"types":"./dist/sandbox/ProtectedBrowser.d.mts","default":"./dist/sandbox/ProtectedBrowser.mjs"},"./receipt":{"types":"./dist/core/Receipt.d.mts","default":"./dist/core/Receipt.mjs"},"./records":{"types":"./dist/durable/Records.d.mts","default":"./dist/durable/Records.mjs"},"./recovery":{"types":"./dist/durable/Recovery.d.mts","default":"./dist/durable/Recovery.mjs"},"./redaction":{"types":"./dist/capabilities/Redaction.d.mts","default":"./dist/capabilities/Redaction.mjs"},"./remembering":{"types":"./dist/capabilities/Remembering.d.mts","default":"./dist/capabilities/Remembering.mjs"},"./remembering-store":{"types":"./dist/core/RememberingStore.d.mts","default":"./dist/core/RememberingStore.mjs"},"./run-event":{"types":"./dist/core/RunEvent.d.mts","default":"./dist/core/RunEvent.mjs"},"./run-event-sink":{"types":"./dist/engine/RunEventSink.d.mts","default":"./dist/engine/RunEventSink.mjs"},"./run-hooks":{"types":"./dist/capabilities/RunHooks.d.mts","default":"./dist/capabilities/RunHooks.mjs"},"./run-journal":{"types":"./dist/durable/RunJournal.d.mts","default":"./dist/durable/RunJournal.mjs"},"./run-options":{"types":"./dist/engine/RunOptions.d.mts","default":"./dist/engine/RunOptions.mjs"},"./run-policy-usage":{"types":"./dist/core/RunPolicyUsage.d.mts","default":"./dist/core/RunPolicyUsage.mjs"},"./sandbox":{"types":"./dist/sandbox/Sandbox.d.mts","default":"./dist/sandbox/Sandbox.mjs"},"./schedule":{"types":"./dist/durable/Schedule.d.mts","default":"./dist/durable/Schedule.mjs"},"./schedule-transition":{"types":"./dist/durable/ScheduleTransition.d.mts","default":"./dist/durable/ScheduleTransition.mjs"},"./scheduling":{"types":"./dist/durable/Scheduling.d.mts","default":"./dist/durable/Scheduling.mjs"},"./semantic-memory":{"types":"./dist/capabilities/SemanticMemory.d.mts","default":"./dist/capabilities/SemanticMemory.mjs"},"./semantic-memory-index":{"types":"./dist/core/SemanticMemoryIndex.d.mts","default":"./dist/core/SemanticMemoryIndex.mjs"},"./semantic-memory-revalidation":{"types":"./dist/core/SemanticMemoryRevalidation.d.mts","default":"./dist/core/SemanticMemoryRevalidation.mjs"},"./sql-memory-store":{"types":"./dist/durable/SqlMemoryStore.d.mts","default":"./dist/durable/SqlMemoryStore.mjs"},"./sql-message-delivery-store":{"types":"./dist/durable/SqlMessageDeliveryStore.d.mts","default":"./dist/durable/SqlMessageDeliveryStore.mjs"},"./sql-storage-v2-upgrade":{"types":"./dist/durable/SqlStorageV2Upgrade.d.mts","default":"./dist/durable/SqlStorageV2Upgrade.mjs"},"./sql-subscription-store":{"types":"./dist/durable/SqlSubscriptionStore.d.mts","default":"./dist/durable/SqlSubscriptionStore.mjs"},"./subagent":{"types":"./dist/capabilities/Subagent.d.mts","default":"./dist/capabilities/Subagent.mjs"},"./subagent-contract":{"types":"./dist/core/SubagentContract.d.mts","default":"./dist/core/SubagentContract.mjs"},"./subagent-host":{"types":"./dist/engine/SubagentHost.d.mts","default":"./dist/engine/SubagentHost.mjs"},"./subagent-reservations":{"types":"./dist/capabilities/SubagentReservations.d.mts","default":"./dist/capabilities/SubagentReservations.mjs"},"./submission-ledger":{"types":"./dist/durable/SubmissionLedger.d.mts","default":"./dist/durable/SubmissionLedger.mjs"},"./submission-status":{"types":"./dist/durable/SubmissionStatus.d.mts","default":"./dist/durable/SubmissionStatus.mjs"},"./subscription":{"types":"./dist/durable/Subscription.d.mts","default":"./dist/durable/Subscription.mjs"},"./subscription-input":{"types":"./dist/durable/SubscriptionInput.d.mts","default":"./dist/durable/SubscriptionInput.mjs"},"./subscription-tools":{"types":"./dist/durable/SubscriptionTools.d.mts","default":"./dist/durable/SubscriptionTools.mjs"},"./subscription-transition":{"types":"./dist/durable/SubscriptionTransition.d.mts","default":"./dist/durable/SubscriptionTransition.mjs"},"./subscriptions":{"types":"./dist/durable/Subscriptions.d.mts","default":"./dist/durable/Subscriptions.mjs"},"./testing/certification":{"types":"./dist/durable/Certification.d.mts","default":"./dist/durable/Certification.mjs"},"./testing/durable-failpoint-test-control":{"types":"./dist/durable/DurableFailpointTestControl.d.mts","default":"./dist/durable/DurableFailpointTestControl.mjs"},"./testing/message-delivery-store-conformance":{"types":"./dist/durable/MessageDeliveryStoreConformance.d.mts","default":"./dist/durable/MessageDeliveryStoreConformance.mjs"},"./testing/schedule-store-conformance":{"types":"./dist/durable/ScheduleStoreConformance.d.mts","default":"./dist/durable/ScheduleStoreConformance.mjs"},"./testing/submission-ledger-conformance":{"types":"./dist/durable/SubmissionLedgerConformance.d.mts","default":"./dist/durable/SubmissionLedgerConformance.mjs"},"./testing/subscription-store-conformance":{"types":"./dist/durable/SubscriptionStoreConformance.d.mts","default":"./dist/durable/SubscriptionStoreConformance.mjs"},"./testing/thread-store-conformance":{"types":"./dist/durable/ThreadStoreConformance.d.mts","default":"./dist/durable/ThreadStoreConformance.mjs"},"./thread":{"types":"./dist/core/Thread.d.mts","default":"./dist/core/Thread.mjs"},"./thread-context-history":{"types":"./dist/durable/ThreadContextHistory.d.mts","default":"./dist/durable/ThreadContextHistory.mjs"},"./thread-context-history-projection":{"types":"./dist/durable/ThreadContextHistoryProjection.d.mts","default":"./dist/durable/ThreadContextHistoryProjection.mjs"},"./thread-history":{"types":"./dist/engine/ThreadHistory.d.mts","default":"./dist/engine/ThreadHistory.mjs"},"./thread-invariants":{"types":"./dist/durable/ThreadInvariants.d.mts","default":"./dist/durable/ThreadInvariants.mjs"},"./thread-projection":{"types":"./dist/durable/ThreadProjection.d.mts","default":"./dist/durable/ThreadProjection.mjs"},"./thread-projection-maintenance":{"types":"./dist/durable/ThreadProjectionMaintenance.d.mts","default":"./dist/durable/ThreadProjectionMaintenance.mjs"},"./thread-store":{"types":"./dist/durable/ThreadStore.d.mts","default":"./dist/durable/ThreadStore.mjs"},"./tool-broker":{"types":"./dist/engine/ToolBroker.d.mts","default":"./dist/engine/ToolBroker.mjs"},"./tool-discovery":{"types":"./dist/capabilities/ToolDiscovery.d.mts","default":"./dist/capabilities/ToolDiscovery.mjs"},"./tool-exposure":{"types":"./dist/ToolExposure.d.mts","default":"./dist/ToolExposure.mjs"},"./tool-reconciler":{"types":"./dist/durable/ToolReconciler.d.mts","default":"./dist/durable/ToolReconciler.mjs"},"./tool-result":{"types":"./dist/core/ToolResult.d.mts","default":"./dist/core/ToolResult.mjs"},"./usage":{"types":"./dist/core/Usage.d.mts","default":"./dist/core/Usage.mjs"},"./wake-scheduler":{"types":"./dist/durable/WakeScheduler.d.mts","default":"./dist/durable/WakeScheduler.mjs"},"./web-capture":{"types":"./dist/capabilities/WebCapture.d.mts","default":"./dist/capabilities/WebCapture.mjs"},"./web-search":{"types":"./dist/capabilities/WebSearch.d.mts","default":"./dist/capabilities/WebSearch.mjs"},"./worker":{"types":"./dist/core/Worker.d.mts","default":"./dist/core/Worker.mjs"},"./worker-host":{"types":"./dist/durable/WorkerHost.d.mts","default":"./dist/durable/WorkerHost.mjs"}},"description":"Effect-native agents, execution, subagents, and sandbox contracts in one tree-shakeable package.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/danieljvdm/effect-agent.git","directory":"packages/effect-agent"},"files":["dist","src"],"type":"module","sideEffects":[],"publishConfig":{"access":"public"},"scripts":{"build":"vp pack","check":"tsc --noEmit -p tsconfig.json","test":"vp test --passWithNoTests"}}
|
|
@@ -42,13 +42,19 @@ export class Match extends Schema.Class<Match>("@effect-agent/capabilities/ToolD
|
|
|
42
42
|
success: Schema.Json,
|
|
43
43
|
}) {}
|
|
44
44
|
|
|
45
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* Only documented nativeToolName values activate schemas; Code Mode aliases activate their
|
|
47
|
+
* owning Tool. A byte-limited result is successful, including when no matches fit: an empty
|
|
48
|
+
* toolNames array clears the non-pinned selection under the engine's replacement contract.
|
|
49
|
+
*/
|
|
46
50
|
export const Result = Schema.Struct({
|
|
47
51
|
toolNames: Schema.Array(Name).check(Schema.isMaxLength(64), Schema.isUnique()),
|
|
48
52
|
matches: Schema.Array(Match).check(Schema.isMaxLength(64)),
|
|
53
|
+
/** Present when the byte budget omits complete matches, with guidance for continuing. */
|
|
54
|
+
notice: Schema.optionalKey(Schema.String.check(Schema.isMaxLength(192))),
|
|
49
55
|
});
|
|
50
56
|
|
|
51
|
-
/** Invalid custom results
|
|
57
|
+
/** Invalid custom results and unsupported documentation remain typed failures. */
|
|
52
58
|
export class ToolDiscoveryError extends Schema.TaggedError<ToolDiscoveryError>()(
|
|
53
59
|
"ToolDiscoveryError",
|
|
54
60
|
{
|
|
@@ -57,7 +63,6 @@ export class ToolDiscoveryError extends Schema.TaggedError<ToolDiscoveryError>()
|
|
|
57
63
|
"invalid-matches",
|
|
58
64
|
"unknown-match",
|
|
59
65
|
"invalid-schema",
|
|
60
|
-
"limit-exceeded",
|
|
61
66
|
]),
|
|
62
67
|
message: Schema.String.check(Schema.isMaxLength(1_024)),
|
|
63
68
|
},
|
|
@@ -71,12 +76,30 @@ const Bounds = Schema.Struct({
|
|
|
71
76
|
namespaceDescriptions: Schema.Record(Namespace, NamespaceDescription),
|
|
72
77
|
});
|
|
73
78
|
|
|
79
|
+
const resultByteLength = Effect.fnUntraced(function* (result: typeof Result.Type) {
|
|
80
|
+
const encoded = yield* Schema.encodeEffect(Schema.fromJsonString(Result))(result).pipe(
|
|
81
|
+
Effect.mapError(() =>
|
|
82
|
+
ToolDiscoveryError.make({
|
|
83
|
+
reason: "invalid-schema",
|
|
84
|
+
message: "Discovery documentation could not be encoded",
|
|
85
|
+
}),
|
|
86
|
+
),
|
|
87
|
+
);
|
|
88
|
+
|
|
89
|
+
return utf8ByteLength(encoded);
|
|
90
|
+
});
|
|
91
|
+
|
|
74
92
|
export interface Options<Failure extends Schema.Top = typeof Schema.Never, Requirements = never> {
|
|
75
93
|
/** Optional generic instructions. Namespace names and hints are never appended here. */
|
|
76
94
|
readonly description?: string | undefined;
|
|
77
95
|
/** Maximum returned catalogue entries, default 8 and at most 64. */
|
|
78
96
|
readonly maxResults?: number | undefined;
|
|
79
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* Complete JSON-encoded result budget, including any notice: default 32768, minimum 256,
|
|
99
|
+
* maximum 262144 UTF-8 bytes. Within the first maxResults candidates, retain whole matches
|
|
100
|
+
* in rank order when they fit; skip oversized matches and try later candidates. Overflow
|
|
101
|
+
* returns a successful result with an actionable notice, never partial schemas.
|
|
102
|
+
*/
|
|
80
103
|
readonly maxResultBytes?: number | undefined;
|
|
81
104
|
/** Short category hints returned only for namespaces present in the visible catalogue. */
|
|
82
105
|
readonly namespaceDescriptions?: Readonly<Record<string, string>> | undefined;
|
|
@@ -313,23 +336,30 @@ export const make = <Failure extends Schema.Top = typeof Schema.Never, Requireme
|
|
|
313
336
|
matches,
|
|
314
337
|
};
|
|
315
338
|
|
|
316
|
-
|
|
317
|
-
Effect.mapError(() =>
|
|
318
|
-
ToolDiscoveryError.make({
|
|
319
|
-
reason: "invalid-schema",
|
|
320
|
-
message: "Discovery documentation could not be encoded",
|
|
321
|
-
}),
|
|
322
|
-
),
|
|
323
|
-
);
|
|
339
|
+
if ((yield* resultByteLength(result)) <= bounds.maxResultBytes) return result;
|
|
324
340
|
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
341
|
+
// Validate every selected schema before packing. A byte limit must not mask an
|
|
342
|
+
// invalid catalogue/schema. The empty notice envelope fits the minimum 256 bytes.
|
|
343
|
+
let bounded: typeof Result.Type = {
|
|
344
|
+
toolNames: [],
|
|
345
|
+
matches: [],
|
|
346
|
+
notice:
|
|
347
|
+
"Result byte limit reached. Narrow the search or namespace; if one tool still cannot fit, ask the host to increase maxResultBytes.",
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
for (const match of matches) {
|
|
351
|
+
const candidates = [...bounded.matches, match];
|
|
352
|
+
|
|
353
|
+
const candidate = {
|
|
354
|
+
...bounded,
|
|
355
|
+
toolNames: [...new Set(candidates.map((entry) => entry.nativeToolName))],
|
|
356
|
+
matches: candidates,
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
if ((yield* resultByteLength(candidate)) <= bounds.maxResultBytes) bounded = candidate;
|
|
330
360
|
}
|
|
331
361
|
|
|
332
|
-
return
|
|
362
|
+
return bounded;
|
|
333
363
|
}),
|
|
334
364
|
});
|
|
335
365
|
}),
|
package/src/core/ToolResult.ts
CHANGED
|
@@ -1,7 +1,27 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
|
+
import { AiError } from "effect/unstable/ai";
|
|
2
3
|
|
|
4
|
+
import { ToolCallId } from "./Identifiers.ts";
|
|
3
5
|
import { codePointUtf8Length, utf8ByteLength } from "./internal/utf8.ts";
|
|
4
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Engine-owned evidence that a fresh model call failed parameter validation.
|
|
9
|
+
* Retain the exact JSON arguments beside the native error so recovery can distinguish
|
|
10
|
+
* a rejected request from damaged executable parameters. This never authorizes execution.
|
|
11
|
+
*/
|
|
12
|
+
export const ToolParameterRejection = Schema.Struct({
|
|
13
|
+
toolCallId: ToolCallId,
|
|
14
|
+
parameters: Schema.Json,
|
|
15
|
+
error: Schema.toEncoded(
|
|
16
|
+
Schema.Struct({
|
|
17
|
+
...AiError.AiError.fields,
|
|
18
|
+
reason: AiError.ToolParameterValidationError,
|
|
19
|
+
}),
|
|
20
|
+
),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export type ToolParameterRejection = typeof ToolParameterRejection.Type;
|
|
24
|
+
|
|
5
25
|
/**
|
|
6
26
|
* The minimal `TruncatedToolResult` envelope (empty head/tail, a 16-digit
|
|
7
27
|
* `originalBytes`) encodes to at most 81 UTF-8 bytes; 256 guarantees every
|
|
@@ -58,6 +58,7 @@ import {
|
|
|
58
58
|
SubagentParentLink,
|
|
59
59
|
} from "../core/SubagentContract.ts";
|
|
60
60
|
import { Selection, type Snapshot } from "../core/ToolExposure.ts";
|
|
61
|
+
import type { ToolParameterRejection } from "../core/ToolResult.ts";
|
|
61
62
|
import {
|
|
62
63
|
type ModelCallUsage,
|
|
63
64
|
InputTokenUsage,
|
|
@@ -981,6 +982,7 @@ const terminalAssistantText = Effect.fn("DurableAgentRuntime.terminalAssistantTe
|
|
|
981
982
|
* path). `undefined` when the Run's journal ends at a complete Turn boundary.
|
|
982
983
|
*/
|
|
983
984
|
interface PendingToolBatch {
|
|
985
|
+
readonly toolParameterRejections?: ReadonlyArray<ToolParameterRejection> | undefined;
|
|
984
986
|
readonly toolExposure?: Snapshot | undefined;
|
|
985
987
|
readonly turn: number;
|
|
986
988
|
readonly turnId: TurnId;
|
|
@@ -1811,6 +1813,7 @@ const make = Effect.fn("DurableAgentRuntime.make")(function* (
|
|
|
1811
1813
|
| {
|
|
1812
1814
|
readonly turn: number;
|
|
1813
1815
|
readonly messages: PersistedJson;
|
|
1816
|
+
readonly toolParameterRejections?: ReadonlyArray<ToolParameterRejection> | undefined;
|
|
1814
1817
|
readonly toolExposure?: Snapshot | undefined;
|
|
1815
1818
|
}
|
|
1816
1819
|
| undefined;
|
|
@@ -1834,6 +1837,7 @@ const make = Effect.fn("DurableAgentRuntime.make")(function* (
|
|
|
1834
1837
|
lastResponse = {
|
|
1835
1838
|
turn: payload.turn,
|
|
1836
1839
|
messages: payload.messages,
|
|
1840
|
+
toolParameterRejections: payload.toolParameterRejections,
|
|
1837
1841
|
...(payload.toolExposure === undefined ? {} : { toolExposure: payload.toolExposure }),
|
|
1838
1842
|
};
|
|
1839
1843
|
}
|
|
@@ -1906,6 +1910,7 @@ const make = Effect.fn("DurableAgentRuntime.make")(function* (
|
|
|
1906
1910
|
declaredIds: new Set(calls.map((call) => call.id)),
|
|
1907
1911
|
responseRecordId: modelResponseRecordId(runId, lastResponse.turn),
|
|
1908
1912
|
messages: lastResponse.messages,
|
|
1913
|
+
toolParameterRejections: lastResponse.toolParameterRejections,
|
|
1909
1914
|
...(lastResponse.toolExposure === undefined
|
|
1910
1915
|
? {}
|
|
1911
1916
|
: { toolExposure: lastResponse.toolExposure }),
|
|
@@ -5076,6 +5081,7 @@ const make = Effect.fn("DurableAgentRuntime.make")(function* (
|
|
|
5076
5081
|
const batch = yield* withCrypto(
|
|
5077
5082
|
turnResponseBatch({
|
|
5078
5083
|
toolExposure: commit.toolExposure,
|
|
5084
|
+
toolParameterRejections: commit.toolParameterRejections,
|
|
5079
5085
|
runId,
|
|
5080
5086
|
turn: canonicalTurn,
|
|
5081
5087
|
turnId: commit.turnId,
|
|
@@ -6455,6 +6461,7 @@ const make = Effect.fn("DurableAgentRuntime.make")(function* (
|
|
|
6455
6461
|
turn: pending.turn,
|
|
6456
6462
|
turnId: pending.turnId,
|
|
6457
6463
|
calls: pending.calls,
|
|
6464
|
+
toolParameterRejections: pending.toolParameterRejections,
|
|
6458
6465
|
settled: pending.settled,
|
|
6459
6466
|
...(pending.toolExposure === undefined
|
|
6460
6467
|
? {}
|
package/src/durable/Records.ts
CHANGED
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
ToolExecutionKind,
|
|
31
31
|
} from "../core/SubagentContract.ts";
|
|
32
32
|
import { Selection, Snapshot } from "../core/ToolExposure.ts";
|
|
33
|
+
import { ToolParameterRejection } from "../core/ToolResult.ts";
|
|
33
34
|
import { ModelCallUsage, RunUsageSummary, RunTotals } from "../core/Usage.ts";
|
|
34
35
|
import { WorkerBudgetScope, WorkerRef, WorkerSource } from "../core/Worker.ts";
|
|
35
36
|
import { ContextHandoff } from "../engine/ContextWindow.ts";
|
|
@@ -282,6 +283,8 @@ export class ToolCallSettled extends Schema.TaggedClass<ToolCallSettled>(
|
|
|
282
283
|
* `messagesDigest` pins the exact encoded content.
|
|
283
284
|
*/
|
|
284
285
|
const ModelResponseRecordedFields = Schema.Struct({
|
|
286
|
+
/** Explicit pre-execution failures, committed with the original arguments before any approval. */
|
|
287
|
+
toolParameterRejections: Schema.optionalKey(Schema.Array(ToolParameterRejection)),
|
|
285
288
|
toolExposure: Schema.optionalKey(Snapshot),
|
|
286
289
|
runId: RunId,
|
|
287
290
|
turnId: TurnId,
|
|
@@ -5,6 +5,7 @@ import { ThreadId, RunId, ToolCallId, TurnId, type SubmissionId } from "../core/
|
|
|
5
5
|
import { type ExhaustedLimit } from "../core/RunEvent.ts";
|
|
6
6
|
import { RunPolicyUsage } from "../core/RunPolicyUsage.ts";
|
|
7
7
|
import { type Selection, type Snapshot } from "../core/ToolExposure.ts";
|
|
8
|
+
import type { ToolParameterRejection } from "../core/ToolResult.ts";
|
|
8
9
|
import { ModelCallUsage, summarizeModelUsage, type RunUsageSummary } from "../core/Usage.ts";
|
|
9
10
|
import {
|
|
10
11
|
CLEARED_TOOL_RESULT,
|
|
@@ -1151,6 +1152,7 @@ const validStagedUsage = (label: string, value: number): Effect.Effect<number, R
|
|
|
1151
1152
|
);
|
|
1152
1153
|
|
|
1153
1154
|
export interface TurnCommitInput {
|
|
1155
|
+
readonly toolParameterRejections?: ReadonlyArray<ToolParameterRejection> | undefined;
|
|
1154
1156
|
readonly toolExposure?: Snapshot | undefined;
|
|
1155
1157
|
readonly toolSelections?: ReadonlyMap<string, Selection> | undefined;
|
|
1156
1158
|
readonly budgetRejectedCalls?: ReadonlySet<string>;
|
|
@@ -1292,6 +1294,9 @@ const modelResponseRecord = Effect.fn("RunJournal.modelResponseRecord")(function
|
|
|
1292
1294
|
createdAt: input.createdAt,
|
|
1293
1295
|
deploymentId: input.deploymentId,
|
|
1294
1296
|
payload: ModelResponseRecorded.make({
|
|
1297
|
+
...(input.toolParameterRejections === undefined || input.toolParameterRejections.length === 0
|
|
1298
|
+
? {}
|
|
1299
|
+
: { toolParameterRejections: input.toolParameterRejections }),
|
|
1295
1300
|
...(input.toolExposure === undefined ? {} : { toolExposure: input.toolExposure }),
|
|
1296
1301
|
runId: input.runId,
|
|
1297
1302
|
turnId: input.turnId,
|
package/src/engine/RunOptions.ts
CHANGED
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
} from "../core/SubagentContract.ts";
|
|
27
27
|
import type { Snapshot } from "../core/ToolExposure.ts";
|
|
28
28
|
import { Selection } from "../core/ToolExposure.ts";
|
|
29
|
+
import type { ToolParameterRejection } from "../core/ToolResult.ts";
|
|
29
30
|
import {
|
|
30
31
|
ChildRunUsage,
|
|
31
32
|
UsageCompleteness,
|
|
@@ -480,6 +481,8 @@ export class RunToolAuthorization extends Context.Service<
|
|
|
480
481
|
* application Tool Calls; no-tool Turns keep their late single-batch commit.
|
|
481
482
|
*/
|
|
482
483
|
export interface RunTurnResponseCommit {
|
|
484
|
+
/** Rejected fresh arguments; persist atomically with the response and restore on resume. */
|
|
485
|
+
readonly toolParameterRejections?: ReadonlyArray<ToolParameterRejection> | undefined;
|
|
483
486
|
readonly toolExposure?: Snapshot | undefined;
|
|
484
487
|
readonly turn: number;
|
|
485
488
|
readonly turnId: TurnId;
|
|
@@ -816,15 +819,18 @@ export type RunResumeUsage = typeof RunResumeUsageSchema.Type;
|
|
|
816
819
|
* Resume one canonically declared Tool batch without re-invoking the model.
|
|
817
820
|
*
|
|
818
821
|
* When present, the engine's first Turn skips the model request entirely: the
|
|
819
|
-
*
|
|
820
|
-
* decode failure executes nothing)
|
|
821
|
-
*
|
|
822
|
+
* executable calls are re-validated through their Tool parameter Schemas (a
|
|
823
|
+
* decode failure executes nothing). Canonically rejected calls retain their native failure;
|
|
824
|
+
* the rejection must match their exact arguments and any settled result. Approval preflight
|
|
825
|
+
* for executable calls runs against recorded decisions, host Tool authorization is re-evaluated, `prepareToolCalls` replays the full
|
|
822
826
|
* prepared batch idempotently,
|
|
823
827
|
* calls listed in `settled` are injected as final results without starting
|
|
824
828
|
* their handlers, and only the remaining open calls execute. The Run then
|
|
825
829
|
* proceeds through the normal continuation.
|
|
826
830
|
*/
|
|
827
831
|
export interface RunTurnResume {
|
|
832
|
+
/** Canonical rejection evidence, matched to the exact call; never permits handler execution. */
|
|
833
|
+
readonly toolParameterRejections?: ReadonlyArray<ToolParameterRejection> | undefined;
|
|
828
834
|
readonly toolExposure?: Snapshot | undefined;
|
|
829
835
|
readonly turn: number;
|
|
830
836
|
readonly turnId: TurnId;
|