mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 12:56:01 -06:00
fix(android): support gateway protocol v3 (#106205)
This commit is contained in:
committed by
GitHub
parent
c43c960aad
commit
16b1bd2032
@@ -3,7 +3,7 @@ import { promises as fs } from "node:fs";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import {
|
||||
MIN_CLIENT_PROTOCOL_VERSION,
|
||||
MIN_NODE_PROTOCOL_VERSION,
|
||||
PROTOCOL_VERSION,
|
||||
ProtocolSchemas,
|
||||
} from "../packages/gateway-protocol/src/schema.js";
|
||||
@@ -326,7 +326,8 @@ async function generate(): Promise<void> {
|
||||
"import kotlinx.serialization.json.JsonElement",
|
||||
"",
|
||||
`const val GATEWAY_PROTOCOL_VERSION = ${PROTOCOL_VERSION}`,
|
||||
`const val GATEWAY_MIN_PROTOCOL_VERSION = ${MIN_CLIENT_PROTOCOL_VERSION}`,
|
||||
// Android consumes v3 message-only chat deltas and uses the N-1 node transport.
|
||||
`const val GATEWAY_MIN_PROTOCOL_VERSION = ${MIN_NODE_PROTOCOL_VERSION}`,
|
||||
"",
|
||||
...emitWireModels().flatMap((model) => [model, ""]),
|
||||
emitGatewayCatalogEnum("GatewayMethod", gatewayMethods),
|
||||
|
||||
Reference in New Issue
Block a user