diff --git a/messages/ar.json b/messages/ar.json index 90a8e9a9..b5cceab4 100644 --- a/messages/ar.json +++ b/messages/ar.json @@ -44,7 +44,8 @@ "profile": "الملف الشخصي", "login": "تسجيل الدخول", "register": "إنشاء حساب", - "logout": "تسجيل الخروج" + "logout": "تسجيل الخروج", + "ide": "الأوامر المكتوبة" }, "brand": { "copyLogoSvg": "نسخ شعار SVG", @@ -1112,5 +1113,15 @@ "contentConstraints": "قيود المحتوى:", "contentExample": "\"لا تضمن آراء شخصية\" / \"ركز فقط على المعلومات الواقعية\"" } + }, + "ide": { + "title": "الأوامر المكتوبة", + "subtitle": "هندسة أوامر منظمة وآمنة النوع", + "editor": "المحرر", + "preview": "معاينة", + "run": "تشغيل", + "reset": "إعادة تعيين", + "copied": "تم النسخ إلى الحافظة", + "runToPreview": "انقر على تشغيل لمشاهدة معاينة الأمر" } } diff --git a/messages/de.json b/messages/de.json index 04ddfef6..e6361a77 100644 --- a/messages/de.json +++ b/messages/de.json @@ -44,7 +44,8 @@ "profile": "Profil", "login": "Anmelden", "register": "Registrieren", - "logout": "Abmelden" + "logout": "Abmelden", + "ide": "Typisierte Prompts" }, "brand": { "copyLogoSvg": "Logo SVG kopieren", @@ -1112,5 +1113,15 @@ "contentConstraints": "Inhaltsbeschränkungen:", "contentExample": "\"Keine persönlichen Meinungen einbeziehen\" / \"Nur auf faktische Informationen konzentrieren\"" } + }, + "ide": { + "title": "Typisierte Prompts", + "subtitle": "Typsichere, strukturierte Prompt-Entwicklung", + "editor": "Editor", + "preview": "Vorschau", + "run": "Ausführen", + "reset": "Zurücksetzen", + "copied": "In die Zwischenablage kopiert", + "runToPreview": "Klicken Sie auf Ausführen, um die Prompt-Vorschau anzuzeigen" } } diff --git a/messages/el.json b/messages/el.json index 15ccce95..4b23dc85 100644 --- a/messages/el.json +++ b/messages/el.json @@ -44,7 +44,8 @@ "profile": "Προφίλ", "login": "Σύνδεση", "register": "Εγγραφή", - "logout": "Αποσύνδεση" + "logout": "Αποσύνδεση", + "ide": "Τυποποιημένα Prompts" }, "brand": { "copyLogoSvg": "Αντιγραφή Logo SVG", @@ -1110,7 +1111,17 @@ "styleConstraints": "Περιορισμοί στυλ:", "styleExample": "\"Χρησιμοποιήστε απλή γλώσσα κατάλληλη για αρχάριους\" / \"Να είστε τεχνικοί και ακριβείς\"", "contentConstraints": "Περιορισμοί περιεχομένου:", - "contentExample": "\"Μη συμπεριλάβετε προσωπικές απόψεις\" / \"Εστιάστε μόνο σε πραγματικές πληροφορίες\"" + "contentExample": "\"Μη συμπεριλάβετε προσωπικές απόψεις\" / \"Eστιάστε μόνο σε πραγματικές πληροφορίες\"" } + }, + "ide": { + "title": "Τυποποιημένα Prompts", + "subtitle": "Δομημένη μηχανική prompts με ασφάλεια τύπων", + "editor": "Επεξεργαστής", + "preview": "Προεπισκόπηση", + "run": "Εκτέλεση", + "reset": "Επαναφορά", + "copied": "Αντιγράφηκε στο πρόχειρο", + "runToPreview": "Κάντε κλικ στο Εκτέλεση για να δείτε την προεπισκόπηση" } } diff --git a/messages/es.json b/messages/es.json index 961a7fc7..e3b2e367 100644 --- a/messages/es.json +++ b/messages/es.json @@ -44,7 +44,8 @@ "profile": "Perfil", "login": "Iniciar sesión", "register": "Registrarse", - "logout": "Cerrar sesión" + "logout": "Cerrar sesión", + "ide": "Prompts Tipados" }, "brand": { "copyLogoSvg": "Copiar Logo SVG", @@ -1112,5 +1113,15 @@ "contentConstraints": "Restricciones de contenido:", "contentExample": "\"No incluyas opiniones personales\" / \"Enfócate solo en información factual\"" } + }, + "ide": { + "title": "Prompts Tipados", + "subtitle": "Ingeniería de prompts estructurada y con tipado seguro", + "editor": "Editor", + "preview": "Vista previa", + "run": "Ejecutar", + "reset": "Restablecer", + "copied": "Copiado al portapapeles", + "runToPreview": "Haz clic en Ejecutar para ver la vista previa del prompt" } } diff --git a/messages/fr.json b/messages/fr.json index 1dd13082..7e66d684 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -44,7 +44,8 @@ "profile": "Profil", "login": "Connexion", "register": "Inscription", - "logout": "Déconnexion" + "logout": "Déconnexion", + "ide": "Prompts Typés" }, "brand": { "copyLogoSvg": "Copier le logo SVG", @@ -1112,5 +1113,15 @@ "contentConstraints": "Contraintes de contenu :", "contentExample": "\"N'incluez pas d'opinions personnelles\" / \"Concentrez-vous uniquement sur les informations factuelles\"" } + }, + "ide": { + "title": "Prompts Typés", + "subtitle": "Ingénierie de prompts structurée et typée", + "editor": "Éditeur", + "preview": "Aperçu", + "run": "Exécuter", + "reset": "Réinitialiser", + "copied": "Copié dans le presse-papiers", + "runToPreview": "Cliquez sur Exécuter pour voir l'aperçu du prompt" } } diff --git a/messages/he.json b/messages/he.json index fd76d821..65e55950 100644 --- a/messages/he.json +++ b/messages/he.json @@ -44,7 +44,8 @@ "profile": "פרופיל", "login": "התחברות", "register": "הרשמה", - "logout": "התנתקות" + "logout": "התנתקות", + "ide": "פרומפטים מוקלדים" }, "brand": { "copyLogoSvg": "העתק לוגו SVG", @@ -1110,7 +1111,17 @@ "styleConstraints": "מגבלות סגנון:", "styleExample": "\"השתמש בשפה פשוטה המתאימה למתחילים\" / \"היה טכני ומדויק\"", "contentConstraints": "מגבלות תוכן:", - "contentExample": "\"אל תכלול דעות אישיות\" / \"התמקד רק במידע עובדתי\"" + "contentExample": "\"\u05d0\u05dc \u05ea\u05db\u05dc\u05d5\u05dc \u05d3\u05e2\u05d5\u05ea \u05d0\u05d9\u05e9\u05d9\u05d5\u05ea\" / \"\u05d4\u05ea\u05de\u05e7\u05d3 \u05e8\u05e7 \u05d1\u05de\u05d9\u05d3\u05e2 \u05e2\u05d5\u05d1\u05d3\u05ea\u05d9\"" } + }, + "ide": { + "title": "פרומפטים מוקלדים", + "subtitle": "הנדסת פרומפטים מובנית ובטוחת טיפוסים", + "editor": "עורך", + "preview": "תצוגה מקדימה", + "run": "הפעל", + "reset": "איפוס", + "copied": "הועתק ללוח", + "runToPreview": "לחץ על הפעל כדי לראות תצוגה מקדימה" } } diff --git a/messages/it.json b/messages/it.json index dc75c008..ff761647 100644 --- a/messages/it.json +++ b/messages/it.json @@ -44,7 +44,8 @@ "profile": "Profilo", "login": "Accedi", "register": "Registrati", - "logout": "Esci" + "logout": "Esci", + "ide": "Prompt Tipizzati" }, "brand": { "copyLogoSvg": "Copia Logo SVG", @@ -1112,5 +1113,15 @@ "contentConstraints": "Vincoli di contenuto:", "contentExample": "\"Non includere opinioni personali\" / \"Concentrati solo su informazioni fattuali\"" } + }, + "ide": { + "title": "Prompt Tipizzati", + "subtitle": "Ingegneria di prompt strutturata e type-safe", + "editor": "Editor", + "preview": "Anteprima", + "run": "Esegui", + "reset": "Ripristina", + "copied": "Copiato negli appunti", + "runToPreview": "Clicca su Esegui per vedere l'anteprima del prompt" } } diff --git a/messages/ja.json b/messages/ja.json index b752af5e..268a9853 100644 --- a/messages/ja.json +++ b/messages/ja.json @@ -44,7 +44,8 @@ "profile": "プロフィール", "login": "ログイン", "register": "登録", - "logout": "ログアウト" + "logout": "ログアウト", + "ide": "型付きプロンプト" }, "brand": { "copyLogoSvg": "ロゴSVGをコピー", @@ -1112,5 +1113,15 @@ "contentConstraints": "内容の制約:", "contentExample": "「個人的な意見を含めない」/「事実情報のみに焦点を当てる」" } + }, + "ide": { + "title": "型付きプロンプト", + "subtitle": "型安全で構造化されたプロンプトエンジニアリング", + "editor": "エディタ", + "preview": "プレビュー", + "run": "実行", + "reset": "リセット", + "copied": "クリップボードにコピーしました", + "runToPreview": "実行をクリックしてプロンプトのプレビューを表示" } } diff --git a/messages/ko.json b/messages/ko.json index 037fff77..90e2093c 100644 --- a/messages/ko.json +++ b/messages/ko.json @@ -44,7 +44,8 @@ "profile": "프로필", "login": "로그인", "register": "회원가입", - "logout": "로그아웃" + "logout": "로그아웃", + "ide": "타입 프롬프트" }, "brand": { "copyLogoSvg": "로고 SVG 복사", @@ -1112,5 +1113,15 @@ "contentConstraints": "내용 제약:", "contentExample": "\"개인적인 의견 포함하지 않음\" / \"사실 정보에만 집중\"" } + }, + "ide": { + "title": "타입 프롬프트", + "subtitle": "타입 안전하고 구조화된 프롬프트 엔지니어링", + "editor": "에디터", + "preview": "미리보기", + "run": "실행", + "reset": "재설정", + "copied": "클립보드에 복사됨", + "runToPreview": "실행을 클릭하여 프롬프트 미리보기 표시" } } diff --git a/messages/pt.json b/messages/pt.json index a6ff5925..8a5285da 100644 --- a/messages/pt.json +++ b/messages/pt.json @@ -44,7 +44,8 @@ "profile": "Perfil", "login": "Entrar", "register": "Cadastrar", - "logout": "Sair" + "logout": "Sair", + "ide": "Prompts Tipados" }, "brand": { "copyLogoSvg": "Copiar Logo SVG", @@ -1112,5 +1113,15 @@ "contentConstraints": "Restrições de conteúdo:", "contentExample": "\"Não inclua opiniões pessoais\" / \"Foque apenas em informações factuais\"" } + }, + "ide": { + "title": "Prompts Tipados", + "subtitle": "Engenharia de prompts estruturada e type-safe", + "editor": "Editor", + "preview": "Pré-visualização", + "run": "Executar", + "reset": "Redefinir", + "copied": "Copiado para a área de transferência", + "runToPreview": "Clique em Executar para ver a pré-visualização do prompt" } } diff --git a/messages/ru.json b/messages/ru.json index fb089ce6..7201b3f3 100644 --- a/messages/ru.json +++ b/messages/ru.json @@ -44,7 +44,8 @@ "profile": "Профиль", "login": "Войти", "register": "Регистрация", - "logout": "Выйти" + "logout": "Выйти", + "ide": "Типизированные промпты" }, "brand": { "copyLogoSvg": "Скопировать логотип SVG", @@ -1112,5 +1113,15 @@ "contentConstraints": "Ограничения по содержанию:", "contentExample": "\"Без личных мнений\" / \"Только фактическая информация\"" } + }, + "ide": { + "title": "Типизированные промпты", + "subtitle": "Типобезопасная структурированная разработка промптов", + "editor": "Редактор", + "preview": "Предпросмотр", + "run": "Запустить", + "reset": "Сбросить", + "copied": "Скопировано в буфер обмена", + "runToPreview": "Нажмите Запустить, чтобы увидеть предпросмотр промпта" } } diff --git a/messages/tr.json b/messages/tr.json index 89b44adb..8173ac98 100644 --- a/messages/tr.json +++ b/messages/tr.json @@ -44,7 +44,8 @@ "profile": "Profil", "login": "Giriş Yap", "register": "Kayıt Ol", - "logout": "Çıkış Yap" + "logout": "Çıkış Yap", + "ide": "Tipli Promptlar" }, "brand": { "copyLogoSvg": "Logo SVG'sini Kopyala", @@ -1112,5 +1113,15 @@ "contentConstraints": "İçerik kısıtlamaları:", "contentExample": "\"Kişisel görüşler ekleme\" / \"Sadece olgusal bilgilere odaklan\"" } + }, + "ide": { + "title": "Tipli Promptlar", + "subtitle": "Tip güvenli, yapılandırılmış prompt mühendisliği", + "editor": "Editör", + "preview": "Önizleme", + "run": "Çalıştır", + "reset": "Sıfırla", + "copied": "Panoya kopyalandı", + "runToPreview": "Prompt önizlemesini görmek için Çalıştır'a tıklayın" } } diff --git a/messages/zh.json b/messages/zh.json index 7aad305c..c8d0f506 100644 --- a/messages/zh.json +++ b/messages/zh.json @@ -44,7 +44,8 @@ "profile": "个人资料", "login": "登录", "register": "注册", - "logout": "退出登录" + "logout": "退出登录", + "ide": "类型化提示词" }, "brand": { "copyLogoSvg": "复制Logo SVG", @@ -1112,5 +1113,15 @@ "contentConstraints": "内容约束:", "contentExample": "\"不包含个人观点\" / \"只关注事实信息\"" } + }, + "ide": { + "title": "类型化提示词", + "subtitle": "类型安全的结构化提示词工程", + "editor": "编辑器", + "preview": "预览", + "run": "运行", + "reset": "重置", + "copied": "已复制到剪贴板", + "runToPreview": "点击运行查看提示词预览" } } diff --git a/package-lock.json b/package-lock.json index 196286b0..3ca18301 100644 --- a/package-lock.json +++ b/package-lock.json @@ -45,7 +45,7 @@ "next-themes": "^0.4.6", "openai": "^6.10.0", "pino": "^10.1.0", - "prompts.chat": "0.0.4", + "prompts.chat": "file:./packages/prompts.chat", "react": "19.2.0", "react-dom": "19.2.0", "react-hook-form": "^7.68.0", diff --git a/package.json b/package.json index 7b2a6011..cb361e90 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "postinstall": "prisma generate" }, "dependencies": { + "prompts.chat": "^0.0.4", "@auth/prisma-adapter": "^2.11.1", "@aws-sdk/client-s3": "^3.948.0", "@hookform/resolvers": "^5.2.2", diff --git a/src/components/ide/prompt-ide.tsx b/src/components/ide/prompt-ide.tsx index aadf78d3..624ba84b 100644 --- a/src/components/ide/prompt-ide.tsx +++ b/src/components/ide/prompt-ide.tsx @@ -26,7 +26,7 @@ import { similarity, quality, parser, -} from "@/../packages/prompts.chat"; +} from "prompts.chat"; type OutputFormat = "json" | "yaml" | "markdown";