@yangzhe1991/dsh-code-review 0.2.1 → 0.2.2

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
@@ -15,7 +15,8 @@ When the conversation mentions a **local `.diff` / `.patch` file path**, the pat
15
15
 
16
16
  ## Compatibility
17
17
 
18
- - **dsh ≥ 0.1.2-alpha.4** — fully supported since **0.1.5**. The web UI restructure (chat snapshot moved from `useSession((s) => s.chat)` to the session-standard `useChat` hook; markdown code-block DOM wrapped in a `bannerWrap` layer) is handled on both detection paths: markdown diff blocks and collapsed bash tool rows. Verified against **dsh 0.1.3-alpha.2** since **0.2.1**.
18
+ - **dsh ≥ 0.1.2-alpha.4** — fully supported since **0.1.5**. The web UI restructure (chat snapshot moved from `useSession((s) => s.chat)` to the session-standard `useChat` hook; markdown code-block DOM wrapped in a `bannerWrap` layer) is handled on both detection paths: markdown diff blocks and collapsed bash tool rows. Verified against **dsh 0.1.3-alpha.2** since **0.2.1**, and against **dsh 0.2.0-rc.1** since **0.2.2**.
19
+ - **Why 0.2.2 exists** — dsh 0.2.0-rc.1 checks every declared `@deepseek-ai/dsh-*` peer range against the *runtime version* and skips any plugin whose ranges do not match (`^0.1.3-alpha.2` excludes `0.2.0-rc.1`). No plugin code changed: **0.2.2** only widens those ranges to `^0.1.3-alpha.2 || ^0.2.0-rc.1`. On 0.2.0-rc.1 an already-installed **0.2.1** can also be admitted without upgrading, by granting the exact-version exemption (`dsh plugin --profile <profile> allow-version @yangzhe1991/dsh-code-review@0.2.1 --dsh-version 0.2.0-rc.1 --accept-risk`).
19
20
  - **dsh 0.1.0-rc.x** — still supported via the legacy snapshot path.
20
21
 
21
22
  ## Features
package/README.zh.md CHANGED
@@ -15,7 +15,8 @@
15
15
 
16
16
  ## 兼容性
17
17
 
18
- - **dsh ≥ 0.1.2-alpha.4** — 自 **0.1.5** 起完整支持。Web UI 重构(聊天快照从 `useSession((s) => s.chat)` 迁移到会话标准的 `useChat` hook;markdown 代码块 DOM 包了一层 `bannerWrap` 层)在两条检测路径上均已适配:markdown diff 块与折叠的 bash 工具行。自 **0.2.1** 起在 **dsh 0.1.3-alpha.2** 上验证通过。
18
+ - **dsh ≥ 0.1.2-alpha.4** — 自 **0.1.5** 起完整支持。Web UI 重构(聊天快照从 `useSession((s) => s.chat)` 迁移到会话标准的 `useChat` hook;markdown 代码块 DOM 包了一层 `bannerWrap` 层)在两条检测路径上均已适配:markdown diff 块与折叠的 bash 工具行。自 **0.2.1** 起在 **dsh 0.1.3-alpha.2** 上验证通过,自 **0.2.2** 起在 **dsh 0.2.0-rc.1** 上验证通过。
19
+ - **0.2.2 为什么存在** —— dsh 0.2.0-rc.1 会把每个声明的 `@deepseek-ai/dsh-*` peer 范围与**运行时版本**比对,不匹配就跳过整个插件(`^0.1.3-alpha.2` 不含 `0.2.0-rc.1`)。本版**没有代码改动**,只是把这些范围放宽为 `^0.1.3-alpha.2 || ^0.2.0-rc.1`。在 0.2.0-rc.1 上,已装好的 **0.2.1** 也可以不升级直接放行:授予精确版本豁免即可(`dsh plugin --profile <profile> allow-version @yangzhe1991/dsh-code-review@0.2.1 --dsh-version 0.2.0-rc.1 --accept-risk`)。
19
20
  - **dsh 0.1.0-rc.x** — 仍通过旧版快照路径支持。
20
21
 
21
22
  ## 功能
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yangzhe1991/dsh-code-review",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "DSH Web 插件:git diff 一键打开独立双列 Code Review 页,支持语法高亮、行内评论与中英双语;对话中的本地 .diff/.patch 路径自动变成一键查看按钮 | DSH web plugin: one-click standalone two-column code review page for git diff with syntax highlighting, inline comments & bilingual UI; local .diff/.patch paths become one-click view buttons",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -56,10 +56,10 @@
56
56
  },
57
57
  "peerDependencies": {
58
58
  "@deepseek-ai/cordis": "^4.0.2",
59
- "@deepseek-ai/dsh-client-ui-conversation": "^0.1.3-alpha.2",
60
- "@deepseek-ai/dsh-client-ui-layout": "^0.1.3-alpha.2",
61
- "@deepseek-ai/dsh-client-ui-renderer": "^0.1.3-alpha.2",
62
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.3-alpha.2",
59
+ "@deepseek-ai/dsh-client-ui-conversation": "^0.1.3-alpha.2 || ^0.2.0-rc.1",
60
+ "@deepseek-ai/dsh-client-ui-layout": "^0.1.3-alpha.2 || ^0.2.0-rc.1",
61
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.1.3-alpha.2 || ^0.2.0-rc.1",
62
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.3-alpha.2 || ^0.2.0-rc.1",
63
63
  "react": "^18.2.0"
64
64
  },
65
65
  "devDependencies": {