feat(ai): add guarded SQL auto execution

This commit is contained in:
t8y2
2026-05-11 02:27:56 +08:00
parent 9355fa7e93
commit e03ce491af
6 changed files with 242 additions and 3 deletions
+1
View File
@@ -462,6 +462,7 @@ export default {
fixWithAi: "Fix with AI",
truncated: "Context truncated",
contextSummary: "{database} · {tables} tables",
autoSqlBlocked: "The AI-generated SQL looked too risky to auto-execute. Review it manually before running.",
settingsHint:
"The config is stored in the local app data directory. Requests are sent by the Tauri backend instead of directly from the frontend.",
actions: {
+1
View File
@@ -453,6 +453,7 @@ export default {
fixWithAi: "用 AI 修复",
truncated: "上下文已截断",
contextSummary: "{database} · {tables} 张表",
autoSqlBlocked: "AI 生成的 SQL 风险较高,已阻止自动执行,请手动检查后再运行。",
settingsHint: "配置会保存在本机应用数据目录中。请求由 Tauri 后端发出,避免在前端直接暴露给模型服务。",
actions: {
generate: "生成 SQL",