From 6c711a64cbf3dfdcf66b5381ada215b80935e1c9 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 20 Apr 2026 12:27:15 +0100 Subject: [PATCH] style: apply formatter fixes --- extensions/bluebubbles/src/monitor-processing.ts | 5 +---- extensions/bluebubbles/src/reactions.test.ts | 4 +--- extensions/bluebubbles/src/reactions.ts | 5 +---- src/cron/delivery-plan.test.ts | 14 +++++++------- 4 files changed, 10 insertions(+), 18 deletions(-) diff --git a/extensions/bluebubbles/src/monitor-processing.ts b/extensions/bluebubbles/src/monitor-processing.ts index 077f8724933..130acda2b42 100644 --- a/extensions/bluebubbles/src/monitor-processing.ts +++ b/extensions/bluebubbles/src/monitor-processing.ts @@ -70,10 +70,7 @@ import type { } from "./monitor-shared.js"; import { enrichBlueBubblesParticipantsWithContactNames } from "./participant-contact-names.js"; import { isBlueBubblesPrivateApiEnabled } from "./probe.js"; -import { - normalizeBlueBubblesReactionInputStrict, - sendBlueBubblesReaction, -} from "./reactions.js"; +import { normalizeBlueBubblesReactionInputStrict, sendBlueBubblesReaction } from "./reactions.js"; import type { OpenClawConfig } from "./runtime-api.js"; import { normalizeSecretInputString } from "./secret-input.js"; import { resolveChatGuidForTarget, sendMessageBlueBubbles } from "./send.js"; diff --git a/extensions/bluebubbles/src/reactions.test.ts b/extensions/bluebubbles/src/reactions.test.ts index 41d316d462a..e1a52512a98 100644 --- a/extensions/bluebubbles/src/reactions.test.ts +++ b/extensions/bluebubbles/src/reactions.test.ts @@ -411,9 +411,7 @@ describe("reactions", () => { it("still throws on empty input (strict error bubbles up unchanged)", () => { // Empty input is a contract error from the caller, not a decorative // emoji the model picked; we intentionally do not mask it. - expect(() => normalizeBlueBubblesReactionInput("")).toThrow( - /requires an emoji or name/, - ); + expect(() => normalizeBlueBubblesReactionInput("")).toThrow(/requires an emoji or name/); }); }); }); diff --git a/extensions/bluebubbles/src/reactions.ts b/extensions/bluebubbles/src/reactions.ts index 9087b0091cc..d2b08e1d391 100644 --- a/extensions/bluebubbles/src/reactions.ts +++ b/extensions/bluebubbles/src/reactions.ts @@ -119,10 +119,7 @@ const UNSUPPORTED_REACTION_ERROR = "UnsupportedBlueBubblesReaction"; * need to detect unsupported input (e.g. config sanity checks) rather * than gracefully substituting a fallback. */ -export function normalizeBlueBubblesReactionInputStrict( - emoji: string, - remove?: boolean, -): string { +export function normalizeBlueBubblesReactionInputStrict(emoji: string, remove?: boolean): string { const trimmed = emoji.trim(); if (!trimmed) { throw new Error("BlueBubbles reaction requires an emoji or name."); diff --git a/src/cron/delivery-plan.test.ts b/src/cron/delivery-plan.test.ts index 7d85512b9fe..ccffba972de 100644 --- a/src/cron/delivery-plan.test.ts +++ b/src/cron/delivery-plan.test.ts @@ -25,13 +25,13 @@ describe("resolveCronDeliveryPlan", () => { makeJob({ name: "Cron Target Context", payload: { kind: "agentTurn", message: "send a message" }, - delivery: { - mode: "none", - channel: "telegram", - to: "123:topic:42", - threadId: 42, - accountId: "ops", - }, + delivery: { + mode: "none", + channel: "telegram", + to: "123:topic:42", + threadId: 42, + accountId: "ops", + }, }), );