@openclaw/gateway-protocol 2026.10.10-beta.1 → 2026.10.10-beta.3

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.
@@ -52,6 +52,10 @@ export declare const GATEWAY_CLIENT_MODES: {
52
52
  readonly PROBE: "probe";
53
53
  readonly TEST: "test";
54
54
  };
55
+ export declare function isNativeAppUiClient(client?: {
56
+ id?: string | null;
57
+ mode?: string | null;
58
+ }): boolean;
55
59
  export type GatewayClientMode = (typeof GATEWAY_CLIENT_MODES)[keyof typeof GATEWAY_CLIENT_MODES];
56
60
  export type GatewayClientInfo = {
57
61
  id: GatewayClientId;
@@ -38,6 +38,9 @@ const GATEWAY_CLIENT_MODES = {
38
38
  PROBE: "probe",
39
39
  TEST: "test"
40
40
  };
41
+ function isNativeAppUiClient(client) {
42
+ return client?.mode === GATEWAY_CLIENT_MODES.UI && (client.id === GATEWAY_CLIENT_IDS.MACOS_APP || client.id === GATEWAY_CLIENT_IDS.LINUX_APP || client.id === GATEWAY_CLIENT_IDS.IOS_APP || client.id === GATEWAY_CLIENT_IDS.ANDROID_APP);
43
+ }
41
44
  /** Capability flags a client may advertise during the gateway handshake. */
42
45
  const GATEWAY_CLIENT_CAPS = {
43
46
  AGENT_KIND: "agent-kind",
@@ -83,4 +86,4 @@ function hasGatewayClientCap(caps, cap) {
83
86
  return caps.includes(cap);
84
87
  }
85
88
  //#endregion
86
- export { GATEWAY_CLIENT_CAPS, GATEWAY_CLIENT_IDS, GATEWAY_CLIENT_MODES, GATEWAY_CLIENT_NAMES, hasGatewayClientCap, normalizeGatewayClientId, normalizeGatewayClientMode, normalizeGatewayClientName };
89
+ export { GATEWAY_CLIENT_CAPS, GATEWAY_CLIENT_IDS, GATEWAY_CLIENT_MODES, GATEWAY_CLIENT_NAMES, hasGatewayClientCap, isNativeAppUiClient, normalizeGatewayClientId, normalizeGatewayClientMode, normalizeGatewayClientName };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/gateway-protocol",
3
- "version": "2026.10.10-beta.1",
3
+ "version": "2026.10.10-beta.3",
4
4
  "description": "Typed schemas and runtime validators for the OpenClaw Gateway WebSocket protocol",
5
5
  "keywords": [
6
6
  "gateway",