openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
24 lines (23 loc) • 1.69 kB
JavaScript
//#region extensions/browser/src/browser/constants.ts
const DEFAULT_OPENCLAW_BROWSER_ENABLED = true;
const DEFAULT_BROWSER_EVALUATE_ENABLED = true;
const DEFAULT_OPENCLAW_BROWSER_COLOR = "#FF4500";
const DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME = "openclaw";
const DEFAULT_BROWSER_DEFAULT_PROFILE_NAME = "openclaw";
const DEFAULT_BROWSER_ACTION_TIMEOUT_MS = 6e4;
const DEFAULT_BROWSER_DOWNLOAD_TIMEOUT_MS = 12e4;
const DEFAULT_BROWSER_LOCAL_LAUNCH_TIMEOUT_MS = 15e3;
const DEFAULT_BROWSER_LOCAL_CDP_READY_TIMEOUT_MS = 8e3;
const DEFAULT_BROWSER_SCREENSHOT_TIMEOUT_MS = 2e4;
const DEFAULT_BROWSER_SNAPSHOT_TIMEOUT_MS = 2e4;
/**
* Age after which a tracked tab whose browser stays unreachable is retired
* instead of retried forever. Rows only reach this branch when cleanup already
* failed to prove ownership, and a browser that returns after this long almost
* always carries a fresh instance fingerprint, which retires the row anyway.
*/
const BROWSER_TAB_UNREACHABLE_RETIRE_MS = 864e5;
const DEFAULT_AI_SNAPSHOT_MAX_CHARS = 4e4;
const DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS = 8e3;
//#endregion
export { DEFAULT_BROWSER_DEFAULT_PROFILE_NAME as a, DEFAULT_BROWSER_LOCAL_CDP_READY_TIMEOUT_MS as c, DEFAULT_BROWSER_SNAPSHOT_TIMEOUT_MS as d, DEFAULT_OPENCLAW_BROWSER_COLOR as f, DEFAULT_BROWSER_ACTION_TIMEOUT_MS as i, DEFAULT_BROWSER_LOCAL_LAUNCH_TIMEOUT_MS as l, DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME as m, DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS as n, DEFAULT_BROWSER_DOWNLOAD_TIMEOUT_MS as o, DEFAULT_OPENCLAW_BROWSER_ENABLED as p, DEFAULT_AI_SNAPSHOT_MAX_CHARS as r, DEFAULT_BROWSER_EVALUATE_ENABLED as s, BROWSER_TAB_UNREACHABLE_RETIRE_MS as t, DEFAULT_BROWSER_SCREENSHOT_TIMEOUT_MS as u };