feat(plugins): analyze plugin data in the built-in AI panel
This commit is contained in:
33 files changed
+716
-216
No files matched your search
@@ -0,0 +1,39 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import az from "../locales/az";
|
||||
import en from "../locales/en";
|
||||
import es from "../locales/es";
|
||||
import it_ from "../locales/it";
|
||||
import ja from "../locales/ja";
|
||||
import ko from "../locales/ko";
|
||||
import ptBR from "../locales/pt-BR";
|
||||
import tr from "../locales/tr";
|
||||
import zhCN from "../locales/zh-CN";
|
||||
import zhTW from "../locales/zh-TW";
|
||||
|
||||
const locales: Array<[string, Record<string, unknown>]> = [
|
||||
["az", az],
|
||||
["en", en],
|
||||
["es", es],
|
||||
["it", it_],
|
||||
["ja", ja],
|
||||
["ko", ko],
|
||||
["pt-BR", ptBR],
|
||||
["tr", tr],
|
||||
["zh-CN", zhCN],
|
||||
["zh-TW", zhTW],
|
||||
];
|
||||
|
||||
// Keys the plugin AI conversation adds to the `ai` namespace. The panel renders
|
||||
// in whatever locale the user runs, so a missing key would leak a raw key into
|
||||
// the composer placeholder or the welcome copy.
|
||||
const AI_PLUGIN_CONVERSATION_KEYS = ["pluginHttpModelOnly", "pluginWelcome", "pluginFollowUp"] as const;
|
||||
|
||||
describe("plugin AI conversation locale parity", () => {
|
||||
it.each(locales)("%s exposes the plugin conversation copy", (_name, locale) => {
|
||||
const ai = (locale as { ai: Record<string, unknown> }).ai;
|
||||
for (const key of AI_PLUGIN_CONVERSATION_KEYS) {
|
||||
expect(ai[key], `${_name}: ai.${key}`).toBeTypeOf("string");
|
||||
expect(ai[key] as string, `${_name}: ai.${key}`).not.toHaveLength(0);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -3214,6 +3214,9 @@ export default withEnglishFallback({
|
||||
maxAgentTurnsDescription: "API agentinin hər icrasında fasilə verib davam etməyinizi istəməzdən əvvəl alət çağırışı gedişlərinin maksimum sayı. CLI provayderləri öz icra limitlərindən istifadə edir.",
|
||||
maxAgentTurnsRange: "{min}–{max}, standart {default}",
|
||||
maxAgentTurnsSaved: "Agentin gediş limiti yadda saxlanıldı",
|
||||
pluginHttpModelOnly: "Plugin analizində bir HTTP modeli və ya Ollama seçin.",
|
||||
pluginWelcome: "Bu məlumat snapshot-u barədə soruşun və söhbəti burada davam etdirin",
|
||||
pluginFollowUp: "Bu snapshot barədə əlavə sual verin…",
|
||||
defaultAiMode: "Standart AI rejimi",
|
||||
defaultAiModeDescription: "Yeni AI söhbətinə başlayarkən istifadə olunan rejim. Cari söhbətdə rejimin dəyişdirilməsi bu parametri dəyişmir.",
|
||||
defaultAutoRouting: "Standart olaraq avtomatik niyyət marşrutlaşdırması",
|
||||
|
||||
@@ -3408,6 +3408,9 @@ export default {
|
||||
maxAgentTurnsDescription: "Maximum tool-call turns per API agent run before it pauses and asks you to continue. CLI providers use their own run limits.",
|
||||
maxAgentTurnsRange: "{min}–{max}, default {default}",
|
||||
maxAgentTurnsSaved: "Agent turn limit saved",
|
||||
pluginHttpModelOnly: "For plugin analysis, select an HTTP model or Ollama in the model menu.",
|
||||
pluginWelcome: "Ask about this data snapshot and continue the conversation here",
|
||||
pluginFollowUp: "Ask a follow-up about this snapshot…",
|
||||
defaultAiMode: "Default AI Mode",
|
||||
defaultAiModeDescription: "Mode used when starting a new AI conversation. Switching mode in the current conversation does not change this setting.",
|
||||
defaultAutoRouting: "Auto Intent Routing by Default",
|
||||
|
||||
@@ -3179,6 +3179,9 @@ export default withEnglishFallback({
|
||||
maxAgentTurnsDescription: "Máximo de turnos de llamadas a herramientas por ejecución del agente API antes de pausar y pedir continuar. Los proveedores CLI usan sus propios límites.",
|
||||
maxAgentTurnsRange: "{min}–{max}, predeterminado {default}",
|
||||
maxAgentTurnsSaved: "Límite de turnos del agente guardado",
|
||||
pluginHttpModelOnly: "Para el análisis de plugins, selecciona un modelo HTTP u Ollama en el menú de modelos.",
|
||||
pluginWelcome: "Pregunta sobre esta instantánea de datos y continúa la conversación aquí",
|
||||
pluginFollowUp: "Haz una pregunta de seguimiento sobre esta instantánea…",
|
||||
defaultAiMode: "Modo de IA predeterminado",
|
||||
defaultAiModeDescription: "Modo usado al iniciar una nueva conversación de IA. Cambiar de modo en la conversación actual no modifica esta configuración.",
|
||||
defaultAutoRouting: "Enrutamiento de intención automático por defecto",
|
||||
|
||||
@@ -3072,6 +3072,9 @@ export default withEnglishFallback({
|
||||
maxAgentTurnsDescription: "Numero massimo di turni di chiamate agli strumenti per esecuzione dell'agente API prima di mettere in pausa e chiedere di continuare. I provider CLI usano limiti propri.",
|
||||
maxAgentTurnsRange: "{min}–{max}, predefinito {default}",
|
||||
maxAgentTurnsSaved: "Limite di turni dell'agente salvato",
|
||||
pluginHttpModelOnly: "Per l'analisi dei plugin, seleziona un modello HTTP o Ollama nel menu dei modelli.",
|
||||
pluginWelcome: "Chiedi informazioni su questo snapshot di dati e continua qui la conversazione",
|
||||
pluginFollowUp: "Fai una domanda di approfondimento su questo snapshot…",
|
||||
defaultAiMode: "Modalità IA predefinita",
|
||||
defaultAiModeDescription: "Modalità usata all'avvio di una nuova conversazione IA. Cambiare modalità nella conversazione corrente non modifica questa impostazione.",
|
||||
defaultAutoRouting: "Routing automatico delle intenzioni predefinito",
|
||||
|
||||
@@ -3213,6 +3213,9 @@ export default withEnglishFallback({
|
||||
maxAgentTurnsDescription: "1回のAPIエージェント実行あたりの最大ツール呼び出しターン数。超過すると一時停止し、続行を求めます。CLIプロバイダーは独自の実行制限を使用します。",
|
||||
maxAgentTurnsRange: "{min}–{max}、デフォルト {default}",
|
||||
maxAgentTurnsSaved: "エージェントターン上限を保存しました",
|
||||
pluginHttpModelOnly: "プラグイン分析では、モデルメニューから HTTP モデルまたは Ollama を選択してください。",
|
||||
pluginWelcome: "このデータスナップショットについて質問し、ここで会話を続けられます",
|
||||
pluginFollowUp: "このスナップショットについて追加で質問…",
|
||||
defaultAiMode: "既定の AI モード",
|
||||
defaultAiModeDescription: "新しい AI 会話を開始するときに使用されるモードです。現在の会話でモードを切り替えてもこの設定は変更されません。",
|
||||
defaultAutoRouting: "自動インテントルーティングを既定で有効化",
|
||||
|
||||
@@ -3199,6 +3199,9 @@ export default withEnglishFallback({
|
||||
maxAgentTurnsDescription: "API 에이전트 실행 중 일시 중지하고 계속할지 묻기 전의 최대 도구 호출 턴 수입니다. CLI 공급자는 자체 실행 제한을 사용합니다.",
|
||||
maxAgentTurnsRange: "{min}–{max}, 기본 {default}",
|
||||
maxAgentTurnsSaved: "에이전트 턴 제한을 저장했습니다",
|
||||
pluginHttpModelOnly: "플러그인 분석에는 모델 메뉴에서 HTTP 모델 또는 Ollama를 선택하세요.",
|
||||
pluginWelcome: "이 데이터 스냅샷에 대해 질문하고 여기에서 대화를 이어가세요",
|
||||
pluginFollowUp: "이 스냅샷에 대해 추가로 질문…",
|
||||
defaultAiMode: "기본 AI 모드",
|
||||
defaultAiModeDescription: "새 AI 대화를 시작할 때 사용되는 모드입니다. 현재 대화에서 모드를 전환해도 이 설정은 변경되지 않습니다.",
|
||||
defaultAutoRouting: "자동 의도 라우팅 기본 사용",
|
||||
|
||||
@@ -3180,6 +3180,9 @@ export default withEnglishFallback({
|
||||
maxAgentTurnsDescription: "Máximo de turnos de ferramentas por execução do agente de API antes de pausar e pedir para continuar. Provedores CLI usam seus próprios limites.",
|
||||
maxAgentTurnsRange: "{min}–{max}, padrão {default}",
|
||||
maxAgentTurnsSaved: "Limite de turnos do agente salvo",
|
||||
pluginHttpModelOnly: "Para a análise de plugins, selecione um modelo HTTP ou Ollama no menu de modelos.",
|
||||
pluginWelcome: "Pergunte sobre este snapshot de dados e continue a conversa aqui",
|
||||
pluginFollowUp: "Faça uma pergunta de acompanhamento sobre este snapshot…",
|
||||
defaultAiMode: "Modo de IA padrão",
|
||||
defaultAiModeDescription: "Modo usado ao iniciar uma nova conversa de IA. Alterar o modo na conversa atual não altera esta configuração.",
|
||||
defaultAutoRouting: "Roteamento automático de intenção por padrão",
|
||||
|
||||
@@ -3187,6 +3187,9 @@ export default withEnglishFallback({
|
||||
maxAgentTurnsDescription: "Bir API agent çalıştırmasının duraklayıp devam etmenizi istemeden önce yapabileceği en fazla araç çağrısı turu. CLI sağlayıcıları kendi çalıştırma sınırlarını kullanır.",
|
||||
maxAgentTurnsRange: "{min}–{max}, varsayılan {default}",
|
||||
maxAgentTurnsSaved: "Agent tur sınırı kaydedildi",
|
||||
pluginHttpModelOnly: "Eklenti analizi için model menüsünden bir HTTP modeli veya Ollama seçin.",
|
||||
pluginWelcome: "Bu veri anlık görüntüsü hakkında sorun ve sohbeti burada sürdürün",
|
||||
pluginFollowUp: "Bu anlık görüntü hakkında ek soru sorun…",
|
||||
defaultAiMode: "Varsayılan Yapay Zekâ Modu",
|
||||
defaultAiModeDescription: "Yeni bir yapay zekâ konuşması başlatılırken kullanılan mod. Geçerli konuşmada mod değiştirmek bu ayarı değiştirmez.",
|
||||
defaultAutoRouting: "Varsayılan olarak otomatik niyet yönlendirme",
|
||||
|
||||
@@ -3320,6 +3320,9 @@ export default withEnglishFallback({
|
||||
maxAgentTurnsDescription: "单次 API Agent 运行的最大工具调用回合数,超过后会暂停并提示继续。CLI 供应商使用各自的运行限制。",
|
||||
maxAgentTurnsRange: "{min}–{max},默认 {default}",
|
||||
maxAgentTurnsSaved: "Agent 回合上限已保存",
|
||||
pluginHttpModelOnly: "插件分析请在模型菜单中选择 HTTP 模型或 Ollama。",
|
||||
pluginWelcome: "围绕这份数据快照分析,在这里继续追问",
|
||||
pluginFollowUp: "继续追问这份数据快照…",
|
||||
defaultAiMode: "默认 AI 模式",
|
||||
defaultAiModeDescription: "新建 AI 对话时使用的模式。切换当前对话的模式不会修改此设置。",
|
||||
defaultAutoRouting: "默认启用自动意图路由",
|
||||
|
||||
@@ -3071,6 +3071,9 @@ export default withEnglishFallback({
|
||||
maxAgentTurnsDescription: "單次 API Agent 執行的最大工具呼叫回合數,超過後會暫停並提示繼續。CLI 供應商使用各自的執行限制。",
|
||||
maxAgentTurnsRange: "{min}–{max},預設 {default}",
|
||||
maxAgentTurnsSaved: "Agent 回合上限已儲存",
|
||||
pluginHttpModelOnly: "插件分析請在模型選單中選擇 HTTP 模型或 Ollama。",
|
||||
pluginWelcome: "針對這份資料快照分析,在這裡繼續追問",
|
||||
pluginFollowUp: "繼續追問這份資料快照…",
|
||||
defaultAiMode: "預設 AI 模式",
|
||||
defaultAiModeDescription: "建立新 AI 對話時使用的模式。切換目前對話的模式不會變更此設定。",
|
||||
defaultAutoRouting: "預設啟用自動意圖路由",
|
||||
|
||||
Reference in new issue
Block a user