@effect-agent/platform-cloudflare 0.1.0-beta.45 → 0.1.0-beta.47

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.
Files changed (97) hide show
  1. package/dist/Alarm.d.mts +119 -0
  2. package/dist/Alarm.mjs +317 -0
  3. package/dist/Alarm.mjs.map +1 -0
  4. package/dist/{browser-rest-capture.d.mts → BrowserRestCapture.d.mts} +5 -4
  5. package/dist/{browser-rest-capture.mjs → BrowserRestCapture.mjs} +5 -4
  6. package/dist/BrowserRestCapture.mjs.map +1 -0
  7. package/dist/{browser-rest-crawl.d.mts → BrowserRestCrawl.d.mts} +4 -3
  8. package/dist/{browser-rest-crawl.mjs → BrowserRestCrawl.mjs} +4 -3
  9. package/dist/BrowserRestCrawl.mjs.map +1 -0
  10. package/dist/{bindings-BrVEOkfe.d.mts → CloudflareBindings.d.mts} +7 -5
  11. package/dist/CloudflareBindings.mjs +98 -0
  12. package/dist/CloudflareBindings.mjs.map +1 -0
  13. package/dist/{browser-quick-action.mjs → CloudflareBrowser-1jeZx3_g.mjs} +19 -4
  14. package/dist/CloudflareBrowser-1jeZx3_g.mjs.map +1 -0
  15. package/dist/{browser-quick-action.d.mts → CloudflareBrowser-DJq53niJ.d.mts} +9 -18
  16. package/dist/CloudflareBrowser.d.mts +2 -0
  17. package/dist/CloudflareBrowser.mjs +2 -0
  18. package/dist/CloudflareCodeMode.d.mts +44 -0
  19. package/dist/CloudflareCodeMode.mjs +618 -0
  20. package/dist/CloudflareCodeMode.mjs.map +1 -0
  21. package/dist/CloudflareConfig-f3CqTel1.d.mts +101 -0
  22. package/dist/CloudflareConfig.d.mts +2 -0
  23. package/dist/CloudflareConfig.mjs +122 -0
  24. package/dist/CloudflareConfig.mjs.map +1 -0
  25. package/dist/CloudflareMemory.d.mts +140 -0
  26. package/dist/CloudflareMemory.mjs +168 -0
  27. package/dist/CloudflareMemory.mjs.map +1 -0
  28. package/dist/{scheduling.d.mts → CloudflareScheduling.d.mts} +9 -6
  29. package/dist/{scheduling.mjs → CloudflareScheduling.mjs} +22 -8
  30. package/dist/CloudflareScheduling.mjs.map +1 -0
  31. package/dist/{subscriptions.d.mts → CloudflareSubscriptions.d.mts} +11 -6
  32. package/dist/{subscriptions.mjs → CloudflareSubscriptions.mjs} +26 -7
  33. package/dist/CloudflareSubscriptions.mjs.map +1 -0
  34. package/dist/CloudflareThreadClient.d.mts +715 -0
  35. package/dist/CloudflareThreadClient.mjs +364 -0
  36. package/dist/CloudflareThreadClient.mjs.map +1 -0
  37. package/dist/{interactive-browser.d.mts → InteractiveBrowser.d.mts} +5 -4
  38. package/dist/{interactive-browser.mjs → InteractiveBrowser.mjs} +6 -4
  39. package/dist/InteractiveBrowser.mjs.map +1 -0
  40. package/dist/{protected-browser.d.mts → ProtectedBrowser.d.mts} +4 -3
  41. package/dist/{protected-browser.mjs → ProtectedBrowser.mjs} +4 -3
  42. package/dist/ProtectedBrowser.mjs.map +1 -0
  43. package/dist/ThreadObject-IrGuIO4a.mjs +575 -0
  44. package/dist/ThreadObject-IrGuIO4a.mjs.map +1 -0
  45. package/dist/ThreadObject-TEgOO0YM.d.mts +735 -0
  46. package/dist/ThreadObject.d.mts +2 -0
  47. package/dist/ThreadObject.mjs +3 -0
  48. package/dist/WakeScheduler.d.mts +23 -0
  49. package/dist/WakeScheduler.mjs +60 -0
  50. package/dist/WakeScheduler.mjs.map +1 -0
  51. package/dist/boundary-BguazVkh.mjs +42 -0
  52. package/dist/boundary-BguazVkh.mjs.map +1 -0
  53. package/dist/{browser-session-lifecycle-ZGgb3pnK.mjs → browser-session-lifecycle-CUbVfEgP.mjs} +2 -2
  54. package/dist/browser-session-lifecycle-CUbVfEgP.mjs.map +1 -0
  55. package/dist/{browser-session-lifecycle-DqntvG-Y.d.mts → browser-session-lifecycle-DJpqLXy_.d.mts} +2 -2
  56. package/dist/index.d.mts +12 -1833
  57. package/dist/index.mjs +12 -1357
  58. package/dist/prepared-admission-DRBhl2Sp.mjs +63 -0
  59. package/dist/prepared-admission-DRBhl2Sp.mjs.map +1 -0
  60. package/package.json +1 -1
  61. package/src/{alarm.ts → Alarm.ts} +6 -7
  62. package/src/{browser-rest-capture.ts → BrowserRestCapture.ts} +3 -3
  63. package/src/{browser-rest-crawl.ts → BrowserRestCrawl.ts} +2 -2
  64. package/src/{bindings.ts → CloudflareBindings.ts} +2 -2
  65. package/src/CloudflareBrowser.ts +15 -0
  66. package/src/{code-mode-executor.ts → CloudflareCodeMode.ts} +3 -3
  67. package/src/{config.ts → CloudflareConfig.ts} +3 -2
  68. package/src/{memory.ts → CloudflareMemory.ts} +15 -12
  69. package/src/{scheduling.ts → CloudflareScheduling.ts} +12 -11
  70. package/src/{subscriptions.ts → CloudflareSubscriptions.ts} +14 -12
  71. package/src/{client.ts → CloudflareThreadClient.ts} +27 -20
  72. package/src/{interactive-browser.ts → InteractiveBrowser.ts} +9 -5
  73. package/src/{thread-object.ts → ThreadObject.ts} +37 -29
  74. package/src/{wake-scheduler.ts → WakeScheduler.ts} +5 -5
  75. package/src/index.ts +11 -30
  76. package/src/{browser-quick-action.ts → internal/browser-quick-action.ts} +10 -8
  77. package/src/{layers.ts → internal/layers.ts} +39 -30
  78. package/src/{prepared-admission.ts → internal/prepared-admission.ts} +7 -7
  79. package/src/{transport.ts → internal/transport.ts} +5 -2
  80. package/src/protected-browser/binding.ts +3 -2
  81. package/src/protected-browser/native.ts +2 -2
  82. package/src/protected-browser/policy.ts +2 -2
  83. package/dist/browser-quick-action.mjs.map +0 -1
  84. package/dist/browser-rest-capture.mjs.map +0 -1
  85. package/dist/browser-rest-crawl.mjs.map +0 -1
  86. package/dist/browser-session-lifecycle-ZGgb3pnK.mjs.map +0 -1
  87. package/dist/index.mjs.map +0 -1
  88. package/dist/interactive-browser.mjs.map +0 -1
  89. package/dist/prepared-admission-BhW2eT_a.mjs +0 -890
  90. package/dist/prepared-admission-BhW2eT_a.mjs.map +0 -1
  91. package/dist/protected-browser.mjs.map +0 -1
  92. package/dist/scheduling.mjs.map +0 -1
  93. package/dist/subscriptions.mjs.map +0 -1
  94. /package/src/{protected-browser.ts → ProtectedBrowser.ts} +0 -0
  95. /package/src/{boundary.ts → internal/boundary.ts} +0 -0
  96. /package/src/{browser-session-lifecycle.ts → internal/browser-session-lifecycle.ts} +0 -0
  97. /package/src/{progress-wait.ts → internal/progress-wait.ts} +0 -0
