dsh-plugin-marketplace 0.1.0 → 0.1.1

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
@@ -1,5 +1,9 @@
1
1
  # dsh-plugin-marketplace
2
2
 
3
+ [![中文文档](https://img.shields.io/badge/%E4%B8%AD%E6%96%87%E6%96%87%E6%A1%A3-blue)](README.zh.md)
4
+
5
+ **GitHub**: [Scorp1o117/dsh-plugin-marketplace](https://github.com/Scorp1o117/dsh-plugin-marketplace) · **npm**: [dsh-plugin-marketplace](https://www.npmjs.com/package/dsh-plugin-marketplace)
6
+
3
7
  A **plugin marketplace** inside the DeepSeek Harness Web UI: browse
4
8
  [github.com/topics/dsh-plugin](https://github.com/topics/dsh-plugin) right
5
9
  from the settings page — no terminal needed.
package/README.zh.md ADDED
@@ -0,0 +1,44 @@
1
+ # dsh-plugin-marketplace
2
+
3
+ **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)
4
+
5
+ 在 DeepSeek Harness **Web UI 里内置的插件市场**:直接在设置页浏览
6
+ [github.com/topics/dsh-plugin](https://github.com/topics/dsh-plugin),无需打开终端。
7
+
8
+ - **搜索**:按关键词搜索主题下的插件,按 Star 或更新时间**排序**
9
+ - **插件卡片**:名称、简介、Star 数、语言、更新时间一目了然
10
+ - **详情面板**:GitHub README 摘要、安装命令、仓库 / npm 链接
11
+ - 基于 GitHub 公开搜索 API(浏览器 CORS 直连,无需密钥;未认证限流 60 次/小时)
12
+ - 零客户端依赖(只用 React),无构建步骤 —— 手写 ModuleLoader bundle
13
+
14
+ ## 安装
15
+
16
+ 在 `$DSH_HOME/profiles/web/cordis.patch.yml` 里:
17
+
18
+ ```yaml
19
+ - insert:
20
+ - id: plugin-marketplace
21
+ name: 'dsh-plugin-marketplace'
22
+ ```
23
+
24
+ 然后重启 `dsh web`(新客户端插件需要重启进程才会被扫描进浏览器清单),打开 **设置 → 插件市场**。
25
+
26
+ ## 实现方式
27
+
28
+ | 层 | 文件 | 作用 |
29
+ |---|---|---|
30
+ | 服务端壳 | `index.js` | 空 apply —— 让包成为 loader entry |
31
+ | 浏览器端 | `client.js` | 注册 `settings.section` 的 "marketplace" 分区;调用 GitHub 搜索 API;渲染卡片 + 详情 |
32
+ | 清单 | `package.json` | `dsh.client: { platform: "web" }` + `exports["./client"]` —— 被 `dsh-client-modules` 扫描发现 |
33
+
34
+ 浏览器端不需要任何 `dsh.client.inject` 依赖包:只用 `react`(web 运行时自带)和 `slots` / `locale` 客户端服务。
35
+
36
+ ## 备注
37
+
38
+ - GitHub 搜索 API 最多返回 1000 条;该主题目前有 280+ 仓库,翻页可以覆盖全部。
39
+ - README 按需按插件拉取,截断到约 1200 字符。
40
+ - 遇到 "rate-limited":等一小时,或让 web 走带 GitHub token 的代理。
41
+
42
+ ## License
43
+
44
+ MIT
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-plugin-marketplace",
3
- "version": "0.1.0",
4
- "description": "Plugin marketplace for DeepSeek Harness Web UI: browse github.com/topics/dsh-plugin right inside the settings page — search, sort by stars, and view install instructions.",
3
+ "version": "0.1.1",
4
+ "description": "DeepSeek Harness Web UI 内置插件市场:在设置页直接浏览 github.com/topics/dsh-plugin,支持搜索、按 Star 排序、查看安装方式。",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "exports": {
@@ -18,8 +18,10 @@
18
18
  "index.js",
19
19
  "client.js",
20
20
  "README.md",
21
+ "README.zh.md",
21
22
  "LICENSE"
22
23
  ],
24
+ "homepage": "https://github.com/Scorp1o117/dsh-plugin-marketplace",
23
25
  "keywords": [
24
26
  "dsh",
25
27
  "dsh-plugin",