@effect-agent/platform-cloudflare 0.1.0-beta.81 → 0.1.0-beta.82
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.
|
@@ -1138,16 +1138,6 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
1138
1138
|
} | {
|
|
1139
1139
|
readonly _tag: "HostFailed";
|
|
1140
1140
|
readonly failure: {
|
|
1141
|
-
readonly _tag: "HostProtocolError";
|
|
1142
|
-
readonly message: string;
|
|
1143
|
-
} | {
|
|
1144
|
-
readonly _tag: "AgentInputError";
|
|
1145
|
-
readonly message: string;
|
|
1146
|
-
} | {
|
|
1147
|
-
readonly _tag: "DigestError";
|
|
1148
|
-
readonly message: string;
|
|
1149
|
-
readonly cause?: Schema.Json | undefined;
|
|
1150
|
-
} | {
|
|
1151
1141
|
readonly _tag: "AdmissionConflict";
|
|
1152
1142
|
readonly threadId: string;
|
|
1153
1143
|
readonly principal: string;
|
|
@@ -1162,15 +1152,6 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
1162
1152
|
readonly _tag: "SettlementConflict";
|
|
1163
1153
|
readonly submissionId: string;
|
|
1164
1154
|
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
1165
|
-
} | {
|
|
1166
|
-
readonly _tag: "ApprovalConflict";
|
|
1167
|
-
readonly submissionId: string;
|
|
1168
|
-
readonly toolCallId: string;
|
|
1169
|
-
readonly existingDecision: "approved" | "denied";
|
|
1170
|
-
} | {
|
|
1171
|
-
readonly _tag: "UnknownResolutionConflict";
|
|
1172
|
-
readonly submissionId: string;
|
|
1173
|
-
readonly toolCallId: string;
|
|
1174
1155
|
} | {
|
|
1175
1156
|
readonly _tag: "JoinedToHost";
|
|
1176
1157
|
readonly submissionId: string;
|
|
@@ -1200,6 +1181,25 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
1200
1181
|
readonly threadId: string;
|
|
1201
1182
|
readonly actualEpoch: number;
|
|
1202
1183
|
readonly attemptedEpoch: number;
|
|
1184
|
+
} | {
|
|
1185
|
+
readonly _tag: "HostProtocolError";
|
|
1186
|
+
readonly message: string;
|
|
1187
|
+
} | {
|
|
1188
|
+
readonly _tag: "AgentInputError";
|
|
1189
|
+
readonly message: string;
|
|
1190
|
+
} | {
|
|
1191
|
+
readonly _tag: "DigestError";
|
|
1192
|
+
readonly message: string;
|
|
1193
|
+
readonly cause?: Schema.Json | undefined;
|
|
1194
|
+
} | {
|
|
1195
|
+
readonly _tag: "ApprovalConflict";
|
|
1196
|
+
readonly submissionId: string;
|
|
1197
|
+
readonly toolCallId: string;
|
|
1198
|
+
readonly existingDecision: "approved" | "denied";
|
|
1199
|
+
} | {
|
|
1200
|
+
readonly _tag: "UnknownResolutionConflict";
|
|
1201
|
+
readonly submissionId: string;
|
|
1202
|
+
readonly toolCallId: string;
|
|
1203
1203
|
} | {
|
|
1204
1204
|
readonly _tag: "DurableRuntimeFailpointError";
|
|
1205
1205
|
readonly location: "abort:after-intent" | "approval:after-request-append" | "approval:after-suspend" | "checkpoint:after-save" | "checkpoint:before-save" | "claim:after-claim" | "compaction:after-canonical-append" | "compaction:before-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" | "subagent:before-join-append" | "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" | "worker:after-completion-append" | "worker:after-origin-append" | "worker:after-report-append" | "worker:after-report-delivery" | "worker:after-source-append" | "worker:after-subtree-append" | "worker:before-completion-append" | "worker:before-origin-append" | "worker:before-report-append" | "worker:before-report-delivery" | "worker:before-source-append" | "worker:before-subtree-append";
|
|
@@ -348,13 +348,13 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
348
348
|
readonly author: string;
|
|
349
349
|
readonly reason: string;
|
|
350
350
|
readonly resolution: {
|
|
351
|
+
readonly _tag: "SafeToRetry";
|
|
352
|
+
} | {
|
|
351
353
|
readonly _tag: "CompletedWithResult";
|
|
352
354
|
readonly result: Schema.Json;
|
|
353
355
|
readonly isFailure: boolean;
|
|
354
356
|
} | {
|
|
355
357
|
readonly _tag: "NeverHappened";
|
|
356
|
-
} | {
|
|
357
|
-
readonly _tag: "SafeToRetry";
|
|
358
358
|
} | {
|
|
359
359
|
readonly _tag: "AbortSubmission";
|
|
360
360
|
};
|
|
@@ -694,10 +694,26 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
694
694
|
} | {
|
|
695
695
|
readonly _tag: "AdminFailed";
|
|
696
696
|
readonly failure: {
|
|
697
|
+
readonly _tag: "AdmissionPolicyError";
|
|
698
|
+
readonly reason: "occupied" | "refused" | "unavailable";
|
|
699
|
+
readonly code: string;
|
|
700
|
+
} | {
|
|
701
|
+
readonly _tag: "SettlementConflict";
|
|
702
|
+
readonly submissionId: string;
|
|
703
|
+
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
704
|
+
} | {
|
|
697
705
|
readonly _tag: "LedgerError";
|
|
698
706
|
readonly operation: string;
|
|
699
707
|
readonly message: string;
|
|
700
708
|
readonly cause?: Schema.Json | undefined;
|
|
709
|
+
} | {
|
|
710
|
+
readonly _tag: "ThreadStoreError";
|
|
711
|
+
readonly operation: string;
|
|
712
|
+
readonly message: string;
|
|
713
|
+
readonly cause?: Schema.Json | undefined;
|
|
714
|
+
} | {
|
|
715
|
+
readonly _tag: "ThreadNotMaterialized";
|
|
716
|
+
readonly threadId: string;
|
|
701
717
|
} | {
|
|
702
718
|
readonly _tag: "AppendConflict";
|
|
703
719
|
readonly threadId: string;
|
|
@@ -710,24 +726,12 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
710
726
|
readonly threadId: string;
|
|
711
727
|
readonly actualEpoch: number;
|
|
712
728
|
readonly attemptedEpoch: number;
|
|
713
|
-
} | {
|
|
714
|
-
readonly _tag: "ThreadNotMaterialized";
|
|
715
|
-
readonly threadId: string;
|
|
716
|
-
} | {
|
|
717
|
-
readonly _tag: "ThreadStoreError";
|
|
718
|
-
readonly operation: string;
|
|
719
|
-
readonly message: string;
|
|
720
|
-
readonly cause?: Schema.Json | undefined;
|
|
721
729
|
} | {
|
|
722
730
|
readonly _tag: "OperationDenied";
|
|
723
731
|
readonly operation: "abort" | "awaitSettlement" | "explain" | "observe" | "resolveApproval" | "resolveUnknown" | "retry" | "scanObligations" | "verify" | "wake";
|
|
724
732
|
readonly reason: string;
|
|
725
733
|
readonly threadId?: string | undefined;
|
|
726
734
|
readonly submissionId?: string | undefined;
|
|
727
|
-
} | {
|
|
728
|
-
readonly _tag: "AdmissionPolicyError";
|
|
729
|
-
readonly reason: "occupied" | "refused" | "unavailable";
|
|
730
|
-
readonly code: string;
|
|
731
735
|
} | {
|
|
732
736
|
readonly _tag: "DigestError";
|
|
733
737
|
readonly message: string;
|
|
@@ -735,10 +739,6 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
735
739
|
} | {
|
|
736
740
|
readonly _tag: "DurableRuntimeFailpointError";
|
|
737
741
|
readonly location: "abort:after-intent" | "approval:after-request-append" | "approval:after-suspend" | "checkpoint:after-save" | "checkpoint:before-save" | "claim:after-claim" | "compaction:after-canonical-append" | "compaction:before-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" | "subagent:before-join-append" | "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" | "worker:after-completion-append" | "worker:after-origin-append" | "worker:after-report-append" | "worker:after-report-delivery" | "worker:after-source-append" | "worker:after-subtree-append" | "worker:before-completion-append" | "worker:before-origin-append" | "worker:before-report-append" | "worker:before-report-delivery" | "worker:before-source-append" | "worker:before-subtree-append";
|
|
738
|
-
} | {
|
|
739
|
-
readonly _tag: "SettlementConflict";
|
|
740
|
-
readonly submissionId: string;
|
|
741
|
-
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
742
742
|
} | {
|
|
743
743
|
readonly _tag: "OwnershipLost";
|
|
744
744
|
readonly submissionId: string;
|
|
@@ -813,4 +813,4 @@ interface Class<EventServices = never> {
|
|
|
813
813
|
declare const make: <ApplicationServices, ApplicationError, EventServices = never, EventLayerError = never>(applicationLayer: Layer.Layer<CloudflareDurableRuntimeServices | ApplicationServices, ApplicationError, CloudflareBootstrapServices | DurableObjectState$1.DurableObjectState | WorkerEnvironment | DurableObjectContext | ThreadObjectNamespace>, options: Options<ApplicationServices, EventServices, EventLayerError>) => Class<ApplicationServices | EventServices>;
|
|
814
814
|
//#endregion
|
|
815
815
|
export { ThreadPublicationOptions as A, portCall as C, CloudflareDurableRuntimeOptions as D, CloudflareDurableRuntimeInitializationError as E, layerConfig as M, layerHostConfig as N, CloudflareDurableRuntimeServices as O, layerInHost as P, make as S, CloudflareBootstrapServices as T, decodeAdminVerifyRequest as _, AdminVerifyRequest as a, encodeAdminResponse as b, Instance as c, RetryExecuted as d, ThreadObject_d_exports as f, decodeAdminResponse as g, decodeAdminExplainRequest as h, AdminResponse as i, layer as j, ThreadObjectPorts as k, ObligationsScanned as l, VerifiedIntegrity as m, AdminFailed as n, Class as o, ThreadRpcOperation as p, AdminFailure as r, ExplainedRecovery as s, AdminExplainRequest as t, Options as u, decodeObligationThresholds as v, submit as w, handleRpc as x, decodeRetryCommand as y };
|
|
816
|
-
//# sourceMappingURL=ThreadObject-
|
|
816
|
+
//# sourceMappingURL=ThreadObject-bML6jTHl.d.mts.map
|
package/dist/ThreadObject.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as ThreadPublicationOptions, C as portCall, D as CloudflareDurableRuntimeOptions, E as CloudflareDurableRuntimeInitializationError, M as layerConfig, N as layerHostConfig, O as CloudflareDurableRuntimeServices, P as layerInHost, S as make, T as CloudflareBootstrapServices, _ as decodeAdminVerifyRequest, a as AdminVerifyRequest, b as encodeAdminResponse, c as Instance, d as RetryExecuted, g as decodeAdminResponse, h as decodeAdminExplainRequest, i as AdminResponse, j as layer, k as ThreadObjectPorts, l as ObligationsScanned, m as VerifiedIntegrity, n as AdminFailed, o as Class, p as ThreadRpcOperation, r as AdminFailure, s as ExplainedRecovery, t as AdminExplainRequest, u as Options, v as decodeObligationThresholds, w as submit, x as handleRpc, y as decodeRetryCommand } from "./ThreadObject-
|
|
1
|
+
import { A as ThreadPublicationOptions, C as portCall, D as CloudflareDurableRuntimeOptions, E as CloudflareDurableRuntimeInitializationError, M as layerConfig, N as layerHostConfig, O as CloudflareDurableRuntimeServices, P as layerInHost, S as make, T as CloudflareBootstrapServices, _ as decodeAdminVerifyRequest, a as AdminVerifyRequest, b as encodeAdminResponse, c as Instance, d as RetryExecuted, g as decodeAdminResponse, h as decodeAdminExplainRequest, i as AdminResponse, j as layer, k as ThreadObjectPorts, l as ObligationsScanned, m as VerifiedIntegrity, n as AdminFailed, o as Class, p as ThreadRpcOperation, r as AdminFailure, s as ExplainedRecovery, t as AdminExplainRequest, u as Options, v as decodeObligationThresholds, w as submit, x as handleRpc, y as decodeRetryCommand } from "./ThreadObject-bML6jTHl.mjs";
|
|
2
2
|
export { AdminExplainRequest, AdminFailed, AdminFailure, AdminResponse, AdminVerifyRequest, type CloudflareBootstrapServices as BootstrapServices, Class, ExplainedRecovery, type CloudflareDurableRuntimeInitializationError as InitializationError, Instance, ObligationsScanned, Options, type ThreadPublicationOptions as PublicationOptions, RetryExecuted, type CloudflareDurableRuntimeOptions as RuntimeOptions, type CloudflareDurableRuntimeServices as Services, ThreadObjectPorts, ThreadRpcOperation, VerifiedIntegrity, decodeAdminExplainRequest, decodeAdminResponse, decodeAdminVerifyRequest, decodeObligationThresholds, decodeRetryCommand, encodeAdminResponse, handleRpc, layer, layerConfig, layerHostConfig, layerInHost, make, portCall, submit };
|
package/dist/index.d.mts
CHANGED
|
@@ -8,6 +8,6 @@ import { t as CloudflareMemory_d_exports } from "./CloudflareMemory.mjs";
|
|
|
8
8
|
import { t as CloudflareScheduling_d_exports } from "./CloudflareScheduling.mjs";
|
|
9
9
|
import { t as CloudflareSubscriptions_d_exports } from "./CloudflareSubscriptions.mjs";
|
|
10
10
|
import { t as CloudflareThreadClient_d_exports } from "./CloudflareThreadClient.mjs";
|
|
11
|
-
import { f as ThreadObject_d_exports } from "./ThreadObject-
|
|
11
|
+
import { f as ThreadObject_d_exports } from "./ThreadObject-bML6jTHl.mjs";
|
|
12
12
|
import { t as WakeScheduler_d_exports } from "./WakeScheduler.mjs";
|
|
13
13
|
export { Alarm_d_exports as Alarm, CloudflareAiGateway_d_exports as CloudflareAiGateway, CloudflareBindings_d_exports as CloudflareBindings, CloudflareBrowser_d_exports as CloudflareBrowser, CloudflareCodeMode_d_exports as CloudflareCodeMode, CloudflareConfig_d_exports as CloudflareConfig, CloudflareMemory_d_exports as CloudflareMemory, CloudflareScheduling_d_exports as CloudflareScheduling, CloudflareSubscriptions_d_exports as CloudflareSubscriptions, CloudflareThreadClient_d_exports as CloudflareThreadClient, ThreadObject_d_exports as ThreadObject, WakeScheduler_d_exports as WakeScheduler };
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@effect-agent/platform-cloudflare","version":"0.1.0-beta.
|
|
1
|
+
{"name":"@effect-agent/platform-cloudflare","version":"0.1.0-beta.82","dependencies":{"@effect-agent/core":"0.1.0-beta.82","@effect-agent/engine":"0.1.0-beta.82","@effect-agent/sandbox":"0.1.0-beta.82","@effect-agent/storage-cloudflare":"0.1.0-beta.82","@effect-agent/thread":"0.1.0-beta.82","@effect/platform-browser":"4.0.0-rc.112","@effect/sql-sqlite-do":"4.0.0-rc.112"},"devDependencies":{"@cloudflare/puppeteer":"1.1.0","@cloudflare/vitest-pool-workers":"0.21.3","@cloudflare/workers-types":"5.20260825.1","@effect-agent/capabilities":"0.1.0-beta.82","@effect-agent/testing":"0.1.0-beta.82","@effect/platform-node":"4.0.0-rc.112","@effect/sql-d1":"4.0.0-rc.112","@effect/vitest":"4.0.0-rc.112","effect":"4.0.0-rc.112","effect-cf":"0.40.0","esbuild":"0.28.1","miniflare":"5.20260811.1-alpha","typescript":"7.0.2","vite-plus":"0.3.0","vitest":"4.1.11"},"peerDependencies":{"@cloudflare/puppeteer":"^1.1.0","effect":"^4.0.0-rc.112","effect-cf":"^0.40.0"},"exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"./Alarm":{"types":"./dist/Alarm.d.mts","default":"./dist/Alarm.mjs"},"./BrowserRestCapture":{"types":"./dist/BrowserRestCapture.d.mts","default":"./dist/BrowserRestCapture.mjs"},"./BrowserRestCrawl":{"types":"./dist/BrowserRestCrawl.d.mts","default":"./dist/BrowserRestCrawl.mjs"},"./CloudflareBindings":{"types":"./dist/CloudflareBindings.d.mts","default":"./dist/CloudflareBindings.mjs"},"./CloudflareBrowser":{"types":"./dist/CloudflareBrowser.d.mts","default":"./dist/CloudflareBrowser.mjs"},"./CloudflareCodeMode":{"types":"./dist/CloudflareCodeMode.d.mts","default":"./dist/CloudflareCodeMode.mjs"},"./CloudflareConfig":{"types":"./dist/CloudflareConfig.d.mts","default":"./dist/CloudflareConfig.mjs"},"./CloudflareMemory":{"types":"./dist/CloudflareMemory.d.mts","default":"./dist/CloudflareMemory.mjs"},"./CloudflareScheduling":{"types":"./dist/CloudflareScheduling.d.mts","default":"./dist/CloudflareScheduling.mjs"},"./CloudflareSubscriptions":{"types":"./dist/CloudflareSubscriptions.d.mts","default":"./dist/CloudflareSubscriptions.mjs"},"./CloudflareThreadClient":{"types":"./dist/CloudflareThreadClient.d.mts","default":"./dist/CloudflareThreadClient.mjs"},"./InteractiveBrowser":{"types":"./dist/InteractiveBrowser.d.mts","default":"./dist/InteractiveBrowser.mjs"},"./ProtectedBrowser":{"types":"./dist/ProtectedBrowser.d.mts","default":"./dist/ProtectedBrowser.mjs"},"./ThreadObject":{"types":"./dist/ThreadObject.d.mts","default":"./dist/ThreadObject.mjs"},"./WakeScheduler":{"types":"./dist/WakeScheduler.d.mts","default":"./dist/WakeScheduler.mjs"},"./CloudflareAiGateway":{"types":"./dist/CloudflareAiGateway.d.mts","default":"./dist/CloudflareAiGateway.mjs"}},"description":"Cloudflare Layer assembly for Effect Agent: Durable Objects and Browser Run adapters.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/danieljvdm/effect-agent.git","directory":"packages/platform-cloudflare"},"files":["dist","src"],"type":"module","sideEffects":[],"publishConfig":{"access":"public"},"scripts":{"build":"vp pack","check":"tsc --noEmit -p tsconfig.json"},"peerDependenciesMeta":{"@cloudflare/puppeteer":{"optional":true}}}
|