@yielded/agent-platform-cloudflare 0.1.0-beta.179 → 0.1.0-beta.181
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/{CloudflareThreadClient-hfGHZ7sG.d.mts → CloudflareThreadClient-Atp-Clb4.d.mts} +54 -54
- package/dist/CloudflareThreadClient.d.mts +1 -1
- package/dist/{ThreadObject-D9zz0y2B.d.mts → ThreadObject-B1Rv8jPn.d.mts} +3 -512
- package/dist/{ThreadObject-DhzGwUeR.mjs → ThreadObject-vmc0jRTS.mjs} +3 -3
- package/dist/ThreadObject-vmc0jRTS.mjs.map +1 -0
- package/dist/ThreadObject.d.mts +1 -1
- package/dist/ThreadObject.mjs +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/ThreadObject.ts +5 -1
- package/src/internal/layers.ts +1 -1
- package/dist/ThreadObject-DhzGwUeR.mjs.map +0 -1
package/dist/{CloudflareThreadClient-hfGHZ7sG.d.mts → CloudflareThreadClient-Atp-Clb4.d.mts}
RENAMED
|
@@ -2021,53 +2021,16 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
2021
2021
|
} | {
|
|
2022
2022
|
readonly _tag: "HostFailed";
|
|
2023
2023
|
readonly failure: {
|
|
2024
|
-
readonly _tag: "
|
|
2025
|
-
readonly
|
|
2026
|
-
} | {
|
|
2027
|
-
readonly _tag: "AgentInputError";
|
|
2028
|
-
readonly message: string;
|
|
2029
|
-
} | {
|
|
2030
|
-
readonly _tag: "DigestError";
|
|
2024
|
+
readonly _tag: "DurableAlarmError";
|
|
2025
|
+
readonly operation: string;
|
|
2031
2026
|
readonly message: string;
|
|
2032
2027
|
readonly cause?: Schema.Json | undefined;
|
|
2033
2028
|
} | {
|
|
2034
|
-
readonly _tag: "
|
|
2035
|
-
readonly threadId: string;
|
|
2036
|
-
readonly principal: string;
|
|
2037
|
-
readonly idempotencyKey: string;
|
|
2038
|
-
readonly existingInputDigest: string;
|
|
2039
|
-
readonly attemptedInputDigest: string;
|
|
2040
|
-
} | {
|
|
2041
|
-
readonly _tag: "AdmissionPolicyError";
|
|
2042
|
-
readonly reason: "occupied" | "refused" | "unavailable";
|
|
2043
|
-
readonly code: string;
|
|
2044
|
-
readonly cause?: import("@yielded/agent/failure-diagnostic").Diagnostic | undefined;
|
|
2045
|
-
readonly stack?: string | undefined;
|
|
2046
|
-
} | {
|
|
2047
|
-
readonly _tag: "SettlementConflict";
|
|
2048
|
-
readonly submissionId: string;
|
|
2049
|
-
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
2050
|
-
} | {
|
|
2051
|
-
readonly _tag: "ApprovalConflict";
|
|
2052
|
-
readonly submissionId: string;
|
|
2053
|
-
readonly toolCallId: string;
|
|
2054
|
-
readonly existingDecision: "approved" | "denied";
|
|
2055
|
-
} | {
|
|
2056
|
-
readonly _tag: "UnknownResolutionConflict";
|
|
2057
|
-
readonly submissionId: string;
|
|
2058
|
-
readonly toolCallId: string;
|
|
2059
|
-
} | {
|
|
2060
|
-
readonly _tag: "JoinedToHost";
|
|
2061
|
-
readonly submissionId: string;
|
|
2062
|
-
readonly hostSubmissionId: string;
|
|
2063
|
-
} | {
|
|
2064
|
-
readonly _tag: "LedgerError";
|
|
2065
|
-
readonly operation: string;
|
|
2029
|
+
readonly _tag: "HostProtocolError";
|
|
2066
2030
|
readonly message: string;
|
|
2067
|
-
readonly cause?: import("@yielded/agent/failure-diagnostic").Diagnostic | undefined;
|
|
2068
2031
|
} | {
|
|
2069
|
-
readonly _tag: "
|
|
2070
|
-
readonly
|
|
2032
|
+
readonly _tag: "ThreadNotMaterialized";
|
|
2033
|
+
readonly threadId: string;
|
|
2071
2034
|
} | {
|
|
2072
2035
|
readonly _tag: "ThreadStoreError";
|
|
2073
2036
|
readonly operation: string;
|
|
@@ -2081,33 +2044,70 @@ declare const encodeHostResponse: (input: AbortRecorded | ApprovalRecorded | Hos
|
|
|
2081
2044
|
readonly sequence?: number | undefined;
|
|
2082
2045
|
} | undefined;
|
|
2083
2046
|
} | {
|
|
2084
|
-
readonly _tag: "
|
|
2085
|
-
readonly
|
|
2047
|
+
readonly _tag: "LedgerError";
|
|
2048
|
+
readonly operation: string;
|
|
2049
|
+
readonly message: string;
|
|
2050
|
+
readonly cause?: import("@yielded/agent/failure-diagnostic").Diagnostic | undefined;
|
|
2086
2051
|
} | {
|
|
2087
2052
|
readonly _tag: "AppendConflict";
|
|
2088
2053
|
readonly threadId: string;
|
|
2089
2054
|
readonly batchId: string;
|
|
2090
2055
|
readonly reason: "batch-content" | "record-identity" | "stale-command" | "tail";
|
|
2091
2056
|
readonly actualTailSequence?: number | undefined;
|
|
2057
|
+
} | {
|
|
2058
|
+
readonly _tag: "OwnershipLost";
|
|
2059
|
+
readonly submissionId: string;
|
|
2060
|
+
} | {
|
|
2061
|
+
readonly _tag: "OperationDenied";
|
|
2062
|
+
readonly operation: "abort" | "awaitSettlement" | "explain" | "observe" | "resolveApproval" | "resolveUnknown" | "retry" | "scanObligations" | "verify" | "wake";
|
|
2063
|
+
readonly reason: string;
|
|
2064
|
+
readonly threadId?: string | undefined;
|
|
2065
|
+
readonly submissionId?: string | undefined;
|
|
2066
|
+
} | {
|
|
2067
|
+
readonly _tag: "SettlementConflict";
|
|
2068
|
+
readonly submissionId: string;
|
|
2069
|
+
readonly existingOutcome: "aborted" | "completed" | "failed";
|
|
2070
|
+
} | {
|
|
2071
|
+
readonly _tag: "AdmissionPolicyError";
|
|
2072
|
+
readonly reason: "occupied" | "refused" | "unavailable";
|
|
2073
|
+
readonly code: string;
|
|
2074
|
+
readonly cause?: import("@yielded/agent/failure-diagnostic").Diagnostic | undefined;
|
|
2075
|
+
readonly stack?: string | undefined;
|
|
2076
|
+
} | {
|
|
2077
|
+
readonly _tag: "DigestError";
|
|
2078
|
+
readonly message: string;
|
|
2079
|
+
readonly cause?: Schema.Json | undefined;
|
|
2092
2080
|
} | {
|
|
2093
2081
|
readonly _tag: "DurableRuntimeFailpointError";
|
|
2094
2082
|
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-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:before-publication" | "tools:after-dispatch-fence" | "tools:after-unavailable-append" | "tools:before-dispatch-fence" | "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";
|
|
2083
|
+
} | {
|
|
2084
|
+
readonly _tag: "AdmissionConflict";
|
|
2085
|
+
readonly threadId: string;
|
|
2086
|
+
readonly principal: string;
|
|
2087
|
+
readonly idempotencyKey: string;
|
|
2088
|
+
readonly existingInputDigest: string;
|
|
2089
|
+
readonly attemptedInputDigest: string;
|
|
2090
|
+
} | {
|
|
2091
|
+
readonly _tag: "AgentInputError";
|
|
2092
|
+
readonly message: string;
|
|
2095
2093
|
} | {
|
|
2096
2094
|
readonly _tag: "AdmissionLimitExceeded";
|
|
2097
2095
|
readonly limit: "database-bytes" | "input-bytes" | "queue-depth";
|
|
2098
2096
|
readonly actual: number;
|
|
2099
2097
|
readonly maximum: number;
|
|
2100
2098
|
} | {
|
|
2101
|
-
readonly _tag: "
|
|
2102
|
-
readonly
|
|
2103
|
-
readonly
|
|
2104
|
-
readonly cause?: Schema.Json | undefined;
|
|
2099
|
+
readonly _tag: "JoinedToHost";
|
|
2100
|
+
readonly submissionId: string;
|
|
2101
|
+
readonly hostSubmissionId: string;
|
|
2105
2102
|
} | {
|
|
2106
|
-
readonly _tag: "
|
|
2107
|
-
readonly
|
|
2108
|
-
readonly
|
|
2109
|
-
readonly
|
|
2110
|
-
|
|
2103
|
+
readonly _tag: "ApprovalConflict";
|
|
2104
|
+
readonly submissionId: string;
|
|
2105
|
+
readonly toolCallId: string;
|
|
2106
|
+
readonly existingDecision: "approved" | "denied";
|
|
2107
|
+
} | {
|
|
2108
|
+
readonly _tag: "UnknownResolutionConflict";
|
|
2109
|
+
readonly submissionId: string;
|
|
2110
|
+
readonly toolCallId: string;
|
|
2111
2111
|
};
|
|
2112
2112
|
}, Schema.SchemaError, never>;
|
|
2113
2113
|
declare const decodeHostResponse: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<AbortRecorded | ApprovalRecorded | HostFailed | ObservedPage | ProgressCancelled | ProgressObserved | SettlementReached | SettlementRecordReached | SubmissionStatusResponse | SubmitSucceeded | UnknownResolutionRecorded, Schema.SchemaError, never>;
|
|
@@ -2202,4 +2202,4 @@ declare class CloudflareThreadClient extends CloudflareThreadClient_base {
|
|
|
2202
2202
|
}
|
|
2203
2203
|
//#endregion
|
|
2204
2204
|
export { boundHostDiagnostic as A, decodeSubmitRequest as B, SettlementReached as C, SubmitSucceeded as D, SubmitRequest as E, decodeCancelProgressRequest as F, encodeAwaitSettlementRequest as G, encodeAbortCommand as H, decodeHostResponse as I, encodeObservePageRequest as J, encodeCancelProgressRequest as K, decodeLiveText as L, decodeApprovalDecisionCommand as M, decodeAwaitProgressRequest as N, ThreadClientError as O, decodeAwaitSettlementRequest as P, Frame as Q, decodeObservePageRequest as R, ProgressObserved as S, SubmissionStatusResponse as T, encodeApprovalDecisionCommand as U, decodeUnknownResolutionCommand as V, encodeAwaitProgressRequest as W, encodeSubmitRequest as X, encodeReceipt as Y, encodeUnknownResolutionCommand as Z, HostProtocolError as _, CancelProgressRequest as a, ObservedPage as b, ClientAwaitFailure as c, ClientSubmitFailure as d, ClientUnknownFailure as f, HostFailure as g, HostFailed as h, AwaitSettlementRequest as i, decodeAbortCommand as j, UnknownResolutionRecorded as k, ClientObserveFailure as l, CloudflareThreadClient_d_exports as m, ApprovalRecorded as n, ClientAbortFailure as o, CloudflareThreadClient as p, encodeHostResponse as q, AwaitProgressRequest as r, ClientApprovalFailure as s, AbortRecorded as t, ClientProgressFailure as u, HostResponse as v, SettlementRecordReached as w, ProgressCancelled as x, ObservePageRequest as y, decodeReceipt as z };
|
|
2205
|
-
//# sourceMappingURL=CloudflareThreadClient-
|
|
2205
|
+
//# sourceMappingURL=CloudflareThreadClient-Atp-Clb4.d.mts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as boundHostDiagnostic, B as decodeSubmitRequest, C as SettlementReached, D as SubmitSucceeded, E as SubmitRequest, F as decodeCancelProgressRequest, G as encodeAwaitSettlementRequest, H as encodeAbortCommand, I as decodeHostResponse, J as encodeObservePageRequest, K as encodeCancelProgressRequest, L as decodeLiveText, M as decodeApprovalDecisionCommand, N as decodeAwaitProgressRequest, O as ThreadClientError, P as decodeAwaitSettlementRequest, Q as Frame, R as decodeObservePageRequest, S as ProgressObserved, T as SubmissionStatusResponse, U as encodeApprovalDecisionCommand, V as decodeUnknownResolutionCommand, W as encodeAwaitProgressRequest, X as encodeSubmitRequest, Y as encodeReceipt, Z as encodeUnknownResolutionCommand, _ as HostProtocolError, a as CancelProgressRequest, b as ObservedPage, c as ClientAwaitFailure, d as ClientSubmitFailure, f as ClientUnknownFailure, g as HostFailure, h as HostFailed, i as AwaitSettlementRequest, j as decodeAbortCommand, k as UnknownResolutionRecorded, l as ClientObserveFailure, n as ApprovalRecorded, o as ClientAbortFailure, p as CloudflareThreadClient, q as encodeHostResponse, r as AwaitProgressRequest, s as ClientApprovalFailure, t as AbortRecorded, u as ClientProgressFailure, v as HostResponse, w as SettlementRecordReached, x as ProgressCancelled, y as ObservePageRequest, z as decodeReceipt } from "./CloudflareThreadClient-
|
|
1
|
+
import { A as boundHostDiagnostic, B as decodeSubmitRequest, C as SettlementReached, D as SubmitSucceeded, E as SubmitRequest, F as decodeCancelProgressRequest, G as encodeAwaitSettlementRequest, H as encodeAbortCommand, I as decodeHostResponse, J as encodeObservePageRequest, K as encodeCancelProgressRequest, L as decodeLiveText, M as decodeApprovalDecisionCommand, N as decodeAwaitProgressRequest, O as ThreadClientError, P as decodeAwaitSettlementRequest, Q as Frame, R as decodeObservePageRequest, S as ProgressObserved, T as SubmissionStatusResponse, U as encodeApprovalDecisionCommand, V as decodeUnknownResolutionCommand, W as encodeAwaitProgressRequest, X as encodeSubmitRequest, Y as encodeReceipt, Z as encodeUnknownResolutionCommand, _ as HostProtocolError, a as CancelProgressRequest, b as ObservedPage, c as ClientAwaitFailure, d as ClientSubmitFailure, f as ClientUnknownFailure, g as HostFailure, h as HostFailed, i as AwaitSettlementRequest, j as decodeAbortCommand, k as UnknownResolutionRecorded, l as ClientObserveFailure, n as ApprovalRecorded, o as ClientAbortFailure, p as CloudflareThreadClient, q as encodeHostResponse, r as AwaitProgressRequest, s as ClientApprovalFailure, t as AbortRecorded, u as ClientProgressFailure, v as HostResponse, w as SettlementRecordReached, x as ProgressCancelled, y as ObservePageRequest, z as decodeReceipt } from "./CloudflareThreadClient-Atp-Clb4.mjs";
|
|
2
2
|
export { AbortRecorded, ApprovalRecorded, AwaitProgressRequest, AwaitSettlementRequest, CancelProgressRequest, ClientAbortFailure, ClientApprovalFailure, ClientAwaitFailure, ClientObserveFailure, ClientProgressFailure, ClientSubmitFailure, ClientUnknownFailure, CloudflareThreadClient, HostFailed, HostFailure, HostProtocolError, HostResponse, Frame as LiveTextFrame, ObservePageRequest, ObservedPage, ProgressCancelled, ProgressObserved, SettlementReached, SettlementRecordReached, SubmissionStatusResponse, SubmitRequest, SubmitSucceeded, ThreadClientError, UnknownResolutionRecorded, boundHostDiagnostic, decodeAbortCommand, decodeApprovalDecisionCommand, decodeAwaitProgressRequest, decodeAwaitSettlementRequest, decodeCancelProgressRequest, decodeHostResponse, decodeLiveText, decodeObservePageRequest, decodeReceipt, decodeSubmitRequest, decodeUnknownResolutionCommand, encodeAbortCommand, encodeApprovalDecisionCommand, encodeAwaitProgressRequest, encodeAwaitSettlementRequest, encodeCancelProgressRequest, encodeHostResponse, encodeObservePageRequest, encodeReceipt, encodeSubmitRequest, encodeUnknownResolutionCommand };
|