@@ -0,0 +1,715 @@
1
+ import { ThreadObjectNamespace, ThreadObjectRpc } from "./CloudflareBindings.mjs";
2
+ import { t as AdmissionLimitExceeded } from "./CloudflareConfig-f3CqTel1.mjs";
3
+ import { DurableAlarmError } from "./Alarm.mjs";
4
+ import { DurableSubmitAgent, DurableSubmitOptions, Receipt } from "@effect-agent/thread/DurableAgentRuntime";
5
+ import { AbortCommand, AbortIntent, AdmissionConflict, ApprovalConflict, ApprovalDecisionCommand, ApprovalDecisionIntent, JoinedToHost, LedgerError, Settlement, SettlementConflict, UnknownResolutionCommand, UnknownResolutionConflict, UnknownResolutionIntent } from "@effect-agent/thread/SubmissionLedger";
6
+ import { Context, Crypto, Effect, Layer, Schema } from "effect";
7
+ import { ThreadId } from "@effect-agent/core/Identifiers";
8
+ import { CanonicalRecordEnvelope, CanonicalSequence, DefinitionDigests } from "@effect-agent/thread/Records";
9
+ import { AgentInputError } from "@effect-agent/core/AgentError";
10
+ import { DigestError } from "@effect-agent/thread/Digest";
11
+ import { DurableRuntimeFailpointError } from "@effect-agent/thread/DurableFailpoint";
12
+ import { OperationDenied } from "@effect-agent/thread/OperationAuthorizer";
13
+ import { AppendConflict, FenceRejected, ThreadNotMaterialized, ThreadStoreError } from "@effect-agent/thread/ThreadStore";
14
+ declare namespace CloudflareThreadClient_d_exports {
15
+ export { AbortRecorded, ApprovalRecorded, AwaitProgressRequest, CancelProgressRequest, ClientAbortFailure, ClientApprovalFailure, ClientAwaitFailure, ClientObserveFailure, ClientProgressFailure, ClientSubmitFailure, ClientUnknownFailure, CloudflareThreadClient, HostFailed, HostFailure, HostProtocolError, HostResponse, ObservePageRequest, ObservedPage, ProgressCancelled, ProgressObserved, SettlementReached, SubmitRequest, SubmitSucceeded, ThreadClientError, UnknownResolutionRecorded, boundHostDiagnostic, decodeAbortCommand, decodeApprovalDecisionCommand, decodeAwaitProgressRequest, decodeCancelProgressRequest, decodeHostResponse, decodeObservePageRequest, decodeReceipt, decodeSubmitRequest, decodeUnknownResolutionCommand, encodeAbortCommand, encodeApprovalDecisionCommand, encodeAwaitProgressRequest, encodeCancelProgressRequest, encodeHostResponse, encodeObservePageRequest, encodeReceipt, encodeSubmitRequest, encodeUnknownResolutionCommand };
16
+ }
17
+ /** Truncate a diagnostic string to the host protocol's bounded length. */
18
+ declare const boundHostDiagnostic: (value: string) => string;
19
+ declare const HostProtocolError_base: Schema.Class<HostProtocolError, Schema.TaggedStruct<"HostProtocolError", {
20
+ readonly message: Schema.String;
21
+ }>, import("effect/Cause").YieldableError>;
22
+ /**
23
+ * The envelope itself could not be honored: the Object could not decode the request, or a
24
+ * response could not be encoded/decoded. Never carries operation semantics.
25
+ */
26
+ declare class HostProtocolError extends HostProtocolError_base {}
27
+ declare const ThreadClientError_base: Schema.Class<ThreadClientError, Schema.TaggedStruct<"ThreadClientError", {
28
+ readonly threadId: Schema.String;
29
+ readonly message: Schema.String;
30
+ readonly cause: Schema.optionalKey<Schema.Defect>;
31
+ /** Cloudflare's own classification for a failure safe to retry with a fresh stub. */
32
+ readonly retryable: Schema.optionalKey<Schema.Boolean>;
33
+ /** Cloudflare overloads are surfaced immediately instead of adding retry pressure. */
34
+ readonly overloaded: Schema.optionalKey<Schema.Boolean>;
35
+ }>, import("effect/Cause").YieldableError>;
36
+ /** The Worker-side stub call itself failed (RPC rejection, overload, eviction mid-call). */
37
+ declare class ThreadClientError extends ThreadClientError_base {}
38
+ declare const SubmitRequest_base: Schema.Class<SubmitRequest, Schema.Struct<{
39
+ readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
40
+ readonly principal: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">;
41
+ readonly idempotencyKey: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
42
+ readonly definitions: typeof DefinitionDigests;
43
+ readonly inputPayload: Schema.declare<Schema.Json, Schema.Json>;
44
+ }>, {}>;
45
+ /**
46
+ * One durable submission, input ALREADY encoded by the caller through the Agent Binding's
47
+ * input schema (the Worker bundles the same Agent definitions as the Object, so schema
48
+ * validation happens client-side; the resolved Binding re-validates at claim time). The
49
+ * Thread identity is deliberately absent — the addressed Object IS the lane.
50
+ */
51
+ declare class SubmitRequest extends SubmitRequest_base {}
52
+ declare const ObservePageRequest_base: Schema.Class<ObservePageRequest, Schema.Struct<{
53
+ readonly afterSequence: Schema.optionalKey<Schema.brand<Schema.Natural, "@effect-agent/thread/CanonicalSequence">>;
54
+ readonly limit: Schema.Int;
55
+ }>, {}>;
56
+ /** One bounded page of canonical records after an optional sequence. */
57
+ declare class ObservePageRequest extends ObservePageRequest_base {}
58
+ declare const AwaitProgressRequest_base: Schema.Class<AwaitProgressRequest, Schema.Struct<{
59
+ readonly afterSequence: Schema.brand<Schema.Natural, "@effect-agent/thread/CanonicalSequence">;
60
+ readonly waiterId: Schema.String;
61
+ }>, {}>;
62
+ /** One event-driven wait for canonical progress strictly after this sequence. */
63
+ declare class AwaitProgressRequest extends AwaitProgressRequest_base {}
64
+ declare const CancelProgressRequest_base: Schema.Class<CancelProgressRequest, Schema.Struct<{
65
+ readonly waiterId: Schema.String;
66
+ }>, {}>;
67
+ /** Best-effort cancellation of one in-flight progress RPC. */
68
+ declare class CancelProgressRequest extends CancelProgressRequest_base {}
69
+ /**
70
+ * Every typed failure a host entry point can produce, plus the protocol's own errors. Same
71
+ * closed-union discipline as the WP2 `PortFailure`: members re-decode to the SAME tagged
72
+ * classes on the Worker side; `cause` chains travel as Schema defects without instance
73
+ * fidelity (plan §2.8).
74
+ */
75
+ declare const HostFailure: Schema.Union<readonly [typeof AgentInputError, typeof DigestError, typeof AdmissionConflict, typeof SettlementConflict, typeof ApprovalConflict, typeof UnknownResolutionConflict, typeof JoinedToHost, typeof LedgerError, typeof ThreadStoreError, typeof ThreadNotMaterialized, typeof AppendConflict, typeof FenceRejected, typeof DurableRuntimeFailpointError, typeof AdmissionLimitExceeded, typeof DurableAlarmError, typeof OperationDenied, typeof HostProtocolError]>;
76
+ type HostFailure = typeof HostFailure.Type;
77
+ declare const SubmitSucceeded_base: Schema.Class<SubmitSucceeded, Schema.TaggedStruct<"SubmitSucceeded", {
78
+ readonly receipt: typeof Receipt;
79
+ }>, {}>;
80
+ declare class SubmitSucceeded extends SubmitSucceeded_base {}
81
+ declare const SettlementReached_base: Schema.Class<SettlementReached, Schema.TaggedStruct<"SettlementReached", {
82
+ readonly settlement: typeof Settlement;
83
+ }>, {}>;
84
+ declare class SettlementReached extends SettlementReached_base {}
85
+ declare const ObservedPage_base: Schema.Class<ObservedPage, Schema.TaggedStruct<"ObservedPage", {
86
+ readonly records: Schema.$Array<typeof CanonicalRecordEnvelope>;
87
+ }>, {}>;
88
+ declare class ObservedPage extends ObservedPage_base {}
89
+ declare const ProgressObserved_base: Schema.Class<ProgressObserved, Schema.TaggedStruct<"ProgressObserved", {}>, {}>;
90
+ /** A record was already committed or an incarnation-local hint says the caller should re-read. */
91
+ declare class ProgressObserved extends ProgressObserved_base {}
92
+ declare const ProgressCancelled_base: Schema.Class<ProgressCancelled, Schema.TaggedStruct<"ProgressCancelled", {}>, {}>;
93
+ declare class ProgressCancelled extends ProgressCancelled_base {}
94
+ declare const AbortRecorded_base: Schema.Class<AbortRecorded, Schema.TaggedStruct<"AbortRecorded", {
95
+ readonly intent: typeof AbortIntent;
96
+ }>, {}>;
97
+ declare class AbortRecorded extends AbortRecorded_base {}
98
+ declare const ApprovalRecorded_base: Schema.Class<ApprovalRecorded, Schema.TaggedStruct<"ApprovalRecorded", {
99
+ readonly intent: typeof ApprovalDecisionIntent;
100
+ }>, {}>;
101
+ declare class ApprovalRecorded extends ApprovalRecorded_base {}
102
+ declare const UnknownResolutionRecorded_base: Schema.Class<UnknownResolutionRecorded, Schema.TaggedStruct<"UnknownResolutionRecorded", {
103
+ readonly intent: typeof UnknownResolutionIntent;
104
+ }>, {}>;
105
+ declare class UnknownResolutionRecorded extends UnknownResolutionRecorded_base {}
106
+ declare const HostFailed_base: Schema.Class<HostFailed, Schema.TaggedStruct<"HostFailed", {
107
+ readonly failure: Schema.Union<readonly [typeof AgentInputError, typeof DigestError, typeof AdmissionConflict, typeof SettlementConflict, typeof ApprovalConflict, typeof UnknownResolutionConflict, typeof JoinedToHost, typeof LedgerError, typeof ThreadStoreError, typeof ThreadNotMaterialized, typeof AppendConflict, typeof FenceRejected, typeof DurableRuntimeFailpointError, typeof AdmissionLimitExceeded, typeof DurableAlarmError, typeof OperationDenied, typeof HostProtocolError]>;
108
+ }>, {}>;
109
+ /** The entry point failed TYPED on the Object; the failure re-decodes verbatim. */
110
+ declare class HostFailed extends HostFailed_base {}
111
+ /** The uniform answer of one host entry point. Callers narrow by the tag their call implies. */
112
+ declare const HostResponse: Schema.Union<readonly [typeof SubmitSucceeded, typeof SettlementReached, typeof ObservedPage, typeof ProgressObserved, typeof ProgressCancelled, typeof AbortRecorded, typeof ApprovalRecorded, typeof UnknownResolutionRecorded, typeof HostFailed]>;
113
+ type HostResponse = typeof HostResponse.Type;
114
+ declare const decodeSubmitRequest: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<SubmitRequest, Schema.SchemaError, never>;
115
+ declare const encodeSubmitRequest: (input: SubmitRequest, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<{
116
+ readonly agentId: string;
117
+ readonly principal: string;
118
+ readonly idempotencyKey: string;
119
+ readonly definitions: {
120
+ readonly agent: string;
121
+ readonly model: string;
122
+ readonly tools: string;
123
+ };
124
+ readonly inputPayload: Schema.Json;
125
+ }, Schema.SchemaError, never>;
126
+ declare const decodeReceipt: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<Receipt, Schema.SchemaError, never>;
127
+ declare const encodeReceipt: (input: Receipt, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<{
128
+ readonly receiptId: string;
129
+ readonly submissionId: string;
130
+ readonly threadId: string;
131
+ readonly queueSequence: number;
132
+ }, Schema.SchemaError, never>;
133
+ declare const decodeObservePageRequest: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<ObservePageRequest, Schema.SchemaError, never>;
134
+ declare const encodeObservePageRequest: (input: ObservePageRequest, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<{
135
+ readonly afterSequence?: number | undefined;
136
+ readonly limit: number;
137
+ }, Schema.SchemaError, never>;
138
+ declare const decodeAwaitProgressRequest: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<AwaitProgressRequest, Schema.SchemaError, never>;
139
+ declare const encodeAwaitProgressRequest: (input: AwaitProgressRequest, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<{
140
+ readonly afterSequence: number;
141
+ readonly waiterId: string;
142
+ }, Schema.SchemaError, never>;
143
+ declare const decodeCancelProgressRequest: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<CancelProgressRequest, Schema.SchemaError, never>;
144
+ declare const encodeCancelProgressRequest: (input: CancelProgressRequest, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<{
145
+ readonly waiterId: string;
146
+ }, Schema.SchemaError, never>;
147
+ declare const decodeAbortCommand: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<AbortCommand, Schema.SchemaError, never>;
148
+ declare const encodeAbortCommand: (input: AbortCommand, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<{
149
+ readonly submissionId: string;
150
+ readonly author: string;
151
+ readonly reason: string;
152
+ }, Schema.SchemaError, never>;
153
+ declare const decodeApprovalDecisionCommand: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<ApprovalDecisionCommand, Schema.SchemaError, never>;
154
+ declare const encodeApprovalDecisionCommand: (input: ApprovalDecisionCommand, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<{
155
+ readonly submissionId: string;
156
+ readonly toolCallId: string;
157
+ readonly decision: "approved" | "denied";
158
+ readonly resolver: string;
159
+ readonly reason: string;
160
+ }, Schema.SchemaError, never>;
161
+ declare const decodeUnknownResolutionCommand: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<UnknownResolutionCommand, Schema.SchemaError, never>;
162
+ declare const encodeUnknownResolutionCommand: (input: UnknownResolutionCommand, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<{
163
+ readonly submissionId: string;
164
+ readonly toolCallId: string;
165
+ readonly author: string;
166
+ readonly reason: string;
167
+ readonly resolution: {
168
+ readonly _tag: "CompletedWithResult";
169
+ readonly result: Schema.Json;
170
+ readonly isFailure: boolean;
171
+ } | {
172
+ readonly _tag: "NeverHappened";
173
+ } | {
174
+ readonly _tag: "SafeToRetry";
175
+ } | {
176
+ readonly _tag: "AbortSubmission";
177
+ };
178
+ }, Schema.SchemaError, never>;
179
+ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | HostFailed | ObservedPage | ProgressCancelled | ProgressObserved | SettlementReached | SubmitSucceeded | UnknownResolutionRecorded, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<{
180
+ readonly _tag: "SubmitSucceeded";
181
+ readonly receipt: {
182
+ readonly receiptId: string;
183
+ readonly submissionId: string;
184
+ readonly threadId: string;
185
+ readonly queueSequence: number;
186
+ };
187
+ } | {
188
+ readonly _tag: "SettlementReached";
189
+ readonly settlement: {
190
+ readonly submissionId: string;
191
+ readonly settlementId: string;
192
+ readonly receiptId: string;
193
+ readonly outcome: "aborted" | "completed" | "failed";
194
+ readonly runDisposition?: Schema.Json | undefined;
195
+ readonly usageSummary?: {
196
+ readonly modelCalls: number;
197
+ readonly inputTokens: {
198
+ readonly total: number;
199
+ readonly uncached: number;
200
+ readonly cacheRead: number;
201
+ readonly cacheWrite: number;
202
+ };
203
+ readonly outputTokens: {
204
+ readonly total: number;
205
+ readonly text: number;
206
+ readonly reasoning: number;
207
+ };
208
+ readonly costMicrousd: number;
209
+ readonly byModel: readonly {
210
+ readonly provider: string;
211
+ readonly model: string;
212
+ readonly serviceTier?: string | undefined;
213
+ readonly pricingVersion?: string | undefined;
214
+ readonly modelCalls: number;
215
+ readonly inputTokens: {
216
+ readonly total: number;
217
+ readonly uncached: number;
218
+ readonly cacheRead: number;
219
+ readonly cacheWrite: number;
220
+ };
221
+ readonly outputTokens: {
222
+ readonly total: number;
223
+ readonly text: number;
224
+ readonly reasoning: number;
225
+ };
226
+ readonly costMicrousd: number;
227
+ }[];
228
+ } | undefined;
229
+ readonly failure?: {
230
+ readonly errorTag: string;
231
+ readonly message: string;
232
+ } | undefined;
233
+ readonly settledAt: string;
234
+ };
235
+ } | {
236
+ readonly _tag: "ObservedPage";
237
+ readonly records: readonly {
238
+ readonly threadId: string;
239
+ readonly batchId: string;
240
+ readonly sequence: number;
241
+ readonly offset: string;
242
+ readonly record: {
243
+ readonly recordId: string;
244
+ readonly family: "thread";
245
+ readonly schemaVersion: 1;
246
+ readonly createdAt: string;
247
+ readonly deploymentId: string;
248
+ readonly payload: {
249
+ readonly _tag: "ThreadCreated";
250
+ readonly agentId: string;
251
+ readonly definitions: {
252
+ readonly agent: string;
253
+ readonly model: string;
254
+ readonly tools: string;
255
+ };
256
+ } | {
257
+ readonly _tag: "UserInputRecorded";
258
+ readonly submissionId?: string | undefined;
259
+ readonly kind: "follow-up" | "steering" | "user";
260
+ readonly runId?: string | undefined;
261
+ readonly input: Schema.Json;
262
+ } | {
263
+ readonly _tag: "RunStarted";
264
+ readonly runId: string;
265
+ readonly policyAccountingVersion: 1;
266
+ readonly maxDurationMillis: number;
267
+ } | {
268
+ readonly _tag: "RunPolicyUsageReserved";
269
+ readonly runId: string;
270
+ readonly programmaticToolCalls: number;
271
+ readonly finalizationUsed: boolean;
272
+ } | {
273
+ readonly _tag: "ModelCompleted";
274
+ readonly runId: string;
275
+ readonly output: Schema.Json;
276
+ readonly messages?: Schema.Json | undefined;
277
+ } | {
278
+ readonly _tag: "ModelResponseRecorded";
279
+ readonly runId: string;
280
+ readonly turnId: string;
281
+ readonly turn: number;
282
+ readonly messages: Schema.Json;
283
+ readonly messagesDigest: string;
284
+ readonly runScopedPrefixLength?: number | undefined;
285
+ readonly modelUsage?: readonly {
286
+ readonly provider: string;
287
+ readonly model: string;
288
+ readonly serviceTier?: string | undefined;
289
+ readonly pricingVersion?: string | undefined;
290
+ readonly inputTokens: {
291
+ readonly total: number;
292
+ readonly uncached: number;
293
+ readonly cacheRead: number;
294
+ readonly cacheWrite: number;
295
+ };
296
+ readonly outputTokens: {
297
+ readonly total: number;
298
+ readonly text: number;
299
+ readonly reasoning: number;
300
+ };
301
+ readonly costMicrousd: number;
302
+ }[] | undefined;
303
+ readonly inputTokens?: number | undefined;
304
+ readonly outputTokens?: number | undefined;
305
+ readonly costMicrousd?: number | undefined;
306
+ } | {
307
+ readonly _tag: "ToolCallPrepared";
308
+ readonly runId: string;
309
+ readonly turnId: string;
310
+ readonly turn: number;
311
+ readonly toolCallId: string;
312
+ readonly toolName: string;
313
+ readonly parameters: Schema.Json;
314
+ readonly parametersDigest: string;
315
+ readonly executionKind?: "delegation" | "ordinary" | undefined;
316
+ } | {
317
+ readonly _tag: "ToolCallSettled";
318
+ readonly runId: string;
319
+ readonly toolCallId: string;
320
+ readonly toolName: string;
321
+ readonly result: Schema.Json;
322
+ readonly isFailure: boolean;
323
+ readonly budgetRejected?: true | undefined;
324
+ } | {
325
+ readonly _tag: "ToolCallUnknown";
326
+ readonly runId: string;
327
+ readonly turn: number;
328
+ readonly toolCallId: string;
329
+ readonly toolName: string;
330
+ readonly reason: string;
331
+ } | {
332
+ readonly _tag: "ToolCallResolved";
333
+ readonly runId: string;
334
+ readonly toolCallId: string;
335
+ readonly resolution: "completed-with-result" | "failed-with-error" | "never-started" | "safe-retry";
336
+ readonly author: string;
337
+ readonly reason: string;
338
+ } | {
339
+ readonly _tag: "ToolStepSettled";
340
+ readonly runId: string;
341
+ readonly toolCallId: string;
342
+ readonly stepName: string;
343
+ readonly output: Schema.Json;
344
+ readonly outputDigest: string;
345
+ } | {
346
+ readonly _tag: "ToolApprovalRequested";
347
+ readonly runId: string;
348
+ readonly turnId: string;
349
+ readonly turn: number;
350
+ readonly toolCallId: string;
351
+ readonly toolName: string;
352
+ readonly parametersDigest: string;
353
+ } | {
354
+ readonly _tag: "ToolApprovalDecided";
355
+ readonly runId: string;
356
+ readonly turn: number;
357
+ readonly toolCallId: string;
358
+ readonly decision: "approved" | "denied";
359
+ readonly resolver: string;
360
+ readonly reason: string;
361
+ } | {
362
+ readonly _tag: "ModelResponseInterrupted";
363
+ readonly runId: string;
364
+ readonly supersededEpoch: number;
365
+ readonly attemptId: string;
366
+ readonly reason: string;
367
+ } | {
368
+ readonly _tag: "CompactionCreated";
369
+ readonly runId: string;
370
+ readonly turn: number;
371
+ readonly kind: "clear-tool-results" | "summarize";
372
+ readonly coversThrough: number;
373
+ readonly summary?: string | undefined;
374
+ } | {
375
+ readonly _tag: "RunFailed";
376
+ readonly runId: string;
377
+ readonly failure: Schema.Json;
378
+ } | {
379
+ readonly _tag: "RunCompleted";
380
+ readonly runId: string;
381
+ readonly output: Schema.Json;
382
+ readonly runDisposition?: Schema.Json | undefined;
383
+ readonly finishReason?: "budget-exhausted" | undefined;
384
+ readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
385
+ } | {
386
+ readonly _tag: "AbortRequested";
387
+ readonly submissionId: string;
388
+ readonly author: string;
389
+ readonly reason: string;
390
+ } | {
391
+ readonly _tag: "SubmissionSettled";
392
+ readonly submissionId: string;
393
+ readonly settlementId: string;
394
+ readonly receiptId: string;
395
+ readonly outcome: "aborted" | "completed" | "failed";
396
+ readonly runId?: string | undefined;
397
+ readonly result?: Schema.Json | undefined;
398
+ readonly runDisposition?: Schema.Json | undefined;
399
+ readonly finishReason?: "budget-exhausted" | undefined;
400
+ readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
401
+ readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
402
+ readonly usageSummary?: {
403
+ readonly modelCalls: number;
404
+ readonly inputTokens: {
405
+ readonly total: number;
406
+ readonly uncached: number;
407
+ readonly cacheRead: number;
408
+ readonly cacheWrite: number;
409
+ };
410
+ readonly outputTokens: {
411
+ readonly total: number;
412
+ readonly text: number;
413
+ readonly reasoning: number;
414
+ };
415
+ readonly costMicrousd: number;
416
+ readonly byModel: readonly {
417
+ readonly provider: string;
418
+ readonly model: string;
419
+ readonly serviceTier?: string | undefined;
420
+ readonly pricingVersion?: string | undefined;
421
+ readonly modelCalls: number;
422
+ readonly inputTokens: {
423
+ readonly total: number;
424
+ readonly uncached: number;
425
+ readonly cacheRead: number;
426
+ readonly cacheWrite: number;
427
+ };
428
+ readonly outputTokens: {
429
+ readonly total: number;
430
+ readonly text: number;
431
+ readonly reasoning: number;
432
+ };
433
+ readonly costMicrousd: number;
434
+ }[];
435
+ } | undefined;
436
+ } | {
437
+ readonly _tag: "SubagentRequested";
438
+ readonly runId: string;
439
+ readonly turnId: string;
440
+ readonly turn: number;
441
+ readonly toolCallId: string;
442
+ readonly delegationId: string;
443
+ readonly targetAgentId: string;
444
+ readonly targetDigests: {
445
+ readonly agent: string;
446
+ readonly model: string;
447
+ readonly tools: string;
448
+ };
449
+ readonly childInput: Schema.Json;
450
+ readonly childInputDigest: string;
451
+ readonly grantDigest: string;
452
+ readonly reservationId: string;
453
+ readonly reservationDigest: string;
454
+ readonly childThreadId: string;
455
+ readonly childPrincipal: string;
456
+ readonly childIdempotencyKey: string;
457
+ readonly toolCallAllowance?: number | undefined;
458
+ readonly policy?: Schema.Json | undefined;
459
+ readonly budget?: {
460
+ readonly caps: {
461
+ readonly maxTotalChildInvocations?: number | undefined;
462
+ readonly maxConcurrentChildren?: number | undefined;
463
+ readonly maxTurns?: number | undefined;
464
+ readonly maxToolCalls?: number | undefined;
465
+ readonly maxDurationMillis?: number | undefined;
466
+ readonly maxInputTokens?: number | undefined;
467
+ readonly maxOutputTokens?: number | undefined;
468
+ readonly maxCostMicrousd?: number | undefined;
469
+ readonly maxResultBytes?: number | undefined;
470
+ };
471
+ readonly allocation: {
472
+ readonly turns: number;
473
+ readonly toolCalls: number;
474
+ readonly durationMillis: number;
475
+ readonly inputTokens: number;
476
+ readonly outputTokens: number;
477
+ readonly costMicrousd: number;
478
+ readonly resultBytes: number;
479
+ };
480
+ } | undefined;
481
+ } | {
482
+ readonly _tag: "SubagentStarted";
483
+ readonly runId: string;
484
+ readonly toolCallId: string;
485
+ readonly childThreadId: string;
486
+ readonly childSubmissionId: string;
487
+ readonly childReceiptId: string;
488
+ readonly childRunId: string;
489
+ } | {
490
+ readonly _tag: "SubagentJoined";
491
+ readonly runId: string;
492
+ readonly toolCallId: string;
493
+ readonly childSubmissionId: string;
494
+ readonly childSettlementId: string;
495
+ readonly childOutcome: "aborted" | "completed" | "failed";
496
+ readonly childResultDigest: string;
497
+ readonly projectedResultDigest: string;
498
+ readonly usageSummary: Schema.Json;
499
+ readonly reservationId: string;
500
+ readonly finalAccounting: Schema.Json;
501
+ } | {
502
+ readonly _tag: "SubagentLineageRecorded";
503
+ readonly parentLink: {
504
+ readonly delegationId: string;
505
+ readonly parentAgentId: string;
506
+ readonly parentThreadId: string;
507
+ readonly parentRunId: string;
508
+ readonly parentToolCallId: string;
509
+ readonly depth: number;
510
+ };
511
+ readonly parentSubmissionId: string;
512
+ readonly childDefinitionDigests: {
513
+ readonly agent: string;
514
+ readonly model: string;
515
+ readonly tools: string;
516
+ };
517
+ readonly childInputDigest: string;
518
+ readonly grantDigest: string;
519
+ readonly toolCallAllowance?: number | undefined;
520
+ readonly policy?: Schema.Json | undefined;
521
+ } | {
522
+ readonly _tag: "RepairAnnotated";
523
+ readonly reason: string;
524
+ readonly details: Schema.Json;
525
+ };
526
+ };
527
+ }[];
528
+ } | {
529
+ readonly _tag: "ProgressObserved";
530
+ } | {
531
+ readonly _tag: "ProgressCancelled";
532
+ } | {
533
+ readonly _tag: "AbortRecorded";
534
+ readonly intent: {
535
+ readonly submissionId: string;
536
+ readonly author: string;
537
+ readonly reason: string;
538
+ readonly requestedAt: string;
539
+ readonly canonicalRecordId?: string | undefined;
540
+ };
541
+ } | {
542
+ readonly _tag: "ApprovalRecorded";
543
+ readonly intent: {
544
+ readonly submissionId: string;
545
+ readonly toolCallId: string;
546
+ readonly decision: "approved" | "denied";
547
+ readonly resolver: string;
548
+ readonly reason: string;
549
+ readonly decidedAt: string;
550
+ readonly canonicalRecordId?: string | undefined;
551
+ };
552
+ } | {
553
+ readonly _tag: "UnknownResolutionRecorded";
554
+ readonly intent: {
555
+ readonly submissionId: string;
556
+ readonly toolCallId: string;
557
+ readonly author: string;
558
+ readonly reason: string;
559
+ readonly resolution: {
560
+ readonly _tag: "CompletedWithResult";
561
+ readonly result: Schema.Json;
562
+ readonly isFailure: boolean;
563
+ } | {
564
+ readonly _tag: "NeverHappened";
565
+ } | {
566
+ readonly _tag: "SafeToRetry";
567
+ } | {
568
+ readonly _tag: "AbortSubmission";
569
+ };
570
+ readonly resolvedAt: string;
571
+ readonly canonicalRecordId?: string | undefined;
572
+ };
573
+ } | {
574
+ readonly _tag: "HostFailed";
575
+ readonly failure: {
576
+ readonly _tag: "HostProtocolError";
577
+ readonly message: string;
578
+ } | {
579
+ readonly _tag: "AgentInputError";
580
+ readonly message: string;
581
+ } | {
582
+ readonly _tag: "DigestError";
583
+ readonly message: string;
584
+ readonly cause?: Schema.Json | undefined;
585
+ } | {
586
+ readonly _tag: "AdmissionConflict";
587
+ readonly threadId: string;
588
+ readonly principal: string;
589
+ readonly idempotencyKey: string;
590
+ readonly existingInputDigest: string;
591
+ readonly attemptedInputDigest: string;
592
+ } | {
593
+ readonly _tag: "SettlementConflict";
594
+ readonly submissionId: string;
595
+ readonly existingOutcome: "aborted" | "completed" | "failed";
596
+ } | {
597
+ readonly _tag: "ApprovalConflict";
598
+ readonly submissionId: string;
599
+ readonly toolCallId: string;
600
+ readonly existingDecision: "approved" | "denied";
601
+ } | {
602
+ readonly _tag: "UnknownResolutionConflict";
603
+ readonly submissionId: string;
604
+ readonly toolCallId: string;
605
+ } | {
606
+ readonly _tag: "JoinedToHost";
607
+ readonly submissionId: string;
608
+ readonly hostSubmissionId: string;
609
+ } | {
610
+ readonly _tag: "LedgerError";
611
+ readonly operation: string;
612
+ readonly message: string;
613
+ readonly cause?: Schema.Json | undefined;
614
+ } | {
615
+ readonly _tag: "ThreadStoreError";
616
+ readonly operation: string;
617
+ readonly message: string;
618
+ readonly cause?: Schema.Json | undefined;
619
+ } | {
620
+ readonly _tag: "ThreadNotMaterialized";
621
+ readonly threadId: string;
622
+ } | {
623
+ readonly _tag: "AppendConflict";
624
+ readonly threadId: string;
625
+ readonly batchId: string;
626
+ readonly reason: "batch-digest" | "record-identity" | "tail";
627
+ readonly actualTailSequence?: number | undefined;
628
+ readonly actualTailDigest?: string | undefined;
629
+ } | {
630
+ readonly _tag: "FenceRejected";
631
+ readonly threadId: string;
632
+ readonly actualEpoch: number;
633
+ readonly attemptedEpoch: number;
634
+ } | {
635
+ readonly _tag: "DurableRuntimeFailpointError";
636
+ readonly location: "abort:after-intent" | "approval:after-request-append" | "approval:after-suspend" | "claim:after-claim" | "compaction:after-canonical-append" | "input:after-canonical-append" | "join:after-canonical-append" | "join:after-claim" | "policy:after-reservation-append" | "policy:before-reservation-append" | "resolve:after-intent" | "run:after-start-append" | "run:before-start-append" | "step:after-step-append" | "subagent:after-admit" | "subagent:after-child-abort-intent" | "subagent:after-child-ready" | "subagent:after-join-append" | "subagent:after-release" | "subagent:after-release-pending" | "subagent:after-request-append" | "subagent:after-reserve" | "subagent:after-sibling-settle" | "subagent:after-start-append" | "subagent:after-suspend" | "submit:after-admit" | "submit:after-materialize" | "terminalize:after-canonical-append" | "terminalize:after-reserve" | "tools:after-prepared-append" | "tools:before-prepared-append" | "turn:after-canonical-append" | "turn:after-response-append" | "turn:after-results-append";
637
+ } | {
638
+ readonly _tag: "AdmissionLimitExceeded";
639
+ readonly limit: "database-bytes" | "input-bytes" | "queue-depth";
640
+ readonly actual: number;
641
+ readonly maximum: number;
642
+ } | {
643
+ readonly _tag: "DurableAlarmError";
644
+ readonly operation: string;
645
+ readonly message: string;
646
+ readonly cause?: Schema.Json | undefined;
647
+ } | {
648
+ readonly _tag: "OperationDenied";
649
+ readonly operation: "abort" | "awaitSettlement" | "explain" | "observe" | "resolveApproval" | "resolveUnknown" | "retry" | "scanObligations" | "verify" | "wake";
650
+ readonly reason: string;
651
+ readonly threadId?: string | undefined;
652
+ readonly submissionId?: string | undefined;
653
+ };
654
+ }, Schema.SchemaError, never>;
655
+ declare const decodeHostResponse: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<AbortRecorded | ApprovalRecorded | HostFailed | ObservedPage | ProgressCancelled | ProgressObserved | SettlementReached | SubmitSucceeded | UnknownResolutionRecorded, Schema.SchemaError, never>;
656
+ /** Failure surface of `CloudflareThreadClient.submit`. */
657
+ declare const ClientSubmitHostFailure: Schema.Union<readonly [typeof AgentInputError, typeof DigestError, typeof AdmissionConflict, typeof LedgerError, typeof ThreadStoreError, typeof ThreadNotMaterialized, typeof AppendConflict, typeof FenceRejected, typeof DurableRuntimeFailpointError, typeof AdmissionLimitExceeded, typeof DurableAlarmError, typeof HostProtocolError]>;
658
+ declare const ClientAwaitHostFailure: Schema.Union<readonly [typeof LedgerError, typeof SettlementConflict, typeof OperationDenied, typeof HostProtocolError]>;
659
+ declare const ClientObserveHostFailure: Schema.Union<readonly [typeof ThreadStoreError, typeof ThreadNotMaterialized, typeof OperationDenied, typeof HostProtocolError]>;
660
+ declare const ClientAbortHostFailure: Schema.Union<readonly [typeof OperationDenied, typeof LedgerError, typeof SettlementConflict, typeof JoinedToHost, typeof DurableRuntimeFailpointError, typeof DurableAlarmError, typeof HostProtocolError]>;
661
+ declare const ClientApprovalHostFailure: Schema.Union<readonly [typeof LedgerError, typeof SettlementConflict, typeof ApprovalConflict, typeof OperationDenied, typeof DurableAlarmError, typeof HostProtocolError]>;
662
+ declare const ClientUnknownHostFailure: Schema.Union<readonly [typeof LedgerError, typeof SettlementConflict, typeof UnknownResolutionConflict, typeof JoinedToHost, typeof DurableRuntimeFailpointError, typeof OperationDenied, typeof DurableAlarmError, typeof HostProtocolError]>;
663
+ type ClientSubmitFailure = typeof ClientSubmitHostFailure.Type | ThreadClientError;
664
+ type ClientAwaitFailure = typeof ClientAwaitHostFailure.Type | ThreadClientError;
665
+ type ClientObserveFailure = typeof ClientObserveHostFailure.Type | ThreadClientError;
666
+ type ClientProgressFailure = ClientObserveFailure;
667
+ type ClientAbortFailure = typeof ClientAbortHostFailure.Type | ThreadClientError;
668
+ type ClientApprovalFailure = typeof ClientApprovalHostFailure.Type | ThreadClientError;
669
+ type ClientUnknownFailure = typeof ClientUnknownHostFailure.Type | ThreadClientError;
670
+ declare const CloudflareThreadClient_base: Context.ServiceClass<CloudflareThreadClient, "@effect-agent/platform-cloudflare/CloudflareThreadClient", {
671
+ /** Encode the input client-side, then durably submit to the owning Object. */
672
+ readonly submit: <InputSchema extends Schema.Top>(agent: DurableSubmitAgent<InputSchema>, input: InputSchema["Type"], options: DurableSubmitOptions) => Effect.Effect<Receipt, ClientSubmitFailure, InputSchema["EncodingServices"]>;
673
+ /** Wake-hinted, poll-guaranteed settlement wait executed inside the owning Object. */
674
+ readonly awaitSettlement: (receipt: Receipt) => Effect.Effect<Settlement, ClientAwaitFailure>;
675
+ /**
676
+ * Wait without polling until progress after `afterSequence` is already durable or hinted.
677
+ * The result is deliberately void: canonical records remain authoritative and must be read.
678
+ */
679
+ readonly awaitProgress: (threadId: ThreadId, afterSequence: CanonicalSequence) => Effect.Effect<void, ClientProgressFailure>;
680
+ /** One bounded page of canonical records. */
681
+ readonly readPage: (threadId: ThreadId, options?: {
682
+ readonly afterSequence?: CanonicalSequence | undefined;
683
+ readonly limit?: number | undefined;
684
+ }) => Effect.Effect<ReadonlyArray<CanonicalRecordEnvelope>, ClientObserveFailure>;
685
+ /**
686
+ * Every canonical record up to the CURRENT committed tail, via repeated pages. A
687
+ * snapshot read, not a live observation — callers wanting liveness re-read after
688
+ * `awaitSettlement`.
689
+ */
690
+ readonly readAll: (threadId: ThreadId) => Effect.Effect<ReadonlyArray<CanonicalRecordEnvelope>, ClientObserveFailure>;
691
+ /**
692
+ * Submission-addressed operations take the owning Thread explicitly (from the
693
+ * Receipt): minted Submission identities stay OPAQUE outside the storage adapter that
694
+ * minted them (D-P6-5), so the client never parses one to find the lane.
695
+ */
696
+ readonly abort: (threadId: ThreadId, command: AbortCommand) => Effect.Effect<AbortIntent, ClientAbortFailure>;
697
+ readonly resolveApproval: (threadId: ThreadId, command: ApprovalDecisionCommand) => Effect.Effect<ApprovalDecisionIntent, ClientApprovalFailure>;
698
+ readonly resolveUnknown: (threadId: ThreadId, command: UnknownResolutionCommand) => Effect.Effect<UnknownResolutionIntent, ClientUnknownFailure>;
699
+ }>;
700
+ /** Worker-side client over the Thread Object namespace (DEPLOY-010). */
701
+ declare class CloudflareThreadClient extends CloudflareThreadClient_base {
702
+ /**
703
+ * Assemble the client from a resolved namespace and the platform Crypto implementation.
704
+ * rpcTracing is the binding name and remains opt-in. Caller authentication, principals,
705
+ * idempotency keys, and definition digests are still explicit submission inputs.
706
+ */
707
+ static layerFromBinding(options: {
708
+ readonly namespace: DurableObjectNamespace<ThreadObjectRpc>;
709
+ readonly rpcTracing?: string;
710
+ }): Layer.Layer<CloudflareThreadClient>;
711
+ static readonly layer: Layer.Layer<CloudflareThreadClient, never, ThreadObjectNamespace | Crypto.Crypto>;
712
+ }
713
+ //#endregion
714
+ export { AbortRecorded, ApprovalRecorded, AwaitProgressRequest, CancelProgressRequest, ClientAbortFailure, ClientApprovalFailure, ClientAwaitFailure, ClientObserveFailure, ClientProgressFailure, ClientSubmitFailure, ClientUnknownFailure, CloudflareThreadClient, HostFailed, HostFailure, HostProtocolError, HostResponse, ObservePageRequest, ObservedPage, ProgressCancelled, ProgressObserved, SettlementReached, SubmitRequest, SubmitSucceeded, ThreadClientError, UnknownResolutionRecorded, boundHostDiagnostic, decodeAbortCommand, decodeApprovalDecisionCommand, decodeAwaitProgressRequest, decodeCancelProgressRequest, decodeHostResponse, decodeObservePageRequest, decodeReceipt, decodeSubmitRequest, decodeUnknownResolutionCommand, encodeAbortCommand, encodeApprovalDecisionCommand, encodeAwaitProgressRequest, encodeCancelProgressRequest, encodeHostResponse, encodeObservePageRequest, encodeReceipt, encodeSubmitRequest, encodeUnknownResolutionCommand, CloudflareThreadClient_d_exports as t };
715
+ //# sourceMappingURL=CloudflareThreadClient.d.mts.map