dsh-sidebar-suite 0.2.5 → 0.2.6

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/CHANGELOG.md CHANGED
@@ -1,12 +1,23 @@
1
1
  # 更新日志 / Changelog
2
2
 
3
- > 版本号以 npm registry **实际发布记录**为准(当前:`0.0.0-stage`、`0.1.3`、`0.2.4`、`0.2.5`)。
3
+ > 版本号以 npm registry **实际发布记录**为准(当前:`0.0.0-stage`、`0.1.3`、`0.2.4`、`0.2.5`、`0.2.6`)。
4
4
  > `0.2.0`、`0.2.1`、`0.2.2`、`0.2.3` 是开发过程中的本地迭代号,**从未单独发布**;它们的功能一次性随 `0.2.4` 上线,所以在下面合并记录。
5
5
  >
6
6
  > Versions mirror the npm registry. `0.2.0`–`0.2.3` were local iteration numbers that were never published on their own; all of their features shipped together in `0.2.4`.
7
7
 
8
8
  ---
9
9
 
10
+ ## 0.2.6 — 默认值披露 + 可下载 Release / Default-behaviour disclosure & downloadable releases(2026-11-10)
11
+
12
+ **同样没有改运行时逻辑**:只把「临时会话默认在退出 DSH 时删除;每天定时清理默认关」这件插件目录维护者在 PR #13993 复验后要求披露的事,写进所有用户看得到的地方,并给 GitHub Release 补上可下载附件。No runtime logic changed.
13
+
14
+ - **对齐市场目录措辞 / Copy aligned with the catalog** — 目录 `data/plugins/YONAN1269__dsh-sidebar-suite.yml` 的中英描述已由维护者补上「默认在退出 DSH 时删除 / deleted when DSH exits (by default)」。本版把同一口径同步到 npm 简介、详情页头部简介(`locale/*.json`)、`DETAIL.md`、README、使用说明和详情页设置卡,不再用「退出 / 每天定时自动删除」这种容易被误读成两个开关都默认开的写法。The same default is now stated everywhere, including the settings card.
15
+ - **默认值一眼可见 / Defaults visible in the UI** — 设置卡说明直写「退出 DSH 时删除=开,每天定时清理=关 / delete on quit = on, daily cleanup = off」;`DETAIL.md` 新增「默认行为 / Defaults」段落,回归测试 `test_025` 加了断言防止以后写回去。
16
+ - **GitHub Release 补齐附件 / Downloadable release assets** — 此前 `v0.2.4` / `v0.2.5` 两个 Release 都是空附件,所以下载量一直是 0。现在每个 Release 都附 `.zip` 源码包与 npm 的 `.tgz` 安装包,Release 页面开始累计真实的附件下载次数。GitHub only counts downloads of attached assets — npm installs and clones do not show up there.
17
+ - **下载入口 / Where to download** — README 安装一节挂了 [Releases](https://github.com/YONAN1269/dsh-sidebar-suite/releases) 链接,说明 `.tgz` 可用 `dsh plugin --profile desktop add <本地路径>` 离线安装。
18
+
19
+ ---
20
+
10
21
  ## 0.2.5 — 交付补齐 / Delivery polish(2026-11-10)
11
22
 
12
23
  **没有改任何运行时代码**:`lib/` 下三份脚本与 0.2.4 逐字一致。这一版只补「用户拿不到 / 项目不可维护」的缺口。
package/DETAIL.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # 侧栏布局大师 · Sidebar Suite
2
2
 
3
- > **中文**:**这是一款专门针对改进 DSH 左侧栏体验的插件。** 左侧栏里「扩展」和「工作区」永远在抢同一块高度;装了几个插件之后,找一个入口要滚半天;项目一多,扩展就被挤没。它只解决这一处,但要把它做到**既强实用、又好看**:三种布局一键切换、**默认布局就在本页最上方**、会话列表默认全部展开、临时会话用完即删;界面全程沿用宿主原生配色、圆角与间距,不另起一套皮肤。
3
+ > **中文**:**这是一款专门针对改进 DSH 左侧栏体验的插件。** 左侧栏里「扩展」和「工作区」永远在抢同一块高度;装了几个插件之后,找一个入口要滚半天;项目一多,扩展就被挤没。它只解决这一处,但要把它做到**既强实用、又好看**:三种布局一键切换、**默认布局就在本页最上方**、会话列表默认全部展开、临时会话默认在退出 DSH 时删除(每天定时清理默认关,可在本页开启);界面全程沿用宿主原生配色、圆角与间距,不另起一套皮肤。
4
4
  >
5
- > **English**: **This is a plugin dedicated to improving the DSH sidebar experience.** The panels group and the workspaces group fight for the same vertical space; once you install a few plugins, finding anything means scrolling; add more projects and the panels vanish entirely. It fixes only that one surface, but fixes it properly — **seriously practical and native-looking**: three layouts in one click, the **startup-default picker at the very top of this page**, an always-expanded session list, disposable temporary sessions, and a UI built entirely from the host's own colours, radii and spacing instead of a custom skin.
5
+ > **English**: **This is a plugin dedicated to improving the DSH sidebar experience.** The panels group and the workspaces group fight for the same vertical space; once you install a few plugins, finding anything means scrolling; add more projects and the panels vanish entirely. It fixes only that one surface, but fixes it properly — **seriously practical and native-looking**: three layouts in one click, the **startup-default picker at the very top of this page**, an always-expanded session list, temp sessions deleted when DSH quits by default (daily cleanup off unless enabled), and a UI built entirely from the host's own colours, radii and spacing instead of a custom skin.
6
6
 
7
7
  ---
8
8
 
@@ -28,7 +28,7 @@ Each card draws a small diagram of its layout, and the selected one is marked as
28
28
  - **会话与默认分离 / Session ≠ default** — 侧栏上临时换布局只影响本次会话,不写盘;只有详情页的设置会改默认值。Switching from the sidebar bar is session-only; only this page changes the startup default.
29
29
  - **零侵入 / Zero rewrites** — 只往 `<html>` 上写属性、加一条控制栏,绝不重构宿主 DOM,React 重绘后自动重新挂载,也不影响 `dsh-deepseek-chat` 这类别的插件。Only `<html>` attributes and one control bar; the host's markup is never restructured, everything re-resolves after React rebuilds, and other sidebar plugins keep working.
30
30
  - **会话不用再点「展开其余」/ No more "Show N more"** — 会话列表默认全部展开,折叠按钮也不再显示;按宿主自己的按钮展开、不改宿主 DOM。`EXPAND_ALL_SESSIONS=off` 可恢复原样。Every session is shown and the host's overflow control is hidden, driven through the host's own button; `EXPAND_ALL_SESSIONS=off` restores DSH's folding.
31
- - **临时会话 / Temporary session** — 点「临时」在左侧栏开一个**真正的 DSH 会话**(原生窗口、当前模型与工具链、可并行多任务),退出 DSH 时或每天定时自动删除;两个开关都在本页顶部,改完立即生效。Opens a real DSH session in the sidebar, with the native window and current model/toolchain, then removes it on quit or on a daily schedule — both switches live at the top of this page.
31
+ - **临时会话 / Temporary session** — 点「临时」在左侧栏开一个**真正的 DSH 会话**(原生窗口、当前模型与工具链、可并行多任务),**默认在退出 DSH 时删除**;**每天定时清理默认关**,需要时在本页开启并设时间;两个开关都在本页顶部,改完立即生效。Opens a real DSH session in the sidebar with the native window and current model/toolchain; it is **deleted when DSH quits by default**, while the **optional daily cleanup is off by default** — both switches live at the top of this page.
32
32
  - **反馈有确定入口 / Feedback that reaches someone** — 详情页底部三个按钮:复制报告(自动带上版本、系统、布局、最近错误)、预填的 GitHub Issue、插件市场规定的评论区。Three channels at the bottom of this page, with version, OS, layout and last error already filled in.
33
33
  - **不联网 / Offline** — 收款码随插件打包由宿主本地提供,配置只落在本机 profile。The QR ships with the bundle and is served locally; config stays in your profile.
34
34
  - **中英双语 / Bilingual** — 界面文案、详情内容、设置说明全部中英对照。UI labels, this document and the settings copy are all bilingual.
@@ -101,6 +101,9 @@ For local development, point the same command at this folder or a packed `.tgz`.
101
101
 
102
102
  ## 临时会话 / Temporary session(0.2.0)
103
103
 
104
+ > **默认行为 / Defaults**:`DELETE_ON_EXIT=on` —— 临时会话**默认在退出 DSH 时删除**;`SCHEDULE_DELETE=off` —— **每天定时清理默认关**,只有你在详情页打开它并设了时间才会按天清理。两项互不影响,可以同时开。
105
+ > **Defaults**: temp sessions are **deleted when DSH quits by default**; **daily cleanup is off by default** and only runs after you enable it and pick a time. The two switches are independent.
106
+
104
107
  「临时」按钮创建的**是一个真正的 DSH 会话**,因此:在左侧栏可见、用原生会话窗口、继承当前模型和工具链、可以随意切换任务;只有「退出即删除」这一点是插件加的。
105
108
 
106
109
  实现路径(全部在 `app.asar` 0.2.2-rc.1 上核实):
package/README.md CHANGED
@@ -19,7 +19,7 @@ The full detail document is [DETAIL.md](DETAIL.md).
19
19
 
20
20
  | 设计取向 / Design goal | 落在哪 / What it means |
21
21
  | --- | --- |
22
- | **强实用性 / Seriously practical** | 三种布局一键切换、默认布局在详情页顶部直接改、会话列表默认全展开(不用再点「展开其余」)、「临时」开真会话且退出 / 每天定时自动删除、详情页三种反馈入口 |
22
+ | **强实用性 / Seriously practical** | 三种布局一键切换、默认布局在详情页顶部直接改、会话列表默认全展开(不用再点「展开其余」)、「临时」开真会话且**默认在退出 DSH 时删除**(`DELETE_ON_EXIT=on`;**每天定时清理默认关**,需要时在详情页开启并设时间)、详情页三种反馈入口 |
23
23
  | **美观性 / Looks native** | 颜色与层级全取宿主设计变量、深浅主题自动跟随;细字号控制栏、迷你布局示意图、「临时」用 CSS 标签不破坏行高;不重构宿主 DOM、不弹窗、不另起一套皮肤 |
24
24
 
25
25
  完整的「强实用性 / 美观性」逐条说明见 [DETAIL.md](DETAIL.md) 的「这是一款什么插件」一节。
@@ -116,6 +116,9 @@ dsh plugin --profile desktop add dsh-sidebar-suite
116
116
  本地开发时也可以把命令里的包名换成本目录路径,或 `pnpm pack` 产出的 `.tgz`。
117
117
  For local development, point the same command at this folder or a packed `.tgz` instead.
118
118
 
119
+ **离线安装包 / Offline archives**:[GitHub Releases](https://github.com/YONAN1269/dsh-sidebar-suite/releases) 的每个版本都附一个 `.zip` 源码包和一个 `.tgz` npm 安装包。把 `.tgz` 下到本机后执行 `dsh plugin --profile desktop add <本地 .tgz 的完整路径>` 就能离线安装;Release 页面会显示每个附件真实的下载次数。
120
+ Every release ships a `.zip` source archive and an npm `.tgz`; point the install command at the downloaded `.tgz` for an offline install. GitHub counts downloads of these attached files.
121
+
119
122
  **已在 DSH 0.2.2-rc.1(desktop profile)验证 / Tested on DSH 0.2.2-rc.1 (desktop profile).**
120
123
  本包刻意不声明 `engines.dsh`:当前 DSH 是预发布版,semver 默认规则会把常规版本范围误判为不兼容。
121
124
  This bundle deliberately omits `engines.dsh`: DSH is currently a prerelease, and semver's default rules would reject any ordinary range.
package/lib/client.js CHANGED
@@ -96,7 +96,7 @@ window.__ModuleLoader__.load({
96
96
  'temp.restartHint': 'Fully quit DSH (tray icon → Quit) and reopen it — a hot reload does not reload the plugin host.',
97
97
  'temp.badge': 'TEMP',
98
98
  'policy.title': 'Temporary session cleanup',
99
- 'policy.help': 'Choose when temporary sessions are removed. Saved to the plugin settings file and applied immediately — no restart.',
99
+ 'policy.help': 'Choose when temporary sessions are removed. Defaults: delete on quit = on, daily cleanup = off. Saved to the plugin settings file and applied immediately — no restart.',
100
100
  'policy.onQuit': 'Delete when DSH quits',
101
101
  'policy.schedule': 'Clean up every day at',
102
102
  'policy.on': 'On',
@@ -146,7 +146,7 @@ window.__ModuleLoader__.load({
146
146
  'temp.restartHint': '请从托盘图标彻底退出 DSH 再打开 —— 热重载不会重载插件后端。',
147
147
  'temp.badge': '临时',
148
148
  'policy.title': '临时会话自动删除',
149
- 'policy.help': '决定临时会话什么时候被清掉。写入插件设置文件,改完立即生效,不用重启。',
149
+ 'policy.help': '决定临时会话什么时候被清掉。默认:退出 DSH 时删除=开,每天定时清理=关。写入插件设置文件,改完立即生效,不用重启。',
150
150
  'policy.onQuit': '退出 DSH 时删除',
151
151
  'policy.schedule': '每天定时清理,时间',
152
152
  'policy.on': '开',
@@ -168,6 +168,9 @@ window.__ModuleLoader__.load({
168
168
  // statement. The Host renders locale/meta.description above the sections,
169
169
  // but the settings card is lifted to order:-1, so without this line the
170
170
  // first thing a reader sees would be a control with no context.
171
+ // Also pinned: the cleanup defaults, disclosed on the settings card.
172
+ // The catalog maintainer asked for this after PR #13993 was merged.
173
+ 'policy.help': '决定临时会话什么时候被清掉。默认:退出 DSH 时删除=开,每天定时清理=关;两个开关互不影响,改完立即生效,不用重启。 / Choose when temporary sessions are removed. Defaults: delete on quit = on, daily cleanup = off; the two switches are independent and apply immediately — no restart.',
171
174
  'settings.intro': '一款专门针对改进 DSH 左侧栏体验的插件 —— 强实用性 + 美观性:沿用宿主原生观感,不另起一套皮肤。 / A plugin dedicated to the DSH sidebar experience — seriously practical and good-looking, built from native host design tokens.',
172
175
  'settings.title': '启动时的默认布局 · Default layout on startup',
173
176
  'settings.help': '选择 DSH 启动时使用的布局,这里会写入插件配置;在侧栏上临时切换只影响本次会话。 / Pick the layout DSH starts with — this writes the plugin config, while switching from the sidebar bar stays session-only.',
package/locale/en.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "侧栏布局大师 · Sidebar Suite",
4
- "description": "一款专门针对改进 DSH 左侧栏体验的插件:三种布局一键切换、会话默认全展开、临时会话用完即删、设置与反馈都在本页,强实用性;界面沿用宿主原生配色、圆角与间距,只加属性不重构宿主结构,克制又好看。|A plugin dedicated to a better DSH sidebar: one-click layouts, always-expanded sessions, disposable temp sessions and in-page settings/feedback — seriously practical; native colours, radii and spacing with zero host-DOM rewrites — restrained and good-looking.",
4
+ "description": "一款专门针对改进 DSH 左侧栏体验的插件:三种布局一键切换、会话默认全展开、临时会话默认在退出 DSH 时删除(每天定时清理默认关,可在本页开启并设时间)、设置与反馈都在本页,强实用性;界面沿用宿主原生配色、圆角与间距,只加属性不重构宿主结构,克制又好看。|A plugin dedicated to a better DSH sidebar: one-click layouts, always-expanded sessions, temp sessions deleted when DSH quits by default (daily cleanup off by default and opt-in) and in-page settings/feedback — seriously practical; native colours, radii and spacing with zero host-DOM rewrites — restrained and good-looking.",
5
5
  "detail": "DETAIL.md"
6
6
  }
7
7
  }
package/locale/zh.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "侧栏布局大师 · Sidebar Suite",
4
- "description": "一款专门针对改进 DSH 左侧栏体验的插件:三种布局一键切换、会话默认全展开、临时会话用完即删、设置与反馈都在本页,强实用性;界面沿用宿主原生配色、圆角与间距,只加属性不重构宿主结构,克制又好看。|A plugin dedicated to a better DSH sidebar: one-click layouts, always-expanded sessions, disposable temp sessions and in-page settings/feedback — seriously practical; native colours, radii and spacing with zero host-DOM rewrites — restrained and good-looking.",
4
+ "description": "一款专门针对改进 DSH 左侧栏体验的插件:三种布局一键切换、会话默认全展开、临时会话默认在退出 DSH 时删除(每天定时清理默认关,可在本页开启并设时间)、设置与反馈都在本页,强实用性;界面沿用宿主原生配色、圆角与间距,只加属性不重构宿主结构,克制又好看。|A plugin dedicated to a better DSH sidebar: one-click layouts, always-expanded sessions, temp sessions deleted when DSH quits by default (daily cleanup off by default and opt-in) and in-page settings/feedback — seriously practical; native colours, radii and spacing with zero host-DOM rewrites — restrained and good-looking.",
5
5
  "detail": "DETAIL.md"
6
6
  }
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-sidebar-suite",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "license": "MIT",
5
5
  "author": "Yonan",
6
6
  "repository": {
@@ -14,7 +14,7 @@
14
14
  "publishConfig": {
15
15
  "access": "public"
16
16
  },
17
- "description": "一款专门针对改进 DSH 左侧栏体验的插件:三种布局一键切换、默认布局在详情页顶部直接设、会话列表默认全展开、「临时会话」开原生会话且退出 / 每天定时自动删除、详情页三种反馈入口 —— 强实用性;界面沿用宿主原生配色、圆角与间距,只加属性与一条控制栏、不重构宿主结构 —— 克制美观。|A plugin dedicated to the DSH sidebar experience: one-click layouts, always-expanded sessions, disposable native temp sessions and in-page settings/feedback — seriously practical; native colours, radii and spacing with zero host-DOM rewrites — restrained and good-looking.",
17
+ "description": "一款专门针对改进 DSH 左侧栏体验的插件:三种布局一键切换、默认布局在详情页顶部直接设、会话列表默认全展开、「临时会话」开原生会话且默认在退出 DSH 时删除(DELETE_ON_EXIT 默认开;每天定时清理默认关,可在详情页开启并自设时间)、详情页三种反馈入口 —— 强实用性;界面沿用宿主原生配色、圆角与间距,只加属性与一条控制栏、不重构宿主结构 —— 克制美观。|A plugin dedicated to the DSH sidebar experience: one-click layouts, always-expanded sessions, native temp sessions deleted when DSH quits by default (DELETE_ON_EXIT on; daily cleanup off by default and opt-in) and in-page settings/feedback — seriously practical; native colours, radii and spacing with zero host-DOM rewrites — restrained and good-looking.",
18
18
  "keywords": [
19
19
  "dsh-plugin",
20
20
  "dsh",
@@ -1,13 +1,13 @@
1
1
  # dsh-sidebar-suite 使用说明
2
2
 
3
- **适用版本:v0.2.4**(最后更新 2026-11-10)
3
+ **适用版本:v0.2.6**(最后更新 2026-11-10)
4
4
 
5
5
  **这是一款专门针对改进 DSH 左侧栏体验的插件** —— 只管左侧栏,不碰会话内容、不换模型;设计上既要「强实用性」(少点几下、少滚几屏),也要「美观性」(沿用 DSH 原生观感,不另起一套皮肤)。
6
6
 
7
7
  落到手上就是两件事:
8
8
 
9
9
  1. **管侧栏布局** —— 左侧栏里「扩展面板」和「工作区」原本抢同一块地方,插件给你三种摆法,随时切;会话列表默认全部展开,不用再点「展开其余」。
10
- 2. **加一个「临时」按钮** —— 点一下在侧栏开一个**真正的会话**,聊完退出 DSH 自动删掉(也可以设成每天定时删)。
10
+ 2. **加一个「临时」按钮** —— 点一下在侧栏开一个**真正的会话**,**默认在退出 DSH 时删除**(`DELETE_ON_EXIT=on`);**每天定时清理默认关**(`SCHEDULE_DELETE=off`),需要时到插件详情页开启并设时间。
11
11
 
12
12
  下面按「你实际要动手的地方」写。**所有需要改的文件,都给了完整路径 + 行号 + 原文**,照抄就行。
13
13