dsh-modpack-kit 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 CHANGED
@@ -1,7 +1,13 @@
1
1
  # 整合包(dsh-modpack-kit)
2
2
 
3
+ > 谁说dsh不能整整合包呢?(你说这几个插件整一块不牛逼坏了)
4
+ >
5
+ > npm:https://www.npmjs.com/package/dsh-modpack-kit
6
+
3
7
  为 DeepSeek Harness 提供类似 HMCL / PCL 这类「我的世界启动器」的整合包打包与安装能力:把多个插件连同各自的配置与数据打成一个 `.dshpack`,一次安装到位。
4
8
 
9
+ 常见叫法与搜索词:整合包、插件打包、一键安装、批量安装、离线安装、迁移插件、备份插件配置、modpack、plugin bundle。
10
+
5
11
  - **三种打包策略**:完整包自带插件本体(不联网也能装,有网时按市场版本装、装完是市场版);仅下载码只记 `名字@版本`(体积最小,安装时联网取包);混合包以轻量为主——能按版本装的只记版本,没有确定版本或要带走本机改动的插件连本体一起打进来(这部分不用联网),配置/数据/补丁片段照样带。三种都附独立安装器,纯净版 DSH 都能装。
6
12
  - **逐插件定制**:每个插件单独选「插件预设」(只带插件默认配置)或「自定义配置」(本机的配置条目与数据快照,本机来源的还带代码改动),同一个整合包里可以混用。
7
13
  - **只列真正的插件**:一个插件自带内部组件时(例如壁纸引擎把组件发成了独立包),只列父包,内部组件随父包一起安装,不会被重复打包或重复安装。
@@ -39,6 +45,7 @@ dsh plugin --profile desktop add github:Vesna-Strivozha-cn/dsh-modpack-kit
39
45
  - 安装同路:都走 `dsh plugin --profile <p> add`,两边装的插件互相可见,不需要各记一份状态。
40
46
  - 已装插件会用目录补齐描述与分区,标出「市场版 vX」以及是否有更新;同名条目标为「本机 · 有市场版」,勾选时默认按市场版打包,行末可用「(切回本机版)」改回本机那份。
41
47
  - 三处入口里「插件页内」那一栏,跟市场的 Discover 栏并排,互不占位。
48
+ - AI 搜索同源(0.2.1 起):搜索框的「AI 搜索」直接调用插件市场新版本的 `POST /dsh-market/ai-search`,用的是同一套目录、同一个模型配置,不在本插件里另存模型与 Key;市场是旧版就没有这个开关。**AI 搜索花的 token 记在插件市场那边**——它用你在「设置 → 模型」里配的模型发请求、扣你的额度,本插件只转发问题与结果。
42
49
  - 分组同源:直接读市场存在 profile 下的 `.dsh-market/state.json`(只读),把「已装」按你的分组折叠展示,组头带「一键加入」「清空本组」。
43
50
  - 装完的身份:插件市场只看 profile 里的依赖写法——`file:`/`link:` 就是「本地」,semver 才是市场版。所以从市场取的插件一律按 `name@version` 装(清单里带版本号就不再问 registry),轻量包下载完也按版本装;只有确实拿不到市场版、退回包内副本时才会写成 `file:`,安装结果里会明确提示「插件市场会把它显示成本地安装」。
44
51
 
@@ -52,6 +59,7 @@ dsh plugin --profile desktop add github:Vesna-Strivozha-cn/dsh-modpack-kit
52
59
  | 侧边栏 / 设置里 / 插件页内三处入口 | ✅ | ✅ 一样(这些槽位是 DSH 核心声明的,不是市场插件) |
53
60
  | 分类胶囊、搜索、服务端分页 | ✅ | ✅ 只要建过一次目录索引就行(5~30 秒,看网络) |
54
61
  | 已装插件补齐描述、分区、市场版版本 | ✅ | ✅ 建过索引后一样 |
