mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 17:54:32 +00:00
style(browser): apply oxfmt cleanup for gate
This commit is contained in:
@@ -7,8 +7,8 @@ import type {
|
|||||||
Response,
|
Response,
|
||||||
} from "playwright-core";
|
} from "playwright-core";
|
||||||
import { chromium } from "playwright-core";
|
import { chromium } from "playwright-core";
|
||||||
import type { SsrFPolicy } from "../infra/net/ssrf.js";
|
|
||||||
import { formatErrorMessage } from "../infra/errors.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 { appendCdpPath, fetchJson, getHeadersWithAuth, withCdpSocket } from "./cdp.helpers.js";
|
||||||
import { normalizeCdpWsUrl } from "./cdp.js";
|
import { normalizeCdpWsUrl } from "./cdp.js";
|
||||||
import { getChromeWebSocketUrl } from "./chrome.js";
|
import { getChromeWebSocketUrl } from "./chrome.js";
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { afterEach, describe, expect, it, vi } from "vitest";
|
import { afterEach, describe, expect, it, vi } from "vitest";
|
||||||
import type { BrowserServerState } from "./server-context.js";
|
|
||||||
import { withFetchPreconnect } from "../test-utils/fetch-mock.js";
|
import { withFetchPreconnect } from "../test-utils/fetch-mock.js";
|
||||||
import * as cdpModule from "./cdp.js";
|
import * as cdpModule from "./cdp.js";
|
||||||
import { InvalidBrowserNavigationUrlError } from "./navigation-guard.js";
|
import { InvalidBrowserNavigationUrlError } from "./navigation-guard.js";
|
||||||
import * as pwAiModule from "./pw-ai-module.js";
|
import * as pwAiModule from "./pw-ai-module.js";
|
||||||
|
import type { BrowserServerState } from "./server-context.js";
|
||||||
import "./server-context.chrome-test-harness.js";
|
import "./server-context.chrome-test-harness.js";
|
||||||
import { createBrowserRouteContext } from "./server-context.js";
|
import { createBrowserRouteContext } from "./server-context.js";
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,4 @@
|
|||||||
import fs from "node:fs";
|
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 { SsrFBlockedError } from "../infra/net/ssrf.js";
|
||||||
import { fetchJson, fetchOk } from "./cdp.helpers.js";
|
import { fetchJson, fetchOk } from "./cdp.helpers.js";
|
||||||
import { appendCdpPath, createTargetViaCdp, normalizeCdpWsUrl } from "./cdp.js";
|
import { appendCdpPath, createTargetViaCdp, normalizeCdpWsUrl } from "./cdp.js";
|
||||||
@@ -20,6 +9,7 @@ import {
|
|||||||
resolveOpenClawUserDataDir,
|
resolveOpenClawUserDataDir,
|
||||||
stopOpenClawChrome,
|
stopOpenClawChrome,
|
||||||
} from "./chrome.js";
|
} from "./chrome.js";
|
||||||
|
import type { ResolvedBrowserProfile } from "./config.js";
|
||||||
import { resolveProfile } from "./config.js";
|
import { resolveProfile } from "./config.js";
|
||||||
import {
|
import {
|
||||||
ensureChromeExtensionRelayServer,
|
ensureChromeExtensionRelayServer,
|
||||||
@@ -30,11 +20,21 @@ import {
|
|||||||
InvalidBrowserNavigationUrlError,
|
InvalidBrowserNavigationUrlError,
|
||||||
withBrowserNavigationPolicy,
|
withBrowserNavigationPolicy,
|
||||||
} from "./navigation-guard.js";
|
} from "./navigation-guard.js";
|
||||||
|
import type { PwAiModule } from "./pw-ai-module.js";
|
||||||
import { getPwAiModule } from "./pw-ai-module.js";
|
import { getPwAiModule } from "./pw-ai-module.js";
|
||||||
import {
|
import {
|
||||||
refreshResolvedBrowserConfigFromDisk,
|
refreshResolvedBrowserConfigFromDisk,
|
||||||
resolveBrowserProfileWithHotReload,
|
resolveBrowserProfileWithHotReload,
|
||||||
} from "./resolved-config-refresh.js";
|
} 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 { resolveTargetIdFromTabs } from "./target-id.js";
|
||||||
import { movePathToTrash } from "./trash.js";
|
import { movePathToTrash } from "./trash.js";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user