From 7df025f45781fe57d12c84dd8ecdd67dc149ddaf Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 1 May 2026 16:06:22 +0100 Subject: [PATCH] refactor: trim bluebubbles config helper exports --- extensions/bluebubbles/src/targets.ts | 2 +- extensions/bluebubbles/src/types.ts | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/extensions/bluebubbles/src/targets.ts b/extensions/bluebubbles/src/targets.ts index 3a54716c2db..7ec5233b2b6 100644 --- a/extensions/bluebubbles/src/targets.ts +++ b/extensions/bluebubbles/src/targets.ts @@ -19,7 +19,7 @@ type BlueBubblesTarget = | { kind: "chat_identifier"; chatIdentifier: string } | { kind: "handle"; to: string; service: BlueBubblesService }; -export type BlueBubblesAllowTarget = ParsedChatTarget | { kind: "handle"; handle: string }; +type BlueBubblesAllowTarget = ParsedChatTarget | { kind: "handle"; handle: string }; const CHAT_ID_PREFIXES = ["chat_id:", "chatid:", "chat:"]; const CHAT_GUID_PREFIXES = ["chat_guid:", "chatguid:", "guid:"]; diff --git a/extensions/bluebubbles/src/types.ts b/extensions/bluebubbles/src/types.ts index f9f2e976a5c..bd2230de9d6 100644 --- a/extensions/bluebubbles/src/types.ts +++ b/extensions/bluebubbles/src/types.ts @@ -2,10 +2,7 @@ import { fetchWithRuntimeDispatcherOrMockedGlobal } from "openclaw/plugin-sdk/ru import type { DmPolicy, GroupPolicy } from "openclaw/plugin-sdk/setup"; import { fetchWithSsrFGuard, type SsrFPolicy } from "openclaw/plugin-sdk/ssrf-runtime"; -export type { SsrFPolicy } from "openclaw/plugin-sdk/ssrf-runtime"; -export type { DmPolicy, GroupPolicy } from "openclaw/plugin-sdk/setup"; - -export type BlueBubblesGroupConfig = { +type BlueBubblesGroupConfig = { /** If true, only respond in this group when mentioned. */ requireMention?: boolean; /** Optional tool policy overrides for this group. */ @@ -17,7 +14,7 @@ export type BlueBubblesGroupConfig = { systemPrompt?: string; }; -export type BlueBubblesActionConfig = { +type BlueBubblesActionConfig = { reactions?: boolean; edit?: boolean; unsend?: boolean; @@ -31,7 +28,7 @@ export type BlueBubblesActionConfig = { sendAttachment?: boolean; }; -export type BlueBubblesNetworkConfig = { +type BlueBubblesNetworkConfig = { /** Dangerous opt-in for same-host or trusted private/internal BlueBubbles deployments. */ dangerouslyAllowPrivateNetwork?: boolean; };