@effect-agent/platform-cloudflare 0.1.0-beta.62 → 0.1.0-beta.63
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.
|
@@ -318,13 +318,13 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
318
318
|
readonly author: string;
|
|
319
319
|
readonly reason: string;
|
|
320
320
|
readonly resolution: {
|
|
321
|
-
readonly _tag: "SafeToRetry";
|
|
322
|
-
} | {
|
|
323
321
|
readonly _tag: "CompletedWithResult";
|
|
324
322
|
readonly result: Schema.Json;
|
|
325
323
|
readonly isFailure: boolean;
|
|
326
324
|
} | {
|
|
327
325
|
readonly _tag: "NeverHappened";
|
|
326
|
+
} | {
|
|
327
|
+
readonly _tag: "SafeToRetry";
|
|
328
328
|
} | {
|
|
329
329
|
readonly _tag: "AbortSubmission";
|
|
330
330
|
};
|
|
@@ -664,18 +664,47 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
664
664
|
} | {
|
|
665
665
|
readonly _tag: "AdminFailed";
|
|
666
666
|
readonly failure: {
|
|
667
|
+
readonly _tag: "DurableAlarmError";
|
|
668
|
+
readonly operation: string;
|
|
669
|
+
readonly message: string;
|
|
670
|
+
readonly cause?: Schema.Json | undefined;
|
|
671
|
+
} | {
|
|
667
672
|
readonly _tag: "AdmissionPolicyError";
|
|
668
673
|
readonly reason: "occupied" | "refused" | "unavailable";
|
|
669
674
|
readonly code: string;
|
|
670
675
|
} | {
|
|
671
|
-
readonly _tag: "
|
|
676
|
+
readonly _tag: "OperationDenied";
|
|
677
|
+
readonly operation: "abort" | "awaitSettlement" | "explain" | "observe" | "resolveApproval" | "resolveUnknown" | "retry" | "scanObligations" | "verify" | "wake";
|
|
678
|
+
readonly reason: string;
|
|
679
|
+
readonly threadId?: string | undefined;
|
|
680
|
+
readonly submissionId?: string | undefined;
|
|
681
|
+
} | {
|
|
682
|
+
readonly _tag: "RetryRefused";
|
|
672
683
|
readonly submissionId: string;
|
|
673
|
-
readonly
|
|
684
|
+
readonly refusal: "await-approval-decision" | "await-unknown-resolution" | "settled";
|
|
685
|
+
readonly decisionTag: string;
|
|
686
|
+
readonly message: string;
|
|
674
687
|
} | {
|
|
675
688
|
readonly _tag: "LedgerError";
|
|
676
689
|
readonly operation: string;
|
|
677
690
|
readonly message: string;
|
|
678
691
|
readonly cause?: Schema.Json | undefined;
|
|
692
|
+
} | {
|
|
693
|
+
readonly _tag: "RunJournalError";
|
|
694
|
+
readonly message: string;
|
|
695
|
+
readonly cause?: Schema.Json | undefined;
|
|
696
|
+
} | {
|
|
697
|
+
readonly _tag: "DigestError";
|
|
698
|
+
readonly message: string;
|
|
699
|
+
readonly cause?: Schema.Json | undefined;
|
|
700
|
+
} | {
|
|
701
|
+
readonly _tag: "OwnershipLost";
|
|
702
|
+
readonly submissionId: string;
|
|
703
|
+
readonly actualEpoch: number;
|
|
704
|
+
} | {
|
|
705
|
+
readonly _tag: "SettlementConflict";
|
|
706
|
+
readonly submissionId: string;
|
|
707
|
+
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
679
708
|
} | {
|
|
680
709
|
readonly _tag: "ThreadStoreError";
|
|
681
710
|
readonly operation: string;
|
|
@@ -696,35 +725,6 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
696
725
|
readonly threadId: string;
|
|
697
726
|
readonly actualEpoch: number;
|
|
698
727
|
readonly attemptedEpoch: number;
|
|
699
|
-
} | {
|
|
700
|
-
readonly _tag: "DurableAlarmError";
|
|
701
|
-
readonly operation: string;
|
|
702
|
-
readonly message: string;
|
|
703
|
-
readonly cause?: Schema.Json | undefined;
|
|
704
|
-
} | {
|
|
705
|
-
readonly _tag: "OperationDenied";
|
|
706
|
-
readonly operation: "abort" | "awaitSettlement" | "explain" | "observe" | "resolveApproval" | "resolveUnknown" | "retry" | "scanObligations" | "verify" | "wake";
|
|
707
|
-
readonly reason: string;
|
|
708
|
-
readonly threadId?: string | undefined;
|
|
709
|
-
readonly submissionId?: string | undefined;
|
|
710
|
-
} | {
|
|
711
|
-
readonly _tag: "RetryRefused";
|
|
712
|
-
readonly submissionId: string;
|
|
713
|
-
readonly refusal: "await-approval-decision" | "await-unknown-resolution" | "settled";
|
|
714
|
-
readonly decisionTag: string;
|
|
715
|
-
readonly message: string;
|
|
716
|
-
} | {
|
|
717
|
-
readonly _tag: "RunJournalError";
|
|
718
|
-
readonly message: string;
|
|
719
|
-
readonly cause?: Schema.Json | undefined;
|
|
720
|
-
} | {
|
|
721
|
-
readonly _tag: "DigestError";
|
|
722
|
-
readonly message: string;
|
|
723
|
-
readonly cause?: Schema.Json | undefined;
|
|
724
|
-
} | {
|
|
725
|
-
readonly _tag: "OwnershipLost";
|
|
726
|
-
readonly submissionId: string;
|
|
727
|
-
readonly actualEpoch: number;
|
|
728
728
|
} | {
|
|
729
729
|
readonly _tag: "DurableRuntimeFailpointError";
|
|
730
730
|
readonly location: "abort:after-intent" | "approval:after-request-append" | "approval:after-suspend" | "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" | "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";
|
|
@@ -769,4 +769,4 @@ interface Class<EventServices = never> {
|
|
|
769
769
|
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>;
|
|
770
770
|
//#endregion
|
|
771
771
|
export { CloudflareDurableRuntimeOptions as C, layerConfig as D, layer as E, CloudflareDurableRuntimeInitializationError as S, ThreadPublicationOptions as T, decodeObligationThresholds as _, AdminVerifyRequest as a, make as b, Instance as c, RetryExecuted as d, ThreadObject_d_exports as f, decodeAdminVerifyRequest as g, decodeAdminResponse as h, AdminResponse as i, ObligationsScanned as l, decodeAdminExplainRequest as m, AdminFailed as n, Class as o, VerifiedIntegrity as p, AdminFailure as r, ExplainedRecovery as s, AdminExplainRequest as t, Options as u, decodeRetryCommand as v, CloudflareDurableRuntimeServices as w, CloudflareBootstrapServices as x, encodeAdminResponse as y };
|
|
772
|
-
//# sourceMappingURL=ThreadObject-
|
|
772
|
+
//# sourceMappingURL=ThreadObject-CvnEnVQH.d.mts.map
|
package/dist/ThreadObject.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as CloudflareDurableRuntimeOptions, D as layerConfig, E as layer, S as CloudflareDurableRuntimeInitializationError, T as ThreadPublicationOptions, _ as decodeObligationThresholds, a as AdminVerifyRequest, b as make, c as Instance, d as RetryExecuted, g as decodeAdminVerifyRequest, h as decodeAdminResponse, i as AdminResponse, l as ObligationsScanned, m as decodeAdminExplainRequest, n as AdminFailed, o as Class, p as VerifiedIntegrity, r as AdminFailure, s as ExplainedRecovery, t as AdminExplainRequest, u as Options, v as decodeRetryCommand, w as CloudflareDurableRuntimeServices, x as CloudflareBootstrapServices, y as encodeAdminResponse } from "./ThreadObject-
|
|
1
|
+
import { C as CloudflareDurableRuntimeOptions, D as layerConfig, E as layer, S as CloudflareDurableRuntimeInitializationError, T as ThreadPublicationOptions, _ as decodeObligationThresholds, a as AdminVerifyRequest, b as make, c as Instance, d as RetryExecuted, g as decodeAdminVerifyRequest, h as decodeAdminResponse, i as AdminResponse, l as ObligationsScanned, m as decodeAdminExplainRequest, n as AdminFailed, o as Class, p as VerifiedIntegrity, r as AdminFailure, s as ExplainedRecovery, t as AdminExplainRequest, u as Options, v as decodeRetryCommand, w as CloudflareDurableRuntimeServices, x as CloudflareBootstrapServices, y as encodeAdminResponse } from "./ThreadObject-CvnEnVQH.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, VerifiedIntegrity, decodeAdminExplainRequest, decodeAdminResponse, decodeAdminVerifyRequest, decodeObligationThresholds, decodeRetryCommand, encodeAdminResponse, layer, layerConfig, make };
|
package/dist/index.d.mts
CHANGED
|
@@ -7,6 +7,6 @@ import { t as CloudflareMemory_d_exports } from "./CloudflareMemory.mjs";
|
|
|
7
7
|
import { t as CloudflareScheduling_d_exports } from "./CloudflareScheduling.mjs";
|
|
8
8
|
import { t as CloudflareSubscriptions_d_exports } from "./CloudflareSubscriptions.mjs";
|
|
9
9
|
import { t as CloudflareThreadClient_d_exports } from "./CloudflareThreadClient.mjs";
|
|
10
|
-
import { f as ThreadObject_d_exports } from "./ThreadObject-
|
|
10
|
+
import { f as ThreadObject_d_exports } from "./ThreadObject-CvnEnVQH.mjs";
|
|
11
11
|
import { t as WakeScheduler_d_exports } from "./WakeScheduler.mjs";
|
|
12
12
|
export { Alarm_d_exports as Alarm, 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.63","dependencies":{"@effect-agent/core":"0.1.0-beta.63","@effect-agent/engine":"0.1.0-beta.63","@effect-agent/sandbox":"0.1.0-beta.63","@effect-agent/storage-cloudflare":"0.1.0-beta.63","@effect-agent/thread":"0.1.0-beta.63","@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.63","@effect-agent/testing":"0.1.0-beta.63","@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"}},"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}}}
|