style: biome formatting

This commit is contained in:
Peter Steinberger
2025-12-20 17:50:45 +01:00
parent 0f271ab535
commit e618a21f4e
7 changed files with 31 additions and 23 deletions

View File

@@ -55,9 +55,9 @@ const bridgeListConnected = vi.hoisted(() =>
vi.fn(() => [] as BridgeClientInfo[]),
);
const bridgeSendEvent = vi.hoisted(() => vi.fn());
const testTailnetIPv4 = vi.hoisted(
() => ({ value: undefined as string | undefined }),
);
const testTailnetIPv4 = vi.hoisted(() => ({
value: undefined as string | undefined,
}));
vi.mock("../infra/bridge/server.js", () => ({
startNodeBridgeServer: vi.fn(async (opts: BridgeStartOpts) => {
bridgeStartCalls.push(opts);

View File

@@ -18,7 +18,10 @@ import {
normalizeThinkLevel,
normalizeVerboseLevel,
} from "../auto-reply/thinking.js";
import { handleA2uiHttpRequest, CANVAS_HOST_PATH } from "../canvas-host/a2ui.js";
import {
CANVAS_HOST_PATH,
handleA2uiHttpRequest,
} from "../canvas-host/a2ui.js";
import {
type CanvasHostHandler,
createCanvasHostHandler,
@@ -2380,7 +2383,10 @@ export async function startGatewayServer(
const remoteAddr = (
socket as WebSocket & { _socket?: { remoteAddress?: string } }
)._socket?.remoteAddress;
const canvasHostUrl = deriveCanvasHostUrl(req, canvasHost ? port : undefined);
const canvasHostUrl = deriveCanvasHostUrl(
req,
canvasHost ? port : undefined,
);
logWs("in", "open", { connId, remoteAddr });
const isWebchatConnect = (params: ConnectParams | null | undefined) =>
params?.client?.mode === "webchat" ||