pub async fn build_default_registry(
bridge_config: BridgeConfig,
bridge_token_file: Option<&Path>,
bridge_token_path: PathBuf,
) -> Result<ServiceRegistry>Expand description
Builds the daemon’s default service registry: starts the browser bridge on its loopback-TCP planes and registers it alongside the Snowflake query service and the cross-window worktrees registry.
bridge_token_file overrides token generation; bridge_token_path is where
the resolved token is persisted (0600) for thin-client discovery. The
Snowflake service is registered cheaply (no eager auth or I/O); its sessions
are authenticated lazily on first query. The worktrees service is likewise
cheap (in-memory only); it fills as VS Code windows register.