fix: patch auth flow (#180)

This commit is contained in:
Charles Packer
2025-12-11 15:14:07 -08:00
committed by GitHub
parent 23b335fee7
commit a21336bd16
3 changed files with 9 additions and 21 deletions

View File

@@ -6,6 +6,7 @@ import { hostname } from "node:os";
import { Box, Text, useApp, useInput } from "ink";
import { useState } from "react";
import { asciiLogo } from "../cli/components/AsciiArt.ts";
import { colors } from "../cli/components/colors";
import { settingsManager } from "../settings-manager";
import { pollForToken, requestDeviceCode } from "./oauth";
@@ -124,8 +125,8 @@ export function SetupUI({ onComplete }: SetupUIProps) {
if (mode === "device-code") {
return (
<Box flexDirection="column" padding={1}>
<Text>{asciiLogo}</Text>
<Text bold>Login to Letta Cloud</Text>
<Text color={colors.welcome.accent}>{asciiLogo}</Text>
<Text bold>Login to the Letta Developer Platform</Text>
<Text> </Text>
<Text dimColor>Opening browser for authorization...</Text>
<Text> </Text>
@@ -145,14 +146,15 @@ export function SetupUI({ onComplete }: SetupUIProps) {
// Main menu
return (
<Box flexDirection="column" padding={1}>
<Text>{asciiLogo}</Text>
<Text color={colors.welcome.accent}>{asciiLogo}</Text>
<Text bold>Welcome to Letta Code!</Text>
<Text> </Text>
<Text>Let's get you authenticated:</Text>
<Text> </Text>
<Box>
<Text color={selectedOption === 0 ? "cyan" : undefined}>
{selectedOption === 0 ? "→" : " "} Login to Letta Cloud
{selectedOption === 0 ? "→" : " "} Login to the Letta Developer
Platform
</Text>
</Box>
<Box>