@yielded/agent-platform-cloudflare 0.1.0-beta.166 → 0.1.0-beta.167
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.
|
@@ -522,13 +522,13 @@ export declare const encodeUnknownResolutionCommand: (input: UnknownResolutionCo
|
|
|
522
522
|
readonly author: string;
|
|
523
523
|
readonly reason: string;
|
|
524
524
|
readonly resolution: {
|
|
525
|
-
readonly _tag: "SafeToRetry";
|
|
526
|
-
} | {
|
|
527
525
|
readonly _tag: "CompletedWithResult";
|
|
528
526
|
readonly result: Schema.Json;
|
|
529
527
|
readonly isFailure: boolean;
|
|
530
528
|
} | {
|
|
531
529
|
readonly _tag: "NeverHappened";
|
|
530
|
+
} | {
|
|
531
|
+
readonly _tag: "SafeToRetry";
|
|
532
532
|
} | {
|
|
533
533
|
readonly _tag: "AbortSubmission";
|
|
534
534
|
};
|
|
@@ -696,10 +696,13 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
|
|
|
696
696
|
readonly createdAt: string;
|
|
697
697
|
readonly deploymentId: string;
|
|
698
698
|
readonly payload: {
|
|
699
|
-
readonly _tag: "
|
|
700
|
-
readonly
|
|
701
|
-
readonly
|
|
702
|
-
readonly
|
|
699
|
+
readonly _tag: "SubagentStarted";
|
|
700
|
+
readonly runId: string;
|
|
701
|
+
readonly toolCallId: string;
|
|
702
|
+
readonly childThreadId: string;
|
|
703
|
+
readonly childSubmissionId: string;
|
|
704
|
+
readonly childReceiptId: string;
|
|
705
|
+
readonly childRunId: string;
|
|
703
706
|
} | {
|
|
704
707
|
readonly _tag: "ThreadCreated";
|
|
705
708
|
readonly agentId: string;
|
|
@@ -1013,6 +1016,11 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
|
|
|
1013
1016
|
readonly runDisposition?: Schema.Json | undefined;
|
|
1014
1017
|
readonly finishReason?: "budget-exhausted" | undefined;
|
|
1015
1018
|
readonly exhausted?: "tokens" | "tool-calls" | "turns" | undefined;
|
|
1019
|
+
} | {
|
|
1020
|
+
readonly _tag: "AbortRequested";
|
|
1021
|
+
readonly submissionId: string;
|
|
1022
|
+
readonly author: string;
|
|
1023
|
+
readonly reason: string;
|
|
1016
1024
|
} | {
|
|
1017
1025
|
readonly _tag: "SubmissionSettled";
|
|
1018
1026
|
readonly submissionId: string;
|
|
@@ -1150,14 +1158,6 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
|
|
|
1150
1158
|
readonly childLifetimes?: readonly ("attached" | "background")[] | undefined;
|
|
1151
1159
|
} | undefined;
|
|
1152
1160
|
readonly depth?: number | undefined;
|
|
1153
|
-
} | {
|
|
1154
|
-
readonly _tag: "SubagentStarted";
|
|
1155
|
-
readonly runId: string;
|
|
1156
|
-
readonly toolCallId: string;
|
|
1157
|
-
readonly childThreadId: string;
|
|
1158
|
-
readonly childSubmissionId: string;
|
|
1159
|
-
readonly childReceiptId: string;
|
|
1160
|
-
readonly childRunId: string;
|
|
1161
1161
|
} | {
|
|
1162
1162
|
readonly _tag: "SubagentJoined";
|
|
1163
1163
|
readonly runId: string;
|
|
@@ -1623,13 +1623,13 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
|
|
|
1623
1623
|
readonly author: string;
|
|
1624
1624
|
readonly reason: string;
|
|
1625
1625
|
readonly resolution: {
|
|
1626
|
-
readonly _tag: "SafeToRetry";
|
|
1627
|
-
} | {
|
|
1628
1626
|
readonly _tag: "CompletedWithResult";
|
|
1629
1627
|
readonly result: Schema.Json;
|
|
1630
1628
|
readonly isFailure: boolean;
|
|
1631
1629
|
} | {
|
|
1632
1630
|
readonly _tag: "NeverHappened";
|
|
1631
|
+
} | {
|
|
1632
|
+
readonly _tag: "SafeToRetry";
|
|
1633
1633
|
} | {
|
|
1634
1634
|
readonly _tag: "AbortSubmission";
|
|
1635
1635
|
};
|
|
@@ -1639,30 +1639,6 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
|
|
|
1639
1639
|
} | {
|
|
1640
1640
|
readonly _tag: "HostFailed";
|
|
1641
1641
|
readonly failure: {
|
|
1642
|
-
readonly _tag: "DurableRuntimeFailpointError";
|
|
1643
|
-
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-stop-append" | "worker:after-stop-seal" | "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-stop-append" | "worker:before-stop-seal" | "worker:before-subtree-append";
|
|
1644
|
-
} | {
|
|
1645
|
-
readonly _tag: "AdmissionConflict";
|
|
1646
|
-
readonly threadId: string;
|
|
1647
|
-
readonly principal: string;
|
|
1648
|
-
readonly idempotencyKey: string;
|
|
1649
|
-
readonly existingInputDigest: string;
|
|
1650
|
-
readonly attemptedInputDigest: string;
|
|
1651
|
-
} | {
|
|
1652
|
-
readonly _tag: "AdmissionPolicyError";
|
|
1653
|
-
readonly reason: "occupied" | "refused" | "unavailable";
|
|
1654
|
-
readonly code: string;
|
|
1655
|
-
readonly cause?: import("@yielded/agent/failure-diagnostic").Diagnostic | undefined;
|
|
1656
|
-
readonly stack?: string | undefined;
|
|
1657
|
-
} | {
|
|
1658
|
-
readonly _tag: "SettlementConflict";
|
|
1659
|
-
readonly submissionId: string;
|
|
1660
|
-
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
1661
|
-
} | {
|
|
1662
|
-
readonly _tag: "JoinedToHost";
|
|
1663
|
-
readonly submissionId: string;
|
|
1664
|
-
readonly hostSubmissionId: string;
|
|
1665
|
-
} | {
|
|
1666
1642
|
readonly _tag: "LedgerError";
|
|
1667
1643
|
readonly operation: string;
|
|
1668
1644
|
readonly message: string;
|
|
@@ -1700,6 +1676,19 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
|
|
|
1700
1676
|
readonly reason: string;
|
|
1701
1677
|
readonly threadId?: string | undefined;
|
|
1702
1678
|
readonly submissionId?: string | undefined;
|
|
1679
|
+
} | {
|
|
1680
|
+
readonly _tag: "AdmissionConflict";
|
|
1681
|
+
readonly threadId: string;
|
|
1682
|
+
readonly principal: string;
|
|
1683
|
+
readonly idempotencyKey: string;
|
|
1684
|
+
readonly existingInputDigest: string;
|
|
1685
|
+
readonly attemptedInputDigest: string;
|
|
1686
|
+
} | {
|
|
1687
|
+
readonly _tag: "AdmissionPolicyError";
|
|
1688
|
+
readonly reason: "occupied" | "refused" | "unavailable";
|
|
1689
|
+
readonly code: string;
|
|
1690
|
+
readonly cause?: import("@yielded/agent/failure-diagnostic").Diagnostic | undefined;
|
|
1691
|
+
readonly stack?: string | undefined;
|
|
1703
1692
|
} | {
|
|
1704
1693
|
readonly _tag: "AgentInputError";
|
|
1705
1694
|
readonly message: string;
|
|
@@ -1707,6 +1696,13 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
|
|
|
1707
1696
|
readonly _tag: "DigestError";
|
|
1708
1697
|
readonly message: string;
|
|
1709
1698
|
readonly cause?: Schema.Json | undefined;
|
|
1699
|
+
} | {
|
|
1700
|
+
readonly _tag: "DurableRuntimeFailpointError";
|
|
1701
|
+
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-stop-append" | "worker:after-stop-seal" | "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-stop-append" | "worker:before-stop-seal" | "worker:before-subtree-append";
|
|
1702
|
+
} | {
|
|
1703
|
+
readonly _tag: "SettlementConflict";
|
|
1704
|
+
readonly submissionId: string;
|
|
1705
|
+
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
1710
1706
|
} | {
|
|
1711
1707
|
readonly _tag: "AdmissionLimitExceeded";
|
|
1712
1708
|
readonly limit: "database-bytes" | "input-bytes" | "queue-depth";
|
|
@@ -1720,6 +1716,10 @@ export declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorde
|
|
|
1720
1716
|
} | {
|
|
1721
1717
|
readonly _tag: "HostProtocolError";
|
|
1722
1718
|
readonly message: string;
|
|
1719
|
+
} | {
|
|
1720
|
+
readonly _tag: "JoinedToHost";
|
|
1721
|
+
readonly submissionId: string;
|
|
1722
|
+
readonly hostSubmissionId: string;
|
|
1723
1723
|
} | {
|
|
1724
1724
|
readonly _tag: "ApprovalConflict";
|
|
1725
1725
|
readonly submissionId: string;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@yielded/agent-platform-cloudflare","version":"0.1.0-beta.
|
|
1
|
+
{"name":"@yielded/agent-platform-cloudflare","version":"0.1.0-beta.167","dependencies":{"@effect/platform-browser":"4.0.0","@effect/sql-sqlite-do":"4.0.0","@yielded/agent":"0.1.0-beta.167","@yielded/agent-storage-cloudflare":"0.1.0-beta.167","@yielded/agent-storage-sql":"0.1.0-beta.167","puppeteer-core":"24.29.0"},"devDependencies":{"@cloudflare/vitest-pool-workers":"0.21.3","@cloudflare/workers-types":"5.20260926.1","@effect/platform-node":"4.0.0","@effect/sql-d1":"4.0.0","@effect/vitest":"4.0.0","@yielded/agent-testing":"0.1.0-beta.167","effect":"4.0.0","effect-cf":"0.53.0","esbuild":"0.28.1","miniflare":"5.20260811.1-alpha","typescript":"7.0.2","vite-plus":"0.3.3","vitest":"4.1.11"},"peerDependencies":{"effect":"^4.0.0","effect-cf":"^0.53.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"},"./browser-session":{"types":"./dist/BrowserSession.d.mts","default":"./dist/BrowserSession.mjs"},"./browser-credentials":{"types":"./dist/BrowserCredentials.d.mts","default":"./dist/BrowserCredentials.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/yielded-dev/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"}}
|