dsh-plugin-marketplace 0.4.1 → 0.5.0
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/LICENSE +21 -21
- package/README.md +11 -94
- package/README.zh.md +10 -97
- package/VERIFICATION.md +7 -0
- package/client.js +573 -489
- package/index.js +150 -278
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/management.js +171 -0
- package/package.json +85 -78
- package/runtime.js +87 -82
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Scorp1o117
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Scorp1o117
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,106 +1,23 @@
|
|
|
1
1
|
# dsh-plugin-marketplace
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Browse GitHub's dsh-plugin topic and manage plugins in the active DSH Web or Desktop profile. Version 0.5.0 requires DSH 0.2.0-rc.2 or later 0.2.x.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
- The UI shows progress while awaiting Host acknowledgement, and an error after 15 seconds without acknowledgement. This does not cap installation or model response time.
|
|
8
|
-
- Update to this release and restart DSH. Repositories without a matching npm package still return an explicit installation error.
|
|
9
|
-
|
|
10
|
-
## Configuration page (DSH 0.2.0-rc.2 and later)
|
|
11
|
-
|
|
12
|
-
Open **Plugins → Installed → dsh-plugin-marketplace** from the homepage sidebar to configure and save this plugin. The page uses the official `plugins.bundle.config` interface, without a duplicate entry in global Settings. Web and Desktop share the page. This version requires DSH 0.2.0-rc.2 or a later 0.2.x host; existing configuration is retained.
|
|
13
|
-
|
|
14
|
-
[](README.zh.md)
|
|
15
|
-
|
|
16
|
-
**GitHub**: [Scorp1o117/dsh-plugin-marketplace](https://github.com/Scorp1o117/dsh-plugin-marketplace) · **npm**: [dsh-plugin-marketplace](https://www.npmjs.com/package/dsh-plugin-marketplace)
|
|
17
|
-
|
|
18
|
-
[](https://github.com/Scorp1o117/dsh-enhancement-suite) [](https://www.npmjs.com/package/dsh-enhancement-suite)
|
|
19
|
-
|
|
20
|
-
Part of the [DeepSeek Harness Enhancement Suite](https://github.com/Scorp1o117/dsh-enhancement-suite) — Vision · Soul/Persona · Long-term Memory · Plugin Marketplace.
|
|
21
|
-
|
|
22
|
-
A **plugin marketplace** inside the DeepSeek Harness Web UI: browse
|
|
23
|
-
[github.com/topics/dsh-plugin](https://github.com/topics/dsh-plugin) right
|
|
24
|
-
from the settings page — no terminal needed.
|
|
25
|
-
|
|
26
|
-
- **Search** the topic by keyword, **sort** by stars or last update
|
|
27
|
-
- **Plugin cards** with description, stars, language, and update date
|
|
28
|
-
- **Detail panel**: GitHub README summary, install command, repo/npm links
|
|
29
|
-
- **AI explain**: one click asks the configured default model what a plugin
|
|
30
|
-
roughly does, answered in the UI — no need to read the README yourself
|
|
31
|
-
- Powered by the public GitHub search API (CORS-enabled, no key needed;
|
|
32
|
-
unauthenticated rate limit 60 req/h)
|
|
33
|
-
- Zero client dependencies (React only), no build step — hand-written
|
|
34
|
-
ModuleLoader bundle
|
|
35
|
-
|
|
36
|
-
## Compatibility (v0.3.7)
|
|
37
|
-
|
|
38
|
-
Verified with DSH `0.1.7-rc.2` (Web) and `0.2.0-rc.2` (Desktop runtime) in isolated profiles. The Desktop app uses its own `desktop` profile. Other DSH prereleases remain unverified.
|
|
39
|
-
|
|
40
|
-
## Desktop install
|
|
41
|
-
|
|
42
|
-
Use the Desktop-installed `dsh` command (Application → Manage dsh Command), or the app’s Plugins page. Then install into the Desktop profile:
|
|
43
|
-
|
|
44
|
-
```powershell
|
|
45
|
-
dsh plugin --profile desktop add dsh-plugin-marketplace@0.3.7
|
|
5
|
+
```sh
|
|
6
|
+
dsh plugin --profile desktop add dsh-plugin-marketplace@0.5.0
|
|
46
7
|
```
|
|
47
8
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
## Install
|
|
52
|
-
|
|
53
|
-
As a profile bundle (recommended):
|
|
54
|
-
|
|
55
|
-
```
|
|
56
|
-
dsh plugin --profile web add dsh-plugin-marketplace
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
or via the package's `dsh.bundle.patch` layer — add `dsh-plugin-marketplace`
|
|
60
|
-
to `dsh.profile.bundles` in `$DSH_HOME/profiles/web/package.json`.
|
|
61
|
-
|
|
62
|
-
Manual mount in `$DSH_HOME/profiles/web/cordis.patch.yml`:
|
|
63
|
-
|
|
64
|
-
```yaml
|
|
65
|
-
- insert:
|
|
66
|
-
- id: plugin-marketplace
|
|
67
|
-
name: 'dsh-plugin-marketplace'
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
> **Upgrading from ≤ 0.2.2?** If you previously mounted the plugin manually,
|
|
71
|
-
> **remove that row from `cordis.patch.yml`** before switching to the bundle
|
|
72
|
-
> install — the bundle layer already inserts the entry, and two entries with
|
|
73
|
-
> the same id abort boot with `duplicate loader entry id: plugin-marketplace`.
|
|
74
|
-
> The two ways are alternatives, not both.
|
|
75
|
-
|
|
76
|
-
Then restart `dsh web` (new client plugins require a process restart to be
|
|
77
|
-
scanned into the browser roster) and open **Settings → Plugin Marketplace**.
|
|
78
|
-
|
|
79
|
-
Version 0.3.7 uses DSH's `configForms` client service and Profile patch
|
|
80
|
-
settings. Use an older plugin release with older DSH hosts.
|
|
81
|
-
Note: when dsh web is opened from a non-loopback origin (a LAN IP, say), DSH
|
|
82
|
-
keeps settings writes process-local, so install / AI-explain requests never
|
|
83
|
-
reach the host.
|
|
9
|
+
Use the Desktop-provided dsh command (Application → Manage dsh Command); use --profile web for Web. Restart DSH, then open **Plugins → Installed → dsh-plugin-marketplace**.
|
|
84
10
|
|
|
85
|
-
##
|
|
11
|
+
## Plugin management
|
|
86
12
|
|
|
87
|
-
|
|
88
|
-
|---|---|---|
|
|
89
|
-
| host shell | `index.js` | settings-backed install + AI-explain flows; `dsh.bundle.patch` makes the package a proper profile bundle |
|
|
90
|
-
| browser half | `client.js` | registers the `settings.section` "marketplace" tab; fetches GitHub search API; renders cards + detail; "AI explain" button |
|
|
91
|
-
| manifest | `package.json` | `dsh.bundle: { patch: "./cordis.patch.yml" }` + `dsh.client: { platform: "web" }` + `exports["./client"]` — discovered by `dsh-client-modules` |
|
|
13
|
+
The configuration page lists the active profile's direct dependencies and built-in bundles. Enter an npm package name (including scoped names) to install, update individual installed packages to latest, refresh the list, or uninstall with an inline confirmation. Updates explicitly resolve package@latest, including dependencies pinned to an older version. Built-in bundles are listed as managed by DSH and cannot be overwritten or removed here. Transitive libraries are not independent profile plugins.
|
|
92
14
|
|
|
93
|
-
|
|
94
|
-
(provided by the web runtime) and the `slots` / `locale` client services.
|
|
15
|
+
Operations use the official CLI carried by the current Host. Desktop uses its bundled Electron CLI and package manager with its own profile; it does not invoke the global Web CLI or the Desktop Host entry as a CLI. Operations are serialized across the suite and marketplace. Results refresh the actual installed inventory; a failed batch reports its failure and any partial installed state. Restart DSH after package changes, including updating or uninstalling this marketplace itself.
|
|
95
16
|
|
|
96
|
-
|
|
17
|
+
Bundle registration/removal is reconciled by DSH. Legacy manual mounts and their configuration patches are removed structurally on uninstall. Unrelated YAML configuration and comments are preserved. Settings requests are acknowledged outside HMR and consumed once; pending work is cancelled on unload.
|
|
97
18
|
|
|
98
|
-
|
|
99
|
-
280+ repos, so paging covers everything.
|
|
100
|
-
- READMEs are fetched per plugin on demand and truncated to ~1200 chars.
|
|
101
|
-
- If you see "rate-limited", wait an hour or run the web through a proxy that
|
|
102
|
-
adds a GitHub token.
|
|
19
|
+
The GitHub browser retains explicit search, star/update sorting, README previews and AI explanations using the configured model. Package names inferred from repository names should be checked against the author's installation instructions; the management form also accepts an explicit npm name. Both Chinese and English follow the DSH language setting.
|
|
103
20
|
|
|
104
|
-
##
|
|
21
|
+
## Validation
|
|
105
22
|
|
|
106
|
-
|
|
23
|
+
npm test covers Desktop CLI routing, state writes, HMR, localization, pinned updates, uninstall cleanup, built-in protection, failed operations and serialization.
|
package/README.zh.md
CHANGED
|
@@ -1,108 +1,21 @@
|
|
|
1
1
|
# dsh-plugin-marketplace
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
浏览 GitHub 的 dsh-plugin 插件,同时管理当前 DSH Web / Desktop Profile 的插件。0.5.0 需要 DSH 0.2.0-rc.2 或后续 0.2.x。
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
- UI 在等待宿主确认时显示进度;15 秒未确认会显示错误。此超时只针对请求确认,不限制实际安装或模型响应时间。
|
|
8
|
-
- 需要更新到本版本并重启 DSH。GitHub 仓库没有同名 npm 包时,安装仍会明确报错。
|
|
9
|
-
|
|
10
|
-
## 配置入口(DSH 0.2.0-rc.2 起)
|
|
11
|
-
|
|
12
|
-
在首页侧边栏打开 **插件 → 已安装 → dsh-plugin-marketplace**,直接在插件详情页配置并保存。配置页注册到官方的 `plugins.bundle.config` 接口;全局设置页不再重复显示配置入口。Web 与桌面版使用相同界面,本版要求 DSH 0.2.0-rc.2 或更新的 0.2.x 版本。现有配置无需迁移。
|
|
13
|
-
|
|
14
|
-
**GitHub**: [Scorp1o117/dsh-plugin-marketplace](https://github.com/Scorp1o117/dsh-plugin-marketplace) · **npm**: [dsh-plugin-marketplace](https://www.npmjs.com/package/dsh-plugin-marketplace) · [English](README.md)
|
|
15
|
-
|
|
16
|
-
[](https://github.com/Scorp1o117/dsh-enhancement-suite) [](https://www.npmjs.com/package/dsh-enhancement-suite)
|
|
17
|
-
|
|
18
|
-
属于 [DeepSeek Harness Enhancement Suite](https://github.com/Scorp1o117/dsh-enhancement-suite) —— Vision · Soul/Persona · 长期记忆 · 插件市场。
|
|
19
|
-
|
|
20
|
-
在 DeepSeek Harness **Web UI 里内置的插件市场**:直接在设置页浏览
|
|
21
|
-
[github.com/topics/dsh-plugin](https://github.com/topics/dsh-plugin),无需打开终端。
|
|
22
|
-
|
|
23
|
-
- **搜索**:按关键词搜索主题下的插件,按 Star 或更新时间**排序**
|
|
24
|
-
- **插件卡片**:名称、简介、Star 数、语言、更新时间一目了然
|
|
25
|
-
- **详情面板**:GitHub README 摘要、安装命令、仓库 / npm 链接
|
|
26
|
-
- **AI 解释**:一键调用已配置的默认模型,用中文直接告诉你这个插件大概是干嘛的,不用自己啃 README
|
|
27
|
-
- 基于 GitHub 公开搜索 API(浏览器 CORS 直连,无需密钥;未认证限流 60 次/小时)
|
|
28
|
-
- 零客户端依赖(只用 React),无构建步骤 —— 手写 ModuleLoader bundle
|
|
29
|
-
|
|
30
|
-
## 兼容性(v0.3.7)
|
|
31
|
-
|
|
32
|
-
已在 DSH `0.1.7-rc.2`(Web)与 `0.2.0-rc.2`(桌面端运行时)的一次性 Profile 验证。桌面端使用独立的 `desktop` Profile;其他预发布版本暂未验证。
|
|
33
|
-
|
|
34
|
-
## 桌面端安装
|
|
35
|
-
|
|
36
|
-
在桌面端的“插件”页面安装,或使用桌面端“应用 → 管理 dsh 命令”注册的命令:
|
|
37
|
-
|
|
38
|
-
```powershell
|
|
39
|
-
dsh plugin --profile desktop add dsh-plugin-marketplace@0.3.7
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
重启桌面端以加载客户端插件。配置位于 `$DSH_HOME/profiles/desktop`。
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
## 安装
|
|
46
|
-
|
|
47
|
-
作为 profile bundle 安装(推荐):
|
|
48
|
-
|
|
49
|
-
```
|
|
50
|
-
dsh plugin --profile web add dsh-plugin-marketplace
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
或通过包的 `dsh.bundle.patch` 层:把 `dsh-plugin-marketplace` 加进
|
|
54
|
-
`$DSH_HOME/profiles/web/package.json` 的 `dsh.profile.bundles`。
|
|
55
|
-
|
|
56
|
-
手动挂载(`$DSH_HOME/profiles/web/cordis.patch.yml`):
|
|
57
|
-
|
|
58
|
-
```yaml
|
|
59
|
-
- insert:
|
|
60
|
-
- id: plugin-marketplace
|
|
61
|
-
name: 'dsh-plugin-marketplace'
|
|
5
|
+
```sh
|
|
6
|
+
dsh plugin --profile desktop add dsh-plugin-marketplace@0.5.0
|
|
62
7
|
```
|
|
63
8
|
|
|
64
|
-
|
|
65
|
-
> `cordis.patch.yml` 里那一行**——bundle 层自己会插入条目,两行同 id 会让启动
|
|
66
|
-
> 直接报 `duplicate loader entry id: plugin-marketplace`。两种方式二选一,别同时用。
|
|
67
|
-
|
|
68
|
-
然后重启 `dsh web`(新客户端插件需要重启进程才会被扫描进浏览器清单),打开 **插件 → dsh-plugin-marketplace**。
|
|
69
|
-
|
|
70
|
-
DSH `0.1.0-rc.7` 起会公开全部已注册的 settings 命名空间,插件市场无需再修改官方文件。
|
|
71
|
-
因此从 `0.2.8` 起最低支持 DSH `0.1.0-rc.7`。仍使用 DSH `0.1.0-rc.6` 的用户
|
|
72
|
-
请锁定 `dsh-plugin-marketplace@0.2.6`;这是最后一个包含旧 settings 白名单兼容
|
|
73
|
-
补丁的版本。
|
|
74
|
-
|
|
75
|
-
DSH `0.1.2-rc.1` 移除了客户端的 `connection.api`(旧 settings RPC 入口),
|
|
76
|
-
`0.3.1` 起改用 `settingsScope` 自带的 `mutate` 写入(`0.1.2-rc.1` 之前的主机仍走
|
|
77
|
-
旧通道)。注意:非本机回环(如局域网 IP)访问 dsh web 时,DSH 的设置写入是
|
|
78
|
-
进程本地的,安装 / AI 解释请求不会到达宿主。
|
|
79
|
-
|
|
80
|
-
## 实现方式
|
|
81
|
-
|
|
82
|
-
| 层 | 文件 | 作用 |
|
|
83
|
-
|---|---|---|
|
|
84
|
-
| 服务端壳 | `index.js` | settings 通道的安装 + AI 解释流程;`dsh.bundle.patch` 让包成为标准 profile bundle |
|
|
85
|
-
| 浏览器端 | `client.js` | 注册 `settings.section` 的 "marketplace" 分区;调用 GitHub 搜索 API;渲染卡片 + 详情;"AI 解释"按钮 |
|
|
86
|
-
| 清单 | `package.json` | `dsh.bundle: { patch: "./cordis.patch.yml" }` + `dsh.client: { platform: "web" }` + `exports["./client"]` —— 被 `dsh-client-modules` 扫描发现 |
|
|
87
|
-
|
|
88
|
-
浏览器端不需要任何 `dsh.client.inject` 依赖包:只用 `react`(web 运行时自带)和 `slots` / `locale` 客户端服务。
|
|
89
|
-
|
|
90
|
-
## v0.3.3:写入改为校验而非假定
|
|
9
|
+
使用 Desktop 提供的 dsh 命令(应用 → 管理 dsh 命令);Web 改用 --profile web。重启后打开 **插件 → 已安装 → dsh-plugin-marketplace** 配置页。
|
|
91
10
|
|
|
92
|
-
|
|
93
|
-
但 scope 的契约是「完成写入与恢复读取后结算」,**被宿主以 `settings/conflict` 拒绝的
|
|
94
|
-
写入同样会 resolve**——而拒绝之后命名空间依然注册着,恢复读取也会把它重新渲染成
|
|
95
|
-
`ready`,所以这个检查恒真,被拒的写入会被报成成功。
|
|
11
|
+
## 插件管理
|
|
96
12
|
|
|
97
|
-
|
|
98
|
-
真的代表写入没生效。
|
|
13
|
+
展示当前 Profile 的直接依赖与内置 bundle。输入 npm 包名(支持 @scope/name)即可安装;每个已安装插件可以更新到最新版或二次确认卸载,还可刷新列表。更新明确安装 package@latest,能跨过旧版本锁定。内置 bundle 标明由 DSH 自身管理,不能在此覆盖或卸载。间接依赖库不作为独立插件显示。
|
|
99
14
|
|
|
100
|
-
|
|
15
|
+
Desktop 使用当前宿主携带的 Electron CLI、包管理器与 Desktop Profile。套件和市场的操作按 Profile 串行执行;操作后重新读取真实安装状态,失败时展示错误与部分完成的状态。安装、更新、卸载后需要重启 DSH;市场自身更新或卸载也适用。
|
|
101
16
|
|
|
102
|
-
|
|
103
|
-
- README 按需按插件拉取,截断到约 1200 字符。
|
|
104
|
-
- 遇到 "rate-limited":等一小时,或让 web 走带 GitHub token 的代理。
|
|
17
|
+
DSH 负责 bundle 的挂载与移除;卸载旧式插件时会结构化清理手动挂载及其配置补丁,保留其它 YAML 配置和注释。设置请求在 HMR 事务外消费,并在卸载插件后取消待处理工作。
|
|
105
18
|
|
|
106
|
-
|
|
19
|
+
保留关键词搜索、Star / 更新时间排序、README 预览和使用当前模型的 AI 解释。仓库名未必等于 npm 包名,请核对作者说明;也可直接在管理表单输入实际包名。中英文跟随 DSH。
|
|
107
20
|
|
|
108
|
-
|
|
21
|
+
运行 npm test 验证 Desktop 路径、HMR、版本更新、卸载清理、内置保护、失败行为与串行执行。
|
package/VERIFICATION.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# v0.5.0 validation — 2026-10-12
|
|
2
|
+
|
|
3
|
+
- Full npm test passed (25 tests), including pinned-version update arguments, structural YAML cleanup, failed operations, built-in protection, HMR and profile serialization.
|
|
4
|
+
- npm pack contents include management.js, runtime.js, client.js, locale metadata and bundle patch.
|
|
5
|
+
- Installed tarballs through the real Desktop bundled CLI in an isolated profile and started them using the installed Desktop 0.2.0-rc.2 runtime.
|
|
6
|
+
- Settings-channel refresh, invalid-package rejection, installation, update and uninstall of dsh-motion-ui all reached the expected real installed state.
|
|
7
|
+
- Browser showed the active Desktop inventory, explicit npm-name input, update/uninstall controls and protected built-in bundles.
|