@openclaw/gateway-protocol 2026.10.5-beta.4 → 2026.10.6
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/dist/client-info.d.mts +4 -0
- package/dist/client-info.mjs +4 -1
- package/package.json +1 -1
package/dist/client-info.d.mts
CHANGED
|
@@ -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;
|
package/dist/client-info.mjs
CHANGED
|
@@ -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 };
|