dsh-config-manager 0.8.2 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (345) hide show
  1. package/lib/adapters/mcp.js +42 -13
  2. package/lib/adapters/messages.d.ts +1 -0
  3. package/lib/adapters/messages.js +2 -0
  4. package/lib/adapters/patch-key-guard.d.ts +23 -0
  5. package/lib/adapters/patch-key-guard.js +13 -0
  6. package/lib/adapters/plugin-data.d.ts +19 -5
  7. package/lib/adapters/plugin-data.js +76 -22
  8. package/lib/adapters/plugins.d.ts +14 -1
  9. package/lib/adapters/plugins.js +147 -4
  10. package/lib/cli/actions.d.ts +7 -105
  11. package/lib/cli/actions.js +16 -172
  12. package/lib/cli/control-state.d.ts +54 -0
  13. package/lib/cli/control-state.js +107 -0
  14. package/lib/cli/index.js +14 -0
  15. package/lib/cli/write-gates.d.ts +61 -0
  16. package/lib/cli/write-gates.js +110 -0
  17. package/lib/client.d.ts +104 -49
  18. package/lib/client.js +12536 -12006
  19. package/lib/core/backup.d.ts +0 -4
  20. package/lib/core/backup.js +21 -4
  21. package/lib/core/boot-rescue.d.ts +1 -1
  22. package/lib/core/boot-rescue.js +12 -1
  23. package/lib/core/boot-safety.js +37 -2
  24. package/lib/core/conflict-decisions.js +2 -1
  25. package/lib/core/exporter.js +22 -1
  26. package/lib/core/journal.d.ts +54 -4
  27. package/lib/core/journal.js +158 -35
  28. package/lib/core/local-plugin-host.d.ts +29 -0
  29. package/lib/core/local-plugin-host.js +55 -48
  30. package/lib/core/messages.d.ts +7 -0
  31. package/lib/core/messages.js +14 -0
  32. package/lib/core/migration-history.js +16 -9
  33. package/lib/core/model-tools.d.ts +2 -2
  34. package/lib/core/model-tools.js +14 -2
  35. package/lib/core/patch-secret-guard.d.ts +49 -0
  36. package/lib/core/patch-secret-guard.js +164 -0
  37. package/lib/core/reconcile.d.ts +8 -0
  38. package/lib/core/reconcile.js +18 -3
  39. package/lib/core/reinstall.d.ts +2 -0
  40. package/lib/core/reinstall.js +6 -2
  41. package/lib/core/restore.js +31 -6
  42. package/lib/core/section-sanitize.d.ts +32 -0
  43. package/lib/core/section-sanitize.js +13 -0
  44. package/lib/core/snapshot-diff.d.ts +30 -0
  45. package/lib/core/snapshot-diff.js +56 -20
  46. package/lib/core/startup-barrier.js +8 -2
  47. package/lib/core/types.d.ts +22 -0
  48. package/lib/core/update-check.js +51 -2
  49. package/lib/foreign/kernel.js +9 -2
  50. package/lib/foreign/read-claude-plugins.js +29 -11
  51. package/lib/foreign/read-dsh.js +31 -2
  52. package/lib/foreign/session-ir.js +50 -9
  53. package/lib/foreign/session-read.d.ts +8 -0
  54. package/lib/foreign/session-read.js +26 -0
  55. package/lib/index.d.ts +1 -1
  56. package/lib/index.js +1 -1
  57. package/lib/profiles/dsh-profile-io.d.ts +20 -0
  58. package/lib/profiles/dsh-profile-io.js +27 -0
  59. package/lib/profiles/dsh-profile-manager.d.ts +27 -0
  60. package/lib/profiles/dsh-profile-manager.js +45 -4
  61. package/lib/profiles/dsh-profile-runtime.d.ts +5 -1
  62. package/lib/profiles/dsh-profile-runtime.js +16 -3
  63. package/lib/profiles/process-control.d.ts +18 -1
  64. package/lib/profiles/process-control.js +25 -1
  65. package/lib/routes/profiles.js +2 -1
  66. package/lib/routes/sync.js +13 -1
  67. package/lib/schema/types.d.ts +11 -0
  68. package/lib/security/redaction.js +22 -6
  69. package/lib/sync/autosync-repeat.d.ts +27 -0
  70. package/lib/sync/autosync-repeat.js +23 -0
  71. package/lib/sync/autosync-scheduler.d.ts +34 -1
  72. package/lib/sync/autosync-scheduler.js +151 -43
  73. package/lib/sync/baseline-heal.js +7 -0
  74. package/lib/sync/baseline-record.d.ts +67 -0
  75. package/lib/sync/baseline-record.js +74 -0
  76. package/lib/sync/blob-store.js +13 -0
  77. package/lib/sync/content-diff.d.ts +39 -0
  78. package/lib/sync/content-diff.js +46 -0
  79. package/lib/sync/git/git-transport.d.ts +32 -1
  80. package/lib/sync/git/git-transport.js +146 -26
  81. package/lib/sync/github-auth.d.ts +17 -1
  82. package/lib/sync/github-auth.js +37 -1
  83. package/lib/sync/merge-apply-plan.d.ts +38 -0
  84. package/lib/sync/merge-apply-plan.js +76 -0
  85. package/lib/sync/messages.d.ts +1 -0
  86. package/lib/sync/messages.js +2 -0
  87. package/lib/sync/pending-merge.d.ts +34 -0
  88. package/lib/sync/pending-merge.js +53 -0
  89. package/lib/sync/s3/s3-transport.d.ts +14 -2
  90. package/lib/sync/s3/s3-transport.js +72 -48
  91. package/lib/sync/sync-engine.d.ts +23 -40
  92. package/lib/sync/sync-engine.js +115 -132
  93. package/lib/sync/sync-history.d.ts +7 -0
  94. package/lib/sync/sync-state.d.ts +28 -0
  95. package/lib/sync/sync-state.js +20 -0
  96. package/lib/sync/transport.d.ts +12 -3
  97. package/lib/sync/transport.js +13 -4
  98. package/lib/sync/webdav/webdav-transport.d.ts +19 -2
  99. package/lib/sync/webdav/webdav-transport.js +81 -40
  100. package/lib/ui/commands.js +5 -11
  101. package/lib/ui/dsh-profiles-view.d.ts +8 -3
  102. package/lib/ui/dsh-profiles-view.js +9 -5
  103. package/lib/ui/i18n.d.ts +2 -1
  104. package/lib/ui/i18n.js +4 -2
  105. package/lib/ui/menu-placement.js +1 -1
  106. package/lib/ui/migration-consult-view.d.ts +11 -0
  107. package/lib/ui/migration-consult-view.js +15 -0
  108. package/lib/ui/overview-view.d.ts +7 -0
  109. package/lib/ui/overview-view.js +3 -0
  110. package/lib/ui/report.d.ts +9 -0
  111. package/lib/ui/report.js +17 -4
  112. package/lib/ui/selection-model.d.ts +8 -0
  113. package/lib/ui/selection-model.js +16 -0
  114. package/lib/utils/patch-yaml.d.ts +39 -1
  115. package/lib/utils/patch-yaml.js +82 -2
  116. package/lib/utils/paths.d.ts +13 -0
  117. package/lib/utils/paths.js +35 -0
  118. package/lib/utils/workdir-lock.js +18 -3
  119. package/package.json +2 -1
  120. package/src/adapters/mcp.test.ts +29 -0
  121. package/src/adapters/mcp.ts +43 -12
  122. package/src/adapters/messages.ts +2 -0
  123. package/src/adapters/patch-key-guard.ts +29 -0
  124. package/src/adapters/plugin-data.test.ts +126 -0
  125. package/src/adapters/plugin-data.ts +97 -26
  126. package/src/adapters/plugins.test.ts +288 -0
  127. package/src/adapters/plugins.ts +141 -4
  128. package/src/cli/actions.test.ts +74 -1
  129. package/src/cli/actions.ts +27 -246
  130. package/src/cli/control-state.ts +143 -0
  131. package/src/cli/index.ts +18 -0
  132. package/src/cli/web/web.test.ts +27 -0
  133. package/src/cli/write-gates.ts +149 -0
  134. package/src/client/about/AboutPanel.tsx +7 -6
  135. package/src/client/about/release-notes-view.test.ts +17 -0
  136. package/src/client/about/release-notes-view.ts +49 -24
  137. package/src/client/chat/ChatEntryView.tsx +2 -2
  138. package/src/client/chat/rollback-entry-view.ts +6 -1
  139. package/src/client/common/CommandPalette.tsx +6 -3
  140. package/src/client/common/ConfirmDialog.tsx +29 -12
  141. package/src/client/common/ContentPicker.tsx +13 -12
  142. package/src/client/common/Modal.tsx +12 -5
  143. package/src/client/common/MoreMenu.tsx +4 -1
  144. package/src/client/common/RunsCenter.tsx +103 -32
  145. package/src/client/common/Select.tsx +2 -2
  146. package/src/client/common/floating-bounds.ts +1 -1
  147. package/src/client/common/floating-units.test.ts +1 -2
  148. package/src/client/common/plan-text-redaction.test.ts +188 -3
  149. package/src/client/common/runs-center-guard.test.ts +60 -0
  150. package/src/client/common/runs-center-view.test.ts +128 -0
  151. package/src/client/common/runs-center-view.ts +96 -0
  152. package/src/client/common/section-title-action.test.ts +66 -0
  153. package/src/client/common/ui.tsx +93 -30
  154. package/src/client/config-manager.module.css +1507 -272
  155. package/src/client/consult/ConsultCard.tsx +7 -6
  156. package/src/client/environment/EnvironmentPanel.tsx +20 -21
  157. package/src/client/environment/maintenance/DiskUsageCard.tsx +65 -91
  158. package/src/client/environment/profiles-incomplete-ui.test.ts +8 -8
  159. package/src/client/export/ExportView.tsx +7 -16
  160. package/src/client/history/HistoryPanel.tsx +88 -28
  161. package/src/client/history/history-locales.ts +3 -3
  162. package/src/client/home/BackupScheduleCard.tsx +35 -30
  163. package/src/client/home/HomePanel.tsx +45 -10
  164. package/src/client/import/ConflictList.tsx +13 -13
  165. package/src/client/import/ForeignImportView.tsx +7 -6
  166. package/src/client/import/ImportWizardView.tsx +2 -3
  167. package/src/client/import/PathMappingForm.tsx +4 -4
  168. package/src/client/import/PathPickerDialog.tsx +2 -1
  169. package/src/client/import/import-wizard-steps.tsx +51 -39
  170. package/src/client/import/use-import-wizard-controller.test.ts +129 -0
  171. package/src/client/import/use-import-wizard-controller.ts +116 -22
  172. package/src/client/library/ArtifactRow.tsx +2 -2
  173. package/src/client/library/BackupInspectView.tsx +19 -15
  174. package/src/client/library/LibraryActions.tsx +56 -16
  175. package/src/client/library/LibraryPanel.tsx +7 -7
  176. package/src/client/library/RestorePlanView.tsx +13 -8
  177. package/src/client/locales/about.ts +0 -2
  178. package/src/client/locales/backup.ts +10 -12
  179. package/src/client/locales/common.ts +2 -0
  180. package/src/client/locales/export.ts +5 -12
  181. package/src/client/locales/foreign.ts +2 -2
  182. package/src/client/locales/import.ts +3 -2
  183. package/src/client/locales/overview.ts +4 -0
  184. package/src/client/locales/profiles.ts +32 -4
  185. package/src/client/locales/restore.ts +0 -2
  186. package/src/client/locales/sessions.ts +0 -2
  187. package/src/client/locales/shell.ts +2 -2
  188. package/src/client/market/MarketPanel.tsx +38 -20
  189. package/src/client/market/MyConfigsList.tsx +34 -32
  190. package/src/client/market/MyConfigsLoginCard.tsx +12 -15
  191. package/src/client/market/MyConfigsView.tsx +5 -5
  192. package/src/client/market/MyConfigsWizard.tsx +7 -12
  193. package/src/client/market/market-locales.ts +0 -6
  194. package/src/client/market/my-configs-split.test.ts +2 -1
  195. package/src/client/nav-menu-clip-guard.test.ts +52 -0
  196. package/src/client/recovery/IncompleteCopiesSection.tsx +1 -3
  197. package/src/client/recovery/RecoveryPanel.tsx +31 -16
  198. package/src/client/recovery/RollbackCard.tsx +58 -16
  199. package/src/client/recovery/RollbackFileChanges.tsx +40 -27
  200. package/src/client/recovery/SessionHealthCard.tsx +2 -2
  201. package/src/client/recovery/SessionHealthDialog.tsx +5 -7
  202. package/src/client/recovery/SessionLayoutSection.tsx +3 -5
  203. package/src/client/recovery/recovery-locales.ts +12 -8
  204. package/src/client/run-store.test.ts +30 -0
  205. package/src/client/run-store.ts +21 -1
  206. package/src/client/sync/AddChannelCard.tsx +65 -0
  207. package/src/client/sync/AutosyncCard.tsx +182 -108
  208. package/src/client/sync/ChannelClearConfirmDialog.tsx +5 -1
  209. package/src/client/sync/ChannelConfigDialog.tsx +27 -48
  210. package/src/client/sync/MergePreviewView.tsx +3 -5
  211. package/src/client/sync/PushReportSections.tsx +35 -0
  212. package/src/client/sync/SyncChannelEntryCard.tsx +33 -24
  213. package/src/client/sync/SyncConfirmView.tsx +3 -3
  214. package/src/client/sync/SyncLogList.tsx +16 -5
  215. package/src/client/sync/SyncPanel.tsx +153 -159
  216. package/src/client/sync/SyncProbeRow.tsx +5 -7
  217. package/src/client/sync/SyncRepositoryPicker.tsx +17 -4
  218. package/src/client/sync/SyncSecuritySection.tsx +157 -0
  219. package/src/client/sync/SyncSettingsDialog.tsx +304 -0
  220. package/src/client/sync/SyncSettingsView.test.ts +26 -8
  221. package/src/client/sync/WorkDirCard.tsx +2 -4
  222. package/src/client/sync/config-clear-guard.test.ts +94 -0
  223. package/src/client/sync/config-clear-guard.ts +98 -0
  224. package/src/client/sync/config-dirty.test.ts +91 -0
  225. package/src/client/sync/config-dirty.ts +88 -0
  226. package/src/client/sync/history-model.test.ts +2 -0
  227. package/src/client/sync/history-model.ts +3 -0
  228. package/src/client/sync/merge-request.ts +20 -0
  229. package/src/client/sync/sync-api.ts +12 -0
  230. package/src/client/sync/sync-locales.ts +87 -47
  231. package/src/client/sync/sync-panel-clear.test.ts +44 -0
  232. package/src/client/sync/sync-view.test.ts +20 -0
  233. package/src/client/sync/sync-view.ts +42 -4
  234. package/src/core/backup.test.ts +61 -1
  235. package/src/core/backup.ts +21 -4
  236. package/src/core/boot-rescue.test.ts +35 -0
  237. package/src/core/boot-rescue.ts +13 -2
  238. package/src/core/boot-safety.test.ts +25 -0
  239. package/src/core/boot-safety.ts +37 -2
  240. package/src/core/conflict-decisions.ts +2 -1
  241. package/src/core/exporter.ts +21 -1
  242. package/src/core/journal.test.ts +183 -0
  243. package/src/core/journal.ts +163 -25
  244. package/src/core/local-plugin-host.test.ts +68 -2
  245. package/src/core/local-plugin-host.ts +31 -4
  246. package/src/core/messages.ts +14 -0
  247. package/src/core/migration-history.test.ts +27 -0
  248. package/src/core/migration-history.ts +12 -4
  249. package/src/core/model-tools.test.ts +67 -0
  250. package/src/core/model-tools.ts +16 -4
  251. package/src/core/patch-secret-guard.test.ts +110 -0
  252. package/src/core/patch-secret-guard.ts +176 -0
  253. package/src/core/reconcile.ts +32 -4
  254. package/src/core/reinstall.ts +8 -2
  255. package/src/core/restore.ts +32 -7
  256. package/src/core/section-sanitize.ts +37 -0
  257. package/src/core/snapshot-diff.test.ts +73 -1
  258. package/src/core/snapshot-diff.ts +66 -21
  259. package/src/core/startup-barrier.test.ts +64 -0
  260. package/src/core/startup-barrier.ts +8 -2
  261. package/src/core/types.ts +27 -1
  262. package/src/core/update-check.test.ts +40 -0
  263. package/src/core/update-check.ts +53 -2
  264. package/src/foreign/claude-code.test.ts +5 -0
  265. package/src/foreign/claude-plugins.test.ts +57 -0
  266. package/src/foreign/claude-sessions-bytes.test.ts +7 -1
  267. package/src/foreign/dsh.test.ts +23 -0
  268. package/src/foreign/kernel.ts +9 -2
  269. package/src/foreign/read-claude-plugins.ts +32 -11
  270. package/src/foreign/read-dsh.ts +33 -2
  271. package/src/foreign/session-ir.test.ts +67 -0
  272. package/src/foreign/session-ir.ts +54 -14
  273. package/src/foreign/session-read.ts +23 -0
  274. package/src/index.ts +1 -1
  275. package/src/profiles/dsh-profile-copy-rollback.test.ts +58 -4
  276. package/src/profiles/dsh-profile-io.ts +29 -0
  277. package/src/profiles/dsh-profile-manager.test.ts +30 -0
  278. package/src/profiles/dsh-profile-manager.ts +53 -5
  279. package/src/profiles/dsh-profile-runtime.test.ts +29 -7
  280. package/src/profiles/dsh-profile-runtime.ts +17 -3
  281. package/src/profiles/process-control.test.ts +97 -0
  282. package/src/profiles/process-control.ts +28 -1
  283. package/src/routes/profiles.ts +2 -1
  284. package/src/routes/sync.ts +13 -1
  285. package/src/schema/types.ts +16 -1
  286. package/src/security/redaction.test.ts +31 -0
  287. package/src/security/redaction.ts +23 -6
  288. package/src/sync/autosync-repeat.test.ts +58 -0
  289. package/src/sync/autosync-repeat.ts +55 -0
  290. package/src/sync/autosync-scheduler.test.ts +417 -0
  291. package/src/sync/autosync-scheduler.ts +154 -41
  292. package/src/sync/baseline-heal.ts +6 -0
  293. package/src/sync/baseline-record.ts +135 -0
  294. package/src/sync/blob-store.test.ts +16 -0
  295. package/src/sync/blob-store.ts +13 -0
  296. package/src/sync/content-diff.test.ts +95 -0
  297. package/src/sync/content-diff.ts +79 -0
  298. package/src/sync/git/git-transport.test.ts +151 -4
  299. package/src/sync/git/git-transport.ts +143 -27
  300. package/src/sync/github-auth.test.ts +26 -1
  301. package/src/sync/github-auth.ts +37 -1
  302. package/src/sync/merge-apply-plan.ts +117 -0
  303. package/src/sync/messages.ts +2 -0
  304. package/src/sync/pending-merge.ts +77 -0
  305. package/src/sync/s3/s3-delete-and-blob-index.test.ts +249 -0
  306. package/src/sync/s3/s3-transport.ts +76 -42
  307. package/src/sync/sync-config.test.ts +39 -12
  308. package/src/sync/sync-device-identity.test.ts +3 -0
  309. package/src/sync/sync-engine.test.ts +465 -12
  310. package/src/sync/sync-engine.ts +130 -135
  311. package/src/sync/sync-history.ts +7 -0
  312. package/src/sync/sync-state.ts +48 -0
  313. package/src/sync/transport.test.ts +13 -1
  314. package/src/sync/transport.ts +12 -4
  315. package/src/sync/webdav/webdav-delete-and-blob-index.test.ts +249 -0
  316. package/src/sync/webdav/webdav-transport.ts +86 -34
  317. package/src/ui/commands.test.ts +11 -0
  318. package/src/ui/commands.ts +5 -14
  319. package/src/ui/dsh-profiles-view.test.ts +16 -0
  320. package/src/ui/dsh-profiles-view.ts +11 -5
  321. package/src/ui/i18n.ts +4 -2
  322. package/src/ui/menu-placement.ts +1 -1
  323. package/src/ui/migration-consult-view.test.ts +20 -1
  324. package/src/ui/migration-consult-view.ts +17 -0
  325. package/src/ui/overview-view.ts +10 -0
  326. package/src/ui/report.test.ts +25 -1
  327. package/src/ui/report.ts +15 -4
  328. package/src/ui/selection-model.test.ts +15 -1
  329. package/src/ui/selection-model.ts +18 -0
  330. package/src/utils/js-yaml4.d.ts +35 -0
  331. package/src/utils/patch-yaml.test.ts +207 -1
  332. package/src/utils/patch-yaml.ts +98 -2
  333. package/src/utils/paths.test.ts +14 -1
  334. package/src/utils/paths.ts +35 -0
  335. package/src/utils/workdir-lock.test.ts +69 -0
  336. package/src/utils/workdir-lock.ts +17 -3
  337. package/lib/ui/path-mapping.d.ts +0 -38
  338. package/lib/ui/path-mapping.js +0 -75
  339. package/src/client/common/InfoHint.tsx +0 -289
  340. package/src/client/common/info-hint-guard.test.ts +0 -1119
  341. package/src/client/sync/DecryptPasswordCard.tsx +0 -48
  342. package/src/client/sync/SecurityOptionsCard.tsx +0 -97
  343. package/src/client/sync/SyncSectionPickerDialog.tsx +0 -213
  344. package/src/ui/path-mapping.test.ts +0 -67
  345. package/src/ui/path-mapping.ts +0 -103
