diff --git a/CHANGELOG.md b/CHANGELOG.md index e2bfc19a..e9c43b35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ > 本文档收录 dsh-better-sidebar 的完整发布历史(最新版摘要见 [README](README_ZH.md);同步发布于 [GitHub Releases](https://github.com/omdsh-dev/DSH-better-sidebar/releases))。 -### 未发布 +### v0.34.0-alpha.1 - 🩹 **侧边对话关闭 Tab 再打开后「发不出去」**([#1265](https://github.com/omdsh-dev/DSH-better-sidebar/issues/1265)):关闭侧边对话 Tab 会把线程会话归档,而宿主会拒绝归档会话的每一次唤醒——消息显示已接受,随后静默结束为 `blocked`,既没有回答也没有任何提示。现在关闭 Tab 只释放运行时、不再归档;已经处于归档状态的线程在重新绑定或发送前会自动解除归档(重开 Tab 会恢复原对话);万一仍被宿主拒绝,转写里会补一行「本轮被宿主阻止」的说明,不再毫无反馈。 diff --git a/CHANGELOG_EN.md b/CHANGELOG_EN.md index d6b9256a..178b7e7d 100644 --- a/CHANGELOG_EN.md +++ b/CHANGELOG_EN.md @@ -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.34.0-alpha.1 - 🩹 **Side Chat could not send after its tab was closed and reopened** ([#1265](https://github.com/omdsh-dev/DSH-better-sidebar/issues/1265)): closing the tab archived the thread session, and the host refuses every wake of an archived session — the prompt was accepted, then the turn silently ended `blocked` with no reply and no message. Closing now only releases the runtime and never archives; a thread that is already archived is unarchived when it is re-bound or before the next prompt (reopening the tab brings the conversation back); and a turn the host still refuses leaves a visible "blocked by the host" row instead of nothing. diff --git a/README.md b/README.md index 8229bf75..6ac044c5 100644 --- a/README.md +++ b/README.md @@ -46,14 +46,14 @@ dsh plugin --profile web add dsh-better-sidebar@latest Then **hard-refresh the browser** (Cmd/Ctrl+Shift+R). Requires DSH **0.2.3-alpha.2+**. -> **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.34.0-alpha.0 requires DSH 0.2.3-alpha.2+** (alpha line), while the stable **v0.33.0** needs 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. +> **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.34.0-alpha.1 requires DSH 0.2.3-alpha.2+** (alpha line), while the stable **v0.33.0** needs 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.
Pick the plugin version for your DSH version | Your DSH version | Install command | | --- | --- | -| **0.2.3-alpha.2+** | `dsh plugin --profile web add dsh-better-sidebar@0.34.0-alpha.0` | +| **0.2.3-alpha.2+** | `dsh plugin --profile web add dsh-better-sidebar@0.34.0-alpha.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` | @@ -76,12 +76,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.3-alpha.2 (alpha line) or newer, then run dsh plugin --profile web add dsh-better-sidebar@0.34.0-alpha.0 +1. Confirm DSH is 0.2.3-alpha.2 (alpha line) or newer, then run dsh plugin --profile web add dsh-better-sidebar@0.34.0-alpha.1 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.34.0-alpha.0` (macOS / Linux / Windows Git Bash; `./scripts/install.ps1 -Version 0.34.0-alpha.0` for native Windows). It handles installation + bundle registration. +**One-line script** — clone this repo and run `bash scripts/install.sh 0.34.0-alpha.1` (macOS / Linux / Windows Git Bash; `./scripts/install.ps1 -Version 0.34.0-alpha.1` for native Windows). It handles installation + bundle registration. **Updating**: just re-run the install command, then hard-refresh the browser. @@ -99,12 +99,16 @@ 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.3-alpha.2 dsh plugin --profile web add dsh-better-sidebar@0.34.0-alpha.0`. | +| `dsh: command not found` | Install DSH first; or use `npx -y --package @deepseek-ai/dsh@0.2.3-alpha.2 dsh plugin --profile web add dsh-better-sidebar@0.34.0-alpha.1`. |
## 🆕 Recent Updates +**v0.34.0-alpha.1 — Side Chat keeps working after its tab is closed and reopened** + +- **Side Chat no longer goes silent after a tab reopen**: closing a Side Chat tab archived its thread session, and the host refuses every wake of an archived session — the message looked sent, but no reply ever came. Closing now only releases the runtime and never archives, so reopening the panel restores the conversation; a thread that is already archived is unarchived when the panel binds to it or before the next prompt, with no need to rebuild it; and if the host still refuses, the transcript says so instead of showing nothing. + **v0.34.0-alpha.0 — DSH 0.2.3-alpha.2 support (alpha line), resizable Git sections and one component layer** - **DSH 0.2.3-alpha.2 support**: the 14 DSH peers and the install floor move to the alpha line together, with the Cordis line at `4.2.0-alpha.1`; older hosts stay on v0.33.0. @@ -119,13 +123,6 @@ If something fails, check the FAQ table in https://github.com/omdsh-dev/DSH-bett - **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. -- **Team task boards write through the built-in Agent Team service**: the opt-in experimental team package became `@deepseek-ai/dsh-agent-team` in the base composition, with per-session Team mode. -- **The Plugins page now shows illustrated details**: an overview of the right sidebar and a per-conversation isolation diagram, with numbered notes for each tool. -- **DSH 0.2.2-rc.1 hosts stay on plugin v0.32.0**; 0.2.2-rc.2+ should use this release. - ## 🔌 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)**. diff --git a/README_ZH.md b/README_ZH.md index d8742ddd..0b783e49 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -46,14 +46,14 @@ dsh plugin --profile web add dsh-better-sidebar@latest 装完**硬刷新浏览器**(Cmd/Ctrl+Shift+R)即可。要求 DSH **0.2.3-alpha.2+**。 -> **兼容性警告:插件版本必须与宿主线匹配。** 截至 2026-11-24,DSH 的 npm `latest` 与 `next` 都是 **0.2.2-rc.5**。**v0.34.0-alpha.0 要求 DSH 0.2.3-alpha.2+**(alpha 线),稳定线 **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` 标签不是同一支持线。 +> **兼容性警告:插件版本必须与宿主线匹配。** 截至 2026-11-24,DSH 的 npm `latest` 与 `next` 都是 **0.2.2-rc.5**。**v0.34.0-alpha.1 要求 DSH 0.2.3-alpha.2+**(alpha 线),稳定线 **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` 标签不是同一支持线。
按 DSH 版本选插件版本 | 你的 DSH 版本 | 安装命令 | | --- | --- | -| **0.2.3-alpha.2+** | `dsh plugin --profile web add dsh-better-sidebar@0.34.0-alpha.0` | +| **0.2.3-alpha.2+** | `dsh plugin --profile web add dsh-better-sidebar@0.34.0-alpha.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` | @@ -76,12 +76,12 @@ dsh plugin --profile web add dsh-better-sidebar@latest ```text 帮我安装 dsh-better-sidebar 插件(DSH 侧边栏工作台),步骤: -1. 先确认 DSH 为 0.2.3-alpha.2(alpha 线)或更新版本,再执行 dsh plugin --profile web add dsh-better-sidebar@0.34.0-alpha.0 +1. 先确认 DSH 为 0.2.3-alpha.2(alpha 线)或更新版本,再执行 dsh plugin --profile web add dsh-better-sidebar@0.34.0-alpha.1 2. 完成后提醒我硬刷新浏览器(Cmd/Ctrl+Shift+R) 遇到报错先查 https://github.com/omdsh-dev/DSH-better-sidebar README 的常见问题表。 ``` -**一键脚本**——克隆本仓库后执行 `bash scripts/install.sh 0.34.0-alpha.0`(macOS / Linux / Windows Git Bash;Windows 原生用 `./scripts/install.ps1 -Version 0.34.0-alpha.0`),自动完成安装 + bundle 注册。 +**一键脚本**——克隆本仓库后执行 `bash scripts/install.sh 0.34.0-alpha.1`(macOS / Linux / Windows Git Bash;Windows 原生用 `./scripts/install.ps1 -Version 0.34.0-alpha.1`),自动完成安装 + bundle 注册。 **更新**:重跑一次安装命令即可,然后硬刷新浏览器。 @@ -99,12 +99,16 @@ 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.3-alpha.2 dsh plugin --profile web add dsh-better-sidebar@0.34.0-alpha.0`。 | +| 提示 `dsh: command not found` | 先安装 DSH;或用 `npx -y --package @deepseek-ai/dsh@0.2.3-alpha.2 dsh plugin --profile web add dsh-better-sidebar@0.34.0-alpha.1`。 |
## 🆕 最近更新 +**v0.34.0-alpha.1 — 侧边对话关闭标签页后无法继续对话的修复** + +- **侧边对话「发不出去」修好了**:关闭侧边对话标签页后,线程会话会被归档,而宿主会拒绝归档会话的每一次唤醒——消息看着发出去了,却永远没有回答。现在关闭标签页只释放运行时、不再归档,重开面板即恢复原对话;已经处于归档状态的旧线程在绑定或发送前会自动解除归档,无需重建;万一仍被宿主拒绝,转写会显示一行说明而不是毫无反馈。 + **v0.34.0-alpha.0 — 适配 DSH 0.2.3-alpha.2(alpha 线)、可拖动 Git 分区与界面组件收敛** - **适配 DSH 0.2.3-alpha.2**:14 条 DSH peer 与安装下限同批抬到 alpha 线,Cordis 依赖线同步到 `4.2.0-alpha.1`;0.2.3 之前的老宿主请继续用 v0.33.0。 @@ -119,13 +123,6 @@ dsh plugin --profile web add dsh-better-sidebar@latest - **界面修复**:侧栏全屏时底部工作台自动收起、文件树搜索头与会话页签分隔线对齐、原生页签图标与宿主标题几何对齐、任务图谱切换控件改为方形、Changes 的「Git / 本轮文件」恢复下划线 Tabs。 - **其他**:「添加页签插件」推荐目录新增 9 个条目;发布包只装 `ws` / `yaml`,安装体积大幅下降。 -**v0.32.1 — 适配 DSH 0.2.2-rc.2** - -- **右键菜单与「打开方式」子菜单跟随宿主的新定位**:DSH 0.2.2-rc.2 把菜单改成 CSS 锚点定位、子菜单改为独立浮层,插件不再自己改写子菜单几何,交给宿主按可用空间放置。 -- **团队任务板写入改走内置 Agent Team 服务**:原实验包升级为 base composition 里的 `@deepseek-ai/dsh-agent-team`,Team 模式按会话开启。 -- **插件页新增图文详情**:右侧栏总览图 +「每个会话独立」示意图,并用编号说明各项功能。 -- **DSH 0.2.2-rc.1 宿主继续使用插件 v0.32.0**;0.2.2-rc.2+ 请使用本版本。 - ## 🔌 插件生态 `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)**。 diff --git a/docs/external-plugin-guide.md b/docs/external-plugin-guide.md index f5707e87..68744be6 100644 --- a/docs/external-plugin-guide.md +++ b/docs/external-plugin-guide.md @@ -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.34.0-alpha.0**(14 条 DSH peer 下限 `^0.2.3-alpha.2`,`engines.dsh` 为 `>=0.2.3-alpha.2 <0.3.0`,仅支持 DSH **0.2.3-alpha.2+**;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 线(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.34.0-alpha.0**(DSH 0.2.3-alpha.2+);DSH **0.2.2-rc.3+** 请固定插件 **v0.33.0**,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` 安装、不按宿主版本选版本。 +> 适用版本:**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.34.0-alpha.1**(14 条 DSH peer 下限 `^0.2.3-alpha.2`,`engines.dsh` 为 `>=0.2.3-alpha.2 <0.3.0`,仅支持 DSH **0.2.3-alpha.2+**;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 线(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.34.0-alpha.1**(DSH 0.2.3-alpha.2+);DSH **0.2.2-rc.3+** 请固定插件 **v0.33.0**,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`。 > **线索收集(S1–S9:来源 / 线索 / 线索包 / 统一浮窗 / 分享 / 来源设置)随本线一起发布**,公共接入面见 §7.1。 > 权威代码:`src/client/service.ts`(服务实现)、`src/client/builtins/`(内置 7 tab + 5 viewer 参考实现)、`lib/types/client/service.d.ts`(类型声明)。 diff --git a/dsh.plugin.json b/dsh.plugin.json index 971ae79b..078d1e42 100644 --- a/dsh.plugin.json +++ b/dsh.plugin.json @@ -1,6 +1,6 @@ { "id": "dsh-external/dsh-better-sidebar", - "version": "0.34.0-alpha.0", + "version": "0.34.0-alpha.1", "main": "./lib/index.js", "description": "更好用的右侧边栏——文件树、编辑器、文件变动、任务和侧边对话都收在这一栏里,每个会话互不干扰。侧边栏配置在左下角「设置 → 侧边卡片」中。暴露服务供其他插件注册侧边栏页面与文件预览器", "engines": { diff --git a/package.json b/package.json index ce6c74e4..1286b93a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dsh-better-sidebar", - "version": "0.34.0-alpha.0", + "version": "0.34.0-alpha.1", "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": { diff --git a/src/client/service.ts b/src/client/service.ts index fe8fc6a9..2fa3c8d9 100644 --- a/src/client/service.ts +++ b/src/client/service.ts @@ -1072,7 +1072,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.34.0-alpha.0' +export const SIDEBAR_SERVICE_VERSION = '0.34.0-alpha.1' /** * Monotonic capability list consumers use to gate new API usage (features