dsh-diff-approval 0.9.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/README.zh.md +4 -3
- package/docs/images/pending-panel.png +0 -0
- package/docs/images/pending-panel.zh.png +0 -0
- package/lib/client.js +747 -161
- package/lib/index.js +39 -8
- package/lib/types/client/PendingPanel.d.ts +1 -0
- package/lib/types/client/SettingsTab.d.ts +5 -4
- package/lib/types/client/locales.d.ts +10 -0
- package/lib/types/client/settings.d.ts +19 -0
- package/lib/types/client/whole-file-diff.d.ts +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,14 +15,15 @@ The numbered markers (① – ⑧) in the screenshot point to the matching detai
|
|
|
15
15
|
|
|
16
16
|
- **Diff view**: syntax-highlighted whole-file diff ⑤ with +/− counts, an overview ruler ④ on the scrollbar showing where changes sit, and an in-file search (`Ctrl+F`). Rows are virtualized, so huge files stay smooth.
|
|
17
17
|
- **Block navigation & decisions**: jump between change blocks with `Ctrl+↑/↓` (or the previous/next buttons) — the focused block flashes. Hover a block to **Keep** or **Revert** just that block from a small actions frame ③ that also shows its position (e.g. "2/5").
|
|
18
|
-
- **Per-file and bulk decisions**: the files in the file list ② can be kept / reverted one at a time, or **Keep all** / **Revert all** from its footer
|
|
18
|
+
- **Per-file and bulk decisions**: the files in the file list ② can be kept / reverted one at a time, or **Keep all** / **Revert all** from its footer ⑦.
|
|
19
19
|
- **Undo / Redo**: every keep, revert, and import is undoable with `Ctrl+Z` / `Ctrl+Y` (active while the panel is open; text inputs keep their own editing).
|
|
20
|
-
- **Line references**: select text in the diff — the status bar shows its `file:start-end` reference
|
|
20
|
+
- **Line references**: select text in the diff — the status bar shows its `file:start-end` reference; click it (or press `Ctrl+L`) to copy, and with the setting on it auto-pastes into the composer ⑥ and focuses it.
|
|
21
21
|
- **Highlight language**: auto-detected from the file extension, or overridden from a dropdown ⑧.
|
|
22
|
+
- **Auto-wrap**: a "Wrap lines" toggle beside the language selector ⑧ wraps long lines for that language (CJK breaks between characters, Latin words stay whole), remembered per language.
|
|
22
23
|
- **External changes**: files already in the pending list are monitored — if one is later modified outside the reviewed edits (another tool, an editor), the panel adopts the new content and flags the divergence.
|
|
23
24
|
- **Open / Reveal**: while reviewing a file's diff, open it in its default app or reveal it in the system file manager with one click.
|
|
24
25
|
- **Import workspace changes**: when the list is empty, click the button to import the workspace's local changes from **Git / SVN / Perforce** — modified, deleted, and (opt-in) untracked files. The VCS root is found by walking up from the workspace, so a workspace inside a subdirectory works too.
|
|
25
|
-
- **Settings**: a "Diff Approval" section in DeepSeek Harness settings with the preferences for auto-paste on copy
|
|
26
|
+
- **Settings**: a "Diff Approval" section in DeepSeek Harness settings with the preferences for auto-paste on copy, whether untracked files are included when importing, and the diff's tab width (2 / 4 / 8 spaces).
|
|
26
27
|
- **Persistence**: pending state is stored per workspace at `<dshHome>/diff-approval/workspaces/<workspaceId>.json` and survives restarts — unhandled changes are still there when you come back, even in a fresh session.
|
|
27
28
|
|
|
28
29
|
## 📦 Install
|
package/README.zh.md
CHANGED
|
@@ -15,14 +15,15 @@
|
|
|
15
15
|
|
|
16
16
|
- **差异视图**:语法高亮整文件差异 ⑤ 与 +/− 统计,滚动条上有概览标尺 ④ 标示改动位置,支持文件内搜索(`Ctrl+F`)。列表按视口虚拟化渲染,大文件也能保持流畅。
|
|
17
17
|
- **差异块导航与操作**:用 `Ctrl+↑/↓`(或上一处 / 下一处按钮)在差异块间跳转,当前块会高亮闪烁。悬停某一块可从小操作框 ③ 单独**保留 / 回退**该块,并显示其位置(如「2/5」)。
|
|
18
|
-
- **整文件与批量操作**:文件列表 ② 里的文件可逐个保留 / 回退,也可在列表底部**全部保留** /
|
|
18
|
+
- **整文件与批量操作**:文件列表 ② 里的文件可逐个保留 / 回退,也可在列表底部**全部保留** / **全部回退** ⑦。
|
|
19
19
|
- **撤销 / 重做**:每次保留、回退、导入都可以用 `Ctrl+Z` / `Ctrl+Y` 撤销 / 重做(面板打开期间全局生效,输入框保留各自的编辑行为)。
|
|
20
|
-
- **行引用**:选中 diff 文本后,底部状态栏显示其 `文件:起-止`
|
|
20
|
+
- **行引用**:选中 diff 文本后,底部状态栏显示其 `文件:起-止` 引用——点击(或按 `Ctrl+L`)即可复制,开启设置后还会自动粘贴到消息输入框 ⑥ 并获得焦点。
|
|
21
21
|
- **高亮语言**:默认按扩展名自动检测,也可通过下拉列表 ⑧ 手动切换。
|
|
22
|
+
- **自动换行**:语言下拉 ⑧ 旁有个「Wrap lines / 自动换行」开关,按语言记住;CJK 逐字断行、拉丁词保持完整。
|
|
22
23
|
- **外部改动**:已纳入列表的文件若之后被外部修改(其它工具 / 编辑器),面板会跟进最新内容并标记分歧。
|
|
23
24
|
- **打开 / 定位**:查看某个文件的差异时,可一键在默认应用中打开它,或在系统文件管理器中定位它。
|
|
24
25
|
- **导入工作区改动**:列表为空时,点击按钮即可导入工作区里 **Git / SVN / Perforce** 的本地改动——已修改、已删除,以及(可选开启的)未跟踪文件。通过从工作区目录逐级向上查找 VCS 根目录,工作区在子目录里也能识别。
|
|
25
|
-
- **设置**:在 DeepSeek Harness
|
|
26
|
+
- **设置**:在 DeepSeek Harness 设置里新增「改动审批」页,包含复制后自动粘贴、导入时是否包含未跟踪文件,以及 diff 的 Tab 宽度(2 / 4 / 8 空格)等偏好。
|
|
26
27
|
- **持久化**:待处理状态按 workspace 落盘至 `<dshHome>/diff-approval/workspaces/<workspaceId>.json`,跨重启保留——回来时未处理的改动仍在,即便换了新会话。
|
|
27
28
|
|
|
28
29
|
## 📦 安装
|
|
Binary file
|
|
Binary file
|