import { Box, Text } from "ink" import { claudeSettingsScopeLabel, type ClaudeSettingsScope } from "../claude-env" const OPTIONS: Array<{ scope: ClaudeSettingsScope; title: string; description: string; recommended?: boolean }> = [ { scope: "user", title: "User", description: "You, across all projects", recommended: true, }, { scope: "project", title: "Project", description: "All collaborators in this repository", }, { scope: "local", title: "Local", description: "You only, in this repository", }, ] export function ClaudeEnvironmentScopeSelector(props: { selected: number; action: "set" | "unset" }) { return ( ──────────────────────────────────────────────────────────────────────────── Choose Claude Settings Scope Default selection is User because it is usually the safest and clearest place to configure Claude Code. Controls: ↑/↓ move · Enter continue · Esc cancel {OPTIONS.map((option, index) => ( {props.selected === index ? "›" : " "} {option.title} {claudeSettingsScopeLabel(option.scope)} {option.recommended ? "Recommended" : ""} {option.description} ))} {props.action === "set" ? "The selected scope will receive updated env values." : "The selected scope will have managed env values removed."} ) }