224 lines
19 KiB
TypeScript
224 lines
19 KiB
TypeScript
// PEP-135: texts of the guide «Peppa FACTORY в вашем Claude или ChatGPT» (/help/connect) —
|
||
// how a product person connects Peppa FACTORY to their own chat. A translation file: no logic,
|
||
// every language has the same shape. Russian words come from docs/glossary.md (the test
|
||
// connect-help.test.ts checks them against its «Нельзя» column). Menu names of Claude and
|
||
// ChatGPT stay in English: that is how the person sees them on those sites.
|
||
|
||
export interface ConnectApp {
|
||
/** Short id for anchors: claude, chatgpt. */
|
||
id: string;
|
||
title: string;
|
||
/** What the person needs before they start (plan, where the menu is). */
|
||
need: string;
|
||
steps: string[];
|
||
}
|
||
|
||
export interface ConnectHelpText {
|
||
title: string;
|
||
lead: string;
|
||
addressTitle: string;
|
||
addressNote: string;
|
||
copy: string;
|
||
copied: string;
|
||
apps: [ConnectApp, ConnectApp];
|
||
askTitle: string;
|
||
askLead: string;
|
||
asks: string[];
|
||
troubleTitle: string;
|
||
troubles: Array<{ q: string; a: string }>;
|
||
offTitle: string;
|
||
off: string;
|
||
offLink: string;
|
||
other: string;
|
||
/** Link texts on «Помощь» and in «Настройки». */
|
||
linkFromHelp: string;
|
||
linkLabel: string;
|
||
back: string;
|
||
}
|
||
|
||
export const CONNECT_LANGS = ["ru", "kk", "en"] as const;
|
||
export type ConnectLang = (typeof CONNECT_LANGS)[number];
|
||
|
||
export const CONNECT_HELP: Record<ConnectLang, ConnectHelpText> = {
|
||
ru: {
|
||
title: "Peppa FACTORY в вашем Claude или ChatGPT",
|
||
lead: "Подключите Peppa FACTORY к своему чату — и ставьте задачи, отвечайте агентам и принимайте результат, не открывая сайт. Подключение занимает пару минут, программировать не нужно.",
|
||
addressTitle: "Адрес для подключения",
|
||
addressNote: "Этот адрес вы вставите в настройках своего чата. Он одинаковый для всех — доступ к вашим проектам появится только после того, как вы сами войдёте и нажмёте «Разрешить».",
|
||
copy: "Скопировать адрес",
|
||
copied: "Скопировано",
|
||
apps: [
|
||
{
|
||
id: "claude",
|
||
title: "Claude",
|
||
need: "Подойдёт сайт claude.ai или приложение Claude. На бесплатном тарифе Claude такой возможности может не быть.",
|
||
steps: [
|
||
"Скопируйте адрес выше.",
|
||
"В Claude нажмите на своё имя внизу слева и откройте «Settings» → «Connectors».",
|
||
"Нажмите «Add custom connector». В поле «Name» напишите Peppa FACTORY, в поле с адресом вставьте скопированный адрес и нажмите «Add».",
|
||
"Рядом с новой строкой Peppa FACTORY нажмите «Connect». Откроется страница Peppa FACTORY — войдите так же, как обычно входите на сайт.",
|
||
"Страница покажет, что Claude просит доступ к Peppa FACTORY, — нажмите «Разрешить». Вас вернёт в Claude — подключение готово.",
|
||
"В новом чате нажмите значок настроек под полем ввода и проверьте, что Peppa FACTORY включена.",
|
||
],
|
||
},
|
||
{
|
||
id: "chatgpt",
|
||
title: "ChatGPT",
|
||
need: "Подойдёт сайт chatgpt.com. Нужен платный тариф ChatGPT: на бесплатном своих подключений нет.",
|
||
steps: [
|
||
"Скопируйте адрес выше.",
|
||
"В ChatGPT нажмите на своё имя внизу слева и откройте «Settings» → «Apps & Connectors».",
|
||
"Внизу страницы откройте «Advanced settings» и включите «Developer mode». Без этого кнопки для своего подключения не будет.",
|
||
"Вернитесь в «Apps & Connectors» и нажмите «Create». В поле «Name» напишите Peppa FACTORY, в поле «MCP Server URL» вставьте скопированный адрес, в списке «Authentication» оставьте «OAuth», поставьте галочку «I trust this application» и нажмите «Create».", // glossary-ignore: «OAuth» — дословное название пункта в ChatGPT
|
||
"Откроется страница Peppa FACTORY — войдите так же, как обычно входите на сайт, и нажмите «Разрешить».",
|
||
"В новом чате нажмите «+» рядом с полем ввода, откройте «More» и выберите Peppa FACTORY.",
|
||
],
|
||
},
|
||
],
|
||
askTitle: "Что написать в чате",
|
||
askLead: "Пишите обычными словами — чат сам обратится к Peppa FACTORY. Первый раз он может спросить разрешение на действие: разрешите.",
|
||
asks: [
|
||
"Покажи мои проекты в Peppa FACTORY",
|
||
"Что сейчас ждёт моего ответа?",
|
||
"В проекте SHOP создай задачу: на главной странице нужна кнопка «Заказать звонок»",
|
||
"Что с задачей SHOP-3?",
|
||
"Прими задачу SHOP-3",
|
||
"Верни SHOP-3 на доработку: кнопка должна быть зелёной",
|
||
],
|
||
troubleTitle: "Если не получилось",
|
||
troubles: [
|
||
{ q: "Нет пункта «Connectors» или кнопки «Create»", a: "Скорее всего, на вашем тарифе Claude или ChatGPT нет своих подключений, а в ChatGPT ещё не включён «Developer mode». В рабочем аккаунте компании подключения может разрешать только её администратор." },
|
||
{ q: "Страница Peppa FACTORY просит войти", a: "Это нормально: войдите тем же способом, что и на сайт. Чат не узнаёт ваш способ входа — он получает только разрешение, которое вы дали." },
|
||
{ q: "Чат отвечает, что не видит Peppa FACTORY", a: "Проверьте, что подключение включено именно в этом чате (шаг 6), и начните новый чат." },
|
||
{ q: "Чат не видит нужный проект", a: "Чат видит те же проекты, что и вы на сайте. Попросите владельца проекта добавить вас в участники." },
|
||
],
|
||
offTitle: "Как отключить",
|
||
off: "Откройте «Настройки» → «Подключённые приложения» и нажмите «Отозвать» рядом с приложением. Чат сразу потеряет доступ; подключить заново можно в любой момент.",
|
||
offLink: "Открыть «Подключённые приложения»",
|
||
other: "Пользуетесь другим приложением? Подойдёт любое, где можно добавить своё подключение по адресу: вставьте адрес выше, войдите и нажмите «Разрешить».",
|
||
linkFromHelp: "Хотите ставить задачи прямо из своего Claude или ChatGPT?",
|
||
linkLabel: "Как подключить — по шагам",
|
||
back: "Помощь",
|
||
},
|
||
kk: {
|
||
title: "Peppa FACTORY сіздің Claude немесе ChatGPT ішінде",
|
||
lead: "Peppa FACTORY-ді өз чатыңызға қосыңыз — сайтты ашпай-ақ тапсырма қойып, агенттерге жауап беріп, нәтижені қабылдай аласыз. Қосу бірнеше минут алады, бағдарламалаудың қажеті жоқ.",
|
||
addressTitle: "Қосылу мекенжайы",
|
||
addressNote: "Бұл мекенжайды чатыңыздың баптауларына қоясыз. Ол бәріне бірдей — жобаларыңызға қолжетімділік тек өзіңіз кіріп, «Рұқсат беру» түймесін басқаннан кейін пайда болады.",
|
||
copy: "Мекенжайды көшіру",
|
||
copied: "Көшірілді",
|
||
apps: [
|
||
{
|
||
id: "claude",
|
||
title: "Claude",
|
||
need: "claude.ai сайты немесе Claude қолданбасы жарайды. Claude-тың тегін тарифінде бұл мүмкіндік болмауы мүмкін.",
|
||
steps: [
|
||
"Жоғарыдағы мекенжайды көшіріңіз.",
|
||
"Claude-та сол жақ төмендегі атыңызды басып, «Settings» → «Connectors» бөлімін ашыңыз.",
|
||
"«Add custom connector» түймесін басыңыз. «Name» өрісіне Peppa FACTORY деп жазыңыз, мекенжай өрісіне көшірілген мекенжайды қойып, «Add» түймесін басыңыз.",
|
||
"Жаңа Peppa FACTORY жолының жанындағы «Connect» түймесін басыңыз. Peppa FACTORY беті ашылады — сайтқа әдетте қалай кірсеңіз, солай кіріңіз.",
|
||
"Бетте Claude-тың Peppa FACTORY-ге қолжетімділік сұрап тұрғаны көрсетіледі — «Рұқсат беру» түймесін басыңыз. Сіз Claude-қа қайтасыз — қосылу дайын.",
|
||
"Жаңа чатта енгізу өрісінің астындағы баптаулар белгішесін басып, Peppa FACTORY қосулы екенін тексеріңіз.",
|
||
],
|
||
},
|
||
{
|
||
id: "chatgpt",
|
||
title: "ChatGPT",
|
||
need: "chatgpt.com сайты жарайды. ChatGPT-тің ақылы тарифі керек: тегін тарифте өз қосылымдарыңызды қосу мүмкін емес.",
|
||
steps: [
|
||
"Жоғарыдағы мекенжайды көшіріңіз.",
|
||
"ChatGPT-те сол жақ төмендегі атыңызды басып, «Settings» → «Apps & Connectors» бөлімін ашыңыз.",
|
||
"Беттің төменгі жағындағы «Advanced settings» бөлімін ашып, «Developer mode» қосыңыз. Онсыз өз қосылымыңызды жасайтын түйме шықпайды.",
|
||
"«Apps & Connectors» бөліміне қайтып, «Create» түймесін басыңыз. «Name» өрісіне Peppa FACTORY деп жазыңыз, «MCP Server URL» өрісіне көшірілген мекенжайды қойыңыз, «Authentication» тізімінде «OAuth» қалдырыңыз, «I trust this application» белгісін қойып, «Create» түймесін басыңыз.",
|
||
"Peppa FACTORY беті ашылады — сайтқа әдетте қалай кірсеңіз, солай кіріп, «Рұқсат беру» түймесін басыңыз.",
|
||
"Жаңа чатта енгізу өрісінің жанындағы «+» белгісін басып, «More» бөлімін ашыңыз да, Peppa FACTORY таңдаңыз.",
|
||
],
|
||
},
|
||
],
|
||
askTitle: "Чатқа не жазу керек",
|
||
askLead: "Қарапайым сөзбен жазыңыз — чат Peppa FACTORY-ге өзі жүгінеді. Алғашқы рет ол әрекетке рұқсат сұрауы мүмкін: рұқсат беріңіз.",
|
||
asks: [
|
||
"Peppa FACTORY-дегі жобаларымды көрсет",
|
||
"Қазір менің жауабымды не күтіп тұр?",
|
||
"SHOP жобасында тапсырма жаса: басты бетке «Қоңырауға тапсырыс беру» түймесі керек",
|
||
"SHOP-3 тапсырмасы қалай?",
|
||
"SHOP-3 тапсырмасын қабылда",
|
||
"SHOP-3 тапсырмасын түзетуге қайтар: түйме жасыл болуы керек",
|
||
],
|
||
troubleTitle: "Егер болмаса",
|
||
troubles: [
|
||
{ q: "«Connectors» бөлімі немесе «Create» түймесі жоқ", a: "Сірә, Claude немесе ChatGPT тарифіңізде өз қосылымдарыңызды қосу мүмкіндігі жоқ, ал ChatGPT-те «Developer mode» әлі қосылмаған. Компанияның жұмыс аккаунтында қосылымдарға тек оның әкімшісі рұқсат бере алады." },
|
||
{ q: "Peppa FACTORY беті кіруді сұрайды", a: "Бұл қалыпты: сайтқа қалай кірсеңіз, солай кіріңіз. Чат сіздің кіру тәсіліңізді білмейді — ол тек сіз берген рұқсатты алады." },
|
||
{ q: "Чат Peppa FACTORY-ді көрмеймін дейді", a: "Қосылым дәл осы чатта қосулы екенін тексеріңіз (6-қадам) және жаңа чат бастаңыз." },
|
||
{ q: "Чат қажетті жобаны көрмейді", a: "Чат сіз сайтта көретін жобаларды ғана көреді. Жоба иесінен сізді қатысушы етіп қосуын сұраңыз." },
|
||
],
|
||
offTitle: "Қалай ажырату керек",
|
||
off: "«Баптаулар» → «Қосылған қолданбалар» бөлімін ашып, қолданбаның жанындағы «Қайтарып алу» түймесін басыңыз. Чат қолжетімділіктен бірден айырылады; кез келген уақытта қайта қосуға болады.",
|
||
offLink: "«Қосылған қолданбалар» бөлімін ашу",
|
||
other: "Басқа қолданбаны пайдаланасыз ба? Мекенжай арқылы өз қосылымын қосуға болатын кез келгені жарайды: жоғарыдағы мекенжайды қойып, кіріңіз де «Рұқсат беру» түймесін басыңыз.",
|
||
linkFromHelp: "Тапсырмаларды өз Claude немесе ChatGPT чатыңыздан қойғыңыз келе ме?",
|
||
linkLabel: "Қалай қосу керек — қадамдап",
|
||
back: "Анықтама",
|
||
},
|
||
en: {
|
||
title: "Peppa FACTORY in your Claude or ChatGPT",
|
||
lead: "Connect Peppa FACTORY to your own chat — then create tasks, answer agents and accept results without opening the site. It takes a couple of minutes and needs no programming.",
|
||
addressTitle: "Address to connect",
|
||
addressNote: "You paste this address into your chat's settings. It is the same for everyone — access to your projects appears only after you sign in yourself and press “Allow”.",
|
||
copy: "Copy the address",
|
||
copied: "Copied",
|
||
apps: [
|
||
{
|
||
id: "claude",
|
||
title: "Claude",
|
||
need: "Use the claude.ai site or the Claude app. The free Claude plan may not offer this.",
|
||
steps: [
|
||
"Copy the address above.",
|
||
"In Claude, click your name at the bottom left and open “Settings” → “Connectors”.",
|
||
"Press “Add custom connector”. Type Peppa FACTORY in “Name”, paste the copied address into the address field and press “Add”.",
|
||
"Press “Connect” next to the new Peppa FACTORY row. A Peppa FACTORY page opens — sign in the way you usually sign in to the site.",
|
||
"The page shows that Claude asks for access to Peppa FACTORY — press “Allow”. You are taken back to Claude — the connection is ready.",
|
||
"In a new chat, press the settings icon under the message box and check that Peppa FACTORY is switched on.",
|
||
],
|
||
},
|
||
{
|
||
id: "chatgpt",
|
||
title: "ChatGPT",
|
||
need: "Use the chatgpt.com site. A paid ChatGPT plan is required: the free plan has no connections of your own.",
|
||
steps: [
|
||
"Copy the address above.",
|
||
"In ChatGPT, click your name at the bottom left and open “Settings” → “Apps & Connectors”.",
|
||
"At the bottom of the page open “Advanced settings” and switch on “Developer mode”. Without it there is no button for a connection of your own.",
|
||
"Go back to “Apps & Connectors” and press “Create”. Type Peppa FACTORY in “Name”, paste the copied address into “MCP Server URL”, leave “OAuth” in “Authentication”, tick “I trust this application” and press “Create”.",
|
||
"A Peppa FACTORY page opens — sign in the way you usually sign in to the site and press “Allow”.",
|
||
"In a new chat, press “+” next to the message box, open “More” and choose Peppa FACTORY.",
|
||
],
|
||
},
|
||
],
|
||
askTitle: "What to write in the chat",
|
||
askLead: "Write in plain words — the chat turns to Peppa FACTORY by itself. The first time it may ask permission for an action: allow it.",
|
||
asks: [
|
||
"Show my projects in Peppa FACTORY",
|
||
"What is waiting for my answer right now?",
|
||
"In project SHOP create a task: the home page needs a “Request a call” button",
|
||
"How is task SHOP-3 going?",
|
||
"Accept task SHOP-3",
|
||
"Send SHOP-3 back for changes: the button must be green",
|
||
],
|
||
troubleTitle: "If it did not work",
|
||
troubles: [
|
||
{ q: "There is no “Connectors” item or no “Create” button", a: "Most likely your Claude or ChatGPT plan has no connections of your own, or “Developer mode” is not switched on in ChatGPT yet. In a company account only its administrator may allow connections." },
|
||
{ q: "The Peppa FACTORY page asks me to sign in", a: "That is expected: sign in the same way you do on the site. The chat never learns how you sign in — it only receives the permission you gave." },
|
||
{ q: "The chat says it cannot see Peppa FACTORY", a: "Check that the connection is switched on in this very chat (step 6) and start a new chat." },
|
||
{ q: "The chat cannot see the project I need", a: "The chat sees the same projects you see on the site. Ask the project owner to add you as a member." },
|
||
],
|
||
offTitle: "How to disconnect",
|
||
off: "Open “Settings” → “Connected apps” and press “Revoke” next to the app. The chat loses access at once; you can connect again at any time.",
|
||
offLink: "Open “Connected apps”",
|
||
other: "Using another app? Any app that lets you add a connection of your own by address will do: paste the address above, sign in and press “Allow”.",
|
||
linkFromHelp: "Want to create tasks right from your Claude or ChatGPT?",
|
||
linkLabel: "How to connect — step by step",
|
||
back: "Help",
|
||
},
|
||
};
|