From 4cd7d95746a425d81cdf8d6e131c2c554c26bfe9 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 21 Feb 2026 13:15:58 +0100 Subject: [PATCH] style(browser): apply oxfmt cleanup for gate --- src/browser/pw-session.ts | 2 +- .../server-context.remote-tab-ops.test.ts | 2 +- src/browser/server-context.ts | 22 +++++++++---------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/browser/pw-session.ts b/src/browser/pw-session.ts index b1a704b124a..08371f4bd2e 100644 --- a/src/browser/pw-session.ts +++ b/src/browser/pw-session.ts @@ -7,8 +7,8 @@ import type { Response, } from "playwright-core"; import { chromium } from "playwright-core"; -import type { SsrFPolicy } from "../infra/net/ssrf.js"; import { formatErrorMessage } from "../infra/errors.js"; +import type { SsrFPolicy } from "../infra/net/ssrf.js"; import { appendCdpPath, fetchJson, getHeadersWithAuth, withCdpSocket } from "./cdp.helpers.js"; import { normalizeCdpWsUrl } from "./cdp.js"; import { getChromeWebSocketUrl } from "./chrome.js"; diff --git a/src/browser/server-context.remote-tab-ops.test.ts b/src/browser/server-context.remote-tab-ops.test.ts index 70d4ea844c5..a4ae8b539d7 100644 --- a/src/browser/server-context.remote-tab-ops.test.ts +++ b/src/browser/server-context.remote-tab-ops.test.ts @@ -1,9 +1,9 @@ import { afterEach, describe, expect, it, vi } from "vitest"; -import type { BrowserServerState } from "./server-context.js"; import { withFetchPreconnect } from "../test-utils/fetch-mock.js"; import * as cdpModule from "./cdp.js"; import { InvalidBrowserNavigationUrlError } from "./navigation-guard.js"; import * as pwAiModule from "./pw-ai-module.js"; +import type { BrowserServerState } from "./server-context.js"; import "./server-context.chrome-test-harness.js"; import { createBrowserRouteContext } from "./server-context.js"; diff --git a/src/browser/server-context.ts b/src/browser/server-context.ts index 93c90b1ef0f..22aba46d90d 100644 --- a/src/browser/server-context.ts +++ b/src/browser/server-context.ts @@ -1,15 +1,4 @@ import fs from "node:fs"; -import type { ResolvedBrowserProfile } from "./config.js"; -import type { PwAiModule } from "./pw-ai-module.js"; -import type { - BrowserServerState, - BrowserRouteContext, - BrowserTab, - ContextOptions, - ProfileContext, - ProfileRuntimeState, - ProfileStatus, -} from "./server-context.types.js"; import { SsrFBlockedError } from "../infra/net/ssrf.js"; import { fetchJson, fetchOk } from "./cdp.helpers.js"; import { appendCdpPath, createTargetViaCdp, normalizeCdpWsUrl } from "./cdp.js"; @@ -20,6 +9,7 @@ import { resolveOpenClawUserDataDir, stopOpenClawChrome, } from "./chrome.js"; +import type { ResolvedBrowserProfile } from "./config.js"; import { resolveProfile } from "./config.js"; import { ensureChromeExtensionRelayServer, @@ -30,11 +20,21 @@ import { InvalidBrowserNavigationUrlError, withBrowserNavigationPolicy, } from "./navigation-guard.js"; +import type { PwAiModule } from "./pw-ai-module.js"; import { getPwAiModule } from "./pw-ai-module.js"; import { refreshResolvedBrowserConfigFromDisk, resolveBrowserProfileWithHotReload, } from "./resolved-config-refresh.js"; +import type { + BrowserServerState, + BrowserRouteContext, + BrowserTab, + ContextOptions, + ProfileContext, + ProfileRuntimeState, + ProfileStatus, +} from "./server-context.types.js"; import { resolveTargetIdFromTabs } from "./target-id.js"; import { movePathToTrash } from "./trash.js";