From a93dd1bf59e8af66c135219886f1fa3400119486 Mon Sep 17 00:00:00 2001 From: qianmoQ Date: Mon, 22 Jun 2026 15:54:14 +0800 Subject: [PATCH 1/9] =?UTF-8?q?fix(debug):=20=E5=8F=98=E9=87=8F=E8=A1=8C?= =?UTF-8?q?=E5=AF=B9=E9=BD=90=E4=B8=8E=E8=B0=83=E8=AF=95=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E5=8F=AF=E6=8B=96=E6=8B=BD=E6=94=B9=E5=AE=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - DebugVarNode 改 items-center 居中对齐折叠箭头与内容;空值变量(如 special variables 分组)不再显示多余冒号 - DebugPanel 左缘新增拖拽手柄改宽(240px ~ 窗口宽-200px),宽度持久化到 KV(debug-panel-width),卸载清理监听 --- src/components/DebugPanel.vue | 38 +++++++++++++++++++++++++++++++-- src/components/DebugVarNode.vue | 11 ++++++---- 2 files changed, 43 insertions(+), 6 deletions(-) diff --git a/src/components/DebugPanel.vue b/src/components/DebugPanel.vue index 4fd18676..02087bf2 100644 --- a/src/components/DebugPanel.vue +++ b/src/components/DebugPanel.vue @@ -1,6 +1,10 @@ diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 9960041e..5fb832f1 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -1024,6 +1024,21 @@ "revealIn": "Reveal in file manager: {path}", "unsaved": "Unsaved changes" }, + "aiCode": { + "title": { + "explain": "AI: Explain code", + "refactor": "AI: Refactor code", + "test": "AI: Generate tests" + }, + "thinking": "AI is thinking…", + "replace": "Replace selection", + "insert": "Insert below", + "copy": "Copy", + "copied": "Copied", + "close": "Close", + "failed": "AI action failed: ", + "noCode": "No code to process" + }, "task": { "title": "Run tasks", "labelPlaceholder": "Task name", diff --git a/src/i18n/locales/zh-CN.json b/src/i18n/locales/zh-CN.json index 6633e874..7cb70342 100644 --- a/src/i18n/locales/zh-CN.json +++ b/src/i18n/locales/zh-CN.json @@ -1024,6 +1024,21 @@ "revealIn": "在访达中显示:{path}", "unsaved": "有未保存的修改" }, + "aiCode": { + "title": { + "explain": "AI 解释代码", + "refactor": "AI 重构代码", + "test": "AI 生成测试" + }, + "thinking": "AI 思考中…", + "replace": "替换选区", + "insert": "插入到下方", + "copy": "复制", + "copied": "已复制", + "close": "关闭", + "failed": "AI 操作失败:", + "noCode": "没有可处理的代码" + }, "task": { "title": "运行任务", "labelPlaceholder": "任务名", From 7c700f1099bdf005daca63a1090e569469338c7a Mon Sep 17 00:00:00 2001 From: qianmoQ Date: Thu, 25 Jun 2026 10:55:57 +0800 Subject: [PATCH 4/9] =?UTF-8?q?feat(ai):=20=E5=AF=B9=E8=AF=9D=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=8C=82=E6=8E=A5=E4=BB=A3=E7=A0=81=E5=BA=93=E4=B8=8A?= =?UTF-8?q?=E4=B8=8B=E6=96=87=20(C3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - AiAssistant 输入区新增「当前文件 / 项目结构」上下文开关 - 开启后把当前文件内容(截断 12k)与项目文件列表(前 200)注入 system 提示,按需附带 - 项目文件列表缓存,rootDir 变更失效;补充 chat.context/ctxFile/ctxProject 文案 --- src/components/AiAssistant.vue | 48 +++++++++++++++++++++++++++++++++- src/i18n/locales/en.json | 3 +++ src/i18n/locales/zh-CN.json | 3 +++ 3 files changed, 53 insertions(+), 1 deletion(-) diff --git a/src/components/AiAssistant.vue b/src/components/AiAssistant.vue index 9c8b3822..078eb92c 100644 --- a/src/components/AiAssistant.vue +++ b/src/components/AiAssistant.vue @@ -55,6 +55,20 @@ {{ t('chat.stop') }} + +
+ {{ t('chat.context') }} + + +