@openclaw/gateway-protocol 2026.9.5 → 2026.9.7

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.
Files changed (36) hide show
  1. package/README.md +12 -0
  2. package/dist/client-info.d.mts +3 -1
  3. package/dist/client-info.mjs +4 -2
  4. package/dist/connect-error-details.d.mts +4 -3
  5. package/dist/connect-error-details.mjs +13 -16
  6. package/dist/frame-guards.d.mts +2 -2
  7. package/dist/frame-guards.mjs +4 -4
  8. package/dist/{frames-X2k-UkK8.d.mts → frames-ICrB58JF.d.mts} +54 -11
  9. package/dist/{gateway-error-details-Djlwga0B.d.mts → gateway-error-details-BH1DM8mu.d.mts} +467 -384
  10. package/dist/gateway-error-details.d.mts +2 -2
  11. package/dist/gateway-error-details.mjs +7 -6
  12. package/dist/index.d.mts +3774 -2694
  13. package/dist/index.mjs +191 -114
  14. package/dist/{protocol-value-normalization-DfM01tqg.mjs → protocol-value-normalization-Oati9UF1.mjs} +1 -1
  15. package/dist/{record-coerce-BVp8Dr-B.mjs → record-coerce-DVQGe6I0.mjs} +1 -1
  16. package/dist/restart-unavailable.d.mts +3 -1
  17. package/dist/restart-unavailable.mjs +4 -2
  18. package/dist/{schema-modules-CsQIRdwb.d.mts → schema-modules-CRgBq9O3.d.mts} +10619 -8499
  19. package/dist/schema.d.mts +10 -9
  20. package/dist/schema.mjs +97 -28
  21. package/dist/{server-capabilities-Gfkxm7Ho.mjs → server-capabilities-BnyAklc1.mjs} +7 -1
  22. package/dist/startup-unavailable.d.mts +1 -1
  23. package/dist/startup-unavailable.mjs +1 -1
  24. package/dist/{string-coerce-BJ6bjzdv.mjs → string-coerce-BSD-wsXs.mjs} +1 -1
  25. package/dist/system-agent-context.d.mts +8 -1
  26. package/dist/system-agent-context.mjs +56 -6
  27. package/dist/theme-_hQKgfH-.mjs +278 -0
  28. package/dist/theme-s6T9Ck6Z.d.mts +86 -0
  29. package/dist/theme.d.mts +2 -0
  30. package/dist/theme.mjs +2 -0
  31. package/dist/{tools-catalog-CF4aqT9l.mjs → tools-catalog-pKZZLiUu.mjs} +2810 -1982
  32. package/dist/{version-COV9CEyr.d.mts → version-BL42XeI-.d.mts} +1 -1
  33. package/dist/version.d.mts +1 -1
  34. package/dist/version.mjs +1 -1
  35. package/package.json +8 -3
  36. package/protocol.schema.json +28424 -17074
@@ -1,4 +1,4 @@
1
- //#region src/protocol-value-normalization.ts
1
+ //#region packages/gateway-protocol/src/protocol-value-normalization.ts
2
2
  /** Checks string presence without changing wire-significant whitespace. */
3
3
  function isNonEmptyProtocolString(value) {
4
4
  return typeof value === "string" && value.length > 0;
@@ -1,4 +1,4 @@
1
- //#region ../normalization-core/src/record-coerce.ts
1
+ //#region packages/normalization-core/src/record-coerce.ts
2
2
  /** Type guard for non-array object records at browser-safe boundaries. */
3
3
  function isRecord(value) {
4
4
  return value !== null && typeof value === "object" && !Array.isArray(value);
@@ -1,8 +1,10 @@
1
- //#region src/restart-unavailable.d.ts
1
+ //#region packages/gateway-protocol/src/restart-unavailable.d.ts
2
2
  /** Structured error reason used while the gateway drains for a restart. */
3
3
  export declare const GATEWAY_RESTART_UNAVAILABLE_REASON = "gateway-restarting";
4
4
  /** Structured error reason used while the gateway drains for a suspension. */
5
5
  export declare const GATEWAY_SUSPEND_UNAVAILABLE_REASON = "gateway-suspending";
6
+ /** Identity reads wait for resume, with a bounded probe if that event is missed. */
7
+ export declare const GATEWAY_SUSPEND_IDENTITY_RETRY_AFTER_MS = 60000;
6
8
  /** Detects the structured retryable error emitted while a restart drain refuses work. */
7
9
  export declare function isGatewayRestartUnavailableError(error: unknown): boolean;
8
10
  /** Detects the structured retryable error emitted while suspension refuses work. */
@@ -1,8 +1,10 @@
1
- //#region src/restart-unavailable.ts
1
+ //#region packages/gateway-protocol/src/restart-unavailable.ts
2
2
  /** Structured error reason used while the gateway drains for a restart. */
3
3
  const GATEWAY_RESTART_UNAVAILABLE_REASON = "gateway-restarting";
4
4
  /** Structured error reason used while the gateway drains for a suspension. */
5
5
  const GATEWAY_SUSPEND_UNAVAILABLE_REASON = "gateway-suspending";
6
+ /** Identity reads wait for resume, with a bounded probe if that event is missed. */
7
+ const GATEWAY_SUSPEND_IDENTITY_RETRY_AFTER_MS = 6e4;
6
8
  /** Detects the structured retryable error emitted while a restart drain refuses work. */
7
9
  function isGatewayRestartUnavailableError(error) {
8
10
  return hasUnavailableReason(error, GATEWAY_RESTART_UNAVAILABLE_REASON);
@@ -17,4 +19,4 @@ function hasUnavailableReason(error, reason) {
17
19
  return typeof details === "object" && details !== null && "reason" in details && details.reason === reason;
18
20
  }
19
21
  //#endregion
20
- export { GATEWAY_RESTART_UNAVAILABLE_REASON, GATEWAY_SUSPEND_UNAVAILABLE_REASON, isGatewayRestartUnavailableError, isGatewaySuspendUnavailableError };
22
+ export { GATEWAY_RESTART_UNAVAILABLE_REASON, GATEWAY_SUSPEND_IDENTITY_RETRY_AFTER_MS, GATEWAY_SUSPEND_UNAVAILABLE_REASON, isGatewayRestartUnavailableError, isGatewaySuspendUnavailableError };