dsh-life-pack 0.3.86 → 0.3.87

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.
Files changed (74) hide show
  1. package/dist/base-ui.d.ts +1 -1
  2. package/dist/base-ui.d.ts.map +1 -1
  3. package/dist/base-ui.js +1 -1
  4. package/dist/base-ui.js.map +1 -1
  5. package/dist/client.js +756 -179
  6. package/dist/client.js.map +1 -1
  7. package/dist/config-panel-contract.d.ts +4 -1
  8. package/dist/config-panel-contract.d.ts.map +1 -1
  9. package/dist/config-panel-contract.js +4 -1
  10. package/dist/config-panel-contract.js.map +1 -1
  11. package/dist/config-panel-value.d.ts.map +1 -1
  12. package/dist/config-panel-value.js +18 -11
  13. package/dist/config-panel-value.js.map +1 -1
  14. package/dist/config-panel-view.d.ts +2 -0
  15. package/dist/config-panel-view.d.ts.map +1 -1
  16. package/dist/config-panel-view.js +48 -41
  17. package/dist/config-panel-view.js.map +1 -1
  18. package/dist/config-panel.d.ts.map +1 -1
  19. package/dist/config-panel.js +4 -3
  20. package/dist/config-panel.js.map +1 -1
  21. package/dist/directory-browser-contract.d.ts +0 -1
  22. package/dist/directory-browser-contract.d.ts.map +1 -1
  23. package/dist/directory-browser-contract.js +12 -8
  24. package/dist/directory-browser-contract.js.map +1 -1
  25. package/dist/directory-browser-parts.d.ts.map +1 -1
  26. package/dist/directory-browser-parts.js +13 -8
  27. package/dist/directory-browser-parts.js.map +1 -1
  28. package/dist/directory-browser-state.d.ts.map +1 -1
  29. package/dist/directory-browser-state.js +7 -3
  30. package/dist/directory-browser-state.js.map +1 -1
  31. package/dist/entries/en.d.ts +147 -0
  32. package/dist/entries/en.d.ts.map +1 -0
  33. package/dist/entries/en.js +162 -0
  34. package/dist/entries/en.js.map +1 -0
  35. package/dist/entries/index.d.ts +307 -0
  36. package/dist/entries/index.d.ts.map +1 -0
  37. package/dist/entries/index.js +16 -0
  38. package/dist/entries/index.js.map +1 -0
  39. package/dist/entries/zh.d.ts +147 -0
  40. package/dist/entries/zh.d.ts.map +1 -0
  41. package/dist/entries/zh.js +162 -0
  42. package/dist/entries/zh.js.map +1 -0
  43. package/dist/health-contract.d.ts +6 -0
  44. package/dist/health-contract.d.ts.map +1 -1
  45. package/dist/health-contract.js +6 -0
  46. package/dist/health-contract.js.map +1 -1
  47. package/dist/health-fetch.d.ts.map +1 -1
  48. package/dist/health-fetch.js +9 -6
  49. package/dist/health-fetch.js.map +1 -1
  50. package/dist/health-view.d.ts +2 -0
  51. package/dist/health-view.d.ts.map +1 -1
  52. package/dist/health-view.js +38 -24
  53. package/dist/health-view.js.map +1 -1
  54. package/dist/manual-entry.d.ts.map +1 -1
  55. package/dist/manual-entry.js +7 -6
  56. package/dist/manual-entry.js.map +1 -1
  57. package/dist/nav.d.ts +11 -2
  58. package/dist/nav.d.ts.map +1 -1
  59. package/dist/nav.js +30 -15
  60. package/dist/nav.js.map +1 -1
  61. package/dist/shared-copy.generated.d.ts +15 -0
  62. package/dist/shared-copy.generated.d.ts.map +1 -0
  63. package/dist/shared-copy.generated.js +15 -0
  64. package/dist/shared-copy.generated.js.map +1 -0
  65. package/dist/update-batch.js +2 -2
  66. package/dist/update-batch.js.map +1 -1
  67. package/dist/update-contract.d.ts.map +1 -1
  68. package/dist/update-contract.js +10 -6
  69. package/dist/update-contract.js.map +1 -1
  70. package/dist/update-targets.d.ts +3 -0
  71. package/dist/update-targets.d.ts.map +1 -1
  72. package/dist/update-targets.js +21 -11
  73. package/dist/update-targets.js.map +1 -1
  74. package/package.json +6 -3
