@effect-agent/platform-cloudflare 0.1.0-beta.58 → 0.1.0-beta.59
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.
|
@@ -65,6 +65,7 @@ declare const SubmitRequest_base: Schema.Class<SubmitRequest, Schema.Struct<{
|
|
|
65
65
|
readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
|
|
66
66
|
readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
|
|
67
67
|
}>]>;
|
|
68
|
+
readonly budgetScope: Schema.optionalKey<Schema.Literals<readonly ["source-subtree", "worker-run"]>>;
|
|
68
69
|
readonly targetDigests: typeof DefinitionDigests;
|
|
69
70
|
readonly policy: Schema.toCodecJson<typeof import("@effect-agent/core/AgentPolicy").AgentPolicy>;
|
|
70
71
|
readonly budget: Schema.Struct<{
|
|
@@ -215,6 +216,7 @@ declare const encodeSubmitRequest: (input: SubmitRequest, options?: import("effe
|
|
|
215
216
|
readonly agentId: string;
|
|
216
217
|
readonly threadId: string;
|
|
217
218
|
};
|
|
219
|
+
readonly budgetScope?: "source-subtree" | "worker-run" | undefined;
|
|
218
220
|
readonly targetDigests: {
|
|
219
221
|
readonly agent: string;
|
|
220
222
|
readonly model: string;
|
|
@@ -338,13 +340,13 @@ declare const encodeUnknownResolutionCommand: (input: UnknownResolutionCommand,
|
|
|
338
340
|
readonly author: string;
|
|
339
341
|
readonly reason: string;
|
|
340
342
|
readonly resolution: {
|
|
343
|
+
readonly _tag: "SafeToRetry";
|
|
344
|
+
} | {
|
|
341
345
|
readonly _tag: "CompletedWithResult";
|
|
342
346
|
readonly result: Schema.Json;
|
|
343
347
|
readonly isFailure: boolean;
|
|
344
348
|
} | {
|
|
345
349
|
readonly _tag: "NeverHappened";
|
|
346
|
-
} | {
|
|
347
|
-
readonly _tag: "SafeToRetry";
|
|
348
350
|
} | {
|
|
349
351
|
readonly _tag: "AbortSubmission";
|
|
350
352
|
};
|
|
@@ -472,6 +474,14 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
472
474
|
readonly createdAt: string;
|
|
473
475
|
readonly deploymentId: string;
|
|
474
476
|
readonly payload: {
|
|
477
|
+
readonly _tag: "SubagentStarted";
|
|
478
|
+
readonly runId: string;
|
|
479
|
+
readonly toolCallId: string;
|
|
480
|
+
readonly childThreadId: string;
|
|
481
|
+
readonly childSubmissionId: string;
|
|
482
|
+
readonly childReceiptId: string;
|
|
483
|
+
readonly childRunId: string;
|
|
484
|
+
} | {
|
|
475
485
|
readonly _tag: "AbortRequested";
|
|
476
486
|
readonly submissionId: string;
|
|
477
487
|
readonly author: string;
|
|
@@ -732,14 +742,6 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
732
742
|
readonly childLifetimes?: readonly ("attached" | "background")[] | undefined;
|
|
733
743
|
} | undefined;
|
|
734
744
|
readonly depth?: number | undefined;
|
|
735
|
-
} | {
|
|
736
|
-
readonly _tag: "SubagentStarted";
|
|
737
|
-
readonly runId: string;
|
|
738
|
-
readonly toolCallId: string;
|
|
739
|
-
readonly childThreadId: string;
|
|
740
|
-
readonly childSubmissionId: string;
|
|
741
|
-
readonly childReceiptId: string;
|
|
742
|
-
readonly childRunId: string;
|
|
743
745
|
} | {
|
|
744
746
|
readonly _tag: "SubagentJoined";
|
|
745
747
|
readonly runId: string;
|
|
@@ -821,6 +823,7 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
821
823
|
readonly agentId: string;
|
|
822
824
|
readonly threadId: string;
|
|
823
825
|
};
|
|
826
|
+
readonly budgetScope?: "source-subtree" | "worker-run" | undefined;
|
|
824
827
|
readonly targetDigests: {
|
|
825
828
|
readonly agent: string;
|
|
826
829
|
readonly model: string;
|
|
@@ -896,6 +899,7 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
896
899
|
readonly agentId: string;
|
|
897
900
|
readonly threadId: string;
|
|
898
901
|
};
|
|
902
|
+
readonly budgetScope?: "source-subtree" | "worker-run" | undefined;
|
|
899
903
|
readonly targetDigests: {
|
|
900
904
|
readonly agent: string;
|
|
901
905
|
readonly model: string;
|
|
@@ -1046,13 +1050,13 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
1046
1050
|
readonly author: string;
|
|
1047
1051
|
readonly reason: string;
|
|
1048
1052
|
readonly resolution: {
|
|
1053
|
+
readonly _tag: "SafeToRetry";
|
|
1054
|
+
} | {
|
|
1049
1055
|
readonly _tag: "CompletedWithResult";
|
|
1050
1056
|
readonly result: Schema.Json;
|
|
1051
1057
|
readonly isFailure: boolean;
|
|
1052
1058
|
} | {
|
|
1053
1059
|
readonly _tag: "NeverHappened";
|
|
1054
|
-
} | {
|
|
1055
|
-
readonly _tag: "SafeToRetry";
|
|
1056
1060
|
} | {
|
|
1057
1061
|
readonly _tag: "AbortSubmission";
|
|
1058
1062
|
};
|
|
@@ -1062,6 +1066,14 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
1062
1066
|
} | {
|
|
1063
1067
|
readonly _tag: "HostFailed";
|
|
1064
1068
|
readonly failure: {
|
|
1069
|
+
readonly _tag: "DurableAlarmError";
|
|
1070
|
+
readonly operation: string;
|
|
1071
|
+
readonly message: string;
|
|
1072
|
+
readonly cause?: Schema.Json | undefined;
|
|
1073
|
+
} | {
|
|
1074
|
+
readonly _tag: "HostProtocolError";
|
|
1075
|
+
readonly message: string;
|
|
1076
|
+
} | {
|
|
1065
1077
|
readonly _tag: "AdmissionConflict";
|
|
1066
1078
|
readonly threadId: string;
|
|
1067
1079
|
readonly principal: string;
|
|
@@ -1105,14 +1117,6 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
1105
1117
|
readonly threadId: string;
|
|
1106
1118
|
readonly actualEpoch: number;
|
|
1107
1119
|
readonly attemptedEpoch: number;
|
|
1108
|
-
} | {
|
|
1109
|
-
readonly _tag: "DurableAlarmError";
|
|
1110
|
-
readonly operation: string;
|
|
1111
|
-
readonly message: string;
|
|
1112
|
-
readonly cause?: Schema.Json | undefined;
|
|
1113
|
-
} | {
|
|
1114
|
-
readonly _tag: "HostProtocolError";
|
|
1115
|
-
readonly message: string;
|
|
1116
1120
|
} | {
|
|
1117
1121
|
readonly _tag: "AgentInputError";
|
|
1118
1122
|
readonly message: string;
|
|
@@ -304,13 +304,13 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
304
304
|
readonly author: string;
|
|
305
305
|
readonly reason: string;
|
|
306
306
|
readonly resolution: {
|
|
307
|
-
readonly _tag: "SafeToRetry";
|
|
308
|
-
} | {
|
|
309
307
|
readonly _tag: "CompletedWithResult";
|
|
310
308
|
readonly result: Schema.Json;
|
|
311
309
|
readonly isFailure: boolean;
|
|
312
310
|
} | {
|
|
313
311
|
readonly _tag: "NeverHappened";
|
|
312
|
+
} | {
|
|
313
|
+
readonly _tag: "SafeToRetry";
|
|
314
314
|
} | {
|
|
315
315
|
readonly _tag: "AbortSubmission";
|
|
316
316
|
};
|
|
@@ -755,4 +755,4 @@ interface Class<EventServices = never> {
|
|
|
755
755
|
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>;
|
|
756
756
|
//#endregion
|
|
757
757
|
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 };
|
|
758
|
-
//# sourceMappingURL=ThreadObject-
|
|
758
|
+
//# sourceMappingURL=ThreadObject-CqehC5VZ.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-CqehC5VZ.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-CqehC5VZ.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.59","dependencies":{"@effect-agent/core":"0.1.0-beta.59","@effect-agent/engine":"0.1.0-beta.59","@effect-agent/sandbox":"0.1.0-beta.59","@effect-agent/storage-cloudflare":"0.1.0-beta.59","@effect-agent/thread":"0.1.0-beta.59","@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.59","@effect-agent/testing":"0.1.0-beta.59","@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}}}
|