|
@@ -5,6 +5,7 @@ import { DialogSelect } from "@tui/ui/dialog-select"
|
|
|
import { useDialog } from "@tui/ui/dialog"
|
|
import { useDialog } from "@tui/ui/dialog"
|
|
|
import { useSDK } from "../context/sdk"
|
|
import { useSDK } from "../context/sdk"
|
|
|
import { DialogPrompt } from "../ui/dialog-prompt"
|
|
import { DialogPrompt } from "../ui/dialog-prompt"
|
|
|
|
|
+import { Link } from "../ui/link"
|
|
|
import { useTheme } from "../context/theme"
|
|
import { useTheme } from "../context/theme"
|
|
|
import { TextAttributes } from "@opentui/core"
|
|
import { TextAttributes } from "@opentui/core"
|
|
|
import type { ProviderAuthAuthorization } from "@opencode-ai/sdk/v2"
|
|
import type { ProviderAuthAuthorization } from "@opencode-ai/sdk/v2"
|
|
@@ -128,7 +129,7 @@ function AutoMethod(props: AutoMethodProps) {
|
|
|
<text fg={theme.textMuted}>esc</text>
|
|
<text fg={theme.textMuted}>esc</text>
|
|
|
</box>
|
|
</box>
|
|
|
<box gap={1}>
|
|
<box gap={1}>
|
|
|
- <text fg={theme.primary}>{props.authorization.url}</text>
|
|
|
|
|
|
|
+ <Link href={props.authorization.url} fg={theme.primary} />
|
|
|
<text fg={theme.textMuted}>{props.authorization.instructions}</text>
|
|
<text fg={theme.textMuted}>{props.authorization.instructions}</text>
|
|
|
</box>
|
|
</box>
|
|
|
<text fg={theme.textMuted}>Waiting for authorization...</text>
|
|
<text fg={theme.textMuted}>Waiting for authorization...</text>
|
|
@@ -170,7 +171,7 @@ function CodeMethod(props: CodeMethodProps) {
|
|
|
description={() => (
|
|
description={() => (
|
|
|
<box gap={1}>
|
|
<box gap={1}>
|
|
|
<text fg={theme.textMuted}>{props.authorization.instructions}</text>
|
|
<text fg={theme.textMuted}>{props.authorization.instructions}</text>
|
|
|
- <text fg={theme.primary}>{props.authorization.url}</text>
|
|
|
|
|
|
|
+ <Link href={props.authorization.url} fg={theme.primary} />
|
|
|
<Show when={error()}>
|
|
<Show when={error()}>
|
|
|
<text fg={theme.error}>Invalid code</text>
|
|
<text fg={theme.error}>Invalid code</text>
|
|
|
</Show>
|
|
</Show>
|