Skip to content

Releases

v1.9.1 — 客户端模块化拆分(纯重构)

Choose a tag to compare

@QDNBD QDNBD released this 27 Nov 08:07

纯工程重构,功能零变化:9740 行的单文件客户端拆成 src/ 下 21 个模块(按文件名序拼接为宿主加载的 lib/client.js),拼接产物与拆分前逐字节一致(sha256 比对),回归 289 项全绿、真机冒烟全过。

给维护者:以后改代码改 src/,打包自动构建;src/ 比 lib/ 新时打包直接失败(防漏构建)。npm 包不携带源模块,包体不变。回退路径:backup/pre-module-split tag。

v1.9.0 — 斜杠菜单直达入口

Choose a tag to compare

@QDNBD QDNBD released this 27 Nov 06:56

可发现性补完:很多用户从来不知道 Ctrl+K 的存在——现在在宿主自带的 / 命令菜单里也挂上了入口。

  • 输入框敲一个 /,菜单里出现「打开面板启动器」;输入 /启动 直接把它排进可视区,点击即弹出我们自己的面板菜单(拼音搜索完好保留——宿主的菜单壳没有拼音,所以我们只挂入口、不搬清单)。
  • 宿主没有命令菜单的旧版本自动跳过;界面语言跟随宿主设置(词条按候选合成实时重读)。
  • 顺带修复:宿主默认键位冲突时(如 session.search 占用 primary+K),快捷键注册不再无限重试刷日志,自动落回内置监听(Ctrl+K 行为不变)。

回归 289 项全绿;真机端到端验证通过(真实鼠标点击 / 菜单行 → 面板打开 → Esc 关闭 → 搜索词直达)。

v1.8.0 — 触屏拖拽 + 侧栏收起徽标

Choose a tag to compare

@QDNBD QDNBD released this 27 Nov 05:12

两件新能力:

  • 触屏也能拖了 — 按住侧栏行 500ms 进入拖动态(触觉反馈),蓝色插入线实时指示落点,松手即排序;长按住不动松手则弹出右键菜单(隐藏/重命名/钉住/移到最前一条不落);先滑动的手势照旧让位给滚动。鼠标拖拽路径完全不变。
  • 侧栏收起徽标 — 收起侧栏时,展开按钮旁显示「已收纳 N 行进启动器」;没有收纳内容时不显示;旧宿主无此槽位自动跳过。

回归 273 项全绿(新增触屏手势 24 项);toast/ARIA 真机复验无回归;触屏手感待真机触摸设备复验。

v1.7.1 — toast 宿主配色 + 无障碍语义

Choose a tag to compare

@QDNBD QDNBD released this 27 Nov 02:55

两件打磨:

  • 提示条用宿主原生配色 — 弹出的 toast 改用宿主自己的 --dsw-alias-toast-bg/-label token,观感与宿主原生提示完全一致(深底白字,两种主题统一);旧宿主自动回退旧配色。
  • 弹层菜单无障碍语义 — 容器从无效的 role="menu" 改为 dialog,列表是 listbox,行是 option,搜索框是 combobox;键盘 ↑↓ 高亮通过 aria-activedescendant 暴露给读屏软件——此前读屏完全不知道高亮在哪一行。

功能与外观(除 toast 表面)不变。回归 249 项全绿,真机 CDP 端到端验证通过。

v1.7.0 — Pin 双源收敛

Choose a tag to compare

@QDNBD QDNBD released this 27 Nov 02:06

Pin 双源收敛 — 宿主 0.2.2-rc.5 自带原生图钉后,钉住状态一度存在两份(宿主内存 + 插件本地存储),在原生图钉上取消固定会被插件无声复活(真机实证:重开一次菜单行就回来)。

现在插件检测到原生图钉就隐藏自己的钉住行,退为纯持久化镜像——宿主管交互,插件管记忆:每次原生取消固定都被记录,重启后由插件恢复,绝不再复活。旧宿主(无原生图钉)行为不变。

真机端到端(CDP):原生取消固定 → localStorage 立刻记录 → 重开菜单行不复活;应用重启后两个已取消固定的面板正确恢复到未钉状态。

v1.6.1 — New-session button text centred again

Choose a tag to compare

@QDNBD QDNBD released this 26 Nov 05:17

Fixed

  • The sidebar's New-session button is centred again. The plugin's own stylesheet matched the host's hashed class names with a prefix test — [class*="_newSession"] — and that matched six elements at once: the row, the button, and the button's inner label mask, content and label. The extra 8px margin landed on the button's inner elements, so the flex-centred "+ 新会话" text sat 8px above the button's vertical middle and the lower half of the pill looked empty.
    • The spacing now applies to the row only ([class*="_newSessionRow"]); the button and its contents are back to the host's own geometry.
    • Measured on the real desktop app: with the plugin's stylesheet on, the text centre sat 8px above the button centre; with it off, the offset was 0. After the fix the offset is 0.
    • Nothing else moved: the 8px gap between the New-session row and the panel list below it is unchanged.

