@effect-agent/platform-cloudflare 0.1.0-beta.73 → 0.1.0-beta.74
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.
|
@@ -1120,13 +1120,21 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
1120
1120
|
} | {
|
|
1121
1121
|
readonly _tag: "HostFailed";
|
|
1122
1122
|
readonly failure: {
|
|
1123
|
-
readonly _tag: "
|
|
1123
|
+
readonly _tag: "DurableAlarmError";
|
|
1124
|
+
readonly operation: string;
|
|
1124
1125
|
readonly message: string;
|
|
1126
|
+
readonly cause?: Schema.Json | undefined;
|
|
1125
1127
|
} | {
|
|
1126
|
-
readonly _tag: "
|
|
1128
|
+
readonly _tag: "ThreadNotMaterialized";
|
|
1129
|
+
readonly threadId: string;
|
|
1130
|
+
} | {
|
|
1131
|
+
readonly _tag: "ThreadStoreError";
|
|
1132
|
+
readonly operation: string;
|
|
1127
1133
|
readonly message: string;
|
|
1134
|
+
readonly cause?: Schema.Json | undefined;
|
|
1128
1135
|
} | {
|
|
1129
|
-
readonly _tag: "
|
|
1136
|
+
readonly _tag: "LedgerError";
|
|
1137
|
+
readonly operation: string;
|
|
1130
1138
|
readonly message: string;
|
|
1131
1139
|
readonly cause?: Schema.Json | undefined;
|
|
1132
1140
|
} | {
|
|
@@ -1144,32 +1152,10 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
1144
1152
|
readonly _tag: "SettlementConflict";
|
|
1145
1153
|
readonly submissionId: string;
|
|
1146
1154
|
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
1147
|
-
} | {
|
|
1148
|
-
readonly _tag: "ApprovalConflict";
|
|
1149
|
-
readonly submissionId: string;
|
|
1150
|
-
readonly toolCallId: string;
|
|
1151
|
-
readonly existingDecision: "approved" | "denied";
|
|
1152
|
-
} | {
|
|
1153
|
-
readonly _tag: "UnknownResolutionConflict";
|
|
1154
|
-
readonly submissionId: string;
|
|
1155
|
-
readonly toolCallId: string;
|
|
1156
1155
|
} | {
|
|
1157
1156
|
readonly _tag: "JoinedToHost";
|
|
1158
1157
|
readonly submissionId: string;
|
|
1159
1158
|
readonly hostSubmissionId: string;
|
|
1160
|
-
} | {
|
|
1161
|
-
readonly _tag: "LedgerError";
|
|
1162
|
-
readonly operation: string;
|
|
1163
|
-
readonly message: string;
|
|
1164
|
-
readonly cause?: Schema.Json | undefined;
|
|
1165
|
-
} | {
|
|
1166
|
-
readonly _tag: "ThreadStoreError";
|
|
1167
|
-
readonly operation: string;
|
|
1168
|
-
readonly message: string;
|
|
1169
|
-
readonly cause?: Schema.Json | undefined;
|
|
1170
|
-
} | {
|
|
1171
|
-
readonly _tag: "ThreadNotMaterialized";
|
|
1172
|
-
readonly threadId: string;
|
|
1173
1159
|
} | {
|
|
1174
1160
|
readonly _tag: "AppendConflict";
|
|
1175
1161
|
readonly threadId: string;
|
|
@@ -1182,6 +1168,19 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
1182
1168
|
readonly threadId: string;
|
|
1183
1169
|
readonly actualEpoch: number;
|
|
1184
1170
|
readonly attemptedEpoch: number;
|
|
1171
|
+
} | {
|
|
1172
|
+
readonly _tag: "OperationDenied";
|
|
1173
|
+
readonly operation: "abort" | "awaitSettlement" | "explain" | "observe" | "resolveApproval" | "resolveUnknown" | "retry" | "scanObligations" | "verify" | "wake";
|
|
1174
|
+
readonly reason: string;
|
|
1175
|
+
readonly threadId?: string | undefined;
|
|
1176
|
+
readonly submissionId?: string | undefined;
|
|
1177
|
+
} | {
|
|
1178
|
+
readonly _tag: "AgentInputError";
|
|
1179
|
+
readonly message: string;
|
|
1180
|
+
} | {
|
|
1181
|
+
readonly _tag: "DigestError";
|
|
1182
|
+
readonly message: string;
|
|
1183
|
+
readonly cause?: Schema.Json | undefined;
|
|
1185
1184
|
} | {
|
|
1186
1185
|
readonly _tag: "DurableRuntimeFailpointError";
|
|
1187
1186
|
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" | "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";
|
|
@@ -1191,16 +1190,17 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
1191
1190
|
readonly actual: number;
|
|
1192
1191
|
readonly maximum: number;
|
|
1193
1192
|
} | {
|
|
1194
|
-
readonly _tag: "
|
|
1195
|
-
readonly operation: string;
|
|
1193
|
+
readonly _tag: "HostProtocolError";
|
|
1196
1194
|
readonly message: string;
|
|
1197
|
-
readonly cause?: Schema.Json | undefined;
|
|
1198
1195
|
} | {
|
|
1199
|
-
readonly _tag: "
|
|
1200
|
-
readonly
|
|
1201
|
-
readonly
|
|
1202
|
-
readonly
|
|
1203
|
-
|
|
1196
|
+
readonly _tag: "ApprovalConflict";
|
|
1197
|
+
readonly submissionId: string;
|
|
1198
|
+
readonly toolCallId: string;
|
|
1199
|
+
readonly existingDecision: "approved" | "denied";
|
|
1200
|
+
} | {
|
|
1201
|
+
readonly _tag: "UnknownResolutionConflict";
|
|
1202
|
+
readonly submissionId: string;
|
|
1203
|
+
readonly toolCallId: string;
|
|
1204
1204
|
};
|
|
1205
1205
|
}, Schema.SchemaError, never>;
|
|
1206
1206
|
declare const decodeHostResponse: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<AbortRecorded | ApprovalRecorded | HostFailed | ObservedPage | ProgressCancelled | ProgressObserved | SettlementReached | SubmissionStatusResponse | SubmitSucceeded | UnknownResolutionRecorded, Schema.SchemaError, never>;
|
|
@@ -322,13 +322,13 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
322
322
|
readonly author: string;
|
|
323
323
|
readonly reason: string;
|
|
324
324
|
readonly resolution: {
|
|
325
|
+
readonly _tag: "SafeToRetry";
|
|
326
|
+
} | {
|
|
325
327
|
readonly _tag: "CompletedWithResult";
|
|
326
328
|
readonly result: Schema.Json;
|
|
327
329
|
readonly isFailure: boolean;
|
|
328
330
|
} | {
|
|
329
331
|
readonly _tag: "NeverHappened";
|
|
330
|
-
} | {
|
|
331
|
-
readonly _tag: "SafeToRetry";
|
|
332
332
|
} | {
|
|
333
333
|
readonly _tag: "AbortSubmission";
|
|
334
334
|
};
|
|
@@ -672,38 +672,14 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
672
672
|
readonly reason: "occupied" | "refused" | "unavailable";
|
|
673
673
|
readonly code: string;
|
|
674
674
|
} | {
|
|
675
|
-
readonly _tag: "
|
|
676
|
-
readonly operation: "abort" | "awaitSettlement" | "explain" | "observe" | "resolveApproval" | "resolveUnknown" | "retry" | "scanObligations" | "verify" | "wake";
|
|
677
|
-
readonly reason: string;
|
|
678
|
-
readonly threadId?: string | undefined;
|
|
679
|
-
readonly submissionId?: string | undefined;
|
|
680
|
-
} | {
|
|
681
|
-
readonly _tag: "RetryRefused";
|
|
675
|
+
readonly _tag: "SettlementConflict";
|
|
682
676
|
readonly submissionId: string;
|
|
683
|
-
readonly
|
|
684
|
-
readonly decisionTag: string;
|
|
685
|
-
readonly message: string;
|
|
677
|
+
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
686
678
|
} | {
|
|
687
679
|
readonly _tag: "LedgerError";
|
|
688
680
|
readonly operation: string;
|
|
689
681
|
readonly message: string;
|
|
690
682
|
readonly cause?: Schema.Json | undefined;
|
|
691
|
-
} | {
|
|
692
|
-
readonly _tag: "RunJournalError";
|
|
693
|
-
readonly message: string;
|
|
694
|
-
readonly cause?: Schema.Json | undefined;
|
|
695
|
-
} | {
|
|
696
|
-
readonly _tag: "DigestError";
|
|
697
|
-
readonly message: string;
|
|
698
|
-
readonly cause?: Schema.Json | undefined;
|
|
699
|
-
} | {
|
|
700
|
-
readonly _tag: "OwnershipLost";
|
|
701
|
-
readonly submissionId: string;
|
|
702
|
-
readonly actualEpoch: number;
|
|
703
|
-
} | {
|
|
704
|
-
readonly _tag: "SettlementConflict";
|
|
705
|
-
readonly submissionId: string;
|
|
706
|
-
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
707
683
|
} | {
|
|
708
684
|
readonly _tag: "ThreadStoreError";
|
|
709
685
|
readonly operation: string;
|
|
@@ -724,6 +700,30 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
724
700
|
readonly threadId: string;
|
|
725
701
|
readonly actualEpoch: number;
|
|
726
702
|
readonly attemptedEpoch: number;
|
|
703
|
+
} | {
|
|
704
|
+
readonly _tag: "OperationDenied";
|
|
705
|
+
readonly operation: "abort" | "awaitSettlement" | "explain" | "observe" | "resolveApproval" | "resolveUnknown" | "retry" | "scanObligations" | "verify" | "wake";
|
|
706
|
+
readonly reason: string;
|
|
707
|
+
readonly threadId?: string | undefined;
|
|
708
|
+
readonly submissionId?: string | undefined;
|
|
709
|
+
} | {
|
|
710
|
+
readonly _tag: "RetryRefused";
|
|
711
|
+
readonly submissionId: string;
|
|
712
|
+
readonly refusal: "await-approval-decision" | "await-unknown-resolution" | "settled";
|
|
713
|
+
readonly decisionTag: string;
|
|
714
|
+
readonly message: string;
|
|
715
|
+
} | {
|
|
716
|
+
readonly _tag: "RunJournalError";
|
|
717
|
+
readonly message: string;
|
|
718
|
+
readonly cause?: Schema.Json | undefined;
|
|
719
|
+
} | {
|
|
720
|
+
readonly _tag: "DigestError";
|
|
721
|
+
readonly message: string;
|
|
722
|
+
readonly cause?: Schema.Json | undefined;
|
|
723
|
+
} | {
|
|
724
|
+
readonly _tag: "OwnershipLost";
|
|
725
|
+
readonly submissionId: string;
|
|
726
|
+
readonly actualEpoch: number;
|
|
727
727
|
} | {
|
|
728
728
|
readonly _tag: "DurableRuntimeFailpointError";
|
|
729
729
|
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" | "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";
|
|
@@ -773,4 +773,4 @@ interface Class<EventServices = never> {
|
|
|
773
773
|
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>;
|
|
774
774
|
//#endregion
|
|
775
775
|
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 };
|
|
776
|
-
//# sourceMappingURL=ThreadObject-
|
|
776
|
+
//# sourceMappingURL=ThreadObject-C-Pj8laY.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-C-Pj8laY.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-C-Pj8laY.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.74","dependencies":{"@effect-agent/core":"0.1.0-beta.74","@effect-agent/engine":"0.1.0-beta.74","@effect-agent/sandbox":"0.1.0-beta.74","@effect-agent/storage-cloudflare":"0.1.0-beta.74","@effect-agent/thread":"0.1.0-beta.74","@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.74","@effect-agent/testing":"0.1.0-beta.74","@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}}}
|