dsh-plugin-discovery 0.0.0-stage → 1.0.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 -0
- package/README.md +70 -3
- package/client.js +1409 -0
- package/cordis.patch.yml +10 -0
- package/docs/articles/csdn.md +59 -0
- package/docs/articles/juejin.md +52 -0
- package/docs/articles/zhihu.md +50 -0
- package/docs/images/discover-installed.jpg +0 -0
- package/docs/images/discover-search.png +0 -0
- package/docs/images/discover-status.jpg +0 -0
- package/icon.svg +5 -0
- package/index.js +528 -0
- package/locale/en.json +22 -0
- package/locale/zh.json +22 -0
- package/mark-remote.js +48 -0
- package/package.json +70 -6
- package/skill/SKILL.md +24 -0
package/skill/SKILL.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dsh-plugin-discovery
|
|
3
|
+
description: >
|
|
4
|
+
当用户要在网上找 DSH 社区插件(桌宠、壁纸、非官方 bundle 等):使用 dsh-plugin-discovery。
|
|
5
|
+
通过 GitHub/npm 联网搜索,用 pluginManager.inspect 校验 bundle 后再 installBundle 安装。
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# 发现插件(dsh-plugin-discovery)
|
|
9
|
+
|
|
10
|
+
## 何时使用
|
|
11
|
+
|
|
12
|
+
用户想找 / 安装非官方 DSH 社区 Bundle(例如桌宠、主题、工具类插件)时使用本能力。
|
|
13
|
+
|
|
14
|
+
## 步骤
|
|
15
|
+
|
|
16
|
+
1. 安装 bundle:`dsh-plugin-discovery`(npm)或 `github:hjhcos/dsh-plugin-discovery`。
|
|
17
|
+
2. 用关键词搜索或解析完整链接,得到候选 install spec。
|
|
18
|
+
3. 仅当 `inspect` 表明 `bundle: true` 时再 `installBundle`;UI 的安装按钮已走同一流程。
|
|
19
|
+
4. 安装完成后引导用户到「插件」页确认状态。
|
|
20
|
+
|
|
21
|
+
## 注意
|
|
22
|
+
|
|
23
|
+
- 社区插件非官方维护,安装前应提示用户自行审阅仓库。
|
|
24
|
+
- 不同来源的同名短包(如 `dsh-pet` 与 `@scope/dsh-pet`)按精确包名区分安装态。
|