dsh-plugin-notify-sounds 1.6.3 → 1.6.4

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/README.md CHANGED
@@ -123,6 +123,7 @@ For anyone hacking on the code (exact details live in the source comments):
123
123
 
124
124
  ## Changelog
125
125
 
126
+ - **v1.6.4** (2026-10-11) No more scrolling to find the news: an update swaps the plugin's own client file and the page reloads at the top, so the row now scrolls itself back into view when the outcome appears.
126
127
  - **v1.6.3** (2026-10-11) The update-success message no longer flashes and vanishes: the Host remembers the install and repeats it with every check, so "Updated, restart DSH to load it" survives the page reload the update itself triggers (it swaps the client half's own file) and stays until the restart. The cached check is invalidated after an install too, so the row can no longer claim a newer version than the one it just wrote.
127
128
  - **v1.6.2** (2026-10-11) Fixed one-click update always failing when the mainland mirror answered the check: the mirror serves its tarballs from its CDN, and the downloader refused every redirect — so the download could never finish (found by the live drill). Redirects are now followed one hop at a time with every hop checked against the trusted hosts (the mirror's CDN is the one legitimate hop); the sha512 check is unchanged. A failure now names the stage it died at (check / download / verify / unpack / replace).
128
129
  - **v1.6.1** (2026-10-11) The README is rebuilt as a release page: a new **Consistent with DSH's own UI** section on how the UI matches DSH's own settings, copy polished throughout, and the upgrade notes corrected — the plugin updates itself, so no uninstall is needed. This release doubles as the live drill for one-click update.
package/README.zh.md CHANGED
@@ -123,6 +123,7 @@ dsh plugin --profile <你的 profile> add ./dsh-plugin-notify-sounds
123
123
 
124
124
  ## 更新记录
125
125
 
126
+ - **v1.6.4**(2026-10-11)更新完成后不用再手动往下翻:更新会替换插件自身的客户端文件、触发页面重载并回到顶部,现在「更新完成」提示出现时,「更新」行会**平滑滚动回视野**。
126
127
  - **v1.6.3**(2026-10-11)更新成功的提示不再一闪而过:更新结果改由**宿主**记住、随每次检查下发——即便更新替换掉了客户端自身文件、页面热重载丢掉本地状态,「更新完成:vX → vY,重启 DSH 后生效」也会一直显示到你重启;同时更新后**作废检查缓存**,不会再出现「明明刚升完却仍显示有新版」。
127
128
  - **v1.6.2**(2026-10-11)修复一键更新在**镜像源**下必然失败:npmmirror 的 tarball 会跳转到它的 CDN,而下载器此前拒绝一切重定向,于是「只要检查由镜像应答,下载就永远到不了」(真机演练实测发现)。现在重定向改为逐跳跟随、每一跳都必须仍落在受信主机上(镜像 CDN 是唯一合法跳转),sha512 校验不变;失败提示会带上失败阶段(下载 / 校验 / 解包 / 替换),便于定位。
128
129
  - **v1.6.1**(2026-10-11)README 重排为发布页风格:补「**与 DSH 界面保持一致**」一节讲清界面取自 DSH 自身设计体系;通篇表达润色,并修正升级说明(本插件自带更新,无需卸载重装)。本版同时是「一键更新」的发布演练。
package/lib/client.js CHANGED
@@ -1605,7 +1605,15 @@ window.__ModuleLoader__.load({
1605
1605
  detail = t("update.applyFailed", { stage: String(state.result?.stage ?? "?") });
1606
1606
  }
1607
1607
  const busy = state.phase === "checking" || state.phase === "updating";
1608
- return h("div", { className: css.row }, [
1608
+ // An update swaps this very file: DSH reloads the client half and
1609
+ // the settings section is rebuilt from the top, so the news would
1610
+ // land somewhere the user has to scroll to find. Bring the row
1611
+ // back into view instead — once per outcome, not on every render.
1612
+ const rowRef = useRef(null);
1613
+ useEffect(() => {
1614
+ if (appliedDone) rowRef.current?.scrollIntoView?.({ block: "center", behavior: "smooth" });
1615
+ }, [appliedDone]);
1616
+ return h("div", { className: css.row, ref: rowRef }, [
1609
1617
  h("div", { key: "text" }, [
1610
1618
  h("div", { className: css.rowTitle, key: "title" }, t("update.title")),
1611
1619
  h("div", { className: css.rowDescription, key: "description" }, t("update.description")),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-plugin-notify-sounds",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "description": "Notification sounds for DeepSeek Harness — a soft chime when the agent needs your decision or finishes a task, with a Settings section styled like DSH's own · 需要决策或任务完成时播放提示音,点击系统通知可回到窗口,设置面板可调音量与音效",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",