From d887027e9567cfe60ddedfc4ec6f3f2bdff85f33 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 16 Jan 2026 21:11:55 +0000 Subject: [PATCH] style: run oxfmt --- src/agents/auth-profiles/store.ts | 5 ++++- src/agents/skills/workspace.ts | 6 +++++- src/agents/tools/canvas-tool.ts | 3 ++- src/commands/onboard-auth.credentials.ts | 3 +-- src/commands/onboard-non-interactive.ai-gateway.test.ts | 4 +--- src/telegram/bot-handlers.ts | 4 +--- src/telegram/inline-buttons.ts | 7 ++----- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/agents/auth-profiles/store.ts b/src/agents/auth-profiles/store.ts index 75fded809..3ac26740a 100644 --- a/src/agents/auth-profiles/store.ts +++ b/src/agents/auth-profiles/store.ts @@ -121,7 +121,10 @@ function mergeRecord( return { ...base, ...override }; } -function mergeAuthProfileStores(base: AuthProfileStore, override: AuthProfileStore): AuthProfileStore { +function mergeAuthProfileStores( + base: AuthProfileStore, + override: AuthProfileStore, +): AuthProfileStore { if ( Object.keys(override.profiles).length === 0 && !override.order && diff --git a/src/agents/skills/workspace.ts b/src/agents/skills/workspace.ts index e84fd4fd1..1ba430c64 100644 --- a/src/agents/skills/workspace.ts +++ b/src/agents/skills/workspace.ts @@ -30,7 +30,11 @@ const fsp = fs.promises; const skillsLogger = createSubsystemLogger("skills"); const skillCommandDebugOnce = new Set(); -function debugSkillCommandOnce(messageKey: string, message: string, meta?: Record) { +function debugSkillCommandOnce( + messageKey: string, + message: string, + meta?: Record, +) { if (skillCommandDebugOnce.has(messageKey)) return; skillCommandDebugOnce.add(messageKey); skillsLogger.debug(message, meta); diff --git a/src/agents/tools/canvas-tool.ts b/src/agents/tools/canvas-tool.ts index 092d00ab4..5914b4546 100644 --- a/src/agents/tools/canvas-tool.ts +++ b/src/agents/tools/canvas-tool.ts @@ -127,7 +127,8 @@ export function createCanvasTool(): AnyAgentTool { return jsonResult({ ok: true }); } case "snapshot": { - const formatRaw = typeof params.outputFormat === "string" ? params.outputFormat.toLowerCase() : "png"; + const formatRaw = + typeof params.outputFormat === "string" ? params.outputFormat.toLowerCase() : "png"; const format = formatRaw === "jpg" || formatRaw === "jpeg" ? "jpeg" : "png"; const maxWidth = typeof params.maxWidth === "number" && Number.isFinite(params.maxWidth) diff --git a/src/commands/onboard-auth.credentials.ts b/src/commands/onboard-auth.credentials.ts index 1d35492bc..711a2ddd8 100644 --- a/src/commands/onboard-auth.credentials.ts +++ b/src/commands/onboard-auth.credentials.ts @@ -88,8 +88,7 @@ export async function setSyntheticApiKey(key: string, agentDir?: string) { export const ZAI_DEFAULT_MODEL_REF = "zai/glm-4.7"; export const OPENROUTER_DEFAULT_MODEL_REF = "openrouter/auto"; -export const VERCEL_AI_GATEWAY_DEFAULT_MODEL_REF = - "vercel-ai-gateway/anthropic/claude-opus-4.5"; +export const VERCEL_AI_GATEWAY_DEFAULT_MODEL_REF = "vercel-ai-gateway/anthropic/claude-opus-4.5"; export async function setZaiApiKey(key: string, agentDir?: string) { // Write to resolved agent dir so gateway finds credentials on startup. diff --git a/src/commands/onboard-non-interactive.ai-gateway.test.ts b/src/commands/onboard-non-interactive.ai-gateway.test.ts index 1107f1e2a..14afec665 100644 --- a/src/commands/onboard-non-interactive.ai-gateway.test.ts +++ b/src/commands/onboard-non-interactive.ai-gateway.test.ts @@ -63,9 +63,7 @@ describe("onboard (non-interactive): Vercel AI Gateway", () => { agents?: { defaults?: { model?: { primary?: string } } }; }; - expect(cfg.auth?.profiles?.["vercel-ai-gateway:default"]?.provider).toBe( - "vercel-ai-gateway", - ); + expect(cfg.auth?.profiles?.["vercel-ai-gateway:default"]?.provider).toBe("vercel-ai-gateway"); expect(cfg.auth?.profiles?.["vercel-ai-gateway:default"]?.mode).toBe("api_key"); expect(cfg.agents?.defaults?.model?.primary).toBe( "vercel-ai-gateway/anthropic/claude-opus-4.5", diff --git a/src/telegram/bot-handlers.ts b/src/telegram/bot-handlers.ts index 26712ec61..cd9df3742 100644 --- a/src/telegram/bot-handlers.ts +++ b/src/telegram/bot-handlers.ts @@ -266,9 +266,7 @@ export const registerTelegramHandlers = ({ senderUsername, }) ) { - logVerbose( - `Blocked telegram group message from ${senderId} (groupPolicy: allowlist)`, - ); + logVerbose(`Blocked telegram group message from ${senderId} (groupPolicy: allowlist)`); return; } } diff --git a/src/telegram/inline-buttons.ts b/src/telegram/inline-buttons.ts index f73eed6af..d9d334729 100644 --- a/src/telegram/inline-buttons.ts +++ b/src/telegram/inline-buttons.ts @@ -56,14 +56,11 @@ export function isTelegramInlineButtonsEnabled(params: { return resolveTelegramInlineButtonsScope(params) !== "off"; } return accountIds.some( - (accountId) => - resolveTelegramInlineButtonsScope({ cfg: params.cfg, accountId }) !== "off", + (accountId) => resolveTelegramInlineButtonsScope({ cfg: params.cfg, accountId }) !== "off", ); } -export function resolveTelegramTargetChatType( - target: string, -): "direct" | "group" | "unknown" { +export function resolveTelegramTargetChatType(target: string): "direct" | "group" | "unknown" { const trimmed = target.trim(); if (!trimmed) return "unknown"; if (/^-?\d+$/.test(trimmed)) {