From 4ca3df6475724c94014b3e9c1fe19dd13fbf0595 Mon Sep 17 00:00:00 2001 From: Josh Lehman Date: Thu, 12 Mar 2026 15:24:01 -0700 Subject: [PATCH] style: format gate-checked files --- src/agents/pi-embedded-runner/compact.ts | 4 +--- src/cli/daemon-cli/lifecycle.test.ts | 21 +++++++++++---------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/src/agents/pi-embedded-runner/compact.ts b/src/agents/pi-embedded-runner/compact.ts index 69f9fd0b49c..b465ea7dc9c 100644 --- a/src/agents/pi-embedded-runner/compact.ts +++ b/src/agents/pi-embedded-runner/compact.ts @@ -930,9 +930,7 @@ export async function compactEmbeddedPiSessionDirect( if ( sanityCheckBaseline > 0 && tokensAfter > - (observedTokenCount !== undefined - ? sanityCheckBaseline - : sanityCheckBaseline * 1.1) + (observedTokenCount !== undefined ? sanityCheckBaseline : sanityCheckBaseline * 1.1) ) { tokensAfter = undefined; // Don't trust the estimate } diff --git a/src/cli/daemon-cli/lifecycle.test.ts b/src/cli/daemon-cli/lifecycle.test.ts index 61899e4e78c..6e15095be3e 100644 --- a/src/cli/daemon-cli/lifecycle.test.ts +++ b/src/cli/daemon-cli/lifecycle.test.ts @@ -36,16 +36,17 @@ const renderGatewayPortHealthDiagnostics = vi.fn(() => ["diag: unhealthy port"]) const renderRestartDiagnostics = vi.fn(() => ["diag: unhealthy runtime"]); const resolveGatewayPort = vi.fn(() => 18789); const findGatewayPidsOnPortSync = vi.fn<(port: number) => number[]>(() => []); -const probeGateway = vi.fn< - (opts: { - url: string; - auth?: { token?: string; password?: string }; - timeoutMs: number; - }) => Promise<{ - ok: boolean; - configSnapshot: unknown; - }> ->(); +const probeGateway = + vi.fn< + (opts: { + url: string; + auth?: { token?: string; password?: string }; + timeoutMs: number; + }) => Promise<{ + ok: boolean; + configSnapshot: unknown; + }> + >(); const isRestartEnabled = vi.fn<(config?: { commands?: unknown }) => boolean>(() => true); const loadConfig = vi.fn(() => ({}));