pub async fn ambient_gate(config_dir: Option<&str>) -> AmbientGuardExpand description
Wait before an ambient CLI runs on config_dir (its CLAUDE_CONFIG_DIR) while a spawn on it
is refreshing the expired token. No dir, or a blank one: the call has none of its own to protect.