@@ -23,9 +23,9 @@ import type { ConfigManagerApi, BackupInspectResult } from '../api.ts'
23
23
  import type { SyncApi } from '../sync/sync-api.ts'
24
24
  import { formatDateTimeFull } from '../sync/history-model.ts'
25
25
  import type { TranslateNS } from '../client-types.ts'
26
- import { Banner, Button, Empty, Spinner } from '../common/ui.tsx'
26
+ import { Badge, Banner, Button, Empty, Spinner } from '../common/ui.tsx'
27
+ import { Icon } from '../common/Icon.tsx'
27
28
  import { Skeleton, SkeletonList, SkeletonTable } from '../common/Skeleton.tsx'
28
- import { InfoHint } from '../common/InfoHint.tsx'
29
29
  import { ConfirmDialog } from '../common/ConfirmDialog.tsx'
30
30
  import { Modal } from '../common/Modal.tsx'
31
31
  import { toast } from '../common/toast-store.ts'
@@ -163,7 +163,7 @@ export function LibraryActions({ api, syncApi, t, target, onDone, onChanged, onO
163
163
  },
164
164
  (err) => {
165
165
  if (!mounted.current || gen !== generation.current) return
166
- setPlan({ snapshotId: row.ref.snapshotId ?? '', loading: false, plan: null, changeSummary: undefined, planFingerprint: undefined, error: err instanceof Error ? err.message : String(err) })
166
+ setPlan({ snapshotId: row.ref.snapshotId ?? '', loading: false, plan: null, changeSummary: undefined, planFingerprint: undefined, error: redactErrorText(err) })
167
167
  reportPending(row.key, null)
168
168
  },
169
169
  )
