@effect-agent/platform-cloudflare 0.1.0-beta.103 → 0.1.0-beta.104
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.
|
@@ -617,45 +617,6 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
|
|
|
617
617
|
readonly createdAt: string;
|
|
618
618
|
readonly deploymentId: string;
|
|
619
619
|
readonly payload: {
|
|
620
|
-
readonly _tag: "ToolCallPrepared";
|
|
621
|
-
readonly runId: string;
|
|
622
|
-
readonly turnId: string;
|
|
623
|
-
readonly turn: number;
|
|
624
|
-
readonly toolCallId: string;
|
|
625
|
-
readonly toolName: string;
|
|
626
|
-
readonly parameters: Schema.Json;
|
|
627
|
-
readonly parametersDigest: string;
|
|
628
|
-
readonly executionKind?: "delegation" | "orchestration" | "ordinary" | undefined;
|
|
629
|
-
readonly executionClass?: "idempotent" | "readonly" | "uncertain" | undefined;
|
|
630
|
-
readonly replay?: string | undefined;
|
|
631
|
-
} | {
|
|
632
|
-
readonly _tag: "ToolCallUnknown";
|
|
633
|
-
readonly runId: string;
|
|
634
|
-
readonly turn: number;
|
|
635
|
-
readonly toolCallId: string;
|
|
636
|
-
readonly toolName: string;
|
|
637
|
-
readonly reason: string;
|
|
638
|
-
} | {
|
|
639
|
-
readonly _tag: "ToolApprovalDecided";
|
|
640
|
-
readonly runId: string;
|
|
641
|
-
readonly turn: number;
|
|
642
|
-
readonly toolCallId: string;
|
|
643
|
-
readonly decision: "approved" | "denied";
|
|
644
|
-
readonly resolver: string;
|
|
645
|
-
readonly reason: string;
|
|
646
|
-
} | {
|
|
647
|
-
readonly _tag: "ToolCallResolved";
|
|
648
|
-
readonly runId: string;
|
|
649
|
-
readonly toolCallId: string;
|
|
650
|
-
readonly resolution: "completed-with-result" | "failed-with-error" | "never-started" | "safe-retry";
|
|
651
|
-
readonly author: string;
|
|
652
|
-
readonly reason: string;
|
|
653
|
-
} | {
|
|
654
|
-
readonly _tag: "AbortRequested";
|
|
655
|
-
readonly submissionId: string;
|
|
656
|
-
readonly author: string;
|
|
657
|
-
readonly reason: string;
|
|
658
|
-
} | {
|
|
659
620
|
readonly _tag: "ThreadCreated";
|
|
660
621
|
readonly agentId: string;
|
|
661
622
|
readonly definitions: {
|
|
@@ -847,6 +808,18 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
|
|
|
847
808
|
readonly inputTokens?: number | undefined;
|
|
848
809
|
readonly outputTokens?: number | undefined;
|
|
849
810
|
readonly costMicrousd?: number | undefined;
|
|
811
|
+
} | {
|
|
812
|
+
readonly _tag: "ToolCallPrepared";
|
|
813
|
+
readonly runId: string;
|
|
814
|
+
readonly turnId: string;
|
|
815
|
+
readonly turn: number;
|
|
816
|
+
readonly toolCallId: string;
|
|
817
|
+
readonly toolName: string;
|
|
818
|
+
readonly parameters: Schema.Json;
|
|
819
|
+
readonly parametersDigest: string;
|
|
820
|
+
readonly executionKind?: "delegation" | "orchestration" | "ordinary" | undefined;
|
|
821
|
+
readonly executionClass?: "idempotent" | "readonly" | "uncertain" | undefined;
|
|
822
|
+
readonly replay?: string | undefined;
|
|
850
823
|
} | {
|
|
851
824
|
readonly _tag: "ToolCallSettled";
|
|
852
825
|
readonly toolSelection?: {
|
|
@@ -858,6 +831,20 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
|
|
|
858
831
|
readonly result: Schema.Json;
|
|
859
832
|
readonly isFailure: boolean;
|
|
860
833
|
readonly budgetRejected?: true | undefined;
|
|
834
|
+
} | {
|
|
835
|
+
readonly _tag: "ToolCallUnknown";
|
|
836
|
+
readonly runId: string;
|
|
837
|
+
readonly turn: number;
|
|
838
|
+
readonly toolCallId: string;
|
|
839
|
+
readonly toolName: string;
|
|
840
|
+
readonly reason: string;
|
|
841
|
+
} | {
|
|
842
|
+
readonly _tag: "ToolCallResolved";
|
|
843
|
+
readonly runId: string;
|
|
844
|
+
readonly toolCallId: string;
|
|
845
|
+
readonly resolution: "completed-with-result" | "failed-with-error" | "never-started" | "safe-retry";
|
|
846
|
+
readonly author: string;
|
|
847
|
+
readonly reason: string;
|
|
861
848
|
} | {
|
|
862
849
|
readonly _tag: "ToolStepSettled";
|
|
863
850
|
readonly runId: string;
|
|
@@ -873,6 +860,14 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
|
|
|
873
860
|
readonly toolCallId: string;
|
|
874
861
|
readonly toolName: string;
|
|
875
862
|
readonly parametersDigest: string;
|
|
863
|
+
} | {
|
|
864
|
+
readonly _tag: "ToolApprovalDecided";
|
|
865
|
+
readonly runId: string;
|
|
866
|
+
readonly turn: number;
|
|
867
|
+
readonly toolCallId: string;
|
|
868
|
+
readonly decision: "approved" | "denied";
|
|
869
|
+
readonly resolver: string;
|
|
870
|
+
readonly reason: string;
|
|
876
871
|
} | {
|
|
877
872
|
readonly _tag: "ModelResponseInterrupted";
|
|
878
873
|
readonly runId: string;
|
|
@@ -899,6 +894,11 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
|
|
|
899
894
|
readonly runDisposition?: Schema.Json | undefined;
|
|
900
895
|
readonly finishReason?: "budget-exhausted" | undefined;
|
|
901
896
|
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
897
|
+
} | {
|
|
898
|
+
readonly _tag: "AbortRequested";
|
|
899
|
+
readonly submissionId: string;
|
|
900
|
+
readonly author: string;
|
|
901
|
+
readonly reason: string;
|
|
902
902
|
} | {
|
|
903
903
|
readonly _tag: "SubmissionSettled";
|
|
904
904
|
readonly submissionId: string;
|
|
@@ -1453,11 +1453,6 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
|
|
|
1453
1453
|
} | {
|
|
1454
1454
|
readonly _tag: "HostFailed";
|
|
1455
1455
|
readonly failure: {
|
|
1456
|
-
readonly _tag: "DurableAlarmError";
|
|
1457
|
-
readonly operation: string;
|
|
1458
|
-
readonly message: string;
|
|
1459
|
-
readonly cause?: Schema.Json | undefined;
|
|
1460
|
-
} | {
|
|
1461
1456
|
readonly _tag: "HostProtocolError";
|
|
1462
1457
|
readonly message: string;
|
|
1463
1458
|
} | {
|
|
@@ -1495,6 +1490,11 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
|
|
|
1495
1490
|
readonly _tag: "DigestError";
|
|
1496
1491
|
readonly message: string;
|
|
1497
1492
|
readonly cause?: Schema.Json | undefined;
|
|
1493
|
+
} | {
|
|
1494
|
+
readonly _tag: "DurableAlarmError";
|
|
1495
|
+
readonly operation: string;
|
|
1496
|
+
readonly message: string;
|
|
1497
|
+
readonly cause?: Schema.Json | undefined;
|
|
1498
1498
|
} | {
|
|
1499
1499
|
readonly _tag: "DurableRuntimeFailpointError";
|
|
1500
1500
|
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-duration-append" | "run:after-start-append" | "run:before-duration-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:after-unavailable-append" | "tools:before-prepared-append" | "tools:before-unavailable-append" | "turn:after-canonical-append" | "turn:after-response-append" | "turn:after-results-append" | "update:after-canonical-append" | "update:after-delivery-insert" | "update:before-canonical-append" | "update:before-delivery-insert" | "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";
|
|
@@ -705,11 +705,6 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
705
705
|
} | {
|
|
706
706
|
readonly _tag: "AdminFailed";
|
|
707
707
|
readonly failure: {
|
|
708
|
-
readonly _tag: "DurableAlarmError";
|
|
709
|
-
readonly operation: string;
|
|
710
|
-
readonly message: string;
|
|
711
|
-
readonly cause?: Schema.Json | undefined;
|
|
712
|
-
} | {
|
|
713
708
|
readonly _tag: "HostProtocolError";
|
|
714
709
|
readonly message: string;
|
|
715
710
|
} | {
|
|
@@ -732,6 +727,11 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
732
727
|
readonly _tag: "DigestError";
|
|
733
728
|
readonly message: string;
|
|
734
729
|
readonly cause?: Schema.Json | undefined;
|
|
730
|
+
} | {
|
|
731
|
+
readonly _tag: "DurableAlarmError";
|
|
732
|
+
readonly operation: string;
|
|
733
|
+
readonly message: string;
|
|
734
|
+
readonly cause?: Schema.Json | undefined;
|
|
735
735
|
} | {
|
|
736
736
|
readonly _tag: "DurableRuntimeFailpointError";
|
|
737
737
|
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-duration-append" | "run:after-start-append" | "run:before-duration-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:after-unavailable-append" | "tools:before-prepared-append" | "tools:before-unavailable-append" | "turn:after-canonical-append" | "turn:after-response-append" | "turn:after-results-append" | "update:after-canonical-append" | "update:after-delivery-insert" | "update:before-canonical-append" | "update:before-delivery-insert" | "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";
|
|
@@ -824,4 +824,4 @@ interface Class<EventServices = never> {
|
|
|
824
824
|
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>;
|
|
825
825
|
//#endregion
|
|
826
826
|
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 };
|
|
827
|
-
//# sourceMappingURL=ThreadObject-
|
|
827
|
+
//# sourceMappingURL=ThreadObject-DYMeJA39.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-DYMeJA39.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-DYMeJA39.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.104","dependencies":{"@effect-agent/storage-cloudflare":"0.1.0-beta.104","@effect/platform-browser":"4.0.0-rc.115","@effect/sql-sqlite-do":"4.0.0-rc.115","effect-agent":"0.1.0-beta.104"},"devDependencies":{"@cloudflare/puppeteer":"1.1.0","@cloudflare/vitest-pool-workers":"0.21.3","@cloudflare/workers-types":"5.20260825.1","@effect-agent/testing":"0.1.0-beta.104","@effect/platform-node":"4.0.0-rc.115","@effect/sql-d1":"4.0.0-rc.115","@effect/vitest":"4.0.0-rc.115","effect":"4.0.0-rc.115","effect-cf":"0.44.1","esbuild":"0.28.1","miniflare":"5.20260811.1-alpha","typescript":"7.0.2","vite-plus":"0.3.2","vitest":"4.1.11"},"peerDependencies":{"@cloudflare/puppeteer":"^1.1.0","effect":"^4.0.0-rc.115","effect-cf":"^0.44.1 || ^0.45.0"},"exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"./alarm":{"types":"./dist/Alarm.d.mts","default":"./dist/Alarm.mjs"},"./browser-rest-capture":{"types":"./dist/BrowserRestCapture.d.mts","default":"./dist/BrowserRestCapture.mjs"},"./browser-rest-crawl":{"types":"./dist/BrowserRestCrawl.d.mts","default":"./dist/BrowserRestCrawl.mjs"},"./cloudflare-bindings":{"types":"./dist/CloudflareBindings.d.mts","default":"./dist/CloudflareBindings.mjs"},"./cloudflare-browser":{"types":"./dist/CloudflareBrowser.d.mts","default":"./dist/CloudflareBrowser.mjs"},"./cloudflare-code-mode":{"types":"./dist/CloudflareCodeMode.d.mts","default":"./dist/CloudflareCodeMode.mjs"},"./cloudflare-config":{"types":"./dist/CloudflareConfig.d.mts","default":"./dist/CloudflareConfig.mjs"},"./cloudflare-memory":{"types":"./dist/CloudflareMemory.d.mts","default":"./dist/CloudflareMemory.mjs"},"./cloudflare-scheduling":{"types":"./dist/CloudflareScheduling.d.mts","default":"./dist/CloudflareScheduling.mjs"},"./cloudflare-subscriptions":{"types":"./dist/CloudflareSubscriptions.d.mts","default":"./dist/CloudflareSubscriptions.mjs"},"./cloudflare-thread-client":{"types":"./dist/CloudflareThreadClient.d.mts","default":"./dist/CloudflareThreadClient.mjs"},"./interactive-browser":{"types":"./dist/InteractiveBrowser.d.mts","default":"./dist/InteractiveBrowser.mjs"},"./protected-browser":{"types":"./dist/ProtectedBrowser.d.mts","default":"./dist/ProtectedBrowser.mjs"},"./thread-object":{"types":"./dist/ThreadObject.d.mts","default":"./dist/ThreadObject.mjs"},"./wake-scheduler":{"types":"./dist/WakeScheduler.d.mts","default":"./dist/WakeScheduler.mjs"},"./cloudflare-ai-gateway":{"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}}}
|