@effect-agent/platform-cloudflare 0.1.0-beta.81 → 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.
|
@@ -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,30 @@ 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: "DurableAlarmError";
|
|
1186
|
+
readonly operation: string;
|
|
1187
|
+
readonly message: string;
|
|
1188
|
+
readonly cause?: Schema.Json | undefined;
|
|
1189
|
+
} | {
|
|
1190
|
+
readonly _tag: "HostProtocolError";
|
|
1191
|
+
readonly message: string;
|
|
1192
|
+
} | {
|
|
1193
|
+
readonly _tag: "AgentInputError";
|
|
1194
|
+
readonly message: string;
|
|
1195
|
+
} | {
|
|
1196
|
+
readonly _tag: "DigestError";
|
|
1197
|
+
readonly message: string;
|
|
1198
|
+
readonly cause?: Schema.Json | undefined;
|
|
1199
|
+
} | {
|
|
1200
|
+
readonly _tag: "ApprovalConflict";
|
|
1201
|
+
readonly submissionId: string;
|
|
1202
|
+
readonly toolCallId: string;
|
|
1203
|
+
readonly existingDecision: "approved" | "denied";
|
|
1204
|
+
} | {
|
|
1205
|
+
readonly _tag: "UnknownResolutionConflict";
|
|
1206
|
+
readonly submissionId: string;
|
|
1207
|
+
readonly toolCallId: string;
|
|
1203
1208
|
} | {
|
|
1204
1209
|
readonly _tag: "DurableRuntimeFailpointError";
|
|
1205
1210
|
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";
|
|
@@ -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";
|
|
@@ -694,6 +694,11 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
694
694
|
} | {
|
|
695
695
|
readonly _tag: "AdminFailed";
|
|
696
696
|
readonly failure: {
|
|
697
|
+
readonly _tag: "DurableAlarmError";
|
|
698
|
+
readonly operation: string;
|
|
699
|
+
readonly message: string;
|
|
700
|
+
readonly cause?: Schema.Json | undefined;
|
|
701
|
+
} | {
|
|
697
702
|
readonly _tag: "LedgerError";
|
|
698
703
|
readonly operation: string;
|
|
699
704
|
readonly message: 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}}}
|