@effect-agent/platform-cloudflare 0.1.0-beta.60 → 0.1.0-beta.61
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.
|
@@ -388,6 +388,7 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
388
388
|
readonly byModel: readonly {
|
|
389
389
|
readonly provider: string;
|
|
390
390
|
readonly model: string;
|
|
391
|
+
readonly responseModel?: string | undefined;
|
|
391
392
|
readonly serviceTier?: string | undefined;
|
|
392
393
|
readonly pricingVersion?: string | undefined;
|
|
393
394
|
readonly modelCalls: number;
|
|
@@ -404,6 +405,9 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
404
405
|
};
|
|
405
406
|
readonly costMicrousd: number;
|
|
406
407
|
}[];
|
|
408
|
+
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
409
|
+
readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
410
|
+
readonly unobservedModelCalls?: number | undefined;
|
|
407
411
|
} | undefined;
|
|
408
412
|
readonly failure?: {
|
|
409
413
|
readonly errorTag: string;
|
|
@@ -437,6 +441,7 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
437
441
|
readonly byModel: readonly {
|
|
438
442
|
readonly provider: string;
|
|
439
443
|
readonly model: string;
|
|
444
|
+
readonly responseModel?: string | undefined;
|
|
440
445
|
readonly serviceTier?: string | undefined;
|
|
441
446
|
readonly pricingVersion?: string | undefined;
|
|
442
447
|
readonly modelCalls: number;
|
|
@@ -453,6 +458,9 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
453
458
|
};
|
|
454
459
|
readonly costMicrousd: number;
|
|
455
460
|
}[];
|
|
461
|
+
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
462
|
+
readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
463
|
+
readonly unobservedModelCalls?: number | undefined;
|
|
456
464
|
} | undefined;
|
|
457
465
|
readonly failure?: {
|
|
458
466
|
readonly errorTag: string;
|
|
@@ -540,6 +548,13 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
540
548
|
readonly model: string;
|
|
541
549
|
readonly serviceTier?: string | undefined;
|
|
542
550
|
readonly pricingVersion?: string | undefined;
|
|
551
|
+
readonly response?: {
|
|
552
|
+
readonly id?: string | undefined;
|
|
553
|
+
readonly model?: string | undefined;
|
|
554
|
+
} | undefined;
|
|
555
|
+
readonly purpose?: "summary" | "turn" | undefined;
|
|
556
|
+
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
557
|
+
readonly pricingStatus?: "estimated" | "unknown" | undefined;
|
|
543
558
|
readonly inputTokens: {
|
|
544
559
|
readonly total: number;
|
|
545
560
|
readonly uncached: number;
|
|
@@ -553,6 +568,7 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
553
568
|
};
|
|
554
569
|
readonly costMicrousd: number;
|
|
555
570
|
}[] | undefined;
|
|
571
|
+
readonly unobservedModelCalls?: number | undefined;
|
|
556
572
|
readonly inputTokens?: number | undefined;
|
|
557
573
|
readonly outputTokens?: number | undefined;
|
|
558
574
|
readonly costMicrousd?: number | undefined;
|
|
@@ -665,6 +681,7 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
665
681
|
readonly byModel: readonly {
|
|
666
682
|
readonly provider: string;
|
|
667
683
|
readonly model: string;
|
|
684
|
+
readonly responseModel?: string | undefined;
|
|
668
685
|
readonly serviceTier?: string | undefined;
|
|
669
686
|
readonly pricingVersion?: string | undefined;
|
|
670
687
|
readonly modelCalls: number;
|
|
@@ -681,7 +698,35 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
681
698
|
};
|
|
682
699
|
readonly costMicrousd: number;
|
|
683
700
|
}[];
|
|
701
|
+
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
702
|
+
readonly pricingStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
703
|
+
readonly unobservedModelCalls?: number | undefined;
|
|
684
704
|
} | undefined;
|
|
705
|
+
readonly uncommittedModelUsage?: readonly {
|
|
706
|
+
readonly provider: string;
|
|
707
|
+
readonly model: string;
|
|
708
|
+
readonly serviceTier?: string | undefined;
|
|
709
|
+
readonly pricingVersion?: string | undefined;
|
|
710
|
+
readonly response?: {
|
|
711
|
+
readonly id?: string | undefined;
|
|
712
|
+
readonly model?: string | undefined;
|
|
713
|
+
} | undefined;
|
|
714
|
+
readonly purpose?: "summary" | "turn" | undefined;
|
|
715
|
+
readonly usageStatus?: "complete" | "partial" | "unknown" | undefined;
|
|
716
|
+
readonly pricingStatus?: "estimated" | "unknown" | undefined;
|
|
717
|
+
readonly inputTokens: {
|
|
718
|
+
readonly total: number;
|
|
719
|
+
readonly uncached: number;
|
|
720
|
+
readonly cacheRead: number;
|
|
721
|
+
readonly cacheWrite: number;
|
|
722
|
+
};
|
|
723
|
+
readonly outputTokens: {
|
|
724
|
+
readonly total: number;
|
|
725
|
+
readonly text: number;
|
|
726
|
+
readonly reasoning: number;
|
|
727
|
+
};
|
|
728
|
+
readonly costMicrousd: number;
|
|
729
|
+
}[] | undefined;
|
|
685
730
|
} | {
|
|
686
731
|
readonly _tag: "SubagentRequested";
|
|
687
732
|
readonly runId: string;
|
|
@@ -318,13 +318,13 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
318
318
|
readonly author: string;
|
|
319
319
|
readonly reason: string;
|
|
320
320
|
readonly resolution: {
|
|
321
|
+
readonly _tag: "SafeToRetry";
|
|
322
|
+
} | {
|
|
321
323
|
readonly _tag: "CompletedWithResult";
|
|
322
324
|
readonly result: Schema.Json;
|
|
323
325
|
readonly isFailure: boolean;
|
|
324
326
|
} | {
|
|
325
327
|
readonly _tag: "NeverHappened";
|
|
326
|
-
} | {
|
|
327
|
-
readonly _tag: "SafeToRetry";
|
|
328
328
|
} | {
|
|
329
329
|
readonly _tag: "AbortSubmission";
|
|
330
330
|
};
|
|
@@ -673,38 +673,14 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
673
673
|
readonly reason: "occupied" | "refused" | "unavailable";
|
|
674
674
|
readonly code: string;
|
|
675
675
|
} | {
|
|
676
|
-
readonly _tag: "
|
|
677
|
-
readonly operation: "abort" | "awaitSettlement" | "explain" | "observe" | "resolveApproval" | "resolveUnknown" | "retry" | "scanObligations" | "verify" | "wake";
|
|
678
|
-
readonly reason: string;
|
|
679
|
-
readonly threadId?: string | undefined;
|
|
680
|
-
readonly submissionId?: string | undefined;
|
|
681
|
-
} | {
|
|
682
|
-
readonly _tag: "RetryRefused";
|
|
676
|
+
readonly _tag: "SettlementConflict";
|
|
683
677
|
readonly submissionId: string;
|
|
684
|
-
readonly
|
|
685
|
-
readonly decisionTag: string;
|
|
686
|
-
readonly message: string;
|
|
678
|
+
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
687
679
|
} | {
|
|
688
680
|
readonly _tag: "LedgerError";
|
|
689
681
|
readonly operation: string;
|
|
690
682
|
readonly message: string;
|
|
691
683
|
readonly cause?: Schema.Json | undefined;
|
|
692
|
-
} | {
|
|
693
|
-
readonly _tag: "RunJournalError";
|
|
694
|
-
readonly message: string;
|
|
695
|
-
readonly cause?: Schema.Json | undefined;
|
|
696
|
-
} | {
|
|
697
|
-
readonly _tag: "DigestError";
|
|
698
|
-
readonly message: string;
|
|
699
|
-
readonly cause?: Schema.Json | undefined;
|
|
700
|
-
} | {
|
|
701
|
-
readonly _tag: "OwnershipLost";
|
|
702
|
-
readonly submissionId: string;
|
|
703
|
-
readonly actualEpoch: number;
|
|
704
|
-
} | {
|
|
705
|
-
readonly _tag: "SettlementConflict";
|
|
706
|
-
readonly submissionId: string;
|
|
707
|
-
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
708
684
|
} | {
|
|
709
685
|
readonly _tag: "ThreadStoreError";
|
|
710
686
|
readonly operation: string;
|
|
@@ -725,6 +701,30 @@ declare const encodeAdminResponse: (input: AdminFailed | ExplainedRecovery | Obl
|
|
|
725
701
|
readonly threadId: string;
|
|
726
702
|
readonly actualEpoch: number;
|
|
727
703
|
readonly attemptedEpoch: number;
|
|
704
|
+
} | {
|
|
705
|
+
readonly _tag: "OperationDenied";
|
|
706
|
+
readonly operation: "abort" | "awaitSettlement" | "explain" | "observe" | "resolveApproval" | "resolveUnknown" | "retry" | "scanObligations" | "verify" | "wake";
|
|
707
|
+
readonly reason: string;
|
|
708
|
+
readonly threadId?: string | undefined;
|
|
709
|
+
readonly submissionId?: string | undefined;
|
|
710
|
+
} | {
|
|
711
|
+
readonly _tag: "RetryRefused";
|
|
712
|
+
readonly submissionId: string;
|
|
713
|
+
readonly refusal: "await-approval-decision" | "await-unknown-resolution" | "settled";
|
|
714
|
+
readonly decisionTag: string;
|
|
715
|
+
readonly message: string;
|
|
716
|
+
} | {
|
|
717
|
+
readonly _tag: "RunJournalError";
|
|
718
|
+
readonly message: string;
|
|
719
|
+
readonly cause?: Schema.Json | undefined;
|
|
720
|
+
} | {
|
|
721
|
+
readonly _tag: "DigestError";
|
|
722
|
+
readonly message: string;
|
|
723
|
+
readonly cause?: Schema.Json | undefined;
|
|
724
|
+
} | {
|
|
725
|
+
readonly _tag: "OwnershipLost";
|
|
726
|
+
readonly submissionId: string;
|
|
727
|
+
readonly actualEpoch: number;
|
|
728
728
|
} | {
|
|
729
729
|
readonly _tag: "DurableRuntimeFailpointError";
|
|
730
730
|
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" | "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";
|
|
@@ -769,4 +769,4 @@ interface Class<EventServices = never> {
|
|
|
769
769
|
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>;
|
|
770
770
|
//#endregion
|
|
771
771
|
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 };
|
|
772
|
-
//# sourceMappingURL=ThreadObject-
|
|
772
|
+
//# sourceMappingURL=ThreadObject-BRhbfy6r.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-BRhbfy6r.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-BRhbfy6r.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.61","dependencies":{"@effect-agent/core":"0.1.0-beta.61","@effect-agent/engine":"0.1.0-beta.61","@effect-agent/sandbox":"0.1.0-beta.61","@effect-agent/storage-cloudflare":"0.1.0-beta.61","@effect-agent/thread":"0.1.0-beta.61","@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.61","@effect-agent/testing":"0.1.0-beta.61","@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}}}
|