@dsh-libing/market-catalog 0.1.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/CHANGELOG.md +6 -0
- package/README.md +9 -0
- package/catalog.json +45 -0
- package/package.json +25 -0
package/CHANGELOG.md
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# @dsh-libing/market-catalog
|
|
2
|
+
|
|
3
|
+
机器目录通过 `@dsh-libing/market-catalog/catalog.json` 导出,也可由 registry/CDN 直接读取。它是数据包,不是可安装的 DSH 插件。
|
|
4
|
+
|
|
5
|
+
`schemaVersion` 表示目录格式,`version` 跟随本包版本,`dshVersion` 表示验证基线。`plugins` 按包名排序,每项包含 npm 包名、精确版本、说明及插件 `dsh.market` 元数据。元数据源是 `plugins/*/package.json` 及其声明的图标文件;运行 `pnpm catalog:generate` 更新目录,`pnpm verify` 拒绝过期内容。插件变更后先发布插件包,再发布新版本目录包,避免目录指向不存在的 npm 版本。
|
|
6
|
+
|
|
7
|
+
`dsh.market.icon` 可选,指向插件根目录的 SVG/PNG 文件(1 字节至 64 KiB,必须包含在 `files` 中)。生成器保留 `icon` 路径,并生成 `iconDataUrl`,市场用 `<img>` 展示内嵌图片。本地与 npm 模式均无需单独请求图标。未声明图标的插件仍可展示。
|
|
8
|
+
|
|
9
|
+
当前 `0.1.0` 收录 hello 与 market,尚未发布。Web 市场首版消费该格式,支持 npm registry 与显式本地文件两种目录源。
|
package/catalog.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"dshVersion": "0.2.0-rc.2",
|
|
5
|
+
"plugins": [
|
|
6
|
+
{
|
|
7
|
+
"name": "@dsh-libing/hello",
|
|
8
|
+
"version": "0.1.0",
|
|
9
|
+
"description": "DSH TypeScript 示例插件:注册 libing_hello 问候工具",
|
|
10
|
+
"displayName": {
|
|
11
|
+
"zh": "问候示例",
|
|
12
|
+
"en": "Hello example"
|
|
13
|
+
},
|
|
14
|
+
"category": "examples",
|
|
15
|
+
"maintainers": [
|
|
16
|
+
"@lujinxing"
|
|
17
|
+
],
|
|
18
|
+
"compatibility": {
|
|
19
|
+
"dsh": "0.2.0-rc.2"
|
|
20
|
+
},
|
|
21
|
+
"allowedBuilds": [],
|
|
22
|
+
"icon": "icon.svg",
|
|
23
|
+
"iconDataUrl": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCIgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIiBzdHJva2U9IiM0Nzc4ZTgiIHN0cm9rZS13aWR0aD0iMS4yNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj4KICA8cGF0aCBkPSJNMTIuNiAxLjg1SDMuNEEyLjE1IDIuMTUgMCAwIDAgMS4yNSA0djYuMjVBMi4xNSAyLjE1IDAgMCAwIDMuNCAxMi40aDEuN3YyLjM1bDMuMTUtMi4zNWg0LjM1YTIuMTUgMi4xNSAwIDAgMCAyLjE1LTIuMTVWNGEyLjE1IDIuMTUgMCAwIDAtMi4xNS0yLjE1WiIvPgogIDxjaXJjbGUgY3g9IjUuNTUiIGN5PSI1Ljc1IiByPSIuNjUiIGZpbGw9IiM0Nzc4ZTgiIHN0cm9rZT0ibm9uZSIvPgogIDxjaXJjbGUgY3g9IjEwLjQ1IiBjeT0iNS43NSIgcj0iLjY1IiBmaWxsPSIjNDc3OGU4IiBzdHJva2U9Im5vbmUiLz4KICA8cGF0aCBkPSJNNS4zNSA4LjI1YTMgMyAwIDAgMCA1LjMgMCIvPgo8L3N2Zz4K"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "@dsh-libing/market",
|
|
27
|
+
"version": "0.1.0",
|
|
28
|
+
"description": "dsh-libing 插件市场:浏览、安装、更新与卸载当前 profile 的插件",
|
|
29
|
+
"displayName": {
|
|
30
|
+
"zh": "LiBing 插件市场",
|
|
31
|
+
"en": "LiBing Plugin Market"
|
|
32
|
+
},
|
|
33
|
+
"category": "market",
|
|
34
|
+
"maintainers": [
|
|
35
|
+
"@lujinxing"
|
|
36
|
+
],
|
|
37
|
+
"compatibility": {
|
|
38
|
+
"dsh": "0.2.0-rc.2"
|
|
39
|
+
},
|
|
40
|
+
"allowedBuilds": [],
|
|
41
|
+
"icon": "icon.svg",
|
|
42
|
+
"iconDataUrl": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCIgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIiBzdHJva2U9IiM0Nzc4ZTgiIHN0cm9rZS13aWR0aD0iMS4yNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj4KICA8cGF0aCBkPSJNMi4zNSA1LjV2OC45aDExLjNWNS41Ii8+CiAgPHBhdGggZD0iTTEuMjUgNS41IDIuODUgMS42aDEwLjNsMS42IDMuOUgxLjI1WiIvPgogIDxwYXRoIGQ9Im00LjcgNS41LjU1LTMuOW02LjA1IDMuOS0uNTUtMy45Ii8+CiAgPHJlY3QgeD0iNC4xIiB5PSI4LjEiIHdpZHRoPSIzLjQ1IiBoZWlnaHQ9IjMuNiIgcng9Ii4zNSIvPgogIDxwYXRoIGQ9Ik01LjgyNSA4LjF2My42TTQuMSA5LjloMy40NU05LjcgMTQuNFY4LjFoMi4xNSIvPgo8L3N2Zz4K"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dsh-libing/market-catalog",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "dsh-libing 插件市场机器目录",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
"./catalog.json": "./catalog.json",
|
|
8
|
+
"./package.json": "./package.json"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"catalog.json",
|
|
12
|
+
"README.md",
|
|
13
|
+
"CHANGELOG.md"
|
|
14
|
+
],
|
|
15
|
+
"license": "UNLICENSED",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://gitcode.com/LiBing-DSH/dsh-libing.git",
|
|
19
|
+
"directory": "packages/market-catalog"
|
|
20
|
+
},
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public",
|
|
23
|
+
"registry": "https://registry.npmjs.org/"
|
|
24
|
+
}
|
|
25
|
+
}
|