From 0716a624a83e9f53c8ca04b7416f9d1a8cb1943e Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 4 Jan 2026 19:08:22 +0100 Subject: [PATCH] chore(lint): apply biome fixes --- src/cli/program.test.ts | 4 ++-- src/commands/configure.ts | 3 ++- src/commands/onboard-helpers.ts | 14 +++++++++++--- src/gateway/call.ts | 3 ++- src/gateway/server-methods/chat.ts | 4 ++-- 5 files changed, 19 insertions(+), 9 deletions(-) diff --git a/src/cli/program.test.ts b/src/cli/program.test.ts index cf209ab25..3b6dbdf64 100644 --- a/src/cli/program.test.ts +++ b/src/cli/program.test.ts @@ -51,13 +51,13 @@ describe("cli program", () => { expect(statusCommand).toHaveBeenCalled(); }); - it("runs config alias as configure", async () => { + it("runs config alias as configure", async () => { const program = buildProgram(); await program.parseAsync(["config"], { from: "user" }); expect(configureCommand).toHaveBeenCalled(); }); -it("runs nodes list and calls node.pair.list", async () => { + it("runs nodes list and calls node.pair.list", async () => { callGateway.mockResolvedValue({ pending: [], paired: [] }); const program = buildProgram(); runtime.log.mockClear(); diff --git a/src/commands/configure.ts b/src/commands/configure.ts index 3cee67535..3bddae8e3 100644 --- a/src/commands/configure.ts +++ b/src/commands/configure.ts @@ -455,7 +455,8 @@ export async function runConfigureWizard( const localUrl = "ws://127.0.0.1:18789"; const localProbe = await probeGatewayReachable({ url: localUrl, - token: baseConfig.gateway?.auth?.token ?? process.env.CLAWDBOT_GATEWAY_TOKEN, + token: + baseConfig.gateway?.auth?.token ?? process.env.CLAWDBOT_GATEWAY_TOKEN, password: baseConfig.gateway?.auth?.password ?? process.env.CLAWDBOT_GATEWAY_PASSWORD, diff --git a/src/commands/onboard-helpers.ts b/src/commands/onboard-helpers.ts index 8491723e7..3e6ff3a87 100644 --- a/src/commands/onboard-helpers.ts +++ b/src/commands/onboard-helpers.ts @@ -97,7 +97,11 @@ async function isWSL(): Promise { wslCached = false; return wslCached; } - if (process.env.WSL_INTEROP || process.env.WSL_DISTRO_NAME || process.env.WSLENV) { + if ( + process.env.WSL_INTEROP || + process.env.WSL_DISTRO_NAME || + process.env.WSLENV + ) { wslCached = true; return wslCached; } @@ -118,7 +122,9 @@ type BrowserOpenCommand = { async function resolveBrowserOpenCommand(): Promise { const platform = process.platform; - const hasDisplay = Boolean(process.env.DISPLAY || process.env.WAYLAND_DISPLAY); + const hasDisplay = Boolean( + process.env.DISPLAY || process.env.WAYLAND_DISPLAY, + ); const isSsh = Boolean(process.env.SSH_CLIENT) || Boolean(process.env.SSH_TTY) || @@ -172,7 +178,9 @@ export function formatControlUiSshHint(params: { const basePath = normalizeControlUiBasePath(params.basePath); const uiPath = basePath ? `${basePath}/` : "/"; const localUrl = `http://localhost:${params.port}${uiPath}`; - const tokenParam = params.token ? `?token=${encodeURIComponent(params.token)}` : ""; + const tokenParam = params.token + ? `?token=${encodeURIComponent(params.token)}` + : ""; const authedUrl = params.token ? `${localUrl}${tokenParam}` : undefined; const sshTarget = resolveSshTargetHint(); return [ diff --git a/src/gateway/call.ts b/src/gateway/call.ts index eb6c1b1b4..cfa2d1fc1 100644 --- a/src/gateway/call.ts +++ b/src/gateway/call.ts @@ -92,7 +92,8 @@ export async function callGateway( client.stop(); stop(err as Error); } - }, onClose: (code, reason) => { + }, + onClose: (code, reason) => { if (settled || ignoreClose) return; ignoreClose = true; client.stop(); diff --git a/src/gateway/server-methods/chat.ts b/src/gateway/server-methods/chat.ts index 569324b63..7f0e151c9 100644 --- a/src/gateway/server-methods/chat.ts +++ b/src/gateway/server-methods/chat.ts @@ -131,8 +131,8 @@ export const chatHandlers: GatewayRequestHandlers = { params, respond, context, - client, - isWebchatConnect, + client: _client, + isWebchatConnect: _isWebchatConnect, }) => { if (!validateChatSendParams(params)) { respond(