dsh-diff-approval 0.30.1 → 0.31.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 +3 -0
- package/README.zh.md +3 -0
- package/assets/fonts/README.md +10 -8
- package/assets/fonts/manifest.json +1 -1
- package/lib/client.js +2414 -848
- package/lib/index.js +1672 -265
- package/lib/types/annotate-skill.d.ts +1 -1
- package/lib/types/annotate-tool.d.ts +11 -0
- package/lib/types/annotate.d.ts +28 -0
- package/lib/types/client/PendingPanel.d.ts +27 -21
- package/lib/types/client/category-color.d.ts +62 -0
- package/lib/types/client/chords.d.ts +70 -17
- package/lib/types/client/discussion.d.ts +7 -0
- package/lib/types/client/dock.d.ts +8 -3
- package/lib/types/client/dsh-icons.d.ts +39 -1
- package/lib/types/client/header-entry.d.ts +8 -7
- package/lib/types/client/locales.d.ts +42 -12
- package/lib/types/client/panel-memory.d.ts +24 -6
- package/lib/types/client/path-match.d.ts +50 -0
- package/lib/types/client/port.d.ts +29 -2
- package/lib/types/client/produced-diff.d.ts +83 -6
- package/lib/types/client/reference.d.ts +0 -2
- package/lib/types/client/remap-sync.d.ts +18 -1
- package/lib/types/client/session-seat.d.ts +47 -7
- package/lib/types/client/settings.d.ts +40 -14
- package/lib/types/client/slots.d.ts +115 -3
- package/lib/types/client/store.d.ts +50 -0
- package/lib/types/comment-ask.d.ts +47 -20
- package/lib/types/comments.d.ts +141 -33
- package/lib/types/index.d.ts +1 -1
- package/lib/types/pending.d.ts +30 -4
- package/lib/types/types.d.ts +180 -4
- package/lib/types/vcs.d.ts +2 -1
- package/lib/types/version.d.ts +162 -0
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -4,6 +4,9 @@ English | [中文](README.zh.md)
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/dsh-diff-approval)
|
|
6
6
|
[](https://github.com/9087/dsh-diff-approval/actions)
|
|
7
|
+
[)](https://github.com/9087/dsh-diff-approval/actions/workflows/compat.yml)
|
|
8
|
+
[)](https://github.com/9087/dsh-diff-approval/actions/workflows/compat-newer.yml)
|
|
9
|
+
[](https://github.com/9087/dsh-diff-approval/actions/workflows/release.yml)
|
|
7
10
|
|
|
8
11
|
A DeepSeek Harness (DSH) plugin for pending-change review: it automatically tracks every successful `edit`, `write`, and editor (`str_replace_editor`) mutation, folds them into a single pending list in the sidebar where each file's diff can be reviewed and kept/reverted — and it can also import the workspace's version-control repository's local changes (Git / SVN / Perforce) in one click.
|
|
9
12
|
|
package/README.zh.md
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/dsh-diff-approval)
|
|
6
6
|
[](https://github.com/9087/dsh-diff-approval/actions)
|
|
7
|
+
[)](https://github.com/9087/dsh-diff-approval/actions/workflows/compat.yml)
|
|
8
|
+
[)](https://github.com/9087/dsh-diff-approval/actions/workflows/compat-newer.yml)
|
|
9
|
+
[](https://github.com/9087/dsh-diff-approval/actions/workflows/release.yml)
|
|
7
10
|
|
|
8
11
|
一个 DeepSeek Harness(DSH)待处理改动审核插件:自动跟踪每次成功的 `edit` / `write` / 编辑器(`str_replace_editor`)改动,在侧边栏整合为一个待处理列表,可逐个文件查看完整差异并保留 / 回退,也可以把工作区里版本控制仓库的本地改动一键导入(Git / SVN / Perforce)。
|
|
9
12
|
|
package/assets/fonts/README.md
CHANGED
|
@@ -77,14 +77,16 @@ shell's stack>}`. `.lines` is the diff's code table, so the grid lands on the co
|
|
|
77
77
|
and nothing else — comment bubbles, the file list and the panel's chrome keep the
|
|
78
78
|
shell's font stack.
|
|
79
79
|
|
|
80
|
-
**
|
|
81
|
-
(`等宽 CJK 字体` / "Monospaced CJK font"), stored as `diff-approval:
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
33 KB for pure ASCII.
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
**ON by default, and the switch still turns it off.** The switch is in the plugin's DSH Settings section
|
|
81
|
+
(`等宽 CJK 字体` / "Monospaced CJK font"), stored as `diff-approval:mono-font`, and it defaults to ON
|
|
82
|
+
(2026-10-06): the reader asked for existing profiles to be brought along rather than left off, and the cost
|
|
83
|
+
is traffic that arrives ON DEMAND rather than with the page — tens of kilobytes for ordinary Chinese, at
|
|
84
|
+
most ~120 KB per slice for a rare character, 33 KB for pure ASCII. Only an explicit `'0'` turns it off;
|
|
85
|
+
the older `diff-approval:code-font` key is not read at all, so a profile that had turned the font off before
|
|
86
|
+
that change comes back with it on (deliberate, recorded at the constant in `src/client/settings.ts`). Off
|
|
87
|
+
means nothing is fetched at
|
|
88
|
+
all — no manifest request, no `@font-face`. A browser fetches a `@font-face` only when a rule uses it, which
|
|
89
|
+
is what keeps an enabled pure-ASCII file down to the one Latin slice.
|
|
88
90
|
|
|
89
91
|
`font-display: swap` rather than `block`: the code is readable in the system font
|
|
90
92
|
immediately, and swapping when the slices land changes the column width, never
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"seedGlyphs": 300,
|
|
16
16
|
"capBytes": 120000,
|
|
17
17
|
"order": "ranked-hanzi.txt",
|
|
18
|
-
"gatedBy": "settings switch: diff-approval:
|
|
18
|
+
"gatedBy": "settings switch: diff-approval:mono-font (on by default; an explicit '0' turns it off)"
|
|
19
19
|
},
|
|
20
20
|
"slices": [
|
|
21
21
|
{
|