Expand description
OS app-data directory resolution.
Functions§
- config_
dir - Root config directory for browser-control.
- config_
file_ path - Returns
<config_dir>/config.toml. Ensures the parent directory exists. - data_
dir - Root data directory for browser-control. Used for the registry DB and profile dirs.
- default_
profile_ dir - Returns the stable per-kind default profile directory used when
browser-control startis invoked without--profile. - downloads_
staging_ dir - Staging directory for downloads from browsers browser-control launched
(ADR-005):
<data_dir>/downloads/<kind>/. Launch-time profile prefs and the MCP server’s runtime download override both point here, so every download from a managed browser lands in one predictable place no matter which agent or CLI invocation triggered it. Created on demand. - is_
owned_ profile - Whether
profile_diris a profile browser-control owns (under<config_dir>/profiles). Only owned profiles get download prefs written and the runtime download override (ADR-005); a user’s own browser is never redirected. - profiles_
dir - Returns
<data_dir>/profiles. Ensures the directory exists. - registry_
db_ path - Returns
<data_dir>/registry.db. Ensures the parent directory exists.