diff --git a/CHANGELOG.md b/CHANGELOG.md index 824569b42..50ec7f446 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ Docs: https://docs.clawd.bot - macOS: suppress usage error text in the menubar cost view. - Telegram: honor pairing allowlists for native slash commands. - CLI: keep banners on routed commands, restore config guarding outside fast-path routing, and tighten fast-path flag parsing while skipping console capture for extra speed. (#1195) — thanks @gumadeiras. +- Slack: resolve Bolt import interop for Bun + Node. (#1191) — thanks @CoreyH. ## 2026.1.18-4 diff --git a/src/slack/monitor/provider.ts b/src/slack/monitor/provider.ts index 5952d2fc7..fba4e0aa3 100644 --- a/src/slack/monitor/provider.ts +++ b/src/slack/monitor/provider.ts @@ -26,7 +26,11 @@ import { normalizeAllowList } from "./allow-list.js"; import type { MonitorSlackOpts } from "./types.js"; -const { App, HTTPReceiver } = SlackBolt as typeof import("@slack/bolt"); +const slackBoltModule = SlackBolt as typeof import("@slack/bolt") & { + default?: typeof import("@slack/bolt"); +}; +const slackBolt = slackBoltModule.default ?? slackBoltModule; +const { App, HTTPReceiver } = slackBolt; function parseApiAppIdFromAppToken(raw?: string) { const token = raw?.trim(); if (!token) return undefined;