From 1e10dc1d3bf10b56666205c89a780f5efadd8bb7 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 21 Jan 2026 09:03:04 +0000 Subject: [PATCH] fix: use plugin-sdk exports in bluebubbles --- extensions/bluebubbles/src/monitor.ts | 2 +- extensions/bluebubbles/src/onboarding.ts | 16 +++++++++++----- src/plugin-sdk/index.ts | 1 + 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/extensions/bluebubbles/src/monitor.ts b/extensions/bluebubbles/src/monitor.ts index 7133107cc..0ffd2ca43 100644 --- a/extensions/bluebubbles/src/monitor.ts +++ b/extensions/bluebubbles/src/monitor.ts @@ -1,11 +1,11 @@ import type { IncomingMessage, ServerResponse } from "node:http"; import type { ClawdbotConfig } from "clawdbot/plugin-sdk"; +import { resolveAckReaction } from "clawdbot/plugin-sdk"; import { markBlueBubblesChatRead, sendBlueBubblesTyping } from "./chat.js"; import { resolveChatGuidForTarget, sendMessageBlueBubbles } from "./send.js"; import { downloadBlueBubblesAttachment } from "./attachments.js"; import { formatBlueBubblesChatTarget, isAllowedBlueBubblesSender, normalizeBlueBubblesHandle } from "./targets.js"; -import { resolveAckReaction } from "../../../src/agents/identity.js"; import { sendBlueBubblesMedia } from "./media-send.js"; import type { BlueBubblesAccountConfig, BlueBubblesAttachment } from "./types.js"; import type { ResolvedBlueBubblesAccount } from "./accounts.js"; diff --git a/extensions/bluebubbles/src/onboarding.ts b/extensions/bluebubbles/src/onboarding.ts index cfaa17b25..73f3a3642 100644 --- a/extensions/bluebubbles/src/onboarding.ts +++ b/extensions/bluebubbles/src/onboarding.ts @@ -1,11 +1,17 @@ -import type { ClawdbotConfig, DmPolicy, WizardPrompter } from "clawdbot/plugin-sdk"; -import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "clawdbot/plugin-sdk"; import type { ChannelOnboardingAdapter, ChannelOnboardingDmPolicy, -} from "../../../src/channels/plugins/onboarding-types.js"; -import { addWildcardAllowFrom, promptAccountId } from "../../../src/channels/plugins/onboarding/helpers.js"; -import { formatDocsLink } from "../../../src/terminal/links.js"; + ClawdbotConfig, + DmPolicy, + WizardPrompter, +} from "clawdbot/plugin-sdk"; +import { + DEFAULT_ACCOUNT_ID, + addWildcardAllowFrom, + formatDocsLink, + normalizeAccountId, + promptAccountId, +} from "clawdbot/plugin-sdk"; import { listBlueBubblesAccountIds, resolveBlueBubblesAccount, diff --git a/src/plugin-sdk/index.ts b/src/plugin-sdk/index.ts index 254ed7c52..8bef1da37 100644 --- a/src/plugin-sdk/index.ts +++ b/src/plugin-sdk/index.ts @@ -98,6 +98,7 @@ export { export type { RuntimeEnv } from "../runtime.js"; export type { WizardPrompter } from "../wizard/prompts.js"; export { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "../routing/session-key.js"; +export { resolveAckReaction } from "../agents/identity.js"; export type { ReplyPayload } from "../auto-reply/types.js"; export { SILENT_REPLY_TOKEN, isSilentReplyText } from "../auto-reply/tokens.js"; export {