dsh-pluginmarket-plus 0.0.0-stage → 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/LICENSE +21 -0
- package/README.md +78 -2
- package/client.js +524 -0
- package/cordis.patch.yml +24 -0
- package/icon.svg +18 -0
- package/lib/index.js +739 -0
- package/lib/refresh.js +186 -0
- package/lib/store.js +159 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +76 -4
package/lib/refresh.js
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 抓取与规范化一个插件市场索引 JSON。
|
|
3
|
+
*
|
|
4
|
+
* 官方插件市场(`plugin-market` 服务)在 15 秒内抓不到索引就判失败,而真实的索引
|
|
5
|
+
* 动辄几 MB、跨网络要几十秒,于是「搜索 → 索引超时」。这里用更长的时间窗抓取,
|
|
6
|
+
* 校验格式 1 的基本结构,并把相对 icon 改写为绝对地址——因为镜像会从 localhost
|
|
7
|
+
* 提供这份 JSON,相对地址在镜像源下会指向 localhost 而失效。
|
|
8
|
+
*
|
|
9
|
+
* @module dsh-pluginmarket-plus/lib/refresh
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/** 抓取时使用的 User-Agent。 */
|
|
13
|
+
const USER_AGENT = 'dsh-pluginmarket-plus/0.1 (+local index cache)'
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @typedef {object} FetchedIndex
|
|
17
|
+
* @property {Buffer} bytes - 规范化后的 JSON 正文。
|
|
18
|
+
* @property {number} plugins - 插件条数。
|
|
19
|
+
* @property {unknown} title - 索引标题(LocalizedText)。
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* 把一条拒绝原因压成一行,便于写进状态清单。
|
|
24
|
+
* @param {unknown} error - 任意抛出物。
|
|
25
|
+
* @returns {string} 单行诊断。
|
|
26
|
+
*/
|
|
27
|
+
export function messageOf(error) {
|
|
28
|
+
if (error instanceof Error) {
|
|
29
|
+
const cause = error.cause instanceof Error ? `: ${error.cause.message}` : ''
|
|
30
|
+
return `${error.message}${cause}`.replace(/\s+/gu, ' ').trim()
|
|
31
|
+
}
|
|
32
|
+
return String(error).replace(/\s+/gu, ' ').trim()
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* 从 LocalizedText 里挑一个用于列表展示的标题。
|
|
37
|
+
* @param {unknown} title - 索引的 title 字段。
|
|
38
|
+
* @returns {string} 可展示文本;没有时返回空串。
|
|
39
|
+
*/
|
|
40
|
+
export function indexTitle(title) {
|
|
41
|
+
if (typeof title === 'string') return title
|
|
42
|
+
if (title !== null && typeof title === 'object' && !Array.isArray(title)) {
|
|
43
|
+
const record = /** @type {Record<string, unknown>} */ (title)
|
|
44
|
+
for (const key of ['zh', 'en']) {
|
|
45
|
+
const value = record[key]
|
|
46
|
+
if (typeof value === 'string' && value.trim() !== '') return value
|
|
47
|
+
}
|
|
48
|
+
for (const value of Object.values(record)) {
|
|
49
|
+
if (typeof value === 'string' && value.trim() !== '') return value
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return ''
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* 把相对 icon 引用改写成相对「上游索引地址」的绝对地址。
|
|
57
|
+
*
|
|
58
|
+
* 镜像地址与上游地址不同源,相对 icon 在镜像下会解析到 localhost;在缓存前改写,
|
|
59
|
+
* 浏览器就会直接向上游取图。`data:` 与已是绝对地址的 icon 保持原样。
|
|
60
|
+
* @param {unknown} document - 已解析的索引文档(就地修改)。
|
|
61
|
+
* @param {string} indexUrl - 上游索引地址。
|
|
62
|
+
* @returns {void}
|
|
63
|
+
*/
|
|
64
|
+
export function absolutizeIcons(document, indexUrl) {
|
|
65
|
+
if (document === null || typeof document !== 'object') return
|
|
66
|
+
const plugins = /** @type {{ plugins?: unknown }} */ (document).plugins
|
|
67
|
+
if (!Array.isArray(plugins)) return
|
|
68
|
+
for (const plugin of plugins) {
|
|
69
|
+
if (plugin === null || typeof plugin !== 'object') continue
|
|
70
|
+
const record = /** @type {Record<string, unknown>} */ (plugin)
|
|
71
|
+
const icon = record.icon
|
|
72
|
+
if (typeof icon !== 'string' || icon === '' || icon.startsWith('data:')) continue
|
|
73
|
+
if (/^[a-z][a-z0-9+.-]*:/iu.test(icon)) {
|
|
74
|
+
// 官方校验只接受 https 的 icon(或与索引同源的地址);镜像源是 localhost,
|
|
75
|
+
// 所以 http 的 icon 在镜像下必然失效,直接丢弃,交给默认图标。
|
|
76
|
+
try {
|
|
77
|
+
if (new URL(icon).protocol === 'http:') delete record.icon
|
|
78
|
+
} catch {
|
|
79
|
+
delete record.icon
|
|
80
|
+
}
|
|
81
|
+
continue
|
|
82
|
+
}
|
|
83
|
+
try {
|
|
84
|
+
const resolved = new URL(icon, indexUrl)
|
|
85
|
+
if (resolved.protocol !== 'https:') {
|
|
86
|
+
delete record.icon
|
|
87
|
+
continue
|
|
88
|
+
}
|
|
89
|
+
record.icon = resolved.href
|
|
90
|
+
} catch {
|
|
91
|
+
delete record.icon
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* 校验索引文档的最小结构(完整校验由官方 `plugin-market` 在读取镜像时执行)。
|
|
98
|
+
* @param {unknown} document - JSON.parse 的结果。
|
|
99
|
+
* @param {string} indexUrl - 上游索引地址,用于补默认标题。
|
|
100
|
+
* @returns {void}
|
|
101
|
+
*/
|
|
102
|
+
function assertIndexShape(document, indexUrl) {
|
|
103
|
+
if (document === null || typeof document !== 'object' || Array.isArray(document)) throw new Error('索引不是 JSON 对象')
|
|
104
|
+
const record = /** @type {Record<string, unknown>} */ (document)
|
|
105
|
+
if (record.format !== 1) throw new Error(`不支持的索引格式 format=${String(record.format)}`)
|
|
106
|
+
if (!Array.isArray(record.plugins)) throw new Error('索引缺少 plugins 数组')
|
|
107
|
+
// 官方校验要求 title 为 LocalizedText;上游偶尔缺失,补一个宿主名,避免整份索引作废。
|
|
108
|
+
const title = record.title
|
|
109
|
+
const hasTitle = typeof title === 'string'
|
|
110
|
+
? title.trim() !== ''
|
|
111
|
+
: title !== null && typeof title === 'object' && typeof (/** @type {Record<string, unknown>} */ (title).en) === 'string'
|
|
112
|
+
if (!hasTitle) {
|
|
113
|
+
let host = 'plugin market'
|
|
114
|
+
try {
|
|
115
|
+
host = new URL(indexUrl).hostname || host
|
|
116
|
+
} catch {
|
|
117
|
+
// 保留默认值。
|
|
118
|
+
}
|
|
119
|
+
record.title = { en: host }
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* 抓取一次索引。
|
|
125
|
+
* @param {string} url - 上游索引地址。
|
|
126
|
+
* @param {{ timeoutMs: number, maxBytes: number, userAgent?: string }} options - 抓取约束。
|
|
127
|
+
* @returns {Promise<FetchedIndex>} 规范化后的正文与摘要。
|
|
128
|
+
*/
|
|
129
|
+
async function fetchOnce(url, options) {
|
|
130
|
+
const signal = AbortSignal.timeout(options.timeoutMs)
|
|
131
|
+
const response = await fetch(url, {
|
|
132
|
+
signal,
|
|
133
|
+
redirect: 'follow',
|
|
134
|
+
headers: { accept: 'application/json', 'user-agent': options.userAgent ?? USER_AGENT },
|
|
135
|
+
})
|
|
136
|
+
if (!response.ok) {
|
|
137
|
+
await response.body?.cancel()
|
|
138
|
+
throw new Error(`HTTP ${String(response.status)}`)
|
|
139
|
+
}
|
|
140
|
+
const declared = Number(response.headers.get('content-length') ?? 0)
|
|
141
|
+
if (declared > options.maxBytes) {
|
|
142
|
+
await response.body?.cancel()
|
|
143
|
+
throw new Error(`响应体 ${String(declared)} 字节,超过上限 ${String(options.maxBytes)}`)
|
|
144
|
+
}
|
|
145
|
+
const buffer = Buffer.from(await response.arrayBuffer())
|
|
146
|
+
if (buffer.byteLength > options.maxBytes) {
|
|
147
|
+
throw new Error(`响应体 ${String(buffer.byteLength)} 字节,超过上限 ${String(options.maxBytes)}`)
|
|
148
|
+
}
|
|
149
|
+
const text = new TextDecoder('utf-8').decode(buffer)
|
|
150
|
+
/** @type {unknown} */
|
|
151
|
+
let document
|
|
152
|
+
try {
|
|
153
|
+
document = JSON.parse(text)
|
|
154
|
+
} catch (error) {
|
|
155
|
+
throw new Error(`响应不是合法 JSON: ${messageOf(error)}`)
|
|
156
|
+
}
|
|
157
|
+
assertIndexShape(document, url)
|
|
158
|
+
absolutizeIcons(document, url)
|
|
159
|
+
const normalized = Buffer.from(JSON.stringify(document), 'utf8')
|
|
160
|
+
return {
|
|
161
|
+
bytes: normalized,
|
|
162
|
+
plugins: Array.isArray(/** @type {{ plugins: unknown[] }} */ (document).plugins) ? /** @type {{ plugins: unknown[] }} */ (document).plugins.length : 0,
|
|
163
|
+
title: /** @type {{ title?: unknown }} */ (document).title,
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* 抓取索引,失败时按次数重试(网络抖动很常见,多试一次往往就过了)。
|
|
169
|
+
* @param {string} url - 上游索引地址。
|
|
170
|
+
* @param {{ timeoutMs: number, maxBytes: number, retries?: number, userAgent?: string }} options - 抓取约束。
|
|
171
|
+
* @returns {Promise<FetchedIndex>} 规范化后的正文与摘要。
|
|
172
|
+
*/
|
|
173
|
+
export async function fetchIndex(url, options) {
|
|
174
|
+
const retries = Math.max(0, options.retries ?? 0)
|
|
175
|
+
/** @type {unknown} */
|
|
176
|
+
let lastError
|
|
177
|
+
for (let attempt = 0; attempt <= retries; attempt++) {
|
|
178
|
+
try {
|
|
179
|
+
return await fetchOnce(url, options)
|
|
180
|
+
} catch (error) {
|
|
181
|
+
lastError = error
|
|
182
|
+
if (attempt < retries) await new Promise(resolve => setTimeout(resolve, 800 * (attempt + 1)))
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
throw lastError
|
|
186
|
+
}
|
package/lib/store.js
ADDED
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 磁盘缓存:每个插件源一份索引 JSON 正文 + 一份状态清单。
|
|
3
|
+
*
|
|
4
|
+
* 目录布局(默认 `<profile>/.pluginmarket-plus/`):
|
|
5
|
+
* - `index-<id>.json` 索引正文(已把相对 icon 改写为绝对地址)
|
|
6
|
+
* - `state.json` `{ version, sources: string[], entries: { [id]: Entry } }`
|
|
7
|
+
*
|
|
8
|
+
* 写正文和写清单都走「临时文件 + rename」的原子替换,任何时刻磁盘上要么是旧副本,
|
|
9
|
+
* 要么是新副本,不会出现被截断的半个 JSON。
|
|
10
|
+
*
|
|
11
|
+
* @module dsh-pluginmarket-plus/lib/store
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { createHash } from 'node:crypto'
|
|
15
|
+
import { existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from 'node:fs'
|
|
16
|
+
import { join } from 'node:path'
|
|
17
|
+
|
|
18
|
+
/** 状态清单版本;结构不兼容变更时递增。 */
|
|
19
|
+
const STATE_VERSION = 1
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* 一个索引源的稳定短 id:URL 的 sha256 前 16 位十六进制。
|
|
23
|
+
*
|
|
24
|
+
* 同一 URL 永远得到同一 id,所以镜像地址在重启后保持不变。
|
|
25
|
+
* @param {string} url - 上游索引地址。
|
|
26
|
+
* @returns {string} 16 位十六进制 id。
|
|
27
|
+
*/
|
|
28
|
+
export function sourceId(url) {
|
|
29
|
+
return createHash('sha256').update(url, 'utf8').digest('hex').slice(0, 16)
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** 一个索引源的缓存状态。 */
|
|
33
|
+
/**
|
|
34
|
+
* @typedef {object} CacheEntry
|
|
35
|
+
* @property {string} url - 上游索引地址。
|
|
36
|
+
* @property {number} [fetchedAt] - 最近一次成功抓取的 Unix 毫秒时间。
|
|
37
|
+
* @property {number} [bytes] - 正文字节数。
|
|
38
|
+
* @property {number} [plugins] - 插件条数。
|
|
39
|
+
* @property {unknown} [title] - 索引自带的标题(LocalizedText)。
|
|
40
|
+
* @property {string|null} [error] - 最近一次失败原因;成功后清空。
|
|
41
|
+
* @property {number} [errorAt] - 最近一次失败的 Unix 毫秒时间。
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
/** 正文与清单的读写。 */
|
|
45
|
+
export class CacheStore {
|
|
46
|
+
/**
|
|
47
|
+
* @param {string} dir - 缓存目录绝对路径。
|
|
48
|
+
*/
|
|
49
|
+
constructor(dir) {
|
|
50
|
+
this.dir = dir
|
|
51
|
+
this.state = { version: STATE_VERSION, sources: [], entries: {} }
|
|
52
|
+
mkdirSync(dir, { recursive: true })
|
|
53
|
+
this.#load()
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** 读取清单;损坏或缺失时以空清单开始(缓存是派生数据,可以重建)。 */
|
|
57
|
+
#load() {
|
|
58
|
+
try {
|
|
59
|
+
const raw = readFileSync(join(this.dir, 'state.json'), 'utf8')
|
|
60
|
+
const parsed = JSON.parse(raw)
|
|
61
|
+
if (parsed === null || typeof parsed !== 'object' || parsed.version !== STATE_VERSION) return
|
|
62
|
+
const entries = parsed.entries !== null && typeof parsed.entries === 'object' && !Array.isArray(parsed.entries)
|
|
63
|
+
? parsed.entries
|
|
64
|
+
: {}
|
|
65
|
+
this.state = {
|
|
66
|
+
version: STATE_VERSION,
|
|
67
|
+
sources: Array.isArray(parsed.sources) ? parsed.sources.filter(url => typeof url === 'string') : [],
|
|
68
|
+
entries,
|
|
69
|
+
}
|
|
70
|
+
} catch {
|
|
71
|
+
// 首次运行或清单损坏:保持空状态。旧正文文件会被下一次抓取覆盖。
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** 原子写回清单。 */
|
|
76
|
+
save() {
|
|
77
|
+
const target = join(this.dir, 'state.json')
|
|
78
|
+
const tmp = `${target}.tmp-${String(process.pid)}-${String(Date.now())}`
|
|
79
|
+
writeFileSync(tmp, JSON.stringify(this.state, null, 2), 'utf8')
|
|
80
|
+
renameSync(tmp, target)
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** @returns {string[]} 没有活跃配置时保留的源列表(首次从插件市场接管时写入)。 */
|
|
84
|
+
get sources() {
|
|
85
|
+
return this.state.sources.slice()
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @param {string[]} urls - 要记住的源列表。
|
|
90
|
+
*/
|
|
91
|
+
set sources(urls) {
|
|
92
|
+
this.state.sources = urls.slice()
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @param {string} id - 源 id。
|
|
97
|
+
* @returns {CacheEntry|undefined} 该源的缓存状态。
|
|
98
|
+
*/
|
|
99
|
+
entry(id) {
|
|
100
|
+
return this.state.entries[id]
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* 合并写入一条状态。
|
|
105
|
+
* @param {string} id - 源 id。
|
|
106
|
+
* @param {Partial<CacheEntry>} patch - 要合并的字段。
|
|
107
|
+
* @returns {void}
|
|
108
|
+
*/
|
|
109
|
+
update(id, patch) {
|
|
110
|
+
this.state.entries[id] = { ...this.state.entries[id], ...patch }
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @param {string} id - 源 id。
|
|
115
|
+
* @returns {boolean} 是否有可用的正文文件。
|
|
116
|
+
*/
|
|
117
|
+
hasBody(id) {
|
|
118
|
+
return existsSync(join(this.dir, `index-${id}.json`))
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @param {string} id - 源 id。
|
|
123
|
+
* @returns {Buffer|undefined} 正文;缺失时 undefined。
|
|
124
|
+
*/
|
|
125
|
+
readBody(id) {
|
|
126
|
+
try {
|
|
127
|
+
return readFileSync(join(this.dir, `index-${id}.json`))
|
|
128
|
+
} catch {
|
|
129
|
+
return undefined
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* 原子写入正文。
|
|
135
|
+
* @param {string} id - 源 id。
|
|
136
|
+
* @param {Buffer} bytes - 正文。
|
|
137
|
+
* @returns {void}
|
|
138
|
+
*/
|
|
139
|
+
writeBody(id, bytes) {
|
|
140
|
+
const target = join(this.dir, `index-${id}.json`)
|
|
141
|
+
const tmp = `${target}.tmp-${String(process.pid)}-${String(Date.now())}`
|
|
142
|
+
writeFileSync(tmp, bytes)
|
|
143
|
+
renameSync(tmp, target)
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* 删除一个源的正文与状态(源被移除时调用)。
|
|
148
|
+
* @param {string} id - 源 id。
|
|
149
|
+
* @returns {void}
|
|
150
|
+
*/
|
|
151
|
+
remove(id) {
|
|
152
|
+
delete this.state.entries[id]
|
|
153
|
+
try {
|
|
154
|
+
rmSync(join(this.dir, `index-${id}.json`), { force: true })
|
|
155
|
+
} catch {
|
|
156
|
+
// 删除失败不影响后续逻辑;下次写入会覆盖。
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
package/locale/en.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "Plugin market cache",
|
|
4
|
+
"description": "Caches the index JSON that Plugins → Discover reads on local disk, refreshed manually or every few hours. With takeover enabled, Discover index sources point at a local mirror, so opening and searching are instant instead of failing on an upstream index timeout. Disable the plugin or the takeover switch to restore the upstream URLs."
|
|
5
|
+
}
|
|
6
|
+
}
|
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,78 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-pluginmarket-plus",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Local disk cache for plugin market index JSON: manual and scheduled refresh, plus a local mirror that the built-in Discover page can read instead of the slow upstream indexes.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./lib/index.js",
|
|
7
|
+
"icon": "icon.svg",
|
|
8
|
+
"author": "jiyuchen1",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/jiyuchen1/dsh-pluginmarket-plus.git"
|
|
13
|
+
},
|
|
14
|
+
"homepage": "https://github.com/jiyuchen1/dsh-pluginmarket-plus#readme",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/jiyuchen1/dsh-pluginmarket-plus/issues"
|
|
17
|
+
},
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=20",
|
|
20
|
+
"dsh": ">=0.2.1-rc.1 <0.2.2-0 || >=0.2.2-rc.1 <0.4.0-0"
|
|
21
|
+
},
|
|
22
|
+
"exports": {
|
|
23
|
+
".": "./lib/index.js",
|
|
24
|
+
"./client": "./client.js",
|
|
25
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
26
|
+
"./locale/*.json": "./locale/*.json",
|
|
27
|
+
"./icon": "./icon.svg",
|
|
28
|
+
"./package.json": "./package.json"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"lib",
|
|
32
|
+
"client.js",
|
|
33
|
+
"cordis.patch.yml",
|
|
34
|
+
"locale/*.json",
|
|
35
|
+
"icon.svg",
|
|
36
|
+
"README.md",
|
|
37
|
+
"LICENSE"
|
|
38
|
+
],
|
|
39
|
+
"keywords": [
|
|
40
|
+
"deepseek-harness",
|
|
41
|
+
"dsh",
|
|
42
|
+
"dsh-plugin",
|
|
43
|
+
"dsh-bundle",
|
|
44
|
+
"plugin-market",
|
|
45
|
+
"cache",
|
|
46
|
+
"index"
|
|
47
|
+
],
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"access": "public",
|
|
50
|
+
"registry": "https://registry.npmjs.org/"
|
|
51
|
+
},
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"@deepseek-ai/cordis": "*",
|
|
54
|
+
"@deepseek-ai/schemastery": "*"
|
|
55
|
+
},
|
|
56
|
+
"peerDependenciesMeta": {
|
|
57
|
+
"@deepseek-ai/cordis": {
|
|
58
|
+
"optional": true
|
|
59
|
+
},
|
|
60
|
+
"@deepseek-ai/schemastery": {
|
|
61
|
+
"optional": true
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"dsh": {
|
|
65
|
+
"manifestVersion": 1,
|
|
66
|
+
"bundle": {
|
|
67
|
+
"patch": "./cordis.patch.yml"
|
|
68
|
+
},
|
|
69
|
+
"client": {
|
|
70
|
+
"platform": "web",
|
|
71
|
+
"immediately": true,
|
|
72
|
+
"inject": [
|
|
73
|
+
"@deepseek-ai/dsh-client-ui-settings",
|
|
74
|
+
"@deepseek-ai/dsh-client-locale"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|