dsh-plugin 1.4.14 → 1.5.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/client/client.js +290 -288
- package/client/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client/logic/install-command.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "A community plugin marketplace for DeepSeek Harness, built to the official plugin spec — browse, search and install 10000+ human-curated community plugins without leaving the app. · DeepSeek Harness 社区插件市场(遵循官方开发规范):10000+ 人工精选社区插件,每日更新。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -51,6 +51,10 @@ export function installCommandOf(p: HubPlugin, withProfile = false): string {
|
|
|
51
51
|
/** Normalize a task/install target to its owner/repo display identity. */
|
|
52
52
|
export function repoFromInstallTarget(value: string): string {
|
|
53
53
|
const input = value.trim()
|
|
54
|
+
// release 直链(预构建 .tgz)走同一条身份归一化:解析出所属仓库,已装态/更新信号才能
|
|
55
|
+
// 认回目录条目;仅接受固定形态直链,跨仓/非法目标不接受,继续走下面的常规解析。
|
|
56
|
+
const release = githubReleaseTarget(input)
|
|
57
|
+
if (release !== null) return release.repo
|
|
54
58
|
if (/^[A-Za-z0-9._-]+\/[A-Za-z0-9._-]+$/.test(input)) return input
|
|
55
59
|
const patterns = [
|
|
56
60
|
/^github:([^/]+)\/([^/]+)$/i,
|