package/dist/client.js CHANGED
@@ -28,83 +28,573 @@ window.__ModuleLoader__.load({
28
28
  //#endregion
29
29
  let react = require("react");
30
30
  react = __toESM(react, 1);
31
+ //#region ../base-entries/dist/catalog.js
32
+ /**
33
+ * 定义词条表集合:原样返回入参,只为让调用处拿到**逐字窄类型**——
34
+ * `MessageId<typeof catalog>` 是字面量联合,不是 `string`。`const` 类型参数=调用处不必再写 `as const`。
35
+ */
36
+ function defineCatalog(catalog) {
37
+ return catalog;
38
+ }
39
+ /** 当前渲染语言;未进入上下文时是基准语言 zh(不启用多语言=逐字节不变)。 */
40
+ function currentRenderLanguage() {
41
+ return "zh";
42
+ }
43
+ //#endregion
44
+ //#region ../base-entries/dist/errors.js
45
+ /**
46
+ * 词条层错误:坏输入一律 throw,绝不返空串/undefined 冒充正常(ADR-0004 §2)。
47
+ *
48
+ * 判据面是 `code` 与结构化字段:诊断文本是开发者面向的串,**不进词条表**
49
+ * (词条表装的是显示文本);调用方与门禁读 code/字段,不读 message 的字面。
50
+ */
51
+ /** 词条层错误基类。 */
52
+ var EntriesError = class extends Error {
53
+ code;
54
+ constructor(code, message, options) {
55
+ super(message, options);
56
+ this.name = "EntriesError";
57
+ this.code = code;
58
+ }
59
+ };
60
+ /** 缺词条:回退链走完仍没有这条 key(ADR-0004 §2:不许静默出 undefined)。 */
61
+ var MissingMessageError = class extends EntriesError {
62
+ /** 缺的是哪条 key。 */
63
+ id;
64
+ /** 走过的回退链(按顺序,已去重)。 */
65
+ languages;
66
+ constructor(id, languages) {
67
+ super("ENTRIES_MISSING_MESSAGE", "缺词条「" + id + "」:回退链走完(" + languages.join(" → ") + ")都没有这条 key,不回退成空串——请补词条,或换用词条表里有的 key。");
68
+ this.name = "MissingMessageError";
69
+ this.id = id;
70
+ this.languages = languages;
71
+ }
72
+ };
73
+ /** 插值缺参:模板里有 `{name}`,params 里没有这个 name(缺参抛错,不静默留空)。 */
74
+ var MissingParamError = class extends EntriesError {
75
+ /** 缺的是哪个参数名。 */
76
+ param;
77
+ /** 出这条消息的模板(诊断用)。 */
78
+ template;
79
+ constructor(param, template) {
80
+ super("ENTRIES_MISSING_PARAM", "消息插值缺参数「" + param + "」(模板:" + template + ")——缺参不静默留空。");
81
+ this.name = "MissingParamError";
82
+ this.param = param;
83
+ this.template = template;
84
+ }
85
+ };
86
+ //#endregion
87
+ //#region ../base-entries/dist/evaluate.js
88
+ /** 具名占位:`{name}`,name 取标识符形(首字符字母或下划线)。 */
89
+ const PLACEHOLDER = /\{([A-Za-z_][A-Za-z0-9_]*)\}/g;
90
+ /** 参数取值:按 `string | number | undefined` 读——缺参是这一格的常态。 */
91
+ function paramOf(params, name) {
92
+ if (params === void 0) return void 0;
93
+ return params[name];
94
+ }
95
+ /**
96
+ * 默认后端:把 `{name}` 按参数替换掉。
97
+ *
98
+ * 缺参**抛 MissingParamError**(不静默留空);其余花括号形态(`{0}` 位置参数、
99
+ * 复数/选择)**原样留在文本里**——这是本期的已知近似,真 ICU/MF2 后端从端口接。
100
+ */
101
+ function evaluate(request) {
102
+ return request.template.replace(PLACEHOLDER, (_matched, name) => {
103
+ const value = paramOf(request.params, name);
104
+ if (value === void 0) throw new MissingParamError(name, request.template);
105
+ return String(value);
106
+ });
107
+ }
108
+ //#endregion
109
+ //#region ../base-entries/dist/language.js
110
+ /**
111
+ * 语言标识在本层只做一件事:**BCP 47 大小写不敏感**,取去空白的小写 canonical 形。
112
+ *
113
+ * 铁律二(概念唯一):可用语言清单**不在这里,也不在本包任何地方**。清单与
114
+ * 「未识别的值报错并列出可用语言」的唯一权威是
115
+ * `packages/base-link-core/src/config/language.ts`(AVAILABLE_LANGUAGES/DEFAULT_LANGUAGE,
116
+ * ADR-0004 §4)。本包零运行时依赖,故不 import 它、也不复制那份清单;只复述
117
+ * 「大小写不敏感」这一条口径(去空白 + 小写)。合法性判定仍归语言选择层:
118
+ * 本层对任何 `string` 都走回退链,不判合法性。
119
+ */
120
+ /** BCP 47 大小写不敏感:去空白后取小写 canonical 形(`EN` → `en`)。 */
121
+ function canonicalLanguage(tag) {
122
+ return tag.trim().toLowerCase();
123
+ }
124
+ //#endregion
125
+ //#region ../base-entries/dist/resolve.js
126
+ /** 终站语言:回退链的最后一站(DSH 宿主口径:缺词条回退终止于 en)。 */
127
+ const TERMINAL_LANGUAGE = "en";
128
+ /** 回退链:请求语言 → 基准语言 → 终站,去重保序。空串(调用方没给语言)退化为 [zh, en]。 */
129
+ function fallbackChain(language) {
130
+ const chain = [];
131
+ for (const candidate of [
132
+ canonicalLanguage(language),
133
+ "zh",
134
+ TERMINAL_LANGUAGE
135
+ ]) if (candidate !== "" && !chain.includes(candidate)) chain.push(candidate);
136
+ return chain;
137
+ }
138
+ /** 按链上这一站取表:先逐字命中语言键,再按 canonical 形命中一次(表键大小写不敏感)。 */
139
+ function tableFor(catalog, language) {
140
+ const exact = catalog[language];
141
+ if (exact !== void 0) return exact;
142
+ for (const key of Object.keys(catalog)) if (canonicalLanguage(key) === language) return catalog[key];
143
+ }
144
+ /**
145
+ * 表里读一条可用模板:按 `string | undefined` 读——表可能来自外部数据,运行期真会有缺口。
146
+ *
147
+ * 缺键与**空白值**都算「未录」(票 #1306)。空白值不当作显式空白:原样交给求值端口就等于
148
+ * 在页面上留一块看不见的空白,不崩、不报错、机器也查不到;按未录处理才会继续沿回退链取到
149
+ * 看得懂的那一站,全部语言都空白时由调用方收到 MissingMessageError。门禁同口径拒绝空白词条值
150
+ * (tooling/check-i18n-entries.mjs),两头都不放行「留空串当待译」。
151
+ */
152
+ function templateOf(table, id) {
153
+ const raw = table[id];
154
+ if (raw === void 0 || raw.trim() === "") return void 0;
155
+ return raw;
156
+ }
157
+ /**
158
+ * 按 key 取词条:请求语言 → 基准语言 zh → 终站 en,取到的那一条交给求值端口。
159
+ *
160
+ * 端口拿到的两种语言用途不同:`language`=调用方请求的语言(读者语言,数字形态按它走);
161
+ * `sourceLanguage`=实际取到这条词条的语言(回退命中时两者不同,真 ICU 后端按它判模板里的
162
+ * 复数/选择类别)。
163
+ */
164
+ function resolve(catalog, language, id, params, options) {
165
+ const requested = canonicalLanguage(language);
166
+ const chain = fallbackChain(language);
167
+ const evaluate$1 = options?.evaluate ?? evaluate;
168
+ for (const candidate of chain) {
169
+ const table = tableFor(catalog, candidate);
170
+ if (table === void 0) continue;
171
+ const template = templateOf(table, id);
172
+ if (template === void 0) continue;
173
+ return evaluate$1({
174
+ template,
175
+ language: requested === "" ? candidate : requested,
176
+ sourceLanguage: candidate,
177
+ ...params === void 0 ? {} : { params }
178
+ });
179
+ }
180
+ throw new MissingMessageError(id, chain);
181
+ }
182
+ //#endregion
183
+ //#region src/entries/index.ts
184
+ /** plugin-manager · 词条表集合(**加一门语言=加一个语言键**,不改代码)。
185
+ *
186
+ * 取词一律经 base-entries 的 resolve(回退链:请求语言 → zh → en,全缺抛 MissingMessageError):
187
+ * 本文件不自己实现回退链、不实现求值端口——机制住公共层包,词住本包(ADR-0004 §2/§3)。
188
+ * 形状照 `packages/skill-bill/src/entries/index.ts`(#1202 试点形状,不另起形状)。
189
+ */
190
+ /** 本包词条表集合。key 类型从 zh 那份派生:**拼错 key 编译期红**(TS2345)。 */
191
+ const PLUGIN_MANAGER_CATALOG = defineCatalog({
192
+ zh: {
193
+ "plugin-manager.client.c001": "翻到第{p0}页",
194
+ "plugin-manager.client.c002": "翻到第{p0}页",
195
+ "plugin-manager.client.c003": "上一跨页",
196
+ "plugin-manager.client.c004": "‹ 上一页",
197
+ "plugin-manager.client.c005": "下一跨页",
198
+ "plugin-manager.client.c006": "下一页 ›",
199
+ "plugin-manager.client.c007": "点一下翻到这一页 ›",
200
+ "plugin-manager.client.c008": "复制",
201
+ "plugin-manager.client.c009": "{p0} 未安装",
202
+ "plugin-manager.client.c010": "请补装后使用。",
203
+ "plugin-manager.client.c011": "一键安装",
204
+ "plugin-manager.client.c012": "备选:手动安装",
205
+ "plugin-manager.client.c013": "✓ 已复制",
206
+ "plugin-manager.client.c014": "爱生活",
207
+ "plugin-manager.client.c015": "对六家各跑一次配置体检(只看不改:不建目录、不改配置、不自动重置)",
208
+ "plugin-manager.client.c016": "体检",
209
+ "plugin-manager.client.c017": "体检中…",
210
+ "plugin-manager.client.c018": "体检",
211
+ "plugin-manager.client.c019": "爱生活技能页签",
212
+ "plugin-manager.client.c020": "这一家没装(或产物没注册页签槽)",
213
+ "plugin-manager.client.c021": "还没体检",
214
+ "plugin-manager.client.c022": "体检读数见本页签下方的表",
215
+ "plugin-manager.client.c023": "没有配置体检出口",
216
+ "plugin-manager.client.c024": "关闭使用手册",
217
+ "plugin-manager.client.c025": "关闭使用手册",
218
+ "plugin-manager.client.c026": "关闭",
219
+ "plugin-manager.client.c027": "爱生活",
220
+ "plugin-manager.config-panel-value.c001": "({p0},宿主未给报文)",
221
+ "plugin-manager.config-panel-value.c002": "{p0}\n改回「键: 值」的写法,或点「重置为默认」。",
222
+ "plugin-manager.config-panel-value.c003": "{p0}\n删掉页面上没有的行,或点「重置为默认」。",
223
+ "plugin-manager.config-panel-value.c004": "{p0}\n按本页的控件形状填,或点「重置为默认」。",
224
+ "plugin-manager.config-panel-value.c005": "{p0}\n技能出口没找到:先确认技能包已装好,再点「重新读取」。",
225
+ "plugin-manager.config-panel-value.c006": "{p0}\n改不动就点「重置为默认」,或照上面那条路径手工改配置文件。",
226
+ "plugin-manager.config-panel-value.c007": "宿主连接缺席:connection.rpc.call 不可用(通道 {p0}),稍后重试",
227
+ "plugin-manager.config-panel-value.c008": "回执信封异常(通道 {p0}),点重试重新读取",
228
+ "plugin-manager.config-panel-value.c009": "配置请求超时({p0}s,通道 {p1}):宿主未回,点重试重新读取",
229
+ "plugin-manager.config-panel-value.c010": "配置失败(通道 {p0}):{p1},点重试重新读取",
230
+ "plugin-manager.config-panel-view.c001": "已复制",
231
+ "plugin-manager.config-panel-view.c002": "复制失败",
232
+ "plugin-manager.config-panel-view.c003": "复制",
233
+ "plugin-manager.config-panel-view.c004": "{p0} 项未保存",
234
+ "plugin-manager.config-panel-view.c005": "正在写入",
235
+ "plugin-manager.config-panel-view.c006": "已保存",
236
+ "plugin-manager.config-panel-view.c007": "配置里有值用不了",
237
+ "plugin-manager.config-panel-view.c008": "写入失败",
238
+ "plugin-manager.config-panel-view.c009": "将跟随更新",
239
+ "plugin-manager.config-panel-view.c010": "浏览文件夹",
240
+ "plugin-manager.config-panel-view.c011": "可改",
241
+ "plugin-manager.config-panel-view.c012": "配置",
242
+ "plugin-manager.config-panel-view.c013": "配置文件",
243
+ "plugin-manager.config-panel-view.c014": "(配置文件刚按默认值生成)",
244
+ "plugin-manager.config-panel-view.c015": "数据目录",
245
+ "plugin-manager.config-panel-view.c016": "重试",
246
+ "plugin-manager.config-panel-view.c017": "重置为默认",
247
+ "plugin-manager.config-panel-view.c018": "处理中",
248
+ "plugin-manager.config-panel-view.c019": "保存({p0} 项未保存)",
249
+ "plugin-manager.config-panel-view.c020": "保存",
250
+ "plugin-manager.config-panel-view.c021": "重置为默认",
251
+ "plugin-manager.config-panel-view.c022": "重新读取",
252
+ "plugin-manager.config-panel-view.c023": "浏览改动后请点保存({p0} 项未保存),保存后跟随项自动更新",
253
+ "plugin-manager.config-panel-view.c024": "没有未保存的改动",
254
+ "plugin-manager.config-panel-view.c025": "配置读取中",
255
+ "plugin-manager.config-panel-view.c026": "已唤起系统文件夹对话框:选中后自动填上,取消则不动。",
256
+ "plugin-manager.config-panel-view.c027": "选择文件夹",
257
+ "plugin-manager.config-panel-view.c028": "关闭",
258
+ "plugin-manager.config-panel-view.c029": "上一级",
259
+ "plugin-manager.config-panel-view.c030": "直接填绝对路径,回车即进入",
260
+ "plugin-manager.config-panel-view.c031": "转到",
261
+ "plugin-manager.config-panel-view.c032": "显示隐藏目录({p0})",
262
+ "plugin-manager.config-panel-view.c033": "这个目录里没有子目录。",
263
+ "plugin-manager.config-panel-view.c034": "正在读取",
264
+ "plugin-manager.config-panel-view.c035": "新建文件夹",
265
+ "plugin-manager.config-panel-view.c036": "创建",
266
+ "plugin-manager.config-panel-view.c037": "取消",
267
+ "plugin-manager.config-panel-view.c038": "选",
268
+ "plugin-manager.config-panel-view.c039": "已选",
269
+ "plugin-manager.config-panel-view.c040": "选定这个目录",
270
+ "plugin-manager.config-panel-view.c041": "取消",
271
+ "plugin-manager.config-panel-view.c042": "将选定:",
272
+ "plugin-manager.config-panel.c001": "打不开系统文件夹对话框({p0}):请直接在框里填绝对路径。",
273
+ "plugin-manager.config-panel.c002": "已保存,立即生效(不用重启宿主)",
274
+ "plugin-manager.config-panel.c003": "已重置为默认(原配置已另存一份 .bak)",
275
+ "plugin-manager.directory-browser-contract.c001": "打不开系统文件夹对话框{p0}:请直接在框里填绝对路径。",
276
+ "plugin-manager.directory-browser-contract.c002": "列举目录",
277
+ "plugin-manager.directory-browser-contract.c003": "列举目录",
278
+ "plugin-manager.directory-browser-contract.c004": "列举目录",
279
+ "plugin-manager.directory-browser-contract.c005": "新建文件夹",
280
+ "plugin-manager.directory-browser-contract.c006": "文件夹名不能为空。",
281
+ "plugin-manager.directory-browser-contract.c007": "文件夹名里不能带路径分隔符。",
282
+ "plugin-manager.directory-browser-contract.c008": "「.」与「..」不是文件夹名。",
283
+ "plugin-manager.directory-browser-state.c001": "浏览失败",
284
+ "plugin-manager.directory-browser-state.c002": "还没有打开任何目录,无法新建文件夹。",
285
+ "plugin-manager.directory-browser-state.c003": "{p0}({p1} 行)",
286
+ "plugin-manager.health-fetch.c001": "体检超时({p0}s):技能没在时限内回话。",
287
+ "plugin-manager.health-fetch.c002": "回执信封异常(非 ok 信封)。",
288
+ "plugin-manager.health-fetch.c003": "体检没跑起来。",
289
+ "plugin-manager.health-fetch.c004": "体检报告形状认不出(技能包与总管版本对不上?)。",
290
+ "plugin-manager.health-fetch.c005": "体检没跑起来:{p0}",
291
+ "plugin-manager.health-fetch.c006": "宿主连接缺席:connection.rpc.call 不可用",
292
+ "plugin-manager.nav.c001": "未安装[{p0}],请补装后使用:{p1}",
293
+ "plugin-manager.nav.c008": "使用手册",
294
+ "plugin-manager.nav.c009": "打开使用手册",
295
+ "plugin-manager.update-contract.c001": "面板不认识这个原因码({p0})。",
296
+ "plugin-manager.update-contract.c002": "面板连不上总管插件。重启 DSH 后重试。",
297
+ "plugin-manager.update-contract.c003": "面板与总管之间的请求出错了(属程序缺陷)。",
298
+ "plugin-manager.update-contract.c004": "面板与总管之间的请求出错了(属程序缺陷)。",
299
+ "plugin-manager.health-view.c001": "红",
300
+ "plugin-manager.health-view.c002": "黄",
301
+ "plugin-manager.health-view.c003": "绿",
302
+ "plugin-manager.health-view.c004": "{p0} 家没有体检出口",
303
+ "plugin-manager.health-view.c005": "还没有任何一家登记体检出口",
304
+ "plugin-manager.health-view.c006": "{p0} 家都没有体检出口(通道名没登记上)",
305
+ "plugin-manager.health-view.c007": "没有可体检的家:{p0}",
306
+ "plugin-manager.health-view.c008": "六家正常",
307
+ "plugin-manager.health-view.c009": "有出口的都正常",
308
+ "plugin-manager.health-view.c010": "还没体检",
309
+ "plugin-manager.health-view.c011": "要处理{p0}",
310
+ "plugin-manager.health-view.c012": "配置体检",
311
+ "plugin-manager.health-view.c013": "对六家各跑一次配置体检(只看不改:不建目录、不改配置、不自动重置)",
312
+ "plugin-manager.health-view.c014": "体检中…",
313
+ "plugin-manager.health-view.c015": "体检",
314
+ "plugin-manager.health-view.c016": "体检",
315
+ "plugin-manager.health-view.c017": "还没体检:点标题行那个「体检」。",
316
+ "plugin-manager.health-view.c018": "正在体检…",
317
+ "plugin-manager.health-view.c019": "落点根目录:{p0}",
318
+ "plugin-manager.health-view.c020": "(配置文件 {p0})",
319
+ "plugin-manager.health-view.c021": "· 来自{p0}",
320
+ "plugin-manager.health-view.c022": "去哪修:{p0}",
321
+ "plugin-manager.health-view.c023": "正常 {p0} 条",
322
+ "plugin-manager.health-view.c024": "(下列各项都正常工作)",
323
+ "plugin-manager.config-panel-value.c011": "配置请求超时({p0}s):宿主未回",
324
+ "plugin-manager.directory-browser-parts.c001": "固定磁盘",
325
+ "plugin-manager.directory-browser-parts.c002": "网络驱动器",
326
+ "plugin-manager.directory-browser-parts.c003": "可移动磁盘",
327
+ "plugin-manager.directory-browser-parts.c004": "光驱",
328
+ "plugin-manager.directory-browser-parts.c005": "磁盘",
329
+ "plugin-manager.update-targets.c001": "爱生活",
330
+ "plugin-manager.config-panel-contract.c001": "高级",
331
+ "plugin-manager.nav.c002": "饼干记账",
332
+ "plugin-manager.nav.c003": "卡路里",
333
+ "plugin-manager.nav.c004": "备忘录",
334
+ "plugin-manager.nav.c005": "作息管家",
335
+ "plugin-manager.nav.c006": "居家管家",
336
+ "plugin-manager.nav.c007": "私家大厨"
337
+ },
338
+ en: {
339
+ "plugin-manager.client.c001": "Go to page {p0}",
340
+ "plugin-manager.client.c002": "Go to page {p0}",
341
+ "plugin-manager.client.c003": "Previous page group",
342
+ "plugin-manager.client.c004": "‹ Previous page",
343
+ "plugin-manager.client.c005": "Next page group",
344
+ "plugin-manager.client.c006": "Next page ›",
345
+ "plugin-manager.client.c007": "Click to go to this page ›",
346
+ "plugin-manager.client.c008": "Copy",
347
+ "plugin-manager.client.c009": "{p0} is not installed",
348
+ "plugin-manager.client.c010": "Please install it before use.",
349
+ "plugin-manager.client.c011": "One-click install",
350
+ "plugin-manager.client.c012": "Alternative: manual install",
351
+ "plugin-manager.client.c013": "✓ Copied",
352
+ "plugin-manager.client.c014": "iLife",
353
+ "plugin-manager.client.c015": "Run a config health check on all six plugins (read-only: no directories created, no config changed, no auto reset)",
354
+ "plugin-manager.client.c016": "Health check",
355
+ "plugin-manager.client.c017": "Checking…",
356
+ "plugin-manager.client.c018": "Health check",
357
+ "plugin-manager.client.c019": "iLife skill tab",
358
+ "plugin-manager.client.c020": "This plugin is not installed (or its output did not register a tab slot)",
359
+ "plugin-manager.client.c021": "Not checked yet",
360
+ "plugin-manager.client.c022": "Health check readings are in the table below this tab",
361
+ "plugin-manager.client.c023": "No config health check exit",
362
+ "plugin-manager.client.c024": "Close user manual",
363
+ "plugin-manager.client.c025": "Close user manual",
364
+ "plugin-manager.client.c026": "Close",
365
+ "plugin-manager.client.c027": "iLife",
366
+ "plugin-manager.config-panel-value.c001": "({p0}, host gave no payload)",
367
+ "plugin-manager.config-panel-value.c002": "{p0}\nRewrite it as `key: value`, or click \"Reset to default\".",
368
+ "plugin-manager.config-panel-value.c003": "{p0}\nDelete the lines not on the page, or click \"Reset to default\".",
369
+ "plugin-manager.config-panel-value.c004": "{p0}\nFill it in the control shape on this page, or click \"Reset to default\".",
370
+ "plugin-manager.config-panel-value.c005": "{p0}\nSkill exit not found: confirm the skill package is installed, then click \"Reload\".",
371
+ "plugin-manager.config-panel-value.c006": "{p0}\nIf it still won't change, click \"Reset to default\", or edit the config file manually at the path above.",
372
+ "plugin-manager.config-panel-value.c007": "Host connection missing: connection.rpc.call is unavailable (channel {p0}); try again later",
373
+ "plugin-manager.config-panel-value.c008": "Malformed receipt envelope (channel {p0}); click Retry to reload",
374
+ "plugin-manager.config-panel-value.c009": "Config request timed out ({p0}s, channel {p1}): no reply from the host; click Retry to reload",
375
+ "plugin-manager.config-panel-value.c010": "Config failed (channel {p0}): {p1}; click Retry to reload",
376
+ "plugin-manager.config-panel-view.c001": "Copied",
377
+ "plugin-manager.config-panel-view.c002": "Copy failed",
378
+ "plugin-manager.config-panel-view.c003": "Copy",
379
+ "plugin-manager.config-panel-view.c004": "{p0} items not saved",
380
+ "plugin-manager.config-panel-view.c005": "Saving",
381
+ "plugin-manager.config-panel-view.c006": "Saved",
382
+ "plugin-manager.config-panel-view.c007": "A value in the config cannot be used",
383
+ "plugin-manager.config-panel-view.c008": "Save failed",
384
+ "plugin-manager.config-panel-view.c009": "Follows updates",
385
+ "plugin-manager.config-panel-view.c010": "Browse folder",
386
+ "plugin-manager.config-panel-view.c011": "Editable",
387
+ "plugin-manager.config-panel-view.c012": "Config",
388
+ "plugin-manager.config-panel-view.c013": "Config file",
389
+ "plugin-manager.config-panel-view.c014": "(config file was just generated from defaults)",
390
+ "plugin-manager.config-panel-view.c015": "Data directory",
391
+ "plugin-manager.config-panel-view.c016": "Retry",
392
+ "plugin-manager.config-panel-view.c017": "Reset to default",
393
+ "plugin-manager.config-panel-view.c018": "Working",
394
+ "plugin-manager.config-panel-view.c019": "Save ({p0} items not saved)",
395
+ "plugin-manager.config-panel-view.c020": "Save",
396
+ "plugin-manager.config-panel-view.c021": "Reset to default",
397
+ "plugin-manager.config-panel-view.c022": "Reload",
398
+ "plugin-manager.config-panel-view.c023": "After browsing, click Save ({p0} items not saved); following items update automatically after saving",
399
+ "plugin-manager.config-panel-view.c024": "No unsaved changes",
400
+ "plugin-manager.config-panel-view.c025": "Reading config",
401
+ "plugin-manager.config-panel-view.c026": "The system folder dialog is open: pick a folder to fill it in, or cancel to leave it unchanged.",
402
+ "plugin-manager.config-panel-view.c027": "Choose folder",
403
+ "plugin-manager.config-panel-view.c028": "Close",
404
+ "plugin-manager.config-panel-view.c029": "Up",
405
+ "plugin-manager.config-panel-view.c030": "Type an absolute path and press Enter to open",
406
+ "plugin-manager.config-panel-view.c031": "Go",
407
+ "plugin-manager.config-panel-view.c032": "Show hidden folders ({p0})",
408
+ "plugin-manager.config-panel-view.c033": "No subfolders in this folder.",
409
+ "plugin-manager.config-panel-view.c034": "Reading",
410
+ "plugin-manager.config-panel-view.c035": "New folder",
411
+ "plugin-manager.config-panel-view.c036": "Create",
412
+ "plugin-manager.config-panel-view.c037": "Cancel",
413
+ "plugin-manager.config-panel-view.c038": "Select",
414
+ "plugin-manager.config-panel-view.c039": "Selected",
415
+ "plugin-manager.config-panel-view.c040": "Use this folder",
416
+ "plugin-manager.config-panel-view.c041": "Cancel",
417
+ "plugin-manager.config-panel-view.c042": "Selected:",
418
+ "plugin-manager.config-panel.c001": "Cannot open the system folder dialog ({p0}): please type an absolute path in the field.",
419
+ "plugin-manager.config-panel.c002": "Saved; takes effect immediately (no host restart needed)",
420
+ "plugin-manager.config-panel.c003": "Reset to default (the original config was saved as a .bak copy)",
421
+ "plugin-manager.directory-browser-contract.c001": "Cannot open the system folder dialog{p0}: please type an absolute path in the field.",
422
+ "plugin-manager.directory-browser-contract.c002": "List directory",
423
+ "plugin-manager.directory-browser-contract.c003": "List directory",
424
+ "plugin-manager.directory-browser-contract.c004": "List directory",
425
+ "plugin-manager.directory-browser-contract.c005": "New folder",
426
+ "plugin-manager.directory-browser-contract.c006": "Folder name cannot be empty.",
427
+ "plugin-manager.directory-browser-contract.c007": "Folder name cannot contain a path separator.",
428
+ "plugin-manager.directory-browser-contract.c008": "\".\" and \"..\" are not folder names.",
429
+ "plugin-manager.directory-browser-state.c001": "Browse failed",
430
+ "plugin-manager.directory-browser-state.c002": "No directory is open, cannot create a folder.",
431
+ "plugin-manager.directory-browser-state.c003": "{p0} ({p1} rows)",
432
+ "plugin-manager.health-fetch.c001": "Health check timed out ({p0}s): the skill did not reply in time.",
433
+ "plugin-manager.health-fetch.c002": "Malformed receipt envelope (not an ok envelope).",
434
+ "plugin-manager.health-fetch.c003": "Health check did not start.",
435
+ "plugin-manager.health-fetch.c004": "Health report shape not recognized (skill package and manager versions out of sync?).",
436
+ "plugin-manager.health-fetch.c005": "Health check did not start: {p0}",
437
+ "plugin-manager.health-fetch.c006": "Host connection missing: connection.rpc.call is unavailable",
438
+ "plugin-manager.nav.c001": "Not installed [{p0}]; install it before use: {p1}",
439
+ "plugin-manager.nav.c008": "User manual",
440
+ "plugin-manager.nav.c009": "Open user manual",
441
+ "plugin-manager.update-contract.c001": "The panel does not recognize this reason code ({p0}).",
442
+ "plugin-manager.update-contract.c002": "The panel cannot reach the manager plugin. Restart DSH and try again.",
443
+ "plugin-manager.update-contract.c003": "The request between the panel and the manager failed (a program defect).",
444
+ "plugin-manager.update-contract.c004": "The request between the panel and the manager failed (a program defect).",
445
+ "plugin-manager.health-view.c001": "Red",
446
+ "plugin-manager.health-view.c002": "Yellow",
447
+ "plugin-manager.health-view.c003": "Green",
448
+ "plugin-manager.health-view.c004": "{p0} plugins have no health check exit",
449
+ "plugin-manager.health-view.c005": "No plugin has registered a health check exit yet",
450
+ "plugin-manager.health-view.c006": "None of the {p0} plugins has a health check exit (channel name not registered)",
451
+ "plugin-manager.health-view.c007": "No plugin can be checked: {p0}",
452
+ "plugin-manager.health-view.c008": "All six are normal",
453
+ "plugin-manager.health-view.c009": "All with exits are normal",
454
+ "plugin-manager.health-view.c010": "Not checked yet",
455
+ "plugin-manager.health-view.c011": "to fix{p0}",
456
+ "plugin-manager.health-view.c012": "Config health check",
457
+ "plugin-manager.health-view.c013": "Run a config health check on all six plugins (read-only: no directories created, no config changed, no auto reset)",
458
+ "plugin-manager.health-view.c014": "Checking…",
459
+ "plugin-manager.health-view.c015": "Health check",
460
+ "plugin-manager.health-view.c016": "Health check",
461
+ "plugin-manager.health-view.c017": "Not checked yet: click the \"Health check\" in the title row.",
462
+ "plugin-manager.health-view.c018": "Checking…",
463
+ "plugin-manager.health-view.c019": "Root directory: {p0}",
464
+ "plugin-manager.health-view.c020": " (config file {p0})",
465
+ "plugin-manager.health-view.c021": "· from {p0}",
466
+ "plugin-manager.health-view.c022": "Where to fix: {p0}",
467
+ "plugin-manager.health-view.c023": "{p0} normal",
468
+ "plugin-manager.health-view.c024": "(everything below works normally)",
469
+ "plugin-manager.config-panel-value.c011": "Config request timed out ({p0}s): no reply from the host",
470
+ "plugin-manager.directory-browser-parts.c001": "Fixed disk",
471
+ "plugin-manager.directory-browser-parts.c002": "Network drive",
472
+ "plugin-manager.directory-browser-parts.c003": "Removable disk",
473
+ "plugin-manager.directory-browser-parts.c004": "Optical drive",
474
+ "plugin-manager.directory-browser-parts.c005": "Disk",
475
+ "plugin-manager.update-targets.c001": "iLife",
476
+ "plugin-manager.config-panel-contract.c001": "Advanced",
477
+ "plugin-manager.nav.c002": "Cookie Accounting",
478
+ "plugin-manager.nav.c003": "Calories",
479
+ "plugin-manager.nav.c004": "Memos",
480
+ "plugin-manager.nav.c005": "Schedule Keeper",
481
+ "plugin-manager.nav.c006": "Home Keeper",
482
+ "plugin-manager.nav.c007": "Private Chef"
483
+ }
484
+ });
485
+ /** 取一条词条:语言来自渲染语言上下文;未进入上下文=zh,故不启用多语言时逐字节不变。 */
486
+ function m(id, params) {
487
+ return resolve(PLUGIN_MANAGER_CATALOG, currentRenderLanguage(), id, params);
488
+ }
489
+ //#endregion
490
+ //#region src/shared-copy.generated.ts
491
+ /** @generated —— 由 tooling/gen-shared-copy.mjs 自 tooling/shared-copy.json 生成,手改无效(#1231 守漂移)。
492
+ *
493
+ * 客户端通道名原先是七份手写副本(六家各自的契约件 + 总管导航表);漂开一次,面板就取不到那家
494
+ * 的配置体检(#735 实测的恒空回执)。现在唯一可编辑处是 tooling/shared-copy.json:改那张表再跑
495
+ * `node tooling/gen-shared-copy.mjs`,`--check` 判「盘上 ≡ 表派生」。
496
+ */
497
+ const PLUGIN_CHANNELS = {
498
+ bill: "/ilife-bill-ilife",
499
+ calorie: "/ilife-calorie",
500
+ memo: "/ilife-memo",
501
+ schedule: "/ilife-schedule-ilife",
502
+ home: "/ilife-home-ilife",
503
+ chef: "/ilife-chef"
504
+ };
31
505
  function dualInstallCmd(singlePlugin) {
32
506
  return "dsh plugin add dsh-life-pack " + singlePlugin;
33
507
  }
34
508
  /** P3 定案 6 tab(order 升序即 + 号菜单顺序;已打开条不受 order 控制)。 */
35
- const MANAGER_TABS = [
36
- {
37
- skill: "bill",
38
- slotId: "ilife:cookie",
39
- order: 70,
40
- title: "饼干记账",
41
- plugin: "dsh-bill-ilife",
42
- channel: "/ilife-bill-ilife"
43
- },
44
- {
45
- skill: "calorie",
46
- slotId: "ilife:calorie",
47
- order: 75,
48
- title: "卡路里",
49
- plugin: "dsh-calorie",
50
- channel: "/ilife-calorie"
51
- },
52
- {
53
- skill: "memo",
54
- slotId: "ilife:memo",
55
- order: 80,
56
- title: "备忘录",
57
- plugin: "dsh-memo-ilife",
58
- channel: "/ilife-memo"
59
- },
60
- {
61
- skill: "schedule",
62
- slotId: "ilife:schedule",
63
- order: 85,
64
- title: "作息管家",
65
- plugin: "dsh-schedule-ilife",
66
- channel: "/ilife-schedule-ilife"
67
- },
68
- {
69
- skill: "home",
70
- slotId: "ilife:home",
71
- order: 90,
72
- title: "居家管家",
73
- plugin: "dsh-home-ilife",
74
- channel: "/ilife-home-ilife"
75
- },
76
- {
77
- skill: "chef",
78
- slotId: "ilife:chef",
79
- order: 95,
80
- title: "私家大厨",
81
- plugin: "dsh-chef",
82
- channel: "/ilife-chef"
83
- }
84
- ];
509
+ function buildManagerTabs() {
510
+ return [
511
+ {
512
+ skill: "bill",
513
+ slotId: "ilife:cookie",
514
+ order: 70,
515
+ title: m("plugin-manager.nav.c002"),
516
+ plugin: "dsh-bill-ilife",
517
+ channel: PLUGIN_CHANNELS.bill
518
+ },
519
+ {
520
+ skill: "calorie",
521
+ slotId: "ilife:calorie",
522
+ order: 75,
523
+ title: m("plugin-manager.nav.c003"),
524
+ plugin: "dsh-calorie",
525
+ channel: PLUGIN_CHANNELS.calorie
526
+ },
527
+ {
528
+ skill: "memo",
529
+ slotId: "ilife:memo",
530
+ order: 80,
531
+ title: m("plugin-manager.nav.c004"),
532
+ plugin: "dsh-memo-ilife",
533
+ channel: PLUGIN_CHANNELS.memo
534
+ },
535
+ {
536
+ skill: "schedule",
537
+ slotId: "ilife:schedule",
538
+ order: 85,
539
+ title: m("plugin-manager.nav.c005"),
540
+ plugin: "dsh-schedule-ilife",
541
+ channel: PLUGIN_CHANNELS.schedule
542
+ },
543
+ {
544
+ skill: "home",
545
+ slotId: "ilife:home",
546
+ order: 90,
547
+ title: m("plugin-manager.nav.c006"),
548
+ plugin: "dsh-home-ilife",
549
+ channel: PLUGIN_CHANNELS.home
550
+ },
551
+ {
552
+ skill: "chef",
553
+ slotId: "ilife:chef",
554
+ order: 95,
555
+ title: m("plugin-manager.nav.c007"),
556
+ plugin: "dsh-chef",
557
+ channel: PLUGIN_CHANNELS.chef
558
+ }
559
+ ];
560
+ }
561
+ /** 渲染期现取:产品名随语言走(#1229)。 */
562
+ function managerTabs() {
563
+ return buildManagerTabs();
564
+ }
565
+ /** 兼容镜像:模块加载期取一次(仓库级边界测试与 update-batch 按常量读);渲染路径用 managerTabs()。 */
566
+ const MANAGER_TABS = buildManagerTabs();
85
567
  function recoFor(tab) {
86
568
  const installCmd = dualInstallCmd(tab.plugin);
87
569
  return {
88
570
  ...tab,
89
571
  kind: "reco",
90
572
  installCmd,
91
- hint: "未安装[" + tab.plugin + "],请补装后使用:" + installCmd
573
+ hint: m("plugin-manager.nav.c001", {
574
+ p0: String(tab.plugin),
575
+ p1: String(installCmd)
576
+ })
92
577
  };
93
578
  }
94
- const MANUAL_ENTRY = {
95
- key: "manual",
96
- title: "使用手册",
97
- tip: "打开使用手册"
98
- };
579
+ /** 使用手册入口那一行(渲染期现取)。 */
580
+ function manualEntry() {
581
+ return {
582
+ key: "manual",
583
+ title: m("plugin-manager.nav.c008"),
584
+ tip: m("plugin-manager.nav.c009")
585
+ };
586
+ }
587
+ /** 兼容镜像:模块加载期取一次;渲染路径用 manualEntry()。 */
588
+ const MANUAL_ENTRY = manualEntry();
99
589
  //#endregion
100
- //#region ../../node_modules/.pnpm/dsh-featherhunter-plugin-base@0.1.5_react@19.2.8/node_modules/dsh-featherhunter-plugin-base/dist/client/index.js
101
- /*! dsh-featherhunter-plugin-base v0.1.5 */
590
+ //#region ../../node_modules/.pnpm/dsh-featherhunter-plugin-base@0.1.8_react@19.2.8/node_modules/dsh-featherhunter-plugin-base/dist/client/index.js
591
+ /*! dsh-featherhunter-plugin-base v0.1.8 */
102
592
  var BASELINE = {
103
593
  "manifest": {
104
594
  "schema": 1,
105
- "version": "0.1.5",
106
- "revision": 2,
107
- "updatedAt": "2026-10-31T00:00:00+08:00",
595
+ "version": "0.1.8",
596
+ "revision": 3,
597
+ "updatedAt": "2026-11-01T00:00:00+08:00",
108
598
  "fallbackUrl": "https://github.com/FeatherHunter/featherhunter-plugin-manage",
109
599
  "groups": [
110
600
  {
@@ -188,10 +678,6 @@ window.__ModuleLoader__.load({
188
678
  "zh": "DSH 插件交流群",
189
679
  "en": "DSH Plugin Community"
190
680
  },
191
- "subtitle": {
192
- "zh": "群聊:DSH 插件交流群",
193
- "en": "Group chat: DSH Plugin Community"
194
- },
195
681
  "validUntil": "2026-11-07"
196
682
  }
197
683
  ],
@@ -324,11 +810,11 @@ window.__ModuleLoader__.load({
324
810
  const month = until.getUTCMonth() + 1;
325
811
  const day = until.getUTCDate();
326
812
  if (days <= 0) {
327
- if (options.lang === "en") return `Valid today (until ${month}/${day}), refreshed on re-entry`;
328
- return `\u8BE5\u4E8C\u7EF4\u7801\u4ECA\u5929\uFF08${month} \u6708 ${day} \u65E5\u524D\uFF09\u6709\u6548\uFF0C\u91CD\u65B0\u8FDB\u5165\u5C06\u66F4\u65B0`;
813
+ if (options.lang === "en") return `Valid today (until ${month}/${day})`;
814
+ return `\u8BE5\u4E8C\u7EF4\u7801\u4ECA\u5929\uFF08${month} \u6708 ${day} \u65E5\u524D\uFF09\u6709\u6548`;
329
815
  }
330
- if (options.lang === "en") return `Valid for ${days} day${days === 1 ? "" : "s"} (until ${month}/${day}), refreshed on re-entry`;
331
- return `\u8BE5\u4E8C\u7EF4\u7801 ${days} \u5929\u5185\uFF08${month} \u6708 ${day} \u65E5\u524D\uFF09\u6709\u6548\uFF0C\u91CD\u65B0\u8FDB\u5165\u5C06\u66F4\u65B0`;
816
+ if (options.lang === "en") return `Valid for ${days} day${days === 1 ? "" : "s"} (until ${month}/${day})`;
817
+ return `\u8BE5\u4E8C\u7EF4\u7801 ${days} \u5929\u5185\uFF08${month} \u6708 ${day} \u65E5\u524D\uFF09\u6709\u6548`;
332
818
  }
333
819
  function isRecord(value) {
334
820
  return typeof value === "object" && value !== null && !Array.isArray(value);
@@ -1694,6 +2180,56 @@ window.__ModuleLoader__.load({
1694
2180
  function createContentLoader(options = {}) {
1695
2181
  return new ContentLoader(options);
1696
2182
  }
2183
+ var CHANNEL_BADGES = {
2184
+ feishu: {
2185
+ platform: "feishu",
2186
+ labelKey: "channelFeishu",
2187
+ color: "#3370FF",
2188
+ viewBox: "0 0 48 48",
2189
+ fillRule: "evenodd",
2190
+ paths: ["M41.0716 5.99409L3.31071 16.5187L12.3856 25.8126L20.7998 25.9594L30.4827 16.5187C30.2266 15.9943 30.0985 15.5552 30.0985 15.2013C30.0985 14.4074 30.4104 13.7786 30.8947 13.333C31.7241 12.57 32.7222 12.4558 33.8889 12.9905L41.0716 5.99409Z", "M42.1021 6.72842L31.5775 44.4893L22.2836 35.4144L22.1367 27.0002L31.5115 17.4816C32.0195 17.8454 32.5743 18.0105 33.1759 17.9769C34.0784 17.9264 34.6614 17.3813 34.9349 17.0602C35.2083 16.7392 35.5293 16.2051 35.5025 15.4113C35.4847 14.8821 35.3109 14.3941 34.9812 13.9472L42.1021 6.72842Z"]
2191
+ },
2192
+ qq: {
2193
+ platform: "qq",
2194
+ labelKey: "channelQq",
2195
+ color: "#12B7F5",
2196
+ viewBox: "0 0 24 24",
2197
+ fillRule: "nonzero",
2198
+ paths: ["M21.395 15.035a40 40 0 0 0-.803-2.264l-1.079-2.695c.001-.032.014-.562.014-.836C19.526 4.632 17.351 0 12 0S4.474 4.632 4.474 9.241c0 .274.013.804.014.836l-1.08 2.695a39 39 0 0 0-.802 2.264c-1.021 3.283-.69 4.643-.438 4.673c.54.065 2.103-2.472 2.103-2.472c0 1.469.756 3.387 2.394 4.771c-.612.188-1.363.479-1.845.835c-.434.32-.379.646-.301.778c.343.578 5.883.369 7.482.189c1.6.18 7.14.389 7.483-.189c.078-.132.132-.458-.301-.778c-.483-.356-1.233-.646-1.846-.836c1.637-1.384 2.393-3.302 2.393-4.771c0 0 1.563 2.537 2.103 2.472c.251-.03.581-1.39-.438-4.673"]
2199
+ },
2200
+ wechat: {
2201
+ platform: "wechat",
2202
+ labelKey: "channelWechat",
2203
+ color: "#07C160",
2204
+ viewBox: "0 0 24 24",
2205
+ fillRule: "nonzero",
2206
+ paths: ["M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213c0 .163.13.295.29.295a.33.33 0 0 0 .167-.054l1.903-1.114a.86.86 0 0 1 .717-.098a10.2 10.2 0 0 0 2.837.403c.276 0 .543-.027.811-.05c-.857-2.578.157-4.972 1.932-6.446c1.703-1.415 3.882-1.98 5.853-1.838c-.576-3.583-4.196-6.348-8.596-6.348M5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178A1.17 1.17 0 0 1 4.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178a1.17 1.17 0 0 1-1.162-1.178c0-.651.52-1.18 1.162-1.18m5.34 2.867c-1.797-.052-3.746.512-5.28 1.786c-1.72 1.428-2.687 3.72-1.78 6.22c.942 2.453 3.666 4.229 6.884 4.229c.826 0 1.622-.12 2.361-.336a.72.72 0 0 1 .598.082l1.584.926a.3.3 0 0 0 .14.047c.134 0 .24-.111.24-.247c0-.06-.023-.12-.038-.177l-.327-1.233a.6.6 0 0 1-.023-.156a.49.49 0 0 1 .201-.398C23.024 18.48 24 16.82 24 14.98c0-3.21-2.931-5.837-6.656-6.088V8.89c-.135-.01-.27-.027-.407-.03zm-2.53 3.274c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983a.976.976 0 0 1-.969-.983c0-.542.434-.982.97-.982zm4.844 0c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983a.976.976 0 0 1-.969-.983c0-.542.434-.982.969-.982"]
2207
+ }
2208
+ };
2209
+ function channelBadge(platform) {
2210
+ return Object.prototype.hasOwnProperty.call(CHANNEL_BADGES, platform) ? CHANNEL_BADGES[platform] : void 0;
2211
+ }
2212
+ var SVG_NS = "http://www.w3.org/2000/svg";
2213
+ function createChannelBadge(doc, badge) {
2214
+ const tile = doc.createElement("span");
2215
+ tile.className = "dsh-base-modal__card-badge";
2216
+ tile.dataset.platform = badge.platform;
2217
+ tile.setAttribute("aria-hidden", "true");
2218
+ tile.style.setProperty("--dsh-base-badge-color", badge.color);
2219
+ const svg = doc.createElementNS(SVG_NS, "svg");
2220
+ svg.setAttribute("viewBox", badge.viewBox);
2221
+ svg.setAttribute("focusable", "false");
2222
+ svg.setAttribute("role", "presentation");
2223
+ for (const d of badge.paths) {
2224
+ const path = doc.createElementNS(SVG_NS, "path");
2225
+ path.setAttribute("d", d);
2226
+ path.setAttribute("fill", "currentColor");
2227
+ if (badge.fillRule === "evenodd") path.setAttribute("fill-rule", "evenodd");
2228
+ svg.append(path);
2229
+ }
2230
+ tile.append(svg);
2231
+ return tile;
2232
+ }
1697
2233
  var BASE_STYLE_ID = "dsh-base-ui-style";
1698
2234
  function rowSkin(className) {
1699
2235
  return [
@@ -1785,11 +2321,15 @@ window.__ModuleLoader__.load({
1785
2321
  ".dsh-base-modal__grid{display:grid;grid-template-columns:repeat(var(--dsh-base-columns,4),minmax(0,1fr));gap:14px;align-items:start}",
1786
2322
  ".dsh-base-modal__card{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0;padding:14px 12px;border:1px solid var(--dsw-alias-border-l1,rgba(127,127,127,.2));border-radius:14px;background:var(--dsw-alias-bg-layer-2,#fff);text-align:center}",
1787
2323
  ".dsh-base-modal__card--expired{background:var(--dsw-alias-state-warn-tertiary,#fffaf3);border-color:var(--dsw-alias-state-warn-secondary,rgba(180,83,9,.28))}",
1788
- ".dsh-base-modal__card-title{margin:0;font-size:13px;font-weight:600;line-height:1.4;color:var(--dsw-alias-label-primary,#1f2329)}",
2324
+ ".dsh-base-modal__card-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 6px;margin:0;font-size:13px;font-weight:600;line-height:1.4;color:var(--dsw-alias-label-primary,#1f2329)}",
2325
+ ".dsh-base-modal__card-name{min-width:0}",
2326
+ ".dsh-base-modal__card-badge{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:18px;height:18px;border-radius:5px;background:var(--dsh-base-badge-color,#6b7280);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}",
2327
+ ".dsh-base-modal__card-badge svg{display:block;width:12px;height:12px}",
1789
2328
  ".dsh-base-modal__card-subtitle{display:inline-block;align-self:center;margin:0;padding:2px 6px;border:0;border-radius:6px;background:transparent;color:var(--dsw-alias-label-tertiary,#86909c);font:inherit;font-size:11px;line-height:1.5;cursor:pointer;transition:background .15s ease,color .15s ease}",
1790
2329
  ".dsh-base-modal__card-subtitle:hover{background:rgba(127,127,127,.1);color:var(--dsw-alias-label-secondary,#4e5969)}",
1791
2330
  ".dsh-base-modal__card-subtitle[data-copied='true']{color:var(--dsw-alias-link,#4d6bfe)}",
1792
2331
  ".dsh-base-modal__card-subtitle:focus-visible{outline:2px solid var(--dsw-alias-link,#4d6bfe);outline-offset:2px}",
2332
+ ".dsh-base-modal__card-subtitle-gap{display:block;align-self:center;min-height:1.5em;padding:2px 6px;font-size:11px;line-height:1.5;visibility:hidden;pointer-events:none}",
1793
2333
  ".dsh-base-modal__qr{box-sizing:border-box;max-width:100%;width:100%;height:auto;min-height:150px;padding:6px;border-radius:8px;background:#fff;object-fit:contain;image-rendering:pixelated}",
1794
2334
  ".dsh-base-modal__card-note{margin-top:2px;font-size:10.5px;line-height:1.5;color:var(--dsw-alias-label-tertiary,#86909c)}",
1795
2335
  ".dsh-base-modal__card-expired{margin-top:2px;font-size:10.5px;line-height:1.5;color:var(--dsw-alias-state-warn-label,#b45309)}",
@@ -1814,7 +2354,8 @@ window.__ModuleLoader__.load({
1814
2354
  "@media (max-width:719px){.dsh-base-modal__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}",
1815
2355
  "@media (max-width:479px){.dsh-base-modal__grid{grid-template-columns:minmax(0,1fr)}}",
1816
2356
  "@media (max-width:719px){.dsh-base-modal__mobile-hint{display:inline}}",
1817
- "@media (prefers-reduced-motion:reduce){.dsh-base-modal__close,.dsh-base-modal__card-subtitle,.dsh-base-contact-button,.dsh-base-contact-row,.dsh-base-plugins__row,.dsh-base-icon-action,.dsh-base-tip{transition:none}}"
2357
+ "@media (prefers-reduced-motion:reduce){.dsh-base-modal__close,.dsh-base-modal__card-subtitle,.dsh-base-contact-button,.dsh-base-contact-row,.dsh-base-plugins__row,.dsh-base-icon-action,.dsh-base-tip{transition:none}}",
2358
+ ".dsh-base-visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}"
1818
2359
  ].join("\n");
1819
2360
  function ensureBaseStyles(doc) {
1820
2361
  if (doc.getElementById("dsh-base-ui-style")) return;
@@ -1844,7 +2385,10 @@ window.__ModuleLoader__.load({
1844
2385
  starLabel: "Star 这个项目",
1845
2386
  issueLabel: "提交 Issue",
1846
2387
  actionsLabel: "快捷操作",
1847
- moreActions: "更多操作"
2388
+ moreActions: "更多操作",
2389
+ channelFeishu: "飞书群",
2390
+ channelQq: "QQ群",
2391
+ channelWechat: "微信群"
1848
2392
  },
1849
2393
  en: {
1850
2394
  contact: "Contact us",
@@ -1866,7 +2410,10 @@ window.__ModuleLoader__.load({
1866
2410
  starLabel: "Star this project",
1867
2411
  issueLabel: "Open an issue",
1868
2412
  actionsLabel: "Quick actions",
1869
- moreActions: "More actions"
2413
+ moreActions: "More actions",
2414
+ channelFeishu: "Feishu group",
2415
+ channelQq: "QQ group",
2416
+ channelWechat: "WeChat group"
1870
2417
  }
1871
2418
  };
1872
2419
  function resolveText(key, lang, overrides) {
@@ -2004,7 +2551,18 @@ window.__ModuleLoader__.load({
2004
2551
  const qrSrc = expired ? null : current.resolveQr(group);
2005
2552
  const cardTitle = doc.createElement("h3");
2006
2553
  cardTitle.className = "dsh-base-modal__card-title";
2007
- cardTitle.textContent = pickText$1(group.title, lang);
2554
+ const badge = channelBadge(group.platform);
2555
+ if (badge) {
2556
+ cardTitle.append(createChannelBadge(doc, badge));
2557
+ const channel = doc.createElement("span");
2558
+ channel.className = "dsh-base-visually-hidden";
2559
+ channel.textContent = t(badge.labelKey);
2560
+ cardTitle.append(channel);
2561
+ }
2562
+ const cardName = doc.createElement("span");
2563
+ cardName.className = "dsh-base-modal__card-name";
2564
+ cardName.textContent = pickText$1(group.title, lang);
2565
+ cardTitle.append(cardName);
2008
2566
  card.append(cardTitle);
2009
2567
  if (group.subtitle) {
2010
2568
  const subtitle = doc.createElement("button");
@@ -2014,6 +2572,11 @@ window.__ModuleLoader__.load({
2014
2572
  subtitle.title = t("copyHint");
2015
2573
  subtitle.addEventListener("click", () => copyText(subtitle, subtitle.textContent ?? ""));
2016
2574
  card.append(subtitle);
2575
+ } else {
2576
+ const gap = doc.createElement("span");
2577
+ gap.className = "dsh-base-modal__card-subtitle-gap";
2578
+ gap.setAttribute("aria-hidden", "true");
2579
+ card.append(gap);
2017
2580
  }
2018
2581
  if (qrSrc) {
2019
2582
  const image = doc.createElement("img");
@@ -2444,7 +3007,7 @@ window.__ModuleLoader__.load({
2444
3007
  * (base 由它派生 Star 目标与 <repo>/issues 列表页)。
2445
3008
  *
2446
3009
  * 尺寸缺省 16:base 的页头默认档,与面板标题行同一视觉重量(14 紧凑/18 宽松留给别的场景)。 */
2447
- function ActionCluster(props = {}) {
3010
+ function ActionCluster(props) {
2448
3011
  const ui = baseUI();
2449
3012
  if (ui === null) return null;
2450
3013
  ensureStylesOnce();
@@ -2759,12 +3322,6 @@ window.__ModuleLoader__.load({
2759
3322
  }
2760
3323
  //#endregion
2761
3324
  //#region src/update-contract.ts
2762
- /** 总管与面板之间的共享常量:载体、槽名、电话名、版本降级字面量。
2763
- *
2764
- * 说明(票 1168 缺席态):本仓更新代码已全部移除,更新区藏入口。
2765
- * 本文件仅保留仍被非更新代码取用的共享位,更新专用部分已随更新代码删除。
2766
- * 0.5.1 新接线由 wire 票 1170 重建,此处不预留。
2767
- */
2768
3325
  const CONFIG_TAB_SLOT = "ilife.config-tab";
2769
3326
  const CARRIER_BASE = "/api";
2770
3327
  const MANAGER_RPC = {
@@ -13054,19 +13611,27 @@ ${body}`;
13054
13611
  const MANAGER_TARGET_KEY = "life-pack";
13055
13612
  /** 批量电话前缀:宿主与面板共用,唯一定义地(面板 mount 参数与宿主登记同源)。 */
13056
13613
  const BATCH_PREFIX = "life";
13057
- const UPDATE_TARGETS = [{
13058
- key: MANAGER_TARGET_KEY,
13059
- title: "爱生活",
13060
- packageName: MANAGER_PACKAGE,
13061
- phonePrefix: "ilife-life-pack"
13062
- }, ...MANAGER_TABS.map((tab) => ({
13063
- key: tab.skill,
13064
- title: tab.title,
13065
- packageName: tab.plugin,
13066
- phonePrefix: "ilife-" + tab.skill
13067
- }))];
13614
+ /** 七行更新目标(渲染期现取:标题随语言走)。 */
13615
+ function buildUpdateTargets() {
13616
+ return [{
13617
+ key: MANAGER_TARGET_KEY,
13618
+ title: m("plugin-manager.update-targets.c001"),
13619
+ packageName: MANAGER_PACKAGE,
13620
+ phonePrefix: "ilife-life-pack"
13621
+ }, ...managerTabs().map((tab) => ({
13622
+ key: tab.skill,
13623
+ title: tab.title,
13624
+ packageName: tab.plugin,
13625
+ phonePrefix: "ilife-" + tab.skill
13626
+ }))];
13627
+ }
13628
+ /** 渲染期现取。 */
13629
+ function updateTargets() {
13630
+ return buildUpdateTargets();
13631
+ }
13632
+ buildUpdateTargets();
13068
13633
  function targetFor(packageName) {
13069
- return UPDATE_TARGETS.find((target) => target.packageName === packageName);
13634
+ return updateTargets().find((target) => target.packageName === packageName);
13070
13635
  }
13071
13636
  //#endregion
13072
13637
  //#region src/update-dialog.ts
@@ -13184,6 +13749,21 @@ ${body}`;
13184
13749
  const LIQUID_DIST_FACTOR = .35;
13185
13750
  //#endregion
13186
13751
  //#region src/directory-browser-contract.ts
13752
+ /** 目录浏览器的纯逻辑半(**不认识宿主**:只认两格原语)。
13753
+ *
13754
+ * 为什么在这里:六个单品插件的设置页各有一批「值是一个目录」的行,它们要的界面是同一个东西。
13755
+ * 界面的**取数**来自宿主给的两个原语(`list`/`createDirectory`),而这两个原语的形状是**调用方喂进来的**
13756
+ * ——本件不 import 宿主的任何实现,也不认识 `remote.directoryPicker` 这个名字(那两件住在各家的
13757
+ * `dsh-ctx.ts` 镜像里)。于是本件在 Windows 桌面、远程浏览器、SSH 三种部署下是同一份代码。
13758
+ *
13759
+ * 装什么:本次要浏览的那一层怎么走(进子目录/回上一级/跳面包屑)、路径怎么切出「目录部分」与
13760
+ * 「筛选词」、回执怎么认。**不装**任何 IO、不装任何持久化——`list`/`createDirectory` 由调用方执行。
13761
+ *
13762
+ * 与平台自带浏览器件的关系:`@deepseek-ai/dsh-client-ui-directory-picker-browse` 的 `DirectoryBrowser`
13763
+ * 是包内私有件(只经 `ui-workspace` 的流程空位暴露),插件侧取不到,所以这里是一份独立实现,
13764
+ * 只对齐它的**交互结果**(进/选/新建),不对齐它的 DOM。
13765
+ */
13766
+ /** 一层目录里的一个子目录。`hidden` 由宿主判,本件只照传。 */
13187
13767
  /** 认一认某个值是不是可用的目录取数面(软依赖守卫用:认不出就当没有,绝不把页面带下来)。 */
13188
13768
  function isBrowseFace(raw) {
13189
13769
  if (typeof raw !== "object" || raw === null) return false;
@@ -13228,7 +13808,7 @@ ${body}`;
13228
13808
  return {
13229
13809
  kind: "unavailable",
13230
13810
  ...typeof code === "string" && code !== "" ? { code } : {},
13231
- message: "打不开系统文件夹对话框" + (detail === "" ? "" : "(" + detail + ")") + ":请直接在框里填绝对路径。"
13811
+ message: m("plugin-manager.directory-browser-contract.c001", { p0: String(detail === "" ? "" : "(" + detail + ")") })
13232
13812
  };
13233
13813
  }
13234
13814
  /** 一段路径里最后那个分隔符的位置(Windows 上 `\` 与 `/` 都算;POSIX 上 `\` 是合法文件名字符,不算)。 */
@@ -13296,15 +13876,15 @@ ${body}`;
13296
13876
  const trimmed = name.trim();
13297
13877
  if (trimmed === "") return {
13298
13878
  ok: false,
13299
- reason: "文件夹名不能为空。"
13879
+ reason: m("plugin-manager.directory-browser-contract.c006")
13300
13880
  };
13301
13881
  if (/[\\/]/.test(trimmed)) return {
13302
13882
  ok: false,
13303
- reason: "文件夹名里不能带路径分隔符。"
13883
+ reason: m("plugin-manager.directory-browser-contract.c007")
13304
13884
  };
13305
13885
  if (trimmed === "." || trimmed === "..") return {
13306
13886
  ok: false,
13307
- reason: "「.」与「..」不是文件夹名。"
13887
+ reason: m("plugin-manager.directory-browser-contract.c008")
13308
13888
  };
13309
13889
  return { ok: true };
13310
13890
  }
@@ -13312,7 +13892,7 @@ ${body}`;
13312
13892
  //#region src/directory-browser-state.ts
13313
13893
  /** 建一个浏览器控制器。取数、回调、初值全部由调用方给。 */
13314
13894
  function createBrowseController(deps) {
13315
- const label = deps.failureLabel ?? "浏览失败";
13895
+ const label = deps.failureLabel ?? m("plugin-manager.directory-browser-state.c001");
13316
13896
  const listeners = /* @__PURE__ */ new Set();
13317
13897
  let state = {
13318
13898
  phase: "idle",
@@ -13463,7 +14043,7 @@ ${body}`;
13463
14043
  }
13464
14044
  const base = state.selected ?? state.listing?.path ?? null;
13465
14045
  if (base === null) {
13466
- emit({ notice: "还没有打开任何目录,无法新建文件夹。" });
14046
+ emit({ notice: m("plugin-manager.directory-browser-state.c002") });
13467
14047
  return;
13468
14048
  }
13469
14049
  try {
@@ -13502,7 +14082,10 @@ ${body}`;
13502
14082
  function describe(state) {
13503
14083
  if (state.phase === "failed") return `${state.failure?.code ?? "browse-failed"} @ ${state.draft}`;
13504
14084
  if (state.listing === null) return `${state.phase}`;
13505
- return `${state.listing.path}(${rowsOf(state).length} 行)`;
14085
+ return m("plugin-manager.directory-browser-state.c003", {
14086
+ p0: String(state.listing.path),
14087
+ p1: String(rowsOf(state).length)
14088
+ });
13506
14089
  }
13507
14090
  /** 一行子目录的完整路径(图上点行时用)。 */
13508
14091
  function entryPath(directory, entry) {
@@ -13550,13 +14133,17 @@ ${body}`;
13550
14133
  * 本件与视图半同样**不认识宿主**:只认状态与文案。
13551
14134
  */
13552
14135
  /** 根的类型说明(悬停可见):**本件自己的词汇**,与取数方无关。 */
13553
- const ROOT_KIND_TEXT = {
13554
- fixed: "固定磁盘",
13555
- network: "网络驱动器",
13556
- removable: "可移动磁盘",
13557
- optical: "光驱",
13558
- other: "磁盘"
13559
- };
14136
+ /** 根的类型说明:渲染期现取(#1229)。 */
14137
+ function rootKindText(kind) {
14138
+ const table = {
14139
+ fixed: m("plugin-manager.directory-browser-parts.c001"),
14140
+ network: m("plugin-manager.directory-browser-parts.c002"),
14141
+ removable: m("plugin-manager.directory-browser-parts.c003"),
14142
+ optical: m("plugin-manager.directory-browser-parts.c004"),
14143
+ other: m("plugin-manager.directory-browser-parts.c005")
14144
+ };
14145
+ return table[kind] ?? table.other;
14146
+ }
13560
14147
  const S$4 = {
13561
14148
  scrim: {
13562
14149
  position: "fixed",
@@ -13742,7 +14329,7 @@ ${body}`;
13742
14329
  ...S$4.chromeButton,
13743
14330
  ...S$4.rootButton
13744
14331
  },
13745
- title: ROOT_KIND_TEXT[root.kind] ?? ROOT_KIND_TEXT.other,
14332
+ title: rootKindText(root.kind),
13746
14333
  "data-ilife-press": "dialog-root",
13747
14334
  "data-ilife-longpress": "dialog-root",
13748
14335
  onClick: () => onEnter(root.path)
@@ -14116,25 +14703,7 @@ ${body}`;
14116
14703
  /** 卡面 em 值(乘缩放后收 4 位小数:0.3×0.7 在浮点里是 0.21000000000000002,直接拼串会带尾巴)。 */
14117
14704
  const sealEm = (n) => String(Math.round(n * SEAL_SCALE * 1e4) / 1e4) + "em";
14118
14705
  "" + PANEL_CARD_EDGE, sealEm(9), "" + PANEL_FIELD_EDGE;
14119
- //#endregion
14120
- //#region src/manual-entry.ts
14121
- /** 使用手册入口与书式弹层(票 #1237 起;#1240 接线书体、2026-10-10 按用户验收改尺寸与形态)。
14122
- *
14123
- * 真值:
14124
- * - 冻结原型 docs/plugins/plugin-manager/proto-manual-4scenes.html(最高真值,每字每像素);
14125
- * - 定版 docs/plugins/plugin-manager/手册正文-定版-20261009.html 的入口六条(v2 甲)。
14126
- * **两处 2026-10-10 的用户改动(记在票 #1240)**:① 入口图标按 ≈62% 收小(原型 76×104 → 48×66);
14127
- * ② 打开书从「整屏舞台」改成「居中限制尺寸的弹层+常驻关闭钮」。除这两处,其余取值照原型。
14128
- *
14129
- * 形态:纯函数,吃 props 回元素树,不留状态、不取数、不碰 DOM(document/window/process)。
14130
- * 手写 React.createElement(本包 client 束禁 JSX)。样式只此一处生成,挂法照 config-panel-view
14131
- * 的 interactionCss 先例:调用方在卡片首位挂一枚 <style>,类名即原型那六个(bkbtn/stage/
14132
- * eabook/eaband/plate),外加弹层两条(manual-popover/manual-popover-close)。
14133
- *
14134
- * 卷轴旧实现只读不改:本件不引用旧卷轴两件。
14135
- */
14136
- /** 入口上的两处字样(腰封+名牌各印一次,定义只此一处)。单一来源=导航表那行。 */
14137
- const MANUAL_ENTRY_LABEL = MANUAL_ENTRY.title;
14706
+ MANUAL_ENTRY.title;
14138
14707
  /** 入口 CSS(书那五条源自 v2 甲)+弹层两组(透明点外关闭层 + 书那一格,关闭钮)。
14139
14708
  *
14140
14709
  * **2026-10-10 用户验收(记在票 #1240)**:
@@ -14166,17 +14735,18 @@ ${body}`;
14166
14735
  * data-ilife-press(与标题行两入口同语言)。
14167
14736
  */
14168
14737
  function ManualEntryButton(props) {
14738
+ const entry = manualEntry();
14169
14739
  return react.createElement("button", {
14170
14740
  type: "button",
14171
14741
  className: "bkbtn",
14172
- title: MANUAL_ENTRY.tip,
14173
- "aria-label": MANUAL_ENTRY.tip,
14174
- "data-ilife-press": MANUAL_ENTRY.key,
14742
+ title: entry.tip,
14743
+ "aria-label": entry.tip,
14744
+ "data-ilife-press": entry.key,
14175
14745
  onClick: props.onOpen
14176
14746
  }, react.createElement("span", {
14177
14747
  className: "eaaura",
14178
14748
  "aria-hidden": "true"
14179
- }), react.createElement("span", { className: "stage" }, react.createElement("span", { className: "eabook" }, react.createElement("span", { className: "eaband" }, MANUAL_ENTRY_LABEL))));
14749
+ }), react.createElement("span", { className: "stage" }, react.createElement("span", { className: "eabook" }, react.createElement("span", { className: "eaband" }, entry.title))));
14180
14750
  }
14181
14751
  /** 弹出弹层:关着回 null,开着回**透明的满屏 `<dialog>`**(书体由调用方经 children 传进来)。
14182
14752
  *
@@ -14200,7 +14770,7 @@ ${body}`;
14200
14770
  }, react.createElement("div", {
14201
14771
  className: "manual-popover",
14202
14772
  role: "dialog",
14203
- "aria-label": MANUAL_ENTRY_LABEL,
14773
+ "aria-label": manualEntry().title,
14204
14774
  "data-ilife-manual": "book-shell",
14205
14775
  onClick: (event) => {
14206
14776
  event.stopPropagation();
@@ -14276,7 +14846,7 @@ ${body}`;
14276
14846
  * 单家的错照样逐家报(那家页签里的体检表会写「体检超时(60s)…」)。 */
14277
14847
  const HEALTH_TIMEOUT_MS = 6e4;
14278
14848
  function timeoutText() {
14279
- return "体检超时(" + String(Math.round(HEALTH_TIMEOUT_MS / 1e3)) + "s):技能没在时限内回话。";
14849
+ return m("plugin-manager.health-fetch.c001", { p0: String(String(Math.round(HEALTH_TIMEOUT_MS / 1e3))) });
14280
14850
  }
14281
14851
  async function fetchOne(call, row) {
14282
14852
  try {
@@ -14286,19 +14856,19 @@ ${body}`;
14286
14856
  }, AbortSignal.timeout(HEALTH_TIMEOUT_MS));
14287
14857
  if (!result || typeof result !== "object" || typeof result.ok !== "boolean") return {
14288
14858
  report: null,
14289
- error: "回执信封异常(非 ok 信封)。"
14859
+ error: m("plugin-manager.health-fetch.c002")
14290
14860
  };
14291
14861
  if (!result.ok) {
14292
14862
  const error = result.error;
14293
14863
  return {
14294
14864
  report: null,
14295
- error: typeof error?.message === "string" && error.message.length > 0 ? error.message : "体检没跑起来。"
14865
+ error: typeof error?.message === "string" && error.message.length > 0 ? error.message : m("plugin-manager.health-fetch.c003")
14296
14866
  };
14297
14867
  }
14298
14868
  const value = result.value;
14299
14869
  if (!isHealthReport(value)) return {
14300
14870
  report: null,
14301
- error: "体检报告形状认不出(技能包与总管版本对不上?)。"
14871
+ error: m("plugin-manager.health-fetch.c004")
14302
14872
  };
14303
14873
  return {
14304
14874
  report: value,
@@ -14311,7 +14881,7 @@ ${body}`;
14311
14881
  };
14312
14882
  return {
14313
14883
  report: null,
14314
- error: "体检没跑起来:" + (error instanceof Error ? error.message : String(error))
14884
+ error: m("plugin-manager.health-fetch.c005", { p0: String(error instanceof Error ? error.message : String(error)) })
14315
14885
  };
14316
14886
  }
14317
14887
  }
@@ -14323,7 +14893,7 @@ ${body}`;
14323
14893
  async function loadHealthReports(call, tabs, onRow) {
14324
14894
  if (typeof call !== "function") return {
14325
14895
  rows: [],
14326
- error: "宿主连接缺席:connection.rpc.call 不可用"
14896
+ error: m("plugin-manager.health-fetch.c006")
14327
14897
  };
14328
14898
  return {
14329
14899
  rows: await Promise.all(tabs.map(async (tab) => {
@@ -14444,11 +15014,15 @@ ${body}`;
14444
15014
  yellow: "#8a5200",
14445
15015
  green: "var(--dsw-alias-state-success-primary, #4ec9a0)"
14446
15016
  };
14447
- const STATUS_LABEL = {
14448
- red: "红",
14449
- yellow: "黄",
14450
- green: "绿"
15017
+ const STATUS_LABEL_KEY = {
15018
+ red: "plugin-manager.health-view.c001",
15019
+ yellow: "plugin-manager.health-view.c002",
15020
+ green: "plugin-manager.health-view.c003"
14451
15021
  };
15022
+ /** 档位词(渲染期取词:模块级只留 key,不把词固定成加载期那一种语言)。 */
15023
+ function statusLabel(status) {
15024
+ return m(STATUS_LABEL_KEY[status]);
15025
+ }
14452
15026
  /** 档位的**形状**标记:颜色之外的第二条读数(灰度截图、色弱视角下也分得开谁要处理)。 */
14453
15027
  const STATUS_MARK = {
14454
15028
  red: "✕",
@@ -14697,17 +15271,19 @@ ${body}`;
14697
15271
  function HealthTable(props) {
14698
15272
  const { report } = props;
14699
15273
  const prefixes = report ? dirPrefixesOf(report) : [];
15274
+ const configNote = report !== null && report.configPath !== "" ? m("plugin-manager.health-view.c020", { p0: report.configPath }) : "";
15275
+ const dataDirLine = report !== null && report.dataDir !== "" ? m("plugin-manager.health-view.c019", { p0: report.dataDir + configNote }) : null;
14700
15276
  return react.createElement("div", {
14701
15277
  style: HEALTH_STYLE.box,
14702
15278
  "data-ilife-health": "table"
14703
15279
  }, react.createElement("div", { style: HEALTH_STYLE.headRow }, react.createElement(TitleBlock, {
14704
15280
  product: props.title,
14705
- purpose: "体检"
14706
- }), report ? headerCounts(report) : null), props.phase === "idle" ? react.createElement("div", { style: HEALTH_STYLE.meta }, "还没体检:点标题行那个「体检」。") : null, props.phase === "running" ? react.createElement("div", { style: HEALTH_STYLE.meta }, "正在体检…") : null, props.error !== null ? react.createElement("div", { style: HEALTH_STYLE.error }, props.error) : null, report ? react.createElement("div", null, report.dataDir !== "" ? react.createElement("div", { style: {
15281
+ purpose: m("plugin-manager.health-view.c016")
15282
+ }), report ? headerCounts(report) : null), props.phase === "idle" ? react.createElement("div", { style: HEALTH_STYLE.meta }, m("plugin-manager.health-view.c017")) : null, props.phase === "running" ? react.createElement("div", { style: HEALTH_STYLE.meta }, m("plugin-manager.health-view.c018")) : null, props.error !== null ? react.createElement("div", { style: HEALTH_STYLE.error }, props.error) : null, report ? react.createElement("div", null, dataDirLine !== null ? react.createElement("div", { style: {
14707
15283
  color: INK_DIM,
14708
15284
  fontSize: 11.5,
14709
15285
  marginTop: 2
14710
- } }, "落点根目录:" + report.dataDir + (report.configPath !== "" ? "(配置文件 " + report.configPath + ")" : "")) : null, report.items.filter(isAttentionItem).map((item) => react.createElement("div", {
15286
+ } }, dataDirLine) : null, report.items.filter(isAttentionItem).map((item) => react.createElement("div", {
14711
15287
  key: item.id,
14712
15288
  "data-ilife-health": "item",
14713
15289
  "data-status": item.status,
@@ -14739,10 +15315,10 @@ ${body}`;
14739
15315
  } }, item.title), react.createElement("span", { style: {
14740
15316
  color: STATUS_TEXT[item.status],
14741
15317
  fontWeight: 700
14742
- } }, STATUS_LABEL[item.status]), item.source && item.source !== "默认值" ? react.createElement("span", { style: { color: INK_DIM } }, "· 来自" + item.source) : null), react.createElement("div", {
15318
+ } }, statusLabel(item.status)), item.source && item.source !== "默认值" ? react.createElement("span", { style: { color: INK_DIM } }, m("plugin-manager.health-view.c021", { p0: item.source })) : null), react.createElement("div", {
14743
15319
  style: { color: INK },
14744
15320
  title: item.message
14745
- }, shortenPathsIn(item.message, prefixes)), item.action.length > 0 ? react.createElement("div", { style: { color: INK_DIM } }, "去哪修:" + actionText(item.action)) : null)), report.items.some((item) => !isAttentionItem(item)) ? react.createElement("div", {
15321
+ }, shortenPathsIn(item.message, prefixes)), item.action.length > 0 ? react.createElement("div", { style: { color: INK_DIM } }, m("plugin-manager.health-view.c022", { p0: actionText(item.action) })) : null)), report.items.some((item) => !isAttentionItem(item)) ? react.createElement("div", {
14746
15322
  "data-ilife-health": "ok",
14747
15323
  style: {
14748
15324
  display: "flex",
@@ -14770,7 +15346,7 @@ ${body}`;
14770
15346
  }), react.createElement("span", { style: {
14771
15347
  fontWeight: 650,
14772
15348
  color: INK
14773
- } }, "正常 " + String(countByStatus(report.items).green) + " 条"), react.createElement("span", { style: { color: INK_DIM } }, "(下列各项都正常工作)"), report.items.filter((item) => !isAttentionItem(item)).map((item) => react.createElement("span", {
15349
+ } }, m("plugin-manager.health-view.c023", { p0: String(countByStatus(report.items).green) })), react.createElement("span", { style: { color: INK_DIM } }, m("plugin-manager.health-view.c024")), report.items.filter((item) => !isAttentionItem(item)).map((item) => react.createElement("span", {
14774
15350
  key: item.id,
14775
15351
  "data-ilife-health": "ok-item"
14776
15352
  }, "· " + item.title))) : null) : null);
@@ -15181,8 +15757,8 @@ ${body}`;
15181
15757
  key: "sh" + sh.sheet,
15182
15758
  role: "button",
15183
15759
  tabIndex: 0,
15184
- "aria-label": "翻到第" + sh.facing + "页",
15185
- title: "翻到第" + sh.facing + "页",
15760
+ "aria-label": m("plugin-manager.client.c001", { p0: String(sh.facing) }),
15761
+ title: m("plugin-manager.client.c002", { p0: String(sh.facing) }),
15186
15762
  "data-ilife-manual": "tab",
15187
15763
  "data-pg": sh.facing,
15188
15764
  onClick: () => {
@@ -15510,26 +16086,26 @@ ${body}`;
15510
16086
  ...prevOff ? S.manualBrassOff : null
15511
16087
  },
15512
16088
  disabled: prevOff,
15513
- "aria-label": "上一跨页",
16089
+ "aria-label": m("plugin-manager.client.c003"),
15514
16090
  "data-ilife-manual": "prev",
15515
16091
  "data-ilife-press": "manual-prev",
15516
16092
  onClick: () => {
15517
16093
  startTurn(-1);
15518
16094
  }
15519
- }, "‹ 上一页"), react.createElement("button", {
16095
+ }, m("plugin-manager.client.c004")), react.createElement("button", {
15520
16096
  type: "button",
15521
16097
  style: {
15522
16098
  ...S.manualBrass,
15523
16099
  ...nextOff ? S.manualBrassOff : null
15524
16100
  },
15525
16101
  disabled: nextOff,
15526
- "aria-label": "下一跨页",
16102
+ "aria-label": m("plugin-manager.client.c005"),
15527
16103
  "data-ilife-manual": "next",
15528
16104
  "data-ilife-press": "manual-next",
15529
16105
  onClick: () => {
15530
16106
  startTurn(1);
15531
16107
  }
15532
- }, "下一页 ›")), hover === null ? null : react.createElement("div", {
16108
+ }, m("plugin-manager.client.c006"))), hover === null ? null : react.createElement("div", {
15533
16109
  role: "status",
15534
16110
  "data-ilife-manual": "tab-card",
15535
16111
  onClick: () => {
@@ -15540,7 +16116,7 @@ ${body}`;
15540
16116
  left: hover.x + 12,
15541
16117
  top: hover.y + 16
15542
16118
  }
15543
- }, tabCardLine(hover.pg, hoverScene), tabCardLine(hoverOtherPage, hoverOtherScene), react.createElement("div", null, "点一下翻到这一页 ›")));
16119
+ }, tabCardLine(hover.pg, hoverScene), tabCardLine(hoverOtherPage, hoverOtherScene), react.createElement("div", null, m("plugin-manager.client.c007"))));
15544
16120
  }
15545
16121
  /** 缺席页签的单包安装按钮(#1282):挂载位+挂载一体,连接不到或目标表无此包就不画。
15546
16122
  *
@@ -15638,7 +16214,7 @@ ${body}`;
15638
16214
  onClick: () => {
15639
16215
  copyCmdText(props.text).then(props.onCopied, () => void 0);
15640
16216
  }
15641
- }, "复制");
16217
+ }, m("plugin-manager.client.c008"));
15642
16218
  }
15643
16219
  /** 缺席页签整块面板(#1282 v4):容器 `S.reco` 不动,子顺序 hint→槽→命令不动,只做三步呈现。
15644
16220
  *
@@ -15679,10 +16255,10 @@ ${body}`;
15679
16255
  }, react.createElement("style", { "data-ilife-absent": "steps-css" }, absentStepsCss()), react.createElement("div", {
15680
16256
  className: "ilife-step",
15681
16257
  "data-step": "1"
15682
- }, react.createElement("span", { className: "ilife-step-t" }, props.tab.plugin + " 未安装"), "请补装后使用。"), react.createElement("div", {
16258
+ }, react.createElement("span", { className: "ilife-step-t" }, m("plugin-manager.client.c009", { p0: String(props.tab.plugin) })), m("plugin-manager.client.c010")), react.createElement("div", {
15683
16259
  className: "ilife-step",
15684
16260
  "data-step": "2"
15685
- }, react.createElement("span", { className: "ilife-step-t" }, "一键安装"), react.createElement("div", { className: "ilife-tray" }, react.createElement(TabInstallSlot, {
16261
+ }, react.createElement("span", { className: "ilife-step-t" }, m("plugin-manager.client.c011")), react.createElement("div", { className: "ilife-tray" }, react.createElement(TabInstallSlot, {
15686
16262
  tab: props.tab,
15687
16263
  getCall: props.getCall,
15688
16264
  onManual: (text) => {
@@ -15691,7 +16267,7 @@ ${body}`;
15691
16267
  }))), react.createElement("div", {
15692
16268
  className: "ilife-step",
15693
16269
  "data-step": "3"
15694
- }, react.createElement("span", { className: "ilife-step-t" }, "备选:手动安装"), cmdRows.map((row) => react.createElement("span", {
16270
+ }, react.createElement("span", { className: "ilife-step-t" }, m("plugin-manager.client.c012")), cmdRows.map((row) => react.createElement("span", {
15695
16271
  key: row.key,
15696
16272
  className: "ilife-cmdrow"
15697
16273
  }, react.createElement("code", { className: row.plain ? "plain" : void 0 }, row.text), react.createElement(CopyCmdButton, {
@@ -15700,10 +16276,10 @@ ${body}`;
15700
16276
  })))), toastOn ? react.createElement("div", {
15701
16277
  "data-ilife-absent": "toast",
15702
16278
  role: "status"
15703
- }, "✓ 已复制") : null);
16279
+ }, m("plugin-manager.client.c013")) : null);
15704
16280
  }
15705
16281
  /** 版本胶囊那一行字:只在这里拼一次,屏上与用例读的是同一串。 */
15706
- const MANAGER_VERSION_TEXT = "dsh-life-pack · 0.3.86";
16282
+ const MANAGER_VERSION_TEXT = "dsh-life-pack · 0.3.87";
15707
16283
  /** 右下角那本书离面板两沿的距离:用户口径「一直处于面板右下角、不随列表滑动消失」
15708
16284
  * ⇒ sticky 吸附(面板相对,视口多大都落在面板角上);INSET=右沿,BOTTOM=底沿。 */
15709
16285
  const MANUAL_ENTRY_INSET = 16;
@@ -15783,7 +16359,8 @@ ${body}`;
15783
16359
  };
15784
16360
  }, [callReady]);
15785
16361
  const [visitedIds, setVisitedIds] = react.useState(() => /* @__PURE__ */ new Set());
15786
- const active = MANAGER_TABS.some((t) => t.plugin === activeId) ? activeId : MANAGER_TABS[0].plugin;
16362
+ const tabs = managerTabs();
16363
+ const active = tabs.some((t) => t.plugin === activeId) ? activeId : tabs[0].plugin;
15787
16364
  react.useEffect(() => {
15788
16365
  setVisitedIds((previous) => {
15789
16366
  if (previous.has(active)) return previous;
@@ -15805,21 +16382,21 @@ ${body}`;
15805
16382
  let nextIndex;
15806
16383
  switch (event.key) {
15807
16384
  case "ArrowRight":
15808
- nextIndex = (index + 1) % MANAGER_TABS.length;
16385
+ nextIndex = (index + 1) % managerTabs().length;
15809
16386
  break;
15810
16387
  case "ArrowLeft":
15811
- nextIndex = (index - 1 + MANAGER_TABS.length) % MANAGER_TABS.length;
16388
+ nextIndex = (index - 1 + managerTabs().length) % managerTabs().length;
15812
16389
  break;
15813
16390
  case "Home":
15814
16391
  nextIndex = 0;
15815
16392
  break;
15816
16393
  case "End":
15817
- nextIndex = MANAGER_TABS.length - 1;
16394
+ nextIndex = managerTabs().length - 1;
15818
16395
  break;
15819
16396
  default: return;
15820
16397
  }
15821
16398
  event.preventDefault();
15822
- const next = MANAGER_TABS[nextIndex];
16399
+ const next = managerTabs()[nextIndex];
15823
16400
  setActiveId(next.plugin);
15824
16401
  tabRefs.current[nextIndex]?.focus();
15825
16402
  }
@@ -15833,7 +16410,7 @@ ${body}`;
15833
16410
  const ghostRef = react.useRef(null);
15834
16411
  const prevTabRect = react.useRef(null);
15835
16412
  react.useEffect(() => {
15836
- const index = MANAGER_TABS.findIndex((tab) => tab.plugin === active);
16413
+ const index = managerTabs().findIndex((tab) => tab.plugin === active);
15837
16414
  const el = index < 0 ? null : tabRefs.current[index];
15838
16415
  const glider = gliderRef.current;
15839
16416
  const ghost = ghostRef.current;
@@ -15923,7 +16500,7 @@ ${body}`;
15923
16500
  ref: (element) => {
15924
16501
  rootRef.current = element;
15925
16502
  }
15926
- }, react.createElement("div", { style: S.headRow }, react.createElement("div", { style: S.head }, "爱生活"), react.createElement("span", {
16503
+ }, react.createElement("div", { style: S.headRow }, react.createElement("div", { style: S.head }, m("plugin-manager.client.c014")), react.createElement("span", {
15927
16504
  style: S.versionCapsule,
15928
16505
  "data-ilife-version": "capsule"
15929
16506
  }, MANAGER_VERSION_TEXT), react.createElement("div", { style: S.headActions }, react.createElement("button", {
@@ -15935,18 +16512,18 @@ ${body}`;
15935
16512
  } : S.healthBtn,
15936
16513
  disabled: health.running,
15937
16514
  onClick: health.run,
15938
- title: "对六家各跑一次配置体检(只看不改:不建目录、不改配置、不自动重置)",
15939
- "aria-label": "体检",
16515
+ title: m("plugin-manager.client.c015"),
16516
+ "aria-label": m("plugin-manager.client.c016"),
15940
16517
  "data-ilife-press": "health-run",
15941
16518
  "data-ilife-longpress": "health-run"
15942
- }, health.running ? "体检中…" : "体检"), react.createElement("style", { "data-ilife-interaction": "t1" }, interactionCss()), react.createElement("span", {
16519
+ }, health.running ? m("plugin-manager.client.c017") : m("plugin-manager.client.c018")), react.createElement("style", { "data-ilife-interaction": "t1" }, interactionCss()), react.createElement("span", {
15943
16520
  style: S.updateEntrySlot,
15944
16521
  ref: (element) => {
15945
16522
  entryRef.current = element;
15946
16523
  }
15947
16524
  }), react.createElement(ActionCluster, { size: 16 }))), react.createElement("div", {
15948
16525
  role: "tablist",
15949
- "aria-label": "爱生活技能页签",
16526
+ "aria-label": m("plugin-manager.client.c019"),
15950
16527
  style: {
15951
16528
  ...S.tablist,
15952
16529
  position: "relative",
@@ -15978,7 +16555,7 @@ ${body}`;
15978
16555
  ref: (element) => {
15979
16556
  gliderRef.current = element;
15980
16557
  }
15981
- })), MANAGER_TABS.map((tab, index) => {
16558
+ })), managerTabs().map((tab, index) => {
15982
16559
  const selected = tab.plugin === active;
15983
16560
  const light = lightOf(tab.plugin);
15984
16561
  const dotColor = light === void 0 ? present.has(tab.plugin) ? TAB_DOT.unchecked : TAB_DOT.absent : tabDotColor(light);
@@ -16008,7 +16585,7 @@ ${body}`;
16008
16585
  onKeyDown: (event) => {
16009
16586
  onTabKeyDown(event, index);
16010
16587
  },
16011
- title: light === void 0 ? "这一家没装(或产物没注册页签槽)" : light.title + ":" + (light.hasChannel ? light.status === null ? "还没体检" : "体检读数见本页签下方的表" : "没有配置体检出口")
16588
+ title: light === void 0 ? m("plugin-manager.client.c020") : light.title + ":" + (light.hasChannel ? light.status === null ? m("plugin-manager.client.c021") : m("plugin-manager.client.c022") : m("plugin-manager.client.c023"))
16012
16589
  }, isAbsent ? react.createElement("span", {
16013
16590
  "data-ilife-health": "tab-dot",
16014
16591
  style: {
@@ -16036,7 +16613,7 @@ ${body}`;
16036
16613
  color: note.status === null ? void 0 : STATUS_TEXT[note.status]
16037
16614
  }
16038
16615
  }, note.text));
16039
- })), MANAGER_TABS.filter((tab) => tab.plugin === active || visitedIds.has(tab.plugin)).map((tab) => {
16616
+ })), managerTabs().filter((tab) => tab.plugin === active || visitedIds.has(tab.plugin)).map((tab) => {
16040
16617
  const selected = tab.plugin === active;
16041
16618
  return react.createElement("div", {
16042
16619
  key: tab.plugin,
@@ -16094,13 +16671,13 @@ ${body}`;
16094
16671
  }, react.createElement("button", {
16095
16672
  type: "button",
16096
16673
  style: S.manualBrass,
16097
- title: "关闭使用手册",
16098
- "aria-label": "关闭使用手册",
16674
+ title: m("plugin-manager.client.c024"),
16675
+ "aria-label": m("plugin-manager.client.c025"),
16099
16676
  "data-ilife-press": "manual-close",
16100
16677
  onClick: () => {
16101
16678
  setManualOpen(false);
16102
16679
  }
16103
- }, "关闭"))
16680
+ }, m("plugin-manager.client.c026")))
16104
16681
  })))));
16105
16682
  }
16106
16683
  function apply(ctx) {
@@ -16127,7 +16704,7 @@ ${body}`;
16127
16704
  name: "settings.section",
16128
16705
  id: "dsh-life-pack",
16129
16706
  order: 21,
16130
- label: () => "爱生活",
16707
+ label: () => m("plugin-manager.client.c027"),
16131
16708
  inject: sectionInjected,
16132
16709
  children: { "ilife.config-tab": {
16133
16710
  kind: "list",