import { ExternalLink } from "lucide-react"; import type { OwnLogin } from "@peppa/runner"; import { cancelOwnLoginAction, connectOwnSubscriptionAction, finishOwnClaudeLoginAction } from "@/app/(app)/actions"; import { Hidden } from "@/components/cards"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; const step = "flex gap-2.5"; const num = "grid size-5.5 shrink-0 place-items-center rounded-full bg-primary/15 text-xs font-semibold text-primary"; /** * PEP-82: connecting the owner's own subscription without a terminal, in plain steps, right on * the project page — «Подключить Claude» / «Подключить ChatGPT», then the link and the code. */ export function SubscriptionSetup({ projectId, back, logins }: { projectId: number; back: string; logins: OwnLogin[] }) { if (logins.length) { return (
{logins.map((l) => (

Подключаем {l.provider === "claude" ? "Claude" : "ChatGPT"} — осталось {l.provider === "claude" ? "три шага" : "два шага"}

1
Откройте страницу входа и войдите в свой аккаунт {l.provider === "claude" ? "Claude" : "ChatGPT"}{l.provider === "claude" ? ", затем нажмите «Authorize»" : ""}.
{l.provider === "claude" ? ( <>
2 Claude покажет длинный код — нажмите «Copy code».
3
) : (
2
На той странице введите код {l.code} и подтвердите вход.
)}
))}
); } return (

Подключите подписку — и агенты начнут работать

Агенты пишут код на вашей подписке Claude или ChatGPT — подойдёт обычная платная (Claude Pro или Max, ChatGPT Plus или Pro). Это одна минута: вы входите в свой аккаунт, как на любом сайте. Пароль Пеппа не видит.

Нет подписки? Оформите её на claude.ai или chatgpt.com и вернитесь сюда. Другие способы (готовый токен, ключ API) — в «⋯ Настройки проекта → Подписки».

); }