Skip to main content

a3s_code_core/
search_runtime.rs

1//! Browser runtime lifecycle API for headless web search.
2//!
3//! This is a stable A3S Code entry point over the browser management surface
4//! provided by a3s-use-browser through a3s-search's public Browser dependency.
5//! Status checks are read-only; install, update, and repair are explicit host
6//! operations and are never triggered by inspection.
7
8pub use a3s_search::a3s_use_browser::{
9    browser_status, browser_statuses, install_browser, repair_browser, update_browser,
10    BrowserInstallSource, BrowserRuntimeStatus, ManagedBrowser,
11};
12
13#[cfg(test)]
14mod tests {
15    use super::*;
16
17    #[test]
18    fn browser_statuses_cover_all_managed_runtimes() {
19        let statuses = browser_statuses();
20        assert_eq!(statuses.len(), 2);
21        assert_eq!(statuses[0].browser, ManagedBrowser::Chrome);
22        assert_eq!(statuses[1].browser, ManagedBrowser::Lightpanda);
23    }
24}