dshmarket 1.73.19 → 1.73.20

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.
Files changed (41) hide show
  1. package/README.md +3 -2
  2. package/README.zh.md +3 -2
  3. package/client/client.js +1959 -364
  4. package/lib/body-progress.js +4 -3
  5. package/lib/changelog.js +15 -2
  6. package/lib/discovery-cache.js +210 -0
  7. package/lib/discovery-compatibility.js +91 -93
  8. package/lib/dsh-cli.js +36 -6
  9. package/lib/github-install-target.js +53 -0
  10. package/lib/hot.js +355 -21
  11. package/lib/index.js +6 -5
  12. package/lib/install.js +37 -0
  13. package/lib/patch.js +116 -72
  14. package/lib/pending-rows.js +1 -1
  15. package/lib/pnpm-compat.js +79 -1
  16. package/lib/proc-text.js +16 -1
  17. package/lib/recovery.js +2 -1
  18. package/lib/registry.js +20 -0
  19. package/lib/release-candidates.js +4 -0
  20. package/lib/routes.js +389 -130
  21. package/lib/themes.js +24 -8
  22. package/lib/types/body-progress.d.ts +2 -1
  23. package/lib/types/changelog.d.ts +10 -1
  24. package/lib/types/discovery-cache.d.ts +38 -0
  25. package/lib/types/discovery-compatibility.d.ts +16 -12
  26. package/lib/types/dsh-cli.d.ts +19 -2
  27. package/lib/types/github-install-target.d.ts +11 -0
  28. package/lib/types/hot.d.ts +87 -5
  29. package/lib/types/install.d.ts +19 -0
  30. package/lib/types/patch.d.ts +6 -2
  31. package/lib/types/release-candidates.d.ts +2 -0
  32. package/lib/types/routes.d.ts +2 -2
  33. package/lib/types/themes.d.ts +7 -1
  34. package/lib/types/update-notification-settings.d.ts +5 -0
  35. package/lib/types/update-notifications.d.ts +51 -0
  36. package/lib/types/updates.d.ts +5 -1
  37. package/lib/update-notification-settings.js +6 -0
  38. package/lib/update-notifications.js +166 -0
  39. package/lib/updates.js +41 -11
  40. package/lib/verify.js +5 -2
  41. package/package.json +1 -1