62
+ | AI 搜索(按一句话让模型从目录里挑插件) | ✅ 需较新版市场,用它自己的模型与 Key | ❌ 没有,只做关键词搜索 |
55
63
  | 按市场分组折叠展示、一键加入整组 | ✅ | ❌ 平铺列表(分组状态在市场那边) |
56
64
  | 有市场版时默认按上游原版打包 | ✅ | ✅ 建过索引后一样 |
57
65
  | 轻量包安装时按版本取包 | ✅ | ✅ 只要有 npm registry 网络 |
@@ -61,6 +69,7 @@ dsh plugin --profile desktop add github:Vesna-Strivozha-cn/dsh-modpack-kit
61
69
  - 首屏照旧只列本机已装插件,打包与安装不受影响。
62
70
  - 分类胶囊只剩「全部」,已装行的分类退回内置兜底规则,与市场 23 类的 id 不完全对得上——按 theme / memory 之类筛会漏几条。点「建立目录索引」跑一次就恢复。
63
71
  - 搜索、市场版版本对比、市场版/本机版的切换按钮不出来(此时只能打包本机那份)。
72
+ - 「AI 搜索」开关也不会出现——它借的是插件市场新版本的接口,没有市场就没有。
64
73
  - 轻量包装不了(它不带源码,必须联网按清单里的版本取包);完整版照装。
65
74
 
66
75
  ## 分类、搜索与分页
@@ -292,6 +301,8 @@ node install/install.mjs --profile desktop --replace # 本机已装的也换
292
301
 
293
302
  ## 更新日志
294
303
 
304
+ - **0.2.1**:兼容插件市场新版本的 AI 搜索——搜索框旁多一个「AI 搜索」开关,打开后按回车或点「AI 来找」,由你在 DSH 里配置的模型从市场目录里挑插件,挑中的条目能直接勾进打包;旧版插件市场没有这条接口时开关不出现,只做关键词搜索。加载上:关键词搜索加 20 秒结果缓存(翻页、来回切分类不重算),AI 结果只在本页保留、版本号按需补齐,输入过程中不额外请求。
305
+
295
306
  - **0.2.0**:把 0.1.10~0.1.12 的改动合成一个版本,并按现有功能重写介绍。
296
307
  - 打包策略(必选)三选一——完整包 / 仅下载码 / 混合包;卡片按所选插件实时判定,不可选整块灰显、点击只弹原因,当前策略失效时禁用打包,服务端打包前再校验一次。混合包按插件分档:能按版本装的只记版本,没有确定版本或要带走本机改动的连本体一起打。
297
308
  - 离线可装:完整包与混合包里带本体的插件离线直接装包内副本;只有版本的轻量包会逐条说明需要联网。
