effect-agent 0.1.0-beta.113 → 0.1.0-beta.115
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.map +1 -1
- package/dist/{Agent-DriBcXBN.d.mts → Agent-D9cXqfF3.d.mts} +9 -2
- package/dist/{AgentRuntime-DLwPoEVH.mjs → AgentRuntime-Cp1hAb-W.mjs} +8 -4
- package/dist/AgentRuntime-Cp1hAb-W.mjs.map +1 -0
- package/dist/{AgentRuntime-CWkHuzyt.d.mts → AgentRuntime-DyZv8uu2.d.mts} +6 -6
- package/dist/{DurableAgentRuntime-BIrgxwRl.mjs → DurableAgentRuntime-tNrkJZNo.mjs} +254 -162
- package/dist/DurableAgentRuntime-tNrkJZNo.mjs.map +1 -0
- package/dist/{DurableFailpoint-mx3-nsxU.d.mts → DurableFailpoint-Cnr3wx1L.d.mts} +3 -3
- package/dist/{EventSource-ARs56eBq.d.mts → EventSource-DPRdlvhV.d.mts} +3 -3
- package/dist/{Messaging-DaZDlBqh.d.mts → Messaging-JYYN3oYS.d.mts} +3 -3
- package/dist/{MessagingHost-e1Sbzfao.d.mts → MessagingHost-CqzpxbGz.d.mts} +3 -3
- package/dist/{MessagingHost-D89X7ma8.mjs → MessagingHost-DfsbMPvq.mjs} +2 -2
- package/dist/{MessagingHost-D89X7ma8.mjs.map → MessagingHost-DfsbMPvq.mjs.map} +1 -1
- package/dist/{Output-CAFJTAbP.d.mts → Output-V-6YL1_Z.d.mts} +2 -2
- package/dist/{PreparedInputAdmission-_WYg-D0f.d.mts → PreparedInputAdmission-DqQUjA9k.d.mts} +4 -4
- package/dist/{Records-BtxMy8xD.d.mts → Records-Byeb70tt.d.mts} +89 -31
- package/dist/{RunOptions-BoESJrxw.d.mts → RunOptions-CSBsSj0X.d.mts} +3 -3
- package/dist/{Schedule-DGPyXBzK.d.mts → Schedule-krSnBcbU.d.mts} +2 -2
- package/dist/{Subagent-D9eYdGTl.mjs → Subagent-Di8EEjWZ.mjs} +67 -105
- package/dist/Subagent-Di8EEjWZ.mjs.map +1 -0
- package/dist/{Subagent-F72tuaxy.d.mts → Subagent-gw9KD6eb.d.mts} +310 -35
- package/dist/{SubagentHost-CmiNTOBZ.d.mts → SubagentHost-P9zB_TfV.d.mts} +24 -18
- package/dist/{Subscription-B9VszlF9.d.mts → Subscription-Xnwd42Sm.d.mts} +6 -3
- package/dist/{SubscriptionInput-BJWZqCWP.d.mts → SubscriptionInput-CqtJ58vl.d.mts} +3 -3
- package/dist/{Worker-T_3RbaKc.mjs → Worker-CfwzMZEK.mjs} +66 -5
- package/dist/Worker-CfwzMZEK.mjs.map +1 -0
- package/dist/{Worker-Du9dhVnp.d.mts → Worker-fwWkBg12.d.mts} +199 -6
- package/dist/{agent-registration-B5CI-Ygk.mjs → agent-registration-CKNsrpwo.mjs} +7 -7
- package/dist/agent-registration-CKNsrpwo.mjs.map +1 -0
- package/dist/capabilities/Commands.d.mts +1 -1
- package/dist/capabilities/Messaging.d.mts +1 -1
- package/dist/capabilities/Messaging.mjs +2 -2
- package/dist/capabilities/RunHooks.d.mts +1 -1
- package/dist/capabilities/Subagent.d.mts +3 -3
- package/dist/capabilities/Subagent.mjs +3 -3
- package/dist/core/Agent.d.mts +1 -1
- package/dist/core/Worker.d.mts +2 -2
- package/dist/core/Worker.mjs +2 -2
- package/dist/durable/ActivityStore.d.mts +1 -1
- package/dist/durable/Admin.d.mts +1 -1
- package/dist/durable/AgentRegistration.d.mts +1 -1
- package/dist/durable/AgentRegistration.mjs +1 -1
- package/dist/durable/Certification.d.mts +2 -2
- package/dist/durable/CommittedActivity.d.mts +1 -1
- package/dist/durable/Digest.d.mts +1 -1
- package/dist/durable/DurableAgentRuntime.d.mts +1 -1
- package/dist/durable/DurableAgentRuntime.mjs +1 -1
- package/dist/durable/DurableFailpoint.d.mts +1 -1
- package/dist/durable/DurableFailpoint.mjs +4 -0
- package/dist/durable/DurableFailpoint.mjs.map +1 -1
- package/dist/durable/DurableFailpointTestControl.d.mts +1 -1
- package/dist/durable/EventSource.d.mts +1 -1
- package/dist/durable/GitHubWorkflowSource.d.mts +3 -3
- package/dist/durable/MessageDelivery.d.mts +20 -3
- package/dist/durable/MessageDelivery.mjs +12 -4
- package/dist/durable/MessageDelivery.mjs.map +1 -1
- package/dist/durable/MessageDeliveryStoreConformance.d.mts +41 -39
- package/dist/durable/MessageDeliveryStoreConformance.mjs +1 -1
- package/dist/durable/PersistentHistory.d.mts +1 -1
- package/dist/durable/PreparedInputAdmission.d.mts +1 -1
- package/dist/durable/Records.d.mts +2 -2
- package/dist/durable/Records.mjs +12 -5
- package/dist/durable/Records.mjs.map +1 -1
- package/dist/durable/Recovery.d.mts +1 -1
- package/dist/durable/RunJournal.d.mts +1 -1
- package/dist/durable/Schedule.d.mts +1 -1
- package/dist/durable/ScheduleStoreConformance.d.mts +1 -1
- package/dist/durable/ScheduleTransition.d.mts +1 -1
- package/dist/durable/Scheduling.d.mts +2 -2
- package/dist/durable/SqlMessageDeliveryStore.mjs +7 -1
- package/dist/durable/SqlMessageDeliveryStore.mjs.map +1 -1
- package/dist/durable/SqlStorageV2Upgrade.d.mts +2 -2
- package/dist/durable/SqlSubscriptionStore.d.mts +2 -2
- package/dist/durable/SqlThreadNativeReads.d.mts +5 -1
- package/dist/durable/SqlThreadNativeReads.mjs +6 -0
- package/dist/durable/SqlThreadNativeReads.mjs.map +1 -1
- package/dist/durable/SubmissionLedger.d.mts +2 -2
- package/dist/durable/SubmissionLedger.mjs +34 -4
- package/dist/durable/SubmissionLedger.mjs.map +1 -1
- package/dist/durable/SubmissionLedgerConformance.d.mts +1 -1
- package/dist/durable/SubmissionLedgerConformance.mjs +899 -706
- package/dist/durable/SubmissionLedgerConformance.mjs.map +1 -1
- 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/SubscriptionTools.d.mts +3 -3
- package/dist/durable/SubscriptionTransition.d.mts +1 -1
- package/dist/durable/Subscriptions.d.mts +5 -5
- package/dist/durable/ThreadContextHistory.d.mts +1 -1
- package/dist/durable/ThreadContextHistoryProjection.d.mts +1 -1
- package/dist/durable/ThreadInvariants.d.mts +1 -1
- package/dist/durable/ThreadProjection.d.mts +1 -1
- package/dist/durable/ThreadProjectionMaintenance.d.mts +1 -1
- package/dist/durable/ThreadStore.d.mts +1 -1
- package/dist/durable/ThreadStore.mjs +5 -0
- package/dist/durable/ThreadStore.mjs.map +1 -1
- package/dist/durable/ThreadStoreConformance.d.mts +1 -1
- package/dist/durable/WorkerHost.d.mts +3 -3
- package/dist/durable/WorkerHost.mjs +1 -1
- package/dist/engine/AgentRuntime.d.mts +1 -1
- package/dist/engine/AgentRuntime.mjs +1 -1
- package/dist/engine/MessagingHost.d.mts +1 -1
- package/dist/engine/MessagingHost.mjs +1 -1
- package/dist/engine/Output.d.mts +1 -1
- package/dist/engine/RunOptions.d.mts +1 -1
- package/dist/engine/SubagentHost.d.mts +2 -2
- package/dist/engine/SubagentHost.mjs +5 -1
- package/dist/engine/SubagentHost.mjs.map +1 -1
- package/dist/index.d.mts +16 -16
- package/dist/index.mjs +5 -5
- package/package.json +1 -1
- package/src/capabilities/Subagent.ts +2 -1
- package/src/capabilities/internal/subagent-background.ts +86 -57
- package/src/capabilities/internal/subagent-reporting.ts +3 -128
- package/src/core/Agent.ts +8 -1
- package/src/core/Worker.ts +58 -2
- package/src/durable/DurableAgentRuntime.ts +2 -0
- package/src/durable/DurableFailpoint.ts +4 -0
- package/src/durable/MessageDelivery.ts +17 -2
- package/src/durable/Records.ts +12 -2
- package/src/durable/SqlMessageDeliveryStore.ts +15 -1
- package/src/durable/SqlThreadNativeReads.ts +14 -0
- package/src/durable/SubmissionLedger.ts +48 -1
- package/src/durable/SubmissionLedgerConformance.ts +260 -42
- package/src/durable/ThreadStore.ts +5 -0
- package/src/durable/internal/agent-registration.ts +13 -48
- package/src/durable/internal/worker-host.ts +490 -341
- package/src/engine/SubagentHost.ts +37 -13
- package/src/engine/internal/agent-runtime.ts +17 -2
- package/dist/AgentRuntime-DLwPoEVH.mjs.map +0 -1
- package/dist/DurableAgentRuntime-BIrgxwRl.mjs.map +0 -1
- package/dist/Subagent-D9eYdGTl.mjs.map +0 -1
- package/dist/Worker-T_3RbaKc.mjs.map +0 -1
- package/dist/agent-registration-B5CI-Ygk.mjs.map +0 -1
|
@@ -16,10 +16,10 @@ declare namespace DurableFailpoint_d_exports {
|
|
|
16
16
|
* suspension, child abort propagation, the atomic join batch, and both reservation-release
|
|
17
17
|
* transitions.
|
|
18
18
|
*/
|
|
19
|
-
declare const DurableRuntimeFailpointLocation: Schema.Literals<readonly ["submit:after-admit", "submit:after-materialize", "claim:after-claim", "input:after-canonical-append", "run:before-start-append", "run:after-start-append", "run:before-duration-append", "run:after-duration-append", "turn:after-canonical-append", "turn:after-response-append", "turn:after-results-append", "compaction:before-canonical-append", "compaction:after-canonical-append", "checkpoint:before-save", "checkpoint:after-save", "tools:after-prepared-append", "tools:before-prepared-append", "tools:before-unavailable-append", "tools:after-unavailable-append", "policy:before-reservation-append", "policy:after-reservation-append", "step:after-step-append", "approval:after-request-append", "approval:after-suspend", "join:after-claim", "join:after-canonical-append", "resolve:after-intent", "terminalize:after-reserve", "terminalize:after-canonical-append", "abort:after-intent", "subagent:after-reserve", "subagent:after-request-append", "subagent:after-admit", "subagent:after-child-ready", "subagent:after-start-append", "subagent:after-sibling-settle", "subagent:after-suspend", "subagent:after-child-abort-intent", "subagent:before-join-append", "subagent:after-join-append", "subagent:after-release-pending", "subagent:after-release", "worker:before-source-append", "worker:after-source-append", "worker:before-origin-append", "worker:after-origin-append", "worker:before-completion-append", "worker:after-completion-append", "worker:before-subtree-append", "worker:after-subtree-append", "worker:before-report-append", "worker:after-report-append", "worker:before-report-delivery", "worker:after-report-delivery", "update:before-canonical-append", "update:after-canonical-append", "update:before-delivery-insert", "update:after-delivery-insert"]>;
|
|
19
|
+
declare const DurableRuntimeFailpointLocation: Schema.Literals<readonly ["submit:after-admit", "submit:after-materialize", "claim:after-claim", "input:after-canonical-append", "run:before-start-append", "run:after-start-append", "run:before-duration-append", "run:after-duration-append", "turn:after-canonical-append", "turn:after-response-append", "turn:after-results-append", "compaction:before-canonical-append", "compaction:after-canonical-append", "checkpoint:before-save", "checkpoint:after-save", "tools:after-prepared-append", "tools:before-prepared-append", "tools:before-unavailable-append", "tools:after-unavailable-append", "policy:before-reservation-append", "policy:after-reservation-append", "step:after-step-append", "approval:after-request-append", "approval:after-suspend", "join:after-claim", "join:after-canonical-append", "resolve:after-intent", "terminalize:after-reserve", "terminalize:after-canonical-append", "abort:after-intent", "subagent:after-reserve", "subagent:after-request-append", "subagent:after-admit", "subagent:after-child-ready", "subagent:after-start-append", "subagent:after-sibling-settle", "subagent:after-suspend", "subagent:after-child-abort-intent", "subagent:before-join-append", "subagent:after-join-append", "subagent:after-release-pending", "subagent:after-release", "worker:before-stop-append", "worker:after-stop-append", "worker:before-stop-seal", "worker:after-stop-seal", "worker:before-source-append", "worker:after-source-append", "worker:before-origin-append", "worker:after-origin-append", "worker:before-completion-append", "worker:after-completion-append", "worker:before-subtree-append", "worker:after-subtree-append", "worker:before-report-append", "worker:after-report-append", "worker:before-report-delivery", "worker:after-report-delivery", "update:before-canonical-append", "update:after-canonical-append", "update:before-delivery-insert", "update:after-delivery-insert"]>;
|
|
20
20
|
type DurableRuntimeFailpointLocation = typeof DurableRuntimeFailpointLocation.Type;
|
|
21
21
|
declare const DurableRuntimeFailpointError_base: Schema.Class<DurableRuntimeFailpointError, Schema.TaggedStruct<"DurableRuntimeFailpointError", {
|
|
22
|
-
readonly location: Schema.Literals<readonly ["submit:after-admit", "submit:after-materialize", "claim:after-claim", "input:after-canonical-append", "run:before-start-append", "run:after-start-append", "run:before-duration-append", "run:after-duration-append", "turn:after-canonical-append", "turn:after-response-append", "turn:after-results-append", "compaction:before-canonical-append", "compaction:after-canonical-append", "checkpoint:before-save", "checkpoint:after-save", "tools:after-prepared-append", "tools:before-prepared-append", "tools:before-unavailable-append", "tools:after-unavailable-append", "policy:before-reservation-append", "policy:after-reservation-append", "step:after-step-append", "approval:after-request-append", "approval:after-suspend", "join:after-claim", "join:after-canonical-append", "resolve:after-intent", "terminalize:after-reserve", "terminalize:after-canonical-append", "abort:after-intent", "subagent:after-reserve", "subagent:after-request-append", "subagent:after-admit", "subagent:after-child-ready", "subagent:after-start-append", "subagent:after-sibling-settle", "subagent:after-suspend", "subagent:after-child-abort-intent", "subagent:before-join-append", "subagent:after-join-append", "subagent:after-release-pending", "subagent:after-release", "worker:before-source-append", "worker:after-source-append", "worker:before-origin-append", "worker:after-origin-append", "worker:before-completion-append", "worker:after-completion-append", "worker:before-subtree-append", "worker:after-subtree-append", "worker:before-report-append", "worker:after-report-append", "worker:before-report-delivery", "worker:after-report-delivery", "update:before-canonical-append", "update:after-canonical-append", "update:before-delivery-insert", "update:after-delivery-insert"]>;
|
|
22
|
+
readonly location: Schema.Literals<readonly ["submit:after-admit", "submit:after-materialize", "claim:after-claim", "input:after-canonical-append", "run:before-start-append", "run:after-start-append", "run:before-duration-append", "run:after-duration-append", "turn:after-canonical-append", "turn:after-response-append", "turn:after-results-append", "compaction:before-canonical-append", "compaction:after-canonical-append", "checkpoint:before-save", "checkpoint:after-save", "tools:after-prepared-append", "tools:before-prepared-append", "tools:before-unavailable-append", "tools:after-unavailable-append", "policy:before-reservation-append", "policy:after-reservation-append", "step:after-step-append", "approval:after-request-append", "approval:after-suspend", "join:after-claim", "join:after-canonical-append", "resolve:after-intent", "terminalize:after-reserve", "terminalize:after-canonical-append", "abort:after-intent", "subagent:after-reserve", "subagent:after-request-append", "subagent:after-admit", "subagent:after-child-ready", "subagent:after-start-append", "subagent:after-sibling-settle", "subagent:after-suspend", "subagent:after-child-abort-intent", "subagent:before-join-append", "subagent:after-join-append", "subagent:after-release-pending", "subagent:after-release", "worker:before-stop-append", "worker:after-stop-append", "worker:before-stop-seal", "worker:after-stop-seal", "worker:before-source-append", "worker:after-source-append", "worker:before-origin-append", "worker:after-origin-append", "worker:before-completion-append", "worker:after-completion-append", "worker:before-subtree-append", "worker:after-subtree-append", "worker:before-report-append", "worker:after-report-append", "worker:before-report-delivery", "worker:after-report-delivery", "update:before-canonical-append", "update:after-canonical-append", "update:before-delivery-insert", "update:after-delivery-insert"]>;
|
|
23
23
|
}>, import("effect/Cause").YieldableError>;
|
|
24
24
|
/** Injected coordinator fault. Reaching the caller means the preceding durable step committed. */
|
|
25
25
|
declare class DurableRuntimeFailpointError extends DurableRuntimeFailpointError_base {}
|
|
@@ -38,4 +38,4 @@ declare class DurableRuntimeFailpoint extends DurableRuntimeFailpoint_base {
|
|
|
38
38
|
}
|
|
39
39
|
//#endregion
|
|
40
40
|
export { DurableRuntimeFailpointLocation as a, DurableRuntimeFailpointHandler as i, DurableRuntimeFailpoint as n, DurableRuntimeFailpointError as r, DurableFailpoint_d_exports as t };
|
|
41
|
-
//# sourceMappingURL=DurableFailpoint-
|
|
41
|
+
//# sourceMappingURL=DurableFailpoint-Cnr3wx1L.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as PersistedJson } from "./Records-
|
|
2
|
-
import { E as SubscriptionSourceError, b as SubscriptionRecord, i as EventSourceVersion, t as AcceptedEvent } from "./Subscription-
|
|
1
|
+
import { O as PersistedJson } from "./Records-Byeb70tt.mjs";
|
|
2
|
+
import { E as SubscriptionSourceError, b as SubscriptionRecord, i as EventSourceVersion, t as AcceptedEvent } from "./Subscription-Xnwd42Sm.mjs";
|
|
3
3
|
import { Context, Effect, Schema, Scope } from "effect";
|
|
4
4
|
declare namespace EventSource_d_exports {
|
|
5
5
|
export { EventSource, EventSources, NormalizedEvent, makeEventSource };
|
|
@@ -48,4 +48,4 @@ declare const makeEventSource: <Event extends Schema.Top, Parameters extends Sch
|
|
|
48
48
|
}) => Effect.Effect<EventSource, never, Exclude<R, Scope.Scope> | Exclude<Event["DecodingServices"], Scope.Scope> | Exclude<Event["EncodingServices"], Scope.Scope> | Exclude<Parameters["DecodingServices"], Scope.Scope> | Exclude<Parameters["EncodingServices"], Scope.Scope>>;
|
|
49
49
|
//#endregion
|
|
50
50
|
export { makeEventSource as a, NormalizedEvent as i, EventSource_d_exports as n, EventSources as r, EventSource as t };
|
|
51
|
-
//# sourceMappingURL=EventSource-
|
|
51
|
+
//# sourceMappingURL=EventSource-DPRdlvhV.d.mts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as Receipt, t as IdempotencyKey } from "./Receipt-BAHyigAF.mjs";
|
|
2
|
-
import { r as AnyDefinition } from "./Agent-
|
|
2
|
+
import { r as AnyDefinition } from "./Agent-D9cXqfF3.mjs";
|
|
3
3
|
import { a as MessageAdmission, c as MessageRef, i as MessageAddress, l as MessageStatus, n as InboxPage, o as MessagingError, r as InputMessage, s as PeerName, t as InboxEntry } from "./Messaging-Dkg87ebg.mjs";
|
|
4
|
-
import { t as MessagingHost } from "./MessagingHost-
|
|
4
|
+
import { t as MessagingHost } from "./MessagingHost-CqzpxbGz.mjs";
|
|
5
5
|
import { Tool, Toolkit } from "effect/unstable/ai";
|
|
6
6
|
import { Crypto, Effect, Schema } from "effect";
|
|
7
7
|
declare namespace Messaging_d_exports {
|
|
@@ -1064,4 +1064,4 @@ declare const retryTool: <const Name extends string, Input extends Schema.Top>(d
|
|
|
1064
1064
|
};
|
|
1065
1065
|
//#endregion
|
|
1066
1066
|
export { inspect as a, reply as c, retryTool as d, send as f, inboxTool as i, replyTool as l, Peer as n, inspectTool as o, sendTool as p, inbox as r, peer as s, Messaging_d_exports as t, retry as u };
|
|
1067
|
-
//# sourceMappingURL=Messaging-
|
|
1067
|
+
//# sourceMappingURL=Messaging-JYYN3oYS.d.mts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { u as ThreadId } from "./Identifiers-CN2s30fF.mjs";
|
|
2
2
|
import { r as Principal, t as IdempotencyKey } from "./Receipt-BAHyigAF.mjs";
|
|
3
|
-
import { r as AnyDefinition } from "./Agent-
|
|
4
|
-
import {
|
|
3
|
+
import { r as AnyDefinition } from "./Agent-D9cXqfF3.mjs";
|
|
4
|
+
import { h as WorkerSource } from "./Worker-fwWkBg12.mjs";
|
|
5
5
|
import { c as MessageRef, i as MessageAddress, l as MessageStatus, n as InboxPage, o as MessagingError } from "./Messaging-Dkg87ebg.mjs";
|
|
6
6
|
import { Context, Effect } from "effect";
|
|
7
7
|
declare namespace MessagingHost_d_exports {
|
|
@@ -71,4 +71,4 @@ declare const PeerDeliveryLifetime: Context.Reference<number>;
|
|
|
71
71
|
declare const PeerMessageCapacity: Context.Reference<number>;
|
|
72
72
|
//#endregion
|
|
73
73
|
export { PeerDeliveryLifetime as a, PeerTarget as c, PeerAuthorizer as i, SendPeerMessage as l, MessagingHost_d_exports as n, PeerMessageCapacity as o, PeerAuthorizationRequest as r, PeerRoutes as s, MessagingHost as t };
|
|
74
|
-
//# sourceMappingURL=MessagingHost-
|
|
74
|
+
//# sourceMappingURL=MessagingHost-CqzpxbGz.d.mts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
|
|
2
2
|
import { AgentId, ThreadId } from "./core/Identifiers.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { S as MessageRef, r as FrameworkMessage } from "./Worker-CfwzMZEK.mjs";
|
|
4
4
|
import { Context, Schema } from "effect";
|
|
5
5
|
//#region src/core/Messaging.ts
|
|
6
6
|
/** Application-chosen fixed route name; it never authorizes a destination by itself. */
|
|
@@ -107,4 +107,4 @@ const PeerMessageCapacity = Context.Reference("@effect-agent/thread/PeerMessageC
|
|
|
107
107
|
//#endregion
|
|
108
108
|
export { PeerMessageCapacity as a, InboxPage as c, MessageAdmission as d, MessagingError as f, PeerDeliveryLifetime as i, InputMessage as l, MessagingHost_exports as n, PeerRoutes as o, PeerName as p, PeerAuthorizer as r, InboxEntry as s, MessagingHost as t, MessageAddress as u };
|
|
109
109
|
|
|
110
|
-
//# sourceMappingURL=MessagingHost-
|
|
110
|
+
//# sourceMappingURL=MessagingHost-DfsbMPvq.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessagingHost-
|
|
1
|
+
{"version":3,"file":"MessagingHost-DfsbMPvq.mjs","names":[],"sources":["../src/core/Messaging.ts","../src/engine/MessagingHost.ts"],"sourcesContent":["import { Schema } from \"effect\";\n\nimport { AgentId, ThreadId } from \"./Identifiers.ts\";\nimport { MessageRef } from \"./internal/message-status.ts\";\nimport { FrameworkMessage } from \"./Worker.ts\";\n\nexport { MessageRef, MessageStatus } from \"./internal/message-status.ts\";\n\n/** Application-chosen fixed route name; it never authorizes a destination by itself. */\nexport const PeerName = Schema.NonEmptyString.check(\n Schema.isMaxLength(64),\n Schema.isPattern(/^[a-zA-Z0-9_-]+$/u),\n);\n\nexport type PeerName = typeof PeerName.Type;\n\nexport const MessageAddress = Schema.Struct({ threadId: ThreadId, agentId: AgentId });\nexport type MessageAddress = typeof MessageAddress.Type;\n\n/** Host-authenticated provenance stored separately from destination-owned application input. */\nexport const MessageAdmission = Schema.Struct({\n schemaVersion: Schema.Literal(1),\n message: MessageRef,\n peerName: PeerName,\n sender: MessageAddress,\n returnAddress: MessageAddress,\n inReplyTo: Schema.optionalKey(MessageRef),\n}).check(\n Schema.makeFilter(\n (value) =>\n value.message.ownerThreadId === value.sender.threadId &&\n value.sender.threadId === value.returnAddress.threadId &&\n value.sender.agentId === value.returnAddress.agentId,\n ),\n);\n\nexport type MessageAdmission = typeof MessageAdmission.Type;\n\nexport const InboxEntry = Schema.Struct({\n sequence: Schema.Natural.check(Schema.isGreaterThan(0)),\n admission: MessageAdmission,\n});\n\nexport type InboxEntry = typeof InboxEntry.Type;\n\nexport const InboxPage = Schema.Struct({\n items: Schema.Array(InboxEntry).check(Schema.isMaxLength(100)),\n next: Schema.NullOr(Schema.Natural),\n});\n\nexport type InboxPage = typeof InboxPage.Type;\n\nexport class MessagingError extends Schema.TaggedError<MessagingError>()(\"MessagingError\", {\n operation: Schema.Literals([\"context\", \"send\", \"reply\", \"inbox\", \"inspect\", \"retry\"]),\n reason: Schema.Literals([\n \"denied\",\n \"unavailable\",\n \"route-unavailable\",\n \"binding-mismatch\",\n \"invalid-input\",\n \"invalid-reference\",\n \"conflict\",\n \"capacity\",\n \"not-found\",\n \"storage\",\n \"corrupt\",\n ]),\n}) {}\n\n/** Canonical input provenance: peer input or a framework-owned completion message. */\nexport const InputMessage = Schema.Union([MessageAdmission, FrameworkMessage]);\nexport type InputMessage = typeof InputMessage.Type;\n","import { Context, type Effect } from \"effect\";\n\nimport type { AnyDefinition } from \"../core/Agent.ts\";\nimport type { ThreadId } from \"../core/Identifiers.ts\";\nimport {\n type InboxPage,\n type MessageAddress,\n type MessageRef,\n type MessageStatus,\n MessagingError,\n} from \"../core/Messaging.ts\";\nimport type { IdempotencyKey, Principal } from \"../core/Receipt.ts\";\nimport type { WorkerSource } from \"../core/Worker.ts\";\n\nexport interface PeerTarget {\n readonly name: string;\n readonly target: AnyDefinition;\n}\n\n/** A fixed declaration chooses the route. Caller input never selects a destination Thread. */\nexport interface SendPeerMessage extends PeerTarget {\n readonly encodedInput: unknown;\n readonly idempotencyKey: IdempotencyKey;\n /** Correlation on sends; replies additionally resolve and authorize the recorded return address. */\n readonly inReplyTo?: MessageRef;\n}\n\n/** Trusted per-invocation facet. It carries caller authority without exposing it in Tool schemas. */\nexport class MessagingHost extends Context.Service<\n MessagingHost,\n {\n readonly context: Effect.Effect<WorkerSource, MessagingError>;\n readonly send: (request: SendPeerMessage) => Effect.Effect<MessageStatus, MessagingError>;\n readonly reply: (\n request: SendPeerMessage & { readonly inReplyTo: MessageRef },\n ) => Effect.Effect<MessageStatus, MessagingError>;\n readonly inbox: (\n request: PeerTarget & { readonly after?: number; readonly limit: number },\n ) => Effect.Effect<InboxPage, MessagingError>;\n readonly inspect: (\n request: PeerTarget & { readonly message: MessageRef },\n ) => Effect.Effect<MessageStatus, MessagingError>;\n readonly retry: (\n request: PeerTarget & { readonly message: MessageRef },\n ) => Effect.Effect<MessageStatus, MessagingError>;\n }\n>()(\"@effect-agent/engine/MessagingHost\") {\n static readonly unavailable: MessagingHost[\"Service\"] = {\n context: MessagingError.make({ operation: \"context\", reason: \"unavailable\" }),\n send: () => MessagingError.make({ operation: \"send\", reason: \"unavailable\" }),\n reply: () => MessagingError.make({ operation: \"reply\", reason: \"unavailable\" }),\n inbox: () => MessagingError.make({ operation: \"inbox\", reason: \"unavailable\" }),\n inspect: () => MessagingError.make({ operation: \"inspect\", reason: \"unavailable\" }),\n retry: () => MessagingError.make({ operation: \"retry\", reason: \"unavailable\" }),\n };\n\n /** Runtime-owned per-call binding. Unconfigured Runs deny peer operations. */\n static readonly forTool = Context.Reference<\n (source: Extract<WorkerSource, { readonly _tag: \"tool\" }>) => MessagingHost[\"Service\"]\n >(\"@effect-agent/engine/MessagingHost/forTool\", {\n defaultValue: () => () => MessagingHost.unavailable,\n });\n}\n\n/** Separate context, history, send and management grants; incoming messages grant none of them. */\nexport interface PeerAuthorizationRequest {\n readonly source: MessageAddress;\n readonly principal: Principal;\n readonly operation: MessagingError[\"operation\"];\n readonly access: \"context\" | \"read\" | \"send\" | \"control\";\n readonly peerName?: string;\n readonly destination?: MessageAddress;\n}\n\nexport const PeerAuthorizer = Context.Reference<{\n /** Return the stable delivery principal for sends. It is retained with the frozen envelope. */\n readonly authorize: (\n request: PeerAuthorizationRequest,\n ) => Effect.Effect<Principal, MessagingError>;\n}>(\"@effect-agent/thread/PeerAuthorizer\", {\n defaultValue: () => ({\n authorize: (request) => MessagingError.make({ operation: request.operation, reason: \"denied\" }),\n }),\n});\n\n/** Application-owned routing; the target Agent is resolved from the existing exact registrations. */\nexport const PeerRoutes = Context.Reference<{\n readonly resolve: (request: {\n readonly source: MessageAddress;\n readonly principal: Principal;\n readonly peerName: string;\n readonly targetAgentId: MessageAddress[\"agentId\"];\n }) => Effect.Effect<ThreadId, MessagingError>;\n}>(\"@effect-agent/thread/PeerRoutes\", {\n defaultValue: () => ({\n resolve: () => MessagingError.make({ operation: \"send\", reason: \"route-unavailable\" }),\n }),\n});\n\n/** Retry windows are finite; exhaustion parks the retained envelope for explicit authorized retry. */\nexport const PeerDeliveryLifetime = Context.Reference<number>(\n \"@effect-agent/thread/PeerDeliveryLifetime\",\n { defaultValue: () => 86_400_000 },\n);\n\n/** Bound canonical send intents across all peers and principals in one source Thread. */\nexport const PeerMessageCapacity = Context.Reference<number>(\n \"@effect-agent/thread/PeerMessageCapacity\",\n { defaultValue: () => 256 },\n);\n"],"mappings":";;;;;;AASA,MAAa,WAAW,OAAO,eAAe,MAC5C,OAAO,YAAY,EAAE,GACrB,OAAO,UAAU,mBAAmB,CACtC;AAIA,MAAa,iBAAiB,OAAO,OAAO;CAAE,UAAU;CAAU,SAAS;AAAQ,CAAC;;AAIpF,MAAa,mBAAmB,OAAO,OAAO;CAC5C,eAAe,OAAO,QAAQ,CAAC;CAC/B,SAAS;CACT,UAAU;CACV,QAAQ;CACR,eAAe;CACf,WAAW,OAAO,YAAY,UAAU;AAC1C,CAAC,CAAC,CAAC,MACD,OAAO,YACJ,UACC,MAAM,QAAQ,kBAAkB,MAAM,OAAO,YAC7C,MAAM,OAAO,aAAa,MAAM,cAAc,YAC9C,MAAM,OAAO,YAAY,MAAM,cAAc,OACjD,CACF;AAIA,MAAa,aAAa,OAAO,OAAO;CACtC,UAAU,OAAO,QAAQ,MAAM,OAAO,cAAc,CAAC,CAAC;CACtD,WAAW;AACb,CAAC;AAID,MAAa,YAAY,OAAO,OAAO;CACrC,OAAO,OAAO,MAAM,UAAU,CAAC,CAAC,MAAM,OAAO,YAAY,GAAG,CAAC;CAC7D,MAAM,OAAO,OAAO,OAAO,OAAO;AACpC,CAAC;AAID,IAAa,iBAAb,cAAoC,OAAO,YAA4B,CAAC,CAAC,kBAAkB;CACzF,WAAW,OAAO,SAAS;EAAC;EAAW;EAAQ;EAAS;EAAS;EAAW;CAAO,CAAC;CACpF,QAAQ,OAAO,SAAS;EACtB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CAAC;AACH,CAAC,CAAC,CAAC,CAAC;;AAGJ,MAAa,eAAe,OAAO,MAAM,CAAC,kBAAkB,gBAAgB,CAAC;;;;;;;;;;;AC1C7E,IAAa,gBAAb,MAAa,sBAAsB,QAAQ,QAkBzC,CAAC,CAAC,oCAAoC,CAAC,CAAC;CACxC,OAAgB,cAAwC;EACtD,SAAS,eAAe,KAAK;GAAE,WAAW;GAAW,QAAQ;EAAc,CAAC;EAC5E,YAAY,eAAe,KAAK;GAAE,WAAW;GAAQ,QAAQ;EAAc,CAAC;EAC5E,aAAa,eAAe,KAAK;GAAE,WAAW;GAAS,QAAQ;EAAc,CAAC;EAC9E,aAAa,eAAe,KAAK;GAAE,WAAW;GAAS,QAAQ;EAAc,CAAC;EAC9E,eAAe,eAAe,KAAK;GAAE,WAAW;GAAW,QAAQ;EAAc,CAAC;EAClF,aAAa,eAAe,KAAK;GAAE,WAAW;GAAS,QAAQ;EAAc,CAAC;CAChF;;CAGA,OAAgB,UAAU,QAAQ,UAEhC,8CAA8C,EAC9C,0BAA0B,cAAc,YAC1C,CAAC;AACH;AAYA,MAAa,iBAAiB,QAAQ,UAKnC,uCAAuC,EACxC,qBAAqB,EACnB,YAAY,YAAY,eAAe,KAAK;CAAE,WAAW,QAAQ;CAAW,QAAQ;AAAS,CAAC,EAChG,GACF,CAAC;;AAGD,MAAa,aAAa,QAAQ,UAO/B,mCAAmC,EACpC,qBAAqB,EACnB,eAAe,eAAe,KAAK;CAAE,WAAW;CAAQ,QAAQ;AAAoB,CAAC,EACvF,GACF,CAAC;;AAGD,MAAa,uBAAuB,QAAQ,UAC1C,6CACA,EAAE,oBAAoB,MAAW,CACnC;;AAGA,MAAa,sBAAsB,QAAQ,UACzC,4CACA,EAAE,oBAAoB,IAAI,CAC5B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./Agent-
|
|
1
|
+
import "./Agent-D9cXqfF3.mjs";
|
|
2
2
|
import { Prompt } from "effect/unstable/ai";
|
|
3
3
|
import { Schema } from "effect";
|
|
4
4
|
//#region src/engine/internal/output-contract.d.ts
|
|
@@ -22,4 +22,4 @@ declare namespace Output_d_exports {
|
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
|
24
24
|
export { textOutput as n, Output_d_exports as t };
|
|
25
|
-
//# sourceMappingURL=Output-
|
|
25
|
+
//# sourceMappingURL=Output-V-6YL1_Z.d.mts.map
|
package/dist/{PreparedInputAdmission-_WYg-D0f.d.mts → PreparedInputAdmission-DqQUjA9k.d.mts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as Receipt } from "./Receipt-BAHyigAF.mjs";
|
|
2
2
|
import { a as FailureDiagnostic_d_exports, r as Diagnostic } from "./FailureDiagnostic-CaAkzGHL.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { H as ScheduledInputRefused, V as ScheduledInputFailure, j as ScheduleStorageError } from "./Schedule-
|
|
5
|
-
import { a as PreparedInput } from "./Subscription-
|
|
3
|
+
import { Pn as SubmissionStatus } from "./Records-Byeb70tt.mjs";
|
|
4
|
+
import { H as ScheduledInputRefused, V as ScheduledInputFailure, j as ScheduleStorageError } from "./Schedule-krSnBcbU.mjs";
|
|
5
|
+
import { a as PreparedInput } from "./Subscription-Xnwd42Sm.mjs";
|
|
6
6
|
import { Context, Effect } from "effect";
|
|
7
7
|
declare namespace PreparedInputAdmission_d_exports {
|
|
8
8
|
export { PreparedInputAdmission, admitPreparedInput };
|
|
@@ -39,4 +39,4 @@ declare const admitPreparedInput: <R>(submit: Effect.Effect<Receipt, ScheduledIn
|
|
|
39
39
|
}, ScheduleStorageError, R>;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { PreparedInputAdmission_d_exports as n, admitPreparedInput as r, PreparedInputAdmission as t };
|
|
42
|
-
//# sourceMappingURL=PreparedInputAdmission-
|
|
42
|
+
//# sourceMappingURL=PreparedInputAdmission-DqQUjA9k.d.mts.map
|
|
@@ -10,23 +10,23 @@ import { a as FailureDiagnostic_d_exports, r as Diagnostic } from "./FailureDiag
|
|
|
10
10
|
import { a as AgentInputError } from "./AgentError-Bn1ytXRD.mjs";
|
|
11
11
|
import { t as ToolParameterRejection } from "./ToolResult-BKdqWRff.mjs";
|
|
12
12
|
import { t as AgentPolicy } from "./AgentPolicy-BqDoSXO6.mjs";
|
|
13
|
-
import { E as RunDispositionDeclaration, _ as InstructionSource, c as Definition, m as InputPromptSource, n as Any, r as AnyDefinition, t as Agent_d_exports, y as ModelServices } from "./Agent-
|
|
13
|
+
import { E as RunDispositionDeclaration, _ as InstructionSource, c as Definition, m as InputPromptSource, n as Any, r as AnyDefinition, t as Agent_d_exports, y as ModelServices } from "./Agent-D9cXqfF3.mjs";
|
|
14
14
|
import { t as RunPolicyUsage } from "./RunPolicyUsage-ClZxyR46.mjs";
|
|
15
|
-
import {
|
|
16
|
-
import { G as RunToolAuthorization, O as RunCostEstimator, h as RunApprovalHook, x as RunContextPreparation } from "./RunOptions-
|
|
15
|
+
import { c as WorkerError, f as WorkerRef, n as AssignmentTerminal } from "./Worker-fwWkBg12.mjs";
|
|
16
|
+
import { G as RunToolAuthorization, O as RunCostEstimator, h as RunApprovalHook, x as RunContextPreparation } from "./RunOptions-CSBsSj0X.mjs";
|
|
17
17
|
import { o as MessagingError, r as InputMessage } from "./Messaging-Dkg87ebg.mjs";
|
|
18
|
-
import { t as MessagingHost } from "./MessagingHost-
|
|
19
|
-
import "./Messaging-
|
|
20
|
-
import {
|
|
21
|
-
import { p as RuntimeBinding, r as AgentCompletionProjectionRequirements, s as AgentRuntimeRequirements } from "./AgentRuntime-
|
|
22
|
-
import { n as DurableRuntimeFailpoint, r as DurableRuntimeFailpointError } from "./DurableFailpoint-
|
|
18
|
+
import { t as MessagingHost } from "./MessagingHost-CqzpxbGz.mjs";
|
|
19
|
+
import "./Messaging-JYYN3oYS.mjs";
|
|
20
|
+
import { a as SubagentHost, d as WorkerReporting, u as WorkerReportPreparationFailure } from "./SubagentHost-P9zB_TfV.mjs";
|
|
21
|
+
import { p as RuntimeBinding, r as AgentCompletionProjectionRequirements, s as AgentRuntimeRequirements } from "./AgentRuntime-DyZv8uu2.mjs";
|
|
22
|
+
import { n as DurableRuntimeFailpoint, r as DurableRuntimeFailpointError } from "./DurableFailpoint-Cnr3wx1L.mjs";
|
|
23
23
|
import { o as OperationDenied } from "./OperationAuthorizer-TzcQtpX5.mjs";
|
|
24
24
|
import { s as ToolReconciler } from "./ToolReconciler-BmVRAHKs.mjs";
|
|
25
25
|
import { t as WakeScheduler } from "./WakeScheduler-EjUF-GhC.mjs";
|
|
26
26
|
import { Prompt, Tool } from "effect/unstable/ai";
|
|
27
27
|
import { Cause, Context, Crypto, DateTime, Duration, Effect, Layer, Option, Result, Schema, Scope, Stream } from "effect";
|
|
28
28
|
declare namespace SubmissionLedger_d_exports {
|
|
29
|
-
export { AbortCommand, AbortIntent, AbortIntentRequest, AdmissionAdmitted, AdmissionConflict, AdmissionFence, AdmissionGroup, AdmissionIndeterminate, AdmissionNotAdmitted, AdmissionPolicyError, AdmissionRequest, AdmissionResolution, AdmissionResult, ApprovalConflict, ApprovalDecisionCommand, ApprovalDecisionIntent, ApprovalPendingSuspension, AttachChildToReservationRequest, BeginChildBudgetReleaseRequest, ChildAttachmentSnapshot, ChildBudgetReservationRequest, ChildBudgetReservationSnapshot, ChildReservationConflict, ChildReservationId, ChildReservationStatus, ChildSettledNotification, ChildSettledOutcome, Claim, ClaimJoiningRequest, ClaimRequest, DEFAULT_OWNERSHIP_LEASE_DURATION, IdempotencyKey, InputAppliedMarker, JoinSnapshot, JoinedToHost, JoiningClaim, LedgerCapabilities, LedgerError, MarkInputAppliedRequest, MarkJoinedRequest, MarkReadyRequest, MarkUnknownRequest, OwnershipLost, OwnershipRenewal, OwnershipSnapshot, OwnershipToken, ParentLinkage, Principal, QueueSequence, RecoverySnapshot, RecoverySnapshotRequest, ReleaseChildBudgetRequest, ReleaseOwnershipRequest, RenewOwnershipRequest, ReservedChildBudget, ReservedSettlement, ResolutionAbortSubmission, ResolutionCompletedWithResult, ResolutionNeverHappened, ResolutionSafeToRetry, RevertJoiningRequest, Settlement, SettlementConflict, SettlementFinalization, SettlementReservation, SettlementReservationSnapshot, SubmissionAdmissionFence, SubmissionLedger, SubmissionLedgerFailure, SubmissionLookup, SubmissionLookupById, SubmissionLookupByKey, SubmissionSnapshot, SubmissionState, SubmissionWorkItem, SuspendRequest, SuspensionOutcome, SuspensionReason, SuspensionSnapshot, UnknownResolution, UnknownResolutionCommand, UnknownResolutionConflict, UnknownResolutionIntent, WaitingChild, WaitingForChildSuspension, settlementFailureFromRecord, submissionAbortBatchId, submissionAbortRecordId, submissionInputBatchId, submissionInputRecordId, submissionSettlementBatchId, submissionSettlementId, submissionSettlementRecordId };
|
|
29
|
+
export { AbortCommand, AbortIntent, AbortIntentRequest, AdmissionAdmitted, AdmissionConflict, AdmissionFence, AdmissionGroup, AdmissionIndeterminate, AdmissionNotAdmitted, AdmissionPolicyError, AdmissionRequest, AdmissionResolution, AdmissionResult, ApprovalConflict, ApprovalDecisionCommand, ApprovalDecisionIntent, ApprovalPendingSuspension, AttachChildToReservationRequest, BeginChildBudgetReleaseRequest, ChildAttachmentSnapshot, ChildBudgetReservationRequest, ChildBudgetReservationSnapshot, ChildReservationConflict, ChildReservationId, ChildReservationStatus, ChildSettledNotification, ChildSettledOutcome, Claim, ClaimJoiningRequest, ClaimRequest, DEFAULT_OWNERSHIP_LEASE_DURATION, IdempotencyKey, InputAppliedMarker, JoinSnapshot, JoinedToHost, JoiningClaim, LedgerCapabilities, LedgerError, MarkInputAppliedRequest, MarkJoinedRequest, MarkReadyRequest, MarkUnknownRequest, OwnershipLost, OwnershipRenewal, OwnershipSnapshot, OwnershipToken, ParentLinkage, Principal, QueueSequence, RecoverySnapshot, RecoverySnapshotRequest, ReleaseChildBudgetRequest, ReleaseOwnershipRequest, RenewOwnershipRequest, ReservedChildBudget, ReservedSettlement, ResolutionAbortSubmission, ResolutionCompletedWithResult, ResolutionNeverHappened, ResolutionSafeToRetry, RevertJoiningRequest, Settlement, SettlementConflict, SettlementFinalization, SettlementReservation, SettlementReservationSnapshot, SubmissionAdmissionFence, SubmissionLedger, SubmissionLedgerFailure, SubmissionLookup, SubmissionLookupById, SubmissionLookupByKey, SubmissionSnapshot, SubmissionState, SubmissionWorkItem, SuspendRequest, SuspensionOutcome, SuspensionReason, SuspensionSnapshot, UnknownResolution, UnknownResolutionCommand, UnknownResolutionConflict, UnknownResolutionIntent, WaitingChild, WaitingForChildSuspension, WorkerLedgerState, WorkerStopCommand, settlementFailureFromRecord, submissionAbortBatchId, submissionAbortRecordId, submissionInputBatchId, submissionInputRecordId, submissionSettlementBatchId, submissionSettlementId, submissionSettlementRecordId, workerTerminalFromRecord };
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Opaque proof that one Attempt currently owns a Submission's lane. It authorizes ledger
|
|
@@ -130,6 +130,7 @@ declare const AdmissionRequest_base: Schema.Class<AdmissionRequest, Schema.Struc
|
|
|
130
130
|
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
131
131
|
}>]>;
|
|
132
132
|
readonly budgetScope: Schema.optionalKey<Schema.Literals<readonly ["source-subtree", "worker-run"]>>;
|
|
133
|
+
readonly lifecycle: Schema.optionalKey<Schema.Literal<"assignment">>;
|
|
133
134
|
readonly targetDigests: typeof DefinitionDigests;
|
|
134
135
|
readonly policy: Schema.toCodecJson<typeof AgentPolicy>;
|
|
135
136
|
readonly budget: Schema.Struct<{
|
|
@@ -330,6 +331,7 @@ declare const SubmissionSnapshot_base: Schema.Class<SubmissionSnapshot, Schema.S
|
|
|
330
331
|
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
331
332
|
}>]>;
|
|
332
333
|
readonly budgetScope: Schema.optionalKey<Schema.Literals<readonly ["source-subtree", "worker-run"]>>;
|
|
334
|
+
readonly lifecycle: Schema.optionalKey<Schema.Literal<"assignment">>;
|
|
333
335
|
readonly targetDigests: typeof DefinitionDigests;
|
|
334
336
|
readonly policy: Schema.toCodecJson<typeof AgentPolicy>;
|
|
335
337
|
readonly budget: Schema.Struct<{
|
|
@@ -428,6 +430,14 @@ declare const SubmissionSnapshot_base: Schema.Class<SubmissionSnapshot, Schema.S
|
|
|
428
430
|
}>, {}>;
|
|
429
431
|
/** The full durable ledger view of one Submission. */
|
|
430
432
|
declare class SubmissionSnapshot extends SubmissionSnapshot_base {}
|
|
433
|
+
/** Bounded native control facts. Canonical input/Run records remain ThreadStore-owned. */
|
|
434
|
+
declare const WorkerLedgerState: Schema.Struct<{
|
|
435
|
+
readonly latest: Schema.NullOr<typeof SubmissionSnapshot>;
|
|
436
|
+
readonly active: Schema.NullOr<typeof SubmissionSnapshot>;
|
|
437
|
+
readonly stopped: Schema.Boolean;
|
|
438
|
+
readonly terminal: Schema.optionalKey<Schema.Literals<readonly ["completed", "failed", "cancelled"]>>;
|
|
439
|
+
}>;
|
|
440
|
+
type WorkerLedgerState = typeof WorkerLedgerState.Type;
|
|
431
441
|
declare const AdmissionNotAdmitted_base: Schema.Class<AdmissionNotAdmitted, Schema.TaggedStruct<"NotAdmitted", {}>, {}>;
|
|
432
442
|
/** The authoritative store proves the scoped idempotency key was never admitted (SUB-031). */
|
|
433
443
|
declare class AdmissionNotAdmitted extends AdmissionNotAdmitted_base {}
|
|
@@ -663,6 +673,19 @@ declare class Settlement extends Settlement_base {}
|
|
|
663
673
|
* the canonical record remains the authority.
|
|
664
674
|
*/
|
|
665
675
|
declare const settlementFailureFromRecord: (record: RecordEnvelope) => SettlementFailureDiagnostic | undefined;
|
|
676
|
+
/**
|
|
677
|
+
* Assignment intent derived only from frozen admission and exact settlement evidence.
|
|
678
|
+
* Joined receipts and cancellation before a Run starts do not finish an assignment.
|
|
679
|
+
* Adapters suppress completed intent when newer accepted input remains unapplied, then
|
|
680
|
+
* install the first seal and outstanding abort intents atomically before releasing the lane.
|
|
681
|
+
*/
|
|
682
|
+
declare const workerTerminalFromRecord: (submission: SubmissionSnapshot, record: RecordEnvelope) => AssignmentTerminal | undefined;
|
|
683
|
+
/** Destination-owned permanent inbox seal; recorded atomically with all outstanding abort intents. */
|
|
684
|
+
declare const WorkerStopCommand: Schema.Struct<{
|
|
685
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
686
|
+
readonly author: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">;
|
|
687
|
+
}>;
|
|
688
|
+
type WorkerStopCommand = typeof WorkerStopCommand.Type;
|
|
666
689
|
declare const AbortCommand_base: Schema.Class<AbortCommand, Schema.Struct<{
|
|
667
690
|
readonly submissionId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SubmissionId">;
|
|
668
691
|
readonly author: Schema.NonEmptyString;
|
|
@@ -1103,6 +1126,9 @@ declare const SubmissionLedger_base: Context.ServiceClass<SubmissionLedger, "@ef
|
|
|
1103
1126
|
readonly markInputApplied: (request: MarkInputAppliedRequest) => Effect.Effect<void, OwnershipLost | LedgerError>;
|
|
1104
1127
|
readonly reserveSettlement: (request: SettlementReservation) => Effect.Effect<ReservedSettlement, SettlementConflict | OwnershipLost | LedgerError>;
|
|
1105
1128
|
readonly finalizeSettlement: (request: SettlementFinalization) => Effect.Effect<Settlement, SettlementConflict | LedgerError>;
|
|
1129
|
+
/** Optional for third-party adapters. Remaining ownership must reach zero before stop acknowledgement. */
|
|
1130
|
+
readonly inspectWorker?: (threadId: ThreadId) => Effect.Effect<WorkerLedgerState, LedgerError>;
|
|
1131
|
+
readonly stopWorker?: (request: WorkerStopCommand) => Effect.Effect<number, LedgerError>;
|
|
1106
1132
|
readonly requestAbort: (request: AbortCommand) => Effect.Effect<AbortIntent, SettlementConflict | JoinedToHost | LedgerError>;
|
|
1107
1133
|
/**
|
|
1108
1134
|
* Strongly consistent lane-local read. Unknown Submissions fail with LedgerError. Canonical
|
|
@@ -1175,7 +1201,8 @@ declare const SubmissionLedger_base: Context.ServiceClass<SubmissionLedger, "@ef
|
|
|
1175
1201
|
* recovery settles aborted never-claimed queued work immediately, without waiting for it to
|
|
1176
1202
|
* head the lane. Both exceptions are outcome- and state-narrow; everything else stays fenced.
|
|
1177
1203
|
* - `finalizeSettlement` — idempotent terminal transition (state → settled) after the reserved
|
|
1178
|
-
* record is canonical
|
|
1204
|
+
* record is canonical. Native adapters seal opted-in worker assignments atomically before
|
|
1205
|
+
* releasing the lane. Otherwise the next `queueSequence` becomes claimable. It
|
|
1179
1206
|
* requires no ownership token: canonical history authorizes finalization (DUR-015). A
|
|
1180
1207
|
* finalization that disagrees with the recorded outcome fails with `SettlementConflict`.
|
|
1181
1208
|
* - `requestAbort` — durable, idempotent by `submissionId`: repeating returns the recorded
|
|
@@ -1748,7 +1775,6 @@ interface CapturedBinding {
|
|
|
1748
1775
|
readonly reporting?: ReadonlyArray<WorkerReporting<WorkerReportPreparationFailure>>;
|
|
1749
1776
|
readonly attempt: (driver: ResolvedAttemptDriver, threadId: ThreadId, claim: Claim) => Effect.Effect<Option.Option<Settlement>, DurableWorkerFailure>;
|
|
1750
1777
|
}
|
|
1751
|
-
type ReportRequirements<Reports> = Reports extends ReadonlyArray<WorkerReporting<unknown, unknown>> ? [Reports[number]] extends [never] ? never : Reports[number] extends WorkerReporting<unknown, infer R> ? Exclude<R, Scope.Scope> : never : never;
|
|
1752
1778
|
/** One exact executable registration used by durable claim-time resolution. */
|
|
1753
1779
|
interface ResolvedBinding extends CapturedBinding {
|
|
1754
1780
|
readonly digests: DefinitionDigests;
|
|
@@ -1769,7 +1795,7 @@ interface AgentAttemptContext {
|
|
|
1769
1795
|
* may supply a previously computed digest triple directly.
|
|
1770
1796
|
*/
|
|
1771
1797
|
declare const DurableWorkerBinding: {
|
|
1772
|
-
readonly make: <A extends ExecutableAgentBinding
|
|
1798
|
+
readonly make: <A extends ExecutableAgentBinding>(agent: A, digests: DefinitionDigests) => Effect.Effect<ResolvedBinding, never, DurableWorkerRequirements<A>>;
|
|
1773
1799
|
};
|
|
1774
1800
|
/** Application versions and a model Layer, supplied directly or through an existing Binding. */
|
|
1775
1801
|
type AgentRegistration<A extends ExecutableAgentBinding = ExecutableAgentBinding> = ({
|
|
@@ -1785,12 +1811,6 @@ type AgentRegistration<A extends ExecutableAgentBinding = ExecutableAgentBinding
|
|
|
1785
1811
|
readonly continuity?: {
|
|
1786
1812
|
readonly versions: ReplayVersions;
|
|
1787
1813
|
};
|
|
1788
|
-
/**
|
|
1789
|
-
* Source-owned reports capture services outside attemptLayer and open a fresh Scope per
|
|
1790
|
-
* preparation. Version changes with this registration. Missing exact code and preparation
|
|
1791
|
-
* failures become retained report refusals; durable delivery retries reuse the frozen input.
|
|
1792
|
-
*/
|
|
1793
|
-
readonly reporting?: ReadonlyArray<WorkerReporting<unknown, unknown>>;
|
|
1794
1814
|
/**
|
|
1795
1815
|
* Build fresh services for exactly one fenced Attempt, across all its Tool/model turns.
|
|
1796
1816
|
* Finalizes on completion, suspension, failure and interruption. Never reused after eviction.
|
|
@@ -1809,7 +1829,7 @@ type EntryWorkerRequirements<Entry> = Entry extends {
|
|
|
1809
1829
|
readonly model: M;
|
|
1810
1830
|
}> : never;
|
|
1811
1831
|
type AttemptLayerRequirements<Requirements, AttemptLayer> = AttemptLayer extends ((context: AgentAttemptContext) => Layer.Layer<infer Provides, never, infer Requires>) ? Exclude<Requirements, Provides> | Requires : Requirements;
|
|
1812
|
-
type EntryRequirements<Entry> = Entry extends unknown ? AttemptLayerRequirements<EntryWorkerRequirements<Entry>, "attemptLayer" extends keyof Entry ? Entry["attemptLayer"] : undefined>
|
|
1832
|
+
type EntryRequirements<Entry> = Entry extends unknown ? AttemptLayerRequirements<EntryWorkerRequirements<Entry>, "attemptLayer" extends keyof Entry ? Entry["attemptLayer"] : undefined> : never;
|
|
1813
1833
|
type RegistrationRequirements<Entries extends ReadonlyArray<AgentRegistration>> = [Entries[number]] extends [never] ? never : EntryRequirements<Entries[number]>;
|
|
1814
1834
|
/** Compile heterogeneous Agent descriptors into exact, dependency-closed worker registrations. */
|
|
1815
1835
|
declare const compileRegistrations: <const Entries extends ReadonlyArray<AgentRegistration>>(entries: Entries) => Effect.Effect<ReadonlyArray<ResolvedBinding>, DigestError, Crypto.Crypto | RegistrationRequirements<Entries>>;
|
|
@@ -2530,6 +2550,10 @@ declare const ThreadSelection: Schema.Union<readonly [Schema.Struct<{
|
|
|
2530
2550
|
readonly _tag: Schema.Literal<"Outstanding">;
|
|
2531
2551
|
readonly expectedTailSequence: Schema.brand<Schema.Natural, "@effect-agent/thread/CanonicalSequence">;
|
|
2532
2552
|
readonly expectedTailDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
2553
|
+
}>, Schema.Struct<{
|
|
2554
|
+
readonly _tag: Schema.Literal<"WorkerExecution">;
|
|
2555
|
+
readonly expectedTailSequence: Schema.brand<Schema.Natural, "@effect-agent/thread/CanonicalSequence">;
|
|
2556
|
+
readonly expectedTailDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
2533
2557
|
}>, Schema.Struct<{
|
|
2534
2558
|
readonly _tag: Schema.Literal<"WorkerState">;
|
|
2535
2559
|
readonly expectedTailSequence: Schema.brand<Schema.Natural, "@effect-agent/thread/CanonicalSequence">;
|
|
@@ -2550,6 +2574,10 @@ declare const SelectedThreadRead: Schema.Struct<{
|
|
|
2550
2574
|
readonly _tag: Schema.Literal<"Outstanding">;
|
|
2551
2575
|
readonly expectedTailSequence: Schema.brand<Schema.Natural, "@effect-agent/thread/CanonicalSequence">;
|
|
2552
2576
|
readonly expectedTailDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
2577
|
+
}>, Schema.Struct<{
|
|
2578
|
+
readonly _tag: Schema.Literal<"WorkerExecution">;
|
|
2579
|
+
readonly expectedTailSequence: Schema.brand<Schema.Natural, "@effect-agent/thread/CanonicalSequence">;
|
|
2580
|
+
readonly expectedTailDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
2553
2581
|
}>, Schema.Struct<{
|
|
2554
2582
|
readonly _tag: Schema.Literal<"WorkerState">;
|
|
2555
2583
|
readonly expectedTailSequence: Schema.brand<Schema.Natural, "@effect-agent/thread/CanonicalSequence">;
|
|
@@ -2574,6 +2602,10 @@ declare const ThreadReadRequest: Schema.Union<readonly [Schema.Struct<{
|
|
|
2574
2602
|
readonly _tag: Schema.Literal<"Outstanding">;
|
|
2575
2603
|
readonly expectedTailSequence: Schema.brand<Schema.Natural, "@effect-agent/thread/CanonicalSequence">;
|
|
2576
2604
|
readonly expectedTailDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
2605
|
+
}>, Schema.Struct<{
|
|
2606
|
+
readonly _tag: Schema.Literal<"WorkerExecution">;
|
|
2607
|
+
readonly expectedTailSequence: Schema.brand<Schema.Natural, "@effect-agent/thread/CanonicalSequence">;
|
|
2608
|
+
readonly expectedTailDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
|
|
2577
2609
|
}>, Schema.Struct<{
|
|
2578
2610
|
readonly _tag: Schema.Literal<"WorkerState">;
|
|
2579
2611
|
readonly expectedTailSequence: Schema.brand<Schema.Natural, "@effect-agent/thread/CanonicalSequence">;
|
|
@@ -3093,7 +3125,7 @@ declare class DurableAgentRuntime extends DurableAgentRuntime_base {
|
|
|
3093
3125
|
* Every claimed head must match an exact registered identity and digest triple. Worker calls
|
|
3094
3126
|
* cannot replace these registrations or their captured services. Tool authorization is required.
|
|
3095
3127
|
*/
|
|
3096
|
-
static layerRegistered<const Entries extends ReadonlyArray<AgentRegistration>>(registrations: Entries): Layer.Layer<DurableAgentRuntime, DigestError, Crypto.Crypto | DurableRuntimeConfig | DurableRuntimeFailpoint | RunToolAuthorization | SubmissionLedger | ThreadStore | ToolReconciler | WakeScheduler | Exclude<[Entries[number]] extends [never] ? never : Entries[number] extends (infer T) ? T extends Entries[number] ? T extends unknown ? (
|
|
3128
|
+
static layerRegistered<const Entries extends ReadonlyArray<AgentRegistration>>(registrations: Entries): Layer.Layer<DurableAgentRuntime, DigestError, Crypto.Crypto | DurableRuntimeConfig | DurableRuntimeFailpoint | RunToolAuthorization | SubmissionLedger | ThreadStore | ToolReconciler | WakeScheduler | Exclude<[Entries[number]] extends [never] ? never : Entries[number] extends (infer T) ? T extends Entries[number] ? T extends unknown ? ("attemptLayer" extends keyof T ? T[keyof T & "attemptLayer"] : undefined) extends (infer T_1) ? T_1 extends ("attemptLayer" extends keyof T ? T[keyof T & "attemptLayer"] : undefined) ? T_1 extends ((context: AgentAttemptContext) => Layer.Layer<infer Provides, never, infer Requires>) ? Requires | Exclude<T extends {
|
|
3097
3129
|
readonly agent: infer A extends ExecutableAgentBinding;
|
|
3098
3130
|
} ? DurableWorkerRequirements<A> : T extends {
|
|
3099
3131
|
readonly agent: infer D extends Definition<Schema.Top, Schema.Top, unknown, import("effect/unstable/ai/Toolkit").Any, RunDispositionDeclaration<never, Schema.Top> | undefined, unknown, Schema.Top | undefined> & {
|
|
@@ -3115,7 +3147,7 @@ declare class DurableAgentRuntime extends DurableAgentRuntime_base {
|
|
|
3115
3147
|
} ? DurableWorkerRequirements<{
|
|
3116
3148
|
readonly definition: D;
|
|
3117
3149
|
readonly model: M;
|
|
3118
|
-
}> : never : never : never
|
|
3150
|
+
}> : never : never : never : never : never : never, Scope.Scope>>;
|
|
3119
3151
|
/** Construct from precompiled registrations whose captured resources belong to the caller's Scope. */
|
|
3120
3152
|
static layerWithBindings(bindings: ReadonlyArray<ResolvedBinding>): Layer.Layer<DurableAgentRuntime, never, Crypto.Crypto | DurableRuntimeConfig | DurableRuntimeFailpoint | RunToolAuthorization | SubmissionLedger | ThreadStore | ToolReconciler | WakeScheduler>;
|
|
3121
3153
|
/** Captures optional context preparation; Tool authorization remains required in `R`. */
|
|
@@ -3124,7 +3156,7 @@ declare class DurableAgentRuntime extends DurableAgentRuntime_base {
|
|
|
3124
3156
|
static readonly layer: Layer.Layer<DurableAgentRuntime, never, SubmissionLedger | ThreadStore | WakeScheduler | DurableRuntimeFailpoint | DurableRuntimeConfig | ToolReconciler | Crypto.Crypto>;
|
|
3125
3157
|
}
|
|
3126
3158
|
declare namespace Records_d_exports {
|
|
3127
|
-
export { AbortRequested, AbortedSubmissionSettled, AgentUpdateEmitted, ApprovalDecision, BatchId, CURRENT_CANONICAL_SCHEMA_VERSION, CanonicalBatch, CanonicalRecord, CanonicalRecordEnvelope, CanonicalRecordPayload, CanonicalSequence, CompactionCreated, CompletedSubmissionSettled, DefinitionDigestInput, DefinitionDigests, DeploymentId, Digest, FailedSubmissionSettled, MAX_PERSISTED_JSON_BYTES, MAX_PERSISTED_JSON_COLLECTION_LENGTH, MAX_PERSISTED_JSON_DEPTH, MAX_PERSISTED_JSON_NODES, ModelCompleted, ModelResponseInterrupted, ModelResponseRecorded, ObservationOffset, PeerMessagePrepared, PersistedJson, ProducerEpoch, ProducerId, RecordEnvelope, RecordId, RepairAnnotated, ReplayContract, RunCompleted, RunDurationExhausted, RunFailed, RunPolicyUsageReserved, RunStartedRecord, SettlementFailureDiagnostic, SettlementOutcome, SubagentJoined, SubagentLineageRecorded, SubagentRequested, SubagentStarted, SubmissionSettled, SubmissionSettledRecord, SubtreeBudgetReserved, ThreadCreated, ToolApprovalDecided, ToolApprovalRequested, ToolCallPrepared, ToolCallResolution, ToolCallResolved, ToolCallSettled, ToolCallUnknown, ToolOperation, ToolStepSettled, ToolUnavailable, UserInputRecorded, WorkerAdmission, WorkerInputCompleted, WorkerInputRequested, WorkerOrigin, WorkerOriginRecorded, WorkerReportPrepared, WorkerReportRefused, WorkerReportingIntent };
|
|
3159
|
+
export { AbortRequested, AbortedSubmissionSettled, AgentUpdateEmitted, ApprovalDecision, BatchId, CURRENT_CANONICAL_SCHEMA_VERSION, CanonicalBatch, CanonicalRecord, CanonicalRecordEnvelope, CanonicalRecordPayload, CanonicalSequence, CompactionCreated, CompletedSubmissionSettled, DefinitionDigestInput, DefinitionDigests, DeploymentId, Digest, FailedSubmissionSettled, MAX_PERSISTED_JSON_BYTES, MAX_PERSISTED_JSON_COLLECTION_LENGTH, MAX_PERSISTED_JSON_DEPTH, MAX_PERSISTED_JSON_NODES, ModelCompleted, ModelResponseInterrupted, ModelResponseRecorded, ObservationOffset, PeerMessagePrepared, PersistedJson, ProducerEpoch, ProducerId, RecordEnvelope, RecordId, RepairAnnotated, ReplayContract, RunCompleted, RunDurationExhausted, RunFailed, RunPolicyUsageReserved, RunStartedRecord, SettlementFailureDiagnostic, SettlementOutcome, SubagentJoined, SubagentLineageRecorded, SubagentRequested, SubagentStarted, SubmissionSettled, SubmissionSettledRecord, SubtreeBudgetReserved, ThreadCreated, ToolApprovalDecided, ToolApprovalRequested, ToolCallPrepared, ToolCallResolution, ToolCallResolved, ToolCallSettled, ToolCallUnknown, ToolOperation, ToolStepSettled, ToolUnavailable, UserInputRecorded, WorkerAdmission, WorkerInputCompleted, WorkerInputRequested, WorkerOrigin, WorkerOriginRecorded, WorkerReportPrepared, WorkerReportRefused, WorkerReportingIntent, WorkerStopRequested };
|
|
3128
3160
|
}
|
|
3129
3161
|
/** Stable identity of one canonical record. */
|
|
3130
3162
|
declare const RecordId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/RecordId">;
|
|
@@ -3761,9 +3793,10 @@ declare const SubagentLineageRecorded_base: Schema.Class<SubagentLineageRecorded
|
|
|
3761
3793
|
*/
|
|
3762
3794
|
declare class SubagentLineageRecorded extends SubagentLineageRecorded_base {}
|
|
3763
3795
|
declare const WorkerReportingIntent: Schema.Struct<{
|
|
3764
|
-
/**
|
|
3796
|
+
/** Absent only in historical custom-report origins; these remain readable as evidence. */
|
|
3765
3797
|
readonly mode: Schema.optionalKey<Schema.Literal<"standard">>;
|
|
3766
3798
|
readonly sourceDigests: typeof DefinitionDigests;
|
|
3799
|
+
/** Historical custom destination evidence. New worker origins never write this field. */
|
|
3767
3800
|
readonly destinationDelegationId: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">>;
|
|
3768
3801
|
/** Frozen by the sender before acceptance. Standard emission never reads the source runtime. */
|
|
3769
3802
|
readonly returnAddress: Schema.optionalKey<Schema.Struct<{
|
|
@@ -3797,6 +3830,8 @@ declare const WorkerOrigin: Schema.Struct<{
|
|
|
3797
3830
|
}>]>;
|
|
3798
3831
|
/** Omitted retains source-subtree funding; worker-run renews only for a new native Run. */
|
|
3799
3832
|
readonly budgetScope: Schema.optionalKey<Schema.Literals<readonly ["source-subtree", "worker-run"]>>;
|
|
3833
|
+
/** Frozen at worker creation; older origins remain reusable. */
|
|
3834
|
+
readonly lifecycle: Schema.optionalKey<Schema.Literal<"assignment">>;
|
|
3800
3835
|
readonly targetDigests: typeof DefinitionDigests;
|
|
3801
3836
|
readonly policy: Schema.toCodecJson<typeof AgentPolicy>;
|
|
3802
3837
|
readonly budget: Schema.Struct<{
|
|
@@ -3812,9 +3847,10 @@ declare const WorkerOrigin: Schema.Struct<{
|
|
|
3812
3847
|
readonly expiresAtMillis: Schema.Natural;
|
|
3813
3848
|
/** Exact source registration owns projection; absence means reporting was not declared. */
|
|
3814
3849
|
readonly reporting: Schema.optionalKey<Schema.Struct<{
|
|
3815
|
-
/**
|
|
3850
|
+
/** Absent only in historical custom-report origins; these remain readable as evidence. */
|
|
3816
3851
|
readonly mode: Schema.optionalKey<Schema.Literal<"standard">>;
|
|
3817
3852
|
readonly sourceDigests: typeof DefinitionDigests;
|
|
3853
|
+
/** Historical custom destination evidence. New worker origins never write this field. */
|
|
3818
3854
|
readonly destinationDelegationId: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">>;
|
|
3819
3855
|
/** Frozen by the sender before acceptance. Standard emission never reads the source runtime. */
|
|
3820
3856
|
readonly returnAddress: Schema.optionalKey<Schema.Struct<{
|
|
@@ -3851,6 +3887,8 @@ declare const WorkerAdmission: Schema.Struct<{
|
|
|
3851
3887
|
}>]>;
|
|
3852
3888
|
/** Omitted retains source-subtree funding; worker-run renews only for a new native Run. */
|
|
3853
3889
|
readonly budgetScope: Schema.optionalKey<Schema.Literals<readonly ["source-subtree", "worker-run"]>>;
|
|
3890
|
+
/** Frozen at worker creation; older origins remain reusable. */
|
|
3891
|
+
readonly lifecycle: Schema.optionalKey<Schema.Literal<"assignment">>;
|
|
3854
3892
|
readonly targetDigests: typeof DefinitionDigests;
|
|
3855
3893
|
readonly policy: Schema.toCodecJson<typeof AgentPolicy>;
|
|
3856
3894
|
readonly budget: Schema.Struct<{
|
|
@@ -3866,9 +3904,10 @@ declare const WorkerAdmission: Schema.Struct<{
|
|
|
3866
3904
|
readonly expiresAtMillis: Schema.Natural;
|
|
3867
3905
|
/** Exact source registration owns projection; absence means reporting was not declared. */
|
|
3868
3906
|
readonly reporting: Schema.optionalKey<Schema.Struct<{
|
|
3869
|
-
/**
|
|
3907
|
+
/** Absent only in historical custom-report origins; these remain readable as evidence. */
|
|
3870
3908
|
readonly mode: Schema.optionalKey<Schema.Literal<"standard">>;
|
|
3871
3909
|
readonly sourceDigests: typeof DefinitionDigests;
|
|
3910
|
+
/** Historical custom destination evidence. New worker origins never write this field. */
|
|
3872
3911
|
readonly destinationDelegationId: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">>;
|
|
3873
3912
|
/** Frozen by the sender before acceptance. Standard emission never reads the source runtime. */
|
|
3874
3913
|
readonly returnAddress: Schema.optionalKey<Schema.Struct<{
|
|
@@ -3893,6 +3932,19 @@ declare const WorkerAdmission: Schema.Struct<{
|
|
|
3893
3932
|
readonly reportKind: Schema.optionalKey<Schema.Literal<"update">>;
|
|
3894
3933
|
}>;
|
|
3895
3934
|
type WorkerAdmission = typeof WorkerAdmission.Type;
|
|
3935
|
+
declare const WorkerStopRequested_base: Schema.Class<WorkerStopRequested, Schema.TaggedStruct<"WorkerStopRequested", {
|
|
3936
|
+
readonly command: Schema.Struct<{
|
|
3937
|
+
readonly worker: Schema.Struct<{
|
|
3938
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
3939
|
+
readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
|
|
3940
|
+
readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
3941
|
+
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
3942
|
+
}>;
|
|
3943
|
+
readonly idempotencyKey: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
|
|
3944
|
+
}>;
|
|
3945
|
+
}>, {}>;
|
|
3946
|
+
/** Owner command retained before the destination inbox is sealed. */
|
|
3947
|
+
declare class WorkerStopRequested extends WorkerStopRequested_base {}
|
|
3896
3948
|
declare const WorkerInputRequested_base: Schema.Class<WorkerInputRequested, Schema.TaggedStruct<"WorkerInputRequested", {
|
|
3897
3949
|
readonly admission: Schema.Struct<{
|
|
3898
3950
|
readonly origin: Schema.Struct<{
|
|
@@ -3915,6 +3967,8 @@ declare const WorkerInputRequested_base: Schema.Class<WorkerInputRequested, Sche
|
|
|
3915
3967
|
}>]>;
|
|
3916
3968
|
/** Omitted retains source-subtree funding; worker-run renews only for a new native Run. */
|
|
3917
3969
|
readonly budgetScope: Schema.optionalKey<Schema.Literals<readonly ["source-subtree", "worker-run"]>>;
|
|
3970
|
+
/** Frozen at worker creation; older origins remain reusable. */
|
|
3971
|
+
readonly lifecycle: Schema.optionalKey<Schema.Literal<"assignment">>;
|
|
3918
3972
|
readonly targetDigests: typeof DefinitionDigests;
|
|
3919
3973
|
readonly policy: Schema.toCodecJson<typeof AgentPolicy>;
|
|
3920
3974
|
readonly budget: Schema.Struct<{
|
|
@@ -3930,9 +3984,10 @@ declare const WorkerInputRequested_base: Schema.Class<WorkerInputRequested, Sche
|
|
|
3930
3984
|
readonly expiresAtMillis: Schema.Natural;
|
|
3931
3985
|
/** Exact source registration owns projection; absence means reporting was not declared. */
|
|
3932
3986
|
readonly reporting: Schema.optionalKey<Schema.Struct<{
|
|
3933
|
-
/**
|
|
3987
|
+
/** Absent only in historical custom-report origins; these remain readable as evidence. */
|
|
3934
3988
|
readonly mode: Schema.optionalKey<Schema.Literal<"standard">>;
|
|
3935
3989
|
readonly sourceDigests: typeof DefinitionDigests;
|
|
3990
|
+
/** Historical custom destination evidence. New worker origins never write this field. */
|
|
3936
3991
|
readonly destinationDelegationId: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">>;
|
|
3937
3992
|
/** Frozen by the sender before acceptance. Standard emission never reads the source runtime. */
|
|
3938
3993
|
readonly returnAddress: Schema.optionalKey<Schema.Struct<{
|
|
@@ -3981,6 +4036,8 @@ declare const WorkerOriginRecorded_base: Schema.Class<WorkerOriginRecorded, Sche
|
|
|
3981
4036
|
}>]>;
|
|
3982
4037
|
/** Omitted retains source-subtree funding; worker-run renews only for a new native Run. */
|
|
3983
4038
|
readonly budgetScope: Schema.optionalKey<Schema.Literals<readonly ["source-subtree", "worker-run"]>>;
|
|
4039
|
+
/** Frozen at worker creation; older origins remain reusable. */
|
|
4040
|
+
readonly lifecycle: Schema.optionalKey<Schema.Literal<"assignment">>;
|
|
3984
4041
|
readonly targetDigests: typeof DefinitionDigests;
|
|
3985
4042
|
readonly policy: Schema.toCodecJson<typeof AgentPolicy>;
|
|
3986
4043
|
readonly budget: Schema.Struct<{
|
|
@@ -3996,9 +4053,10 @@ declare const WorkerOriginRecorded_base: Schema.Class<WorkerOriginRecorded, Sche
|
|
|
3996
4053
|
readonly expiresAtMillis: Schema.Natural;
|
|
3997
4054
|
/** Exact source registration owns projection; absence means reporting was not declared. */
|
|
3998
4055
|
readonly reporting: Schema.optionalKey<Schema.Struct<{
|
|
3999
|
-
/**
|
|
4056
|
+
/** Absent only in historical custom-report origins; these remain readable as evidence. */
|
|
4000
4057
|
readonly mode: Schema.optionalKey<Schema.Literal<"standard">>;
|
|
4001
4058
|
readonly sourceDigests: typeof DefinitionDigests;
|
|
4059
|
+
/** Historical custom destination evidence. New worker origins never write this field. */
|
|
4002
4060
|
readonly destinationDelegationId: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">>;
|
|
4003
4061
|
/** Frozen by the sender before acceptance. Standard emission never reads the source runtime. */
|
|
4004
4062
|
readonly returnAddress: Schema.optionalKey<Schema.Struct<{
|
|
@@ -4097,7 +4155,7 @@ declare class SubtreeBudgetReserved extends SubtreeBudgetReserved_base {}
|
|
|
4097
4155
|
* adds the four durable-Subagent tags (requested/started/joined/lineage) additively, so the
|
|
4098
4156
|
* envelope keeps `schemaVersion: 1` (P4 precedent for additive payload tags).
|
|
4099
4157
|
*/
|
|
4100
|
-
declare const CanonicalRecordPayload: Schema.Union<readonly [typeof ThreadCreated, typeof UserInputRecorded, typeof RunStartedRecord, typeof RunDurationExhausted, typeof RunPolicyUsageReserved, typeof ModelCompleted, typeof ModelResponseRecorded, typeof ToolCallPrepared, typeof ToolCallSettled, typeof ToolCallUnknown, typeof ToolCallResolved, typeof ToolStepSettled, typeof ToolApprovalRequested, typeof ToolApprovalDecided, typeof ModelResponseInterrupted, typeof CompactionCreated, typeof RunFailed, typeof RunCompleted, typeof AbortRequested, Schema.refine<SubmissionSettledRecord, typeof SubmissionSettled>, typeof SubagentRequested, typeof SubagentStarted, typeof SubagentJoined, typeof SubagentLineageRecorded, typeof WorkerInputRequested, typeof WorkerOriginRecorded, typeof WorkerInputCompleted, typeof WorkerReportPrepared, typeof AgentUpdateEmitted, typeof WorkerReportRefused, typeof PeerMessagePrepared, typeof SubtreeBudgetReserved, typeof RepairAnnotated]>;
|
|
4158
|
+
declare const CanonicalRecordPayload: Schema.Union<readonly [typeof ThreadCreated, typeof UserInputRecorded, typeof RunStartedRecord, typeof RunDurationExhausted, typeof RunPolicyUsageReserved, typeof ModelCompleted, typeof ModelResponseRecorded, typeof ToolCallPrepared, typeof ToolCallSettled, typeof ToolCallUnknown, typeof ToolCallResolved, typeof ToolStepSettled, typeof ToolApprovalRequested, typeof ToolApprovalDecided, typeof ModelResponseInterrupted, typeof CompactionCreated, typeof RunFailed, typeof RunCompleted, typeof AbortRequested, Schema.refine<SubmissionSettledRecord, typeof SubmissionSettled>, typeof SubagentRequested, typeof SubagentStarted, typeof SubagentJoined, typeof SubagentLineageRecorded, typeof WorkerInputRequested, typeof WorkerStopRequested, typeof WorkerOriginRecorded, typeof WorkerInputCompleted, typeof WorkerReportPrepared, typeof AgentUpdateEmitted, typeof WorkerReportRefused, typeof PeerMessagePrepared, typeof SubtreeBudgetReserved, typeof RepairAnnotated]>;
|
|
4101
4159
|
type CanonicalRecordPayload = typeof CanonicalRecordPayload.Type;
|
|
4102
4160
|
declare const RecordEnvelope_base: Schema.Class<RecordEnvelope, Schema.Struct<{
|
|
4103
4161
|
readonly recordId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/RecordId">;
|
|
@@ -4105,7 +4163,7 @@ declare const RecordEnvelope_base: Schema.Class<RecordEnvelope, Schema.Struct<{
|
|
|
4105
4163
|
readonly schemaVersion: Schema.Literal<1>;
|
|
4106
4164
|
readonly createdAt: Schema.DateTimeUtcFromString;
|
|
4107
4165
|
readonly deploymentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/DeploymentId">;
|
|
4108
|
-
readonly payload: Schema.Union<readonly [typeof ThreadCreated, typeof UserInputRecorded, typeof RunStartedRecord, typeof RunDurationExhausted, typeof RunPolicyUsageReserved, typeof ModelCompleted, typeof ModelResponseRecorded, typeof ToolCallPrepared, typeof ToolCallSettled, typeof ToolCallUnknown, typeof ToolCallResolved, typeof ToolStepSettled, typeof ToolApprovalRequested, typeof ToolApprovalDecided, typeof ModelResponseInterrupted, typeof CompactionCreated, typeof RunFailed, typeof RunCompleted, typeof AbortRequested, Schema.refine<SubmissionSettledRecord, typeof SubmissionSettled>, typeof SubagentRequested, typeof SubagentStarted, typeof SubagentJoined, typeof SubagentLineageRecorded, typeof WorkerInputRequested, typeof WorkerOriginRecorded, typeof WorkerInputCompleted, typeof WorkerReportPrepared, typeof AgentUpdateEmitted, typeof WorkerReportRefused, typeof PeerMessagePrepared, typeof SubtreeBudgetReserved, typeof RepairAnnotated]>;
|
|
4166
|
+
readonly payload: Schema.Union<readonly [typeof ThreadCreated, typeof UserInputRecorded, typeof RunStartedRecord, typeof RunDurationExhausted, typeof RunPolicyUsageReserved, typeof ModelCompleted, typeof ModelResponseRecorded, typeof ToolCallPrepared, typeof ToolCallSettled, typeof ToolCallUnknown, typeof ToolCallResolved, typeof ToolStepSettled, typeof ToolApprovalRequested, typeof ToolApprovalDecided, typeof ModelResponseInterrupted, typeof CompactionCreated, typeof RunFailed, typeof RunCompleted, typeof AbortRequested, Schema.refine<SubmissionSettledRecord, typeof SubmissionSettled>, typeof SubagentRequested, typeof SubagentStarted, typeof SubagentJoined, typeof SubagentLineageRecorded, typeof WorkerInputRequested, typeof WorkerStopRequested, typeof WorkerOriginRecorded, typeof WorkerInputCompleted, typeof WorkerReportPrepared, typeof AgentUpdateEmitted, typeof WorkerReportRefused, typeof PeerMessagePrepared, typeof SubtreeBudgetReserved, typeof RepairAnnotated]>;
|
|
4109
4167
|
}>, {}>;
|
|
4110
4168
|
/**
|
|
4111
4169
|
* Versioned record envelope stored in an atomic batch. Thread ordering is assigned only
|
|
@@ -4135,5 +4193,5 @@ declare const CanonicalRecordEnvelope_base: Schema.Class<CanonicalRecordEnvelope
|
|
|
4135
4193
|
declare class CanonicalRecordEnvelope extends CanonicalRecordEnvelope_base {}
|
|
4136
4194
|
declare const CURRENT_CANONICAL_SCHEMA_VERSION: 1;
|
|
4137
4195
|
//#endregion
|
|
4138
|
-
export { ToolCallPrepared as $, OwnershipSnapshot as $a, RepairInputMarker as $i, projectRunJournal as $n, RecoveryDisposition as $r, MAX_THREAD_EXPORT_RECORDS as $t, ProducerId as A, ChildAttachmentSnapshot as Aa, ApplyUnknownResolutions as Ai, readWorkerState as An, SuspensionOutcome as Ao, turnIdForRun as Ar, DurableSubmitAgent as At, RunStartedRecord as B, ClaimRequest as Ba, DelegationAdmissionEvidence as Bi, TurnCommitInput as Bn, submissionAbortBatchId as Bo, ExplainedEvidence as Br, RecoverySweepResult as Bt, ModelCompleted as C, AdmissionResult as Ca, digestCanonicalBatch as Ci, ThreadStore_d_exports as Cn, SubmissionLookup as Co, toolCallSettledRecordId as Cr, DurableObligationFailure as Ct, PeerMessagePrepared as D, ApprovalPendingSuspension as Da, AppendReservedSettlement as Di, getRecord as Dn, SubmissionState as Do, turnApprovalsBatchId as Dr, DurableRetryFailure as Dt, ObservationOffset as E, ApprovalDecisionIntent as Ea, digestJson as Ei, ThreadWorkerStateRequest as En, SubmissionSnapshot as Eo, toolStepSettledRecordId as Er, DurableResolveFailure as Et, ReplayContract as F, ChildReservationStatus as Fa, AwaitParentEstablishment as Fi, JournalBoundary as Fn, UnknownResolutionConflict as Fo, turnResultsBatchId as Fr, DurableWorkerRequirements as Ft, SubagentRequested as G, LedgerCapabilities as Ga, OpenDelegationCallEvidence as Gi, compactionBatchId as Gn, submissionSettlementId as Go, IntegrityCheckStatus as Gr, threadCreatedBatchId as Gt, SettlementOutcome as H, InputAppliedMarker as Ha, FinalizeLedgerFromHistory as Hi, approvalDecisionBatchId as Hn, submissionInputBatchId as Ho, ExplainedUnknownCall as Hr, isolateRecovery as Ht, RunCompleted as I, ChildSettledNotification as Ia, AwaitUnknownResolution as Ii, RunJournalError as In, UnknownResolutionIntent as Io, workerInputRecordId as Ir, RecoveryBlocked as It, SubmissionSettledRecord as J, MarkJoinedRequest as Ja, PropagateChildAbort as Ji, markUnknownBatchId as Jn, ObligationEntry as Jr, AppendResult as Jt, SubagentStarted as K, LedgerError as Ka, OpenToolCallEvidence as Ki, compactionRecordId as Kn, submissionSettlementRecordId as Ko, IntegrityReport as Kr, threadCreatedRecordId as Kt, RunDurationExhausted as L, ChildSettledOutcome as La, CompleteChildAdmission as Li, RunJournalProjection as Ln, WaitingChild as Lo, workerOriginRecordId as Lr, RecoveryFailure as Lt, RecordId as M, ChildBudgetReservationSnapshot as Ma, AwaitChildAdmissionResolution as Mi, SettledSubmission as Mn, SuspensionSnapshot as Mo, turnResponseBatch as Mr, DurableSubmitOptions as Mt, Records_d_exports as N, ChildReservationConflict as Na, AwaitChildSettlement as Ni, SubmissionStatus as Nn, UnknownResolution as No, turnResponseBatchId as Nr, DurableVerifyFailure as Nt, PersistedJson as O, AttachChildToReservationRequest as Oa, ApplyInput as Oi, getRunInput as On, SubmissionWorkItem as Oo, turnBatchId as Or, DurableRuntimeConfig as Ot, RepairAnnotated as P, ChildReservationId as Pa, AwaitHostSettlement as Pi, SubmissionStatus_d_exports as Pn, UnknownResolutionCommand as Po, turnResultsBatch as Pr, DurableWorkerFailure as Pt, ToolApprovalRequested as Q, OwnershipRenewal as Qa, ReleaseOrphanChildReservation as Qi, peerMessageRecordId as Qn, RECOVERY_DECISION_MEANINGS as Qr, LoadCheckpointRequest as Qt, RunFailed as R, Claim as Ra, CompleteMaterialization as Ri, RunJournalUsage as Rn, WaitingForChildSuspension as Ro, workerReportRecordId as Rr, RecoveryReport as Rt, MAX_PERSISTED_JSON_NODES as S, AdmissionResolution as Sa, EMPTY_TAIL_DIGEST as Si, ThreadStoreFailure as Sn, SubmissionLedger_d_exports as So, toolCallResultBatchId as Sr, DurableExplainFailure as St, ModelResponseRecorded as T, ApprovalDecisionCommand as Ta, digestDefinitions as Ti, ThreadTailRequest as Tn, SubmissionLookupByKey as To, toolStepSettledBatchId as Tr, DurableProgressFailure as Tt, SubagentJoined as U, JoinSnapshot as Ua, MarkUnknown as Ui, childIdempotencyKeyFor as Un, submissionInputRecordId as Uo, IntegrityCheck as Ur, recoveryRepairBatchId as Ut, SettlementFailureDiagnostic as V, DEFAULT_OWNERSHIP_LEASE_DURATION as Va, EnsureWaitingForChild as Vi, agentUpdateRecordId as Vn, submissionAbortRecordId as Vo, ExplainedSubmission as Vr, childReservationIdFor as Vt, SubagentLineageRecorded as W, JoiningClaim as Wa, NoAction as Wi, childThreadIdFor as Wn, submissionSettlementBatchId as Wo, IntegrityCheckName as Wr, recoveryRepairRecordId as Wt, ThreadCreated as X, MarkUnknownRequest as Xa, RecoveryEvidence as Xi, modelResponseInterruptedRecordId as Xn, ObligationSeverity as Xr, FenceRejected as Xt, SubtreeBudgetReserved as Y, MarkReadyRequest as Ya, RecoveryDecision as Yi, modelResponseInterruptedBatchId as Yn, ObligationReport as Yr, CheckpointRejected as Yt, ToolApprovalDecided as Z, OwnershipLost as Za, Recovery_d_exports as Zi, modelResponseRecordId as Zn, ObligationThresholds as Zr, FencedAppendRequest as Zt, Digest as _, AdmissionGroup as _a, compileBindingContracts as _i, ThreadRunInputRequest as _n, SettlementReservation as _o, toolApprovalDecisionRecordId as _r, DurableAgentRuntime as _t, BatchId as a, ResumeSuspended as aa, predictRecoveryDisposition as ai, ThreadExport as an, ReleaseOwnershipRequest as ao, runDurationRecordId as ar, ToolStepSettled as at, MAX_PERSISTED_JSON_COLLECTION_LENGTH as b, AdmissionPolicyError as ba, DigestError as bi, ThreadStoreDiagnostic as bn, SubmissionLedger as bo, toolCallResolutionBatchId as br, DurableApprovalResolver as bt, CanonicalRecord as c, SettleAborted as ca, AgentRegistration_d_exports as ci, ThreadNotMaterialized as cn, ReservedSettlement as co, runStartedRecordId as cr, WorkerAdmission as ct, CanonicalSequence as d, AbortCommand as da, BindingUnavailable as di, ThreadOutstandingRequest as dn, ResolutionNeverHappened as do, subagentLineageBatchId as dr, WorkerOrigin as dt, RepairJoinMarker as ea, RecoveryExplanation as ei, SaveCheckpointRequest as en, OwnershipToken as eo, projectRunJournalStream as er, ToolCallResolution as et, CompactionCreated as f, AbortIntent as fa, DurableBindingFailure as fi, ThreadPeerCountRequest as fn, ResolutionSafeToRetry as fo, subagentLineageRecordId as fr, WorkerOriginRecorded as ft, DeploymentId as g, AdmissionFence as ga, ResolvedBinding as gi, ThreadRecoveryCheckpoints as gn, SettlementFinalization as go, subagentStartedRecordId as gr, DurableAbortFailure as gt, DefinitionDigests as h, AdmissionConflict as ha, ReplayVersions as hi, ThreadRecordRequest as hn, SettlementConflict as ho, subagentStartedBatchId as hr, WorkerReportingIntent as ht, ApprovalDecision as i, ResumePendingToolBatch as ia, obligationSeverityOf as ii, ThreadCheckpoints as in, ReleaseChildBudgetRequest as io, runDurationBatchId as ir, ToolOperation as it, RecordEnvelope as j, ChildBudgetReservationRequest as ja, AwaitApprovalDecision as ji, PendingSubmission as jn, SuspensionReason as jo, turnPreparedBatchId as jr, DurableSubmitFailure as jt, ProducerEpoch as k, BeginChildBudgetReleaseRequest as ka, ApplyJoinAccounting as ki, readOutstanding as kn, SuspendRequest as ko, turnCanonicalBatch as kr, DurableRuntimeConfigOptions as kt, CanonicalRecordEnvelope as l, SettleJoinedWithHost as la, AgentAttemptContext as li, ThreadObservation as ln, ResolutionAbortSubmission as lo, subagentJoinBatchId as lr, WorkerInputCompleted as lt, DefinitionDigestInput as m, AdmissionAdmitted as ma, ExecutableAgentBinding as mi, ThreadReadRequest as mn, Settlement as mo, subagentRequestedRecordId as mr, WorkerReportRefused as mt, AbortedSubmissionSettled as n, RepairSubagentStartLink as na, RetryRefusalReason as ni, SelectedThreadRead as nn, RecoverySnapshot as no, runCompletedRecordId as nr, ToolCallSettled as nt, CURRENT_CANONICAL_SCHEMA_VERSION as o, ResumeWaitingParent as oa, recoveryDecisionMeaning as oi, ThreadExportRequest as on, RenewOwnershipRequest as oo, runIdForSubmission as or, ToolUnavailable as ot, CompletedSubmissionSettled as p, AbortIntentRequest as pa, DurableWorkerBinding as pi, ThreadRead as pn, RevertJoiningRequest as po, subagentRequestedBatchId as pr, WorkerReportPrepared as pt, SubmissionSettled as q, MarkInputAppliedRequest as qa, PendingApprovalEvidence as qi, firstWorkerInputRecordId as qn, ObligationBlockedOn as qr, AppendConflict as qt, AgentUpdateEmitted as r, ResumeFromTurnBoundary as ra, RetryRefused as ri, ThreadCheckpoint as rn, RecoverySnapshotRequest as ro, runCompletionDigest as rr, ToolCallUnknown as rt, CanonicalBatch as s, RevertJoining as sa, renderRecoveryExplanation as si, ThreadMaterialization as sn, ReservedChildBudget as so, runStartedBatchId as sr, UserInputRecorded as st, AbortRequested as t, RepairReadiness as ta, RetryCommand as ti, SaveRecoveryCheckpointRequest as tn, ParentLinkage as to, promptFromCanonicalRecords as tr, ToolCallResolved as tt, CanonicalRecordPayload as u, classifyRecovery as ua, AgentRegistration as ui, ThreadOutstanding as un, ResolutionCompletedWithResult as uo, subagentJoinedRecordId as ur, WorkerInputRequested as ut, FailedSubmissionSettled as v, AdmissionIndeterminate as va, compileRegistrations as vi, ThreadSelection as vn, SettlementReservationSnapshot as vo, toolApprovalRequestRecordId as vr, DurableAgentRuntime_d_exports as vt, ModelResponseInterrupted as w, ApprovalConflict as wa, digestDefinition as wi, ThreadTail as wn, SubmissionLookupById as wo, toolCallUnknownRecordId as wr, DurableObserveOptions as wt, MAX_PERSISTED_JSON_DEPTH as x, AdmissionRequest as xa, Digest_d_exports as xi, ThreadStoreError as xn, SubmissionLedgerFailure as xo, toolCallResolvedRecordId as xr, DurableAwaitFailure as xt, MAX_PERSISTED_JSON_BYTES as y, AdmissionNotAdmitted as ya, definitionDigestsEqual as yi, ThreadStore as yn, SubmissionAdmissionFence as yo, toolCallPreparedRecordId as yr, DurableApprovalFailure as yt, RunPolicyUsageReserved as z, ClaimJoiningRequest as za, DeclaredPendingBatchEvidence as zi, RunJournal_d_exports as zn, settlementFailureFromRecord as zo, Admin_d_exports as zr, RecoverySweepOptions as zt };
|
|
4139
|
-
//# sourceMappingURL=Records-
|
|
4196
|
+
export { ToolCallPrepared as $, OwnershipRenewal as $a, ReleaseOrphanChildReservation as $i, peerMessageRecordId as $n, RECOVERY_DECISION_MEANINGS as $r, LoadCheckpointRequest as $t, ProducerId as A, BeginChildBudgetReleaseRequest as Aa, ApplyJoinAccounting as Ai, readOutstanding as An, SuspendRequest as Ao, turnCanonicalBatch as Ar, DurableRuntimeConfigOptions as At, RunStartedRecord as B, ClaimJoiningRequest as Ba, DeclaredPendingBatchEvidence as Bi, RunJournal_d_exports as Bn, WorkerLedgerState as Bo, Admin_d_exports as Br, RecoverySweepOptions as Bt, ModelCompleted as C, AdmissionResolution as Ca, EMPTY_TAIL_DIGEST as Ci, ThreadStoreFailure as Cn, SubmissionLedger_d_exports as Co, toolCallResultBatchId as Cr, DurableExplainFailure as Ct, PeerMessagePrepared as D, ApprovalDecisionIntent as Da, digestJson as Di, ThreadWorkerStateRequest as Dn, SubmissionSnapshot as Do, toolStepSettledRecordId as Dr, DurableResolveFailure as Dt, ObservationOffset as E, ApprovalDecisionCommand as Ea, digestDefinitions as Ei, ThreadTailRequest as En, SubmissionLookupByKey as Eo, toolStepSettledBatchId as Er, DurableProgressFailure as Et, ReplayContract as F, ChildReservationId as Fa, AwaitHostSettlement as Fi, SubmissionStatus_d_exports as Fn, UnknownResolutionCommand as Fo, turnResultsBatch as Fr, DurableWorkerFailure as Ft, SubagentRequested as G, JoiningClaim as Ga, NoAction as Gi, childThreadIdFor as Gn, submissionInputBatchId as Go, IntegrityCheckName as Gr, recoveryRepairRecordId as Gt, SettlementOutcome as H, DEFAULT_OWNERSHIP_LEASE_DURATION as Ha, EnsureWaitingForChild as Hi, agentUpdateRecordId as Hn, settlementFailureFromRecord as Ho, ExplainedSubmission as Hr, childReservationIdFor as Ht, RunCompleted as I, ChildReservationStatus as Ia, AwaitParentEstablishment as Ii, JournalBoundary as In, UnknownResolutionConflict as Io, turnResultsBatchId as Ir, DurableWorkerRequirements as It, SubmissionSettledRecord as J, MarkInputAppliedRequest as Ja, PendingApprovalEvidence as Ji, firstWorkerInputRecordId as Jn, submissionSettlementId as Jo, ObligationBlockedOn as Jr, AppendConflict as Jt, SubagentStarted as K, LedgerCapabilities as Ka, OpenDelegationCallEvidence as Ki, compactionBatchId as Kn, submissionInputRecordId as Ko, IntegrityCheckStatus as Kr, threadCreatedBatchId as Kt, RunDurationExhausted as L, ChildSettledNotification as La, AwaitUnknownResolution as Li, RunJournalError as Ln, UnknownResolutionIntent as Lo, workerInputRecordId as Lr, RecoveryBlocked as Lt, RecordId as M, ChildBudgetReservationRequest as Ma, AwaitApprovalDecision as Mi, PendingSubmission as Mn, SuspensionReason as Mo, turnPreparedBatchId as Mr, DurableSubmitFailure as Mt, Records_d_exports as N, ChildBudgetReservationSnapshot as Na, AwaitChildAdmissionResolution as Ni, SettledSubmission as Nn, SuspensionSnapshot as No, turnResponseBatch as Nr, DurableSubmitOptions as Nt, PersistedJson as O, ApprovalPendingSuspension as Oa, AppendReservedSettlement as Oi, getRecord as On, SubmissionState as Oo, turnApprovalsBatchId as Or, DurableRetryFailure as Ot, RepairAnnotated as P, ChildReservationConflict as Pa, AwaitChildSettlement as Pi, SubmissionStatus as Pn, UnknownResolution as Po, turnResponseBatchId as Pr, DurableVerifyFailure as Pt, ToolApprovalRequested as Q, OwnershipLost as Qa, Recovery_d_exports as Qi, modelResponseRecordId as Qn, ObligationThresholds as Qr, FencedAppendRequest as Qt, RunFailed as R, ChildSettledOutcome as Ra, CompleteChildAdmission as Ri, RunJournalProjection as Rn, WaitingChild as Ro, workerOriginRecordId as Rr, RecoveryFailure as Rt, MAX_PERSISTED_JSON_NODES as S, AdmissionRequest as Sa, Digest_d_exports as Si, ThreadStoreError as Sn, SubmissionLedgerFailure as So, toolCallResolvedRecordId as Sr, DurableAwaitFailure as St, ModelResponseRecorded as T, ApprovalConflict as Ta, digestDefinition as Ti, ThreadTail as Tn, SubmissionLookupById as To, toolCallUnknownRecordId as Tr, DurableObserveOptions as Tt, SubagentJoined as U, InputAppliedMarker as Ua, FinalizeLedgerFromHistory as Ui, approvalDecisionBatchId as Un, submissionAbortBatchId as Uo, ExplainedUnknownCall as Ur, isolateRecovery as Ut, SettlementFailureDiagnostic as V, ClaimRequest as Va, DelegationAdmissionEvidence as Vi, TurnCommitInput as Vn, WorkerStopCommand as Vo, ExplainedEvidence as Vr, RecoverySweepResult as Vt, SubagentLineageRecorded as W, JoinSnapshot as Wa, MarkUnknown as Wi, childIdempotencyKeyFor as Wn, submissionAbortRecordId as Wo, IntegrityCheck as Wr, recoveryRepairBatchId as Wt, ThreadCreated as X, MarkReadyRequest as Xa, RecoveryDecision as Xi, modelResponseInterruptedBatchId as Xn, workerTerminalFromRecord as Xo, ObligationReport as Xr, CheckpointRejected as Xt, SubtreeBudgetReserved as Y, MarkJoinedRequest as Ya, PropagateChildAbort as Yi, markUnknownBatchId as Yn, submissionSettlementRecordId as Yo, ObligationEntry as Yr, AppendResult as Yt, ToolApprovalDecided as Z, MarkUnknownRequest as Za, RecoveryEvidence as Zi, modelResponseInterruptedRecordId as Zn, ObligationSeverity as Zr, FenceRejected as Zt, Digest as _, AdmissionFence as _a, ResolvedBinding as _i, ThreadRecoveryCheckpoints as _n, SettlementFinalization as _o, subagentStartedRecordId as _r, DurableAbortFailure as _t, BatchId as a, ResumePendingToolBatch as aa, obligationSeverityOf as ai, ThreadCheckpoints as an, ReleaseChildBudgetRequest as ao, runDurationBatchId as ar, ToolStepSettled as at, MAX_PERSISTED_JSON_COLLECTION_LENGTH as b, AdmissionNotAdmitted as ba, definitionDigestsEqual as bi, ThreadStore as bn, SubmissionAdmissionFence as bo, toolCallPreparedRecordId as br, DurableApprovalFailure as bt, CanonicalRecord as c, RevertJoining as ca, renderRecoveryExplanation as ci, ThreadMaterialization as cn, ReservedChildBudget as co, runStartedBatchId as cr, WorkerAdmission as ct, CanonicalSequence as d, classifyRecovery as da, AgentRegistration as di, ThreadOutstanding as dn, ResolutionCompletedWithResult as do, subagentJoinedRecordId as dr, WorkerOrigin as dt, RepairInputMarker as ea, RecoveryDisposition as ei, MAX_THREAD_EXPORT_RECORDS as en, OwnershipSnapshot as eo, projectRunJournal as er, ToolCallResolution as et, CompactionCreated as f, AbortCommand as fa, BindingUnavailable as fi, ThreadOutstandingRequest as fn, ResolutionNeverHappened as fo, subagentLineageBatchId as fr, WorkerOriginRecorded as ft, DeploymentId as g, AdmissionConflict as ga, ReplayVersions as gi, ThreadRecordRequest as gn, SettlementConflict as go, subagentStartedBatchId as gr, WorkerStopRequested as gt, DefinitionDigests as h, AdmissionAdmitted as ha, ExecutableAgentBinding as hi, ThreadReadRequest as hn, Settlement as ho, subagentRequestedRecordId as hr, WorkerReportingIntent as ht, ApprovalDecision as i, ResumeFromTurnBoundary as ia, RetryRefused as ii, ThreadCheckpoint as in, RecoverySnapshotRequest as io, runCompletionDigest as ir, ToolOperation as it, RecordEnvelope as j, ChildAttachmentSnapshot as ja, ApplyUnknownResolutions as ji, readWorkerState as jn, SuspensionOutcome as jo, turnIdForRun as jr, DurableSubmitAgent as jt, ProducerEpoch as k, AttachChildToReservationRequest as ka, ApplyInput as ki, getRunInput as kn, SubmissionWorkItem as ko, turnBatchId as kr, DurableRuntimeConfig as kt, CanonicalRecordEnvelope as l, SettleAborted as la, AgentRegistration_d_exports as li, ThreadNotMaterialized as ln, ReservedSettlement as lo, runStartedRecordId as lr, WorkerInputCompleted as lt, DefinitionDigestInput as m, AbortIntentRequest as ma, DurableWorkerBinding as mi, ThreadRead as mn, RevertJoiningRequest as mo, subagentRequestedBatchId as mr, WorkerReportRefused as mt, AbortedSubmissionSettled as n, RepairReadiness as na, RetryCommand as ni, SaveRecoveryCheckpointRequest as nn, ParentLinkage as no, promptFromCanonicalRecords as nr, ToolCallSettled as nt, CURRENT_CANONICAL_SCHEMA_VERSION as o, ResumeSuspended as oa, predictRecoveryDisposition as oi, ThreadExport as on, ReleaseOwnershipRequest as oo, runDurationRecordId as or, ToolUnavailable as ot, CompletedSubmissionSettled as p, AbortIntent as pa, DurableBindingFailure as pi, ThreadPeerCountRequest as pn, ResolutionSafeToRetry as po, subagentLineageRecordId as pr, WorkerReportPrepared as pt, SubmissionSettled as q, LedgerError as qa, OpenToolCallEvidence as qi, compactionRecordId as qn, submissionSettlementBatchId as qo, IntegrityReport as qr, threadCreatedRecordId as qt, AgentUpdateEmitted as r, RepairSubagentStartLink as ra, RetryRefusalReason as ri, SelectedThreadRead as rn, RecoverySnapshot as ro, runCompletedRecordId as rr, ToolCallUnknown as rt, CanonicalBatch as s, ResumeWaitingParent as sa, recoveryDecisionMeaning as si, ThreadExportRequest as sn, RenewOwnershipRequest as so, runIdForSubmission as sr, UserInputRecorded as st, AbortRequested as t, RepairJoinMarker as ta, RecoveryExplanation as ti, SaveCheckpointRequest as tn, OwnershipToken as to, projectRunJournalStream as tr, ToolCallResolved as tt, CanonicalRecordPayload as u, SettleJoinedWithHost as ua, AgentAttemptContext as ui, ThreadObservation as un, ResolutionAbortSubmission as uo, subagentJoinBatchId as ur, WorkerInputRequested as ut, FailedSubmissionSettled as v, AdmissionGroup as va, compileBindingContracts as vi, ThreadRunInputRequest as vn, SettlementReservation as vo, toolApprovalDecisionRecordId as vr, DurableAgentRuntime as vt, ModelResponseInterrupted as w, AdmissionResult as wa, digestCanonicalBatch as wi, ThreadStore_d_exports as wn, SubmissionLookup as wo, toolCallSettledRecordId as wr, DurableObligationFailure as wt, MAX_PERSISTED_JSON_DEPTH as x, AdmissionPolicyError as xa, DigestError as xi, ThreadStoreDiagnostic as xn, SubmissionLedger as xo, toolCallResolutionBatchId as xr, DurableApprovalResolver as xt, MAX_PERSISTED_JSON_BYTES as y, AdmissionIndeterminate as ya, compileRegistrations as yi, ThreadSelection as yn, SettlementReservationSnapshot as yo, toolApprovalRequestRecordId as yr, DurableAgentRuntime_d_exports as yt, RunPolicyUsageReserved as z, Claim as za, CompleteMaterialization as zi, RunJournalUsage as zn, WaitingForChildSuspension as zo, workerReportRecordId as zr, RecoveryReport as zt };
|
|
4197
|
+
//# sourceMappingURL=Records-Byeb70tt.d.mts.map
|