package/README.md CHANGED
@@ -66,18 +66,19 @@ its own dsh: it may be older than the one `npm` would give you (#139).
66
66
 
67
67
  ## What you get
68
68
 
69
- - **Browse & search** the full community catalog (4200+ plugins, growing daily) — category filters, star counts, top/new sorting, bilingual descriptions that follow your UI language
69
+ - **Browse & search** the full community catalog (10,000+ plugins, growing daily) — category filters, star counts, top/new sorting, bilingual descriptions that follow your UI language
70
70
  - **Host-aware discovery** — cards show the DSH requirement declared by `engines.dsh` or lockstep `@deepseek-ai/dsh-*` peers; the compatibility filter hides only confirmed mismatches with the running host. GitHub-only entries read the linked package's manifest, including monorepo subdirectories; Release downloads read the selected release tag, including the current tag behind `latest/download`. Undeclared, malformed or unavailable requirements stay unknown and visible. Public manifest facts are cached; compatibility is evaluated against the running host
71
71
  - **Screenshots** — AppStore-style screenshots, auto-carousel when there's more than one, click to preview full-size: author-curated shots show right on the card (zero extra requests); plugins without curated shots fall back to automatic README extraction once you open the install dialog. Images load from GitHub hosting only
72
72
  - **Comments** — every card opens the plugin's discussion thread in place. It is the same thread its pages on [dshmarket.com](https://dshmarket.com) and the [catalog](https://awesome-dsh-plugin.com) show, so a plugin has one conversation rather than three. Backed by GitHub Discussions through giscus: it loads when you open it, needs a GitHub account only to post, and the note above it says plainly that opening it contacts giscus.app and GitHub. On local dsh web, reading stays embedded while a dedicated GitHub action opens the exact discussion in a new tab for sign-in and posting, so the cross-site return never carries or depends on the host session
73
73
  - **Favorites** — bookmark plugins and themes from Discover or the Themes tab; a dedicated Favorites tab lists them with search, sort, and install actions. Bookmarks persist in the profile's market state (`state.json`); entries that leave the catalog can be cleared in one click
74
- - **Groups** — organise installed plugins into named groups (rename, delete, and per-group search); a plugin lives in one group and ungrouped is the default. A group carries its own switch: all-on, all-off, or the mixed state its members are really in, so a working set can be switched as a unit without touching the rest. A group holds at most one theme. The grouping itself is local state in the profile's `state.json`
74
+ - **Groups** — organise installed plugins into named groups (rename, delete, and per-group search); a plugin lives in one group and ungrouped is the default. **Collapse all / Expand all** folds the whole list at once. A group carries its own switch: all-on, all-off, or the mixed state its members are really in, so a working set can be switched as a unit without touching the rest. A group holds at most one theme. The grouping itself is local state in the profile's `state.json`
75
75
  - **Notes** — write your own one-line description for any installed plugin and it replaces the author's on that row, so a shelf of forty plugins answers "why did I install this" in your words. Stored locally beside groups and favorites, never sent anywhere
76
76
  - **Themes** — a dedicated tab for community themes and skins: install → active immediately, switch with one click (themes are mutually exclusive, your choice survives restarts), uninstall to revert
77
77
  - **One-click install** — confirm the source, watch live progress; most plugins go live after a page refresh, no restart
78
78
  - **Backup & restore** — export your profile's plugin list and configuration as readable JSON, import it on another machine, store it on WebDAV with daily auto-backup, or sync through a private GitHub Gist; restores **merge** (plugins installed after the backup are kept), validate before writing, and roll back on failure
79
79
  - **Updates** — per-plugin update checks (npm version or pinned commit vs HEAD), one-click update, or update everything at once; the market updates itself the same way. A plugin installed from an archive link is updated only through its own source: a catalog entry that merely shares the name is never offered as its update, so updating cannot silently replace it with a different plugin. Each row with an update pending carries a **What changed** link — the release notes, or the commits when the version cannot be aligned to one. A notice you are not acting on can be ignored for the rest of the boot instead of being dismissed again on every reload — scoped to the running host, so a restart brings the reminder back and ignoring it is never the same as turning it off
80
80
  - **Resilient GitHub routes** — in the China download region, Git refs, README content, and avatars each keep their own fallback order. The market remembers the last working route, switches only after transport/HTTP/payload validation fails, and rejects proxy error pages disguised as HTTP 200. If every built-in route fails, **Settings → Plugins → Plugin configuration → GitHub acceleration** accepts one persistent custom HTTPS prefix; `DSHM_GITHUB_PROXY` remains the operator-owned override
81
+ - **Background update reminders** — automatic checks are off by default. When enabled, checks start 30 seconds after the market loads, then repeat every 6 hours, 12 hours, 3 days, or 7 days while Harness is running, even if you stay in chat. The default interval is 6 hours. Supported hosts show a dot on the existing **Plugins** icon for unseen updates. Opening Plugins clears the dot while keeping the update offers available. With browser storage available, seen targets stay quiet across refreshes and restarts of the same profile; a new target can notify again. Older servers remember seen updates for the current boot only. Unsupported hosts keep their original entry without an error or empty placeholder. Review the same results in **Plugin Market → Installed → Update checks**, or change the interval and turn automatic checks on or off there. Choosing an interval does not enable automatic checks. Checks never install or restart anything; failures keep the last confirmed results, and ignored or exempt updates stay quiet. Desktop-managed plugins open their host page. This does not change the host’s own `Updates available` counter.
81
82
  - **Public update API** — plugin-owned settings pages can use the versioned, capability-gated [update API v1](UPDATE-API-V1.md) (beta) instead of copying package-manager logic or depending on private Market UI responses
82
83
  - **Uninstall** — two-step confirm; plugins installed this session are removed live
83
84
  - **Hot disable / enable** — toggles write `- id: …` + `disabled: true|false` into the profile's `cordis.patch.yml` (the official patch layer, mechanism ported from [dsh-plugin-hub](https://github.com/Noob-stupid/dsh-plugin-hub)): DSH's HMR re-composes within ~1s, no restart, and the loader re-applies the choice on every boot; hand-edited patch rows show as badges, host-infrastructure plugins are protected from toggling, and a malformed patch file is never made worse
package/README.zh.md CHANGED
@@ -57,18 +57,19 @@ profile,因此不会出现在桌面端。请通过应用内的 **设置 →
57
57
 
58
58
  ## 你会得到
59
59
 
60
- - **逛与搜**——完整社区目录(4200+ 插件,每天在涨),分类筛选、star 数、最热/最新排序,中英描述跟随界面语言
60
+ - **逛与搜**——完整社区目录(10000+ 插件,每天在涨),分类筛选、star 数、最热/最新排序,中英描述跟随界面语言
61
61
  - **按宿主发现**——卡片展示插件通过 `engines.dsh` 或同版本线 `@deepseek-ai/dsh-*` peer 声明的 DSH 要求;兼容筛选只隐藏与当前宿主明确不匹配的插件。仅 GitHub 发布的条目也会读取链接所指包的清单,支持子目录;Release 下载读取对应标签,`latest/download` 则读取当前发布标签。未声明、格式异常或暂时取不到清单时保持未知并继续显示。公开清单信息会缓存,兼容结论按当前宿主重新判断
62
62
  - **截图展示**——App Store 式截图,多图自动轮播,点开还能看大图;作者在 registry 里策展的截图列表卡片就直接显示(零额外请求),没有策展的插件则在打开安装弹窗时自动从 README 抽取;图片仅从 GitHub 图床加载
63
63
  - **评论**——每张卡片都能就地打开该插件的讨论。它和插件在 [dshmarket.com](https://dshmarket.com) 与[目录站](https://awesome-dsh-plugin.com)上的页面共用同一条讨论,一个插件只有一处对话,而不是三处。底层是 GitHub Discussions(经由 giscus):打开即加载,只有发表评论才需要 GitHub 账号;说明里也直说打开会连接 giscus.app 与 GitHub。本地 dsh web 继续内嵌评论供阅读,登录和发表则通过专用 GitHub 入口在新标签页打开当前插件的精确讨论,不让跨站回跳携带或依赖宿主会话
64
64
  - **收藏**——在「发现」或「主题」页点书签即可收藏插件/主题;「收藏」Tab 集中展示,支持搜索、排序与安装。书签写入 profile 的市场状态(`state.json`);已下架条目可一键清除
65
- - **分组**——把已安装插件整理进具名分组(可重命名、删除,分组内单独搜索);一个插件属于一个分组,默认是「未分组」。每个分组自带开关:全开、全关,或成员当前真实处于的「混合」状态——一组一起开合,不动其余插件。一个分组最多容纳一个主题。分组本身是 profile `state.json` 里的本地状态
65
+ - **分组**——把已安装插件整理进具名分组(可重命名、删除,分组内单独搜索);一个插件属于一个分组,默认是「未分组」。**全部收起 / 全部展开**可以一次折叠整个列表。每个分组自带开关:全开、全关,或成员当前真实处于的「混合」状态——一组一起开合,不动其余插件。一个分组最多容纳一个主题。分组本身是 profile `state.json` 里的本地状态
66
66
  - **备注**——给任何已安装插件写一行你自己的说明,它会在这行**代替作者简介**显示——四十个插件的列表因此能用你自己的话回答「我当初为什么装它」。和分组、收藏一样只存在本地,不上传
67
67
  - **主题**——独立主题页:装完立即生效,点一下切换(主题互斥、选择跨重启保留),卸载即恢复
68
68
  - **一键安装**——确认来源,实时进度;多数插件刷新页面即可用,无需重启
69
69
  - **备份与恢复**——把 profile 的插件清单与配置导出为可读 JSON,换机导入,存到 WebDAV 并每日自动备份,或通过私有 GitHub Gist 跨机器同步;恢复采用**合并**方式(备份之后新装的插件会保留),写入前校验、失败自动回滚
70
70
  - **更新**——逐插件检测(npm 版本或锁定 commit 对比 HEAD),一键更新或全部更新;市场自己也走同一通道升级。从压缩包链接装的插件只认自己的来源:市场里恰好同名的另一个插件不会被当成它的更新,更新也不会悄悄把它换成另一个插件。每个有待更新的行上都有「更新内容」链接——有版本说明就是版本说明,对不上版本时给提交记录。暂时不处理的提醒可以**本次不再提醒**(本次 = 当前宿主进程),重启后提醒会回来——「忽略」永远不等于「关闭」
71
71
  - **GitHub 多线路容错**——中国大陆下载区域会为 Git ref、README 与头像分别维护 fallback 顺序,记住上次可用线路,只在传输、HTTP 状态或响应内容校验失败后换线,并拒绝公共反代伪装成 HTTP 200 的 HTML 错误页。内置线路全部失效时,可到**设置 → 插件 → 插件配置 → GitHub 加速**填写一个持久化的自定义 HTTPS 前缀;运维设置的 `DSHM_GITHUB_PROXY` 始终优先
72
+ - **后台更新提醒**——自动检查默认关闭。开启后,市场加载 30 秒后开始检查;运行期间按所选周期重复检查,停留在聊天页也能发现更新。可选每 6 小时、每 12 小时、每 3 天或每 7 天,默认周期为 6 小时。支持的宿主会在原有 **Plugins/插件** 图标上为尚未查看的更新显示小圆点。进入 Plugins 后圆点消失,更新列表和操作入口仍然保留。浏览器存储可用时,同一配置内的已看版本不会因刷新或重启反复提醒,发现新目标版本时再提示;旧服务端仅记住本次启动期间的已看状态。不支持的宿主保留原入口,不报错、不留空位。在 **插件市场 → 已安装 → 更新检查** 查看同一份结果、选择检查周期或开关自动检查。选择周期不会自动开启检查。检查不会自动安装或重启;失败时保留最近确认的结果,已忽略或豁免的更新保持安静。桌面端托管的插件转到宿主页面操作。此功能不改动宿主自己的 `Updates available` 计数。
72
73
  - **公共更新接口**——插件自己的设置页可调用带版本号、能力探测和回滚状态的[更新 API v1](UPDATE-API-V1.md)(beta),无需复制包管理逻辑,也不依赖市场 UI 的私有响应字段
73
74
  - **卸载**——两步确认防误触;本次会话装的插件即点即卸
74
75
  - **热禁用 / 启用**——开关会往 profile 的 `cordis.patch.yml`(官方补丁层,机制移植自 [dsh-plugin-hub](https://github.com/Noob-stupid/dsh-plugin-hub))写入 `- id: …` + `disabled: true|false`:DSH 的 HMR 约 1 秒内重新组合,无需重启,loader 每次启动都会重新应用这个选择;手工改过的补丁行会显示成徽标,宿主基础设施插件禁止开关,补丁文件格式不对时绝不会被写得更糟