export function agentIdForAuth(info) {
    return info?.agentId ?? "codex";
}
export function agentLabelForAuth(info) {
    return info?.agentLabel ?? "Codex";
}
export function hostAgentLoginCommand(config, info) {
    const agentId = agentIdForAuth(info);
    if (agentId === "hermes")
        return `${config.hermesCliPath ?? "hermes"} login --no-browser`;
    if (agentId === "claude-code")
        return `${config.claudeCodeCliPath ?? "claude"} auth login`;
    if (agentId === "pi")
        return `${config.piCliPath ?? "pi"} auth login`;
    if (agentId === "openclaw")
        return `${config.openClawCliPath ?? "openclaw"} login`;
    return "codex login --device-auth";
}
export function hostAgentLogoutCommand(config, info) {
    const agentId = agentIdForAuth(info);
    if (agentId === "hermes")
        return `${config.hermesCliPath ?? "hermes"} logout`;
    if (agentId === "claude-code")
        return `${config.claudeCodeCliPath ?? "claude"} auth logout`;
    if (agentId === "pi")
        return `${config.piCliPath ?? "pi"} auth logout`;
    if (agentId === "openclaw")
        return `${config.openClawCliPath ?? "openclaw"} logout`;
    return "codex logout";
}