@@ -238,7 +238,7 @@ export function LibraryActions({ api, syncApi, t, target, onDone, onChanged, onO
238
238
  if (mounted.current && gen === generation.current) setInspect({ name, loading: false, error: null, result })
239
239
  } catch (err) {
240
240
  if (mounted.current && gen === generation.current) {
241
- setInspect({ name, loading: false, error: err instanceof Error ? err.message : String(err), result: null })
241
+ setInspect({ name, loading: false, error: redactErrorText(err), result: null })
242
242
  }
243
243
  }
244
244
  })()
@@ -436,16 +436,36 @@ export function LibraryActions({ api, syncApi, t, target, onDone, onChanged, onO
436
436
  closeLabel={t('common.close')}
437
437
  onClose={() => { setPull(null) }}
438
438
  closeDisabled={pull?.phase === 'running'}
439
+ trailing={pull?.phase === 'running'
440
+ ? <Badge kind="info" className={css.pullBadge}>{t('library.pullBadge')}</Badge>
441
+ : undefined}
439
442
  />
440
443
  <Modal.Body scroll>
441
444
  {pull !== null && (
442
445
  <>
443
- <div className={css.hint}>{fileNameOf(pull.row)}</div>
446
+ {/* 稿 D-04:215-226:左侧 Spinner + 主文案,右侧文件名(等宽、省略)。
447
+ 文件名不是「说明文字」:它是这次操作唯一能区分对象的标识,必须与状态同排可见。 */}
448
+ <div className={css.pullMeta}>
449
+ <span className={css.pullStatus}>
450
+ {pull.phase === 'running' && (
451
+ <>
452
+ <Spinner label={pullProgressLabel(pull.mode, t)} />
453
+ <span>{pullProgressLabel(pull.mode, t)}</span>
454
+ </>
455
+ )}
456
+ </span>
457
+ <span className={css.pullName} title={fileNameOf(pull.row)}>{fileNameOf(pull.row)}</span>
458
+ </div>
459
+ {/* 不定态进度条:宿主不回报分区级进度(/sync/pull 是一次 RPC),
460
+ 所以只表达「在动」,不编造百分比(稿上的 12/18 与 68% 无数据来源)。 */}
444
461
  {pull.phase === 'running' && (
445
- <div className={css.statRow}>
446
- <Spinner label={pullProgressLabel(pull.mode, t)} />
447
- <span>{pullProgressLabel(pull.mode, t)}</span>
448
- </div>
462
+ <span
463
+ className={css.progressTrack + ' ' + css.pullTrack}
464
+ role="progressbar"
465
+ aria-valuetext={pullProgressLabel(pull.mode, t)}
466
+ >
467
+ <span className={css.progressBar + ' ' + css.progressIndeterminate + ' ' + css.pullBar} />
468
+ </span>
449
469
  )}
450
470
  {pull.phase === 'failed' && pull.error !== null && <Banner kind="error">{pull.error}</Banner>}
451
471
  </>
@@ -469,7 +489,6 @@ export function LibraryActions({ api, syncApi, t, target, onDone, onChanged, onO
469
489
  closeLabel={t('common.close')}
470
490
  onClose={() => { setPlan(null) }}
471
491
  closeDisabled={running}
472
- trailing={<InfoHint text={t('snapshots.selectHint')} label={t('common.infoHint')} />}
473
492
  />
474
493
  <Modal.Body scroll>
475
494
  {/* 恢复计划预览:结果是一张「文件 → 动作」表 → 按表格铺骨架 */}
@@ -526,7 +545,6 @@ export function LibraryActions({ api, syncApi, t, target, onDone, onChanged, onO
526
545
  ? t('backupFiles.deleteConfirm', { name: fileNameOf(confirmDelete) })
527
546
  : confirmDelete.kind === 'remote-snapshot'
528
547
  ? t('library.remoteDeleteConfirm', { time: timeText(confirmDelete) })
529
- + (confirmDelete.badges.includes('current') ? ' ' + t('library.remoteDeleteBaseline') : '')
530
548
  : t('snapshots.deleteConfirm', { time: confirmDelete.title.kind === 'time' ? confirmDelete.title.iso : '' })}
531
549
  confirmLabel={confirmDelete === null ? t('snapshots.delete')
532
550
  : confirmDelete.kind === 'backup-file' ? t('backupFiles.delete')
@@ -536,7 +554,16 @@ export function LibraryActions({ api, syncApi, t, target, onDone, onChanged, onO
536
554
  danger
537
555
  onConfirm={doDelete}
538
556
  onCancel={() => { setConfirmDelete(null) }}
539
- />
557
+ >
558
+ {/* 「命中当前基线」不是附注,而是会给用户带来后果的一句事实(稿 D-07:214-219):
559
+ 从 message 里拆出来做成警告盒,正文只留「删什么、为什么不可恢复」。 */}
560
+ {confirmDelete !== null && confirmDelete.kind === 'remote-snapshot' && confirmDelete.badges.includes('current') && (
561
+ <div className={css.confirmNote}>
562
+ <span className={css.confirmNoteIcon} aria-hidden="true"><Icon name="warn" size={14} /></span>
563
+ <span>{t('library.remoteDeleteBaseline')}</span>
564
+ </div>
565
+ )}
566
+ </ConfirmDialog>
540
567
 
541
568
  {/* 查看与对比(只读,零写入) */}
542
569
  <Modal open={inspect !== null} onClose={() => { setInspect(null) }} title={t('backupFiles.inspect')} wide>
@@ -559,7 +586,7 @@ export function LibraryActions({ api, syncApi, t, target, onDone, onChanged, onO
559
586
  {reportLine(t('snapshots.restored'), report.restored, t)}
560
587
  {reportLine(t('snapshots.removedPlugins'), report.removedPlugins, t)}
561
588
  {reportLine(t('snapshots.manualHints'), report.manualHints, t, true)}
562
- {reportLine(t('snapshots.failed'), report.failed.map((f) => `${f.item}: ${f.reason}`), t, true)}
589
+ {reportLine(t('snapshots.failed'), report.failed.map((f) => ({ path: f.item, text: f.reason })), t, true)}
563
590
  {reportLine(t('snapshots.skipped'), report.skipped, t)}
564
591
  </>
565
592
  )}
@@ -676,16 +703,29 @@ function runStorePatchImport(row: ArtifactRow): void {
676
703
  function runStoreWatch(): void { runStore.watchRunning('restore', 500) }
677
704
  function runStoreStopWatch(): void { runStore.stopRunWatch('restore') }
678
705
 
679
- function reportLine(title: string, items: string[], t: TranslateNS<'config-manager'>, warn = false) {
706
+ /** 报告条目:纯文本,或「路径 + 原因」两段(路径等宽,原因沿用行字色) */
707
+ type ReportLineItem = string | { path: string; text: string }
708
+
709
+ function reportLine(title: string, items: ReportLineItem[], t: TranslateNS<'config-manager'>, warn = false) {
680
710
  if (items.length === 0) return null
681
711
  return (
682
712
  <div className={css.inspectGroup} key={title}>
683
713
  <div className={css.groupHeader}>
684
- <strong className={warn ? css.warnText : undefined}>{title}{t('common.parens', { text: String(items.length) })}</strong>
714
+ {/* 组标题用正文档字号 + 600(.reportGroupTitle):裸 <strong> 在 11px 小节头里比条目还小 */}
715
+ <strong className={warn ? `${css.reportGroupTitle} ${css.warnText}` : css.reportGroupTitle}>{title}{t('common.parens', { text: String(items.length) })}</strong>
685
716
  </div>
686
717
  <div className={css.reportScroll}>
687
718
  <ul className={css.reportList}>
688
- {items.map((item, i) => <li key={`${title}-${i}`}>{item}</li>)}
719
+ {items.map((item, i) => (
720
+ <li key={`${title}-${i}`} className={css.reportItem}>
721
+ {typeof item === 'string' ? item : (
722
+ <>
723
+ <span className={css.reportItemPath}>{item.path}:</span>
724
+ <span>{item.text}</span>
725
+ </>
726
+ )}
727
+ </li>
728
+ ))}
689
729
  </ul>
690
730
  </div>
691
731
  </div>
@@ -27,7 +27,6 @@ import { Badge, Button, Card, Empty } from '../common/ui.tsx'
27
27
  import { snapshotOriginOf, snapshotOriginState } from '../../ui/snapshots-view.ts'
28
28
  import { SkeletonRows } from '../common/Skeleton.tsx'
29
29
  import { redact } from '../../security/redaction.ts'
30
- import { InfoHint } from '../common/InfoHint.tsx'
31
30
  import { ArtifactRowView, type ArtifactPendingAction } from './ArtifactRow.tsx'
32
31
  import css from '../config-manager.module.css'
33
32
 
@@ -210,12 +209,12 @@ export function LibraryPanel({ api, syncApi, marketApi, t, uiT, onAction, onOpen
210
209
  * 行首来源徽章:档案名恒显示;只有「已知当前档案且不同」时才升到 warn 并带差异说明
211
210
  * (宿主没给当前档案时只显示名字 —— 那是无法证明的结论)。
212
211
  */
213
- const originBadgeOf = (row: ArtifactRow): { label: string; hint?: string; kind: 'info' | 'warn' } | undefined => {
212
+ const originBadgeOf = (row: ArtifactRow): { label: string; kind: 'info' | 'warn' } | undefined => {
214
213
  if (row.kind !== 'snapshot') return undefined
215
214
  const profile = originOfSnapshot.get(row.ref.snapshotId ?? '')
216
215
  if (profile === undefined) return undefined
217
216
  return snapshotOriginState({ originProfile: profile }, currentProfile ?? undefined) === 'foreign'
218
- ? { label: profile, hint: t('library.origin.foreign'), kind: 'warn' }
217
+ ? { label: profile, kind: 'warn' }
219
218
  : { label: profile, kind: 'info' }
220
219
  }
221
220
 
@@ -280,7 +279,9 @@ export function LibraryPanel({ api, syncApi, marketApi, t, uiT, onAction, onOpen
280
279
  )}
281
280
 
282
281
  {/* 加载态 / 空态与列表**同一条高度契约**(.libraryListState):三者都吃掉剩余高度,
283
- 底栏因此恒贴底(只在有数据时才需要列表本身,空态不该让页面塌成半截)。 */}
282
+ 底栏因此恒贴底(只在有数据时才需要列表本身,空态不该让页面塌成半截)。
283
+ 2026-11-14 用户要求:空态卡本身也要吃满这块空间(.libraryEmptyFill)——
284
+ 此前它只有内容高、居中悬在几百像素的空白里,整页读成「这里坏了」。 */}
284
285
  {/* 还有来源在路上(本机两源已就绪但为空)时也走加载态:绝不先给「暂无产物」的结论。
285
286
  与空态共用同一个 .libraryListState 契约(守卫要求恰好两处:加载态 + 空态)。 */}
286
287
  {(loading || (anySourcePending && filtered.length === 0)) && (
@@ -292,7 +293,7 @@ export function LibraryPanel({ api, syncApi, marketApi, t, uiT, onAction, onOpen
292
293
  )}
293
294
 
294
295
  {!loading && !anySourcePending && filtered.length === 0 && (
295
- <div className={css.libraryListState}>
296
+ <div className={css.libraryListState + ' ' + css.libraryEmptyFill}>
296
297
  <Empty>
297
298
  {lib.query.trim() !== '' || lib.sourceFilter !== null
298
299
  ? t('library.emptyFiltered')
@@ -340,12 +341,11 @@ export function LibraryPanel({ api, syncApi, marketApi, t, uiT, onAction, onOpen
340
341
  {encryptedCount > 0 && (
341
342
  <Badge kind="warn">{uiT('library.summary.encrypted', { count: encryptedCount })}</Badge>
342
343
  )}
343
- <InfoHint text={t('backupFiles.hint')} label={t('common.infoHint')} />
344
344
  <span className={css.statusSpacer} />
345
345
  {/* 底栏四个入口,只有「导出」是这一页的产品级动作(把本机配置打成可分享的包);
346
346
  其余三个是「拿别人的东西进来 / 去别处找」。主按钮只留一个,否则整屏没有焦点
347
347
  (app-screens §13:强调色应用在数据与至多一个控件上)。 */}
348
- <Button size="sm" variant="primary" onClick={onOpenExport}>{t('library.new.export')}</Button>
348
+ <Button size="sm" variant="primary" onClick={onOpenExport} title={t('backupFiles.hint')}>{t('library.new.export')}</Button>
349
349
  <Button size="sm" onClick={() => { onOpenTask('import') }}>{t('library.new.import')}</Button>
350
350
  <Button size="sm" onClick={() => { onOpenTask('market') }}>{t('library.new.market')}</Button>
351
351
  <Button size="sm" onClick={onOpenPublish}>{t('task.title.publish')}</Button>
@@ -176,12 +176,14 @@ export function RestorePlanView({ api, t, snapshotId, plan, changeSummary }: Res
176
176
  return (
177
177
  <div className={css.restorePlan}>
178
178
  <div className={css.statRow}>
179
- {stats.changed > 0 && <Badge kind="info">{t('snapshots.plan.changed', { count: String(stats.changed) })}</Badge>}
180
- {stats.added > 0 && <Badge kind="ok">{t('snapshots.plan.added', { count: String(stats.added) })}</Badge>}
181
- {stats.deleted > 0 && <Badge kind="error">{t('snapshots.plan.deleted', { count: String(stats.deleted) })}</Badge>}
182
- {stats.plugins > 0 && <Badge kind="warn">{t('snapshots.plan.plugins', { count: String(stats.plugins) })}</Badge>}
183
- {stats.hints > 0 && <Badge kind="warn">{t('snapshots.plan.hints', { count: String(stats.hints) })}</Badge>}
184
- {stats.skips > 0 && <Badge kind="info">{t('snapshots.plan.skips', { count: String(stats.skips) })}</Badge>}
179
+ {/* 摘要徽章:稿上是 4px 方角 + 同色细描边。只叠屏私有修饰类(.restorePlanStatBadge),
180
+ .badge 本体的药丸形态是全站基线,不在这里改。 */}
181
+ {stats.changed > 0 && <Badge kind="info" className={css.restorePlanStatBadge}>{t('snapshots.plan.changed', { count: String(stats.changed) })}</Badge>}
182
+ {stats.added > 0 && <Badge kind="ok" className={css.restorePlanStatBadge}>{t('snapshots.plan.added', { count: String(stats.added) })}</Badge>}
183
+ {stats.deleted > 0 && <Badge kind="error" className={css.restorePlanStatBadge}>{t('snapshots.plan.deleted', { count: String(stats.deleted) })}</Badge>}
184
+ {stats.plugins > 0 && <Badge kind="warn" className={css.restorePlanStatBadge}>{t('snapshots.plan.plugins', { count: String(stats.plugins) })}</Badge>}
185
+ {stats.hints > 0 && <Badge kind="warn" className={css.restorePlanStatBadge}>{t('snapshots.plan.hints', { count: String(stats.hints) })}</Badge>}
186
+ {stats.skips > 0 && <Badge kind="info" className={css.restorePlanStatBadge}>{t('snapshots.plan.skips', { count: String(stats.skips) })}</Badge>}
185
187
  {(stats.addedLines > 0 || stats.removedLines > 0) && (
186
188
  <span className={css.diffStatTotal}>
187
189
  <span className={css.diffStatAdd}>+{stats.addedLines}</span>
@@ -206,7 +208,9 @@ export function RestorePlanView({ api, t, snapshotId, plan, changeSummary }: Res
206
208
  }
207
209
  })()
208
210
  return (
209
- <div key={group.key} className={css.inspectGroup}>
211
+ // 分组卡片化:每组一张描边卡(.restorePlanCard 私有),30px 组头由 .restorePlanGroupHead 提供;
212
+ // 不用 :has 修圆角 —— 组头背景直接铺到卡片顶边,overflow: hidden 负责裁切。
213
+ <div key={group.key} className={css.restorePlanCard}>
210
214
  <div className={css.restorePlanGroupHead}>
211
215
  {collapsible ? (
212
216
  <button type="button" className={css.diffGroupToggle} aria-expanded={skipsOpen} onClick={() => { setSkipsOpen(!skipsOpen) }}>
@@ -216,7 +220,8 @@ export function RestorePlanView({ api, t, snapshotId, plan, changeSummary }: Res
216
220
  ) : (
217
221
  <span className={css.groupLabel}>{t(groupLabelKey)}</span>
218
222
  )}
219
- <Badge kind="info">{String(group.rows.length)}</Badge>
223
+ {/* 组头计数是「分类」不是「状态」:用中性 Chip(与跳过行的灰片同语义),不再借 info 蓝 */}
224
+ <Chip>{String(group.rows.length)}</Chip>
220
225
  {group.counted > 0 && (
221
226
  <span className={css.diffStatTotal}>
222
227
  <span className={css.diffStatAdd}>+{group.added}</span>
@@ -21,7 +21,6 @@ export const zh = {
21
21
  'about.repo': 'GitHub 仓库',
22
22
  'about.docs': '使用文档',
23
23
  'about.issues': '反馈问题',
24
- 'about.feedbackHint': '遇到界面问题?复制环境信息,粘进 issue 就行',
25
24
  'about.copyEnv': '复制环境信息',
26
25
  'about.authorLabel': '作者',
27
26
  'about.loading': '正在获取版本信息…',
@@ -69,7 +68,6 @@ export const en: Record<keyof typeof zh, string> = {
69
68
  'about.repo': 'GitHub Repository',
70
69
  'about.docs': 'Documentation',
71
70
  'about.issues': 'Report an issue',
72
- 'about.feedbackHint': 'Hit a UI problem? Copy the environment info and paste it into your issue.',
73
71
  'about.copyEnv': 'Copy environment info',
74
72
  'about.authorLabel': 'Author',
75
73
  'about.loading': 'Loading version info…',
@@ -8,16 +8,16 @@
8
8
  export const zh = {
9
9
  // —— 定时全量备份(快照 tab)——
10
10
  'backupSchedule.title': '定时全量备份',
11
- 'backupSchedule.hint': '按固定间隔在后台自动导出全量备份 ZIP(恒不含 secret、不加密;要加密请手动导出)。配置存 sync/backup-schedule.json,随 self 分区备份 / 远程同步迁移。',
11
+ 'backupSchedule.hint': '恒不含 secret、不加密;要加密的备份请手动导出。',
12
12
  'backupSchedule.enabled': '启用定时备份',
13
- 'backupSchedule.enabledHint': '开启后 DSH 在后台按间隔自动备份;每次启动时立即执行一次(距上次运行不足 1 小时则跳过启动触发)。',
13
+ 'backupSchedule.enabledHint': '每次启动先跑一次(距上次运行不足 1 小时则跳过)。',
14
14
  'backupSchedule.interval': '备份间隔',
15
15
  'backupSchedule.interval.6h': '每 6 小时',
16
16
  'backupSchedule.interval.12h': '每 12 小时',
17
17
  'backupSchedule.interval.24h': '每 24 小时',
18
18
  'backupSchedule.interval.7d': '每 7 天',
19
19
  'backupSchedule.interval.custom': '自定义(每周固定时刻)',
20
- 'backupSchedule.customHint': '每周在选定星期与时刻各执行一次全量备份(错过的时间点不补跑)',
20
+ 'backupSchedule.customHint': '错过的时间点不补跑。',
21
21
  // 自定义档三个下拉的无障碍名(无可见 label:它们与「启用定时备份」复选框同排)
22
22
  'backupSchedule.weekday': '星期',
23
23
  'backupSchedule.hour': '小时',
@@ -42,7 +42,7 @@ export const zh = {
42
42
  'backupSchedule.error': '定时备份设置加载失败',
43
43
  // —— 保留策略(m-retention:GFS 分层)——
44
44
  'retention.title': '保留策略',
45
- 'retention.hint': '控制自动清理保留多少份(快照与定时备份共用)。置顶的快照与未收敛恢复点恒豁免自动清理。',
45
+ 'retention.hint': '快照与定时备份共用;置顶快照与未收敛的恢复点恒豁免自动清理。',
46
46
  'retention.keepLast': '最近保留',
47
47
  'retention.keepLastHint': '按时间保留最近 N 份;0 = 不按「最近」保留',
48
48
  'retention.keepMonthly': '每月保留',
@@ -53,8 +53,7 @@ export const zh = {
53
53
  'retention.months': '个月',
54
54
  'retention.years': '年',
55
55
  'retention.tiersOff': '仅保留最近 N 份',
56
- 'retention.appliesTo': '生效于:导入前快照 + 定时备份产物',
57
- 'backupFiles.hint': '导出产物(手动导出与定时备份)统一在此管理:可下载到本机、直接导入恢复,或删除。定时备份自动保留最近 10 个。',
56
+ 'backupFiles.hint': '定时备份自动保留最近 10 个,更早的会被删除。',
58
57
  'backupFiles.empty': '暂无备份文件',
59
58
  'backupFiles.delete': '删除',
60
59
  'backupFiles.deleteConfirmTitle': '删除备份文件',
@@ -76,16 +75,16 @@ export const zh = {
76
75
  export const en: Record<keyof typeof zh, string> = {
77
76
  // —— Scheduled full backups (snapshots tab) ——
78
77
  'backupSchedule.title': 'Scheduled Full Backups',
79
- 'backupSchedule.hint': 'Automatically export a full backup ZIP in the background on a fixed cadence (secrets are never included, never encrypted — use manual export for encryption). Config lives in sync/backup-schedule.json and migrates with the self section.',
78
+ 'backupSchedule.hint': 'Never includes secrets and is never encrypted; use manual export when you need encryption.',
80
79
  'backupSchedule.enabled': 'Enable scheduled backups',
81
- 'backupSchedule.enabledHint': 'When on, DSH backs up automatically on the cadence below; one run fires on every startup (skipped if less than 1h since the last run).',
80
+ 'backupSchedule.enabledHint': 'Fires once on every startup (skipped if under 1h since the last run).',
82
81
  'backupSchedule.interval': 'Backup interval',
83
82
  'backupSchedule.interval.6h': 'Every 6 hours',
84
83
  'backupSchedule.interval.12h': 'Every 12 hours',
85
84
  'backupSchedule.interval.24h': 'Every 24 hours',
86
85
  'backupSchedule.interval.7d': 'Every 7 days',
87
86
  'backupSchedule.interval.custom': 'Custom (weekly at a fixed time)',
88
- 'backupSchedule.customHint': 'Runs a full backup once a week at the selected weekday and time (missed triggers are not backfilled)',
87
+ 'backupSchedule.customHint': 'Missed triggers are not backfilled.',
89
88
  'backupSchedule.weekday': 'Weekday',
90
89
  'backupSchedule.hour': 'Hour',
91
90
  'backupSchedule.minute': 'Minute',
@@ -109,7 +108,7 @@ export const en: Record<keyof typeof zh, string> = {
109
108
  'backupSchedule.error': 'Failed to load scheduled backup settings',
110
109
  // —— Retention policy (m-retention: GFS tiers) ——
111
110
  'retention.title': 'Retention policy',
112
- 'retention.hint': 'Controls how many copies auto-cleanup keeps (shared by snapshots and scheduled backups). Pinned snapshots and unsettled recovery points are always exempt.',
111
+ 'retention.hint': 'Shared by snapshots and scheduled backups; pinned snapshots and unsettled recovery points are always exempt.',
113
112
  'retention.keepLast': 'Keep last',
114
113
  'retention.keepLastHint': 'Keep the newest N by time; 0 disables the "recent" tier',
115
114
  'retention.keepMonthly': 'Keep monthly',
@@ -120,8 +119,7 @@ export const en: Record<keyof typeof zh, string> = {
120
119
  'retention.months': 'months',
121
120
  'retention.years': 'years',
122
121
  'retention.tiersOff': 'Newest N copies only',
123
- 'retention.appliesTo': 'Applies to: pre-import snapshots + scheduled backup artifacts',
124
- 'backupFiles.hint': 'All export artifacts (manual exports and scheduled backups) are managed here: download to your machine, import to restore, or delete. Scheduled backups auto-keep the latest 10.',
122
+ 'backupFiles.hint': 'Scheduled backups auto-keep the latest 10; older ones are deleted.',
125
123
  'backupFiles.empty': 'No backup files yet',
126
124
  'backupFiles.delete': 'Delete',
127
125
  'backupFiles.deleteConfirmTitle': 'Delete backup file',
@@ -34,6 +34,7 @@ export const zh = {
34
34
  // 更新内容拉取失败(GitHub API):错误对象里也必须是当前语言
35
35
  'about.releaseNotes.rateLimited': 'GitHub API 速率限制(Rate limit exceeded),请稍后再试或直接在 GitHub 上查看。',
36
36
  'about.releaseNotes.fetchFailed': 'GitHub API 请求失败 ({status} {statusText})',
37
+ 'about.releaseNotes.timeout': 'GitHub API 请求超时({seconds} 秒无响应),请检查网络或代理后重试。',
37
38
  'about.snippet.plugin': '- 插件版本 / Plugin: {version}',
38
39
  'about.snippet.dsh': '- DSH 版本 / DSH: {version}',
39
40
  'about.snippet.platform': '- 平台 / Platform: {platform}',
@@ -88,6 +89,7 @@ export const en: Record<keyof typeof zh, string> = {
88
89
  'about.snippet.environment': '### Environment',
89
90
  'about.releaseNotes.rateLimited': 'GitHub API rate limit exceeded — please try again later, or view the release notes directly on GitHub.',
90
91
  'about.releaseNotes.fetchFailed': 'GitHub API request failed ({status} {statusText})',
92
+ 'about.releaseNotes.timeout': 'GitHub API request timed out after {seconds}s — check your network or proxy and try again.',
91
93
  'about.snippet.plugin': '- Plugin version: {version}',
92
94
  'about.snippet.dsh': '- DSH version: {version}',
93
95
  'about.snippet.platform': '- Platform: {platform}',
@@ -7,7 +7,6 @@
7
7
  */
8
8
  export const zh = {
9
9
  // —— 导出 ——
10
- 'export.hint': '默认导出推荐分区(可迁移、不含设备专属数据)。',
11
10
  'export.encrypt': '加密备份',
12
11
  'export.encryptHint': '用密码加密整个备份文件(AES-256-GCM)。密码仅用于本次加密,不会写入备份或任何配置文件;导入时必须输入该密码才能解锁。',
13
12
  'export.password': '备份加密密码',
@@ -25,9 +24,7 @@ export const zh = {
25
24
  'export.fileNameInvalid': '文件名不合法:仅允许字母数字、空格、- _ .,不能包含路径分隔符。',
26
25
  'export.note': '备注',
27
26
  'export.notePlaceholder': '例如:迁移前的完整备份 / 2026-08 存档',
28
- 'export.noteHint': '备注保存在本机备份列表中(随配置备份迁移),便于区分多个导出产物。',
29
27
  'export.compositionTitle': '本次将导出',
30
- 'export.compositionHint': '按当前勾选估算(只读预览,零写入)',
31
28
  'export.compositionPartial': '将导出 {sections} 个分区 · 已读取 {units} 个条目 · 约 {size}(含未读取分区,实际不少于该值)',
32
29
  'export.compositionEmpty': '没有勾选任何可导出的内容',
33
30
  // —— 内容选择器(Phase 1 条目级导出选择)——
@@ -50,7 +47,6 @@ export const zh = {
50
47
  'picker.loadingItems': '正在读取条目…',
51
48
  'picker.loadingSection': '读取中…',
52
49
  'picker.empty': '没有匹配的分区或条目',
53
- 'picker.sessionWorkspaceLinked': '会话与工作区联动勾选:勾上会话会自动勾上它所属的工作区;取消工作区会取消它的会话',
54
50
  'picker.unitsUnavailable': '部分分区的条目清单读取失败,这些分区将整体导出。',
55
51
  'picker.sectionLoadFailed': '读取失败 · 将整体导出',
56
52
  'picker.deviceSpecific': '设备相关',
@@ -66,8 +62,7 @@ export const zh = {
66
62
  'picker.pluginAreaAbsent': '无内容',
67
63
  'picker.bucketPlugins': '插件分区的其他条目(补丁行 / pnpm-workspace.yaml)',
68
64
  'picker.bucketLooseFiles': '未归属到插件的配置(~/.dsh 根)',
69
- 'picker.bucketHint': '这些条目没有可证明的插件归属,不猜;展开可逐条勾选。',
70
- 'picker.groupHint.extensions': '只列出能证明的归属(内置来源表 + 插件自述 dsh.dataDirs);没有包名信息的配置留在「未归属」。',
65
+ 'picker.groupHint.extensions': '只列出能证明归属的条目:某个插件不在这里,不代表本机没有它的配置。',
71
66
  // 导出目录的分组标题(与 ui/types.ts 的 EXPORT_GROUPS 一一对应,顺序由它决定)
72
67
  'group.general': '通用',
73
68
  'group.ai': 'AI',
@@ -89,6 +84,8 @@ export const zh = {
89
84
  // 「下载」是另一条路:同样先拉取落地,但不进向导,而是交给浏览器下载到「下载」目录。
90
85
  'library.downloadTitle': '下载远端快照',
91
86
  'library.downloading': '正在拉取并下载…',
87
+ // 拉取/下载进行中的标题徽章(W7 D-04;zh 逐字照稿 .stitch-refactor/out/D-04.html:203)
88
+ 'library.pullBadge': '同步中',
92
89
 
93
90
  'import.consult.unavailable': '暂时无法生成咨询报告(不影响继续导入)。',
94
91
  'import.picker.title': '选择要导入的内容',
@@ -96,7 +93,6 @@ export const zh = {
96
93
  } as const;
97
94
 
98
95
  export const en: Record<keyof typeof zh, string> = {
99
- 'export.hint': 'Exports the recommended sections by default (portable, no device-specific data).',
100
96
  'export.encrypt': 'Encrypt backup',
101
97
  'export.encryptHint': 'Encrypt the entire backup file with a password (AES-256-GCM). The password is used once and never written into the backup or any config file; it is required to unlock the backup on import.',
102
98
  'export.password': 'Backup encryption password',
@@ -114,9 +110,7 @@ export const en: Record<keyof typeof zh, string> = {
114
110
  'export.fileNameInvalid': 'Invalid file name: letters, digits, spaces, - _ . only, no path separators.',
115
111
  'export.note': 'Note',
116
112
  'export.notePlaceholder': 'e.g. Full backup before migration / 2026-08 archive',
117
- 'export.noteHint': 'The note is shown in the local backup list (and travels with the config backup) so you can tell exports apart.',
118
113
  'export.compositionTitle': 'This export',
119
- 'export.compositionHint': 'Estimated from the current selection (read-only, zero writes)',
120
114
  'export.compositionPartial': '{sections} {sections, plural, section|sections} · {units} {units, plural, item|items} read · ~{size} (includes sections not read yet; the real total is no less)',
121
115
  'export.compositionEmpty': 'Nothing selected to export',
122
116
  // —— Content picker (Phase 1: per-item export selection) ——
@@ -139,7 +133,6 @@ export const en: Record<keyof typeof zh, string> = {
139
133
  'picker.loadingItems': 'Reading items…',
140
134
  'picker.loadingSection': 'Loading…',
141
135
  'picker.empty': 'No matching sections or items',
142
- 'picker.sessionWorkspaceLinked': 'Session and workspace selection are linked: checking a session also checks the workspace that owns it; unchecking a workspace unchecks its sessions',
143
136
  'picker.unitsUnavailable': 'Item lists failed to load for some sections; those will be exported as a whole.',
144
137
  'picker.sectionLoadFailed': 'Load failed · exported as a whole',
145
138
  'picker.deviceSpecific': 'Device-specific',
@@ -155,8 +148,7 @@ export const en: Record<keyof typeof zh, string> = {
155
148
  'picker.pluginAreaAbsent': 'No content',
156
149
  'picker.bucketPlugins': 'Other entries of the plugins section (patch lines / pnpm-workspace.yaml)',
157
150
  'picker.bucketLooseFiles': 'Config not attributable to a plugin (~/.dsh root)',
158
- 'picker.bucketHint': 'These entries have no provable plugin ownership — we never guess; expand to tick them one by one.',
159
- 'picker.groupHint.extensions': 'Only provable ownership is listed (built-in source table + plugins that declare dsh.dataDirs); config without a package name stays under "unowned".',
151
+ 'picker.groupHint.extensions': 'Only entries with provable ownership are listed: a plugin missing here may still have config on this machine.',
160
152
  // Export catalog group titles (mirror of ui/types.ts EXPORT_GROUPS; it decides the order)
161
153
  'group.general': 'General',
162
154
  'group.ai': 'AI',
@@ -177,6 +169,7 @@ export const en: Record<keyof typeof zh, string> = {
177
169
  'library.pulling': 'Pulling and importing…',
178
170
  'library.downloadTitle': 'Download remote snapshot',
179
171
  'library.downloading': 'Pulling and downloading…',
172
+ 'library.pullBadge': 'Syncing',
180
173
 
181
174
  'import.consult.unavailable': 'The consultation report is unavailable right now (importing can still continue).',
182
175
  'import.picker.title': 'Choose what to import',
@@ -52,7 +52,7 @@ export const zh = {
52
52
  'foreign.importFailed': '导入失败:{reason}',
53
53
  'foreign.previewTitle': '将导入的内容',
54
54
  'foreign.previewSections': '包含分区:{sections}',
55
- 'foreign.previewDryRun': '只读预览:不会写入任何配置。',
55
+ 'foreign.previewDryRun': '只读预览 · 零写入',
56
56
  // F-3:任何输入变化都作废上一次的产包结果(照 dsh-movein 的 resetPreview 语义),
57
57
  // 并留下可见反馈 —— 否则用户会以为结果被静默吞掉。
58
58
  'foreign.previewReset': '来源已变化:上一次的产包结果作废,请重新「开始导入」。',
@@ -147,7 +147,7 @@ export const en: Record<keyof typeof zh, string> = {
147
147
  'foreign.importFailed': 'Import failed: {reason}',
148
148
  'foreign.previewTitle': 'What will be imported',
149
149
  'foreign.previewSections': 'Sections included: {sections}',
150
- 'foreign.previewDryRun': 'Read-only preview: nothing is written.',
150
+ 'foreign.previewDryRun': 'Read-only preview · zero writes',
151
151
  'foreign.previewReset': 'The source changed: the last preview was discarded — start the import again.',
152
152
  'foreign.lossy.title': 'Known lossy behaviour',
153
153
  'foreign.lossy.hint': 'These three behaviours are built into the "external config → bundle → import" pipeline: none of them blocks the import, and the compatibility score never explains them.',
@@ -22,6 +22,8 @@ export const zh = {
22
22
  'import.select.file': '已选择:{name}',
23
23
  'import.compatibility.title': '兼容性',
24
24
  'import.compatibility.score': '兼容性评分:{score}',
25
+ // 评分口径(W3 R-4):只列真正参与评分的四类原因;路径与密钥是独立徽章,不进评分。
26
+ 'import.compatibility.hint': '评分只看备份格式、DSH 版本方向、平台与包内缺失分区,不阻断导入;具体原因见下方逐条说明。',
25
27
  'import.preview.title': '导入预览',
26
28
  'import.preview.willChange': '将变更 {count} 项',
27
29
  'import.preview.unchanged': '已一致跳过 {count} 项',
@@ -64,7 +66,6 @@ export const zh = {
64
66
  'import.decryptArchive.unlock': '解锁并继续',
65
67
  'import.decrypt.previewHint': '加密备份:凭据已由解锁密码自动恢复,无需再次输入密码。',
66
68
  'import.conflicts.title': '解决冲突',
67
- 'import.conflicts.hint': '以下配置项在目标 DSH 已存在且与备份不同,请逐项决策。',
68
69
  'import.conflicts.keepCurrent': '保留当前',
69
70
  'import.conflicts.useImported': '使用备份',
70
71
  'import.conflicts.review': '稍后决定',
@@ -117,6 +118,7 @@ export const en: Record<keyof typeof zh, string> = {
117
118
  'import.select.file': 'Selected: {name}',
118
119
  'import.compatibility.title': 'Compatibility',
119
120
  'import.compatibility.score': 'Compatibility score: {score}',
121
+ 'import.compatibility.hint': 'The score only reflects the backup schema, DSH version direction, platform and sections missing from the package. It never blocks the import — see the reasons below.',
120
122
  'import.preview.title': 'Import Preview',
121
123
  'import.preview.willChange': '{count} {count, plural, item|items} will change',
122
124
  'import.preview.unchanged': '{count} {count, plural, item|items} already identical (skipped)',
@@ -157,7 +159,6 @@ export const en: Record<keyof typeof zh, string> = {
157
159
  'import.decryptArchive.unlock': 'Unlock & Continue',
158
160
  'import.decrypt.previewHint': 'Encrypted backup: credentials are restored automatically by the unlock password — no further password prompt.',
159
161
  'import.conflicts.title': 'Resolve Conflicts',
160
- 'import.conflicts.hint': 'These items already exist on this machine and differ from the backup. Decide per item.',
161
162
  'import.conflicts.keepCurrent': 'Keep current',
162
163
  'import.conflicts.useImported': 'Use backup',
163
164
  'import.conflicts.review': 'Decide later',
@@ -51,6 +51,8 @@ export const zh = {
51
51
  'overview.activity.colDetail': '详情',
52
52
  'overview.activity.colResult': '结果',
53
53
  'overview.activity.empty': '暂无操作记录',
54
+ // P2:待裁决行是可点的 —— 说明点下去会去哪儿(不然用户只看到徽章变色)
55
+ 'overview.activity.openMerge': '有冲突分区等你裁决:点这一行到同步页处理',
54
56
  'overview.activity.unavailable': '活动记录读取失败(这不是「没有记录」)',
55
57
  // 首屏 5 个只读请求有失败时如实说清(此前失败被吞成 null,页面仍显示绿色健康 + 空活动)
56
58
  'overview.loadFailed': '有 {count} 项数据读取失败:{message} —— 下面的指标可能不完整',
@@ -129,6 +131,8 @@ export const en: Record<keyof typeof zh, string> = {
129
131
  'overview.activity.colDetail': 'Detail',
130
132
  'overview.activity.colResult': 'Result',
131
133
  'overview.activity.empty': 'No activity yet',
134
+ // P2: the pending row is clickable — say where it goes
135
+ 'overview.activity.openMerge': 'Conflicted sections need your decision: open this row on the sync page',
132
136
  'overview.activity.unavailable': 'The activity log could not be read (this is not \"no activity\")',
133
137
  // Say it plainly when some of the five read-only requests failed (failures used to be swallowed into null)
134
138
  'overview.loadFailed': '{count} data {count, plural, request|requests} failed: {message} — the metrics below may be incomplete',
@@ -12,6 +12,22 @@ export const zh = {
12
12
  'profiles.loading': '加载档案中…',
13
13
  'profiles.empty': '还没有任何档案',
14
14
  'profiles.refresh': '刷新',
15
+ // —— 本机概况 / 数据目录(2026-11-13 随设计稿落地):把「这台机器现在什么状态」抬到档案页首屏 ——
16
+ 'profiles.machine.title': '本机概况',
17
+ 'profiles.machine.dshVersion': 'DSH 版本',
18
+ 'profiles.machine.dataDir': '数据目录',
19
+ 'profiles.machine.plugins': '已装插件',
20
+ 'profiles.machine.disk': '磁盘占用',
21
+ 'profiles.machine.pluginsValue': '{count} 个',
22
+ 'profiles.machine.diskValue': '{size} · {files} 个文件',
23
+ 'profiles.machine.unknown': '未知',
24
+ 'profiles.dataDir.title': '数据目录',
25
+ 'profiles.dataDir.hint': '以下目录都在当前档案的数据目录下;清理入口在「维护与诊断」的磁盘占用卡。',
26
+ 'profiles.dataDir.exports': '备份文件',
27
+ 'profiles.dataDir.snapshots': '导入前快照',
28
+ 'profiles.dataDir.sync': '同步覆盖与工作副本',
29
+ 'profiles.dataDir.rollbackPoints': '工作区与会话回滚',
30
+ 'profiles.dataDir.rowValue': '{size} · {files} 个文件',
15
31
  'profiles.current': '当前运行',
16
32
  'profiles.running.title': '运行状态',
17
33
  'profiles.running.none': '没有正在运行的实例',
@@ -62,7 +78,6 @@ export const zh = {
62
78
  'profiles.nameReserved': '「{name}」是 DSH 保留名(web / headless / sdk / sdk-minimal / acp / desktop),不能手动创建',
63
79
  'profiles.list.title': '全部档案',
64
80
  'profiles.list.count': '共 {count} 个',
65
- 'profiles.list.hint': '点击档案行查看完整详情(bundle 层 / 依赖 / patch 原文)',
66
81
  'profiles.row.summary': '{bundles} 个层 · patch {patch} 条 · 依赖 {deps}',
67
82
  'profiles.detail.info': '档案信息',
68
83
  'profiles.bundles.count': '{count} 个 bundle 层',
@@ -106,7 +121,6 @@ export const zh = {
106
121
  'profiles.deleteCurrentWarning': '这是当前运行中的档案:删除后本次运行仍可用,但重启会失败。',
107
122
  'profiles.deleteCurrentConfirm': '仍要删除当前档案',
108
123
  'profiles.duplicate': '复制',
109
- 'profiles.duplicateHint': '把该档案整份复制成一份新档案(清单 / patch 层 / 依赖声明 / pnpm 锁文件;可连同已装的 node_modules 一起拷)',
110
124
  'profiles.duplicateTitle': '复制档案',
111
125
  'profiles.duplicateMessage': '把档案「{name}」复制成一份新档案:',
112
126
  'profiles.duplicate.nameLabel': '副本档案名',
@@ -141,6 +155,22 @@ export const en: Record<keyof typeof zh, string> = {
141
155
  'profiles.loading': 'Loading profiles…',
142
156
  'profiles.empty': 'No profiles yet',
143
157
  'profiles.refresh': 'Refresh',
158
+ // Machine overview / data directories (2026-11-13, design landing)
159
+ 'profiles.machine.title': 'This machine',
160
+ 'profiles.machine.dshVersion': 'DSH version',
161
+ 'profiles.machine.dataDir': 'Data directory',
162
+ 'profiles.machine.plugins': 'Plugins installed',
163
+ 'profiles.machine.disk': 'Disk used',
164
+ 'profiles.machine.pluginsValue': '{count}',
165
+ 'profiles.machine.diskValue': '{size} · {files} files',
166
+ 'profiles.machine.unknown': 'Unknown',
167
+ 'profiles.dataDir.title': 'Data directories',
168
+ 'profiles.dataDir.hint': 'These live under the current profile data directory; cleanup is on the Disk usage card under Maintenance.',
169
+ 'profiles.dataDir.exports': 'Backup files',
170
+ 'profiles.dataDir.snapshots': 'Pre-import snapshots',
171
+ 'profiles.dataDir.sync': 'Sync overlay and work copy',
172
+ 'profiles.dataDir.rollbackPoints': 'Workspace and session rollback',
173
+ 'profiles.dataDir.rowValue': '{size} · {files} files',
144
174
  'profiles.current': 'Running',
145
175
  'profiles.running.title': 'Runtime',
146
176
  'profiles.running.none': 'No instances running',
@@ -189,7 +219,6 @@ export const en: Record<keyof typeof zh, string> = {
189
219
  'profiles.nameReserved': '“{name}” is reserved by DSH (web / headless / sdk / sdk-minimal / acp / desktop) and cannot be created manually',
190
220
  'profiles.list.title': 'All profiles',
191
221
  'profiles.list.count': '{count} total',
192
- 'profiles.list.hint': 'Click a profile row for full details (bundle layers / dependencies / raw patch)',
193
222
  // 英文侧不再用 (s)/(ies) 括号式复数(2026-11-01):档案只有 1 个时它渲染成
194
223
  // "1 layer(s) · 5 patch entry(ies)",在一行被截断的元信息里既占宽又不专业。
195
224
  // zh 侧本来就是无复数形态,改成同样的「数字 + 名词」短形态后两侧结构一致。
@@ -236,7 +265,6 @@ export const en: Record<keyof typeof zh, string> = {
236
265
  'profiles.deleteCurrentWarning': 'This is the running profile: the current process keeps working, but the next start will fail.',
237
266
  'profiles.deleteCurrentConfirm': 'Delete the running profile anyway',
238
267
  'profiles.duplicate': 'Duplicate',
239
- 'profiles.duplicateHint': 'Copy this profile as a new profile (manifest / patch layer / dependency declarations / pnpm lockfile; the installed node_modules can be copied too)',
240
268
  'profiles.duplicateTitle': 'Duplicate profile',
241
269
  'profiles.duplicateMessage': 'Duplicate “{name}” as a new profile:',
242
270
  'profiles.duplicate.nameLabel': 'New profile name',
@@ -8,7 +8,6 @@
8
8
  export const zh = {
9
9
  // —— 快照恢复 ——
10
10
  'home.schedule.title': '定时备份',
11
- 'snapshots.selectHint': '选择快照以预览恢复计划(只读预览,不会改动任何设置):',
12
11
  'snapshots.status': '状态',
13
12
  'snapshots.delete': '删除',
14
13
  'snapshots.deleted': '已删除快照',
@@ -71,7 +70,6 @@ export const zh = {
71
70
 
72
71
  export const en: Record<keyof typeof zh, string> = {
73
72
  'home.schedule.title': 'Schedule',
74
- 'snapshots.selectHint': 'Select a snapshot to preview its restore plan (read-only preview, changes nothing):',
75
73
  'snapshots.status': 'Status',
76
74
  'snapshots.delete': 'Delete',
77
75
  'snapshots.deleted': 'Snapshot deleted',