Compatibility

  • Host range unchanged: DSH ≥ 0.2.0-rc.1 (<0.3.0-0).
  • Display layer only; uninstalling leaves the host pixel-identical to before.

Upgrade

dsh plugin --profile <your profile> add dsh-panel-pins

Full Changelog: v1.6.0...v1.6.1


中文摘要

  • 侧栏「新会话」按钮的文字回到正中。插件的样式表用前缀匹配宿主哈希类名([class*="_newSession"]),一次命中 6 个元素(行、按钮、按钮内部的标签遮罩 / 内容 / 标签),多出来的 8px 下边距落在按钮内层,把 flex 居中的「+ 新会话」文字顶到垂直中心上方 8px,按钮下半截空出一大块,看着像半个空输入框。
    • 现在这条间距只作用在行上([class*="_newSessionRow"]),按钮与内层恢复宿主原样。
    • 真机实测:样式表开时文字中心比按钮中心高 8px,关掉后偏差 0;修复后偏差 0。
    • 其他没变:按钮与下方面板列表之间的 8px 间距照旧。

v1.6.0 (b96) — 右栏标签页 + 语言跟随 + 主题跟随

Choose a tag to compare

@QDNBD QDNBD released this 26 Nov 03:35

Added

  • The host's right-sidebar tab types join the launcher menu. A new Right sidebar group lists them next to the panels, and clicking one opens it through the host's own navigation controller.
    • Only page types are listed. A resource type is opened by address, not by name — openTab() would synthesize a page address and mount a body that throws, so listing one would open a broken tab.
    • The group appears only when the host can actually open a tab right now: no controller, or no session on screen, means no dead rows.
    • The type is re-checked at click time, so a type unloaded between opening the menu and clicking is not opened.
  • The UI language follows the host's own language setting. The host ships 8 languages and lets you switch them in-app; the plugin read navigator.language once at load and froze its copy, so a host set to 中文 with an English browser answered in English — and nothing could change while the plugin was mounted. Now the plugin reads the host's locale and repaints the moment you switch it.
  • The theme follows the host instantly. The old observer watched a <html> class the host never touches; the host actually writes <html>.style, <html>[data-ds-theme-source] and <body>[data-ds-dark-theme], so a theme switch could take up to five seconds to land. The plugin now subscribes to the host's own theme/change event and falls back to reading those attributes on hosts with no theme service.

Fixed

  • new MutationObserver(...) resolved the global constructor, which does not exist when the plugin runs inside another window realm — the observer was silently never installed. It now prefers the window the plugin was handed.
  • The launcher's own label and accessible name were cached at creation time and did not follow a language switch.

Compatibility

  • Host range unchanged: DSH ≥ 0.2.0-rc.1 (<0.3.0-0).
  • Every new capability degrades on hosts that do not ship the matching service: no locale service → the browser decides, no theme service → the host's DOM attributes decide, no right-sidebar controller → the group is absent. The new services are read as optional and are not declared as load-bearing dependencies.
  • Display layer only; uninstalling leaves the host pixel-identical to before.

Upgrade

dsh plugin --profile <你的 profile> add dsh-panel-pins

Full Changelog: v1.5.0...v1.6.0


English summary

  • The host's right-sidebar tab types now join the launcher menu in a group of their own. Only page types are listed — a resource type is opened by address, and opening one by name would mount a body that throws. The group only appears when a session is actually on screen.
  • The UI language follows the host's language setting (8 languages, switchable in-app) instead of a one-shot navigator.language read, and repaints the moment you switch.
  • The theme follows the host instantly. The host applies its palette by writing <html>.style.colorScheme, <html>[data-ds-theme-source] and <body>[data-ds-dark-theme] — never a class on <html>, which is what the old observer watched, so a theme switch could take up to five seconds to land. The plugin now reads the host's resolved scheme from those signals on every repaint (and repaints on the host's own theme/change event), so it stays in step even when a third-party plugin registers a custom theme whose colorScheme does not match the palette on screen.
  • Fixed the MutationObserver constructor lookup so the observers are actually installed outside a plain browser global scope.

v1.5.0 (b95) — 宿主快捷键 Ctrl+K + 拼音搜索 + 主面板入口

Choose a tag to compare

@QDNBD QDNBD released this 26 Nov 02:49

Added

  • Ctrl+K 进入宿主快捷键服务(DSH 0.2.2-rc.5):Ctrl+K 不再只是插件自己的 document keydown 监听,而是通过 ctx.shortcuts.register 注册进宿主自己的快捷键服务——它会出现在「设置 → 快捷键」里,用户可自行改键,键位冲突可见,宿主负责输入框 / 模态仲裁(context.region 由宿主计算,覆盖 shadow root 与 xterm,比插件自己嗅探 event.target 可靠)。
    • 降级路径:无 shortcuts 服务的旧宿主、或 register() 因键位被占而抛错时,自动回退插件自己的 DOM 监听,功能不丢。
    • Alt+1..9 刻意保留在插件侧(不进宿主注册):避免与宿主可能的 Alt+数字冲突导致 register() 抛错,也避免 Desktop 原生桥与 DOM 双触发。
  • 拼音搜索:搜索框现在支持拼音首字母 / 全拼 / 模糊子序列匹配,按 9 档相关度在组内排序(组序不变——replayGroupFolds 依赖「组头 + 相邻子项」相邻性;清空搜索框复原原序;同分保持原序)。
    • 字表是完整 GB2312 6763 字(含生僻字),由 scripts/gen-pinyin.mjs 在构建期生成并内联进 lib/client.js——插件仍是零运行时依赖,运行时不加载任何拼音库。
  • 主面板入口:只注册了根级 main 槽的第三方插件,现在进入启动器的「主面板」分组,点击走公开契约 layout.selectPanel(key)(未注册 key 会抛错,已 try/catch)。

