universal-plugin-hub 1.0.5 → 1.0.6
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 +2 -0
- package/README.zh.md +2 -0
- package/package.json +1 -1
- package/src/parser.js +3 -3
package/README.md
CHANGED
|
@@ -74,6 +74,8 @@ After installing a plugin with Skills or Commands, find its skills in the DSH co
|
|
|
74
74
|
| Codex plugin | `.codex-plugin/plugin.json` |
|
|
75
75
|
| Agent Skills | A `SKILL.md` file, a skill directory, or a collection of skill directories |
|
|
76
76
|
|
|
77
|
+
When a plugin or marketplace includes both Claude and Codex descriptors, the Claude format takes precedence.
|
|
78
|
+
|
|
77
79
|
File uploads accept `.zip`, `.tgz`, `.tar.gz`, and `SKILL.md`, up to 22 MB per upload. Larger archives can be extracted and imported through a directory path. Import the complete directory or archive for skills with scripts or other resources so relative paths remain usable.
|
|
78
80
|
|
|
79
81
|
## Data and directory layout
|
package/README.zh.md
CHANGED
|
@@ -74,6 +74,8 @@ dsh plugin add universal-plugin-hub
|
|
|
74
74
|
| Codex 插件 | `.codex-plugin/plugin.json` |
|
|
75
75
|
| Agent Skills | `SKILL.md` 文件、技能目录或多个技能目录组成的集合 |
|
|
76
76
|
|
|
77
|
+
同一插件或插件市场同时包含 Claude 与 Codex 描述文件时,优先按 Claude 规范解析。
|
|
78
|
+
|
|
77
79
|
文件上传支持 `.zip`、`.tgz`、`.tar.gz` 和 `SKILL.md`,单次上传上限为 22 MB。较大的压缩包可以解压后通过目录路径导入。含脚本或其他资源的技能请导入完整目录或压缩包,以保留可用的相对路径。
|
|
78
80
|
|
|
79
81
|
## 本地数据与目录结构
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"title": "Universal Plugin Hub",
|
|
4
4
|
"displayName": "Universal Plugin Hub",
|
|
5
5
|
"description": "DSH 插件市场:安装 Claude Code 与 Codex 插件、Skills 和命令,接入子代理、MCP、Hooks 与 LSP。",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.6",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "src/index.js",
|
|
9
9
|
"license": "MIT",
|
package/src/parser.js
CHANGED
|
@@ -181,8 +181,8 @@ export function parsePluginRowFromDir(entryDir, fallbackName, sourceId) {
|
|
|
181
181
|
export function parseMarketplaceFromDisk(sourceId, cache) {
|
|
182
182
|
// 1. Check Multi-Plugin Manifest Candidates
|
|
183
183
|
const manifestCandidates = [
|
|
184
|
-
join(cache, '.agents', 'plugins', 'marketplace.json'),
|
|
185
184
|
join(cache, '.claude-plugin', 'marketplace.json'),
|
|
185
|
+
join(cache, '.agents', 'plugins', 'marketplace.json'),
|
|
186
186
|
join(cache, 'marketplace.json'),
|
|
187
187
|
join(cache, 'claude-plugins.json'),
|
|
188
188
|
join(cache, 'registry.json'),
|
|
@@ -401,7 +401,7 @@ export function pluginContentDir(sourceId, pluginName, source, preferInstalled =
|
|
|
401
401
|
return existsSync(fallback) ? fallback : null
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
-
/** Read
|
|
404
|
+
/** Read plugin metadata with Claude precedence when multiple formats coexist. */
|
|
405
405
|
export function readPluginManifest(dir, includeParent = true) {
|
|
406
406
|
const rootManifest = join(dir, 'plugin.json')
|
|
407
407
|
let portable = false
|
|
@@ -410,9 +410,9 @@ export function readPluginManifest(dir, includeParent = true) {
|
|
|
410
410
|
portable = /^https:\/\/agent-plugins\.org\//.test(root.$schema || '') || Boolean(root.extensions?.['com.openai'])
|
|
411
411
|
} catch {}
|
|
412
412
|
const candidates = [
|
|
413
|
+
join(dir, '.claude-plugin', 'plugin.json'),
|
|
413
414
|
...(portable ? [rootManifest] : []),
|
|
414
415
|
join(dir, '.codex-plugin', 'plugin.json'),
|
|
415
|
-
join(dir, '.claude-plugin', 'plugin.json'),
|
|
416
416
|
join(dir, '.claude-plugin', 'marketplace.json'),
|
|
417
417
|
rootManifest,
|
|
418
418
|
join(dir, 'manifest.json'),
|