@whybebabo/dsh-file-review-tab 0.7.0 → 0.7.1

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
@@ -8,15 +8,15 @@
8
8
 
9
9
  > Port of [left0ver/dsh-file-review](https://github.com/left0ver/dsh-file-review)'s change-review capability into a [dsh-better-sidebar](https://github.com/omdsh-dev/DSH-better-sidebar) sidebar tab, keeping the chat turn-tail review row.
10
10
 
11
- > **镜像说明**:本仓库([whybebabo/dsh-file-review-tab](https://github.com/whybebabo/dsh-file-review-tab))是 [Lzh3070/dsh-file-review-tab](https://github.com/Lzh3070/dsh-file-review-tab) 的 **fork 镜像**,保留其完整提交历史与原插件名(未改名)。基线 commit 为 `1de22fc`(上游 `main` 头部,版本 `0.5.0`,面向 DSH 0.1.5);本仓库在其之上带有 19 个提交(面向 DSH 0.2.0),并以 **`@whybebabo/dsh-file-review-tab`** 发布到 npm。**npm 上的裸名 `dsh-file-review-tab` 由上游作者持有**(维护者 `phynez_1103`,最高 `0.5.0`),本仓库无权也未曾发布到该名下——因此想装本仓库版本必须使用带 scope 的包名,见 [安装](#安装)。上游若更新,其 `main` 与裸名 npm 包仍应视为权威。
11
+ > **镜像说明**:本仓库([whybebabo/dsh-file-review-tab](https://github.com/whybebabo/dsh-file-review-tab))是 [Lzh3070/dsh-file-review-tab](https://github.com/Lzh3070/dsh-file-review-tab) 的 **fork 镜像**,保留其完整提交历史与原插件名(未改名)。基线 commit 为 `1de22fc`(上游 `main` 头部,版本 `0.5.0`,面向 DSH 0.1.5);本仓库在其之上带有 21 个提交(面向 DSH 0.2.0),并以 **`@whybebabo/dsh-file-review-tab`** 发布到 npm。**npm 上的裸名 `dsh-file-review-tab` 由上游作者持有**(维护者 `phynez_1103`,最高 `0.5.0`),本仓库无权也未曾发布到该名下——因此想装本仓库版本必须使用带 scope 的包名,见 [安装](#安装)。上游若更新,其 `main` 与裸名 npm 包仍应视为权威。
12
12
  >
13
- > **Mirror notice**: this repository ([whybebabo/dsh-file-review-tab](https://github.com/whybebabo/dsh-file-review-tab)) is a **fork** of [Lzh3070/dsh-file-review-tab](https://github.com/Lzh3070/dsh-file-review-tab) with the same commit history and the same plugin name (no rename). Its baseline commit is `1de22fc` (upstream `main` head, version `0.5.0`, targeting DSH 0.1.5); this fork carries 19 further commits (targeting DSH 0.2.0) and publishes to npm as **`@whybebabo/dsh-file-review-tab`**. The **bare npm name `dsh-file-review-tab` is owned by upstream** (maintainer `phynez_1103`, highest `0.5.0`), so a fork release must use the scoped name — see [Install](#安装). Treat upstream's `main` and its bare-name npm package as canonical.
13
+ > **Mirror notice**: this repository ([whybebabo/dsh-file-review-tab](https://github.com/whybebabo/dsh-file-review-tab)) is a **fork** of [Lzh3070/dsh-file-review-tab](https://github.com/Lzh3070/dsh-file-review-tab) with the same commit history and the same plugin name (no rename). Its baseline commit is `1de22fc` (upstream `main` head, version `0.5.0`, targeting DSH 0.1.5); this fork carries 21 further commits (targeting DSH 0.2.0) and publishes to npm as **`@whybebabo/dsh-file-review-tab`**. The **bare npm name `dsh-file-review-tab` is owned by upstream** (maintainer `phynez_1103`, highest `0.5.0`), so a fork release must use the scoped name — see [Install](#安装). Treat upstream's `main` and its bare-name npm package as canonical.
14
14
 
15
15
  ## 与上游的差异
16
16
 
17
17
  本 fork 相对上游 `main`(`1de22fc`,`0.5.0`)的差异集中在"面向 DSH 0.2.0 的适配"与"本 fork 自己的发布决策"两类:
18
18
 
19
- | 项 | 上游 `dsh-file-review-tab@0.5.0` | 本 fork `@whybebabo/dsh-file-review-tab@0.7.0` |
19
+ | 项 | 上游 `dsh-file-review-tab@0.5.0` | 本 fork `@whybebabo/dsh-file-review-tab@0.7.1` |
20
20
  |---|---|---|
21
21
  | 目标 DSH | 0.1.5 | **0.2.0-rc.2** |
22
22
  | Typert 编解码 | 旧 `schema:` 形状(0.2.0 注册即抛错) | 严格 `TypertCodec.create()` 工厂 |
@@ -57,13 +57,13 @@ dsh plugin --profile web add github:whybebabo/dsh-file-review-tab
57
57
  dsh plugin --profile web add dsh-file-review-tab@0.5.0
58
58
  ```
59
59
 
60
- > ⚠️ 裸名 `dsh-file-review-tab` 在 npm 上由**上游作者**持有。`dsh plugin --profile web add dsh-file-review-tab` 装到的是上游 `0.5.0`(DSH 0.1.5),**不是**本仓库的 `0.7.0`——要装本 fork 的版本必须用上面的 scoped 名或 GitHub 源。
60
+ > ⚠️ 裸名 `dsh-file-review-tab` 在 npm 上由**上游作者**持有。`dsh plugin --profile web add dsh-file-review-tab` 装到的是上游 `0.5.0`(DSH 0.1.5),**不是**本仓库的 `0.7.1`——要装本 fork 的版本必须用上面的 scoped 名或 GitHub 源。
61
61
 
62
62
  `dsh plugin` 会把参数转发给 profile 目录下的 pnpm,所以 `github:owner/repo` 这类 pnpm 支持的源都可用。
63
63
 
64
64
  装好后**重启 `dsh web`**,在 better-sidebar 侧边栏「+」菜单打开「文件审查」即可。`dsh-better-sidebar` 是前置依赖、不会随本插件自动装上,需另行安装(`dsh plugin --profile web add dsh-better-sidebar`)。
65
65
 
66
- > 刚发布的版本首次安装可能被 pnpm 的 `minimumReleaseAge`(默认 24 小时)挡下——用**精确版本**可绕过:`dsh plugin --profile web add @whybebabo/dsh-file-review-tab@0.7.0`。
66
+ > 刚发布的版本首次安装可能被 pnpm 的 `minimumReleaseAge`(默认 24 小时)挡下——用**精确版本**可绕过:`dsh plugin --profile web add @whybebabo/dsh-file-review-tab@0.7.1`。
67
67
 
68
68
  ### 版本对应
69
69
 
@@ -83,7 +83,7 @@ dsh plugin --profile web add dsh-file-review-tab@0.5.0
83
83
 
84
84
  Relative to upstream `main` (`1de22fc`, `0.5.0`), this fork differs in two ways: DSH 0.2.0 adaptation, and this fork's own publishing decision.
85
85
 
86
- | | Upstream `dsh-file-review-tab@0.5.0` | This fork `@whybebabo/dsh-file-review-tab@0.7.0` |
86
+ | | Upstream `dsh-file-review-tab@0.5.0` | This fork `@whybebabo/dsh-file-review-tab@0.7.1` |
87
87
  |---|---|---|
88
88
  | Target DSH | 0.1.5 | **0.2.0-rc.2** |
89
89
  | Typert codecs | legacy `schema:` shape (0.2.0 rejects it at registration) | strict `TypertCodec.create()` factories |
@@ -107,7 +107,7 @@ Relative to upstream `main` (`1de22fc`, `0.5.0`), this fork differs in two ways:
107
107
  - Session-isolated, pause-when-hidden, CSS-Module scoped styling (no conflicts with the chat area or other plugins).
108
108
  - Narrow-pane adaptive: in half-width splits and floated free windows the turn header wraps and secondary content yields so undo and file names never clip.
109
109
 
110
- Requires DeepSeek Harness web (0.2.0-rc.2+, verified on 0.2.0-rc.2) and dsh-better-sidebar (≥ 0.19.1, verified on 0.24.1), the latter installed separately. Install this fork from npm (`dsh plugin --profile web add @whybebabo/dsh-file-review-tab`) or from this repo's GitHub source (`dsh plugin --profile web add github:whybebabo/dsh-file-review-tab`). `0.7.x` targets the DSH 0.2.0 client API (strict `TypertCodec.create()`, additive `turnTail` list slot, native-identical changes card) and is this fork's only npm release; the bare name `dsh-file-review-tab` on npm belongs to upstream and is still `0.5.0` for DSH 0.1.5, so installing the bare name does not get this fork's version. Users on DSH 0.1.5 should stay on upstream `0.5.x`, and DSH 0.1.2 / 0.1.1 on `0.4.1`. Restart `dsh web` after installing, then open the "File Review" tab from the sidebar's "+" menu. If a freshly published version is held back by pnpm's `minimumReleaseAge` (24 h default), pin it exactly: `@whybebabo/dsh-file-review-tab@0.7.0`.
110
+ Requires DeepSeek Harness web (0.2.0-rc.2+, verified on 0.2.0-rc.2) and dsh-better-sidebar (≥ 0.19.1, verified on 0.24.1), the latter installed separately. Install this fork from npm (`dsh plugin --profile web add @whybebabo/dsh-file-review-tab`) or from this repo's GitHub source (`dsh plugin --profile web add github:whybebabo/dsh-file-review-tab`). `0.7.x` targets the DSH 0.2.0 client API (strict `TypertCodec.create()`, additive `turnTail` list slot, native-identical changes card) and is this fork's only npm release; the bare name `dsh-file-review-tab` on npm belongs to upstream and is still `0.5.0` for DSH 0.1.5, so installing the bare name does not get this fork's version. Users on DSH 0.1.5 should stay on upstream `0.5.x`, and DSH 0.1.2 / 0.1.1 on `0.4.1`. Restart `dsh web` after installing, then open the "File Review" tab from the sidebar's "+" menu. If a freshly published version is held back by pnpm's `minimumReleaseAge` (24 h default), pin it exactly: `@whybebabo/dsh-file-review-tab@0.7.1`.
111
111
 
112
112
  ## Development
113
113
 
@@ -115,16 +115,21 @@ Requires DeepSeek Harness web (0.2.0-rc.2+, verified on 0.2.0-rc.2) and dsh-bett
115
115
  pnpm install
116
116
  pnpm typecheck # tsc --noEmit
117
117
  pnpm build # emits lib/ (host ESM + browser bundle + .d.ts)
118
- pnpm test # runtime checks; run after build
118
+ pnpm test # runtime checks; rebuilds lib/ first via pretest
119
119
  ```
120
120
 
121
- `pnpm test` drives the built artifacts through the real DSH 0.2.0 registries rather than mocking them, so a breaking upstream API change fails here instead of in the UI. All nine checks assert behavior no typecheck can see:
121
+ `pnpm test` drives the built artifacts through the real DSH 0.2.0 registries rather than mocking them, so a breaking upstream API change fails here instead of in the UI. Several checks read `lib/`, so `test` runs `build` first as a `pretest` step: without it a `src/` edit could pass every check against the previous build. All fourteen checks assert behavior no typecheck can see:
122
122
 
123
123
  - `test/typert-descriptors.mjs` — registers the Host Typert contribution against the real registry and round-trips every codec (plus a control proving the pre-0.2.0 `schema:` codec shape is rejected).
124
124
  - `test/slot-registration.mjs` — registers the turn-tail entry against the real `SlotCore` (a list slot requires an `id`).
125
125
  - `test/host-apply.mjs` — runs the host half's `apply()` on a real cordis `Context` and drives the `tools/post-execute` recorder plus the `fileReview` Remote service.
126
+ - `test/undo-redo.mjs` — drives the real `fileReview` service against a temp workspace and asserts an exact undo→redo round trip for multi-hunk and multi-mutation files, including a payload whose settlements arrive in the wrong array order.
127
+ - `test/interleaved-mutations.mjs` — a turn whose changes arrive through BOTH channels (a `run_code` mutation recorded by the Host, plus a model-direct `edit`) stays in event order, so undo and redo both still round-trip; a deletion and a later recreation resolve by event order too (a recreated file is not left marked deleted); and the `recorded` fetch re-arm signal plus its throttle pacing are verified.
126
128
  - `test/review-invalidation.mjs` — session-scoped review-state invalidation and disposer behavior.
129
+ - `test/deep-link.mjs` — resolves a chat→sidebar deep link, including into a turn hidden behind the auto-archive section.
127
130
  - `test/diff-hunks.mjs` — the shared diff core (`toNativeHunks`) invariants: numbering, sign prefixes, context trimming.
131
+ - `test/mutation-order.mjs` — the per-settlement coordinate model that keeps multi-mutation hunks applicable, plus the event-sequence ordering that interleaves the two change channels.
132
+ - `test/deleted-paths.mjs` — `rm`-family option parsing never reports an option or an option's value as a deleted path, and a quoted comma inside a filename is not split into two paths.
128
133
  - `test/client-bundle.mjs` — evaluates `lib/client.js` the way the Web plugin loader does and checks the `dsh.client` contract (`apply` export + `inject` list).
129
134
  - `test/card-render.mjs` / `test/tab-render.mjs` — actually MOUNT the turn-tail card and the sidebar tab with `react-dom/server`, asserting the native structure and that no button nests inside another.
130
135
  - `test/diff-render.mjs` — renders the comparison body (unified/split/wrap, hunk banners, per-side line numbers, creation/deletion/empty status lines).