feat: 新增第 8 个内置 tab「文件追踪」——移植 dsh-file-trace 插件

- 数据层:直接折叠会话事件日志(tool/call + tool/result 对)提取文件操作,
  与仓库「读事件日志而非动注册表」的取向一致;含错误文本捕获与
  running 态实时更新(ctx.on('session/event'),不可见时暂停、恢复时追平)
- 视图:操作列表 + 底部可拖拽 diff 面板;行级 diff(删红/增绿/改蓝)+
  行内字符级高亮;读取视图带真实行号;失败操作统一展示真实错误文本
- 语法着色:轻量分词器(关键字/字符串/数字/类型/函数/注释/预处理),
  色相经 color-mix 落在 diff 三色之间的空档;跨行块注释状态按行序推导
- 单实例 tab,+ 菜单 order 55,角标显示操作数;设置页可整体关闭
  (与独立维护的 dsh-file-trace 插件共存)
- i18n:10 个新 key 同步全部 21 个词典;builtins 测试 7→8;
  README/指南内置清单同步
This commit is contained in:
lhh010 committed 2026-08-30 20:59:50 +08:00
1 parent 3aab7ca3a5
commit 02d3936b92
31 files changed
+1658 -15

No files matched your search

+10
View File
@@ -32,6 +32,16 @@
/** The zh-HK dictionary (key-set-equal to zh, enforced by the type annotation in locales.ts). */
export const zhMO: Record<string, string> = {
files: '檔案',
fileTrace: '檔案追蹤',
fileTraceEmpty: '本工作階段還沒有檔案操作',
fileTraceRead: '讀取',
fileTraceWrite: '寫入',
fileTraceEdit: '編輯',
fileTraceRunning: '執行中',
fileTraceError: '出錯',
fileTraceFold: '{count} 行…點擊展開',
fileTraceContext: '上下文',
fileTracePriorUnknown: '變更前的內容不在視窗內,顯示為全部新增',
explorer: '檔案總管',
git: '原始碼管理',
terminal: '終端',