@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.
@@ -3,9 +3,13 @@
3
3
  function isRecord(value) {
4
4
  return value !== null && typeof value === "object" && !Array.isArray(value);
5
5
  }
6
+ /** Returns a non-array record or undefined. */
7
+ function asOptionalRecord(value) {
8
+ return isRecord(value) ? value : void 0;
9
+ }
6
10
  /** Returns a non-array record or null. */
7
11
  function asNullableRecord(value) {
8
12
  return isRecord(value) ? value : null;
9
13
  }
10
14
  //#endregion
11
- export { isRecord as n, asNullableRecord as t };
15
+ export { asOptionalRecord as n, isRecord as r, asNullableRecord as t };
@@ -1,9 +1,8 @@
1
1
  //#region src/restart-unavailable.d.ts
2
2
  /** Structured error reason used while the gateway drains for a restart. */
3
- declare const GATEWAY_RESTART_UNAVAILABLE_REASON = "gateway-restarting";
3
+ export declare const GATEWAY_RESTART_UNAVAILABLE_REASON = "gateway-restarting";
4
4
  /** Structured error reason used while the gateway drains for a suspension. */
5
- declare const GATEWAY_SUSPEND_UNAVAILABLE_REASON = "gateway-suspending";
5
+ export declare const GATEWAY_SUSPEND_UNAVAILABLE_REASON = "gateway-suspending";
6
6
  /** Detects the structured retryable error emitted while a restart drain refuses work. */
7
- declare function isGatewayRestartUnavailableError(error: unknown): boolean;
8
- //#endregion
9
- export { GATEWAY_RESTART_UNAVAILABLE_REASON, GATEWAY_SUSPEND_UNAVAILABLE_REASON, isGatewayRestartUnavailableError };
7
+ export declare function isGatewayRestartUnavailableError(error: unknown): boolean;
8
+ //#endregion