@effect-agent/platform-cloudflare 0.1.0-beta.82 → 0.1.0-beta.83
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.
|
@@ -1181,6 +1181,11 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
1181
1181
|
readonly threadId: string;
|
|
1182
1182
|
readonly actualEpoch: number;
|
|
1183
1183
|
readonly attemptedEpoch: number;
|
|
1184
|
+
} | {
|
|
1185
|
+
readonly _tag: "DurableAlarmError";
|
|
1186
|
+
readonly operation: string;
|
|
1187
|
+
readonly message: string;
|
|
1188
|
+
readonly cause?: Schema.Json | undefined;
|
|
1184
1189
|
} | {
|
|
1185
1190
|
readonly _tag: "HostProtocolError";
|
|
1186
1191
|
readonly message: string;
|
|
@@ -1208,11 +1213,6 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
1208
1213
|
readonly limit: "database-bytes" | "input-bytes" | "queue-depth";
|
|
1209
1214
|
readonly actual: number;
|
|
1210
1215
|
readonly maximum: number;
|
|
1211
|
-
} | {
|
|
1212
|
-
readonly _tag: "DurableAlarmError";
|
|
1213
|
-
readonly operation: string;
|
|
1214
|
-
readonly message: string;
|
|
1215
|
-
readonly cause?: Schema.Json | undefined;
|
|
1216
1216
|
} | {
|
|
1217
1217
|
readonly _tag: "OperationDenied";
|
|
1218
1218
|
readonly operation: "abort" | "awaitSettlement" | "explain" | "observe" | "resolveApproval" | "resolveUnknown" | "retry" | "scanObligations" | "verify" | "wake";
|
|
@@ -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
|
-
} | {
|
|
353
351
|
readonly _tag: "CompletedWithResult";
|
|
354
352
|
readonly result: Schema.Json;
|
|
355
353
|
readonly isFailure: boolean;
|
|
356
354
|
} | {
|
|
357
355
|
readonly _tag: "NeverHappened";
|
|
356
|
+
} | {
|
|
357
|
+
readonly _tag: "SafeToRetry";
|
|
358
358
|
} | {
|
|
359
359
|
readonly _tag: "AbortSubmission";
|
|
360
360
|
};
|
|
@@ -694,26 +694,15 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
694
694
|
} | {
|
|
695
695
|
readonly _tag: "AdminFailed";
|
|
696
696
|
readonly failure: {
|
|
697
|
-
readonly _tag: "
|
|
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
|
-
} | {
|
|
705
|
-
readonly _tag: "LedgerError";
|
|
697
|
+
readonly _tag: "DurableAlarmError";
|
|
706
698
|
readonly operation: string;
|
|
707
699
|
readonly message: string;
|
|
708
700
|
readonly cause?: Schema.Json | undefined;
|
|
709
701
|
} | {
|
|
710
|
-
readonly _tag: "
|
|
702
|
+
readonly _tag: "LedgerError";
|
|
711
703
|
readonly operation: string;
|
|
712
704
|
readonly message: string;
|
|
713
705
|
readonly cause?: Schema.Json | undefined;
|
|
714
|
-
} | {
|
|
715
|
-
readonly _tag: "ThreadNotMaterialized";
|
|
716
|
-
readonly threadId: string;
|
|
717
706
|
} | {
|
|
718
707
|
readonly _tag: "AppendConflict";
|
|
719
708
|
readonly threadId: string;
|
|
@@ -726,12 +715,24 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
726
715
|
readonly threadId: string;
|
|
727
716
|
readonly actualEpoch: number;
|
|
728
717
|
readonly attemptedEpoch: number;
|
|
718
|
+
} | {
|
|
719
|
+
readonly _tag: "ThreadNotMaterialized";
|
|
720
|
+
readonly threadId: string;
|
|
721
|
+
} | {
|
|
722
|
+
readonly _tag: "ThreadStoreError";
|
|
723
|
+
readonly operation: string;
|
|
724
|
+
readonly message: string;
|
|
725
|
+
readonly cause?: Schema.Json | undefined;
|
|
729
726
|
} | {
|
|
730
727
|
readonly _tag: "OperationDenied";
|
|
731
728
|
readonly operation: "abort" | "awaitSettlement" | "explain" | "observe" | "resolveApproval" | "resolveUnknown" | "retry" | "scanObligations" | "verify" | "wake";
|
|
732
729
|
readonly reason: string;
|
|
733
730
|
readonly threadId?: string | undefined;
|
|
734
731
|
readonly submissionId?: string | undefined;
|
|
732
|
+
} | {
|
|
733
|
+
readonly _tag: "AdmissionPolicyError";
|
|
734
|
+
readonly reason: "occupied" | "refused" | "unavailable";
|
|
735
|
+
readonly code: string;
|
|
735
736
|
} | {
|
|
736
737
|
readonly _tag: "DigestError";
|
|
737
738
|
readonly message: string;
|
|
@@ -739,6 +740,10 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
739
740
|
} | {
|
|
740
741
|
readonly _tag: "DurableRuntimeFailpointError";
|
|
741
742
|
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";
|
|
743
|
+
} | {
|
|
744
|
+
readonly _tag: "SettlementConflict";
|
|
745
|
+
readonly submissionId: string;
|
|
746
|
+
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
742
747
|
} | {
|
|
743
748
|
readonly _tag: "OwnershipLost";
|
|
744
749
|
readonly submissionId: string;
|
|
@@ -747,11 +752,6 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
747
752
|
readonly _tag: "RunJournalError";
|
|
748
753
|
readonly message: string;
|
|
749
754
|
readonly cause?: Schema.Json | undefined;
|
|
750
|
-
} | {
|
|
751
|
-
readonly _tag: "DurableAlarmError";
|
|
752
|
-
readonly operation: string;
|
|
753
|
-
readonly message: string;
|
|
754
|
-
readonly cause?: Schema.Json | undefined;
|
|
755
755
|
} | {
|
|
756
756
|
readonly _tag: "HostProtocolError";
|
|
757
757
|
readonly message: 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-rVo6_oel.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-rVo6_oel.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-rVo6_oel.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.83","dependencies":{"@effect-agent/core":"0.1.0-beta.83","@effect-agent/engine":"0.1.0-beta.83","@effect-agent/sandbox":"0.1.0-beta.83","@effect-agent/storage-cloudflare":"0.1.0-beta.83","@effect-agent/thread":"0.1.0-beta.83","@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.83","@effect-agent/testing":"0.1.0-beta.83","@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}}}
|