From 0ec276d421ddef99f0af1199ee02f9d04f85a88e Mon Sep 17 00:00:00 2001 From: Kastrah Date: Mon, 26 Jan 2026 11:35:13 +0100 Subject: [PATCH] chore: format partially staged files --- src/agents/tools/web-search.ts | 4 ++-- src/channels/plugins/zoho-cliq.ts | 14 ++++++-------- src/tui/components/custom-editor.ts | 8 +------- 3 files changed, 9 insertions(+), 17 deletions(-) diff --git a/src/agents/tools/web-search.ts b/src/agents/tools/web-search.ts index dcec7f609..431200162 100644 --- a/src/agents/tools/web-search.ts +++ b/src/agents/tools/web-search.ts @@ -59,8 +59,8 @@ const WebSearchSchema = Type.Object({ type WebSearchConfig = NonNullable["web"] extends infer Web ? Web extends { search?: infer Search } - ? Search - : undefined + ? Search + : undefined : undefined; type BraveSearchResult = { diff --git a/src/channels/plugins/zoho-cliq.ts b/src/channels/plugins/zoho-cliq.ts index dd9d53cb4..062b367ac 100644 --- a/src/channels/plugins/zoho-cliq.ts +++ b/src/channels/plugins/zoho-cliq.ts @@ -1,10 +1,7 @@ // Zoho Cliq Channel Plugin - Core Stub // Full implementation is in extensions/zoho-cliq -import { - DEFAULT_ACCOUNT_ID, - normalizeAccountId, -} from "../../routing/session-key.js"; +import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "../../routing/session-key.js"; import type { ChannelMeta } from "./types.js"; import type { ChannelPlugin } from "./types.js"; @@ -66,7 +63,10 @@ export const zohoCliqPlugin: ChannelPlugin = { const resolvedAccountId = normalizeAccountId(accountId); const channelCfg = (cfg as any).channels?.["zoho-cliq"]; const accounts = channelCfg?.accounts; - const accountCfg = accounts?.[resolvedAccountId] ?? (resolvedAccountId === DEFAULT_ACCOUNT_ID ? channelCfg : undefined) ?? {}; + const accountCfg = + accounts?.[resolvedAccountId] ?? + (resolvedAccountId === DEFAULT_ACCOUNT_ID ? channelCfg : undefined) ?? + {}; const clientId = accountCfg.clientId ?? process.env.ZOHO_CLIQ_CLIENT_ID ?? ""; const clientSecret = accountCfg.clientSecret ?? process.env.ZOHO_CLIQ_CLIENT_SECRET ?? ""; @@ -89,9 +89,7 @@ export const zohoCliqPlugin: ChannelPlugin = { defaultAccountId: (cfg) => { const accounts = (cfg as any).channels?.["zoho-cliq"]?.accounts; if (!accounts) return DEFAULT_ACCOUNT_ID; - const enabled = Object.entries(accounts).filter( - ([_, a]) => (a as any).enabled ?? true, - ); + const enabled = Object.entries(accounts).filter(([_, a]) => (a as any).enabled ?? true); if (enabled.length === 1) return enabled[0][0]; if (Object.hasOwn(accounts, DEFAULT_ACCOUNT_ID)) { return DEFAULT_ACCOUNT_ID; diff --git a/src/tui/components/custom-editor.ts b/src/tui/components/custom-editor.ts index 3f20f126f..565f02147 100644 --- a/src/tui/components/custom-editor.ts +++ b/src/tui/components/custom-editor.ts @@ -1,10 +1,4 @@ -import { - Editor, - type EditorTheme, - type TUI, - Key, - matchesKey, -} from "@mariozechner/pi-tui"; +import { Editor, type EditorTheme, type TUI, Key, matchesKey } from "@mariozechner/pi-tui"; export class CustomEditor extends Editor { onEscape?: () => void;