mod approval;
pub mod builtin;
mod config;
mod connection;
mod dispatcher;
mod executor;
pub mod manager;
mod paths;
mod probe;
pub mod protocol;
pub mod vtoken_env;
pub mod wire_assemble;
pub(crate) use approval::ApprovalBroker;
pub use config::{BridgeApp, BridgeConfig, BridgeProfile, RoutingStrategy};
pub use connection::{
default_auto_client_name, default_local_credential_path, hub_response_token_rejected,
resolve_hub_connection, validate_hub_token,
};
pub use dispatcher::{run_bridge, run_bridge_with_shutdown, BridgeStop};
pub use executor::MAX_CLI_CAPTURE_BYTES;
pub use paths::resolve_bridge_executable;
pub use probe::{
check_command_exists, dry_run_profile, find_in_path_robust, probe_profile_light, ProbeError,
};
pub use protocol::PROTOCOL_VERSION;
pub const AUTH_ERROR_KEYWORDS: &[&str] = &[
"login",
"logout",
"auth",
"credential",
"sign in",
"unauthorized",
"unauthenticated",
"401",
"not logged in",
"keychain",
"api key",
"token",
];