@linxin666/dsh-client-ui-community-plugins 0.1.19 → 0.2.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/README.i18n.yaml +2 -2
- package/README.md +3 -1
- package/README.zh.md +3 -1
- package/lib/client.js +387 -101
- package/lib/client.js.map +1 -1
- package/lib/index.js +43 -1
- package/package.json +7 -7
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# node scripts/verify-docs.mjs --write <dir>
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: d096b72db93f88ddb1cddbb33b4dd759b50bcceb
|
|
6
|
+
README.zh.md: 379780df2779dd969c35d0dd6d9997b470998da0
|
package/README.md
CHANGED
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
English | [中文](README.zh.md)
|
|
4
4
|
|
|
5
|
-
Community plugin index section for the dsh web GUI settings page: a first-level settings entry (alongside Web UI Plugins, Skin Center and Pet) that opens directly expanded, lists community-contributed plugins
|
|
5
|
+
Community plugin index section for the dsh web GUI settings page: a first-level settings entry (alongside Web UI Plugins, Skin Center and Pet) that opens directly expanded, lists community-contributed plugins in a marketplace-style grid (search box, category filter pills, cards with a one-click copy-install-command button), and carries its own enable switch.
|
|
6
6
|
|
|
7
7
|
## What it does
|
|
8
8
|
|
|
9
9
|
- **First-level section**: registers one settings section next to General / Models / Plugins / Agent presets and the Web UI Plugins, Skin Center and Pet sections. The content renders directly expanded (no disclosure fold), with its own enable switch backed by the community-plugins settings namespace.
|
|
10
|
+
- **Marketplace display**: entries render as a searchable, category-filterable card grid — a search box over names, descriptions and authors, category pills with per-category counts, and a two-column card layout (name, npm/repo marker, a `category · author` meta line, a two-line description, a repository link and a primary copy-install-command button).
|
|
10
11
|
- **Index only**: every entry links to the contributor's own repository; the package never vendors the listed code. The registry lives in community.json and is compiled into the client bundle by scripts/community-index.
|
|
11
12
|
|
|
12
13
|
## Install
|
|
@@ -31,6 +32,7 @@ Restart `dsh web` for the card to appear in the settings page.
|
|
|
31
32
|
## Config
|
|
32
33
|
|
|
33
34
|
- **Enable switch**: inside the Community Plugins first-level section itself (the section carries its own switch). Turning it off hides the index list until it is turned back on; the choice persists in the community-plugins settings namespace.
|
|
35
|
+
- **Category filter**: entries may carry a `category` in community.json — one of the fixed marketplace categories `ui`, `agent`, `tools`, `knowledge`, `integration`, `security` or `utility`. The card renders them as filter pills with counts, plus a search box over names, descriptions and authors; the "npm published / repo install" marker on each card comes from the `npm` field.
|
|
34
36
|
- **Running a listed plugin**: the index only registers entries, it never installs code. Each entry shows its install command (the npm package when published, else the contributor repository URL); run it in a terminal, e.g. `dsh plugin --profile web add <name>`. Once installed, the plugin provides its own switch and config (if any) in the plugin configuration section.
|
|
35
37
|
|
|
36
38
|
## Known limitations
|
package/README.zh.md
CHANGED
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
[English](README.md) | 中文
|
|
4
4
|
|
|
5
|
-
面向 dsh web GUI 设置页的社区插件索引分区:作为一级菜单项(与 Web UI
|
|
5
|
+
面向 dsh web GUI 设置页的社区插件索引分区:作为一级菜单项(与 Web UI 插件、皮肤中心、宠物同级)直接展开,以插件市场风格网格展示社区贡献的插件(搜索框、分类筛选胶囊、带一键复制安装命令按钮的卡片),并配有自己的启用开关。
|
|
6
6
|
|
|
7
7
|
## 功能
|
|
8
8
|
|
|
9
9
|
- **一级菜单项**:在设置页注册一个一级分区,与通用设置 / 模式 / 插件 / Agent 预设以及 Web UI 插件、皮肤中心、宠物同级;内容直接展开(无折叠层),自带启用开关,由 community-plugins 设置命名空间持久化。
|
|
10
|
+
- **市场风格展示**:条目以可搜索、可按分类筛选的卡片网格呈现——按名称 / 简介 / 作者的搜索框、带各分类计数的筛选胶囊,以及双列卡片布局(名称、npm/仓库标记、`分类 · 作者` 元信息行、两行简介、仓库链接与主要的「复制安装命令」按钮)。
|
|
10
11
|
- **只做索引**:每个条目链接到贡献者自己的仓库;本包不打包任何被索引的代码。注册表在 community.json,由 scripts/community-index 编译进客户端 bundle。
|
|
11
12
|
|
|
12
13
|
## 安装
|
|
@@ -31,6 +32,7 @@ dsh plugin --profile web add link:$(pwd)/packages/dsh-community-plugins
|
|
|
31
32
|
## 配置
|
|
32
33
|
|
|
33
34
|
- **启用开关**:位于「社区插件」一级分区自身(分区卡片自带的开关)。关闭后隐藏索引列表,重新打开即恢复;选择持久化在 community-plugins 设置命名空间。
|
|
35
|
+
- **分类筛选**:条目可在 community.json 中带 `category`(固定市场分类之一:`ui`、`agent`、`tools`、`knowledge`、`integration`、`security` 或 `utility`),卡片将它们渲染为带计数的筛选胶囊,并提供按名称 / 简介 / 作者搜索的搜索框;每张卡片上的「npm 已发布 / 仓库安装」标记来自 `npm` 字段。
|
|
34
36
|
- **运行已登记的插件**:索引只登记、不安装代码。每个条目显示安装命令(已发布 npm 用包名,否则用贡献者仓库地址),在终端执行即可,如 `dsh plugin --profile web add <包名>`。安装后,插件自带的开关与配置(若有)出现在插件配置区。
|
|
35
37
|
|
|
36
38
|
## 已知限制
|