dsh-pluginmarket-plus 0.2.0 → 0.2.1
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 +100 -18
- package/client.js +23 -57
- package/icon.svg +1 -1
- package/locale/en.json +2 -2
- package/locale/zh.json +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
# dsh-pluginmarket-plus ·
|
|
1
|
+
# dsh-pluginmarket-plus · 插件市场增强
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
给 DSH 的插件页加两个能力:**插件源缓存**(把插件索引 JSON 落到本地磁盘,发现页不再被上游超时拖垮)和**可更新**(集中检查已安装插件的新版本,支持单包、多选与一键更新)。
|
|
4
|
+
|
|
5
|
+
安装后,插件页(Plugins)会出现两个新 tab:
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
[已安装] [发现] [插件源缓存] [可更新]
|
|
9
|
+
```
|
|
4
10
|
|
|
5
11
|
## 安装
|
|
6
12
|
|
|
7
|
-
从 npm
|
|
13
|
+
从 npm:
|
|
8
14
|
|
|
9
15
|
```sh
|
|
10
16
|
dsh plugin --profile web add dsh-pluginmarket-plus
|
|
@@ -16,43 +22,105 @@ dsh plugin --profile web add dsh-pluginmarket-plus
|
|
|
16
22
|
dsh plugin --profile web add github:jiyuchen1/dsh-pluginmarket-plus
|
|
17
23
|
```
|
|
18
24
|
|
|
19
|
-
安装后重启 `dsh web
|
|
25
|
+
安装后重启 `dsh web`(或在桌面应用里安装并重启),然后打开 **Plugins → 插件源缓存 / 可更新**。
|
|
20
26
|
|
|
21
|
-
##
|
|
27
|
+
## 功能一:插件源缓存
|
|
28
|
+
|
|
29
|
+
### 为什么需要它
|
|
22
30
|
|
|
23
31
|
官方插件市场(`plugin-market` 服务)读取索引时单次抓取限时 **15 秒**、失败不落盘,也不会沿用上一份成功的结果。真实索引很大,实测(2026-11-14,本机直连):
|
|
24
32
|
|
|
25
33
|
| 索引 | 大小 | 插件数 | 抓取耗时 |
|
|
26
34
|
|---|---|---|---|
|
|
27
|
-
| `cdn.dsh.so/market/index.json` | 8.4 MB | 11,141 | ≈ 64 s |
|
|
28
|
-
| `api.dshfind.com/market/dsh-index.json` | 4.7 MB | 8,321 | ≈ 34 s |
|
|
29
|
-
| `gcore.jsdelivr.net
|
|
35
|
+
| `https://cdn.dsh.so/market/index.json` | 8.4 MB | 11,141 | ≈ 64 s |
|
|
36
|
+
| `https://api.dshfind.com/market/dsh-index.json` | 4.7 MB | 8,321 | ≈ 34 s |
|
|
37
|
+
| `https://gcore.jsdelivr.net/gh/yueyexiayu/dsh-market-zh@main/index.json` | 0.7 MB | 597 | ≈ 4 s |
|
|
38
|
+
| `https://cdn.jsdelivr.net/npm/dsh-plugin-catalog/index.json` | 4.6 MB | 5,643 | ≈ 1 s |
|
|
39
|
+
|
|
40
|
+
前两个都远超 15 秒,于是「发现」页搜索经常直接失败,报索引超时或搜不出来。
|
|
30
41
|
|
|
31
|
-
|
|
42
|
+
### 可添加的索引源
|
|
32
43
|
|
|
33
|
-
|
|
44
|
+
下面四个地址可以直接复制,粘贴到 **插件源缓存 → 添加**,或 **发现 → 索引源**:
|
|
45
|
+
|
|
46
|
+
```text
|
|
47
|
+
https://cdn.dsh.so/market/index.json
|
|
48
|
+
https://gcore.jsdelivr.net/gh/yueyexiayu/dsh-market-zh@main/index.json
|
|
49
|
+
https://api.dshfind.com/market/dsh-index.json
|
|
50
|
+
https://cdn.jsdelivr.net/npm/dsh-plugin-catalog/index.json
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
> 这些索引由社区维护,地址或格式可能变化;添加后可在「插件源缓存」里点「刷新」验证是否可用。
|
|
54
|
+
|
|
55
|
+
本功能做三件事:
|
|
34
56
|
|
|
35
57
|
1. **落盘缓存**:用更长的超时(默认 2 分钟)在后台抓取索引,校验格式 1 的基本结构,原子写入 `<profile>/.pluginmarket-plus/index-<id>.json`;失败保留上一份成功副本。
|
|
36
58
|
2. **本地镜像**:通过本机 Web 服务提供 `http://127.0.0.1:<port>/pluginmarket-plus/index/<id>.json`,抓取是毫秒级。
|
|
37
59
|
3. **接管发现页**:把 `plugin-market` 的 `indexes` 从上游地址切换成本地镜像(只替换已经缓存成功的源),搜索随即恢复正常。
|
|
38
60
|
|
|
39
|
-
|
|
61
|
+
### 使用
|
|
40
62
|
|
|
41
|
-
|
|
63
|
+
打开 **Plugins → 插件源缓存**:
|
|
42
64
|
|
|
43
65
|
- 「全部刷新」「刷新」:立即重新抓取并落盘。
|
|
44
66
|
- 「自动刷新」「刷新间隔」:默认每 4 小时刷新一次(另有插件启动时补一次过期/缺失的源)。
|
|
45
|
-
- 「让发现页使用本地缓存」:接管 `plugin-market`
|
|
67
|
+
- 「让发现页使用本地缓存」:接管 `plugin-market` 的索引源;关掉即还原为上游地址。
|
|
46
68
|
- 索引源列表:可添加/移除源,可复制每个源的本地镜像地址。
|
|
47
69
|
|
|
48
|
-
|
|
70
|
+
### 行为与限制
|
|
49
71
|
|
|
50
72
|
- 缓存目录:`<profile>/.pluginmarket-plus/`(可用 `cacheDir` 改)。
|
|
51
73
|
- 镜像路由必须免登录:`pluginMarket` 在 Host 进程里用裸 `fetch` 读取索引,不带浏览器 Cookie;路由只提供公开的索引 JSON,且 Web 服务默认只绑定回环地址。
|
|
52
74
|
- 接管只替换已缓存成功的源;尚未缓存成功的源继续直连上游,不会因为镜像 404 而整体失败。
|
|
53
75
|
- 索引里的相对 `icon` 会在落盘时改写为相对上游地址的绝对地址,避免在镜像源下解析到 localhost。
|
|
54
76
|
- 详情页(README/长描述)仍由官方 `plugin-market` 按版本的 npm/Git 源读取,不受本缓存影响;上游仓库不可达时详情页仍可能失败。
|
|
55
|
-
-
|
|
77
|
+
- 禁用/卸载插件前建议先关闭「让发现页使用本地缓存」,否则发现页会保留指向本机镜像的索引地址。
|
|
78
|
+
|
|
79
|
+
## 功能二:可更新
|
|
80
|
+
|
|
81
|
+
### 它能做什么
|
|
82
|
+
|
|
83
|
+
「可更新」把已安装插件里**有新版本**的集中列出来,并允许:
|
|
84
|
+
|
|
85
|
+
- 单项「更新」
|
|
86
|
+
- 勾选多个后「更新已选」
|
|
87
|
+
- 一次「更新全部」(按当前设置开关选取)
|
|
88
|
+
- 批量按顺序执行;**某一项失败会继续下一项**,最后汇总成功/失败/需重启
|
|
89
|
+
- 实时进度(检查 → 移除 → 安装 → 回滚)、可展开 pnpm 日志、可取消当前项
|
|
90
|
+
- 不兼容版本显示与「版本豁免」流程
|
|
91
|
+
- 齿轮设置里三个开关:
|
|
92
|
+
- 「显示检查失败的项」:显示检查失败 / 无法检查 / 未检查的条目
|
|
93
|
+
- 「包含预发布 / 已废弃版本」:把这两类目标版本也纳入列表与「更新全部」
|
|
94
|
+
- 「包含已禁用的插件」:把已禁用但可更新的插件也纳入列表
|
|
95
|
+
|
|
96
|
+
默认列表只显示「有更新的项」:可更新 + 暂不推荐(预发布/已废弃未开启时)+ 不兼容(需先豁免);检查失败类条目默认隐藏。
|
|
97
|
+
|
|
98
|
+
### 检查更新从哪里来
|
|
99
|
+
|
|
100
|
+
- **npm 包**:调用 DSH 官方的 `pluginManager.listVersions(name)`,由 pnpm / registry 查询新版本,返回 `prerelease`、`deprecated`、是否声明 `dsh.bundle`、与当前 DSH 的兼容性。
|
|
101
|
+
- **Git 包**(固定 40 位 commit):官方不查 GitHub,本插件读**插件源缓存里的市场索引**,取该包最新版本的 `source.commit` 与已安装 commit 比较;索引里没有就标记「无法检查」,不会去调 GitHub API。
|
|
102
|
+
- 以下不进列表:官方自带 bundle、`link:` / `file:` 本地目录、`npm:` 别名、分支/标签等未固定 commit 的 Git 安装。
|
|
103
|
+
|
|
104
|
+
### 更新怎么执行
|
|
105
|
+
|
|
106
|
+
复用 DSH 官方的 `pluginManager.updateBundle()`:校验目标版本与 DSH 兼容性 → 移除旧版 → 安装新版;失败时尝试装回旧版本(结果在 `restore` 里),回滚也失败则包处于未安装状态。需要 build script 批准的新版本会更新失败并回滚,官方路径是「移除后重新安装并批准脚本」。
|
|
107
|
+
|
|
108
|
+
### 版本豁免
|
|
109
|
+
|
|
110
|
+
如果目标版本声明的 `engines.dsh` / peers 与当前 DSH 不匹配,官方会在检查阶段拒绝更新。对确实想用的版本,可以在不兼容行点「版本豁免」:
|
|
111
|
+
|
|
112
|
+
1. 勾选「我接受风险:可能崩溃或数据丢失」
|
|
113
|
+
2. 再点一次「豁免此版本并更新」二次确认
|
|
114
|
+
|
|
115
|
+
确认后调用 `setVersionExemption(pkg@version, runtimeVersion, true, acceptRisk: true)`,写入 profile 的本地豁免记录,然后自动发起更新。豁免只对「这个包的这一个版本 × 当前这个 DSH 版本」生效,插件或 DSH 升级后自动失效。
|
|
116
|
+
|
|
117
|
+
### 行为与限制
|
|
118
|
+
|
|
119
|
+
- 检查更新需要网络;registry 走 pnpm 配置的源(npmjs、npmmirror 或私有源)。
|
|
120
|
+
- Git 包的检查依赖「插件源缓存」里的索引;缓存被禁用或为空时,Git 项会显示「无法检查」。
|
|
121
|
+
- 官方自带 bundle 跟随 DSH 版本升级,不参与这里的单包更新。
|
|
122
|
+
- 一次只跑一个更新(顺序队列);批量可随时取消当前项。
|
|
123
|
+
- 部分插件更新后需要重启 DSH 才能完全生效(结果里会标「需重启」)。
|
|
56
124
|
|
|
57
125
|
## 配置(cordis.patch.yml)
|
|
58
126
|
|
|
@@ -66,14 +134,28 @@ dsh plugin --profile web add github:jiyuchen1/dsh-pluginmarket-plus
|
|
|
66
134
|
| `maxBytes` | `67108864` | 单个索引正文上限 |
|
|
67
135
|
| `retries` | `2` | 失败重试次数 |
|
|
68
136
|
| `cacheDir` | `.pluginmarket-plus` | 缓存目录(相对 profile) |
|
|
137
|
+
| `updatesIncludeDisabled` | `false` | 「可更新」是否包含已禁用的插件 |
|
|
138
|
+
| `updatesIncludePrerelease` | `false` | 「可更新」是否包含预发布/已废弃版本 |
|
|
139
|
+
| `updatesShowFailed` | `false` | 「可更新」是否显示检查失败 / 无法检查 / 未检查的条目 |
|
|
69
140
|
|
|
70
141
|
## 文件
|
|
71
142
|
|
|
72
|
-
- `lib/index.js` — Host
|
|
143
|
+
- `lib/index.js` — Host:缓存编排、镜像路由、定时器、发现页接管;「可更新」桥接与队列。
|
|
73
144
|
- `lib/store.js` — 磁盘缓存与状态清单(原子写)。
|
|
74
145
|
- `lib/refresh.js` — 抓取、最小格式校验、相对 icon 改写。
|
|
75
|
-
- `
|
|
146
|
+
- `lib/updates.js` — 「可更新」纯逻辑:版本比较、候选筛选、检查、顺序队列、结果归一。
|
|
147
|
+
- `client.js` — 两个 tab(插件源缓存 / 可更新),无构建步骤,React 来自宿主模块表。
|
|
148
|
+
- `tools/` — 自测与独立验证脚本(`npm test` 跑 `tools/updates-selftest.mjs`)。
|
|
149
|
+
|
|
150
|
+
## 开发与测试
|
|
151
|
+
|
|
152
|
+
```sh
|
|
153
|
+
npm test # updates-selftest
|
|
154
|
+
node tools/updates-integration.mjs # Host 集成(假 ctx + 假 pluginManager)
|
|
155
|
+
node tools/client-selftest.mjs # 客户端纯逻辑与交互
|
|
156
|
+
node tools/client-bundle-check.mjs # 客户端装载/渲染冒烟
|
|
157
|
+
```
|
|
76
158
|
|
|
77
159
|
## License
|
|
78
160
|
|
|
79
|
-
MIT © 2026 jiyuchen1
|
|
161
|
+
MIT © 2026 jiyuchen1
|
package/client.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dsh-pluginmarket-plus —— 客户端半边(无构建步骤,直接由 __ModuleLoader__ 装载)。
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* 插件页两个标签:`pluginmarket-plus-cache`(插件源缓存)与 `pluginmarket-plus-updates`
|
|
5
|
+
* (可更新)。缓存标签展示每个索引源的缓存状态,提供「刷新」「改刷新间隔」
|
|
6
|
+
* 「让发现页使用本地缓存」等操作;「可更新」标签集中列出有更新的 bundle。
|
|
7
|
+
* 所有数据都来自 Host 的 `/api/pluginmarket-plus/*`(经 connection 精确路由,
|
|
8
|
+
* 只有 owner 浏览器能访问)。
|
|
7
9
|
*
|
|
8
10
|
* 约束:工厂函数无副作用;样式/字典/席位注册全部放进 apply 并用 ctx.effect 清理;
|
|
9
11
|
* 只 require('react'),不 import 任何 @deepseek-ai Client 包。
|
|
@@ -26,13 +28,15 @@ window.__ModuleLoader__.load({
|
|
|
26
28
|
/** 席位 id 与顺序(排在自带的 Installed / Discover 之后)。 */
|
|
27
29
|
const UPDATES_ID = 'pluginmarket-plus-updates'
|
|
28
30
|
const UPDATES_ORDER = 20
|
|
31
|
+
/** 「插件源缓存」tab:排在 discover 之后、「可更新」之前。 */
|
|
32
|
+
const CACHE_ID = 'pluginmarket-plus-cache'
|
|
33
|
+
const CACHE_ORDER = 10
|
|
29
34
|
/** 进度轮询间隔(毫秒)。 */
|
|
30
35
|
const POLL_MS = 700
|
|
31
36
|
|
|
32
37
|
const I18N = {
|
|
33
38
|
zh: {
|
|
34
|
-
|
|
35
|
-
title: '插件市场缓存',
|
|
39
|
+
cacheTab: '插件源缓存',
|
|
36
40
|
intro: '把「插件 → 发现」读取的索引 JSON 缓存到本地磁盘,定时或手动刷新。在「发现 → 索引源」或本页增删索引源都会自动同步;开启下方开关后,发现页会改用本地镜像,搜索不再因上游索引超时而失败。',
|
|
37
41
|
loading: '读取中…',
|
|
38
42
|
failed: '读取失败:{error}',
|
|
@@ -182,8 +186,7 @@ window.__ModuleLoader__.load({
|
|
|
182
186
|
stageSkipped: '已跳过',
|
|
183
187
|
},
|
|
184
188
|
en: {
|
|
185
|
-
|
|
186
|
-
title: 'Plugin market cache',
|
|
189
|
+
cacheTab: 'Plugin source cache',
|
|
187
190
|
intro: 'Caches the index JSON that Plugins → Discover reads, on local disk, refreshed on a schedule or on demand. Adding or removing a source in Discover → Index sources or on this page stays in sync; turn on the switch below to point Discover at the local mirror, so searches no longer fail on an upstream index timeout.',
|
|
188
191
|
loading: 'Loading…',
|
|
189
192
|
failed: 'Failed to load: {error}',
|
|
@@ -336,7 +339,8 @@ window.__ModuleLoader__.load({
|
|
|
336
339
|
|
|
337
340
|
const CSS = [
|
|
338
341
|
'.pmp-page{display:flex;flex-direction:column;gap:14px;width:100%;max-width:760px;color:var(--dsw-alias-label-primary);font:inherit}',
|
|
339
|
-
|
|
342
|
+
// 插件页 tab 内:不设额外内边距/最大宽度(避免与设置页样式冲突)。
|
|
343
|
+
'.pmp-tabPage{max-width:none;min-width:0;padding:0}',
|
|
340
344
|
'.pmp-intro{margin:0;font-size:13px;line-height:20px;color:var(--dsw-alias-label-secondary)}',
|
|
341
345
|
'.pmp-notice{display:flex;align-items:center;gap:8px;border-radius:var(--dsw-radius-md);padding:8px 10px;font-size:12px;line-height:18px;overflow-wrap:anywhere}',
|
|
342
346
|
'.pmp-notice[data-tone="ok"]{background:color-mix(in srgb, var(--dsw-alias-state-success-primary) 10%, transparent);color:var(--dsw-alias-state-success-primary)}',
|
|
@@ -589,11 +593,11 @@ window.__ModuleLoader__.load({
|
|
|
589
593
|
}
|
|
590
594
|
|
|
591
595
|
/**
|
|
592
|
-
*
|
|
596
|
+
* 索引源缓存状态徽标(与「可更新」的行状态徽标同名会互相覆盖,故加 Source 前缀)。
|
|
593
597
|
* @param {{state: string, t: Function}} props - 源状态与翻译函数。
|
|
594
598
|
* @returns {object} React 元素。
|
|
595
599
|
*/
|
|
596
|
-
function
|
|
600
|
+
function SourceStatusBadge({ state, t }) {
|
|
597
601
|
const tone = state === 'ok' ? 'ok' : state === 'stale' ? 'warn' : state === 'error' ? 'bad' : 'idle'
|
|
598
602
|
const label = state === 'ok' ? t('statusOk') : state === 'stale' ? t('statusStale') : state === 'error' ? t('statusError') : t('statusEmpty')
|
|
599
603
|
return h('span', { className: 'pmp-badge', 'data-tone': tone },
|
|
@@ -749,8 +753,8 @@ window.__ModuleLoader__.load({
|
|
|
749
753
|
}
|
|
750
754
|
}
|
|
751
755
|
|
|
752
|
-
|
|
753
|
-
|
|
756
|
+
// 作为 plugins.tab 的内容:tab 标签已是「插件源缓存」,这里不再重复标题。
|
|
757
|
+
return h('div', { className: 'pmp-page pmp-tabPage' },
|
|
754
758
|
h('p', { className: 'pmp-intro' }, t('intro')),
|
|
755
759
|
|
|
756
760
|
notice !== null && h('p', { className: 'pmp-notice', 'data-tone': notice.tone }, notice.text),
|
|
@@ -800,7 +804,7 @@ window.__ModuleLoader__.load({
|
|
|
800
804
|
sources.map((source) => h('div', { className: 'pmp-card', key: source.id },
|
|
801
805
|
h('div', { className: 'pmp-cardHead' },
|
|
802
806
|
h('h3', { className: 'pmp-cardTitle' }, source.title || t('unknownTitle')),
|
|
803
|
-
h(
|
|
807
|
+
h(SourceStatusBadge, { state: source.state, t }),
|
|
804
808
|
source.refreshing === true && h('span', { className: 'pmp-badge' }, t('refreshing')),
|
|
805
809
|
),
|
|
806
810
|
h('p', { className: 'pmp-url' }, source.url),
|
|
@@ -2384,29 +2388,6 @@ window.__ModuleLoader__.load({
|
|
|
2384
2388
|
return status > 0 ? `HTTP ${status}` : 'request failed'
|
|
2385
2389
|
}
|
|
2386
2390
|
|
|
2387
|
-
/**
|
|
2388
|
-
* 设置导航图标(可选席位)。
|
|
2389
|
-
* @param {{size?: number, active?: boolean}} props - 图标尺寸与选中态。
|
|
2390
|
-
* @returns {object} React 元素。
|
|
2391
|
-
*/
|
|
2392
|
-
function CacheIcon({ size, active }) {
|
|
2393
|
-
return h('svg', {
|
|
2394
|
-
width: size ?? 16,
|
|
2395
|
-
height: size ?? 16,
|
|
2396
|
-
viewBox: '0 0 24 24',
|
|
2397
|
-
fill: 'none',
|
|
2398
|
-
stroke: 'currentColor',
|
|
2399
|
-
strokeWidth: 1.7,
|
|
2400
|
-
strokeLinecap: 'round',
|
|
2401
|
-
strokeLinejoin: 'round',
|
|
2402
|
-
'aria-hidden': true,
|
|
2403
|
-
style: { color: active === true ? 'var(--dsw-alias-label-primary)' : 'var(--dsw-alias-label-tertiary)' },
|
|
2404
|
-
},
|
|
2405
|
-
h('ellipse', { cx: 12, cy: 6.5, rx: 7, ry: 3 }),
|
|
2406
|
-
h('path', { d: 'M5 6.5v11c0 1.66 3.13 3 7 3s7-1.34 7-3v-11' }),
|
|
2407
|
-
h('path', { d: 'M5 12c0 1.66 3.13 3 7 3s7-1.34 7-3' }))
|
|
2408
|
-
}
|
|
2409
|
-
|
|
2410
2391
|
return {
|
|
2411
2392
|
inject: ['slots', 'locale'],
|
|
2412
2393
|
/** 纯逻辑/常量出口,仅供自检脚本读取;不参与运行时行为。 */
|
|
@@ -2425,31 +2406,16 @@ window.__ModuleLoader__.load({
|
|
|
2425
2406
|
|
|
2426
2407
|
const t = ctx.locale.bind(NS)
|
|
2427
2408
|
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
inject: () => ({ t }),
|
|
2435
|
-
}, MarketCacheSection))
|
|
2436
|
-
|
|
2437
|
-
// 也放进「插件」设置页的页签里,和「发现」在同一处。
|
|
2438
|
-
ctx.slots.inject('settings.plugins.tab', () => ctx.slots.register({
|
|
2439
|
-
name: 'settings.plugins.tab',
|
|
2440
|
-
id: 'pluginmarket-plus',
|
|
2441
|
-
order: 55,
|
|
2442
|
-
label: () => t('nav'),
|
|
2409
|
+
// 插件页(Plugins)「插件源缓存」标签:排在自带的 Discover 之后、「可更新」之前。
|
|
2410
|
+
ctx.slots.inject(UPDATES_SLOT, () => ctx.slots.register({
|
|
2411
|
+
name: UPDATES_SLOT,
|
|
2412
|
+
id: CACHE_ID,
|
|
2413
|
+
order: CACHE_ORDER,
|
|
2414
|
+
label: () => t('cacheTab'),
|
|
2443
2415
|
locale: NS,
|
|
2444
2416
|
inject: () => ({ t }),
|
|
2445
2417
|
}, MarketCacheSection))
|
|
2446
2418
|
|
|
2447
|
-
ctx.slots.inject('settings.section.icon', () => ctx.slots.register({
|
|
2448
|
-
name: 'settings.section.icon',
|
|
2449
|
-
id: 'pluginmarket-plus',
|
|
2450
|
-
order: 41,
|
|
2451
|
-
}, CacheIcon))
|
|
2452
|
-
|
|
2453
2419
|
// 插件页(Plugins)新增「可更新」标签:排在自带的 Installed / Discover 之后。
|
|
2454
2420
|
// 数据只走同源 /api/pluginmarket-plus/updates*;「详情」复用官方详情页。
|
|
2455
2421
|
ctx.slots.inject(UPDATES_SLOT, () => ctx.slots.register({
|
package/icon.svg
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" role="img" aria-label="Plugin market
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" role="img" aria-label="Plugin market enhanced">
|
|
2
2
|
<defs>
|
|
3
3
|
<linearGradient id="pmpBg" x1="0" y1="0" x2="1" y2="1">
|
|
4
4
|
<stop offset="0" stop-color="#2F7CF6"/>
|
package/locale/en.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
|
-
"title": "Plugin market
|
|
4
|
-
"description": "
|
|
3
|
+
"title": "Plugin market enhanced",
|
|
4
|
+
"description": "Two capabilities for the Plugins page: cache the market index JSON on local disk so Discover no longer fails on upstream timeouts, and check or batch-update installed plugins with progress, cancellation and version exemptions."
|
|
5
5
|
}
|
|
6
6
|
}
|
package/locale/zh.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
|
-
"title": "
|
|
4
|
-
"description": "
|
|
3
|
+
"title": "插件市场增强",
|
|
4
|
+
"description": "给插件页加两个能力:把插件索引 JSON 缓存到本地磁盘(发现页不再受上游超时影响),并集中检查、批量更新已安装插件的新版本,支持进度、取消与版本豁免。"
|
|
5
5
|
}
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-pluginmarket-plus",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "Plugin market enhancements for DeepSeek Harness: cache the market index JSON on local disk with a local mirror for the Discover page, and check or batch-update installed plugins with progress, cancellation and version exemptions.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
7
7
|
"icon": "icon.svg",
|