From fdaa5971212cc8a8c1c7bba76a19ee4dbb61af1e Mon Sep 17 00:00:00 2001 From: Menghuan1918 Date: Wed, 4 Nov 2026 22:51:32 +0800 Subject: [PATCH] chore(release): prepare v0.30.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - package.json / dsh.plugin.json / SIDEBAR_SERVICE_VERSION already at 0.30.0 - CHANGELOG: 未发布 → v0.30.0 (25 entries, bilingual) - README / README_ZH: install commands target 0.30.0; Recent Updates trimmed to v0.30.0 / v0.29.0 / v0.28.2 - AGENTS + external-plugin-guide: baseline DSH 0.2.2-rc.1, current version v0.30.0 - plan record: docs/plans/2026-11-04-dsh-0.2.2-rc.1-adaptation.md --- CHANGELOG.md | 2 +- CHANGELOG_EN.md | 2 +- README.md | 15 ++++++++------- README_ZH.md | 15 ++++++++------- 4 files changed, 18 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 48ba1ae4..b0bdfc65 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.30.0 - 🧭 **适配 DSH 0.2.2-rc.1(本版 peer 下限抬到 `^0.2.2-rc.1`)**:宿主把模型选择从可安装的 `ModelSelectionRef` 换成 agent 自有的 `AgentModel`——`agent.model.select()` 同时落盘并作用于下一步,侧边对话的线程模型选择随之改写(不再自己 install 一份 ref);`dsh-tools` 移除了 PTC(`tool/ptc-dispatch*`)的事件**类型声明**(运行期仍记录),宿主图标由内联 `` 改为 sprite ``。**支持线随之移动**:0.x 的 caret 不跨 minor,因此 DSH 0.2.1 线(`0.2.1-rc.1 ~ rc.5`,即当前的宿主 npm `latest`)请继续固定插件 **v0.28.2**(`v0.29.0` 从未发布到 npm),0.2.2-rc.1+ 请用 **v0.30.0**。 - 🧪 验证:`typecheck` + 全量 `vitest` + `plugin-mount`(真实 0.2.2-rc.1 宿主 + Chromium);逐项证据见 [0.2.2 适配记录](docs/plans/2026-11-04-dsh-0.2.2-rc.1-adaptation.md)。 diff --git a/CHANGELOG_EN.md b/CHANGELOG_EN.md index fb0cc530..e3a17be1 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.30.0 - 🧭 **Adapted to DSH 0.2.2-rc.1 (peer floors move to `^0.2.2-rc.1`)**: the host replaced the installable `ModelSelectionRef` with an agent-owned `AgentModel` — `agent.model.select()` records the choice durably and applies it to the next step, so the side-chat thread model selection rides the agent's own handle instead of an installed ref. `dsh-tools` dropped the PTC (`tool/ptc-dispatch*`) event **type declarations** (the runtime still records them), and host icons switched from inline `` to sprite ``. **The support line moves with it**: a 0.x caret never spans a minor, so DSH 0.2.1 hosts (`0.2.1-rc.1 ~ rc.5`, today's npm `latest`) keep pinning plugin **v0.28.2** (`v0.29.0` was never published), while 0.2.2-rc.1+ takes **v0.30.0**. - 🧪 Verified by `typecheck`, the full `vitest` suite, and `plugin-mount` against a real 0.2.2-rc.1 host in Chromium; see the [0.2.2 adaptation record](docs/plans/2026-11-04-dsh-0.2.2-rc.1-adaptation.md). diff --git a/README.md b/README.md index 8a997637..1a2cc223 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,14 @@ If something fails, check the FAQ table in https://github.com/omdsh-dev/DSH-bett ## 🆕 Recent Updates +**v0.30.0 — DSH 0.2.2 support, side-chat images, clickable quote chips** + +- **DSH 0.2.2-rc.1 is the new baseline** (all 14 peer floors move to `^0.2.2-rc.1`). The host replaced the installable model-selection ref with an agent-owned `AgentModel`, so a side-chat thread's model switch now goes through `agent.model.select()` — recorded once in the log and applied to the next step. A 0.x caret never spans a minor: DSH 0.2.1 hosts (today's npm `latest`) keep pinning plugin v0.28.2. +- **Side Chat takes images**: paste a screenshot or pick PNG / JPEG / WebP / GIF, preview or remove before sending, or send images alone; the preview survives a reload and a cold restore. +- **Quote chips are clickable**: a passage selected with "Add to conversation" lands as a chip that jumps back to the source file and flashes the quoted lines, with a nonce so a second click jumps again; if the reference record cannot be persisted the plugin falls back to the previous built-in chip instead of landing a dead one. +- **Drafts survive the host-owned close paths**: closing a native sidebar tab or quitting the desktop app keeps the unsaved draft and offers it back when the same file is reopened — the host exposes no cancellable close hook, so this is backup-and-restore rather than a prompt. +- **Reliability**: a side-chat seed built from a compacted parent no longer persists an unreadable session log; page CSS zoom is no longer misread as a page transform; the bottom workbench terminal no longer paints black; container workspaces show every child repository in the Git panel; the installers refuse a profile whose `@deepseek-ai/dsh-*` copies are a mixed version pair and print the repair command. + **v0.29.0 — GenUI in side chats** - Adds the opt-in `registerSidechatSurfaceAdapter` service for GenUI 0.15.0. Settled assistant replies can render interactive components, with actions and state kept in the owning child thread. @@ -123,13 +131,6 @@ If something fails, check the FAQ table in https://github.com/omdsh-dev/DSH-bett - **Markdown links**: local destinations normalize Windows backslashes, so `C:\ws\_analysis\report.md` opens instead of a bare ENOENT - **Sidebar**: the bottom-workbench toggle stays visible while the right panel is open; the macOS dock fallback avoids the traffic lights; a content-stable tab scope ends needless full-file re-reads; closing a side-chat tab archives its session -**v0.28.0 — stable plugin release for DSH 0.2.2-rc.1+** - -- Move all 13 DSH peer floors to `^0.2.2-rc.1`; retain the alpha.0 functionality without runtime changes -- The upstream alpha.5 → rc.1 full-tree diff contains 355 files, all `package.json`; no source changes -- DSH 0.2.0-rc.2 hosts stay on plugin v0.26.1; DSH 0.2.1-alpha.5 hosts stay on v0.28.0-alpha.0 -- Validation: [RC adaptation record](./docs/plans/2026-10-17-dsh-0.2.1-rc.1-adaptation.md) - ## 🔌 Plugin Ecosystem `ctx.betterSidebar` offers two extension points to every plugin — `registerTab` / `registerFileViewer`; the built-in 6 tabs + 4 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 5a7cab49..f42525c6 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -100,6 +100,14 @@ dsh plugin --profile web add dsh-better-sidebar@latest ## 🆕 最近更新 +**v0.30.0 — 支持 DSH 0.2.2、侧边对话可发图、引用 chip 可点击** + +- **基线抬到 DSH 0.2.2-rc.1**(14 条 peer 下限全部前移到 `^0.2.2-rc.1`)。宿主把可安装的模型选择 ref 换成了 agent 自有的 `AgentModel`,侧边对话的模型切换改走 `agent.model.select()`——只落盘一次,并作用于下一步。0.x 的 caret 不跨 minor:DSH 0.2.1 线(也就是今天的 npm `latest`)继续固定插件 v0.28.2。 +- **侧边对话可以发图**:粘贴截图或选择 PNG / JPEG / WebP / GIF,发送前可预览、可移除,也可以只发图片;刷新页面或冷恢复后预览仍在。 +- **引用 chip 可点击**:用「添加到对话」划选的一段文字会落成一枚 chip,点击跳回源文件并闪烁被引行段;带 nonce,所以连点两次仍会再次跳转。引用记录写不进存储时回退到原来的内置 chip,而不是落一枚点不动的死 chip。 +- **草稿不再被宿主侧的关闭路径吞掉**:关闭原生侧边页签、或退出桌面端时,未保存草稿会被备份,重开同一文件时提示恢复——宿主没有可取消的关闭钩子,所以这是备份 + 恢复,不是弹窗拦截。 +- **可靠性**:父会话压缩过之后开的侧聊不再写出不可读的会话日志;页面 CSS zoom 不再被误判为页面变换;底部工作台终端不再自带黑底;容器工作区在 Git 面板里能看到每个子仓库;安装脚本发现 profile 里 `@deepseek-ai/dsh-*` 版本混搭会直接拒绝并打印修复命令。 + **v0.29.0 — 侧边对话接入 GenUI** - 新增可选的 `registerSidechatSurfaceAdapter` 服务,配合 GenUI 0.15.0 在已结算的侧边回复里渲染交互组件;状态和动作归属对应子线程。 @@ -123,13 +131,6 @@ dsh plugin --profile web add dsh-better-sidebar@latest - **Markdown 链接**:本地 destination 的 Windows 反斜杠归一,`C:\ws\_analysis\report.md` 不再报裸 ENOENT - **侧栏**:右栏展开时底部工作台入口常显;macOS 兜底入口避开红绿灯;页签 scope 按内容稳定,消除无谓的整文件重读;关闭侧聊页签时归档其会话 -**v0.28.0 — 面向 DSH 0.2.2-rc.1+ 的插件正式版** - -- 13 条 DSH peer 下限前移到 `^0.2.2-rc.1`,沿用 alpha.0 的功能实现,不增加运行时改动 -- 上游 alpha.5 → rc.1 完整树差异共 355 个文件,全部为 `package.json`,源码零变化 -- DSH 0.2.0-rc.2 宿主固定插件 v0.26.1;DSH 0.2.1-alpha.5 宿主固定 v0.28.0-alpha.0 -- 验证:[RC 适配记录](./docs/plans/2026-10-17-dsh-0.2.1-rc.1-adaptation.md) - ## 🔌 插件生态 `ctx.betterSidebar` 向所有插件开放 `registerTab` / `registerFileViewer` 两个扩展点,内置 6 tab + 4 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)**。