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:
@@ -24,6 +24,16 @@
|
||||
/** The zh dictionary (also registered into the DSH locale registry under {@link LOCALE_NS}). */
|
||||
export const zh = {
|
||||
files: '文件',
|
||||
fileTrace: '文件追踪',
|
||||
fileTraceEmpty: '本会话还没有文件操作',
|
||||
fileTraceRead: '读取',
|
||||
fileTraceWrite: '写入',
|
||||
fileTraceEdit: '编辑',
|
||||
fileTraceRunning: '执行中',
|
||||
fileTraceError: '出错',
|
||||
fileTraceFold: '{count} 行…点击展开',
|
||||
fileTraceContext: '上下文',
|
||||
fileTracePriorUnknown: '变更前的内容不在窗口内,显示为全新增',
|
||||
explorer: '资源管理器',
|
||||
git: '源代码管理',
|
||||
terminal: '终端',
|
||||
@@ -392,6 +402,16 @@ export const zh = {
|
||||
/** The en dictionary (key-set-equal to zh, enforced by the type annotation). */
|
||||
export const en: Record<keyof typeof zh, string> = {
|
||||
files: 'Files',
|
||||
fileTrace: 'File trace',
|
||||
fileTraceEmpty: 'No file operations in this session yet',
|
||||
fileTraceRead: 'Read',
|
||||
fileTraceWrite: 'Write',
|
||||
fileTraceEdit: 'Edit',
|
||||
fileTraceRunning: 'running',
|
||||
fileTraceError: 'error',
|
||||
fileTraceFold: '{count} lines…click to expand',
|
||||
fileTraceContext: 'context',
|
||||
fileTracePriorUnknown: 'Prior content is outside the loaded window; shown as all-added',
|
||||
explorer: 'Explorer',
|
||||
git: 'Source Control',
|
||||
terminal: 'Terminal',
|
||||
|
||||
Reference in New Issue
Block a user