style: apply formatter fixes

This commit is contained in:
Peter Steinberger
2026-04-20 12:27:15 +01:00
parent 6686533d19
commit 6c711a64cb
4 changed files with 10 additions and 18 deletions

View File

@@ -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";

View File

@@ -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/);
});
});
});

View File

@@ -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.");

View File

@@ -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",
},
}),
);