@effect-agent/platform-cloudflare 0.1.0-beta.26 → 0.1.0-beta.28
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.
- package/dist/browser-quick-action.d.mts +68 -0
- package/dist/browser-quick-action.mjs +303 -0
- package/dist/browser-quick-action.mjs.map +1 -0
- package/dist/index.d.mts +127 -34
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -8
- package/src/browser-quick-action.ts +514 -0
- package/src/index.ts +1 -0
- package/src/layers.ts +6 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { BrowserQuickActionBrowserBinding, BrowserQuickActionCaptureOptions, BrowserQuickActionClient, BrowserQuickActionRpcError, BrowserQuickActionWorkersAi, BrowserQuickActionWorkersAiPolicy, BrowserQuickActionWorkersAiPolicyError, browserQuickActionCaptureLayer, browserQuickActionImplementation, browserQuickActionWorkersAiCaptureLayer } from "./browser-quick-action.mjs";
|
|
1
2
|
import { Context, Crypto, Effect, Layer, Option, Schema, Scope } from "effect";
|
|
2
3
|
import { AbortCommand, AbortIntent, AdmissionConflict, AgentBindingResolver, AppendConflict, ApprovalConflict, ApprovalDecisionCommand, ApprovalDecisionIntent, CanonicalRecordEnvelope, CanonicalSequence, ConversationNotMaterialized, ConversationStore, ConversationStoreError, DefinitionDigests, DigestError, DurableAgentRuntime, DurableBindingFailure, DurableRuntimeConfig, DurableRuntimeFailpointError, DurableRuntimeFailpointHandler, DurableSubmitAgent, DurableSubmitOptions, DurableWorkerFailure, FenceRejected, IntegrityReport, JoinedToHost, LedgerError, ObligationReport, ObligationThresholds, OperationAuthorizerService, OperationDenied, OwnershipLost, ProducerId, Receipt, RecoveryExplanation, RecoveryReport, ResolvedBinding, RetryCommand, RetryRefused, RunJournalError, Settlement, SettlementConflict, SubmissionLedger, ToolReconciler, UnknownResolutionCommand, UnknownResolutionConflict, UnknownResolutionIntent, WakeScheduler } from "@effect-agent/session";
|
|
3
4
|
import { ConversationPortTransport, DoStorageFailpointHandler, DoStorageInitializationError, PortRequest, PortResponse } from "@effect-agent/storage-cloudflare";
|
|
4
5
|
import { AgentInputError, ConversationId } from "@effect-agent/core";
|
|
5
|
-
import { RunContextPreparation } from "@effect-agent/engine";
|
|
6
|
+
import { RunContextPreparation, RunCostEstimator } from "@effect-agent/engine";
|
|
6
7
|
import { DurableObjectState as DurableObjectState$1, WorkerEnvironment } from "effect-cf";
|
|
7
8
|
import { CodeExecutor, SandboxImplementation } from "@effect-agent/sandbox";
|
|
8
9
|
import { DurableObject as DurableObject$1 } from "cloudflare:workers";
|
|
@@ -369,6 +370,8 @@ interface CloudflareDurableRuntimeOptions {
|
|
|
369
370
|
readonly leaseRenewalInterval?: number | undefined;
|
|
370
371
|
/** Milliseconds; default 500. */
|
|
371
372
|
readonly abortPollInterval?: number | undefined;
|
|
373
|
+
/** Deployment-owned pricing authority used by durable cost budgets and settlements. */
|
|
374
|
+
readonly estimateCostMicrousd?: RunCostEstimator | undefined;
|
|
372
375
|
/** Milliseconds; default 25. */
|
|
373
376
|
readonly observationPollInterval?: number | undefined;
|
|
374
377
|
/** Bytes; default just under the 2 MB platform value limit. */
|
|
@@ -644,6 +647,40 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
644
647
|
readonly receiptId: string;
|
|
645
648
|
readonly outcome: "aborted" | "completed" | "failed";
|
|
646
649
|
readonly runDisposition?: Schema.Json | undefined;
|
|
650
|
+
readonly usageSummary?: {
|
|
651
|
+
readonly modelCalls: number;
|
|
652
|
+
readonly inputTokens: {
|
|
653
|
+
readonly total: number;
|
|
654
|
+
readonly uncached: number;
|
|
655
|
+
readonly cacheRead: number;
|
|
656
|
+
readonly cacheWrite: number;
|
|
657
|
+
};
|
|
658
|
+
readonly outputTokens: {
|
|
659
|
+
readonly total: number;
|
|
660
|
+
readonly text: number;
|
|
661
|
+
readonly reasoning: number;
|
|
662
|
+
};
|
|
663
|
+
readonly costMicrousd: number;
|
|
664
|
+
readonly byModel: readonly {
|
|
665
|
+
readonly provider: string;
|
|
666
|
+
readonly model: string;
|
|
667
|
+
readonly serviceTier?: string | undefined;
|
|
668
|
+
readonly pricingVersion?: string | undefined;
|
|
669
|
+
readonly modelCalls: number;
|
|
670
|
+
readonly inputTokens: {
|
|
671
|
+
readonly total: number;
|
|
672
|
+
readonly uncached: number;
|
|
673
|
+
readonly cacheRead: number;
|
|
674
|
+
readonly cacheWrite: number;
|
|
675
|
+
};
|
|
676
|
+
readonly outputTokens: {
|
|
677
|
+
readonly total: number;
|
|
678
|
+
readonly text: number;
|
|
679
|
+
readonly reasoning: number;
|
|
680
|
+
};
|
|
681
|
+
readonly costMicrousd: number;
|
|
682
|
+
}[];
|
|
683
|
+
} | undefined;
|
|
647
684
|
readonly failure?: {
|
|
648
685
|
readonly errorTag: string;
|
|
649
686
|
readonly message: string;
|
|
@@ -664,6 +701,14 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
664
701
|
readonly createdAt: string;
|
|
665
702
|
readonly deploymentId: string;
|
|
666
703
|
readonly payload: {
|
|
704
|
+
readonly _tag: "SubagentStarted";
|
|
705
|
+
readonly runId: string;
|
|
706
|
+
readonly toolCallId: string;
|
|
707
|
+
readonly childConversationId: string;
|
|
708
|
+
readonly childSubmissionId: string;
|
|
709
|
+
readonly childReceiptId: string;
|
|
710
|
+
readonly childRunId: string;
|
|
711
|
+
} | {
|
|
667
712
|
readonly _tag: "ConversationCreated";
|
|
668
713
|
readonly agentId: string;
|
|
669
714
|
readonly definitions: {
|
|
@@ -688,6 +733,25 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
688
733
|
readonly turn: number;
|
|
689
734
|
readonly messages: Schema.Json;
|
|
690
735
|
readonly messagesDigest: string;
|
|
736
|
+
readonly runScopedPrefixLength?: number | undefined;
|
|
737
|
+
readonly modelUsage?: readonly {
|
|
738
|
+
readonly provider: string;
|
|
739
|
+
readonly model: string;
|
|
740
|
+
readonly serviceTier?: string | undefined;
|
|
741
|
+
readonly pricingVersion?: string | undefined;
|
|
742
|
+
readonly inputTokens: {
|
|
743
|
+
readonly total: number;
|
|
744
|
+
readonly uncached: number;
|
|
745
|
+
readonly cacheRead: number;
|
|
746
|
+
readonly cacheWrite: number;
|
|
747
|
+
};
|
|
748
|
+
readonly outputTokens: {
|
|
749
|
+
readonly total: number;
|
|
750
|
+
readonly text: number;
|
|
751
|
+
readonly reasoning: number;
|
|
752
|
+
};
|
|
753
|
+
readonly costMicrousd: number;
|
|
754
|
+
}[] | undefined;
|
|
691
755
|
readonly inputTokens?: number | undefined;
|
|
692
756
|
readonly outputTokens?: number | undefined;
|
|
693
757
|
readonly costMicrousd?: number | undefined;
|
|
@@ -765,6 +829,9 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
765
829
|
readonly _tag: "RunCompleted";
|
|
766
830
|
readonly runId: string;
|
|
767
831
|
readonly output: Schema.Json;
|
|
832
|
+
readonly runDisposition?: Schema.Json | undefined;
|
|
833
|
+
readonly finishReason?: "budget-exhausted" | undefined;
|
|
834
|
+
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
768
835
|
} | {
|
|
769
836
|
readonly _tag: "AbortRequested";
|
|
770
837
|
readonly submissionId: string;
|
|
@@ -782,6 +849,40 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
782
849
|
readonly finishReason?: "budget-exhausted" | undefined;
|
|
783
850
|
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
784
851
|
readonly policyLimit?: "cost" | "duration" | "repeated-failures" | "tokens" | "tool-calls" | "turns" | "usage" | undefined;
|
|
852
|
+
readonly usageSummary?: {
|
|
853
|
+
readonly modelCalls: number;
|
|
854
|
+
readonly inputTokens: {
|
|
855
|
+
readonly total: number;
|
|
856
|
+
readonly uncached: number;
|
|
857
|
+
readonly cacheRead: number;
|
|
858
|
+
readonly cacheWrite: number;
|
|
859
|
+
};
|
|
860
|
+
readonly outputTokens: {
|
|
861
|
+
readonly total: number;
|
|
862
|
+
readonly text: number;
|
|
863
|
+
readonly reasoning: number;
|
|
864
|
+
};
|
|
865
|
+
readonly costMicrousd: number;
|
|
866
|
+
readonly byModel: readonly {
|
|
867
|
+
readonly provider: string;
|
|
868
|
+
readonly model: string;
|
|
869
|
+
readonly serviceTier?: string | undefined;
|
|
870
|
+
readonly pricingVersion?: string | undefined;
|
|
871
|
+
readonly modelCalls: number;
|
|
872
|
+
readonly inputTokens: {
|
|
873
|
+
readonly total: number;
|
|
874
|
+
readonly uncached: number;
|
|
875
|
+
readonly cacheRead: number;
|
|
876
|
+
readonly cacheWrite: number;
|
|
877
|
+
};
|
|
878
|
+
readonly outputTokens: {
|
|
879
|
+
readonly total: number;
|
|
880
|
+
readonly text: number;
|
|
881
|
+
readonly reasoning: number;
|
|
882
|
+
};
|
|
883
|
+
readonly costMicrousd: number;
|
|
884
|
+
}[];
|
|
885
|
+
} | undefined;
|
|
785
886
|
} | {
|
|
786
887
|
readonly _tag: "SubagentRequested";
|
|
787
888
|
readonly runId: string;
|
|
@@ -803,14 +904,6 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
803
904
|
readonly childConversationId: string;
|
|
804
905
|
readonly childPrincipal: string;
|
|
805
906
|
readonly childIdempotencyKey: string;
|
|
806
|
-
} | {
|
|
807
|
-
readonly _tag: "SubagentStarted";
|
|
808
|
-
readonly runId: string;
|
|
809
|
-
readonly toolCallId: string;
|
|
810
|
-
readonly childConversationId: string;
|
|
811
|
-
readonly childSubmissionId: string;
|
|
812
|
-
readonly childReceiptId: string;
|
|
813
|
-
readonly childRunId: string;
|
|
814
907
|
} | {
|
|
815
908
|
readonly _tag: "SubagentJoined";
|
|
816
909
|
readonly runId: string;
|
|
@@ -896,8 +989,11 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
896
989
|
} | {
|
|
897
990
|
readonly _tag: "HostFailed";
|
|
898
991
|
readonly failure: {
|
|
899
|
-
readonly _tag: "
|
|
900
|
-
readonly
|
|
992
|
+
readonly _tag: "OperationDenied";
|
|
993
|
+
readonly operation: "explain" | "observe" | "resolveApproval" | "resolveUnknown" | "retry" | "scanObligations" | "verify" | "wake";
|
|
994
|
+
readonly reason: string;
|
|
995
|
+
readonly conversationId?: string | undefined;
|
|
996
|
+
readonly submissionId?: string | undefined;
|
|
901
997
|
} | {
|
|
902
998
|
readonly _tag: "AgentInputError";
|
|
903
999
|
readonly message: string;
|
|
@@ -912,23 +1008,6 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
912
1008
|
readonly idempotencyKey: string;
|
|
913
1009
|
readonly existingInputDigest: string;
|
|
914
1010
|
readonly attemptedInputDigest: string;
|
|
915
|
-
} | {
|
|
916
|
-
readonly _tag: "SettlementConflict";
|
|
917
|
-
readonly submissionId: string;
|
|
918
|
-
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
919
|
-
} | {
|
|
920
|
-
readonly _tag: "ApprovalConflict";
|
|
921
|
-
readonly submissionId: string;
|
|
922
|
-
readonly toolCallId: string;
|
|
923
|
-
readonly existingDecision: "approved" | "denied";
|
|
924
|
-
} | {
|
|
925
|
-
readonly _tag: "UnknownResolutionConflict";
|
|
926
|
-
readonly submissionId: string;
|
|
927
|
-
readonly toolCallId: string;
|
|
928
|
-
} | {
|
|
929
|
-
readonly _tag: "JoinedToHost";
|
|
930
|
-
readonly submissionId: string;
|
|
931
|
-
readonly hostSubmissionId: string;
|
|
932
1011
|
} | {
|
|
933
1012
|
readonly _tag: "LedgerError";
|
|
934
1013
|
readonly operation: string;
|
|
@@ -968,11 +1047,25 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
968
1047
|
readonly message: string;
|
|
969
1048
|
readonly cause?: Schema.Json | undefined;
|
|
970
1049
|
} | {
|
|
971
|
-
readonly _tag: "
|
|
972
|
-
readonly
|
|
973
|
-
|
|
974
|
-
readonly
|
|
975
|
-
readonly submissionId
|
|
1050
|
+
readonly _tag: "HostProtocolError";
|
|
1051
|
+
readonly message: string;
|
|
1052
|
+
} | {
|
|
1053
|
+
readonly _tag: "SettlementConflict";
|
|
1054
|
+
readonly submissionId: string;
|
|
1055
|
+
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
1056
|
+
} | {
|
|
1057
|
+
readonly _tag: "JoinedToHost";
|
|
1058
|
+
readonly submissionId: string;
|
|
1059
|
+
readonly hostSubmissionId: string;
|
|
1060
|
+
} | {
|
|
1061
|
+
readonly _tag: "ApprovalConflict";
|
|
1062
|
+
readonly submissionId: string;
|
|
1063
|
+
readonly toolCallId: string;
|
|
1064
|
+
readonly existingDecision: "approved" | "denied";
|
|
1065
|
+
} | {
|
|
1066
|
+
readonly _tag: "UnknownResolutionConflict";
|
|
1067
|
+
readonly submissionId: string;
|
|
1068
|
+
readonly toolCallId: string;
|
|
976
1069
|
};
|
|
977
1070
|
}, Schema.SchemaError, never>;
|
|
978
1071
|
declare const decodeHostResponse: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<AbortRecorded | ApprovalRecorded | HostFailed | ObservedPage | ProgressCancelled | ProgressObserved | SettlementReached | SubmitSucceeded | UnknownResolutionRecorded, Schema.SchemaError, never>;
|
|
@@ -1622,5 +1715,5 @@ interface DynamicWorkerCodeExecutorOptions {
|
|
|
1622
1715
|
/** Layer building the Dynamic Worker `CodeExecutor` from resolved bindings. */
|
|
1623
1716
|
declare const dynamicWorkerCodeExecutorLayer: (options: DynamicWorkerCodeExecutorOptions) => Layer.Layer<CodeExecutor>;
|
|
1624
1717
|
//#endregion
|
|
1625
|
-
export { AbortRecorded, AdminExplainRequest, AdminFailed, AdminFailure, AdminResponse, AdminVerifyRequest, AdmissionLimitExceeded, ApprovalRecorded, AwaitProgressRequest, CLOUDFLARE_DATABASE_CAP_BYTES, CLOUDFLARE_RUNTIME_DEFAULTS, CancelProgressRequest, ClientAbortFailure, ClientApprovalFailure, ClientAwaitFailure, ClientObserveFailure, ClientProgressFailure, ClientSubmitFailure, ClientUnknownFailure, CloudflareAdmissionLimitsValue, CloudflareBindingError, CloudflareBindingSource, CloudflareBindingSourceContext, CloudflareConversationClient, CloudflareDurableRuntime, CloudflareDurableRuntimeConfig, CloudflareDurableRuntimeConfigValue, CloudflareDurableRuntimeInitializationError, CloudflareDurableRuntimeOptions, CloudflareDurableRuntimeServices, CloudflarePlatformConfigError, CloudflareRunContextLayer, CloudflareRunContextSource, CloudflareRuntimeSourceContext, ConversationClientError, ConversationMaintenance, ConversationMaintenanceFailpoint, ConversationMaintenanceFailpointHandler, ConversationMaintenanceFailpointLocation, ConversationObjectClass, ConversationObjectIdentity, ConversationObjectInstance, ConversationObjectNamespace, ConversationObjectOptions, ConversationObjectPorts, ConversationObjectRpc, DEFAULT_MAX_DATABASE_BYTES, DurableAlarmError, DurableAlarmService, DurableObjectContext, DynamicWorkerCodeExecutorOptions, ExplainedRecovery, HostFailed, HostFailure, HostProtocolError, HostResponse, MaintenancePassFailure, MaintenancePassReport, ObligationsScanned, ObservePageRequest, ObservedPage, ProgressCancelled, ProgressObserved, ProgressWaitRegistry, RetryExecuted, SettlementReached, SubmitRequest, SubmitSucceeded, UnknownResolutionRecorded, VerifiedIntegrity, boundHostDiagnostic, cloudflareWakeSchedulerLayer, conversationNamespaceFromEnv, conversationNamespaceLayer, conversationPortTransportLayer, decodeAbortCommand, decodeAdminExplainRequest, decodeAdminResponse, decodeAdminVerifyRequest, decodeApprovalDecisionCommand, decodeAwaitProgressRequest, decodeCancelProgressRequest, decodeHostResponse, decodeObligationThresholds, decodeObservePageRequest, decodeReceipt, decodeRetryCommand, decodeSubmitRequest, decodeUnknownResolutionCommand, disposeRpcHandle, dynamicWorkerCodeExecutorLayer, dynamicWorkerImplementation, encodeAbortCommand, encodeAdminResponse, encodeApprovalDecisionCommand, encodeAwaitProgressRequest, encodeCancelProgressRequest, encodeHostResponse, encodeObservePageRequest, encodeReceipt, encodeSubmitRequest, encodeUnknownResolutionCommand, makeConversationObjectClass };
|
|
1718
|
+
export { AbortRecorded, AdminExplainRequest, AdminFailed, AdminFailure, AdminResponse, AdminVerifyRequest, AdmissionLimitExceeded, ApprovalRecorded, AwaitProgressRequest, BrowserQuickActionBrowserBinding, BrowserQuickActionCaptureOptions, BrowserQuickActionClient, BrowserQuickActionRpcError, BrowserQuickActionWorkersAi, BrowserQuickActionWorkersAiPolicy, BrowserQuickActionWorkersAiPolicyError, CLOUDFLARE_DATABASE_CAP_BYTES, CLOUDFLARE_RUNTIME_DEFAULTS, CancelProgressRequest, ClientAbortFailure, ClientApprovalFailure, ClientAwaitFailure, ClientObserveFailure, ClientProgressFailure, ClientSubmitFailure, ClientUnknownFailure, CloudflareAdmissionLimitsValue, CloudflareBindingError, CloudflareBindingSource, CloudflareBindingSourceContext, CloudflareConversationClient, CloudflareDurableRuntime, CloudflareDurableRuntimeConfig, CloudflareDurableRuntimeConfigValue, CloudflareDurableRuntimeInitializationError, CloudflareDurableRuntimeOptions, CloudflareDurableRuntimeServices, CloudflarePlatformConfigError, CloudflareRunContextLayer, CloudflareRunContextSource, CloudflareRuntimeSourceContext, ConversationClientError, ConversationMaintenance, ConversationMaintenanceFailpoint, ConversationMaintenanceFailpointHandler, ConversationMaintenanceFailpointLocation, ConversationObjectClass, ConversationObjectIdentity, ConversationObjectInstance, ConversationObjectNamespace, ConversationObjectOptions, ConversationObjectPorts, ConversationObjectRpc, DEFAULT_MAX_DATABASE_BYTES, DurableAlarmError, DurableAlarmService, DurableObjectContext, DynamicWorkerCodeExecutorOptions, ExplainedRecovery, HostFailed, HostFailure, HostProtocolError, HostResponse, MaintenancePassFailure, MaintenancePassReport, ObligationsScanned, ObservePageRequest, ObservedPage, ProgressCancelled, ProgressObserved, ProgressWaitRegistry, RetryExecuted, SettlementReached, SubmitRequest, SubmitSucceeded, UnknownResolutionRecorded, VerifiedIntegrity, boundHostDiagnostic, browserQuickActionCaptureLayer, browserQuickActionImplementation, browserQuickActionWorkersAiCaptureLayer, cloudflareWakeSchedulerLayer, conversationNamespaceFromEnv, conversationNamespaceLayer, conversationPortTransportLayer, decodeAbortCommand, decodeAdminExplainRequest, decodeAdminResponse, decodeAdminVerifyRequest, decodeApprovalDecisionCommand, decodeAwaitProgressRequest, decodeCancelProgressRequest, decodeHostResponse, decodeObligationThresholds, decodeObservePageRequest, decodeReceipt, decodeRetryCommand, decodeSubmitRequest, decodeUnknownResolutionCommand, disposeRpcHandle, dynamicWorkerCodeExecutorLayer, dynamicWorkerImplementation, encodeAbortCommand, encodeAdminResponse, encodeApprovalDecisionCommand, encodeAwaitProgressRequest, encodeCancelProgressRequest, encodeHostResponse, encodeObservePageRequest, encodeReceipt, encodeSubmitRequest, encodeUnknownResolutionCommand, makeConversationObjectClass };
|
|
1626
1719
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BrowserQuickActionBrowserBinding, BrowserQuickActionRpcError, BrowserQuickActionWorkersAi, BrowserQuickActionWorkersAiPolicyError, browserQuickActionCaptureLayer, browserQuickActionImplementation, browserQuickActionWorkersAiCaptureLayer } from "./browser-quick-action.mjs";
|
|
1
2
|
import { Clock, Context, Crypto, Deferred, Duration, Effect, Exit, Fiber, Layer, Option, Predicate, PubSub, Queue, Random, Ref, Schema, Semaphore, Stream } from "effect";
|
|
2
3
|
import { AbortCommand, AbortIntent, AdmissionConflict, AgentBindingResolver, AppendConflict, ApprovalConflict, ApprovalDecisionCommand, ApprovalDecisionIntent, CanonicalRecordEnvelope, CanonicalSequence, ConversationNotMaterialized, ConversationRead, ConversationStore, ConversationStoreError, DEFAULT_OWNERSHIP_LEASE_DURATION, DefinitionDigests, DeploymentId, DigestError, DurableAgentRuntime, DurableRuntimeConfig, DurableRuntimeFailpoint, DurableRuntimeFailpointError, FenceRejected, IdempotencyKey, IntegrityReport, JoinedToHost, LedgerError, ObligationReport, ObligationThresholds, OperationAuthorizationRequest, OperationAuthorizer, OperationDenied, OwnershipLost, PersistedJson, Principal, ProducerId, Receipt, RecoveryExplanation, RecoveryReport, RetryCommand, RetryRefused, RunJournalError, Settlement, SettlementConflict, SubmissionLedger, SubmissionLookupByKey, ToolReconciler, UnknownResolutionCommand, UnknownResolutionConflict, UnknownResolutionIntent, WakeScheduler, makeWakeSubscriptionHub, operationAuthorizerLayer } from "@effect-agent/session";
|
|
3
4
|
import { ConversationPortTransport, DEFAULT_MAX_STORED_VALUE_BYTES, conversationStoreLayer, decodePortRequest, encodePortResponse, executePortRequest, portTransportFailure, routedConversationStoreLayer, routedSubmissionLedgerLayer, storageConfigLayer, storageFailpointLayer, submissionLedgerLayer } from "@effect-agent/storage-cloudflare";
|
|
@@ -754,7 +755,8 @@ var CloudflareDurableRuntime = class {
|
|
|
754
755
|
producerId,
|
|
755
756
|
settlementPollInterval: Duration.millis(config.settlementPollInterval),
|
|
756
757
|
leaseRenewalInterval: Duration.millis(config.leaseRenewalInterval),
|
|
757
|
-
abortPollInterval: Duration.millis(config.abortPollInterval)
|
|
758
|
+
abortPollInterval: Duration.millis(config.abortPollInterval),
|
|
759
|
+
...options.estimateCostMicrousd === void 0 ? {} : { estimateCostMicrousd: options.estimateCostMicrousd }
|
|
758
760
|
}));
|
|
759
761
|
const runtimeFailpointLayer = options.runtimeFailpoint === void 0 ? DurableRuntimeFailpoint.layer : Layer.succeed(DurableRuntimeFailpoint)({ hit: options.runtimeFailpoint(ctx) });
|
|
760
762
|
const maintenanceFailpointLayer = options.maintenanceFailpoint === void 0 ? ConversationMaintenanceFailpoint.layer : Layer.succeed(ConversationMaintenanceFailpoint)({ hit: options.maintenanceFailpoint(ctx) });
|
|
@@ -1976,6 +1978,6 @@ const dynamicWorkerCodeExecutorLayer = (options) => Layer.effect(CodeExecutor, E
|
|
|
1976
1978
|
return CodeExecutor.of({ execute: makeExecute(options, clock) });
|
|
1977
1979
|
}));
|
|
1978
1980
|
//#endregion
|
|
1979
|
-
export { AbortRecorded, AdminExplainRequest, AdminFailed, AdminFailure, AdminResponse, AdminVerifyRequest, AdmissionLimitExceeded, ApprovalRecorded, AwaitProgressRequest, CLOUDFLARE_DATABASE_CAP_BYTES, CLOUDFLARE_RUNTIME_DEFAULTS, CancelProgressRequest, CloudflareAdmissionLimitsValue, CloudflareBindingError, CloudflareConversationClient, CloudflareDurableRuntime, CloudflareDurableRuntimeConfig, CloudflareDurableRuntimeConfigValue, CloudflarePlatformConfigError, ConversationClientError, ConversationMaintenance, ConversationMaintenanceFailpoint, ConversationObjectIdentity, ConversationObjectNamespace, ConversationObjectPorts, DEFAULT_MAX_DATABASE_BYTES, DurableAlarmError, DurableAlarmService, DurableObjectContext, ExplainedRecovery, HostFailed, HostFailure, HostProtocolError, HostResponse, MaintenancePassReport, ObligationsScanned, ObservePageRequest, ObservedPage, ProgressCancelled, ProgressObserved, ProgressWaitRegistry, RetryExecuted, SettlementReached, SubmitRequest, SubmitSucceeded, UnknownResolutionRecorded, VerifiedIntegrity, boundHostDiagnostic, cloudflareWakeSchedulerLayer, conversationNamespaceFromEnv, conversationNamespaceLayer, conversationPortTransportLayer, decodeAbortCommand, decodeAdminExplainRequest, decodeAdminResponse, decodeAdminVerifyRequest, decodeApprovalDecisionCommand, decodeAwaitProgressRequest, decodeCancelProgressRequest, decodeHostResponse, decodeObligationThresholds, decodeObservePageRequest, decodeReceipt, decodeRetryCommand, decodeSubmitRequest, decodeUnknownResolutionCommand, disposeRpcHandle, dynamicWorkerCodeExecutorLayer, dynamicWorkerImplementation, encodeAbortCommand, encodeAdminResponse, encodeApprovalDecisionCommand, encodeAwaitProgressRequest, encodeCancelProgressRequest, encodeHostResponse, encodeObservePageRequest, encodeReceipt, encodeSubmitRequest, encodeUnknownResolutionCommand, makeConversationObjectClass };
|
|
1981
|
+
export { AbortRecorded, AdminExplainRequest, AdminFailed, AdminFailure, AdminResponse, AdminVerifyRequest, AdmissionLimitExceeded, ApprovalRecorded, AwaitProgressRequest, BrowserQuickActionBrowserBinding, BrowserQuickActionRpcError, BrowserQuickActionWorkersAi, BrowserQuickActionWorkersAiPolicyError, CLOUDFLARE_DATABASE_CAP_BYTES, CLOUDFLARE_RUNTIME_DEFAULTS, CancelProgressRequest, CloudflareAdmissionLimitsValue, CloudflareBindingError, CloudflareConversationClient, CloudflareDurableRuntime, CloudflareDurableRuntimeConfig, CloudflareDurableRuntimeConfigValue, CloudflarePlatformConfigError, ConversationClientError, ConversationMaintenance, ConversationMaintenanceFailpoint, ConversationObjectIdentity, ConversationObjectNamespace, ConversationObjectPorts, DEFAULT_MAX_DATABASE_BYTES, DurableAlarmError, DurableAlarmService, DurableObjectContext, ExplainedRecovery, HostFailed, HostFailure, HostProtocolError, HostResponse, MaintenancePassReport, ObligationsScanned, ObservePageRequest, ObservedPage, ProgressCancelled, ProgressObserved, ProgressWaitRegistry, RetryExecuted, SettlementReached, SubmitRequest, SubmitSucceeded, UnknownResolutionRecorded, VerifiedIntegrity, boundHostDiagnostic, browserQuickActionCaptureLayer, browserQuickActionImplementation, browserQuickActionWorkersAiCaptureLayer, cloudflareWakeSchedulerLayer, conversationNamespaceFromEnv, conversationNamespaceLayer, conversationPortTransportLayer, decodeAbortCommand, decodeAdminExplainRequest, decodeAdminResponse, decodeAdminVerifyRequest, decodeApprovalDecisionCommand, decodeAwaitProgressRequest, decodeCancelProgressRequest, decodeHostResponse, decodeObligationThresholds, decodeObservePageRequest, decodeReceipt, decodeRetryCommand, decodeSubmitRequest, decodeUnknownResolutionCommand, disposeRpcHandle, dynamicWorkerCodeExecutorLayer, dynamicWorkerImplementation, encodeAbortCommand, encodeAdminResponse, encodeApprovalDecisionCommand, encodeAwaitProgressRequest, encodeCancelProgressRequest, encodeHostResponse, encodeObservePageRequest, encodeReceipt, encodeSubmitRequest, encodeUnknownResolutionCommand, makeConversationObjectClass };
|
|
1980
1982
|
|
|
1981
1983
|
//# sourceMappingURL=index.mjs.map
|