()
| 208 | return <Box flexDirection="column" gap={1}><Box><Spinner /><Text> Installing it2 using {packageManager}…</Text></Box><Text dimColor={true}>This may take a moment.</Text></Box>; |
| 209 | } |
| 210 | function renderInstallFailed() { |
| 211 | const options_0 = [{ |
| 212 | label: "Try again", |
| 213 | value: "retry", |
| 214 | description: "Retry the installation" |
| 215 | }]; |
| 216 | if (tmuxAvailable) { |
| 217 | options_0.push({ |
| 218 | label: "Use tmux instead", |
| 219 | value: "tmux", |
| 220 | description: "Falls back to tmux for teammate panes" |
| 221 | }); |
| 222 | } |
| 223 | options_0.push({ |
| 224 | label: "Cancel", |
| 225 | value: "cancel", |
| 226 | description: "Skip teammate spawning for now" |
| 227 | }); |
| 228 | return <Box flexDirection="column" gap={1}><Text color="error">Installation failed</Text>{error && <Text dimColor={true}>{error}</Text>}<Text dimColor={true}>You can try installing manually:{" "}{packageManager === "uvx" ? "uv tool install it2" : packageManager === "pipx" ? "pipx install it2" : "pip install --user it2"}</Text><Box marginTop={1}><Select options={options_0} onChange={value_0 => { |
| 229 | bb89: switch (value_0) { |
| 230 | case "retry": |
| 231 | { |
| 232 | handleInstall(); |
| 233 | break bb89; |
| 234 | } |
| 235 | case "tmux": |
| 236 | { |
| 237 | handleUseTmux(); |
| 238 | break bb89; |
| 239 | } |
| 240 | case "cancel": |
| 241 | { |
| 242 | onDone("cancelled"); |
| 243 | } |
| 244 | } |
| 245 | }} onCancel={() => onDone("cancelled")} /></Box></Box>; |
| 246 | } |
| 247 | function renderApiInstructions() { |
| 248 | const instructions = getPythonApiInstructions(); |
| 249 | return <Box flexDirection="column" gap={1}><Text color="success">✓ it2 installed successfully</Text><Box flexDirection="column" marginTop={1}>{instructions.map(_temp)}</Box><Box marginTop={1}><Text dimColor={true}>Press Enter when ready to verify…</Text></Box></Box>; |
no test coverage detected