@openclaw/raft 2026.7.1 → 2026.7.2-beta.1

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.
@@ -1,16 +1,17 @@
1
1
  import { a as resolveRaftAccount, i as resolveDefaultRaftAccountId, n as RAFT_CHANNEL_ID, r as listRaftAccountIds, t as raftSetupPlugin } from "./setup-BTG_4kEW.js";
2
2
  import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
3
3
  import { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
4
- import { buildBaseChannelStatusSummary, createComputedAccountStatusAdapter, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/status-helpers";
5
4
  import { detectBinary } from "openclaw/plugin-sdk/setup-tools";
5
+ import { buildBaseChannelStatusSummary, createComputedAccountStatusAdapter, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/status-helpers";
6
6
  import { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
7
7
  import { z } from "zod";
8
8
  import { spawn } from "node:child_process";
9
- import { createHash, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
9
+ import { createHash, randomBytes, randomUUID } from "node:crypto";
10
10
  import { createServer } from "node:http";
11
11
  import { keepHttpServerTaskAlive, waitUntilAbort } from "openclaw/plugin-sdk/channel-outbound";
12
12
  import { KeyedAsyncQueue } from "openclaw/plugin-sdk/keyed-async-queue";
13
13
  import { createClaimableDedupe } from "openclaw/plugin-sdk/persistent-dedupe";
14
+ import { safeEqualSecret } from "openclaw/plugin-sdk/security-runtime";
14
15
  //#region extensions/raft/src/config-schema.ts
15
16
  const RaftAccountSchema = z.object({
16
17
  name: z.string().optional(),
@@ -168,9 +169,7 @@ function spawnRaftBridge(params) {
168
169
  function hasMatchingToken(request, expected) {
169
170
  const value = request.headers[WAKE_TOKEN_HEADER];
170
171
  if (typeof value !== "string") return false;
171
- const received = Buffer.from(value);
172
- const required = Buffer.from(expected);
173
- return received.length === required.length && timingSafeEqual(received, required);
172
+ return safeEqualSecret(value, expected);
174
173
  }
175
174
  async function readWakePayload(request) {
176
175
  const chunks = [];
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@openclaw/raft",
3
- "version": "2026.7.1",
3
+ "version": "2026.7.2-beta.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/raft",
9
- "version": "2026.7.1",
9
+ "version": "2026.7.2-beta.1",
10
10
  "dependencies": {
11
11
  "zod": "4.4.3"
12
12
  },
13
13
  "peerDependencies": {
14
- "openclaw": ">=2026.7.1"
14
+ "openclaw": ">=2026.7.2-beta.1"
15
15
  },
16
16
  "peerDependenciesMeta": {
17
17
  "openclaw": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/raft",
3
- "version": "2026.7.1",
3
+ "version": "2026.7.2-beta.1",
4
4
  "description": "OpenClaw Raft channel plugin for Raft CLI wake bridges.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,7 +11,7 @@
11
11
  "zod": "4.4.3"
12
12
  },
13
13
  "peerDependencies": {
14
- "openclaw": ">=2026.7.1"
14
+ "openclaw": ">=2026.7.2-beta.1"
15
15
  },
16
16
  "peerDependenciesMeta": {
17
17
  "openclaw": {
@@ -29,10 +29,10 @@
29
29
  "minHostVersion": ">=2026.6.8"
30
30
  },
31
31
  "compat": {
32
- "pluginApi": ">=2026.7.1"
32
+ "pluginApi": ">=2026.7.2-beta.1"
33
33
  },
34
34
  "build": {
35
- "openclawVersion": "2026.7.1"
35
+ "openclawVersion": "2026.7.2-beta.1"
36
36
  },
37
37
  "channel": {
38
38
  "id": "raft",