@openclaw/gateway-client 2026.10.10 → 2026.11.5-beta.1
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/README.md +11 -0
- package/dist/.source-module-urls/64fb00de7b626c888cb871ea7e5171ebc35f3a7ee91800fc2345f930b9e361e7.json +1 -0
- package/dist/browser.d.mts +6 -5
- package/dist/browser.mjs +4 -3
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +224 -235
- package/dist/{protocol-client-Dg5tIB1S.d.mts → protocol-client-DmQZQQS7.d.mts} +2 -5
- package/dist/{protocol-request-CtVhe3Bj.d.mts → protocol-request-CRDNYiYG.d.mts} +2 -0
- package/dist/{readiness-CkF8_J-1.d.mts → readiness-BuLm1Ikf.d.mts} +12 -17
- package/dist/{readiness-CwRz4ZX8.mjs → readiness-C7IsnvXj.mjs} +11 -10
- package/dist/readiness.d.mts +1 -1
- package/dist/readiness.mjs +1 -2
- package/dist/scope-upgrade.d.mts +2 -3
- package/dist/{session-subscriptions-DJ5H6a_1.mjs → session-subscriptions-Bc7A64MY.mjs} +977 -264
- package/dist/{session-subscriptions-Bcq6_wtR.d.mts → session-subscriptions-UQlp58bR.d.mts} +15 -2
- package/dist/{timeouts-F2UKsnjG.mjs → timeouts-BBVOnLnf.mjs} +2 -5
- package/dist/timeouts.mjs +1 -2
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -156,6 +156,12 @@ The shared protocol client still owns frame parsing, request correlation,
|
|
|
156
156
|
challenge ordering, timeout cleanup, sequence-gap detection, and reconnect
|
|
157
157
|
scheduling.
|
|
158
158
|
|
|
159
|
+
`connect` is the first request on each socket. Requests made while the connection
|
|
160
|
+
is opening or awaiting hello stay queued until the accepted hello is published.
|
|
161
|
+
Their original deadlines and abort signals remain active while queued. Closing
|
|
162
|
+
or stopping the connection rejects queued work instead of replaying it on a new
|
|
163
|
+
socket.
|
|
164
|
+
|
|
159
165
|
Both the Node and browser entries export `isGatewayProtocolResponseError(error)`.
|
|
160
166
|
It recognizes correlated Gateway response errors; constructed errors and local
|
|
161
167
|
transport timeouts return `false`. Both entries use the same implementation.
|
|
@@ -284,6 +290,11 @@ from `@openclaw/gateway-protocol`, not from bundled implementation paths.
|
|
|
284
290
|
the socket; `stop()` closes it and rejects pending requests.
|
|
285
291
|
- A request uses `request(method, params)` after `hello-ok`. Passing
|
|
286
292
|
`timeoutMs: null` creates an intentionally unbounded request.
|
|
293
|
+
- `signal` normally stops observing a request immediately on abort. A write
|
|
294
|
+
caller that must reconcile a sent request can opt into
|
|
295
|
+
`retainSentResultOnAbort: true`: abort still cancels unsent work and retries,
|
|
296
|
+
while a sent request retains its response and original deadline. A later
|
|
297
|
+
pre-dispatch refusal rejects as aborted instead of retrying.
|
|
287
298
|
- Finite request deadlines reject with `GatewayProtocolRequestTimeoutError`,
|
|
288
299
|
whose `CLIENT_TIMEOUT` code, method, deadline, and send-boundary flag remain
|
|
289
300
|
distinct from authoritative Gateway response errors.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"entries":[{"output":"browser.mjs","source":"packages/gateway-client/src/browser.ts"},{"output":"index.mjs","source":"packages/gateway-client/src/index.ts"},{"output":"readiness.mjs","source":"packages/gateway-client/src/readiness.ts"},{"output":"scope-upgrade.mjs","source":"packages/gateway-client/src/scope-upgrade.ts"},{"output":"timeouts.mjs","source":"packages/gateway-client/src/timeouts.ts"},{"output":"websocket-data.mjs","source":"packages/gateway-client/src/websocket-data.ts"}],"chunks":[{"output":"browser.mjs","sha256":"2447e76393394aaabff27e3f54e32117b9b9226ba25b9d5c97e48a277601855c","facadeSource":"packages/gateway-client/src/browser.ts","sources":["packages/gateway-client/src/chat-stream-projection.ts"]},{"output":"index.mjs","sha256":"6339e2cbe2e374b0c71a0322253440ac70fe3cfd752c0a830c3fb59f50c129b0","facadeSource":"packages/gateway-client/src/index.ts","sources":["packages/gateway-client/src/client-address-utils.ts","packages/gateway-client/src/client-device-auth.ts","packages/gateway-client/src/client-upgrade-error.ts","packages/gateway-client/src/client.ts","packages/gateway-client/src/cloudflare-access.ts","packages/gateway-client/src/node-protocol.ts","packages/gateway-client/src/request-error.ts","packages/gateway-client/src/run-recovery-text.ts","packages/gateway-client/src/websocket-transport.ts","packages/gateway-client/src/websocket.ts","packages/net-policy/src/ip.ts","packages/net-policy/src/redact-sensitive-url.ts","packages/net-policy/src/url-protocol.ts","packages/normalization-core/src/json-coercion.ts"]},{"output":"readiness-C7IsnvXj.mjs","sha256":"fc05b53621067e85a2d9762174c7561d3e523fa668ce05693b2e6ceabe7bea06","facadeSource":null,"sources":["packages/gateway-client/src/event-loop-ready.ts","packages/gateway-client/src/readiness.ts"]},{"output":"readiness.mjs","sha256":"b9512003888f32b479a82607b5bf6b60f52ae57aeb2d273a400870190a4fad37","facadeSource":"packages/gateway-client/src/readiness.ts","sources":[]},{"output":"scope-upgrade.mjs","sha256":"a41a5b6066b8356248025d74cea77a18a5fc489dfee4159bfc8b869cdc9932ca","facadeSource":"packages/gateway-client/src/scope-upgrade.ts","sources":["packages/gateway-client/src/scope-upgrade.ts"]},{"output":"session-subscriptions-Bc7A64MY.mjs","sha256":"1808be9fbb07178dd1f708b6e34a434b25b7b7a86e4be440bce13e6f783fe61d","facadeSource":null,"sources":["node_modules/.pnpm/@noble+hashes@2.4.0/node_modules/@noble/hashes/_md.js","node_modules/.pnpm/@noble+hashes@2.4.0/node_modules/@noble/hashes/_u64.js","node_modules/.pnpm/@noble+hashes@2.4.0/node_modules/@noble/hashes/sha2.js","node_modules/.pnpm/@noble+hashes@2.4.0/node_modules/@noble/hashes/utils.js","packages/gateway-client/src/browser-device-auth.ts","packages/gateway-client/src/chat-stream-message.ts","packages/gateway-client/src/connect-auth.ts","packages/gateway-client/src/device-auth.ts","packages/gateway-client/src/event-listeners.ts","packages/gateway-client/src/gateway-origin-scope.ts","packages/gateway-client/src/model-catalog-connect.ts","packages/gateway-client/src/pending-request.ts","packages/gateway-client/src/protocol-client.ts","packages/gateway-client/src/protocol-request.ts","packages/gateway-client/src/reconnect-policy.ts","packages/gateway-client/src/session-projection-final-identity.ts","packages/gateway-client/src/session-projection-message-content.ts","packages/gateway-client/src/session-projection-message-identity.ts","packages/gateway-client/src/session-projection-order.ts","packages/gateway-client/src/session-projection-run-event.ts","packages/gateway-client/src/session-projection-run-retention.ts","packages/gateway-client/src/session-projection.ts","packages/gateway-client/src/session-subscriptions.ts","packages/normalization-core/src/agent-id.ts","packages/normalization-core/src/cjk-chars.ts","packages/normalization-core/src/error-coercion.ts","packages/normalization-core/src/record-coerce.ts","packages/normalization-core/src/result.ts","packages/normalization-core/src/stable-stringify.ts","packages/normalization-core/src/string-normalization.ts","packages/normalization-core/src/uuid.ts","packages/retry/src/index.ts"]},{"output":"timeouts-BBVOnLnf.mjs","sha256":"71854cf288287c7a957659eecf1a4a34e7aa58bdebb483e0eb3f92e09ae7a42f","facadeSource":null,"sources":["packages/gateway-client/src/timeouts.ts","packages/normalization-core/src/number-coercion.ts","packages/normalization-core/src/string-coerce.ts"]},{"output":"timeouts.mjs","sha256":"9964621ad886d7a1d529065596ca0686464a4ea0da7fba10b426ba4729ec7789","facadeSource":"packages/gateway-client/src/timeouts.ts","sources":[]},{"output":"websocket-data.mjs","sha256":"37ccb163f63f0950b172b92be8438b27b5ec017a86146b7c8ee7275cec51c23b","facadeSource":"packages/gateway-client/src/websocket-data.ts","sources":["packages/gateway-client/src/websocket-data.ts"]}],"unrenderedSources":["packages/gateway-client/src/browser.ts","packages/gateway-client/src/index.ts","packages/normalization-core/src/balanced-json.ts","packages/normalization-core/src/boolean-coercion.ts","packages/normalization-core/src/code-points.ts","packages/normalization-core/src/expect.ts","packages/normalization-core/src/format.ts","packages/normalization-core/src/index.ts","packages/normalization-core/src/response-bytes.ts","packages/normalization-core/src/text-decoding.ts","packages/normalization-core/src/utf16-slice.ts"]}
|
package/dist/browser.d.mts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as isLocallyOptimisticSessionMessage, B as normalizeDeviceMetadataForAuth, C as SessionProjectionRunTransition, D as SessionMessageEnvelope, E as readSessionProjectionFinalMessageIdentity, F as gatewayCredentialScope, I as gatewayOriginScope, L as mergeChatStreamMessage, M as readAssistantStreamSegmentIdentity, N as readSessionMessageIdentity, O as SessionMessageIdentity, P as readSessionMessageSequence, R as buildDeviceAuthPayload, S as SessionProjectionGatewayRunEvent, T as hasSessionProjectionAcceptedFinal, _ as projectLiveSessionMessage, a as GatewaySessionMessageSubscriptionCoordinatorOptions, b as isSessionProjectionErrorMessage, c as releaseGatewaySessionMessageSubscription, d as SessionProjectionRun, f as SessionProjectionRunStatus, g as createSessionProjection, h as SessionProjectionState, i as GatewaySessionMessageSubscriptionCoordinator, j as normalizeSessionProjectionRunId, k as SessionProjectionEntry, l as resetGatewaySessionMessageSubscriptionCoordinator, m as SessionProjectionSnapshotOptions, n as GatewaySessionMessageRequestClient, o as GatewaySessionMessageSubscriptionOptions, p as SessionProjectionScope, r as GatewaySessionMessageSubscription, s as getGatewaySessionMessageSubscriptionCoordinator, t as GatewaySessionInitialHistoryResult, u as SessionProjectionEvent, v as reconcileSessionProjectionSnapshot, w as reduceSessionProjectionRunEvent, x as projectSessionTerminalReplyMessage, y as reduceSessionProjection, z as buildDeviceAuthPayloadV3 } from "./session-subscriptions-UQlp58bR.mjs";
|
|
2
2
|
import { a as GatewayBrowserDeviceTokenStore, c as resolveGatewayConnectScopes, i as GatewayBrowserDeviceTokenRecord, l as selectGatewayConnectAuth, n as GatewayBrowserDeviceAuthPlan, o as GatewayConnectAuthSelection, r as GatewayBrowserDeviceIdentity, s as buildGatewayConnectAuth, t as GatewayBrowserDeviceAuthLifecycle, u as shouldRetryGatewayWithDeviceToken } from "./browser-device-auth-_UweR4aN.mjs";
|
|
3
|
-
import { i as isGatewayProtocolResponseError, n as GatewayProtocolRequestOptions, r as GatewayProtocolRequestTimeoutError, t as GatewayProtocolRequestError } from "./protocol-request-
|
|
4
|
-
import { a as GatewayProtocolConnectAuthority, c as GatewayProtocolTiming, i as GatewayProtocolCloseContext, l as GatewayProtocolRequestTiming, o as GatewayProtocolSocket, s as GatewayProtocolSocketHandlers, t as GatewayProtocolClient } from "./protocol-client-
|
|
3
|
+
import { i as isGatewayProtocolResponseError, n as GatewayProtocolRequestOptions, r as GatewayProtocolRequestTimeoutError, t as GatewayProtocolRequestError } from "./protocol-request-CRDNYiYG.mjs";
|
|
4
|
+
import { a as GatewayProtocolConnectAuthority, c as GatewayProtocolTiming, i as GatewayProtocolCloseContext, l as GatewayProtocolRequestTiming, o as GatewayProtocolSocket, s as GatewayProtocolSocketHandlers, t as GatewayProtocolClient } from "./protocol-client-DmQZQQS7.mjs";
|
|
5
5
|
import { DEFAULT_GATEWAY_REQUEST_TIMEOUT_MS, DEFAULT_PREAUTH_HANDSHAKE_TIMEOUT_MS, resolveSafeTimeoutDelayMs } from "./timeouts.mjs";
|
|
6
6
|
import { ConnectParams as ConnectParams$1, GATEWAY_SERVER_CAPS } from "@openclaw/gateway-protocol/frame-guards";
|
|
7
7
|
import { ChannelsStatusResult, ConnectParams, ErrorShape, EventFrame, HelloOk, QuestionRecord } from "@openclaw/gateway-protocol";
|
|
8
8
|
export * from "@openclaw/gateway-protocol/connect-error-details";
|
|
9
|
+
export * from "@openclaw/gateway-protocol/startup-unavailable";
|
|
9
10
|
export * from "@openclaw/gateway-protocol/gateway-error-details";
|
|
10
11
|
export * from "@openclaw/gateway-protocol/client-info";
|
|
11
|
-
export * from "@openclaw/gateway-protocol/
|
|
12
|
+
export * from "@openclaw/gateway-protocol/session-row-deltas";
|
|
12
13
|
export * from "@openclaw/gateway-protocol/version";
|
|
13
14
|
//#region packages/gateway-client/src/chat-stream-projection.d.ts
|
|
14
15
|
type ChatStreamScope = {
|
|
@@ -47,4 +48,4 @@ export declare function shouldPauseGatewayReconnect(params: {
|
|
|
47
48
|
clientVersionMismatchIsTerminal?: boolean;
|
|
48
49
|
}): boolean;
|
|
49
50
|
//#endregion
|
|
50
|
-
export { type ChannelsStatusResult, type ConnectParams, DEFAULT_GATEWAY_REQUEST_TIMEOUT_MS, DEFAULT_PREAUTH_HANDSHAKE_TIMEOUT_MS, type ErrorShape, type EventFrame, GATEWAY_SERVER_CAPS, GatewayBrowserDeviceAuthLifecycle, GatewayBrowserDeviceAuthPlan, GatewayBrowserDeviceIdentity, GatewayBrowserDeviceTokenRecord, GatewayBrowserDeviceTokenStore, GatewayConnectAuthSelection, GatewayProtocolClient, type GatewayProtocolCloseContext, type GatewayProtocolConnectAuthority, GatewayProtocolRequestError, type GatewayProtocolRequestOptions, GatewayProtocolRequestTimeoutError, type GatewayProtocolRequestTiming, type GatewayProtocolSocket, type GatewayProtocolSocketHandlers, type GatewayProtocolTiming, GatewaySessionMessageRequestClient, GatewaySessionMessageSubscription, GatewaySessionMessageSubscriptionCoordinator, GatewaySessionMessageSubscriptionCoordinatorOptions, GatewaySessionMessageSubscriptionOptions, type HelloOk, type QuestionRecord, type SessionMessageEnvelope, type SessionMessageIdentity, type SessionProjectionEntry, SessionProjectionEvent, type SessionProjectionGatewayRunEvent, SessionProjectionRun, SessionProjectionRunStatus, type SessionProjectionRunTransition, SessionProjectionScope, SessionProjectionSnapshotOptions, SessionProjectionState, buildDeviceAuthPayload, buildDeviceAuthPayloadV3, buildGatewayConnectAuth, createSessionProjection, gatewayCredentialScope, gatewayOriginScope, getGatewaySessionMessageSubscriptionCoordinator, hasSessionProjectionAcceptedFinal, isGatewayProtocolResponseError, isLocallyOptimisticSessionMessage, isSessionProjectionErrorMessage, mergeChatStreamMessage, normalizeDeviceMetadataForAuth, normalizeSessionProjectionRunId, projectLiveSessionMessage, projectSessionTerminalReplyMessage, readAssistantStreamSegmentIdentity, readSessionMessageIdentity, readSessionMessageSequence, readSessionProjectionFinalMessageIdentity, reconcileSessionProjectionSnapshot, reduceSessionProjection, reduceSessionProjectionRunEvent, releaseGatewaySessionMessageSubscription, resetGatewaySessionMessageSubscriptionCoordinator, resolveGatewayConnectScopes, resolveSafeTimeoutDelayMs, selectGatewayConnectAuth, shouldRetryGatewayWithDeviceToken };
|
|
51
|
+
export { type ChannelsStatusResult, type ConnectParams, DEFAULT_GATEWAY_REQUEST_TIMEOUT_MS, DEFAULT_PREAUTH_HANDSHAKE_TIMEOUT_MS, type ErrorShape, type EventFrame, GATEWAY_SERVER_CAPS, GatewayBrowserDeviceAuthLifecycle, GatewayBrowserDeviceAuthPlan, GatewayBrowserDeviceIdentity, GatewayBrowserDeviceTokenRecord, GatewayBrowserDeviceTokenStore, GatewayConnectAuthSelection, GatewayProtocolClient, type GatewayProtocolCloseContext, type GatewayProtocolConnectAuthority, GatewayProtocolRequestError, type GatewayProtocolRequestOptions, GatewayProtocolRequestTimeoutError, type GatewayProtocolRequestTiming, type GatewayProtocolSocket, type GatewayProtocolSocketHandlers, type GatewayProtocolTiming, GatewaySessionInitialHistoryResult, GatewaySessionMessageRequestClient, GatewaySessionMessageSubscription, GatewaySessionMessageSubscriptionCoordinator, GatewaySessionMessageSubscriptionCoordinatorOptions, GatewaySessionMessageSubscriptionOptions, type HelloOk, type QuestionRecord, type SessionMessageEnvelope, type SessionMessageIdentity, type SessionProjectionEntry, SessionProjectionEvent, type SessionProjectionGatewayRunEvent, SessionProjectionRun, SessionProjectionRunStatus, type SessionProjectionRunTransition, SessionProjectionScope, SessionProjectionSnapshotOptions, SessionProjectionState, buildDeviceAuthPayload, buildDeviceAuthPayloadV3, buildGatewayConnectAuth, createSessionProjection, gatewayCredentialScope, gatewayOriginScope, getGatewaySessionMessageSubscriptionCoordinator, hasSessionProjectionAcceptedFinal, isGatewayProtocolResponseError, isLocallyOptimisticSessionMessage, isSessionProjectionErrorMessage, mergeChatStreamMessage, normalizeDeviceMetadataForAuth, normalizeSessionProjectionRunId, projectLiveSessionMessage, projectSessionTerminalReplyMessage, readAssistantStreamSegmentIdentity, readSessionMessageIdentity, readSessionMessageSequence, readSessionProjectionFinalMessageIdentity, reconcileSessionProjectionSnapshot, reduceSessionProjection, reduceSessionProjectionRunEvent, releaseGatewaySessionMessageSubscription, resetGatewaySessionMessageSubscriptionCoordinator, resolveGatewayConnectScopes, resolveSafeTimeoutDelayMs, selectGatewayConnectAuth, shouldRetryGatewayWithDeviceToken };
|
package/dist/browser.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { n as DEFAULT_PREAUTH_HANDSHAKE_TIMEOUT_MS, p as resolveSafeTimeoutDelayMs, t as DEFAULT_GATEWAY_REQUEST_TIMEOUT_MS } from "./timeouts-
|
|
1
|
+
import { A as GatewayBrowserDeviceAuthLifecycle, B as buildDeviceAuthPayload, C as isGatewayProtocolResponseError, D as resolveModelCatalogConnect, F as mergeChatStreamMessage, H as normalizeDeviceMetadataForAuth, I as asNullableRecord, M as resolveGatewayConnectScopes, N as selectGatewayConnectAuth, O as gatewayCredentialScope, P as shouldRetryGatewayWithDeviceToken, S as GatewayProtocolRequestTimeoutError, V as buildDeviceAuthPayloadV3, _ as isSessionProjectionErrorMessage, a as createSessionProjection, b as GatewayProtocolClient, c as reduceSessionProjection, d as readSessionProjectionFinalMessageIdentity, f as isLocallyOptimisticSessionMessage, g as readSessionMessageSequence, h as readSessionMessageIdentity, i as resetGatewaySessionMessageSubscriptionCoordinator, j as buildGatewayConnectAuth, k as gatewayOriginScope, l as reduceSessionProjectionRunEvent, m as readAssistantStreamSegmentIdentity, n as getGatewaySessionMessageSubscriptionCoordinator, o as projectLiveSessionMessage, p as normalizeSessionProjectionRunId, r as releaseGatewaySessionMessageSubscription, s as reconcileSessionProjectionSnapshot, t as GatewaySessionMessageSubscriptionCoordinator, u as hasSessionProjectionAcceptedFinal, v as projectSessionTerminalReplyMessage, x as GatewayProtocolRequestError, y as shouldPauseGatewayReconnect } from "./session-subscriptions-Bc7A64MY.mjs";
|
|
2
|
+
import { n as DEFAULT_PREAUTH_HANDSHAKE_TIMEOUT_MS, p as resolveSafeTimeoutDelayMs, t as DEFAULT_GATEWAY_REQUEST_TIMEOUT_MS } from "./timeouts-BBVOnLnf.mjs";
|
|
3
3
|
import { GATEWAY_SERVER_CAPS } from "@openclaw/gateway-protocol/frame-guards";
|
|
4
4
|
export * from "@openclaw/gateway-protocol/connect-error-details";
|
|
5
|
+
export * from "@openclaw/gateway-protocol/startup-unavailable";
|
|
5
6
|
export * from "@openclaw/gateway-protocol/gateway-error-details";
|
|
6
7
|
export * from "@openclaw/gateway-protocol/client-info";
|
|
7
|
-
export * from "@openclaw/gateway-protocol/
|
|
8
|
+
export * from "@openclaw/gateway-protocol/session-row-deltas";
|
|
8
9
|
export * from "@openclaw/gateway-protocol/version";
|
|
9
10
|
//#region packages/gateway-client/src/chat-stream-projection.ts
|
|
10
11
|
/** Connection-owned chat baselines, independent of the selected local view. */
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as isLocallyOptimisticSessionMessage, B as normalizeDeviceMetadataForAuth, C as SessionProjectionRunTransition, D as SessionMessageEnvelope, E as readSessionProjectionFinalMessageIdentity, F as gatewayCredentialScope, I as gatewayOriginScope, L as mergeChatStreamMessage, M as readAssistantStreamSegmentIdentity, N as readSessionMessageIdentity, O as SessionMessageIdentity, P as readSessionMessageSequence, R as buildDeviceAuthPayload, S as SessionProjectionGatewayRunEvent, T as hasSessionProjectionAcceptedFinal, _ as projectLiveSessionMessage, a as GatewaySessionMessageSubscriptionCoordinatorOptions, b as isSessionProjectionErrorMessage, c as releaseGatewaySessionMessageSubscription, d as SessionProjectionRun, f as SessionProjectionRunStatus, g as createSessionProjection, h as SessionProjectionState, i as GatewaySessionMessageSubscriptionCoordinator, j as normalizeSessionProjectionRunId, k as SessionProjectionEntry, l as resetGatewaySessionMessageSubscriptionCoordinator, m as SessionProjectionSnapshotOptions, n as GatewaySessionMessageRequestClient, o as GatewaySessionMessageSubscriptionOptions, p as SessionProjectionScope, r as GatewaySessionMessageSubscription, s as getGatewaySessionMessageSubscriptionCoordinator, t as GatewaySessionInitialHistoryResult, u as SessionProjectionEvent, v as reconcileSessionProjectionSnapshot, w as reduceSessionProjectionRunEvent, x as projectSessionTerminalReplyMessage, y as reduceSessionProjection, z as buildDeviceAuthPayloadV3 } from "./session-subscriptions-UQlp58bR.mjs";
|
|
2
2
|
import { a as GatewayBrowserDeviceTokenStore, c as resolveGatewayConnectScopes, i as GatewayBrowserDeviceTokenRecord, l as selectGatewayConnectAuth, n as GatewayBrowserDeviceAuthPlan, o as GatewayConnectAuthSelection, r as GatewayBrowserDeviceIdentity, s as buildGatewayConnectAuth, t as GatewayBrowserDeviceAuthLifecycle, u as shouldRetryGatewayWithDeviceToken } from "./browser-device-auth-_UweR4aN.mjs";
|
|
3
|
-
import { i as isGatewayProtocolResponseError } from "./protocol-request-
|
|
4
|
-
import { n as GatewayClientCloseInfo, r as GatewayClientConnectionMetadata } from "./protocol-client-
|
|
3
|
+
import { i as isGatewayProtocolResponseError } from "./protocol-request-CRDNYiYG.mjs";
|
|
4
|
+
import { n as GatewayClientCloseInfo, r as GatewayClientConnectionMetadata } from "./protocol-client-DmQZQQS7.mjs";
|
|
5
5
|
import { DEFAULT_GATEWAY_REQUEST_TIMEOUT_MS, DEFAULT_PREAUTH_HANDSHAKE_TIMEOUT_MS, MAX_CONNECT_CHALLENGE_TIMEOUT_MS, MAX_SAFE_TIMEOUT_DELAY_MS, MIN_CONNECT_CHALLENGE_TIMEOUT_MS, addSafeTimeoutDelayGraceMs, clampConnectChallengeTimeoutMs, clearGatewayConnectTimeout, getConnectChallengeTimeoutMsFromEnv, resolveConnectChallengeTimeoutMs, resolveFiniteTimeoutDelayMs, resolvePreauthHandshakeTimeoutMs, resolveSafeTimeoutDelayMs, startGatewayConnectTimeout } from "./timeouts.mjs";
|
|
6
|
-
import { _ as isGatewayConnectAssemblyError, a as startGatewayClientWithReadinessWait, c as waitForEventLoopReady, d as GatewayClientHostDeps, f as GatewayClientOptions, g as
|
|
6
|
+
import { _ as isGatewayConnectAssemblyError, a as startGatewayClientWithReadinessWait, c as waitForEventLoopReady, d as GatewayClientHostDeps, f as GatewayClientOptions, g as GatewayClientRequestTimeoutError, h as GatewayClientRequestError, i as startGatewayClientWhenEventLoopReady, l as DeviceIdentity, m as GatewayReconnectPausedInfo, n as GatewayClientStartReadinessOptions, o as EventLoopReadyOptions, p as GatewayClientRequestOptions, r as GatewayClientStartable, s as EventLoopReadyResult, t as EventLoopReadyWaiter, u as GatewayClient, v as DeviceAuthTokenRecord } from "./readiness-BuLm1Ikf.mjs";
|
|
7
7
|
import { GatewayScopeUpgrade, ScopeUpgradeBinding, ScopeUpgradeOptions, ScopeUpgradeOutcome } from "./scope-upgrade.mjs";
|
|
8
8
|
//#region packages/gateway-client/src/run-recovery-text.d.ts
|
|
9
9
|
export type RecoveryRequest = (method: string, params: Record<string, unknown>, signal: AbortSignal) => Promise<unknown>;
|
|
@@ -32,4 +32,4 @@ export type CloudflareAccessCredentials = Readonly<{
|
|
|
32
32
|
/** Build only the two headers Cloudflare Access defines for service-token auth. */
|
|
33
33
|
export declare function buildCloudflareAccessHeaders(credentials: CloudflareAccessCredentials): Record<string, string>;
|
|
34
34
|
//#endregion
|
|
35
|
-
export { DEFAULT_GATEWAY_REQUEST_TIMEOUT_MS, DEFAULT_PREAUTH_HANDSHAKE_TIMEOUT_MS, type DeviceAuthTokenRecord, DeviceIdentity, EventLoopReadyOptions, EventLoopReadyResult, EventLoopReadyWaiter, GatewayBrowserDeviceAuthLifecycle, GatewayBrowserDeviceAuthPlan, GatewayBrowserDeviceIdentity, GatewayBrowserDeviceTokenRecord, GatewayBrowserDeviceTokenStore, GatewayClient, type GatewayClientCloseInfo, type GatewayClientConnectionMetadata, GatewayClientHostDeps, GatewayClientOptions, GatewayClientRequestError, GatewayClientRequestOptions, GatewayClientRequestTimeoutError, GatewayClientStartReadinessOptions, GatewayClientStartable, GatewayConnectAuthSelection, GatewayReconnectPausedInfo, GatewayScopeUpgrade, GatewaySessionMessageRequestClient, GatewaySessionMessageSubscription, GatewaySessionMessageSubscriptionCoordinator, GatewaySessionMessageSubscriptionCoordinatorOptions, GatewaySessionMessageSubscriptionOptions, MAX_CONNECT_CHALLENGE_TIMEOUT_MS, MAX_SAFE_TIMEOUT_DELAY_MS, MIN_CONNECT_CHALLENGE_TIMEOUT_MS, ScopeUpgradeBinding, ScopeUpgradeOptions, ScopeUpgradeOutcome, type SessionMessageEnvelope, type SessionMessageIdentity, type SessionProjectionEntry, SessionProjectionEvent, type SessionProjectionGatewayRunEvent, SessionProjectionRun, SessionProjectionRunStatus, type SessionProjectionRunTransition, SessionProjectionScope, SessionProjectionSnapshotOptions, SessionProjectionState, addSafeTimeoutDelayGraceMs, buildDeviceAuthPayload, buildDeviceAuthPayloadV3, buildGatewayConnectAuth, clampConnectChallengeTimeoutMs, clearGatewayConnectTimeout, createSessionProjection, gatewayCredentialScope, gatewayOriginScope, getConnectChallengeTimeoutMsFromEnv, getGatewaySessionMessageSubscriptionCoordinator, hasSessionProjectionAcceptedFinal, isGatewayConnectAssemblyError, isGatewayProtocolResponseError, isLocallyOptimisticSessionMessage, isSessionProjectionErrorMessage, mergeChatStreamMessage, normalizeDeviceMetadataForAuth, normalizeSessionProjectionRunId, projectLiveSessionMessage, projectSessionTerminalReplyMessage, readAssistantStreamSegmentIdentity, readSessionMessageIdentity, readSessionMessageSequence, readSessionProjectionFinalMessageIdentity, reconcileSessionProjectionSnapshot, reduceSessionProjection, reduceSessionProjectionRunEvent, releaseGatewaySessionMessageSubscription, resetGatewaySessionMessageSubscriptionCoordinator, resolveConnectChallengeTimeoutMs, resolveFiniteTimeoutDelayMs, resolveGatewayConnectScopes, resolvePreauthHandshakeTimeoutMs, resolveSafeTimeoutDelayMs, selectGatewayConnectAuth, shouldRetryGatewayWithDeviceToken, startGatewayClientWhenEventLoopReady, startGatewayClientWithReadinessWait, startGatewayConnectTimeout, waitForEventLoopReady };
|
|
35
|
+
export { DEFAULT_GATEWAY_REQUEST_TIMEOUT_MS, DEFAULT_PREAUTH_HANDSHAKE_TIMEOUT_MS, type DeviceAuthTokenRecord, DeviceIdentity, EventLoopReadyOptions, EventLoopReadyResult, EventLoopReadyWaiter, GatewayBrowserDeviceAuthLifecycle, GatewayBrowserDeviceAuthPlan, GatewayBrowserDeviceIdentity, GatewayBrowserDeviceTokenRecord, GatewayBrowserDeviceTokenStore, GatewayClient, type GatewayClientCloseInfo, type GatewayClientConnectionMetadata, GatewayClientHostDeps, GatewayClientOptions, GatewayClientRequestError, GatewayClientRequestOptions, GatewayClientRequestTimeoutError, GatewayClientStartReadinessOptions, GatewayClientStartable, GatewayConnectAuthSelection, GatewayReconnectPausedInfo, GatewayScopeUpgrade, GatewaySessionInitialHistoryResult, GatewaySessionMessageRequestClient, GatewaySessionMessageSubscription, GatewaySessionMessageSubscriptionCoordinator, GatewaySessionMessageSubscriptionCoordinatorOptions, GatewaySessionMessageSubscriptionOptions, MAX_CONNECT_CHALLENGE_TIMEOUT_MS, MAX_SAFE_TIMEOUT_DELAY_MS, MIN_CONNECT_CHALLENGE_TIMEOUT_MS, ScopeUpgradeBinding, ScopeUpgradeOptions, ScopeUpgradeOutcome, type SessionMessageEnvelope, type SessionMessageIdentity, type SessionProjectionEntry, SessionProjectionEvent, type SessionProjectionGatewayRunEvent, SessionProjectionRun, SessionProjectionRunStatus, type SessionProjectionRunTransition, SessionProjectionScope, SessionProjectionSnapshotOptions, SessionProjectionState, addSafeTimeoutDelayGraceMs, buildDeviceAuthPayload, buildDeviceAuthPayloadV3, buildGatewayConnectAuth, clampConnectChallengeTimeoutMs, clearGatewayConnectTimeout, createSessionProjection, gatewayCredentialScope, gatewayOriginScope, getConnectChallengeTimeoutMsFromEnv, getGatewaySessionMessageSubscriptionCoordinator, hasSessionProjectionAcceptedFinal, isGatewayConnectAssemblyError, isGatewayProtocolResponseError, isLocallyOptimisticSessionMessage, isSessionProjectionErrorMessage, mergeChatStreamMessage, normalizeDeviceMetadataForAuth, normalizeSessionProjectionRunId, projectLiveSessionMessage, projectSessionTerminalReplyMessage, readAssistantStreamSegmentIdentity, readSessionMessageIdentity, readSessionMessageSequence, readSessionProjectionFinalMessageIdentity, reconcileSessionProjectionSnapshot, reduceSessionProjection, reduceSessionProjectionRunEvent, releaseGatewaySessionMessageSubscription, resetGatewaySessionMessageSubscriptionCoordinator, resolveConnectChallengeTimeoutMs, resolveFiniteTimeoutDelayMs, resolveGatewayConnectScopes, resolvePreauthHandshakeTimeoutMs, resolveSafeTimeoutDelayMs, selectGatewayConnectAuth, shouldRetryGatewayWithDeviceToken, startGatewayClientWhenEventLoopReady, startGatewayClientWithReadinessWait, startGatewayConnectTimeout, waitForEventLoopReady };
|