package/client.js CHANGED
@@ -92,6 +92,41 @@ window.__ModuleLoader__.load({
92
92
  return () => packStore.subs.delete(fn)
93
93
  }
94
94
 
95
+ // 插件市场的 AI 搜索:市场新版本用 POST /dsh-market/ai-search,让「你在 DSH 里配的模型」从目录里挑插件。
96
+ // 我们不重复实现模型调用:旧版市场(或没装)没有这条路由,界面自动退回纯关键词搜索。
97
+ const AI_SEARCH_KEY = "dsh-modpack-kit:ai-search"
98
+ function readAiSearchPref() {
99
+ try { return window.localStorage.getItem(AI_SEARCH_KEY) === "1" } catch (e) { return false }
100
+ }
101
+ function writeAiSearchPref(on) {
102
+ try { window.localStorage.setItem(AI_SEARCH_KEY, on ? "1" : "0") } catch (e) { /* 存不了不影响本场 */ }
103
+ }
104
+ let aiProbe = null
105
+ function marketAiSearchReady() {
106
+ if (!aiProbe) {
107
+ aiProbe = fetch("/dsh-market/ai-search", { method: "GET", credentials: "same-origin" })
108
+ .then((res) => res.status === 405 || res.status === 200)
109
+ .catch(() => false)
110
+ }
111
+ return aiProbe
112
+ }
113
+ async function callMarketAiSearch(query) {
114
+ const res = await fetch("/dsh-market/ai-search", {
115
+ method: "POST",
116
+ credentials: "same-origin",
117
+ headers: { "content-type": "application/json" },
118
+ body: JSON.stringify({ query }),
119
+ })
120
+ let body = null
121
+ try { body = await res.json() } catch (e) { body = null }
122
+ if (!res.ok || !body || !body.result) {
123
+ const error = new Error((body && body.error) || ("AI 搜索没有返回结果(HTTP " + res.status + ")"))
124
+ error.code = (body && body.code) || (res.status === 409 ? "no-model" : "model-failed")
125
+ throw error
126
+ }
127
+ return body.result
128
+ }
129
+
95
130
  // 已导入的整合包:可以同时留好几份,各自显示名字 / 作者 / 描述,切页签也还在
96
131
  const importStore = { value: [], subs: new Set() }
97
132
  function readImports() {
@@ -636,6 +671,10 @@ window.__ModuleLoader__.load({
636
671
  const [category, setCategory] = useState("all")
637
672
  const [search, setSearch] = useState({ items: [], total: 0, page: 0, hasMore: false, error: "" })
638
673
  const [searching, setSearching] = useState(false)
674
+ const [aiOn, setAiOn] = useState(readAiSearchPref)
675
+ const [aiReady, setAiReady] = useState(null)
676
+ const [aiBusy, setAiBusy] = useState(false)
677
+ const [aiRun, setAiRun] = useState(null)
639
678
  const [syncing, setSyncing] = useState("")
640
679
  const [options, setOptions] = useState(() => (draft.options ? { ...draft.options } : {
641
680
  strategy: "full",
@@ -743,6 +782,42 @@ window.__ModuleLoader__.load({
743
782
  return () => { alive = false; clearTimeout(timer) }
744
783
  }, [query, category, active, pageSize])
745
784
 
785
+ // AI 搜索:开着才探一次路由(旧版插件市场没有这条,就不显示开关)
786
+ useEffect(() => {
787
+ let alive = true
788
+ marketAiSearchReady().then((ok) => { if (alive) setAiReady(ok) })
789
+ return () => { alive = false }
790
+ }, [])
791
+
792
+ // 只在按回车或点「AI 来找」时调用:花的是主人自己的 token
793
+ const runAi = async () => {
794
+ const text = query.trim()
795
+ if (!text || aiBusy) return
796
+ setAiBusy(true)
797
+ setAiRun(null)
798
+ try {
799
+ const result = await callMarketAiSearch(text)
800
+ const picks = (Array.isArray(result.picks) ? result.picks : []).filter((item) => item && item.name)
801
+ setAiRun({ query: text, intro: result.intro || "", model: result.model || "", picks, error: "", code: "" })
802
+ if (picks.length) {
803
+ try {
804
+ const look = await api("/catalog/lookup", { names: picks.map((item) => item.name) })
805
+ if (look && look.ok) setMarketInfo((prev) => ({ ...prev, ...(look.items || {}) }))
806
+ } catch (e) { /* 版本信息补不上不影响结果 */ }
807
+ }
808
+ } catch (e) {
809
+ setAiRun({ query: text, intro: "", model: "", picks: [], error: e.message || String(e), code: e.code || "" })
810
+ } finally {
811
+ setAiBusy(false)
812
+ }
813
+ }
814
+ const toggleAi = () => {
815
+ const next = !aiOn
816
+ setAiOn(next)
817
+ writeAiSearchPref(next)
818
+ if (!next) setAiRun(null)
819
+ }
820
+
746
821
  const loadMore = async () => {
747
822
  if (searching || !search.hasMore) return
748
823
  setSearching(true)
@@ -1093,7 +1168,16 @@ window.__ModuleLoader__.load({
1093
1168
  h("div", { style: { ...box, display: "flex", flexDirection: "column", gap: "10px" } },
1094
1169
  h("div", { style: row },
1095
1170
  h("div", { style: strong }, "选择插件"),
1096
- h("input", { style: { ...input, flex: "1 1 200px" }, placeholder: "搜索插件名 / 描述(在插件市场目录里搜)", value: query, onChange: (e) => setQuery(e.target.value) }),
1171
+ h("input", {
1172
+ style: { ...input, flex: "1 1 200px" },
1173
+ placeholder: aiOn && aiReady ? "用一句话描述你要的插件(回车让 AI 在目录里挑)" : "搜索插件名 / 描述(在插件市场目录里搜)",
1174
+ value: query,
1175
+ onChange: (e) => setQuery(e.target.value),
1176
+ onKeyDown: (e) => { if (e.key === "Enter" && aiOn && aiReady) { e.preventDefault(); runAi() } },
1177
+ }),
1178
+ aiReady === true ? h("button", { style: aiOn ? chipOn : btn, onClick: toggleAi, title: "只调用插件市场提供的 AI 搜索接口:真正花的是你在「设置 → 模型」里配的那把 Key——请求由市场发出、扣你的额度,本插件既不读也不存 Key,只发这一次请求" }, aiOn ? "AI 搜索:开" : "AI 搜索:关") : null,
1179
+ aiOn && aiReady ? h("button", { style: btn, disabled: aiBusy || query.trim() === "", onClick: runAi }, aiBusy ? "AI 正在挑…" : "AI 来找") : null,
1180
+ aiOn && aiReady ? h("div", { style: { ...hint, width: "100%" } }, "AI 搜索的 token 消耗记在插件市场那边:它拿你在「设置 → 模型」里配的模型去问,本插件只把问题转过去、把结果拿回来,不读也不存你的 Key。") : null,
1097
1181
  active ? h("button", { style: btn, onClick: () => { setQuery(""); setCategory("all") } }, "回到已装") : null,
1098
1182
  h("button", { style: btn, onClick: addAllLocal, title: "把本机已装的全部插件加入选择(默认插件预设,可逐个改成自定义配置)" }, "全部加入"),
1099
1183
  h("button", { style: btn, disabled: picked.length === 0, onClick: clearSelected, title: "清空当前选择" }, "清除选择"),
@@ -1113,6 +1197,26 @@ window.__ModuleLoader__.load({
1113
1197
  onClick: () => setCategory(c.id),
1114
1198
  title: "只看「" + c.label + "」" + (c.count ? ",市场内 " + c.count + " 个" : ""),
1115
1199
  }, c.label + (c.count ? " " + c.count : "")))) : null,
1200
+ aiReady === false ? h("div", { style: hint }, "当前装的插件市场没有 AI 搜索(旧版本或未安装):这里只做关键词搜索。装新版 dshmarket 后开关会自动出现。") : null,
1201
+ aiRun ? h("div", { style: { ...box, display: "flex", flexDirection: "column", gap: "6px", borderColor: aiRun.error ? "#ff6b6b" : "var(--dsw-alias-border-l2)" } },
1202
+ h("div", { style: row },
1203
+ h("div", { style: strong }, aiRun.error ? "AI 搜索没成功" : "AI 挑的插件"),
1204
+ h("span", { style: hint }, aiRun.model ? "模型:" + aiRun.model : ""),
1205
+ h("button", { style: btn, onClick: () => setAiRun(null) }, "收起")),
1206
+ aiRun.error ? h("div", { style: { ...hint, color: "#ff6b6b" } }, aiRun.error + (aiRun.code === "no-model" ? " 先在「设置 → 模型」里配一个模型再试。" : "")) : null,
1207
+ aiRun.intro ? h("div", { style: hint }, aiRun.intro) : null,
1208
+ aiRun.picks.length === 0 && !aiRun.error ? h("div", { style: hint }, "这次没挑出合适的插件,换个说法再试。") : null,
1209
+ aiRun.picks.map((item) => {
1210
+ const meta = marketInfo[item.name] || {}
1211
+ const on = Boolean(selected[item.name])
1212
+ const entry = { name: item.name, installed: false, hasMarket: true, marketVersion: meta.version || "", version: meta.version || "" }
1213
+ return h("div", { key: item.name, style: { display: "flex", gap: "8px", alignItems: "flex-start", padding: "6px 2px", borderTop: "0.5px solid var(--dsw-alias-border-l2)" } },
1214
+ h("input", { type: "checkbox", checked: on, onChange: () => toggle(entry), style: { marginTop: "3px" } }),
1215
+ h("div", { style: { flex: "1 1 auto", minWidth: 0 } },
1216
+ h("div", { style: { ...strong, fontSize: "12.5px" } }, item.name + (meta.version ? " · v" + meta.version : "")),
1217
+ h("div", { style: hint }, item.description || ""),
1218
+ item.why ? h("div", { style: { ...hint, color: "var(--dsw-alias-label-tertiary, #8b8f99)" } }, "为什么:" + item.why) : null))
1219
+ })) : null,
1116
1220
  search.error ? h("div", { style: { ...hint, color: "#ffb020" } }, search.error) : null,
1117
1221
  h("div", { style: { display: "flex", flexDirection: "column", gap: "3px", maxHeight: "320px", overflow: "auto" } },
1118
1222
  rows.length === 0
@@ -1868,7 +1972,7 @@ window.__ModuleLoader__.load({
1868
1972
  h("div", { style: { maxWidth: "1020px", margin: "0 auto", display: "flex", flexDirection: "column", gap: "14px" } },
1869
1973
  h("div", { style: { display: "flex", alignItems: "baseline", gap: "10px", flexWrap: "wrap" } },
1870
1974
  h("h2", { style: { margin: 0, fontSize: "20px", fontWeight: 600 } }, "整合包"),
1871
- h("span", { style: hint }, "把多个插件打成一个 .dshpack:完整版自带本体,轻量版联网取包")),
1975
+ h("span", { style: hint }, ((status && status.config && status.config.tagline) || "谁说 dsh 不能整整合包呢?(你说这几个插件整一块不牛逼坏了)"))),
1872
1976
  h("div", { style: row }, tabs.map(([key, text]) => tabBtn(key, text)), envLine),
1873
1977
  panels,
1874
1978
  footNote,
package/docs/DETAIL.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  把多个 DSH 插件连同配置与数据打成一个 `.dshpack`,在另一台机器上一次装好。有插件市场时按市场版本装、识别成分组;没有市场时裸 DSH 也能用包内的独立安装器装完。
4
4
 
5
+ > 定位语(`tagline`,默认配置里可改):谁说dsh不能整整合包呢?(你说这几个插件整一块不牛逼坏了)
6
+
5
7
  ## 能做什么
6
8
 
7
9
  - **打包**:从「本机已装」或「插件市场目录」挑插件,逐个选版本与来源;三种策略——完整包、仅下载码、混合包。
@@ -72,6 +74,13 @@ data/<目录名>/** 插件数据快照(小文本)
72
74
  - 分组:只读 `.dsh-market/state.json` 做折叠展示;按组打包会把组名写进清单,装到同样装了市场的机器上并进同名分组(`applyMarketGroups`,同名组并成员、其它键原样保留)。
73
75
  - 没装市场:打包、装包、检测、校验、配置回填、三处入口照常,只少 Discover 界面与目录搜索。
74
76
 
77
+ ## AI 搜索(借用插件市场的新接口)
78
+
79
+ - 市场新版本提供 `POST /dsh-market/ai-search`:body `{query}`,返回 `{result:{intro, picks:[{name, description, why, …}], model}}`;409 = `no-model`(还没配模型)。
80
+ - 打开开关后:输入一句话 → 回车或点「AI 来找」→ 拿回挑中的条目 → 自动补一次 `/catalog/lookup` 取版本 → 勾选即进打包(按市场版本装)。
81
+ - 失败分三种:旧版市场没有路由(开关不出现)、`no-model`(提示去「设置 → 模型」配一个)、模型报错(原样显示消息,关键词搜索照常可用)。
82
+ - 不在本插件里保存模型与 Key:模型调用完全由插件市场那边完成,这里只做一层界面与结果映射。市场也没有自己的 token——它走宿主 `llm` 服务 + `agentDefaultModel.currentSelection()`,扣的是你「设置 → 模型」里的那把 Key。
83
+
75
84
  ## 安装顺序与进度窗
76
85
 
77
86
  - 打包与安装共用任务队列:`POST /pack|/install { async: true }` 立即返回 job,`GET /jobs` 轮询;`/jobs/cancel` 终止(包在内存组装,取消不落盘)、`/jobs/ack` 续跑、`/jobs/dismiss` 删记录、`/jobs/clear` 清收尾。
package/index.js CHANGED
@@ -342,6 +342,8 @@ export default {
342
342
  json(res, result.ok ? 200 : 502, { ...result, catalog: (() => { try { return catalogSummary(config) } catch { return null } })() })
343
343
  })
344
344
 
345
+ // 同一个词来回翻页、切分类时不必重算:结果只跟目录、已装清单和参数有关,留 20 秒
346
+ const searchCache = new Map()
345
347
  route('/dsh-modpack-kit/api/catalog/search', async (req, res) => {
346
348
  if (!needPost(req, res)) return
347
349
  const body = await readJsonBody(req)
@@ -352,15 +354,24 @@ export default {
352
354
  // 和市场侧统一用同一套 23 类,否则按 theme/memory 筛时本机独有的插件会被漏掉
353
355
  category: localCategories[p.name] || classifyPlugin({ name: p.name, description: p.description || '' }).id,
354
356
  }))
357
+ const cacheKey = JSON.stringify([body.query || '', body.category || 'all', Number(body.page) || 1, Number(body.pageSize) || 0, body.sort || '', installed.length])
358
+ const cached = searchCache.get(cacheKey)
359
+ if (cached && Date.now() - cached.at < 20000) {
360
+ json(res, 200, cached.data)
361
+ return
362
+ }
355
363
  try {
356
- json(res, 200, searchCatalog(config, {
364
+ const data = searchCatalog(config, {
357
365
  query: body.query,
358
366
  category: body.category,
359
367
  page: body.page,
360
368
  pageSize: body.pageSize,
361
369
  sort: body.sort,
362
370
  installed,
363
- }))
371
+ })
372
+ searchCache.set(cacheKey, { at: Date.now(), data })
373
+ if (searchCache.size > 40) searchCache.delete(searchCache.keys().next().value)
374
+ json(res, 200, data)
364
375
  } catch (e) {
365
376
  json(res, 500, { ok: false, error: String((e && e.message) || e), items: [] })
366
377
  }
package/lib/store.mjs CHANGED
@@ -33,6 +33,8 @@ export const HOSTS_VERSION = 2
33
33
  export const NET_VERSION = 2
34
34
 
35
35
  export const DEFAULT_CONFIG = {
36
+ // 插件页标题旁那句定位语;市场条目描述开头也用同一句(见 dev/marketplace-awesome-dsh-plugin.yml)
37
+ tagline: '谁说dsh不能整整合包呢?(你说这几个插件整一块不牛逼坏了)',
36
38
  profile: '',
37
39
  packDir: '',
38
40
  vendorDir: '',
@@ -133,6 +135,8 @@ export function clampConfig(raw) {
133
135
  cfg.maxDownloadBytes = Math.min(4096 * oneMb, Math.max(16 * oneMb, Math.floor(Number(cfg.maxDownloadBytes) || DEFAULT_CONFIG.maxDownloadBytes)))
134
136
  // 版本清单上限:4~512 MB,默认 64
135
137
  cfg.maxMetadataBytes = Math.min(512, Math.max(4, Math.floor(Number(cfg.maxMetadataBytes) || DEFAULT_CONFIG.maxMetadataBytes)))
138
+ // 定位语:一句话,别让它变成一篇文章
139
+ cfg.tagline = String(cfg.tagline || DEFAULT_CONFIG.tagline).slice(0, 120)
136
140
  // 进度窗位置不在这里管:它由界面自己拖动并存在浏览器本地,服务端不需要知道
137
141
  // 打包前安全检测是强制的:设置里怎么写都不认,打包一律扫。
138
142
  cfg.scanBeforePack = true
package/locale/en.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "Modpack Kit",
4
- "description": "PCL/HMCL-style modpacks for DeepSeek Harness: bundle plugins with their config and data into one .dshpack and install in one pass. Three strategies: full (installs offline), download-only (smallest), hybrid (per-plugin — only what cannot be fetched by version ships inside). Packing scans in memory and redacts suspected credentials (never written to disk; high-risk findings pause until confirmed); installing re-checks sha256, dependencies and licences. Categories, search, paging and groups share the plugin market, and installed plugins register as market versions. The plugin market is recommended, not required.",
4
+ "description": "Who says DSH cannot do modpacks? (Put these plugins together and it is genuinely good.) Bundle DeepSeek Harness plugins with their config and data into one .dshpack: one-click install, works offline, three strategies, groups share the plugin market. npm: https://www.npmjs.com/package/dsh-modpack-kit. Search integrates the market AI search.",
5
5
  "detail": "docs/DETAIL.md"
6
6
  }
7
7
  }
package/locale/zh.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "整合包",
4
- "description": "类似 HMCL / PCL 的 DSH 整合包工具:把多个插件连同配置与数据打成一个 .dshpack,换台机器一次装好。三种策略——完整包(不联网也能装)、仅下载码(体积最小)、混合包(按插件分档,只把离不开本体的那几个打全)。打包前在内存里强制做安全扫描并擦除疑似凭据(原文不落盘,高危先停下等确认),安装前校验 sha256、依赖与许可证;分类、搜索、分页与分组和插件市场同源,装完按市场版登记。建议先装插件市场(dshmarket),不是必须。",
4
+ "description": "谁说dsh不能整整合包呢?(你说这几个插件整一块不牛逼坏了) 把多个 DeepSeek Harness 插件连同配置与数据打成一个 .dshpack,一键安装、离线可装;三种策略、分组同源插件市场。npm:https://www.npmjs.com/package/dsh-modpack-kit。搜索支持 AI 搜索(借插件市场新版本的接口)。",
5
5
  "detail": "docs/DETAIL.md"
6
6
  }
7
7
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-modpack-kit",
3
- "version": "0.2.0",
4
- "description": "PCL/HMCL-style modpacks for DeepSeek Harness: bundle plugins with their config and data into one .dshpack and install in one pass. Three strategies: full (installs offline), download-only (smallest), hybrid (per-plugin — only what cannot be fetched by version ships inside). Packing scans in memory and redacts suspected credentials (never written to disk; high-risk findings pause until confirmed); installing re-checks sha256, dependencies and licences. Categories, search, paging and groups share the plugin market, and installed plugins register as market versions. The plugin market is recommended, not required.",
3
+ "version": "0.2.1",
4
+ "description": "谁说dsh不能整整合包呢?(你说这几个插件整一块不牛逼坏了) 把多个 DeepSeek Harness 插件连同配置与数据打成一个 .dshpack,一键安装、离线可装;三种策略、分组同源插件市场。npm:https://www.npmjs.com/package/dsh-modpack-kit",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "exports": {
@@ -30,7 +30,15 @@
30
30
  "pack",
31
31
  "installer",
32
32
  "plugin-manager",
33
- "security-scan"
33
+ "security-scan",
34
+ "dsh",
35
+ "deepseek-harness",
36
+ "dshpack",
37
+ "plugin-bundle",
38
+ "one-click-install",
39
+ "offline-install",
40
+ "migrate-plugins",
41
+ "ai-search"
34
42
  ],
35
43
  "license": "PolyForm-Noncommercial-1.0.0",
36
44
  "author": "Vesna-Strivozha-cn",