Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

fix(ai): propagate explainData and add missing agent i18n keys

Abeautifulsnowa1f15f6c45f7
diff --git a/apps/desktop/src/components/editor/AiAssistant.vue b/apps/desktop/src/components/editor/AiAssistant.vue
index c08f5ae268..79dce39c03 100644
--- a/apps/desktop/src/components/editor/AiAssistant.vue
+++ b/apps/desktop/src/components/editor/AiAssistant.vue
@@ -355,6 +355,7 @@ function agentEventToStep(event: AgentEvent, index: number): AiAgentStepItem | u
toolName: event.tool_name,
toolArgs: event.type === "tool_call_start" ? (event.args as Record<string, unknown>) : undefined,
toolResult: event.type === "tool_call_end" && !event.is_error ? extractToolResultContent(event.result) : undefined,
+ explainData: event.type === "tool_call_end" ? extractExplainData(event.result) : undefined,
isError: event.type === "tool_call_end" ? event.is_error : undefined,
};
}
diff --git a/apps/desktop/src/i18n/locales/it.ts b/apps/desktop/src/i18n/locales/it.ts
index 7c75b25482..5997a1b3c0 100644
--- a/apps/desktop/src/i18n/locales/it.ts
+++ b/apps/desktop/src/i18n/locales/it.ts
@@ -929,6 +929,10 @@
autoExecute: "Pronto per l'esecuzione",
notRequested: "Esecuzione non richiesta",
skipped: "Non eseguito",
+ callingTool: "Chiamata strumento...",
+ toolDone: "Strumento completato",
+ toolError: "Errore strumento",
+ contextCompacted: "Contesto compresso",
},
agentStepTitles: {
riskCheck: "Controllo rischi: {action} · {category} · {environment} · {reasons}",
diff --git a/apps/desktop/src/i18n/locales/ja.ts b/apps/desktop/src/i18n/locales/ja.ts
index 73bcc6cf78..e0ad7b6f73 100644
--- a/apps/desktop/src/i18n/locales/ja.ts
+++ b/apps/desktop/src/i18n/locales/ja.ts
@@ -982,6 +982,7 @@ export default {
callingTool: "ツールを呼び出し中...",
toolDone: "ツール完了",
toolError: "ツールエラー",
+ contextCompacted: "コンテキストを圧縮しました",
},
agentStepTitles: {
riskCheck: "リスクチェック: {action} · {category} · {environment} · {reasons}",
diff --git a/apps/desktop/src/i18n/locales/pt-BR.ts b/apps/desktop/src/i18n/locales/pt-BR.ts
index 824a81981d..bf2ccfd199 100644
--- a/apps/desktop/src/i18n/locales/pt-BR.ts
+++ b/apps/desktop/src/i18n/locales/pt-BR.ts
@@ -929,6 +929,10 @@
autoExecute: "Pronto para executar",
notRequested: "Execução não solicitada",
skipped: "Não executado",
+ callingTool: "Chamando ferramenta...",
+ toolDone: "Ferramenta concluída",
+ toolError: "Erro da ferramenta",
+ contextCompacted: "Contexto compactado",
},
agentStepTitles: {
riskCheck: "Verificação de risco: {action} · {category} · {environment} · {reasons}",
diff --git a/apps/desktop/src/i18n/locales/zh-TW.ts b/apps/desktop/src/i18n/locales/zh-TW.ts
index 6b23987b52..48e0afd4c4 100644
--- a/apps/desktop/src/i18n/locales/zh-TW.ts
+++ b/apps/desktop/src/i18n/locales/zh-TW.ts
@@ -908,6 +908,10 @@
autoExecute: "準備執行",
notRequested: "未請求執行",
skipped: "未執行",
+ callingTool: "正在調用工具...",
+ toolDone: "工具調用完成",
+ toolError: "工具調用出錯",
+ contextCompacted: "上下文已壓縮",
},
agentStepTitles: {
riskCheck: "風險檢查:{action} · {category} · {environment} · {reasons}",