mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:00:42 +00:00
refactor: trim browser helper types
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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). */
|
||||
|
||||
@@ -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[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user