diff --git a/src/agents/tools/sessions-send-helpers.ts b/src/agents/tools/sessions-send-helpers.ts index c8613b179..5e758d426 100644 --- a/src/agents/tools/sessions-send-helpers.ts +++ b/src/agents/tools/sessions-send-helpers.ts @@ -25,8 +25,7 @@ export function resolveAnnounceTargetFromKey(sessionKey: string): AnnounceTarget const id = rest.join(":").trim(); if (!id) return null; if (!channelRaw) return null; - const normalizedChannel = - normalizeAnyChannelId(channelRaw) ?? normalizeChatChannelId(channelRaw); + const normalizedChannel = normalizeAnyChannelId(channelRaw) ?? normalizeChatChannelId(channelRaw); const channel = normalizedChannel ?? channelRaw.toLowerCase(); const kindTarget = (() => { if (!normalizedChannel) return id; diff --git a/src/auto-reply/envelope.ts b/src/auto-reply/envelope.ts index 348d8ed68..513be2aa4 100644 --- a/src/auto-reply/envelope.ts +++ b/src/auto-reply/envelope.ts @@ -122,7 +122,10 @@ function formatZonedTimestamp(date: Date, timeZone?: string): string | undefined return `${yyyy}-${mm}-${dd} ${hh}:${min}${tz ? ` ${tz}` : ""}`; } -function formatTimestamp(ts: number | Date | undefined, options?: EnvelopeFormatOptions): string | undefined { +function formatTimestamp( + ts: number | Date | undefined, + options?: EnvelopeFormatOptions, +): string | undefined { if (!ts) return undefined; const resolved = normalizeEnvelopeOptions(options); if (!resolved.includeTimestamp) return undefined; diff --git a/src/cli/gateway.sigterm.test.ts b/src/cli/gateway.sigterm.test.ts index 24fc2723e..5577c29f4 100644 --- a/src/cli/gateway.sigterm.test.ts +++ b/src/cli/gateway.sigterm.test.ts @@ -93,7 +93,15 @@ describe("gateway SIGTERM", () => { child = spawn( bunBin, - ["src/entry.ts", "gateway", "--port", String(port), "--bind", "loopback", "--allow-unconfigured"], + [ + "src/entry.ts", + "gateway", + "--port", + String(port), + "--bind", + "loopback", + "--allow-unconfigured", + ], { cwd: process.cwd(), env: { diff --git a/src/commands/model-picker.test.ts b/src/commands/model-picker.test.ts index edd56994e..12ea171ab 100644 --- a/src/commands/model-picker.test.ts +++ b/src/commands/model-picker.test.ts @@ -60,8 +60,8 @@ describe("promptDefaultModel", () => { const options = select.mock.calls[0]?.[0]?.options ?? []; expect(options.some((opt) => opt.value === "openrouter/auto")).toBe(false); - expect( - options.some((opt) => opt.value === "openrouter/meta-llama/llama-3.3-70b:free"), - ).toBe(true); + expect(options.some((opt) => opt.value === "openrouter/meta-llama/llama-3.3-70b:free")).toBe( + true, + ); }); }); diff --git a/src/config/schema.ts b/src/config/schema.ts index 854c56986..f61713fce 100644 --- a/src/config/schema.ts +++ b/src/config/schema.ts @@ -378,8 +378,7 @@ const FIELD_HELP: Record = { 'Timezone for message envelopes ("utc", "local", "user", or an IANA timezone string).', "agents.defaults.envelopeTimestamp": 'Include absolute timestamps in message envelopes ("on" or "off").', - "agents.defaults.envelopeElapsed": - 'Include elapsed time in message envelopes ("on" or "off").', + "agents.defaults.envelopeElapsed": 'Include elapsed time in message envelopes ("on" or "off").', "agents.defaults.models": "Configured model catalog (keys are full provider/model IDs).", "agents.defaults.memorySearch": "Vector search over MEMORY.md and memory/*.md (per-agent overrides supported).", diff --git a/src/plugins/slots.test.ts b/src/plugins/slots.test.ts index c2a165dea..53438c97b 100644 --- a/src/plugins/slots.test.ts +++ b/src/plugins/slots.test.ts @@ -33,9 +33,7 @@ describe("applyExclusiveSlotSelection", () => { expect(result.warnings).toContain( 'Exclusive slot "memory" switched from "memory-core" to "memory".', ); - expect(result.warnings).toContain( - 'Disabled other "memory" slot plugins: memory-core.', - ); + expect(result.warnings).toContain('Disabled other "memory" slot plugins: memory-core.'); }); it("does nothing when the slot already matches", () => { diff --git a/src/plugins/slots.ts b/src/plugins/slots.ts index 05e06dc5c..bae1c1fe1 100644 --- a/src/plugins/slots.ts +++ b/src/plugins/slots.ts @@ -76,9 +76,7 @@ export function applyExclusiveSlotSelection(params: { } if (disabledIds.length > 0) { - warnings.push( - `Disabled other "${slotKey}" slot plugins: ${disabledIds.sort().join(", ")}.`, - ); + warnings.push(`Disabled other "${slotKey}" slot plugins: ${disabledIds.sort().join(", ")}.`); } const changed = prevSlot !== params.selectedId || disabledIds.length > 0; diff --git a/src/slack/monitor/message-handler/prepare.ts b/src/slack/monitor/message-handler/prepare.ts index 27872151e..f3131377e 100644 --- a/src/slack/monitor/message-handler/prepare.ts +++ b/src/slack/monitor/message-handler/prepare.ts @@ -404,18 +404,18 @@ export async function prepareSlackMessage(params: { limit: ctx.historyLimit, currentMessage: combinedBody, formatEntry: (entry) => - formatInboundEnvelope({ - channel: "Slack", - from: roomLabel, - timestamp: entry.timestamp, - body: `${entry.body}${ - entry.messageId ? ` [id:${entry.messageId} channel:${message.channel}]` : "" - }`, - chatType: "channel", - senderLabel: entry.sender, - envelope: envelopeOptions, - }), - }); + formatInboundEnvelope({ + channel: "Slack", + from: roomLabel, + timestamp: entry.timestamp, + body: `${entry.body}${ + entry.messageId ? ` [id:${entry.messageId} channel:${message.channel}]` : "" + }`, + chatType: "channel", + senderLabel: entry.sender, + envelope: envelopeOptions, + }), + }); } const slackTo = isDirectMessage ? `user:${message.user}` : `channel:${message.channel}`; diff --git a/src/web/auto-reply/monitor/message-line.ts b/src/web/auto-reply/monitor/message-line.ts index ad51574f4..eddfbd039 100644 --- a/src/web/auto-reply/monitor/message-line.ts +++ b/src/web/auto-reply/monitor/message-line.ts @@ -1,8 +1,5 @@ import { resolveMessagePrefix } from "../../../agents/identity.js"; -import { - formatInboundEnvelope, - type EnvelopeFormatOptions, -} from "../../../auto-reply/envelope.js"; +import { formatInboundEnvelope, type EnvelopeFormatOptions } from "../../../auto-reply/envelope.js"; import type { loadConfig } from "../../../config/config.js"; import type { WebInboundMsg } from "../types.js";