Skip to content

Commit fcc0425

Browse files
committed
build(deps): refresh workspace dependencies
1 parent 8654144 commit fcc0425

35 files changed

Lines changed: 170 additions & 197 deletions

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Docs: https://docs.openclaw.ai
2424
- CLI/onboarding: improve setup, onboarding, configure, and channel command wayfinding so terminal flows explain the next useful command instead of relying on terse setup labels.
2525
- Agents/Codex: remove the configurable Codex dynamic-tools profile so Codex app-server always owns workspace, edit, patch, exec, process, and plan tools while OpenClaw integration tools remain available.
2626
- macOS app: update the Peekaboo bridge dependency to Peekaboo 3.0.0.
27+
- Dependencies: refresh workspace pins and move the WhatsApp plugin from `@whiskeysockets/baileys` to `baileys` while keeping the `7.0.0-rc10` runtime.
2728

2829
### Fixes
2930

docs/install/bun.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ Bun is an optional local runtime for running TypeScript directly (`bun run ...`,
3939

4040
Bun blocks dependency lifecycle scripts unless explicitly trusted. For this repo, the commonly blocked scripts are not required:
4141

42-
- `@whiskeysockets/baileys` `preinstall` -- checks Node major >= 20 (OpenClaw defaults to Node 24 and still supports Node 22 LTS, currently `22.16+`)
42+
- `baileys` `preinstall` -- checks Node major >= 20 (OpenClaw defaults to Node 24 and still supports Node 22 LTS, currently `22.16+`)
4343
- `protobufjs` `postinstall` -- emits warnings about incompatible version schemes (no build artifacts)
4444

4545
If you hit a runtime issue that requires these scripts, trust them explicitly:
4646

4747
```sh
48-
bun pm trust @whiskeysockets/baileys protobufjs
48+
bun pm trust baileys protobufjs
4949
```
5050

5151
## Caveats

extensions/whatsapp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"type": "module",
1010
"dependencies": {
11-
"@whiskeysockets/baileys": "7.0.0-rc10",
11+
"baileys": "7.0.0-rc10",
1212
"https-proxy-agent": "^9.0.0",
1313
"jimp": "^1.6.1",
1414
"typebox": "1.1.38",

extensions/whatsapp/setup-entry.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, expect, it, vi } from "vitest";
22

3-
vi.mock("@whiskeysockets/baileys", () => {
3+
vi.mock("baileys", () => {
44
throw new Error("setup plugin load must not load Baileys");
55
});
66

extensions/whatsapp/src/auto-reply/util.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export function isLikelyWhatsAppCryptoError(reason: unknown) {
5555
return false;
5656
}
5757
return (
58-
haystack.includes("@whiskeysockets/baileys") ||
5958
haystack.includes("baileys") ||
6059
haystack.includes("noise-handler") ||
6160
haystack.includes("aesdecryptgcm")

extensions/whatsapp/src/auto-reply/web-auto-reply-utils.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ describe("web auto-reply util", () => {
342342
describe("isLikelyWhatsAppCryptoError", () => {
343343
it("matches known Baileys crypto auth errors (Error)", () => {
344344
const err = new Error("bad mac");
345-
err.stack = "at something\nat @whiskeysockets/baileys/noise-handler\n";
345+
err.stack = "at something\nat baileys/noise-handler\n";
346346
expect(isLikelyWhatsAppCryptoError(err)).toBe(true);
347347
});
348348

extensions/whatsapp/src/connection-controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DisconnectReason, type WASocket } from "@whiskeysockets/baileys";
1+
import { DisconnectReason, type WASocket } from "baileys";
22
import { info } from "openclaw/plugin-sdk/runtime-env";
33
import type { RuntimeEnv } from "openclaw/plugin-sdk/runtime-env";
44
import {

extensions/whatsapp/src/inbound.media.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,8 @@ const HOME = path.join(os.tmpdir(), `openclaw-inbound-media-${crypto.randomUUID(
9393
const ORIGINAL_HOME = process.env.HOME;
9494
process.env.HOME = HOME;
9595

96-
vi.mock("@whiskeysockets/baileys", async () => {
97-
const actual =
98-
await vi.importActual<typeof import("@whiskeysockets/baileys")>("@whiskeysockets/baileys");
96+
vi.mock("baileys", async () => {
97+
const actual = await vi.importActual<typeof import("baileys")>("baileys");
9998
const jpegBuffer = Buffer.from([
10099
0xff, 0xd8, 0xff, 0xdb, 0x00, 0x43, 0x00, 0x03, 0x02, 0x02, 0x02, 0x02, 0x02, 0x03, 0x02, 0x02,
101100
0x02, 0x03, 0x03, 0x03, 0x03, 0x04, 0x06, 0x04, 0x04, 0x04, 0x04, 0x04, 0x08, 0x06, 0x06, 0x05,

extensions/whatsapp/src/inbound.test.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ describe("web inbound helpers", () => {
1010
it("prefers the main conversation body", () => {
1111
const body = extractText({
1212
conversation: " hello ",
13-
} as unknown as import("@whiskeysockets/baileys").proto.IMessage);
13+
} as unknown as import("baileys").proto.IMessage);
1414
expect(body).toBe("hello");
1515
});
1616

1717
it("falls back to captions when conversation text is missing", () => {
1818
const body = extractText({
1919
imageMessage: { caption: " caption " },
20-
} as unknown as import("@whiskeysockets/baileys").proto.IMessage);
20+
} as unknown as import("baileys").proto.IMessage);
2121
expect(body).toBe("caption");
2222
});
2323

2424
it("handles document captions", () => {
2525
const body = extractText({
2626
documentMessage: { caption: " doc " },
27-
} as unknown as import("@whiskeysockets/baileys").proto.IMessage);
27+
} as unknown as import("baileys").proto.IMessage);
2828
expect(body).toBe("doc");
2929
});
3030

@@ -40,7 +40,7 @@ describe("web inbound helpers", () => {
4040
"END:VCARD",
4141
].join("\n"),
4242
},
43-
} as unknown as import("@whiskeysockets/baileys").proto.IMessage);
43+
} as unknown as import("baileys").proto.IMessage);
4444
expect(body).toBe("<contact>");
4545
expect(
4646
extractContactContext({
@@ -54,7 +54,7 @@ describe("web inbound helpers", () => {
5454
"END:VCARD",
5555
].join("\n"),
5656
},
57-
} as unknown as import("@whiskeysockets/baileys").proto.IMessage),
57+
} as unknown as import("baileys").proto.IMessage),
5858
).toEqual({
5959
kind: "contact",
6060
total: 1,
@@ -74,7 +74,7 @@ describe("web inbound helpers", () => {
7474
"END:VCARD",
7575
].join("\n"),
7676
},
77-
} as unknown as import("@whiskeysockets/baileys").proto.IMessage);
77+
} as unknown as import("baileys").proto.IMessage);
7878
expect(body).toBe("<contact>");
7979
});
8080

@@ -89,7 +89,7 @@ describe("web inbound helpers", () => {
8989
"END:VCARD",
9090
].join("\n"),
9191
},
92-
} as unknown as import("@whiskeysockets/baileys").proto.IMessage);
92+
} as unknown as import("baileys").proto.IMessage);
9393
expect(body).toBe("<contact>");
9494
});
9595

@@ -106,7 +106,7 @@ describe("web inbound helpers", () => {
106106
"END:VCARD",
107107
].join("\n"),
108108
},
109-
} as unknown as import("@whiskeysockets/baileys").proto.IMessage);
109+
} as unknown as import("baileys").proto.IMessage);
110110
expect(body).toBe("<contact>");
111111
});
112112

@@ -157,7 +157,7 @@ describe("web inbound helpers", () => {
157157
},
158158
],
159159
},
160-
} as unknown as import("@whiskeysockets/baileys").proto.IMessage);
160+
} as unknown as import("baileys").proto.IMessage);
161161
expect(body).toBe("<contacts: 4 contacts>");
162162
});
163163

@@ -179,7 +179,7 @@ describe("web inbound helpers", () => {
179179
{},
180180
],
181181
},
182-
} as unknown as import("@whiskeysockets/baileys").proto.IMessage);
182+
} as unknown as import("baileys").proto.IMessage);
183183
expect(body).toBe("<contacts: 3 contacts>");
184184
});
185185

@@ -195,7 +195,7 @@ describe("web inbound helpers", () => {
195195
"END:VCARD",
196196
].join("\n"),
197197
},
198-
} as unknown as import("@whiskeysockets/baileys").proto.IMessage);
198+
} as unknown as import("baileys").proto.IMessage);
199199
expect(body).toBe("<contact>");
200200
expect(body).not.toContain("Yohann >");
201201
expect(body).not.toContain("<Eric");
@@ -211,7 +211,7 @@ describe("web inbound helpers", () => {
211211
"END:VCARD",
212212
].join("\n"),
213213
},
214-
} as unknown as import("@whiskeysockets/baileys").proto.IMessage);
214+
} as unknown as import("baileys").proto.IMessage);
215215
expect(context?.contacts[0]?.name).toContain("Yohann >");
216216
});
217217

@@ -220,7 +220,7 @@ describe("web inbound helpers", () => {
220220
contactsArrayMessage: {
221221
contacts: [{}, {}],
222222
},
223-
} as unknown as import("@whiskeysockets/baileys").proto.IMessage);
223+
} as unknown as import("baileys").proto.IMessage);
224224
expect(body).toBe("<contacts: 2 contacts>");
225225
});
226226

@@ -229,20 +229,20 @@ describe("web inbound helpers", () => {
229229
viewOnceMessageV2Extension: {
230230
message: { conversation: " hello " },
231231
},
232-
} as unknown as import("@whiskeysockets/baileys").proto.IMessage);
232+
} as unknown as import("baileys").proto.IMessage);
233233
expect(body).toBe("hello");
234234
});
235235

236236
it("returns placeholders for media-only payloads", () => {
237237
expect(
238238
extractMediaPlaceholder({
239239
imageMessage: {},
240-
} as unknown as import("@whiskeysockets/baileys").proto.IMessage),
240+
} as unknown as import("baileys").proto.IMessage),
241241
).toBe("<media:image>");
242242
expect(
243243
extractMediaPlaceholder({
244244
audioMessage: {},
245-
} as unknown as import("@whiskeysockets/baileys").proto.IMessage),
245+
} as unknown as import("baileys").proto.IMessage),
246246
).toBe("<media:audio>");
247247
});
248248

@@ -256,7 +256,7 @@ describe("web inbound helpers", () => {
256256
accuracyInMeters: 12,
257257
comment: "Meet here",
258258
},
259-
} as unknown as import("@whiskeysockets/baileys").proto.IMessage);
259+
} as unknown as import("baileys").proto.IMessage);
260260
expect(location).toEqual({
261261
latitude: 48.858844,
262262
longitude: 2.294351,
@@ -277,7 +277,7 @@ describe("web inbound helpers", () => {
277277
accuracyInMeters: 20,
278278
caption: "On the move",
279279
},
280-
} as unknown as import("@whiskeysockets/baileys").proto.IMessage);
280+
} as unknown as import("baileys").proto.IMessage);
281281
expect(location).toEqual({
282282
latitude: 37.819929,
283283
longitude: -122.478255,

extensions/whatsapp/src/inbound/extract.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { proto } from "@whiskeysockets/baileys";
1+
import type { proto } from "baileys";
22
import { describe, expect, it } from "vitest";
33
import { extractMentionedJids, hasInboundUserContent } from "./extract.js";
44

0 commit comments

Comments
 (0)