右侧栏标签页刻意不做:宿主没有公开的 openGuide 类打开 API(app.asar 0.2.2-rc.5 中 0 命中),枚举出来也点不开——宁可不做,也不做点不动的死行。

Compatibility

  • 兼容区间不变:DSH ≥ 0.2.0-rc.1(<0.3.0-0)。
  • 新能力在无 shortcuts 服务的宿主上自动降级,不影响 0.2.0 / 0.2.1 线。
  • 只改显示层,卸载插件刷新页面后宿主外观与安装前一模一样。

Upgrade

dsh plugin --profile <你的 profile> add dsh-panel-pins

Full Changelog: v1.4.8...v1.5.0


English summary

  • Ctrl+K is now registered with the host's own shortcut service (ctx.shortcuts.register): it shows up under Settings → Shortcuts, is rebindable, conflicts are visible, and the host arbitrates inputs and modals. Falls back to the plugin's own keydown listener on older hosts or when the binding is taken. Alt+1..9 stays plugin-owned on purpose.
  • Search understands pinyin initials, full pinyin and fuzzy subsequences, scored across 9 relevance tiers and sorted within each group. The GB2312 6763-char table is generated at build time and inlined — still zero runtime dependencies.
  • Third-party plugins that register only a root-level main panel now join the launcher's Main panels group.
  • Right-hand sidebar tabs are deliberately not enumerated: the host exposes no public open API for them, so those rows would be dead.

v1.4.8 (b94)

Choose a tag to compare

@QDNBD QDNBD released this 25 Nov 12:43

Fixed

  • 限高面板列表滚轮失效(DSH 0.2.2-rc.5 + 1.4.4,1.4.5–1.4.7 三版均未修好):rc.5 宿主手令视口处理器对导航区所有滚轮事件 preventDefault() 后只驱动视口,免驱动限高的列表原生滚动永远不会发生。
  • 1.4.7 样式表截断事故回退:EXTRA_CSS 中 html.dpp-rc3 [class$="_regionArea"] { 被复制两遍,声明块内的裸选择器按 CSS 规范触发坏声明残余消费——吞掉其后整段样式表(滚动条主题 / tidy 底部 / icon-only / launcher / 弹层全灭),是 1.4.7「还是不行」的直接原因。
  • v1.4.8 以 1.4.4 为基底,移植 LITE 滚轮驱动:列表可吸收的滚动步 preventDefault + 驱动列表(宿主处理器见 defaultPrevented 早退,不双重驱动);列表边界步原样放行给宿主手令(不 stopPropagation、不代写视口——1.4.5 弄坏工作区的两件事均已避免)。EXTRA_CSS 与 1.4.4 逐字节一致。
  • 兼容区间不变:DSH ≥ 0.2.0-rc.1。

Upgrade

dsh plugin --profile <你的 profile> add dsh-panel-pins

Full Changelog: v1.4.7...v1.4.8

v1.4.7 — rc.5 限高面板列表回归(边界放行轻量驱动)

Choose a tag to compare

@QDNBD QDNBD released this 25 Nov 11:04

Changed

  • rc.5 上恢复限高面板列表(应用户要求):1.4.6 的完全让位保住了两个区域的滚动,但不限高的导航让整个侧栏变成一根长滚动条。v1.4.7 把「限高 + 自己滚」的面板列表带了回来。
  • 轻量(LITE)滚轮驱动,首次让列表与工作区同时正常:
    • 列表可吸收的滚动步 → preventDefault + 滚列表(宿主手令处理器遇 defaultPrevented 自动让路,不会双重滚动)
    • 列表到边界的滚动步(下滚到底 / 上滚到顶)→ 原样放行:不 preventDefault、不 stopPropagation、不代写视口——宿主观察到原始事件,自己完成手势交接(导航滚走 → 工作区接管;上行工作区先回顶)
  • 1.4.5 弄坏工作区的两个根因(stopPropagation + 代写 viewport.scrollTop)被精确规避。
  • rc.3 老宿主维持限高 + 原劫持;无 _scrollArea 的旧宿主全原生。兼容区间不变:DSH ≥ 0.2.0-rc.1。

Upgrade

dsh plugin --profile <你的 profile> add dsh-panel-pins

Full Changelog: v1.4.6...v1.4.7