Files
clawX/scripts/openclaw-bundle-config.mjs
2026-05-17 23:28:09 +08:00

40 lines
1.5 KiB
JavaScript

export const EXTRA_BUNDLED_PACKAGES = [
'@whiskeysockets/baileys',
// Built-in channel/runtime extension deps that are not always pulled in by the
// OpenClaw package's own transitive dependency graph, but are required in
// packaged builds when dist/extensions/<channel>/*.js resolves bare imports
// from resources/openclaw/node_modules.
'@larksuiteoapi/node-sdk',
'@grammyjs/runner',
'@grammyjs/transformer-throttler',
'grammy',
'@buape/carbon',
'@discordjs/voice',
'discord-api-types',
'opusscript',
'@tencent-connect/qqbot-connector',
'mpg123-decoder',
'silk-wasm',
// The built-in acpx extension resolves the npm "acpx" runtime from the
// bundled OpenClaw context in packaged builds. Package it explicitly so
// the packaged runtime has acpx@0.5.3 available even when extension
// node_modules are flattened or skipped by electron-builder.
'acpx',
// 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',
// The Codex agent harness is published as an OpenClaw extension package.
// Bundle it with the runtime so openai-codex models can register the codex
// harness in packaged builds.
'@openclaw/codex',
// Electron main process QR login flows resolve these files from the
// bundled OpenClaw runtime context in packaged builds.
'qrcode-terminal',
];