@huaqiu/dsh-tool-plugin-update 0.6.7 → 0.6.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huaqiu/dsh-tool-plugin-update",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "type": "module",
5
5
  "main": "./lib/index.mjs",
6
6
  "types": "./lib/index.d.mts",
@@ -31,8 +31,8 @@
31
31
  "@deepseek-ai/dsh-host-webserver": "^0.2.1-rc.2"
32
32
  },
33
33
  "dependencies": {
34
- "@huaqiu/dsh-sidebar-entry": "0.6.7",
35
- "@huaqiu/dsh-plugin-log": "0.6.7"
34
+ "@huaqiu/dsh-plugin-log": "0.6.8",
35
+ "@huaqiu/dsh-sidebar-entry": "0.6.8"
36
36
  },
37
37
  "files": [
38
38
  "lib",
@@ -156,6 +156,55 @@ const zh = {
156
156
  advanced: '高级:更新源',
157
157
  publishedAt: (when: string) => `发布于 ${when}`,
158
158
  },
159
+ // ── Refactored dock layout (interactive_refactored_ui_mockup.html) ──
160
+ ui: {
161
+ title: '更新中心',
162
+ gearTooltip: '高级设置',
163
+ settingsTitle: '更新源配置 (高级)',
164
+ originDefault: '默认源',
165
+ originCustom: '自定义源',
166
+ pluginUrlLabel: '插件 Manifest URL',
167
+ runtimeUrlLabel: '运行时 Manifest URL',
168
+ saveAndRefresh: '保存并刷新',
169
+ checkedAgo: (ago: string) => `上次检查: ${ago}`,
170
+ checkedUnknown: '尚未检查更新',
171
+ agoJust: '刚刚',
172
+ agoMinutes: (n: number) => `${n} 分钟前`,
173
+ agoHours: (n: number) => `${n} 小时前`,
174
+ agoDays: (n: number) => `${n} 天前`,
175
+ // Active-job banner
176
+ jobPluginTitle: (v: string) => `正在升级全套插件 (v${v})`,
177
+ jobRuntimeTitle: (v: string) => `正在升级 HQ Edge 运行时 (v${v})`,
178
+ jobSteps: ['下载', '校验', '替换', '重启'],
179
+ // Runtime result alert
180
+ rollbackTitle: '上次 HQ Edge 运行时更新已自动回滚',
181
+ failedTitle: '上次 HQ Edge 运行时更新失败',
182
+ rollbackBody: (oldVer: string, code: string) =>
183
+ `系统已安全恢复至旧版本 (v${oldVer})。代码: ${code}`,
184
+ failedBody: (oldVer: string, code: string) => `未能完成运行时替换 (旧版本 v${oldVer})。代码: ${code}`,
185
+ dismiss: '忽略',
186
+ successInline: '上次运行时更新成功',
187
+ // Runtime engine card
188
+ runtimeEngine: 'HQ Edge 核心运行时',
189
+ currentChip: (v: string) => `v${v} (当前)`,
190
+ newVersion: (v: string) => `新版本 v${v} 可用`,
191
+ breakingTag: '关键修复',
192
+ sizeLine: (size: string, summary: string) => `体积: ${size}${summary ? ` · ${summary}` : ''}`,
193
+ upgradeCore: '升级核心',
194
+ runtimeRestartNote: '升级运行时需自动重启 KiCad 进程服务',
195
+ // Plugin list
196
+ pendingTitle: '待更新插件',
197
+ allChangelog: '展开全部更新日志',
198
+ changelogBtn: '日志',
199
+ changelogTitle: '更新内容:',
200
+ blockedBadge: '无法安装',
201
+ // Footer
202
+ footerCount: (n: number) => `准备安装 ${n} 项兼容插件`,
203
+ footerSet: (v: string) => `版本集: v${v}`,
204
+ installAllSet: (v: string) => `一键更新全套插件 (v${v})`,
205
+ ignoreBtn: '忽略',
206
+ footnote: '更新将自动应用并重启 DSH 视图,不影响 EDA 图纸数据',
207
+ },
159
208
  }
160
209
 
161
210
  /** Compact a byte count for display: "约 12.3 MB" / "约 480 MB". */
@@ -311,6 +360,50 @@ const en: UpdateCopy = {
311
360
  advanced: 'Advanced: update sources',
312
361
  publishedAt: (when: string) => `Published ${when}`,
313
362
  },
363
+ // ── Refactored dock layout (interactive_refactored_ui_mockup.html) ──
364
+ ui: {
365
+ title: 'Update Center',
366
+ gearTooltip: 'Advanced settings',
367
+ settingsTitle: 'Update source (advanced)',
368
+ originDefault: 'Default source',
369
+ originCustom: 'Custom source',
370
+ pluginUrlLabel: 'Plugin manifest URL',
371
+ runtimeUrlLabel: 'Runtime manifest URL',
372
+ saveAndRefresh: 'Save & refresh',
373
+ checkedAgo: (ago: string) => `Last checked: ${ago}`,
374
+ checkedUnknown: 'No check yet',
375
+ agoJust: 'just now',
376
+ agoMinutes: (n: number) => `${n} min ago`,
377
+ agoHours: (n: number) => `${n} h ago`,
378
+ agoDays: (n: number) => `${n} d ago`,
379
+ jobPluginTitle: (v: string) => `Updating plugin set (v${v})`,
380
+ jobRuntimeTitle: (v: string) => `Upgrading HQ Edge runtime (v${v})`,
381
+ jobSteps: ['Download', 'Verify', 'Swap', 'Restart'],
382
+ rollbackTitle: 'Last HQ Edge runtime update rolled back automatically',
383
+ failedTitle: 'Last HQ Edge runtime update failed',
384
+ rollbackBody: (oldVer: string, code: string) =>
385
+ `Safely restored to the previous version (v${oldVer}). Code: ${code}`,
386
+ failedBody: (oldVer: string, code: string) => `Runtime swap did not complete (old v${oldVer}). Code: ${code}`,
387
+ dismiss: 'Dismiss',
388
+ successInline: 'Last runtime update succeeded',
389
+ runtimeEngine: 'HQ Core Runtime',
390
+ currentChip: (v: string) => `v${v} (current)`,
391
+ newVersion: (v: string) => `New v${v} available`,
392
+ breakingTag: 'Critical fix',
393
+ sizeLine: (size: string, summary: string) => `Size: ${size}${summary ? ` · ${summary}` : ''}`,
394
+ upgradeCore: 'Upgrade core',
395
+ runtimeRestartNote: 'Upgrading the runtime restarts the KiCad process service',
396
+ pendingTitle: 'Plugins to update',
397
+ allChangelog: 'Expand all changelogs',
398
+ changelogBtn: 'Log',
399
+ changelogTitle: 'What changed:',
400
+ blockedBadge: 'Cannot install',
401
+ footerCount: (n: number) => `Ready to install ${n} compatible plugin${n === 1 ? '' : 's'}`,
402
+ footerSet: (v: string) => `Set: v${v}`,
403
+ installAllSet: (v: string) => `Update all plugins (v${v})`,
404
+ ignoreBtn: 'Ignore',
405
+ footnote: 'Updates apply automatically and restart the DSH view — your EDA schematic data is untouched',
406
+ },
314
407
  }
315
408
 
316
409
  export const COPY = { zh, en } as const