@effect-agent/platform-cloudflare 0.1.0-beta.55 → 0.1.0-beta.56
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.
|
@@ -316,6 +316,19 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
316
316
|
readonly createdAt: string;
|
|
317
317
|
readonly deploymentId: string;
|
|
318
318
|
readonly payload: {
|
|
319
|
+
readonly _tag: "SubagentStarted";
|
|
320
|
+
readonly runId: string;
|
|
321
|
+
readonly toolCallId: string;
|
|
322
|
+
readonly childThreadId: string;
|
|
323
|
+
readonly childSubmissionId: string;
|
|
324
|
+
readonly childReceiptId: string;
|
|
325
|
+
readonly childRunId: string;
|
|
326
|
+
} | {
|
|
327
|
+
readonly _tag: "AbortRequested";
|
|
328
|
+
readonly submissionId: string;
|
|
329
|
+
readonly author: string;
|
|
330
|
+
readonly reason: string;
|
|
331
|
+
} | {
|
|
319
332
|
readonly _tag: "ThreadCreated";
|
|
320
333
|
readonly agentId: string;
|
|
321
334
|
readonly definitions: {
|
|
@@ -453,11 +466,6 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
453
466
|
readonly runDisposition?: Schema.Json | undefined;
|
|
454
467
|
readonly finishReason?: "budget-exhausted" | undefined;
|
|
455
468
|
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
456
|
-
} | {
|
|
457
|
-
readonly _tag: "AbortRequested";
|
|
458
|
-
readonly submissionId: string;
|
|
459
|
-
readonly author: string;
|
|
460
|
-
readonly reason: string;
|
|
461
469
|
} | {
|
|
462
470
|
readonly _tag: "SubmissionSettled";
|
|
463
471
|
readonly submissionId: string;
|
|
@@ -549,14 +557,6 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
549
557
|
readonly resultBytes: number;
|
|
550
558
|
};
|
|
551
559
|
} | undefined;
|
|
552
|
-
} | {
|
|
553
|
-
readonly _tag: "SubagentStarted";
|
|
554
|
-
readonly runId: string;
|
|
555
|
-
readonly toolCallId: string;
|
|
556
|
-
readonly childThreadId: string;
|
|
557
|
-
readonly childSubmissionId: string;
|
|
558
|
-
readonly childReceiptId: string;
|
|
559
|
-
readonly childRunId: string;
|
|
560
560
|
} | {
|
|
561
561
|
readonly _tag: "SubagentJoined";
|
|
562
562
|
readonly runId: string;
|
|
@@ -644,16 +644,6 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
644
644
|
} | {
|
|
645
645
|
readonly _tag: "HostFailed";
|
|
646
646
|
readonly failure: {
|
|
647
|
-
readonly _tag: "HostProtocolError";
|
|
648
|
-
readonly message: string;
|
|
649
|
-
} | {
|
|
650
|
-
readonly _tag: "AgentInputError";
|
|
651
|
-
readonly message: string;
|
|
652
|
-
} | {
|
|
653
|
-
readonly _tag: "DigestError";
|
|
654
|
-
readonly message: string;
|
|
655
|
-
readonly cause?: Schema.Json | undefined;
|
|
656
|
-
} | {
|
|
657
647
|
readonly _tag: "AdmissionConflict";
|
|
658
648
|
readonly threadId: string;
|
|
659
649
|
readonly principal: string;
|
|
@@ -668,15 +658,6 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
668
658
|
readonly _tag: "SettlementConflict";
|
|
669
659
|
readonly submissionId: string;
|
|
670
660
|
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
671
|
-
} | {
|
|
672
|
-
readonly _tag: "ApprovalConflict";
|
|
673
|
-
readonly submissionId: string;
|
|
674
|
-
readonly toolCallId: string;
|
|
675
|
-
readonly existingDecision: "approved" | "denied";
|
|
676
|
-
} | {
|
|
677
|
-
readonly _tag: "UnknownResolutionConflict";
|
|
678
|
-
readonly submissionId: string;
|
|
679
|
-
readonly toolCallId: string;
|
|
680
661
|
} | {
|
|
681
662
|
readonly _tag: "JoinedToHost";
|
|
682
663
|
readonly submissionId: string;
|
|
@@ -706,6 +687,25 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
706
687
|
readonly threadId: string;
|
|
707
688
|
readonly actualEpoch: number;
|
|
708
689
|
readonly attemptedEpoch: number;
|
|
690
|
+
} | {
|
|
691
|
+
readonly _tag: "HostProtocolError";
|
|
692
|
+
readonly message: string;
|
|
693
|
+
} | {
|
|
694
|
+
readonly _tag: "AgentInputError";
|
|
695
|
+
readonly message: string;
|
|
696
|
+
} | {
|
|
697
|
+
readonly _tag: "DigestError";
|
|
698
|
+
readonly message: string;
|
|
699
|
+
readonly cause?: Schema.Json | undefined;
|
|
700
|
+
} | {
|
|
701
|
+
readonly _tag: "ApprovalConflict";
|
|
702
|
+
readonly submissionId: string;
|
|
703
|
+
readonly toolCallId: string;
|
|
704
|
+
readonly existingDecision: "approved" | "denied";
|
|
705
|
+
} | {
|
|
706
|
+
readonly _tag: "UnknownResolutionConflict";
|
|
707
|
+
readonly submissionId: string;
|
|
708
|
+
readonly toolCallId: string;
|
|
709
709
|
} | {
|
|
710
710
|
readonly _tag: "DurableRuntimeFailpointError";
|
|
711
711
|
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";
|
|
@@ -301,13 +301,13 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
301
301
|
readonly author: string;
|
|
302
302
|
readonly reason: string;
|
|
303
303
|
readonly resolution: {
|
|
304
|
+
readonly _tag: "SafeToRetry";
|
|
305
|
+
} | {
|
|
304
306
|
readonly _tag: "CompletedWithResult";
|
|
305
307
|
readonly result: Schema.Json;
|
|
306
308
|
readonly isFailure: boolean;
|
|
307
309
|
} | {
|
|
308
310
|
readonly _tag: "NeverHappened";
|
|
309
|
-
} | {
|
|
310
|
-
readonly _tag: "SafeToRetry";
|
|
311
311
|
} | {
|
|
312
312
|
readonly _tag: "AbortSubmission";
|
|
313
313
|
};
|
|
@@ -647,27 +647,38 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
647
647
|
} | {
|
|
648
648
|
readonly _tag: "AdminFailed";
|
|
649
649
|
readonly failure: {
|
|
650
|
-
readonly _tag: "
|
|
651
|
-
readonly
|
|
652
|
-
readonly
|
|
653
|
-
readonly cause?: Schema.Json | undefined;
|
|
650
|
+
readonly _tag: "AdmissionPolicyError";
|
|
651
|
+
readonly reason: "occupied" | "refused" | "unavailable";
|
|
652
|
+
readonly code: string;
|
|
654
653
|
} | {
|
|
655
|
-
readonly _tag: "
|
|
656
|
-
readonly
|
|
654
|
+
readonly _tag: "SettlementConflict";
|
|
655
|
+
readonly submissionId: string;
|
|
656
|
+
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
657
657
|
} | {
|
|
658
|
-
readonly _tag: "
|
|
658
|
+
readonly _tag: "LedgerError";
|
|
659
659
|
readonly operation: string;
|
|
660
660
|
readonly message: string;
|
|
661
661
|
readonly cause?: Schema.Json | undefined;
|
|
662
662
|
} | {
|
|
663
|
-
readonly _tag: "
|
|
663
|
+
readonly _tag: "ThreadStoreError";
|
|
664
664
|
readonly operation: string;
|
|
665
665
|
readonly message: string;
|
|
666
666
|
readonly cause?: Schema.Json | undefined;
|
|
667
667
|
} | {
|
|
668
|
-
readonly _tag: "
|
|
669
|
-
readonly
|
|
670
|
-
|
|
668
|
+
readonly _tag: "ThreadNotMaterialized";
|
|
669
|
+
readonly threadId: string;
|
|
670
|
+
} | {
|
|
671
|
+
readonly _tag: "AppendConflict";
|
|
672
|
+
readonly threadId: string;
|
|
673
|
+
readonly batchId: string;
|
|
674
|
+
readonly reason: "batch-digest" | "record-identity" | "tail";
|
|
675
|
+
readonly actualTailSequence?: number | undefined;
|
|
676
|
+
readonly actualTailDigest?: string | undefined;
|
|
677
|
+
} | {
|
|
678
|
+
readonly _tag: "FenceRejected";
|
|
679
|
+
readonly threadId: string;
|
|
680
|
+
readonly actualEpoch: number;
|
|
681
|
+
readonly attemptedEpoch: number;
|
|
671
682
|
} | {
|
|
672
683
|
readonly _tag: "OperationDenied";
|
|
673
684
|
readonly operation: "abort" | "awaitSettlement" | "explain" | "observe" | "resolveApproval" | "resolveUnknown" | "retry" | "scanObligations" | "verify" | "wake";
|
|
@@ -692,25 +703,14 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
692
703
|
readonly _tag: "OwnershipLost";
|
|
693
704
|
readonly submissionId: string;
|
|
694
705
|
readonly actualEpoch: number;
|
|
695
|
-
} | {
|
|
696
|
-
readonly _tag: "SettlementConflict";
|
|
697
|
-
readonly submissionId: string;
|
|
698
|
-
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
699
|
-
} | {
|
|
700
|
-
readonly _tag: "AppendConflict";
|
|
701
|
-
readonly threadId: string;
|
|
702
|
-
readonly batchId: string;
|
|
703
|
-
readonly reason: "batch-digest" | "record-identity" | "tail";
|
|
704
|
-
readonly actualTailSequence?: number | undefined;
|
|
705
|
-
readonly actualTailDigest?: string | undefined;
|
|
706
|
-
} | {
|
|
707
|
-
readonly _tag: "FenceRejected";
|
|
708
|
-
readonly threadId: string;
|
|
709
|
-
readonly actualEpoch: number;
|
|
710
|
-
readonly attemptedEpoch: number;
|
|
711
706
|
} | {
|
|
712
707
|
readonly _tag: "DurableRuntimeFailpointError";
|
|
713
708
|
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";
|
|
709
|
+
} | {
|
|
710
|
+
readonly _tag: "DurableAlarmError";
|
|
711
|
+
readonly operation: string;
|
|
712
|
+
readonly message: string;
|
|
713
|
+
readonly cause?: Schema.Json | undefined;
|
|
714
714
|
} | {
|
|
715
715
|
readonly _tag: "HostProtocolError";
|
|
716
716
|
readonly message: string;
|
|
@@ -752,4 +752,4 @@ interface Class<EventServices = never> {
|
|
|
752
752
|
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>;
|
|
753
753
|
//#endregion
|
|
754
754
|
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 };
|
|
755
|
-
//# sourceMappingURL=ThreadObject-
|
|
755
|
+
//# sourceMappingURL=ThreadObject-DjHKWRF9.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-DjHKWRF9.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-DjHKWRF9.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.56","dependencies":{"@effect-agent/core":"0.1.0-beta.56","@effect-agent/engine":"0.1.0-beta.56","@effect-agent/sandbox":"0.1.0-beta.56","@effect-agent/storage-cloudflare":"0.1.0-beta.56","@effect-agent/thread":"0.1.0-beta.56","@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.56","@effect-agent/testing":"0.1.0-beta.56","@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}}}
|