style: format gate-checked files

This commit is contained in:
Josh Lehman
2026-03-12 15:24:01 -07:00
parent 161f61d67c
commit 4ca3df6475
2 changed files with 12 additions and 13 deletions

View File

@@ -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
}

View File

@@ -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(() => ({}));