chore(release): prepare v0.33.0

- bump package.json, dsh.plugin.json and SIDEBAR_SERVICE_VERSION to 0.33.0
- move both changelogs out of Unreleased and add the four merged UI fixes
  (#1011, #1233, #945, #948) plus the recommended-catalog batch
- update README install commands, compatibility table, DSH badge and Recent Updates
- point the external plugin guide and the adaptation doc at v0.33.0 and the rc.3 floor
This commit is contained in:
hairyf committed 2026-11-24 11:53:51 +08:00
1 parent 14219fa9d6
commit 3e3d3196d5
9 files changed
+69 -32

No files matched your search

+15 -1
View File
@@ -2,7 +2,7 @@
> 本文档收录 dsh-better-sidebar 的完整发布历史(最新版摘要见 [README](README_ZH.md);同步发布于 [GitHub Releases](https://github.com/omdsh-dev/DSH-better-sidebar/releases))。
### 未发布
### v0.33.0
- 🧷 **Git 详情面板的关闭按钮常驻在 Tabs 同一行的最右侧**([#991](https://github.com/omdsh-dev/DSH-better-sidebar/issues/991)):底部面板的「提交详情 / 内容 / 差异」是一条 Tabs,但关闭整块面板的 X 原先画在「内容 / 差异」的页内头行上——切到「提交详情」时它整条头行都不渲染,于是那个页签根本没有关闭入口,只能先切页签再点 X。现在关闭按钮属于 Tabs 那一行:无论选中哪个页签都停在最右端、位置不变,点击关闭的是整块面板;「内容 / 差异」头行里那个重复的 X 已移除。只有一个视图、没有 Tabs 行的预览仍保持原来的头行位置。
- 🧪 测试:`tests/changes-tab.spec.tsx` 逐个页签断言面板里**只有一个**关闭按钮、它挂在 Tabs 那一行且排在 tablist 之后(行尾),并从「提交详情」页签点击它关闭整块面板。
@@ -10,9 +10,20 @@
- 🧷 **空白新会话在右侧栏展开时仍能打开底部工作台**([#989](https://github.com/omdsh-dev/DSH-better-sidebar/issues/989)):blank 会话里宿主不渲染会话头 utilities,插件的底部工作台入口只剩右上角那一个备用入口;而它在宿主右侧面板展开时整个不渲染,于是「先开右栏」就再也打不开底部工作台(#1053 修的是正常会话的会话头入口,这一处当时被留了下来)。现在展开态照常渲染,并改锚**面板左缘**——那一格是会话头那一行的右端空位,与收起态入口同一列,不压面板内容。
- 🧪 测试:`tests/dock-fallback.spec.tsx` 把「展开态不渲染」改成「展开态渲染且锚在面板左缘(756px)」并断言点击仍能打开;`tests/e2e/blank-session-dock-entry.e2e.ts` 新增真实宿主用例:空白会话展开右栏后入口仍在、屏上恰好一个、右缘不越过面板左缘、点击打开底部面板。
- 🗂 **文件树的搜索头与会话页签的分隔线接上同一条线**(贡献者 PR [#1011](https://github.com/omdsh-dev/DSH-better-sidebar/pull/1011) @yanzhaohui1999):右侧栏的面板体直接落在宿主 38px 页签条下面,而文件树的搜索头还在用底部工作台的度量(6px 内边距 + 1px `border-l1`),它的下边线落在 y=79、会话页签条的分隔线在 y=76(DSH 0.2.2-rc.5),接缝处因此错开 3px,粗细与色阶也不一致。现在改用宿主 `ui-sidebar-files` 面板自己那套头:38px border-box + 0.5px `border-l3` 细线,下边线与会话页签条重合;底部工作台保留原来的宽内边距。
- 🎛 **Changes 的「Git / 本轮文件」切换恢复会话页的下划线 Tabs**([#1235](https://github.com/omdsh-dev/DSH-better-sidebar/issues/1235)):#1101 为摆脱宿主私有哈希类名(#1098)改用公开的 `SegmentedControl`,视觉随之退回灰底胶囊——与会话页页头的下划线 Tabs 不是一套,#939 的结论等于丢了。现在这条切换由插件自己的样式表绘制:13px/500、未选中三级文字、选中态品牌色 + 2px 下划线压在页头分隔线上、24px 间距(#939 的审阅结论),ARIA 关联与左右方向键 / Home / End 漫游焦点照旧;不引用任何宿主私有类名,宿主改版不再影响它。
- 🧪 测试:`tests/changes-tab.spec.tsx` 断言页签条是插件自己的 `lensTabs/lensTab`、下划线由 `changes.module.css` 的主题 Token 画出,并保留键盘 / 持久化 / 刷新用例。
- 🖥 **右侧栏全屏时底部工作台自动收起**(贡献者 PR [#1233](https://github.com/omdsh-dev/DSH-better-sidebar/pull/1233) @WinterXMQ):宿主把右侧栏切到全屏后,面板铺满中心区,而底部工作台凭自身层级浮在它前面,既破坏全屏的整体感,也挡住面板里的操作。现在按宿主暴露的 `data-sidebar-right-panel="fullscreen"`(普通态为 `push`)用一条 `body:has(...)` 规则做视觉收起:滑出屏幕、隐藏、不接收指针事件。规则只改视觉、不碰 store 的 `bottomOpen`,退出全屏即自动失效,工作台连同原来的展开状态一起恢复。
- 🧪 测试:`tests/panel-host-css.spec.ts` 断言收起规则存在(`translateY(102%)` / `pointer-events: none` / `visibility: hidden`)且规则里不出现 `bottomOpen`——纯 CSS 收起,不需要记忆与恢复逻辑。
- 🎛 **原生页签的图标与宿主标题的几何对齐**(贡献者 PR [#945](https://github.com/omdsh-dev/DSH-better-sidebar/pull/945) @hairyf):页签 chip 里的图标此前按插件自己的 14px 尺寸加 6px 右外边距绘制,与宿主标题行自带的居中与 5px 间距叠在一起,图标偏小、偏左。现在图标取宿主页签条自己的 16px,居中与间距交给宿主标题行,并让内联 SVG 以块级显示,不再把基线空隙算进图标盒。
- 🧪 测试:`tests/native-surface.spec.ts` 钉住 chip 图标为 16px;`tests/e2e/mount.e2e.ts` 在真实宿主里把 files / git 页签的图标宽高、图标与标题间距、垂直居中逐项与官方页签标题的实测几何比对(jsdom 看不出内联 SVG 的基线偏移)。
- 🎛 **任务图谱的视图切换控件改成方形**(贡献者 PR [#948](https://github.com/omdsh-dev/DSH-better-sidebar/pull/948) @hairyf):图谱 / 树视图切换是一组分段控件,内部分段仍带圆角,在容器圆角里露出四个小尖角。现在内部分段改为直角、容器裁切溢出,分段与容器边缘齐平。
- 🧪 测试:`tests/tasks-motion.spec.ts` 钉住 `.controls` 的 `overflow: hidden` 与两个分段按钮的 `border-radius: 0`。
- 🧷 **安装下限改由 `package.json#engines.dsh` 独立裁决(`>=0.2.2-rc.3 <0.3.0`)**:宿主预检先读该字段,字段存在时不再看 14 条 DSH peer,因此停在 0.2.1 及更早宿主的安装失败会被插件市场判成「先升级 DSH」,不再当作插件缺陷自动开 issue。0.2.2-rc.2 及更早的 0.2.2 宿主继续使用 v0.32.1。
- 🧩 **DSH master(0.2.2-rc.3 之后)删除 `connection.requestRejection` 后,`/sidebar/*` 不再全部裸 400**([#1204](https://github.com/omdsh-dev/DSH-better-sidebar/issues/1204)):HTTP/WS 准入改为先调用 `requestRejection`(rc.1–rc.3 行为不变),该方法缺席时改用官方替代 `admit` 并读同一个 `rejection` 字段;两者都没有时仍然直接抛错,不重建信任表。此前宿主删掉该方法后,每个请求在第一句就抛 `TypeError`,被宿主兜底成空 body 的 400,界面只剩 `HTTP 400`。
@@ -54,6 +65,9 @@
- 📦 **发布包只安装运行时真正需要的依赖**([#1191](https://github.com/omdsh-dev/DSH-better-sidebar/issues/1191)):`dependencies` 只保留 host 半真正 import 的 `ws` / `yaml`;已经打进 `lib/client*.js` 的 CodeMirror、mermaid、xterm、react-icons、dompurify、clsx、rxjs 等移入 `devDependencies`。安装不再多拉约 240 MB / 1.26 万个文件,插件实际运行时仍只有插件本体加 `ws` / `yaml`。`src` 与 `./src/*` 导出**保留**,不做破坏性删除。
- 🧪 守护:`tests/market-manifest.spec.ts` 同时校验仓库清单与 `pnpm pack` 后的发布清单,dependencies 必须恰好是 `ws` / `yaml`,且 `src` 仍在 `files` 里。
- 🧩 **「添加页签插件」弹窗的推荐目录新增 9 个条目**:页签插件目录收录 Session Sources、dsh-artifacts、dsh-conductor、dsh-mail、dsh-phone、dsh-voice、dsh-pr-inbox、dsh-zotero-workspace(22 → 30 条),文件预览插件目录收录 dsh-bioviewer(5 → 6 条);同时把 dsh-memory-delta 的钉版抬到 v1.3.4、修正 dsh-dev-git-graph 的仓库地址(已改名为 kp-z/dsh-plugins),并从这些安装命令里去掉了多余的 better-sidebar 前置依赖。
- 🧪 守护:`tests/plugin-list.spec.ts`。
### v0.32.1
- 🧩 **适配 DSH 0.2.2-rc.2**:插件基线抬到 0.2.2 线的最新 RC,同时跟上这一版宿主的客户端契约与团队服务。
+15 -1
View File
@@ -4,7 +4,7 @@
>
> 📝 The Chinese [CHANGELOG](./CHANGELOG.md) is the authoritative, item-by-item record; this file carries the English summaries and has historically lagged behind it. Where the two disagree, the Chinese one is current.
### Unreleased
### v0.33.0
- 🧷 **The Git details pane's close button now sits permanently at the right end of the tab row** ([#991](https://github.com/omdsh-dev/DSH-better-sidebar/issues/991)): the bottom pane's "commit details / content / diff" strip is one tab row, but the X that closes the whole pane was drawn inside the content/diff head — a row that does not render at all on the details tab, so that tab had no exit and closing meant switching views first. The button now belongs to the tab row: it stays at the right end on every tab, never moves, and closes the whole pane; the duplicate X inside the content/diff head is gone. A single-view preview with no tab row keeps its previous head placement.
- 🧪 Tests: `tests/changes-tab.spec.tsx` asserts, per tab, that the pane holds exactly one close button, that it rides the tab row after the tablist (the row's right end), and that clicking it from the details tab closes the whole pane.
@@ -12,9 +12,20 @@
- 🧷 **A blank new session can still open the bottom workbench while the right panel is expanded** ([#989](https://github.com/omdsh-dev/DSH-better-sidebar/issues/989)): a blank session draws no session-header utilities, so the plugin's only bottom-workbench opener is the corner fallback entry — and that entry rendered nothing at all while the host's right panel was expanded, which made the workbench unreachable once the panel was opened first (#1053 fixed this for the header entry in ordinary sessions and left this one behind). It now renders in the expanded state too and anchors to the **panel's left edge**: that slot is the free right end of the conversation-header row, the same column as the collapsed-state entry, so it never covers panel content.
- 🧪 Tests: `tests/dock-fallback.spec.tsx` turns "renders nothing while expanded" into "renders while expanded, anchored at the panel's left edge (756px)" and asserts the click still opens the workbench; `tests/e2e/blank-session-dock-entry.e2e.ts` adds a real-host case: after expanding the right column on a blank session the entry is still there, exactly one on screen, its right edge stays left of the panel, and clicking it opens the bottom panel.
- 🗂 **The file tree's search header now joins the session tab rule** (contributor PR [#1011](https://github.com/omdsh-dev/DSH-better-sidebar/pull/1011) @yanzhaohui1999): the right pane's body starts directly under the host's 38px tab strip, but the file tree's search header still used the bottom workbench metrics (6px padding, 1px `border-l1`), so its bottom rule landed at y=79 while the session tab bar's rule sits at y=76 on DSH 0.2.2-rc.5 — a 3px step at the seam with a different weight and shade. It now uses the header DSH's own `ui-sidebar-files` pane uses: a 38px border-box with a 0.5px `border-l3` hairline, so the rule meets the session tab bar's line; the bottom workbench keeps its roomier header.
- 🎛 **The Changes lens switcher is back to the conversation page's underline tabs** ([#1235](https://github.com/omdsh-dev/DSH-better-sidebar/issues/1235)): #1101 dropped the host's private hashed classes (#1098) in favour of the public `SegmentedControl`, which also brought the grey capsule back — a different look from the conversation header's underline tabs, so #939's outcome was lost. The strip is now drawn by the plugin's own sheet: 13px/500, tertiary idle ink, brand ink plus a 2px bar riding the header rule when selected, 24px gap (the reviewed spacing from #939), with the same ARIA wiring and Arrow/Home/End roving focus. No host-private class names, so host releases cannot break it.
- 🧪 Tests: `tests/changes-tab.spec.tsx` pins the strip to the plugin's own `lensTabs/lensTab` classes and the themed underline in `changes.module.css`, keeping the keyboard / persistence / refresh cases.
- 🖥 **The bottom workbench collapses itself while the right panel is fullscreen** (contributor PR [#1233](https://github.com/omdsh-dev/DSH-better-sidebar/pull/1233) @WinterXMQ): in fullscreen the host's panel fills the centre area, and the bottom workbench floated in front of it on its own layer — spoiling the fullscreen surface and blocking controls inside the panel. A single `body:has(...)` rule keyed on the host's `data-sidebar-right-panel="fullscreen"` (`push` when normal) now collapses it visually: slid off-screen, hidden and non-interactive. The rule only changes visuals and never touches the store's `bottomOpen`, so leaving fullscreen stops it applying and the workbench comes back with the open state it had.
- 🧪 Tests: `tests/panel-host-css.spec.ts` asserts the collapse rule exists (`translateY(102%)` / `pointer-events: none` / `visibility: hidden`) and that it never mentions `bottomOpen` — pure CSS, so there is no remember/restore bookkeeping.
- 🎛 **Native tab icons now match the host title's geometry** (contributor PR [#945](https://github.com/omdsh-dev/DSH-better-sidebar/pull/945) @hairyf): the chip glyph was drawn at the plugin's own 14px with a 6px right margin, on top of the host title row's own centring and 5px gap, which left it small and off-centre. It now takes the host tab strip's 16px scale, centring and spacing come from the host title row, and the inline SVG is block-level so its baseline space no longer inflates the icon box.
- 🧪 Tests: `tests/native-surface.spec.ts` pins the chip glyph at 16px; `tests/e2e/mount.e2e.ts` compares the files / git chips' icon size, icon-to-title gap and vertical centring against the official tab title's measured geometry in a real host (jsdom cannot see an inline SVG's baseline offset).
- 🎛 **The task graph's view switch is square again** (contributor PR [#948](https://github.com/omdsh-dev/DSH-better-sidebar/pull/948) @hairyf): the graph / tree switch is one segmented control, but its inner segments kept their rounded corners and poked four small points through the container's radius. The segments are square now and the container clips its overflow, so they sit flush with its edge.
- 🧪 Tests: `tests/tasks-motion.spec.ts` pins `overflow: hidden` on `.controls` and `border-radius: 0` on both segment buttons.
- 🧷 **The install floor is now arbitrated by `package.json#engines.dsh` alone (`>=0.2.2-rc.3 <0.3.0`)**: the host precheck reads that field first and, when present, ignores the 14 DSH peers, so an install that fails on a 0.2.1-or-older host is classified by the plugin market as "upgrade DSH first" instead of being filed against this plugin. Hosts on 0.2.2-rc.2 or earlier 0.2.2 prereleases stay on v0.32.1.
- 🧩 **`/sidebar/*` no longer answers a bare 400 once DSH master (after 0.2.2-rc.3) removed `connection.requestRejection`** ([#1204](https://github.com/omdsh-dev/DSH-better-sidebar/issues/1204)): HTTP/WS admission calls `requestRejection` while it exists (rc.1–rc.3 behaviour unchanged) and otherwise uses the official replacement `admit`, reading the same `rejection` field; when neither exists it still throws instead of rebuilding a trust list. Before this, every request threw a `TypeError` on its first line and the host's fallback turned that into an empty-body 400, leaving only `HTTP 400` on screen.
@@ -56,6 +67,9 @@
- 📦 **The published package installs only its real runtime dependencies** ([#1191](https://github.com/omdsh-dev/DSH-better-sidebar/issues/1191)): `dependencies` keeps only `ws` / `yaml`, which the host half actually imports. CodeMirror, mermaid, xterm, react-icons, dompurify, clsx, rxjs and the rest are already bundled into `lib/client*.js` and move to `devDependencies`, so a normal install no longer pulls roughly 240 MB / 12.6k unused files. `src` and the `./src/*` export stay published — this is not a breaking removal.
- 🧪 `tests/market-manifest.spec.ts` checks both the repo and the `pnpm pack` manifest: dependencies must be exactly `ws` / `yaml`, and `src` must stay in `files`.
- 🧩 **The "add tab plugin" modal's catalog gains 9 entries**: the tab-plugin catalog now lists Session Sources, dsh-artifacts, dsh-conductor, dsh-mail, dsh-phone, dsh-voice, dsh-pr-inbox and dsh-zotero-workspace (22 → 30), and the file-previewer catalog lists dsh-bioviewer (5 → 6). The dsh-memory-delta pin moves to v1.3.4, dsh-dev-git-graph's repository URL is corrected (renamed to kp-z/dsh-plugins), and the redundant better-sidebar prerequisite is gone from those install lines.
- 🧪 Guard: `tests/plugin-list.spec.ts`.
### v0.32.1
- 🧩 **DSH 0.2.2-rc.2 support**: the plugin baseline moves to the newest 0.2.2 RC and follows that host's client contract and team service.
+15 -11
View File
@@ -7,7 +7,7 @@
<a href="https://github.com/omdsh-dev/DSH-better-sidebar/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/omdsh-dev/DSH-better-sidebar/actions/workflows/ci.yml/badge.svg" /></a>
<a href="https://github.com/omdsh-dev/DSH-better-sidebar/stargazers"><img alt="GitHub stars" src="https://img.shields.io/github/stars/omdsh-dev/DSH-better-sidebar" /></a>
<a href="https://opensource.org/licenses/MIT"><img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" /></a>
<a href="https://www.npmjs.com/package/@deepseek-ai/dsh?activeTab=versions"><img alt="Supported DSH versions: 0.2.2-rc.2+" src="https://img.shields.io/badge/DSH-0.2.2--rc.2%2B-4d6bfe" /></a>
<a href="https://www.npmjs.com/package/@deepseek-ai/dsh?activeTab=versions"><img alt="Supported DSH versions: 0.2.2-rc.3+" src="https://img.shields.io/badge/DSH-0.2.2--rc.3%2B-4d6bfe" /></a>
</div>
<div align="center">
@@ -44,16 +44,17 @@ With the `dsh-context` plugin installed, three places offer a one-click jump int
dsh plugin --profile web add dsh-better-sidebar@latest
```
Then **hard-refresh the browser** (Cmd/Ctrl+Shift+R). Requires DSH **0.2.2-rc.2+**.
Then **hard-refresh the browser** (Cmd/Ctrl+Shift+R). Requires DSH **0.2.2-rc.3+**.
> **Compatibility warning — match the plugin to the host line.** As of 2026-11-12, DSH's npm `latest` is **0.2.2-rc.1** and `next` is **0.2.2-rc.2**. **v0.32.1 requires DSH 0.2.2-rc.2+**; hosts on **0.2.2-rc.1** must pin `dsh-better-sidebar@0.32.0`. Hosts on the 0.2.1 line (**0.2.1-rc.1 ~ rc.5**) must pin `dsh-better-sidebar@0.28.2` — v0.29.0 was never published to npm. DSH 0.2.1-alpha.5 users must pin `dsh-better-sidebar@0.28.0-alpha.0`, and hosts still on **0.2.0-rc.2** must pin `dsh-better-sidebar@0.26.1`. A 0.x caret never spans a minor version, so one plugin build cannot serve two host lines. The marketplace installer picks the plugin's `latest` regardless of host version, so an old host gets a version-rejection error — upgrade the host or pin the version explicitly. The two packages' `latest` tags are independent.
> **Compatibility warning — match the plugin to the host line.** As of 2026-11-24, DSH's npm `latest` and `next` are both **0.2.2-rc.5**. **v0.33.0 requires DSH 0.2.2-rc.3+**; hosts on **0.2.2-rc.2** must pin `dsh-better-sidebar@0.32.1`, and hosts on **0.2.2-rc.1** must pin `dsh-better-sidebar@0.32.0`. Hosts on the 0.2.1 line (**0.2.1-rc.1 ~ rc.5**) must pin `dsh-better-sidebar@0.28.2` — v0.29.0 was never published to npm. DSH 0.2.1-alpha.5 users must pin `dsh-better-sidebar@0.28.0-alpha.0`, and hosts still on **0.2.0-rc.2** must pin `dsh-better-sidebar@0.26.1`. A 0.x caret never spans a minor version, so one plugin build cannot serve two host lines. The marketplace installer picks the plugin's `latest` regardless of host version, so an old host gets a version-rejection error — upgrade the host or pin the version explicitly. The two packages' `latest` tags are independent.
<details>
<summary><b>Pick the plugin version for your DSH version</b></summary>
| Your DSH version | Install command |
| --- | --- |
| **0.2.2-rc.2+** | `dsh plugin --profile web add dsh-better-sidebar@0.32.1` |
| **0.2.2-rc.3+** | `dsh plugin --profile web add dsh-better-sidebar@0.33.0` |
| **0.2.2-rc.2** | `dsh plugin --profile web add dsh-better-sidebar@0.32.1` |
| **0.2.2-rc.1** | `dsh plugin --profile web add dsh-better-sidebar@0.32.0` |
| **0.2.1-rc.1 ~ 0.2.1-rc.5** | `dsh plugin --profile web add dsh-better-sidebar@0.28.2` |
| **0.2.1-alpha.5** | `dsh plugin --profile web add dsh-better-sidebar@0.28.0-alpha.0` |
@@ -74,12 +75,12 @@ Always pin **exact versions** for older releases (`latest` moves forward with ea
```text
Install the dsh-better-sidebar plugin (a sidebar workbench for DSH):
1. Confirm DSH is 0.2.2-rc.2 or newer, then run dsh plugin --profile web add dsh-better-sidebar@0.32.1
1. Confirm DSH is 0.2.2-rc.3 or newer, then run dsh plugin --profile web add dsh-better-sidebar@0.33.0
2. Remind me to hard-refresh the browser (Cmd/Ctrl+Shift+R) afterwards
If something fails, check the FAQ table in https://github.com/omdsh-dev/DSH-better-sidebar README first.
```
**One-line script** — clone this repo and run `bash scripts/install.sh 0.32.1` (macOS / Linux / Windows Git Bash; `./scripts/install.ps1 -Version 0.32.1` for native Windows). It handles installation + bundle registration.
**One-line script** — clone this repo and run `bash scripts/install.sh 0.33.0` (macOS / Linux / Windows Git Bash; `./scripts/install.ps1 -Version 0.33.0` for native Windows). It handles installation + bundle registration.
**Updating**: just re-run the install command, then hard-refresh the browser.
@@ -97,12 +98,19 @@ If something fails, check the FAQ table in https://github.com/omdsh-dev/DSH-bett
| **Two sidebars** on the page | Double mounting. Remove the legacy manual mount line (`- insert: ... better-sidebar ...`) from `~/.dsh/profiles/web/cordis.patch.yml`; aggregate packages mounting this package under a different id are auto-yielded, no action needed. |
| Settings values gone after upgrade | Since DSH 0.1.7, preferences live on this plugin's mount row in the profile (default entry id `better-sidebar`). The plugin migrates your old `settings.yaml` values once on first start and never overwrites newer values. |
| Terminal unavailable | Terminals are provided by **DSH itself** (this plugin ships no PTY) — see DSH docs; "host provides no terminal capability" in the bottom terminal means this deployment has no terminal controller mounted. |
| `dsh: command not found` | Install DSH first; or use `npx -y --package @deepseek-ai/dsh@0.2.2-rc.2 dsh plugin --profile web add dsh-better-sidebar@0.32.1`. |
| `dsh: command not found` | Install DSH first; or use `npx -y --package @deepseek-ai/dsh@0.2.2-rc.3 dsh plugin --profile web add dsh-better-sidebar@0.33.0`. |
</details>
## 🆕 Recent Updates
**v0.33.0 — Side Chat tool trees, install floor, and a batch of UI fixes**
- **Side Chat renders PTC (`run_code`) tool trees**: the collapsed row shows the model's description, expanding reveals the program and its final result, and the bash / read / grep / edit calls it dispatches hang indented underneath.
- **The install floor is now `engines.dsh` (DSH 0.2.2-rc.3+)**: older hosts are told to upgrade DSH in the plugin market instead of being filed as plugin defects; hosts on 0.2.2-rc.2 stay on v0.32.1.
- **UI fixes**: the bottom workbench collapses itself when the sidebar goes fullscreen, the file tree's search header lines up with the session tab rule, native tab icons match the host title geometry, the task graph's view switch is square again, and the Changes lens switcher is back to underline tabs.
- **Also**: the "add tab plugin" catalog gains 9 entries, and the published package installs only `ws` / `yaml`, so installs are far smaller.
**v0.32.1 — DSH 0.2.2-rc.2 compatibility**
- **Right-click and open-with menus follow the host's new positioning**: DSH 0.2.2-rc.2 replaced the old rectangle callback with CSS-anchored menus and moved submenus to their own portal, so the sidebar now lets the host place them instead of overriding submenu geometry.
@@ -117,10 +125,6 @@ If something fails, check the FAQ table in https://github.com/omdsh-dev/DSH-bett
- **Card subtitles stay on one line** with an ellipsis, and More-menu icons are vertically centered with their labels.
- **Also included since v0.30.1**: Markdown `data:`/`file://` images, desktop-shell HTML preview inlining, built-in audio/video previews, the side-chat overhaul, data-safety fixes, and the linear-time diff highlighter.
**v0.31.1 — `file://` image URLs in Markdown**
- **`file:///...` images now render**: a Markdown-syntax or raw-HTML `file:` URL is converted to an absolute local path and served by the same session media route as a relative image; Windows drives, `localhost`, UNC and percent-encoding are covered.
## 🔌 Plugin Ecosystem
`ctx.betterSidebar` offers five extension points to every plugin — `registerTab` / `registerFileViewer` / `registerFileIcon` / `registerFileAction` / `registerTabAction`; the built-in 6 tabs + 5 viewers use the very same API. The GitHub topic [`dsh-better-sidebar`](https://github.com/topics/dsh-better-sidebar) already lists **30+ ecosystem plugins**; the full integration guide is at **[docs/external-plugin-guide.md](./docs/external-plugin-guide.md)**.
+15 -11
View File
@@ -7,7 +7,7 @@
<a href="https://github.com/omdsh-dev/DSH-better-sidebar/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/omdsh-dev/DSH-better-sidebar/actions/workflows/ci.yml/badge.svg" /></a>
<a href="https://github.com/omdsh-dev/DSH-better-sidebar/stargazers"><img alt="GitHub stars" src="https://img.shields.io/github/stars/omdsh-dev/DSH-better-sidebar" /></a>
<a href="https://opensource.org/licenses/MIT"><img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" /></a>
<a href="https://www.npmjs.com/package/@deepseek-ai/dsh?activeTab=versions"><img alt="支持的 DSH 版本:0.2.2-rc.2+" src="https://img.shields.io/badge/DSH-0.2.2--rc.2%2B-4d6bfe" /></a>
<a href="https://www.npmjs.com/package/@deepseek-ai/dsh?activeTab=versions"><img alt="支持的 DSH 版本:0.2.2-rc.3+" src="https://img.shields.io/badge/DSH-0.2.2--rc.3%2B-4d6bfe" /></a>
</div>
<div align="center">
@@ -44,16 +44,17 @@
dsh plugin --profile web add dsh-better-sidebar@latest
```
装完**硬刷新浏览器**(Cmd/Ctrl+Shift+R)即可。要求 DSH **0.2.2-rc.2+**。
装完**硬刷新浏览器**(Cmd/Ctrl+Shift+R)即可。要求 DSH **0.2.2-rc.3+**。
> **兼容性警告:插件版本必须与宿主线匹配。** 截至 2026-11-12,DSH 的 npm `latest` 是 **0.2.2-rc.1**、`next` 是 **0.2.2-rc.2**。**v0.32.1 要求 DSH 0.2.2-rc.2+**;仍在 **0.2.2-rc.1** 的宿主必须固定 `dsh-better-sidebar@0.32.0`。仍停在 0.2.1 线(**0.2.1-rc.1 ~ rc.5**)的宿主必须固定 `dsh-better-sidebar@0.28.2`——v0.29.0 从未发布到 npm。DSH 0.2.1-alpha.5 用户固定 `dsh-better-sidebar@0.28.0-alpha.0`,**0.2.0-rc.2** 宿主固定 `dsh-better-sidebar@0.26.1`。0.x 的 caret 不跨 minor,因此一个构建无法同时服务两条宿主线。市场安装器按插件的 `latest` 安装、不按宿主版本选版本,旧宿主会收到版本拒绝错误——请升级宿主或显式固定版本。两个包的 `latest` 标签不是同一支持线。
> **兼容性警告:插件版本必须与宿主线匹配。** 截至 2026-11-24,DSH 的 npm `latest` 与 `next` 都是 **0.2.2-rc.5**。**v0.33.0 要求 DSH 0.2.2-rc.3+**;仍在 **0.2.2-rc.2** 的宿主必须固定 `dsh-better-sidebar@0.32.1`,**0.2.2-rc.1** 的宿主固定 `dsh-better-sidebar@0.32.0`。仍停在 0.2.1 线(**0.2.1-rc.1 ~ rc.5**)的宿主必须固定 `dsh-better-sidebar@0.28.2`——v0.29.0 从未发布到 npm。DSH 0.2.1-alpha.5 用户固定 `dsh-better-sidebar@0.28.0-alpha.0`,**0.2.0-rc.2** 宿主固定 `dsh-better-sidebar@0.26.1`。0.x 的 caret 不跨 minor,因此一个构建无法同时服务两条宿主线。市场安装器按插件的 `latest` 安装、不按宿主版本选版本,旧宿主会收到版本拒绝错误——请升级宿主或显式固定版本。两个包的 `latest` 标签不是同一支持线。
<details>
<summary><b>按 DSH 版本选插件版本</b></summary>
| 你的 DSH 版本 | 安装命令 |
| --- | --- |
| **0.2.2-rc.2+** | `dsh plugin --profile web add dsh-better-sidebar@0.32.1` |
| **0.2.2-rc.3+** | `dsh plugin --profile web add dsh-better-sidebar@0.33.0` |
| **0.2.2-rc.2** | `dsh plugin --profile web add dsh-better-sidebar@0.32.1` |
| **0.2.2-rc.1** | `dsh plugin --profile web add dsh-better-sidebar@0.32.0` |
| **0.2.1-rc.1 ~ 0.2.1-rc.5** | `dsh plugin --profile web add dsh-better-sidebar@0.28.2` |
| **0.2.1-alpha.5** | `dsh plugin --profile web add dsh-better-sidebar@0.28.0-alpha.0` |
@@ -74,12 +75,12 @@ dsh plugin --profile web add dsh-better-sidebar@latest
```text
帮我安装 dsh-better-sidebar 插件(DSH 侧边栏工作台),步骤:
1. 先确认 DSH 为 0.2.2-rc.2 或更新版本,再执行 dsh plugin --profile web add dsh-better-sidebar@0.32.1
1. 先确认 DSH 为 0.2.2-rc.3 或更新版本,再执行 dsh plugin --profile web add dsh-better-sidebar@0.33.0
2. 完成后提醒我硬刷新浏览器(Cmd/Ctrl+Shift+R)
遇到报错先查 https://github.com/omdsh-dev/DSH-better-sidebar README 的常见问题表。
```
**一键脚本**——克隆本仓库后执行 `bash scripts/install.sh 0.32.1`(macOS / Linux / Windows Git Bash;Windows 原生用 `./scripts/install.ps1 -Version 0.32.1`),自动完成安装 + bundle 注册。
**一键脚本**——克隆本仓库后执行 `bash scripts/install.sh 0.33.0`(macOS / Linux / Windows Git Bash;Windows 原生用 `./scripts/install.ps1 -Version 0.33.0`),自动完成安装 + bundle 注册。
**更新**:重跑一次安装命令即可,然后硬刷新浏览器。
@@ -97,12 +98,19 @@ dsh plugin --profile web add dsh-better-sidebar@latest
| 页面出现**两个侧边栏** | 双挂载。删掉 `~/.dsh/profiles/web/cordis.patch.yml` 里旧的手动挂载行(`- insert: ... better-sidebar ...`);聚合包以不同 id 挂载本包时会自动退让,无需处理。 |
| 升级后设置页的值去哪了 | DSH 0.1.7 起偏好写在 profile 里本插件的挂载行上(默认 entry id `better-sidebar`),插件首次启动会把旧 `settings.yaml` 里的配置一次性回迁,不会覆盖新设的值。 |
| 终端无法使用 | 终端由 **DSH 自身**提供(本插件不自带 PTY),请查 DSH 侧文档;底部终端显示「宿主未提供终端能力」= 这个部署没挂终端控制器。 |
| 提示 `dsh: command not found` | 先安装 DSH;或用 `npx -y --package @deepseek-ai/dsh@0.2.2-rc.2 dsh plugin --profile web add dsh-better-sidebar@0.32.1`。 |
| 提示 `dsh: command not found` | 先安装 DSH;或用 `npx -y --package @deepseek-ai/dsh@0.2.2-rc.3 dsh plugin --profile web add dsh-better-sidebar@0.33.0`。 |
</details>
## 🆕 最近更新
**v0.33.0 — 侧边对话工具树、安装下限与一批界面修复**
- **侧边对话显示 PTC(`run_code`)工具调用树**:收起时看到模型写的说明,展开后是程序代码与最终结果,程序内派发的 bash / read / grep / edit 等子调用缩进挂在下面。
- **安装下限改由 `engines.dsh` 裁决(DSH 0.2.2-rc.3+)**:旧宿主在插件市场里会被直接判为「先升级 DSH」,不再当作插件缺陷;0.2.2-rc.2 宿主请继续用 v0.32.1。
- **界面修复**:侧栏全屏时底部工作台自动收起、文件树搜索头与会话页签分隔线对齐、原生页签图标与宿主标题几何对齐、任务图谱切换控件改为方形、Changes 的「Git / 本轮文件」恢复下划线 Tabs。
- **其他**:「添加页签插件」推荐目录新增 9 个条目;发布包只装 `ws` / `yaml`,安装体积大幅下降。
**v0.32.1 — 适配 DSH 0.2.2-rc.2**
- **右键菜单与「打开方式」子菜单跟随宿主的新定位**:DSH 0.2.2-rc.2 把菜单改成 CSS 锚点定位、子菜单改为独立浮层,插件不再自己改写子菜单几何,交给宿主按可用空间放置。
@@ -117,10 +125,6 @@ dsh plugin --profile web add dsh-better-sidebar@latest
- **卡片副标题固定一行**并以省略号截断,「更多」菜单图标与文字垂直居中。
- **自 v0.30.1 起还包含**:Markdown `data:`/`file://` 图片、桌面壳 HTML 预览内联、内置音视频预览、侧边对话大修、数据安全修复、线性时间 diff 高亮等。
**v0.31.1 — Markdown 的 `file://` 图片地址**
- **`file:///...` 图片现在能显示**:Markdown 语法和原始 HTML 的 `file:` 地址会先还原成绝对本地路径,再走与相对图片相同的会话媒体路由;支持 Windows 盘符、`localhost`、UNC 与百分号编码。
## 🔌 插件生态
`ctx.betterSidebar` 向所有插件开放 `registerTab` / `registerFileViewer` / `registerFileIcon` / `registerFileAction` / `registerTabAction` 五个扩展点,内置 6 tab + 5 viewer 与第三方插件走同一套 API。GitHub topic [`dsh-better-sidebar`](https://github.com/topics/dsh-better-sidebar) 下已有 **30+ 生态插件**;完整接入文档见 **[docs/external-plugin-guide.md](./docs/external-plugin-guide.md)**。
+4 -3
View File
@@ -7,7 +7,7 @@
| 项 | 值 |
| --- | --- |
| 基线宿主 | **DSH 0.2.2-rc.2**(v0.32.1 起) |
| 基线宿主 | **DSH 0.2.2-rc.2**(v0.32.1 起;v0.33.0 起安装下限抬到 rc.3,见 `engines.dsh`) |
| DSH peer 数量 | **14 条** `@deepseek-ai/dsh-*`,下限全部 `^0.2.2-rc.2` |
| devDependencies | 每条 DSH 包精确钉 `0.2.2-rc.2`(**30 条**:0.2.2-rc.2 新增的传递 peer `@deepseek-ai/dsh-error` 已提升进 devDependencies) |
| 伴随依赖 | Cordis peer `^4.1.0` / dev `4.1.0`、group `~1.1.0`、schemastery `~3.19.0` 解析、include `1.1.0` |
@@ -20,7 +20,8 @@
| 用户的 DSH | 应安装的插件 |
| --- | --- |
| **0.2.2-rc.2+** | **v0.32.1**(当前线) |
| **0.2.2-rc.3+** | **v0.33.0**(当前线) |
| 0.2.2-rc.2 | **v0.32.1** |
| 0.2.2-rc.1 | **v0.32.0** |
| 0.2.1-rc.1 ~ 0.2.1-rc.5 | **v0.28.2** |
| 0.2.1-alpha.5 | v0.28.0-alpha.0 |
@@ -28,7 +29,7 @@
| 0.2.0-rc.1 | v0.24.1 |
| 0.1.7-rc.1 ~ 0.1.7 | v0.22.1 |
下一版起 `package.json#engines.dsh` 为 `>=0.2.2-rc.3 <0.3.0`,安装下限随之抬到 rc.3;v0.32.1 仍接受 rc.2。
自 v0.33.0 起 `package.json#engines.dsh` 为 `>=0.2.2-rc.3 <0.3.0`,安装下限随之抬到 rc.3;v0.32.1 仍接受 rc.2。
## 3. 为什么「一个构建只服务一条宿主线」
+2 -2
View File
@@ -2,8 +2,8 @@
> 面向 **消费插件开发者**:如何让你的插件向 better-sidebar 注册新的侧边栏页面(tab)和文件类型预览器。
>
> 适用版本:**v0.4.0+**(`ctx.betterSidebar` 服务);声明式设置 **v0.4.1+**;text/number 设置行 **v0.11.0+**;badge/生命周期/定向打开/插件设置/版本探测 **v0.12.0+**;select 设置行(`settingSelect`)与外链认领(`urlTarget`)**v0.13.0+**;统一 `@deepseek-ai/cordis` 类型基底 **v0.15.2+**;路由前缀安全解析(`hostRouteUrl`)**v0.25.0+**。当前版本 **v0.32.1**(14 条 DSH peer 下限 `^0.2.2-rc.2`,仅支持 DSH **0.2.2-rc.2+**;0.2.2-rc.1 请固定 v0.32.0;0.2.1 线(0.2.1-rc.1 ~ rc.5)请固定 v0.28.2;0.2.1-alpha.5 请固定 v0.28.0-alpha.0,0.2.0-rc.2 请固定 v0.26.1(v0.27.0 尚未发布),0.2.0-rc.1 请用 v0.24.1,0.1.7 线请用 v0.22.1——caret 范围跨 minor 不成立,`^0.1.7-rc.1` 会被 0.2.0 宿主的启动预检静默禁用)。**v0.19.0 移除了自绘右侧面板与自由窗口**(见 §0、§11);**自 v0.20.0 开发线起**(**注意:0.20.0 从未发布到 npm,这些变更全部落在 v0.21.1**)插件**移除了自带的终端**(宿主 0.1.6 的 `ui-sidebar-terminal` 取代,见 §4.4)、**移除了终端固定(pin)**,并在 0.1.7 上**把浏览器视图与只读文件预览整体让给宿主**(`ui-sidebar-browser` / `ui-sidebar-documentpreview`,见 §4.4、§5.4)、**收敛了外链接管**(见 §4.1)、**重写了设置接入面**(`SettingsForms`,见 §8.2)、**给文件树加了实时刷新**(见 §10);同时**删除了轮尾产物行接管**(DSH 0.1.6 把 `conversation.chat.turnTail` 从 chain 改成只能追加的 list,替换语义不复存在)。
> **版本对照提醒**:当前版本 **v0.32.1**(DSH 0.2.2-rc.2+);DSH **0.2.2-rc.1** 请固定插件 **v0.32.0**。0.x 的 caret 不跨 minor,因此 0.2.1 线(0.2.1-rc.1 ~ 0.2.1-rc.5)必须固定插件 **v0.28.2**——v0.29.0 从未发布;DSH 0.2.1-alpha.5 固定 v0.28.0-alpha.0,0.2.0-rc.2 固定 v0.26.1。市场安装器按插件 `latest` 安装、不按宿主版本选版本。
> 适用版本:**v0.4.0+**(`ctx.betterSidebar` 服务);声明式设置 **v0.4.1+**;text/number 设置行 **v0.11.0+**;badge/生命周期/定向打开/插件设置/版本探测 **v0.12.0+**;select 设置行(`settingSelect`)与外链认领(`urlTarget`)**v0.13.0+**;统一 `@deepseek-ai/cordis` 类型基底 **v0.15.2+**;路由前缀安全解析(`hostRouteUrl`)**v0.25.0+**。当前版本 **v0.33.0**(14 条 DSH peer 下限 `^0.2.2-rc.2`,`engines.dsh` 为 `>=0.2.2-rc.3 <0.3.0`,仅支持 DSH **0.2.2-rc.3+**;0.2.2-rc.2 请固定 v0.32.1,0.2.2-rc.1 请固定 v0.32.0;0.2.1 线(0.2.1-rc.1 ~ rc.5)请固定 v0.28.2;0.2.1-alpha.5 请固定 v0.28.0-alpha.0,0.2.0-rc.2 请固定 v0.26.1(v0.27.0 尚未发布),0.2.0-rc.1 请用 v0.24.1,0.1.7 线请用 v0.22.1——caret 范围跨 minor 不成立,`^0.1.7-rc.1` 会被 0.2.0 宿主的启动预检静默禁用)。**v0.19.0 移除了自绘右侧面板与自由窗口**(见 §0、§11);**自 v0.20.0 开发线起**(**注意:0.20.0 从未发布到 npm,这些变更全部落在 v0.21.1**)插件**移除了自带的终端**(宿主 0.1.6 的 `ui-sidebar-terminal` 取代,见 §4.4)、**移除了终端固定(pin)**,并在 0.1.7 上**把浏览器视图与只读文件预览整体让给宿主**(`ui-sidebar-browser` / `ui-sidebar-documentpreview`,见 §4.4、§5.4)、**收敛了外链接管**(见 §4.1)、**重写了设置接入面**(`SettingsForms`,见 §8.2)、**给文件树加了实时刷新**(见 §10);同时**删除了轮尾产物行接管**(DSH 0.1.6 把 `conversation.chat.turnTail` 从 chain 改成只能追加的 list,替换语义不复存在)。
> **版本对照提醒**:当前版本 **v0.33.0**(DSH 0.2.2-rc.3+);DSH **0.2.2-rc.2** 请固定插件 **v0.32.1**,DSH **0.2.2-rc.1** 请固定插件 **v0.32.0**。0.x 的 caret 不跨 minor,因此 0.2.1 线(0.2.1-rc.1 ~ 0.2.1-rc.5)必须固定插件 **v0.28.2**——v0.29.0 从未发布;DSH 0.2.1-alpha.5 固定 v0.28.0-alpha.0,0.2.0-rc.2 固定 v0.26.1。市场安装器按插件 `latest` 安装、不按宿主版本选版本。
> 上一次 0.2.2-rc.1 适配带来真实代码改动(`AgentModel` 取代可安装的 `ModelSelectionRef`、PTC 事件类型声明被移除、宿主图标改为 sprite),逐项记录见 [0.2.2-rc.1 适配记录](plans/2026-11-04-dsh-0.2.2-rc.1-adaptation.md);**本次 0.2.2-rc.2 适配**迁移了宿主的新菜单定位 API(`getAnchorRect` → `anchorPoint`)与内置 Agent Team 服务(`tryMembership` → `isEnabled`),见 [0.2.2-rc.2 适配记录](plans/2026-11-12-dsh-0.2.2-rc.2-adaptation.md);伴随依赖为 Cordis peer `^4.1.0` / dev `4.1.0`、group `~1.1.0`、schemastery `~3.19.0`、include `1.1.0`。
> 权威代码:`src/client/service.ts`(服务实现)、`src/client/builtins/`(内置 6 tab + 3 viewer 参考实现)、`lib/types/client/service.d.ts`(类型声明)。
> alpha.5 已删除 `@deepseek-ai/dsh-invariants` 与上游 `/invariant` 子路径;本插件同步移除 invariant companion,不提供替代注册服务。HTTP/WS 准入遵循宿主 Connection(见 §6)。
+1 -1
View File
@@ -1,6 +1,6 @@
{
"id": "dsh-external/dsh-better-sidebar",
"version": "0.32.1",
"version": "0.33.0",
"main": "./lib/index.js",
"description": "更好用的右侧边栏——文件树、编辑器、文件变动、任务和侧边对话都收在这一栏里,每个会话互不干扰。侧边栏配置在左下角「设置 → 侧边卡片」中。暴露服务供其他插件注册侧边栏页面与文件预览器",
"engines": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "dsh-better-sidebar",
"version": "0.32.1",
"version": "0.33.0",
"description": "Better Sidebar for DSH — file tree, editor, changes, tasks and side chat in one column, separate for every conversation. Configure it in Settings → Side card (bottom-left). Also exposes a service other plugins use to register sidebar tabs and file viewers.",
"type": "module",
"repository": {
+1 -1
View File
@@ -1032,7 +1032,7 @@ export function matchUrlTarget(tabs: readonly TabDescriptor[], url: URL): TabDes
* The plugin version this service instance reports. Keep in lockstep with
* `package.json`'s version — `tests/service.spec.ts` asserts the pair.
*/
export const SIDEBAR_SERVICE_VERSION = '0.32.1'
export const SIDEBAR_SERVICE_VERSION = '0.33.0'
/**
* Monotonic capability list consumers use to gate new API usage (features