@effect-agent/platform-cloudflare 0.1.0-beta.93 → 0.1.0-beta.94
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.
|
@@ -715,6 +715,20 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
715
715
|
readonly messages?: Schema.Json | undefined;
|
|
716
716
|
} | {
|
|
717
717
|
readonly _tag: "ModelResponseRecorded";
|
|
718
|
+
readonly toolParameterRejections?: readonly {
|
|
719
|
+
readonly toolCallId: string;
|
|
720
|
+
readonly parameters: Schema.Json;
|
|
721
|
+
readonly error: {
|
|
722
|
+
readonly _tag: "AiError";
|
|
723
|
+
readonly module: string;
|
|
724
|
+
readonly method: string;
|
|
725
|
+
readonly reason: {
|
|
726
|
+
readonly _tag: "ToolParameterValidationError";
|
|
727
|
+
readonly toolName: string;
|
|
728
|
+
readonly description: string;
|
|
729
|
+
};
|
|
730
|
+
};
|
|
731
|
+
}[] | undefined;
|
|
718
732
|
readonly toolExposure?: {
|
|
719
733
|
readonly exposedToolNames: readonly string[];
|
|
720
734
|
readonly selection?: {
|
|
@@ -1350,6 +1364,11 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
1350
1364
|
readonly failure: {
|
|
1351
1365
|
readonly _tag: "HostProtocolError";
|
|
1352
1366
|
readonly message: string;
|
|
1367
|
+
} | {
|
|
1368
|
+
readonly _tag: "DurableAlarmError";
|
|
1369
|
+
readonly operation: string;
|
|
1370
|
+
readonly message: string;
|
|
1371
|
+
readonly cause?: Schema.Json | undefined;
|
|
1353
1372
|
} | {
|
|
1354
1373
|
readonly _tag: "AgentInputError";
|
|
1355
1374
|
readonly message: string;
|
|
@@ -1418,11 +1437,6 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
1418
1437
|
readonly limit: "database-bytes" | "input-bytes" | "queue-depth";
|
|
1419
1438
|
readonly actual: number;
|
|
1420
1439
|
readonly maximum: number;
|
|
1421
|
-
} | {
|
|
1422
|
-
readonly _tag: "DurableAlarmError";
|
|
1423
|
-
readonly operation: string;
|
|
1424
|
-
readonly message: string;
|
|
1425
|
-
readonly cause?: Schema.Json | undefined;
|
|
1426
1440
|
} | {
|
|
1427
1441
|
readonly _tag: "OperationDenied";
|
|
1428
1442
|
readonly operation: "abort" | "awaitSettlement" | "explain" | "observe" | "resolveApproval" | "resolveUnknown" | "retry" | "scanObligations" | "verify" | "wake";
|
|
@@ -344,13 +344,13 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
344
344
|
readonly author: string;
|
|
345
345
|
readonly reason: string;
|
|
346
346
|
readonly resolution: {
|
|
347
|
+
readonly _tag: "SafeToRetry";
|
|
348
|
+
} | {
|
|
347
349
|
readonly _tag: "CompletedWithResult";
|
|
348
350
|
readonly result: Schema.Json;
|
|
349
351
|
readonly isFailure: boolean;
|
|
350
352
|
} | {
|
|
351
353
|
readonly _tag: "NeverHappened";
|
|
352
|
-
} | {
|
|
353
|
-
readonly _tag: "SafeToRetry";
|
|
354
354
|
} | {
|
|
355
355
|
readonly _tag: "AbortSubmission";
|
|
356
356
|
};
|
|
@@ -695,17 +695,26 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
695
695
|
readonly message: string;
|
|
696
696
|
readonly cause?: Schema.Json | undefined;
|
|
697
697
|
} | {
|
|
698
|
-
readonly _tag: "
|
|
699
|
-
readonly
|
|
698
|
+
readonly _tag: "AdmissionPolicyError";
|
|
699
|
+
readonly reason: "occupied" | "refused" | "unavailable";
|
|
700
|
+
readonly code: string;
|
|
701
|
+
} | {
|
|
702
|
+
readonly _tag: "SettlementConflict";
|
|
703
|
+
readonly submissionId: string;
|
|
704
|
+
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
700
705
|
} | {
|
|
701
706
|
readonly _tag: "LedgerError";
|
|
702
707
|
readonly operation: string;
|
|
703
708
|
readonly message: string;
|
|
704
709
|
readonly cause?: Schema.Json | undefined;
|
|
705
710
|
} | {
|
|
706
|
-
readonly _tag: "
|
|
707
|
-
readonly
|
|
708
|
-
readonly
|
|
711
|
+
readonly _tag: "ThreadStoreError";
|
|
712
|
+
readonly operation: string;
|
|
713
|
+
readonly message: string;
|
|
714
|
+
readonly cause?: Schema.Json | undefined;
|
|
715
|
+
} | {
|
|
716
|
+
readonly _tag: "ThreadNotMaterialized";
|
|
717
|
+
readonly threadId: string;
|
|
709
718
|
} | {
|
|
710
719
|
readonly _tag: "AppendConflict";
|
|
711
720
|
readonly threadId: string;
|
|
@@ -713,26 +722,11 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
713
722
|
readonly reason: "batch-digest" | "record-identity" | "tail";
|
|
714
723
|
readonly actualTailSequence?: number | undefined;
|
|
715
724
|
readonly actualTailDigest?: string | undefined;
|
|
716
|
-
} | {
|
|
717
|
-
readonly _tag: "DigestError";
|
|
718
|
-
readonly message: string;
|
|
719
|
-
readonly cause?: Schema.Json | undefined;
|
|
720
|
-
} | {
|
|
721
|
-
readonly _tag: "DurableRuntimeFailpointError";
|
|
722
|
-
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" | "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";
|
|
723
725
|
} | {
|
|
724
726
|
readonly _tag: "FenceRejected";
|
|
725
727
|
readonly threadId: string;
|
|
726
728
|
readonly actualEpoch: number;
|
|
727
729
|
readonly attemptedEpoch: number;
|
|
728
|
-
} | {
|
|
729
|
-
readonly _tag: "ThreadNotMaterialized";
|
|
730
|
-
readonly threadId: string;
|
|
731
|
-
} | {
|
|
732
|
-
readonly _tag: "ThreadStoreError";
|
|
733
|
-
readonly operation: string;
|
|
734
|
-
readonly message: string;
|
|
735
|
-
readonly cause?: Schema.Json | undefined;
|
|
736
730
|
} | {
|
|
737
731
|
readonly _tag: "OperationDenied";
|
|
738
732
|
readonly operation: "abort" | "awaitSettlement" | "explain" | "observe" | "resolveApproval" | "resolveUnknown" | "retry" | "scanObligations" | "verify" | "wake";
|
|
@@ -740,23 +734,29 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
740
734
|
readonly threadId?: string | undefined;
|
|
741
735
|
readonly submissionId?: string | undefined;
|
|
742
736
|
} | {
|
|
743
|
-
readonly _tag: "
|
|
744
|
-
readonly submissionId: string;
|
|
745
|
-
readonly refusal: "await-approval-decision" | "await-unknown-resolution" | "settled";
|
|
746
|
-
readonly decisionTag: string;
|
|
747
|
-
readonly message: string;
|
|
748
|
-
} | {
|
|
749
|
-
readonly _tag: "RunJournalError";
|
|
737
|
+
readonly _tag: "DigestError";
|
|
750
738
|
readonly message: string;
|
|
751
739
|
readonly cause?: Schema.Json | undefined;
|
|
740
|
+
} | {
|
|
741
|
+
readonly _tag: "DurableRuntimeFailpointError";
|
|
742
|
+
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" | "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";
|
|
752
743
|
} | {
|
|
753
744
|
readonly _tag: "OwnershipLost";
|
|
754
745
|
readonly submissionId: string;
|
|
755
746
|
readonly actualEpoch: number;
|
|
756
747
|
} | {
|
|
757
|
-
readonly _tag: "
|
|
748
|
+
readonly _tag: "RunJournalError";
|
|
749
|
+
readonly message: string;
|
|
750
|
+
readonly cause?: Schema.Json | undefined;
|
|
751
|
+
} | {
|
|
752
|
+
readonly _tag: "HostProtocolError";
|
|
753
|
+
readonly message: string;
|
|
754
|
+
} | {
|
|
755
|
+
readonly _tag: "RetryRefused";
|
|
758
756
|
readonly submissionId: string;
|
|
759
|
-
readonly
|
|
757
|
+
readonly refusal: "await-approval-decision" | "await-unknown-resolution" | "settled";
|
|
758
|
+
readonly decisionTag: string;
|
|
759
|
+
readonly message: string;
|
|
760
760
|
};
|
|
761
761
|
}, Schema.SchemaError, never>;
|
|
762
762
|
declare const decodeAdminResponse: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<AdminFailed | ExplainedRecovery | ObligationsScanned | RetryExecuted | VerifiedIntegrity, Schema.SchemaError, never>;
|
|
@@ -809,4 +809,4 @@ interface Class<EventServices = never> {
|
|
|
809
809
|
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>;
|
|
810
810
|
//#endregion
|
|
811
811
|
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 };
|
|
812
|
-
//# sourceMappingURL=ThreadObject-
|
|
812
|
+
//# sourceMappingURL=ThreadObject-8LfGzzz4.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-8LfGzzz4.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-8LfGzzz4.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.94","dependencies":{"@effect-agent/storage-cloudflare":"0.1.0-beta.94","@effect/platform-browser":"4.0.0-rc.115","@effect/sql-sqlite-do":"4.0.0-rc.115","effect-agent":"0.1.0-beta.94"},"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.94","@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.43.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.115","effect-cf":"^0.43.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}}}
|