const CODEX_FULL_ACCESS_PROFILE = {
    id: "full-access",
    label: "Full Access",
    behavior: "danger-full-access / never",
    unsafe: true,
};
const CLAUDE_CODE_BYPASS_PROFILE = {
    id: "bypass-permissions",
    label: "Bypass Permissions",
    behavior: "Bypass Claude Code permission prompts. Use only in trusted workspaces.",
    unsafe: true,
};
export function knownUnsafeLaunchProfile(agentId, profileId) {
    const normalized = profileId?.trim();
    if (!normalized) {
        return null;
    }
    return knownUnsafeLaunchProfiles(agentId).find((profile) => profile.id === normalized) ?? null;
}
export function knownUnsafeLaunchProfiles(agentId) {
    if (agentId === "codex") {
        return [CODEX_FULL_ACCESS_PROFILE];
    }
    if (agentId === "claude-code") {
        return [CLAUDE_CODE_BYPASS_PROFILE];
    }
    return [];
}
export function findLaunchProfileRecord(agentId, profileId, profiles) {
    const normalized = profileId?.trim();
    if (!normalized) {
        return null;
    }
    return profiles.find((profile) => profile.id === normalized) ?? knownUnsafeLaunchProfile(agentId, normalized);
}
