@cfio/cohort-sync 0.26.0 → 0.27.0
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/index.js +9 -4
- package/dist/openclaw.plugin.json +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12375,8 +12375,13 @@ function buildConnectFrame(id, token, pluginVersion, identity, nonce) {
|
|
|
12375
12375
|
id,
|
|
12376
12376
|
method: "connect",
|
|
12377
12377
|
params: {
|
|
12378
|
+
// OpenClaw 2026.5.x bumped the gateway WebSocket protocol from v3 → v4
|
|
12379
|
+
// (see openclaw dist message-handler: `expectedProtocol: 4`). The
|
|
12380
|
+
// server requires `maxProtocol >= 4`. We advertise support for both
|
|
12381
|
+
// v3 and v4 so the same client works against older servers too;
|
|
12382
|
+
// openclaw negotiates the highest mutually-supported version.
|
|
12378
12383
|
minProtocol: 3,
|
|
12379
|
-
maxProtocol:
|
|
12384
|
+
maxProtocol: 4,
|
|
12380
12385
|
client: {
|
|
12381
12386
|
id: "gateway-client",
|
|
12382
12387
|
version: pluginVersion,
|
|
@@ -12523,7 +12528,7 @@ var GatewayClient = class {
|
|
|
12523
12528
|
this.deviceIdentity,
|
|
12524
12529
|
challengeNonce
|
|
12525
12530
|
);
|
|
12526
|
-
this.logger.debug("cohort-sync: sending connect", { id,
|
|
12531
|
+
this.logger.debug("cohort-sync: sending connect", { id, minProtocol: 3, maxProtocol: 4 });
|
|
12527
12532
|
ws.send(JSON.stringify(frame));
|
|
12528
12533
|
const onHelloMessage = (event) => {
|
|
12529
12534
|
try {
|
|
@@ -12548,7 +12553,7 @@ var GatewayClient = class {
|
|
|
12548
12553
|
if (result.snapshot) {
|
|
12549
12554
|
this.emit("snapshot", result.snapshot);
|
|
12550
12555
|
}
|
|
12551
|
-
this.logger.info("cohort-sync: gateway client connected
|
|
12556
|
+
this.logger.info("cohort-sync: gateway client connected");
|
|
12552
12557
|
settle();
|
|
12553
12558
|
} catch (err) {
|
|
12554
12559
|
this.logger.debug("cohort-sync: hello failed", { error: String(err) });
|
|
@@ -13426,7 +13431,7 @@ function dumpCtx(ctx) {
|
|
|
13426
13431
|
function dumpEvent(event) {
|
|
13427
13432
|
return dumpCtx(event);
|
|
13428
13433
|
}
|
|
13429
|
-
var PLUGIN_VERSION = true ? "0.
|
|
13434
|
+
var PLUGIN_VERSION = true ? "0.27.0" : "unknown";
|
|
13430
13435
|
function resolveGatewayToken(api) {
|
|
13431
13436
|
const token = api.config?.gateway?.auth?.token;
|
|
13432
13437
|
return typeof token === "string" ? token : null;
|
package/dist/package.json
CHANGED
package/package.json
CHANGED