diff --git a/src/agents/model-selection.ts b/src/agents/model-selection.ts index 13b7b3a85..b9d59170d 100644 --- a/src/agents/model-selection.ts +++ b/src/agents/model-selection.ts @@ -164,8 +164,7 @@ export function resolveThinkingDefault(params: { const configured = params.cfg.agent?.thinkingDefault; if (configured) return configured; const candidate = params.catalog?.find( - (entry) => - entry.provider === params.provider && entry.id === params.model, + (entry) => entry.provider === params.provider && entry.id === params.model, ); if (candidate?.reasoning) return "low"; return "off"; diff --git a/src/commands/agent.test.ts b/src/commands/agent.test.ts index d91970f19..f74c51e0a 100644 --- a/src/commands/agent.test.ts +++ b/src/commands/agent.test.ts @@ -21,8 +21,8 @@ vi.mock("../agents/model-catalog.js", () => ({ loadModelCatalog: vi.fn(), })); -import { runEmbeddedPiAgent } from "../agents/pi-embedded.js"; import { loadModelCatalog } from "../agents/model-catalog.js"; +import { runEmbeddedPiAgent } from "../agents/pi-embedded.js"; import type { ClawdisConfig } from "../config/config.js"; import * as configModule from "../config/config.js"; import type { RuntimeEnv } from "../runtime.js"; diff --git a/src/config/config.test.ts b/src/config/config.test.ts index 384f23682..06901d5ce 100644 --- a/src/config/config.test.ts +++ b/src/config/config.test.ts @@ -393,8 +393,9 @@ describe("Nix integration (U3, U5, U9)", () => { describe("U6: gateway port resolution", () => { it("uses default when env and config are unset", async () => { await withEnvOverride({ CLAWDIS_GATEWAY_PORT: undefined }, async () => { - const { DEFAULT_GATEWAY_PORT, resolveGatewayPort } = - await import("./config.js"); + const { DEFAULT_GATEWAY_PORT, resolveGatewayPort } = await import( + "./config.js" + ); expect(resolveGatewayPort({})).toBe(DEFAULT_GATEWAY_PORT); }); }); diff --git a/src/cron/isolated-agent.test.ts b/src/cron/isolated-agent.test.ts index 685776ba3..cc429d067 100644 --- a/src/cron/isolated-agent.test.ts +++ b/src/cron/isolated-agent.test.ts @@ -18,8 +18,8 @@ vi.mock("../agents/model-catalog.js", () => ({ loadModelCatalog: vi.fn(), })); -import { runEmbeddedPiAgent } from "../agents/pi-embedded.js"; import { loadModelCatalog } from "../agents/model-catalog.js"; +import { runEmbeddedPiAgent } from "../agents/pi-embedded.js"; import { runCronIsolatedAgentTurn } from "./isolated-agent.js"; async function withTempHome(fn: (home: string) => Promise): Promise { diff --git a/src/hooks/gmail.ts b/src/hooks/gmail.ts index 96b62f092..42da43ba1 100644 --- a/src/hooks/gmail.ts +++ b/src/hooks/gmail.ts @@ -3,7 +3,7 @@ import { randomBytes } from "node:crypto"; import { type ClawdisConfig, DEFAULT_GATEWAY_PORT, - HooksGmailTailscaleMode, + type HooksGmailTailscaleMode, resolveGatewayPort, } from "../config/config.js"; diff --git a/src/tui/components/tool-execution.ts b/src/tui/components/tool-execution.ts index 671973929..5614f0302 100644 --- a/src/tui/components/tool-execution.ts +++ b/src/tui/components/tool-execution.ts @@ -1,5 +1,8 @@ import { Box, Container, Markdown, Spacer, Text } from "@mariozechner/pi-tui"; -import { formatToolDetail, resolveToolDisplay } from "../../agents/tool-display.js"; +import { + formatToolDetail, + resolveToolDisplay, +} from "../../agents/tool-display.js"; import { markdownTheme, theme } from "../theme/theme.js"; type ToolResultContent = { @@ -106,7 +109,10 @@ export class ToolExecutionComponent extends Container { : theme.toolSuccessBg; this.box.setBgFn((line) => bg(line)); - const display = resolveToolDisplay({ name: this.toolName, args: this.args }); + const display = resolveToolDisplay({ + name: this.toolName, + args: this.args, + }); const title = `${display.emoji} ${display.label}${this.isPartial ? " (running)" : ""}`; this.header.setText(theme.toolTitle(theme.bold(title)));