refactor: trim browser helper types

This commit is contained in:
Peter Steinberger
2026-05-01 15:58:36 +01:00
parent 03bde3d65c
commit 8b62e0fa96
3 changed files with 5 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ const PROXY_ROUTING_CHROME_ARGS = new Set([
const PROXY_CONTROL_CHROME_ARGS = new Set(["--no-proxy-server", ...PROXY_ROUTING_CHROME_ARGS]);
export const CHROME_PROXY_ENV_KEYS = [
const CHROME_PROXY_ENV_KEYS = [
"HTTP_PROXY",
"HTTPS_PROXY",
"ALL_PROXY",

View File

@@ -1,8 +1,8 @@
import type { ResolvedBrowserProfile } from "./config.js";
export type BrowserProfileMode = "local-managed" | "local-existing-session" | "remote-cdp";
type BrowserProfileMode = "local-managed" | "local-existing-session" | "remote-cdp";
export type BrowserProfileCapabilities = {
type BrowserProfileCapabilities = {
mode: BrowserProfileMode;
isRemote: boolean;
/** Profile uses the Chrome DevTools MCP server (existing-session driver). */

View File

@@ -24,7 +24,7 @@ export {
} from "openclaw/plugin-sdk/text-runtime";
export { normalizeOptionalLowercaseString };
export type PortRange = { start: number; end: number };
type PortRange = { start: number; end: number };
const DEFAULT_BROWSER_CDP_PORT_RANGE_START = 18800;
const DEFAULT_BROWSER_CDP_PORT_RANGE_END = 18899;
@@ -61,7 +61,7 @@ export function deriveDefaultBrowserCdpPortRange(browserControlPort: number): Po
};
}
export type BooleanParseOptions = {
type BooleanParseOptions = {
truthy?: string[];
falsy?: string[];
};