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 CHANGED
@@ -4,6 +4,9 @@ English | [中文](README.zh.md)
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/dsh-diff-approval)](https://www.npmjs.com/package/dsh-diff-approval)
6
6
  [![CI](https://img.shields.io/github/actions/workflow/status/9087/dsh-diff-approval/ci.yml)](https://github.com/9087/dsh-diff-approval/actions)
7
+ [![Compat (supported releases)](https://img.shields.io/github/actions/workflow/status/9087/dsh-diff-approval/compat.yml?label=compat%20(supported))](https://github.com/9087/dsh-diff-approval/actions/workflows/compat.yml)
8
+ [![Compat (newer published releases)](https://img.shields.io/github/actions/workflow/status/9087/dsh-diff-approval/compat-newer.yml?label=compat%20(newer))](https://github.com/9087/dsh-diff-approval/actions/workflows/compat-newer.yml)
9
+ [![Release](https://img.shields.io/github/actions/workflow/status/9087/dsh-diff-approval/release.yml?label=release)](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
  [![npm 版本](https://img.shields.io/npm/v/dsh-diff-approval)](https://www.npmjs.com/package/dsh-diff-approval)
6
6
  [![CI](https://img.shields.io/github/actions/workflow/status/9087/dsh-diff-approval/ci.yml)](https://github.com/9087/dsh-diff-approval/actions)
7
+ [![兼容性(声明范围内的已发布版本)](https://img.shields.io/github/actions/workflow/status/9087/dsh-diff-approval/compat.yml?label=compat%20(supported))](https://github.com/9087/dsh-diff-approval/actions/workflows/compat.yml)
8
+ [![兼容性(比 latest 更新的已发布版本)](https://img.shields.io/github/actions/workflow/status/9087/dsh-diff-approval/compat-newer.yml?label=compat%20(newer))](https://github.com/9087/dsh-diff-approval/actions/workflows/compat-newer.yml)
9
+ [![发布](https://img.shields.io/github/actions/workflow/status/9087/dsh-diff-approval/release.yml?label=release)](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
 
@@ -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
- **Off until asked for.** The switch is in the plugin's DSH Settings section
81
- (`等宽 CJK 字体` / "Monospaced CJK font"), stored as `diff-approval:code-font`, and
82
- it defaults to off because the slices are traffic the reader pays for: tens of
83
- kilobytes for ordinary Chinese, at most ~120 KB per slice for a rare character,
84
- 33 KB for pure ASCII. Off means nothing is fetched at all — no manifest request,
85
- no `@font-face` — so the default panel is exactly what it was before this
86
- existed. A browser fetches a `@font-face` only when a rule uses it, which is what
87
- keeps an enabled pure-ASCII file down to the one Latin slice.
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:code-font (off by default)"
18
+ "gatedBy": "settings switch: diff-approval:mono-font (on by default; an explicit '0' turns it off)"
19
19
  },
20
20
  "slices": [
21
21
  {