Step 4 (Needs Review)

This commit is contained in:
Tyler Yust authored and Peter Steinberger committed 2026-01-20 12:07:54 +00:00
1 parent 7870ce8177
commit 2cf444be02
5 files changed
+279 -41

No files matched your search

+2 -13
View File
@@ -5,6 +5,7 @@ import type { ChannelAccountSnapshot, ChannelPlugin, ClawdbotConfig } from "claw
import {
applyAccountNameToChannelSection,
buildChannelConfigSchema,
collectBlueBubblesStatusIssues,
DEFAULT_ACCOUNT_ID,
deleteAccountFromConfigSection,
formatPairingApproveHint,
@@ -331,19 +332,7 @@ export const bluebubblesPlugin: ChannelPlugin<ResolvedBlueBubblesAccount> = {
lastStopAt: null,
lastError: null,
},
collectStatusIssues: (accounts) =>
accounts.flatMap((account) => {
const lastError = typeof account.lastError === "string" ? account.lastError.trim() : "";
if (!lastError) return [];
return [
{
channel: "bluebubbles",
accountId: account.accountId,
kind: "runtime",
message: `Channel error: ${lastError}`,
},
];
}),
collectStatusIssues: collectBlueBubblesStatusIssues,
buildChannelSummary: ({ snapshot }) => ({
configured: snapshot.configured ?? false,
baseUrl: snapshot.baseUrl ?? null,