From 5c1ed5e6ee7ada8aac40bb9b6cd53b0e694fad23 Mon Sep 17 00:00:00 2001 From: paisley <8197966+su8su@users.noreply.github.com> Date: Mon, 11 May 2026 19:29:17 +0800 Subject: [PATCH] fix missing deps (#1005) --- scripts/openclaw-bundle-config.mjs | 12 ++++++++++++ tests/unit/openclaw-bundle-config.test.ts | 2 ++ 2 files changed, 14 insertions(+) diff --git a/scripts/openclaw-bundle-config.mjs b/scripts/openclaw-bundle-config.mjs index 90dadf8..a704880 100644 --- a/scripts/openclaw-bundle-config.mjs +++ b/scripts/openclaw-bundle-config.mjs @@ -17,6 +17,18 @@ export const EXTRA_BUNDLED_PACKAGES = [ 'mpg123-decoder', 'silk-wasm', + // The built-in acpx extension already ships its direct "acpx" package under + // dist/extensions/acpx/node_modules, but its runtime path reaches + // "acpx/runtime", whose reachable bare runtime dependency is + // @agentclientprotocol/sdk. Package it explicitly to keep packaged builds + // self-contained even when the extension dep graph is flattened. + '@agentclientprotocol/sdk', + + // OpenClaw's built-in browser extension resolves playwright-core at runtime. + // Package it explicitly because it is not always present in openclaw's own + // transitive dependency graph from the app bundle context. + 'playwright-core', + // Electron main process QR login flows resolve these files from the // bundled OpenClaw runtime context in packaged builds. 'qrcode-terminal', diff --git a/tests/unit/openclaw-bundle-config.test.ts b/tests/unit/openclaw-bundle-config.test.ts index 9a64c4b..ff6fd25 100644 --- a/tests/unit/openclaw-bundle-config.test.ts +++ b/tests/unit/openclaw-bundle-config.test.ts @@ -18,6 +18,8 @@ describe('openclaw bundle config', () => { '@tencent-connect/qqbot-connector', 'mpg123-decoder', 'silk-wasm', + '@agentclientprotocol/sdk', + 'playwright-core', 'qrcode-terminal', ])); });