@openclaw/gateway-protocol 2026.9.1-beta.1 → 2026.9.2
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/CHANGELOG.md +111 -17
- package/README.md +13 -2
- package/dist/client-info.d.mts +15 -15
- package/dist/client-info.mjs +1 -0
- package/dist/connect-error-details.d.mts +22 -21
- package/dist/connect-error-details.mjs +3 -1
- package/dist/frame-guards.d.mts +4 -4
- package/dist/frame-guards.mjs +1 -1
- package/dist/{frames-BmksHL6e.d.mts → frames-8A7sw44F.d.mts} +11 -0
- package/dist/{gateway-error-details-yO9RdEKe.d.mts → gateway-error-details-qdj19LIh.d.mts} +14 -2
- package/dist/gateway-error-details.d.mts +2 -2
- package/dist/gateway-error-details.mjs +19 -6
- package/dist/index.d.mts +1814 -508
- package/dist/index.mjs +117 -7
- package/dist/{record-coerce-BKHrZ46I.mjs → record-coerce-BVp8Dr-B.mjs} +5 -1
- package/dist/restart-unavailable.d.mts +4 -5
- package/dist/{schema-modules-BXS3PPpy.d.mts → schema-modules-CYD2e-5u.d.mts} +6397 -2287
- package/dist/schema.d.mts +16047 -12337
- package/dist/schema.mjs +148 -50
- package/dist/startup-unavailable.d.mts +9 -10
- package/dist/{worktrees-D0vExqr5.mjs → transcripts-DiXCa8Z2.mjs} +6158 -4456
- package/package.json +2 -2
- package/protocol.schema.json +30194 -6847
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
//#region src/startup-unavailable.d.ts
|
|
2
2
|
/** Structured error reason used while gateway startup sidecars are still initializing. */
|
|
3
|
-
declare const GATEWAY_STARTUP_UNAVAILABLE_REASON = "startup-sidecars";
|
|
3
|
+
export declare const GATEWAY_STARTUP_UNAVAILABLE_REASON = "startup-sidecars";
|
|
4
4
|
/** Internal close cause that distinguishes startup retry closes from generic disconnects. */
|
|
5
|
-
declare const GATEWAY_STARTUP_PENDING_CLOSE_CAUSE = "startup-sidecars-pending";
|
|
5
|
+
export declare const GATEWAY_STARTUP_PENDING_CLOSE_CAUSE = "startup-sidecars-pending";
|
|
6
6
|
/** WebSocket close code for temporary gateway unavailability. */
|
|
7
|
-
declare const GATEWAY_STARTUP_CLOSE_CODE = 1013;
|
|
7
|
+
export declare const GATEWAY_STARTUP_CLOSE_CODE = 1013;
|
|
8
8
|
/** Human-readable WebSocket close reason for temporary gateway startup unavailability. */
|
|
9
|
-
declare const GATEWAY_STARTUP_CLOSE_REASON = "gateway starting";
|
|
9
|
+
export declare const GATEWAY_STARTUP_CLOSE_REASON = "gateway starting";
|
|
10
10
|
/** Default retry-after hint sent with startup-unavailable handshake errors. */
|
|
11
|
-
declare const GATEWAY_STARTUP_RETRY_AFTER_MS = 500;
|
|
11
|
+
export declare const GATEWAY_STARTUP_RETRY_AFTER_MS = 500;
|
|
12
12
|
/** Details payload attached to retryable startup-unavailable gateway errors. */
|
|
13
13
|
type GatewayStartupUnavailableDetails = {
|
|
14
14
|
reason: typeof GATEWAY_STARTUP_UNAVAILABLE_REASON;
|
|
15
15
|
};
|
|
16
16
|
/** Builds the canonical startup-unavailable details payload. */
|
|
17
|
-
declare function gatewayStartupUnavailableDetails(): GatewayStartupUnavailableDetails;
|
|
17
|
+
export declare function gatewayStartupUnavailableDetails(): GatewayStartupUnavailableDetails;
|
|
18
18
|
/** Detects the structured retryable error emitted while startup sidecars are pending. */
|
|
19
|
-
declare function isRetryableGatewayStartupUnavailableError(error: unknown): boolean;
|
|
19
|
+
export declare function isRetryableGatewayStartupUnavailableError(error: unknown): boolean;
|
|
20
20
|
/** Resolves a bounded retry-after delay from a startup-unavailable error. */
|
|
21
|
-
declare function resolveGatewayStartupRetryAfterMs(error: unknown): number | null;
|
|
22
|
-
//#endregion
|
|
23
|
-
export { GATEWAY_STARTUP_CLOSE_CODE, GATEWAY_STARTUP_CLOSE_REASON, GATEWAY_STARTUP_PENDING_CLOSE_CAUSE, GATEWAY_STARTUP_RETRY_AFTER_MS, GATEWAY_STARTUP_UNAVAILABLE_REASON, gatewayStartupUnavailableDetails, isRetryableGatewayStartupUnavailableError, resolveGatewayStartupRetryAfterMs };
|
|
21
|
+
export declare function resolveGatewayStartupRetryAfterMs(error: unknown): number | null;
|
|
22
|
+
//#endregion
|