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
package/lib/client.d.ts CHANGED
@@ -258,6 +258,17 @@ type SessionFormatDisposition = 'abort' | 'skip' | 'guide';
258
258
  interface ConflictDecision {
259
259
  itemId: string;
260
260
  resolution: ItemResolution;
261
+ /**
262
+ * 这条裁决是**谁**下的(issue #136 A):
263
+ * - `'item'`:用户对该计划项逐项决策(`decisions.resolutions[id]`,含导入页的逐行确认)——
264
+ * 适配器可把它当作「我确实要这一行按导入值写」的确认。
265
+ * - `'section'`:由**分区级**裁决换算而来(合并落地 `planMergeApply` 的 second pass 把
266
+ * 「该分区已裁决」逐项注入成 `useImported`)。分区级裁决决定「分区是否应用」,
267
+ * 不构成对某一行值的确认,写回守卫不得据此清空本机明文。
268
+ * - 缺省:未标注来源。写回守卫按**未确认**处理(默认拒绝清空)—— 忘了标注只会少清空,
269
+ * 不会误清空;确认必须显式写明来源。
270
+ */
271
+ decidedBy?: 'item' | 'section';
261
272
  }
262
273
  interface PathMapping {
263
274
  oldPrefix: string;
@@ -1613,7 +1624,6 @@ declare const uiZh: {
1613
1624
  readonly 'snapshots.failed': '失败';
1614
1625
  readonly 'snapshots.skipped': '跳过';
1615
1626
  readonly 'snapshots.noActions': '该快照无可恢复动作(或全部跳过)。';
1616
- readonly 'snapshots.selectHint': '选择一个快照预览其恢复计划(只读预览,不会改动任何设置):';
1617
1627
  readonly 'snapshots.reportTitle': '恢复报告';
1618
1628
  readonly 'sync.privateRepoHint': '安全要求:同步仓库必须为私有仓库(public 仓库会公开你的配置内容)。认证 token 仅用于仓库访问,绝不写入同步文件、提交内容或日志。';
1619
1629
  readonly 'sync.kind.create': '新增';
@@ -1642,6 +1652,7 @@ declare const uiZh: {
1642
1652
  readonly 'sync.neverSyncedShort': '从未同步';
1643
1653
  readonly 'sync.pushFailed': '推送失败';
1644
1654
  readonly 'sync.pushOk': '推送成功(快照 {id})';
1655
+ readonly 'sync.pushSkipped': '内容未变化,已跳过(沿用远端快照 {id})';
1645
1656
  readonly 'sync.conflictUnresolved': '冲突项 {id} 必须先选择解决方式(保留当前 / 使用导入)';
1646
1657
  readonly 'sync.pushPreviewHeadline': '将推送 {total} 个分区({changed} 个有变化)';
1647
1658
  readonly 'sync.pushPreviewEncrypted': '加密快照:载荷将整体加密,各分区相对基线的变化不可比对。';
@@ -1723,6 +1734,7 @@ declare const uiZh: {
1723
1734
  readonly 'consult.loading': '正在生成咨询报告…';
1724
1735
  readonly 'diskUsage.title': '磁盘占用';
1725
1736
  readonly 'diskUsage.files': '{count} 个文件';
1737
+ readonly 'diskUsage.total': '合计 {size} · {files}';
1726
1738
  readonly 'diskUsage.refresh': '重新体检';
1727
1739
  readonly 'diskUsage.loading': '正在统计磁盘占用…';
1728
1740
  readonly 'diskUsage.unreadable': '未统计';
@@ -2966,6 +2978,16 @@ interface SyncPushReport {
2966
2978
  * deviceId」,别的设备推进过就仍然按冲突返回,绝不越过。
2967
2979
  */
2968
2980
  adoptedBase?: string;
2981
+ /**
2982
+ * issue #140:本次推送**没有产生新快照**(远端最新快照的分区内容与本次导出逐字相同)。
2983
+ *
2984
+ * 语义:`ok:true` + 本字段 = 「什么都没做,也不算失败」——未 upload、未建目录、未裁剪;
2985
+ * 只是把基线指针**收养**到远端最新快照(`adoptedSnapshotId`),让下一轮判定有正确起点。
2986
+ * GUI / 报告必须显式区分它(「内容未变化,已跳过」),不能显示成「已推送 xx」。
2987
+ */
2988
+ skipped?: 'unchanged';
2989
+ /** issue #140:`skipped='unchanged'` 时被收养的远端快照 id(= 本次报告里的 snapshotId) */
2990
+ adoptedSnapshotId?: string;
2969
2991
  }
2970
2992
  /** 差异报告中的单个变更项(PlanItem 摘要,不含敏感细节) */
2971
2993
  interface PullChange {
@@ -3085,6 +3107,16 @@ interface SyncStatusResponse {
3085
3107
  autosync?: AutosyncStatusResponse;
3086
3108
  /** 全部通道的自动同步状态(git/webdav 各自独立;UI 按当前 tab 取对应通道) */
3087
3109
  autosyncByChannel?: Record<SyncTransportType, AutosyncStatusResponse>;
3110
+ /**
3111
+ * P2(2026-11-14 真机事故):等人裁决的冲突分区。
3112
+ * 自动同步撞上「远端已推进 + 分区冲突」时,宿主把冲突分区落进 sync-state.pendingMerge;
3113
+ * 有值 = 同步并没有坏,只是有人在等你确认那几个分区(首页「待裁决」行据此跳同步页)。
3114
+ * **永不携带远端快照 id**(与 hasBaseline 同一纪律);since = 这件事第一次挂住的时刻。
3115
+ */
3116
+ pendingMerge?: {
3117
+ sections: string[];
3118
+ since: string;
3119
+ };
3088
3120
  /**
3089
3121
  * issue #79:git 工作副本与配置地址的关系(host 只读自检)。
3090
3122
  * - `{ facts }` = 自检成功(origin 是否已跟随 repoUrl)
@@ -3238,6 +3270,11 @@ interface SyncPushPayload {
3238
3270
  encryptPassword?: string;
3239
3271
  /** 导出真实凭据值(必须同时 encrypt=true,否则 Host 拒绝:密钥绝不明文进同步通道) */
3240
3272
  includeSecrets?: boolean;
3273
+ /**
3274
+ * issue #140:强制推送 —— 内容与远端最新快照一致时**也**新建快照。
3275
+ * 缺省 false = 内容没变就跳过(不 upload、不建目录,报告 skipped:'unchanged')。
3276
+ */
3277
+ force?: boolean;
3241
3278
  /** s3:具体兼容商(s3 / oss / cos / minio / kodo) */
3242
3279
  provider?: string;
3243
3280
  endpoint?: string;
@@ -5025,6 +5062,7 @@ declare const zh$4: {
5025
5062
  readonly 'about.snippet.environment': '### 环境 / Environment';
5026
5063
  readonly 'about.releaseNotes.rateLimited': 'GitHub API 速率限制(Rate limit exceeded),请稍后再试或直接在 GitHub 上查看。';
5027
5064
  readonly 'about.releaseNotes.fetchFailed': 'GitHub API 请求失败 ({status} {statusText})';
5065
+ readonly 'about.releaseNotes.timeout': 'GitHub API 请求超时({seconds} 秒无响应),请检查网络或代理后重试。';
5028
5066
  readonly 'about.snippet.plugin': '- 插件版本 / Plugin: {version}';
5029
5067
  readonly 'about.snippet.dsh': '- DSH 版本 / DSH: {version}';
5030
5068
  readonly 'about.snippet.platform': '- 平台 / Platform: {platform}';
@@ -5088,6 +5126,7 @@ declare const zh$4: {
5088
5126
  readonly 'overview.activity.colDetail': '详情';
5089
5127
  readonly 'overview.activity.colResult': '结果';
5090
5128
  readonly 'overview.activity.empty': '暂无操作记录';
5129
+ readonly 'overview.activity.openMerge': '有冲突分区等你裁决:点这一行到同步页处理';
5091
5130
  readonly 'overview.activity.unavailable': '活动记录读取失败(这不是「没有记录」)';
5092
5131
  readonly 'overview.loadFailed': '有 {count} 项数据读取失败:{message} —— 下面的指标可能不完整';
5093
5132
  readonly 'overview.accessMode.title': '当前访问方式不被允许读取本机数据。';
@@ -5115,7 +5154,6 @@ declare const zh$4: {
5115
5154
  readonly 'overview.kind.snapshot-delete': '删除快照';
5116
5155
  readonly 'overview.kind.snapshot-prune': '清理快照';
5117
5156
  readonly 'overview.kind.other': '其他操作';
5118
- readonly 'export.hint': '默认导出推荐分区(可迁移、不含设备专属数据)。';
5119
5157
  readonly 'export.encrypt': '加密备份';
5120
5158
  readonly 'export.encryptHint': '用密码加密整个备份文件(AES-256-GCM)。密码仅用于本次加密,不会写入备份或任何配置文件;导入时必须输入该密码才能解锁。';
5121
5159
  readonly 'export.password': '备份加密密码';
@@ -5133,9 +5171,7 @@ declare const zh$4: {
5133
5171
  readonly 'export.fileNameInvalid': '文件名不合法:仅允许字母数字、空格、- _ .,不能包含路径分隔符。';
5134
5172
  readonly 'export.note': '备注';
5135
5173
  readonly 'export.notePlaceholder': '例如:迁移前的完整备份 / 2026-08 存档';
5136
- readonly 'export.noteHint': '备注保存在本机备份列表中(随配置备份迁移),便于区分多个导出产物。';
5137
5174
  readonly 'export.compositionTitle': '本次将导出';
5138
- readonly 'export.compositionHint': '按当前勾选估算(只读预览,零写入)';
5139
5175
  readonly 'export.compositionPartial': '将导出 {sections} 个分区 · 已读取 {units} 个条目 · 约 {size}(含未读取分区,实际不少于该值)';
5140
5176
  readonly 'export.compositionEmpty': '没有勾选任何可导出的内容';
5141
5177
  readonly 'picker.title': '选择要导出的内容';
@@ -5157,7 +5193,6 @@ declare const zh$4: {
5157
5193
  readonly 'picker.loadingItems': '正在读取条目…';
5158
5194
  readonly 'picker.loadingSection': '读取中…';
5159
5195
  readonly 'picker.empty': '没有匹配的分区或条目';
5160
- readonly 'picker.sessionWorkspaceLinked': '会话与工作区联动勾选:勾上会话会自动勾上它所属的工作区;取消工作区会取消它的会话';
5161
5196
  readonly 'picker.unitsUnavailable': '部分分区的条目清单读取失败,这些分区将整体导出。';
5162
5197
  readonly 'picker.sectionLoadFailed': '读取失败 · 将整体导出';
5163
5198
  readonly 'picker.deviceSpecific': '设备相关';
@@ -5172,8 +5207,7 @@ declare const zh$4: {
5172
5207
  readonly 'picker.pluginAreaAbsent': '无内容';
5173
5208
  readonly 'picker.bucketPlugins': '插件分区的其他条目(补丁行 / pnpm-workspace.yaml)';
5174
5209
  readonly 'picker.bucketLooseFiles': '未归属到插件的配置(~/.dsh 根)';
5175
- readonly 'picker.bucketHint': '这些条目没有可证明的插件归属,不猜;展开可逐条勾选。';
5176
- readonly 'picker.groupHint.extensions': '只列出能证明的归属(内置来源表 + 插件自述 dsh.dataDirs);没有包名信息的配置留在「未归属」。';
5210
+ readonly 'picker.groupHint.extensions': '只列出能证明归属的条目:某个插件不在这里,不代表本机没有它的配置。';
5177
5211
  readonly 'group.general': '通用';
5178
5212
  readonly 'group.ai': 'AI';
5179
5213
  readonly 'group.extensions': '插件与扩展';
@@ -5191,6 +5225,7 @@ declare const zh$4: {
5191
5225
  readonly 'library.pulling': '正在拉取并导入…';
5192
5226
  readonly 'library.downloadTitle': '下载远端快照';
5193
5227
  readonly 'library.downloading': '正在拉取并下载…';
5228
+ readonly 'library.pullBadge': '同步中';
5194
5229
  readonly 'import.consult.unavailable': '暂时无法生成咨询报告(不影响继续导入)。';
5195
5230
  readonly 'import.picker.title': '选择要导入的内容';
5196
5231
  readonly 'import.picker.hint': '不勾选的条目不会被导入、也不会进快照;随时可以回到这一步修改。';
@@ -5209,6 +5244,7 @@ declare const zh$4: {
5209
5244
  readonly 'import.select.file': '已选择:{name}';
5210
5245
  readonly 'import.compatibility.title': '兼容性';
5211
5246
  readonly 'import.compatibility.score': '兼容性评分:{score}';
5247
+ readonly 'import.compatibility.hint': '评分只看备份格式、DSH 版本方向、平台与包内缺失分区,不阻断导入;具体原因见下方逐条说明。';
5212
5248
  readonly 'import.preview.title': '导入预览';
5213
5249
  readonly 'import.preview.willChange': '将变更 {count} 项';
5214
5250
  readonly 'import.preview.unchanged': '已一致跳过 {count} 项';
@@ -5249,7 +5285,6 @@ declare const zh$4: {
5249
5285
  readonly 'import.decryptArchive.unlock': '解锁并继续';
5250
5286
  readonly 'import.decrypt.previewHint': '加密备份:凭据已由解锁密码自动恢复,无需再次输入密码。';
5251
5287
  readonly 'import.conflicts.title': '解决冲突';
5252
- readonly 'import.conflicts.hint': '以下配置项在目标 DSH 已存在且与备份不同,请逐项决策。';
5253
5288
  readonly 'import.conflicts.keepCurrent': '保留当前';
5254
5289
  readonly 'import.conflicts.useImported': '使用备份';
5255
5290
  readonly 'import.conflicts.review': '稍后决定';
@@ -5282,7 +5317,6 @@ declare const zh$4: {
5282
5317
  readonly 'import.paths.picker.notAbsolute': '请填绝对路径(如 D:\\ 或 /)';
5283
5318
  readonly 'import.paths.picker.failed': '读取这个目录失败';
5284
5319
  readonly 'home.schedule.title': '定时备份';
5285
- readonly 'snapshots.selectHint': '选择快照以预览恢复计划(只读预览,不会改动任何设置):';
5286
5320
  readonly 'snapshots.status': '状态';
5287
5321
  readonly 'snapshots.delete': '删除';
5288
5322
  readonly 'snapshots.deleted': '已删除快照';
@@ -5340,16 +5374,16 @@ declare const zh$4: {
5340
5374
  readonly 'snapshots.plan.statSkipped.budget': '超出数量上限';
5341
5375
  readonly 'snapshots.plan.statSkipped.unreadable': '未统计';
5342
5376
  readonly 'backupSchedule.title': '定时全量备份';
5343
- readonly 'backupSchedule.hint': '按固定间隔在后台自动导出全量备份 ZIP(恒不含 secret、不加密;要加密请手动导出)。配置存 sync/backup-schedule.json,随 self 分区备份 / 远程同步迁移。';
5377
+ readonly 'backupSchedule.hint': '恒不含 secret、不加密;要加密的备份请手动导出。';
5344
5378
  readonly 'backupSchedule.enabled': '启用定时备份';
5345
- readonly 'backupSchedule.enabledHint': '开启后 DSH 在后台按间隔自动备份;每次启动时立即执行一次(距上次运行不足 1 小时则跳过启动触发)。';
5379
+ readonly 'backupSchedule.enabledHint': '每次启动先跑一次(距上次运行不足 1 小时则跳过)。';
5346
5380
  readonly 'backupSchedule.interval': '备份间隔';
5347
5381
  readonly 'backupSchedule.interval.6h': '每 6 小时';
5348
5382
  readonly 'backupSchedule.interval.12h': '每 12 小时';
5349
5383
  readonly 'backupSchedule.interval.24h': '每 24 小时';
5350
5384
  readonly 'backupSchedule.interval.7d': '每 7 天';
5351
5385
  readonly 'backupSchedule.interval.custom': '自定义(每周固定时刻)';
5352
- readonly 'backupSchedule.customHint': '每周在选定星期与时刻各执行一次全量备份(错过的时间点不补跑)';
5386
+ readonly 'backupSchedule.customHint': '错过的时间点不补跑。';
5353
5387
  readonly 'backupSchedule.weekday': '星期';
5354
5388
  readonly 'backupSchedule.hour': '小时';
5355
5389
  readonly 'backupSchedule.minute': '分钟';
@@ -5372,7 +5406,7 @@ declare const zh$4: {
5372
5406
  readonly 'backupSchedule.loading': '加载定时备份设置…';
5373
5407
  readonly 'backupSchedule.error': '定时备份设置加载失败';
5374
5408
  readonly 'retention.title': '保留策略';
5375
- readonly 'retention.hint': '控制自动清理保留多少份(快照与定时备份共用)。置顶的快照与未收敛恢复点恒豁免自动清理。';
5409
+ readonly 'retention.hint': '快照与定时备份共用;置顶快照与未收敛的恢复点恒豁免自动清理。';
5376
5410
  readonly 'retention.keepLast': '最近保留';
5377
5411
  readonly 'retention.keepLastHint': '按时间保留最近 N 份;0 = 不按「最近」保留';
5378
5412
  readonly 'retention.keepMonthly': '每月保留';
@@ -5383,8 +5417,7 @@ declare const zh$4: {
5383
5417
  readonly 'retention.months': '个月';
5384
5418
  readonly 'retention.years': '年';
5385
5419
  readonly 'retention.tiersOff': '仅保留最近 N 份';
5386
- readonly 'retention.appliesTo': '生效于:导入前快照 + 定时备份产物';
5387
- readonly 'backupFiles.hint': '导出产物(手动导出与定时备份)统一在此管理:可下载到本机、直接导入恢复,或删除。定时备份自动保留最近 10 个。';
5420
+ readonly 'backupFiles.hint': '定时备份自动保留最近 10 个,更早的会被删除。';
5388
5421
  readonly 'backupFiles.empty': '暂无备份文件';
5389
5422
  readonly 'backupFiles.delete': '删除';
5390
5423
  readonly 'backupFiles.deleteConfirmTitle': '删除备份文件';
@@ -5420,7 +5453,6 @@ declare const zh$4: {
5420
5453
  readonly 'about.repo': 'GitHub 仓库';
5421
5454
  readonly 'about.docs': '使用文档';
5422
5455
  readonly 'about.issues': '反馈问题';
5423
- readonly 'about.feedbackHint': '遇到界面问题?复制环境信息,粘进 issue 就行';
5424
5456
  readonly 'about.copyEnv': '复制环境信息';
5425
5457
  readonly 'about.authorLabel': '作者';
5426
5458
  readonly 'about.loading': '正在获取版本信息…';
@@ -5455,6 +5487,21 @@ declare const zh$4: {
5455
5487
  readonly 'profiles.loading': '加载档案中…';
5456
5488
  readonly 'profiles.empty': '还没有任何档案';
5457
5489
  readonly 'profiles.refresh': '刷新';
5490
+ readonly 'profiles.machine.title': '本机概况';
5491
+ readonly 'profiles.machine.dshVersion': 'DSH 版本';
5492
+ readonly 'profiles.machine.dataDir': '数据目录';
5493
+ readonly 'profiles.machine.plugins': '已装插件';
5494
+ readonly 'profiles.machine.disk': '磁盘占用';
5495
+ readonly 'profiles.machine.pluginsValue': '{count} 个';
5496
+ readonly 'profiles.machine.diskValue': '{size} · {files} 个文件';
5497
+ readonly 'profiles.machine.unknown': '未知';
5498
+ readonly 'profiles.dataDir.title': '数据目录';
5499
+ readonly 'profiles.dataDir.hint': '以下目录都在当前档案的数据目录下;清理入口在「维护与诊断」的磁盘占用卡。';
5500
+ readonly 'profiles.dataDir.exports': '备份文件';
5501
+ readonly 'profiles.dataDir.snapshots': '导入前快照';
5502
+ readonly 'profiles.dataDir.sync': '同步覆盖与工作副本';
5503
+ readonly 'profiles.dataDir.rollbackPoints': '工作区与会话回滚';
5504
+ readonly 'profiles.dataDir.rowValue': '{size} · {files} 个文件';
5458
5505
  readonly 'profiles.current': '当前运行';
5459
5506
  readonly 'profiles.running.title': '运行状态';
5460
5507
  readonly 'profiles.running.none': '没有正在运行的实例';
@@ -5503,7 +5550,6 @@ declare const zh$4: {
5503
5550
  readonly 'profiles.nameReserved': '「{name}」是 DSH 保留名(web / headless / sdk / sdk-minimal / acp / desktop),不能手动创建';
5504
5551
  readonly 'profiles.list.title': '全部档案';
5505
5552
  readonly 'profiles.list.count': '共 {count} 个';
5506
- readonly 'profiles.list.hint': '点击档案行查看完整详情(bundle 层 / 依赖 / patch 原文)';
5507
5553
  readonly 'profiles.row.summary': '{bundles} 个层 · patch {patch} 条 · 依赖 {deps}';
5508
5554
  readonly 'profiles.detail.info': '档案信息';
5509
5555
  readonly 'profiles.bundles.count': '{count} 个 bundle 层';
@@ -5546,7 +5592,6 @@ declare const zh$4: {
5546
5592
  readonly 'profiles.deleteCurrentWarning': '这是当前运行中的档案:删除后本次运行仍可用,但重启会失败。';
5547
5593
  readonly 'profiles.deleteCurrentConfirm': '仍要删除当前档案';
5548
5594
  readonly 'profiles.duplicate': '复制';
5549
- readonly 'profiles.duplicateHint': '把该档案整份复制成一份新档案(清单 / patch 层 / 依赖声明 / pnpm 锁文件;可连同已装的 node_modules 一起拷)';
5550
5595
  readonly 'profiles.duplicateTitle': '复制档案';
5551
5596
  readonly 'profiles.duplicateMessage': '把档案「{name}」复制成一份新档案:';
5552
5597
  readonly 'profiles.duplicate.nameLabel': '副本档案名';
@@ -5594,7 +5639,7 @@ declare const zh$4: {
5594
5639
  readonly 'runs.loading': '正在读取任务列表…';
5595
5640
  readonly 'runs.loadFailed': '读取任务列表失败:{message}';
5596
5641
  readonly 'runs.empty': '近期没有任何任务(运行中的任务会实时出现在这里)';
5597
- readonly 'runs.retentionHint': '刚结束的任务保留 30 分钟;完整操作审计见「迁移历史」';
5642
+ readonly 'runs.retentionHint': '刚结束的任务只保留 30 分钟。';
5598
5643
  readonly 'runs.runningBadge': '{count} 个进行中';
5599
5644
  readonly 'runs.awaitingBadge': '{count} 个等待你选择';
5600
5645
  readonly 'runs.awaitingDecision': '等待你选择';
@@ -5739,7 +5784,6 @@ declare const zh$4: {
5739
5784
  readonly 'library.moreActions': '更多操作';
5740
5785
  readonly 'backupFiles.inspectEncrypted': '这是整包加密的备份,无法直接查看内容:请点「导入」——向导会先让你输入备份密码解锁,解锁后即可看到包含的分区与差异。';
5741
5786
  readonly 'library.source.all': '全部';
5742
- readonly 'library.origin.foreign': '来自他人档案';
5743
5787
  readonly 'library.kind.snapshot': '本机快照';
5744
5788
  readonly 'library.kind.backupFile': '备份文件';
5745
5789
  readonly 'library.kind.remote': '远端快照';
@@ -5812,7 +5856,7 @@ declare const zh$4: {
5812
5856
  readonly 'foreign.importFailed': '导入失败:{reason}';
5813
5857
  readonly 'foreign.previewTitle': '将导入的内容';
5814
5858
  readonly 'foreign.previewSections': '包含分区:{sections}';
5815
- readonly 'foreign.previewDryRun': '只读预览:不会写入任何配置。';
5859
+ readonly 'foreign.previewDryRun': '只读预览 · 零写入';
5816
5860
  readonly 'foreign.previewReset': '来源已变化:上一次的产包结果作废,请重新「开始导入」。';
5817
5861
  readonly 'foreign.lossy.title': '已知有损';
5818
5862
  readonly 'foreign.lossy.hint': '下面三条是「外部配置 → bundle → 导入」这条流水线的既有行为:都不阻断导入,兼容性评分也不会为它们给出原因。';
@@ -5878,27 +5922,29 @@ declare const zh$3: {
5878
5922
  readonly 'config.tokenSaved': '凭据已配置';
5879
5923
  readonly 'config.tokenMissing': '未配置令牌:可拉取公开仓库,无法推送';
5880
5924
  readonly 'config.tokenPlaceholder': 'ghp_…(可选)';
5881
- readonly 'config.save': '立即保存';
5882
- readonly 'config.saveHint': '表单改动会自动保存:密码/token 安全写入 DSH credentials,不会写入同步文件或日志。';
5883
5925
  readonly 'config.savedTick': '已保存';
5884
5926
  readonly 'channel.title': '同步通道';
5885
5927
  readonly 'channel.git': 'Git 私有仓库';
5886
5928
  readonly 'channel.webdav': 'WebDAV 服务器';
5887
5929
  readonly 'channel.s3': '对象存储(S3 兼容)';
5888
5930
  readonly 'channel.gist': 'GitHub Gist';
5889
- readonly 'channel.perChannelHint': '每条通道(Git / WebDAV / 对象存储 / Gist)的自动同步、同步模式、加密与远端快照各自独立配置。';
5890
5931
  readonly 'channel.open': '配置';
5891
- readonly 'channel.openHint': '远程同步通过「同步通道」进行:Git 私有仓库或 WebDAV 服务器。';
5892
5932
  readonly 'channel.expand': '展开通道详情';
5893
5933
  readonly 'channel.collapse': '收起通道详情';
5894
5934
  readonly 'channel.clear': '断开配置';
5895
5935
  readonly 'channel.clearConfirmTitle': '断开同步通道配置?';
5896
5936
  readonly 'channel.clearConfirmMessage': '将删除「{channel}」的本机配置、已保存的凭据与自动同步开关。远端快照与本机备份不受影响;断开后可重新配置。';
5897
5937
  readonly 'channel.clearConfirm': '断开配置';
5938
+ readonly 'channel.clearBusy': '还有保存请求没完成,稍后再点一次断开(最多等 5 秒)';
5898
5939
  readonly 'channel.clearGitSignOut': 'Git 通道的访问令牌会被一并删除:GitHub 登录状态随之失效,需要重新登录(不会自动恢复)。';
5899
5940
  readonly 'channel.configured': '已配置';
5900
5941
  readonly 'channel.notConfigured': '未配置';
5901
5942
  readonly 'channel.currentUrl': '当前地址';
5943
+ readonly 'addChannel.title': '添加通道';
5944
+ readonly 'addChannel.git': '把配置推进你自己的 Git 仓库(GitHub 仓库可在弹窗里直接登录)';
5945
+ readonly 'addChannel.webdav': '同步到 WebDAV 空间:坚果云、Nextcloud、ownCloud、Seafile、群晖、Box';
5946
+ readonly 'addChannel.s3': '同步到对象存储桶:AWS S3、阿里云 OSS、腾讯云 COS、MinIO、七牛 Kodo';
5947
+ readonly 'addChannel.gist': '用单个 GitHub Gist 存快照,不必新建仓库';
5902
5948
  readonly 'workdir.title': '工作副本';
5903
5949
  readonly 'workdir.hint': '同步使用的 Git 工作副本。每次同步都会让它的 origin 跟随当前仓库地址;改地址后若仍失败,可在这里重指向或重新克隆。';
5904
5950
  readonly 'workdir.path': '路径';
@@ -5927,12 +5973,10 @@ declare const zh$3: {
5927
5973
  readonly 'webdav.url': '服务器地址';
5928
5974
  readonly 'webdav.urlHint': 'WebDAV 服务器根地址(https://…)。同步快照与索引存放于该地址的 dsh-config-manager/ 子目录下。请勿在地址中包含用户名/密码。';
5929
5975
  readonly 'webdav.username': '用户名';
5930
- readonly 'webdav.usernameHint': 'HTTP Basic 认证用户名(非敏感,可回显)。';
5931
5976
  readonly 'webdav.password': '密码';
5932
5977
  readonly 'webdav.passwordHint': '将安全写入 DSH credentials(引用名 {ref}),不会写入同步文件或日志。留空表示沿用已保存的凭据。';
5933
5978
  readonly 'webdav.passwordSaved': '凭据已配置';
5934
5979
  readonly 'webdav.passwordPlaceholder': '密码(可选)';
5935
- readonly 'webdav.presetHint': '选择常见 WebDAV 服务器可快速填入地址;含 <占位符> 的模板请替换为你的真实服务器/用户名。';
5936
5980
  readonly 'webdav.preset.custom': 'Custom URL';
5937
5981
  readonly 'webdav.preset.jianguoyun': '坚果云 (Jianguoyun)';
5938
5982
  readonly 'webdav.preset.nextcloud': 'Nextcloud';
@@ -5967,7 +6011,6 @@ declare const zh$3: {
5967
6011
  readonly 'repoPicker.createFailed': '新建仓库失败';
5968
6012
  readonly 'repoPicker.nameRequired': '请填写仓库名。';
5969
6013
  readonly 'repoPicker.nameInvalid': '仓库名只能包含字母、数字、点、下划线、连字符(最长 100 字符,不能以点开头)。';
5970
- readonly 'repoPicker.privateOnly': '新建的仓库固定为私有:公开仓库会公开你的配置内容。';
5971
6014
  readonly 'push.title': '推送结果';
5972
6015
  readonly 'sections.title': '同步分区';
5973
6016
  readonly 'warnings.title': '分区告警';
@@ -5982,6 +6025,7 @@ declare const zh$3: {
5982
6025
  readonly 'syncflow.refreshSnapshots': '刷新快照列表';
5983
6026
  readonly 'syncflow.latestSnapshot': '最新快照';
5984
6027
  readonly 'syncflow.noSnapshots': '远端暂无快照';
6028
+ readonly 'syncflow.snapshotDevice': '由 {device} 推送';
5985
6029
  readonly 'syncflow.confirmImport': '确认导入';
5986
6030
  readonly 'syncflow.cancel': '取消';
5987
6031
  readonly 'syncflow.adoptRemote': '采用远端';
@@ -6013,19 +6057,18 @@ declare const zh$3: {
6013
6057
  readonly 'syncflow.pushChanged': '有改动';
6014
6058
  readonly 'syncflow.pushUnchanged': '无改动';
6015
6059
  readonly 'syncflow.pushConfirm': '确认推送';
6060
+ readonly 'syncflow.pushForce': '内容未变化也新建快照(强制推送)';
6016
6061
  readonly 'syncflow.pushFirstBaseline': '远端暂无快照:本次将创建首个同步基线';
6017
6062
  readonly 'syncflow.remoteEmptyGuide': '远端还没有任何快照:这是首次同步,先点「推送到远端」把本机配置推上去(推送会创建第一个快照),之后才能拉取。';
6018
6063
  readonly 'mode.title': '同步分区';
6019
- readonly 'mode.hint': '同步范围 = 勾选的分区集合(默认已勾选推荐分区,可随时改)。';
6020
6064
  readonly 'mode.selectedCount': '已勾选 {n} / {total}';
6021
- readonly 'mode.sectionsHint': '默认可同步的是可移植分区;平台相关分区(MCP 服务器)与设备相关分区(插件文件、凭据状态、历史会话)只有你在这里主动勾选才参与同步。';
6022
6065
  readonly 'mode.deletePlugins': '跟随远端删除插件';
6023
6066
  readonly 'mode.deletePluginsHint': '远端快照里已经没有、本机也没改过的插件会被卸载(判断依据是共同祖先里还有它 —— 那只可能是别处删掉了)。卸载只发生在插件分区真正被应用的那一轮;失败逐项提示、其余同步照常完成。desktop 保留档案与宿主自己不会被删。';
6024
6067
  readonly 'mode.atLeastOne': '请至少勾选一个同步分区';
6025
- readonly 'mode.sectionPortable': '可移植';
6068
+ readonly 'mode.sectionPortable': '可移植 · 默认同步';
6026
6069
  readonly 'mode.sectionRecommended': '推荐';
6027
- readonly 'mode.sectionDeviceSpecific': '设备相关';
6028
- readonly 'mode.sectionPlatformSpecific': '平台相关';
6070
+ readonly 'mode.sectionDeviceSpecific': '设备相关 · 默认不同步';
6071
+ readonly 'mode.sectionPlatformSpecific': '平台相关 · 默认不同步';
6029
6072
  readonly 'mode.mcpHint': 'MCP 服务器按 patch 行写回(导入时落回原层)。按包安装的 stdio 服务器(npx / uvx / pipx)配置本身可跨机;若 command / args / cwd 里是绝对路径,或目标机没装对应运行时,导入分析会给出提示 —— 配置会照常写入,但服务器在目标机可能起不来。';
6030
6073
  readonly 'mode.sessionsLimit': '同步最近多少个会话';
6031
6074
  readonly 'mode.sessionsLimitHint': '历史会话内容敏感,默认只带最近的 5 个(0 = 只勾选不带会话);单位是一个会话目录,同一会话的全部日志一起走。';
@@ -6041,19 +6084,24 @@ declare const zh$3: {
6041
6084
  readonly 'mode.pickerHint': '改动即时生效并保存(关闭弹窗即完成)。';
6042
6085
  readonly 'mode.pickerBack': '返回分区列表';
6043
6086
  readonly 'mode.pickerDone': '完成';
6044
- readonly 'mode.security': '加密与密钥导出(安全选项)';
6087
+ readonly 'mode.settingsTitle': '同步设置';
6088
+ readonly 'mode.settingsOpen': '设置';
6089
+ readonly 'mode.tabContent': '同步内容';
6090
+ readonly 'mode.tabAutosync': '自动同步';
6091
+ readonly 'mode.tabSecurity': '加密与密码';
6092
+ readonly 'mode.encryptOn': '加密已开';
6093
+ readonly 'mode.encryptOff': '未加密';
6094
+ readonly 'mode.security': '加密与密钥导出';
6045
6095
  readonly 'mode.encrypt': '加密备份';
6046
- readonly 'mode.encryptHint': '用密码加密同步快照(AES-256-GCM)。密码保存在本机 DSH 凭据库(~/.dsh/.credentials.yaml)以便长期复用:不写入同步文件、不落日志、不写入备份(除非同时勾选「导出密钥」并加密)。自动同步无法解密加密快照,会自动跳过并在同步历史中提示。';
6096
+ readonly 'mode.encryptHint': '用密码加密同步快照(AES-256-GCM)。密码存在本机 DSH 凭据库(~/.dsh/.credentials.yaml)长期复用:不写进同步文件、日志或备份(除非同时勾选「导出密钥」)。自动同步没有密码,遇到加密快照会跳过并在同步历史提示。';
6047
6097
  readonly 'mode.password': '加密密码';
6048
6098
  readonly 'mode.passwordConfirm': '确认密码';
6049
6099
  readonly 'mode.passwordMismatch': '两次输入的密码不一致';
6050
6100
  readonly 'mode.passwordRequired': '加密必须设置密码';
6051
- readonly 'mode.passwordSavedHint': '本机已保存密码:留空即沿用,输入新密码会覆盖已保存的密码。';
6052
6101
  readonly 'mode.passwordPlaceholder': '已保存(留空即沿用)';
6053
6102
  readonly 'mode.passwordClearNotice': '取消勾选会删除已保存的密码';
6054
6103
  readonly 'mode.includeSecrets': '导出密钥';
6055
6104
  readonly 'mode.includeSecretsHint': '把真实凭据值(~/.dsh/.credentials.yaml)写入加密快照,可在另一台机器上随同步一并写回本机凭据;勾选时自动选中加密,密钥绝不进入未加密快照。';
6056
- readonly 'mode.encryptAutosyncNotice': '加密快照仅通过手动推送/拉取使用;自动同步无密码,遇到加密快照会跳过并在历史中提示。';
6057
6105
  readonly 'mode.decryptPassword': '解密密码(加密快照拉取/同步用,可选)';
6058
6106
  readonly 'mode.decryptPasswordHint': '输入后保存在本机凭据库,下次拉取自动使用;只有拉取的快照确实加密时才会用到 —— 未加密的备份不会使用密码。';
6059
6107
  readonly 'mode.decryptPasswordSaved': '已保存到本机';
@@ -6090,8 +6138,10 @@ declare const zh$3: {
6090
6138
  readonly 'autosync.partial': '部分成功';
6091
6139
  readonly 'autosync.skipReasonLabel': '跳过原因';
6092
6140
  readonly 'autosync.skipReasonConflictCount': '{reason}(远端另有 {n} 个分区待确认,可在同步页手动处理)';
6141
+ readonly 'autosync.pendingMerge': '待裁决 {n} 个分区(自 {time})';
6093
6142
  readonly 'autosync.lastMessage': '本轮消息';
6094
6143
  readonly 'history.title': '同步历史';
6144
+ readonly 'history.refresh': '刷新';
6095
6145
  readonly 'history.empty': '尚无同步历史';
6096
6146
  readonly 'history.emptyHint': '完成首次推送 / 从远端合并 / 自动同步后,这里会显示记录。';
6097
6147
  readonly 'history.colTime': '时间';
@@ -6115,12 +6165,15 @@ declare const zh$3: {
6115
6165
  readonly 'history.autosyncReasonUnknown': '未知';
6116
6166
  readonly 'history.autosyncReasonConflictKeptLocal': '已按策略保留本机并覆盖远端';
6117
6167
  readonly 'history.autosyncReasonUpToDate': '无变化(本地与远端一致)';
6168
+ readonly 'history.autosyncReasonWarning': '部分内容未落地(详情见本轮告警)';
6118
6169
  readonly 'history.autosyncReasonUnchanged': '远端无新快照,无需合并';
6119
6170
  readonly 'history.autosyncConflicted': '跳过冲突分区:{sections}';
6120
6171
  readonly 'history.autosyncApplied': '应用分区:{sections}';
6121
6172
  readonly 'history.autosyncError': '错误:{error}';
6122
6173
  readonly 'history.channelGit': 'GitHub';
6123
6174
  readonly 'history.channelWebdav': 'WebDAV';
6175
+ readonly 'history.channelS3': 'S3';
6176
+ readonly 'history.channelGist': 'Gist';
6124
6177
  readonly 'history.stats.total': '共 {count} 条';
6125
6178
  readonly 'history.stats.autosync': '自动同步 {count}';
6126
6179
  readonly 'history.stats.failed': '失败 {count}';
@@ -6128,8 +6181,6 @@ declare const zh$3: {
6128
6181
  readonly 'history.stats.summary': '同步历史统计';
6129
6182
  readonly 'toast.autosyncLoadFailed': '读取自动同步状态失败';
6130
6183
  readonly 'toast.configSaveFailed': '保存通道配置失败';
6131
- readonly 'toast.configSaved': '通道配置已保存';
6132
- readonly 'toast.configNothingToSave': '请先填写通道地址再保存';
6133
6184
  readonly 'toast.channelCleared': '{channel} 配置已断开';
6134
6185
  readonly 'toast.githubCodeCopied': '已复制一次性授权代码 {code}';
6135
6186
  readonly 'toast.githubCodeCopyFailed': '自动复制失败,请手动复制上面的一次性授权代码';
@@ -6138,6 +6189,7 @@ declare const zh$3: {
6138
6189
  readonly 'toast.pushPreviewFailed': '推送预览失败';
6139
6190
  readonly 'toast.pushFailed': '推送失败';
6140
6191
  readonly 'toast.pushDone': '推送完成';
6192
+ readonly 'toast.pushSkipped': '内容未变化,已跳过';
6141
6193
  readonly 'toast.syncStartFailed': '从远端合并失败';
6142
6194
  readonly 'toast.autosyncUpdateFailed': '自动同步设置更新失败';
6143
6195
  readonly 'toast.autosyncUpdated': '自动同步设置已更新';
@@ -6157,7 +6209,6 @@ declare const zh$3: {
6157
6209
  readonly 'syncflow.importPartialToast': '部分成功:{n} 项未生效,请查看结果明细';
6158
6210
  readonly 'syncflow.importPartial': '部分成功:{n} 项未生效(其余已写入,未整体回滚)';
6159
6211
  readonly 'syncflow.ineffectiveItems': '未生效项';
6160
- readonly 'history.remoteMovedAction': '在产物库查看远端快照';
6161
6212
  readonly 'syncflow.compat.excellent': '兼容性:优秀';
6162
6213
  readonly 'syncflow.compat.good': '兼容性:良好(备份来自更旧的 DSH)';
6163
6214
  readonly 'syncflow.compat.partial': '兼容性:部分兼容(跨平台 / 分区缺失 / 版本超前,需人工确认)';
@@ -6165,7 +6216,6 @@ declare const zh$3: {
6165
6216
  readonly 'cloud.s3Title': '对象存储(S3 兼容)';
6166
6217
  readonly 'cloud.gistTitle': 'GitHub Gist';
6167
6218
  readonly 'cloud.provider': '兼容商';
6168
- readonly 'cloud.providerHint': '五家共用同一套 SigV4 签名实现;端点与寻址风格按兼容商取缺省。';
6169
6219
  readonly 'cloud.provider.s3': 'AWS S3';
6170
6220
  readonly 'cloud.provider.oss': '阿里云 OSS';
6171
6221
  readonly 'cloud.provider.cos': '腾讯云 COS';
@@ -6281,7 +6331,13 @@ declare const zh$3: {
6281
6331
  readonly 'probe.createdCollections': '已在远端自动创建目录:{list}';
6282
6332
  readonly 'probe.snapshotCount': '远端现有快照:{count} 份';
6283
6333
  readonly 'probe.unsupported': '该通道不提供连通性自检';
6284
- readonly 'syncflow.snapshotDevice': '由 {device} 推送';
6334
+ readonly 'mode.tabAutosyncSecurity': '设置';
6335
+ readonly 'mode.pluginsGroup': '插件';
6336
+ readonly 'mode.decryptGroup': '解密密码';
6337
+ readonly 'mode.decryptPasswordShort': '解密密码';
6338
+ readonly 'mode.securityHint': '这一段管两件事:加密备份把同步快照上密码,导出密钥把本机真实凭据一起放进加密快照。两者都需要加密开启;密码与凭据都存本机凭据库,不进同步文件、日志或备份。';
6339
+ readonly 'mode.passwordHint': '两个框填一致才会保存;失焦即落库,之后留空表示沿用已保存的密码。取消勾选「加密备份」会删掉已存密码。';
6340
+ readonly 'mode.pluginsGroupHint': '这一段的设置只作用于「插件」分区:远端已删、本机没改过的插件会被卸载,失败逐项提示、其余同步照常完成。';
6285
6341
  };
6286
6342
  /** 字典键联合(注册处 compile-time 校验) */
6287
6343
  type SyncKey = keyof typeof zh$3;
@@ -6319,7 +6375,6 @@ declare const zh$2: {
6319
6375
  readonly 'list.sortStars': '⭐ 最多';
6320
6376
  readonly 'list.sortName': '名称 A–Z';
6321
6377
  readonly 'list.stars': '⭐ {count}';
6322
- readonly 'list.starsHint': '来源仓库 star 数(仓库级,非本条目)';
6323
6378
  readonly 'list.count': '共 {count} 个条目';
6324
6379
  readonly 'list.filtered': '(筛选后 {count} 个)';
6325
6380
  readonly 'list.cacheCached': '已缓存';
@@ -6406,7 +6461,6 @@ declare const zh$2: {
6406
6461
  readonly 'myconfigs.upload.validateSecrets': '包含密钥:市场通道永不携带秘密,拒绝上传';
6407
6462
  readonly 'myconfigs.upload.validateInvalid': '内容校验未通过,无法上传';
6408
6463
  readonly 'myconfigs.upload.form.name': '名称';
6409
- readonly 'myconfigs.upload.form.nameHint': '预填 zip 文件名,可修改';
6410
6464
  readonly 'myconfigs.upload.form.description': '描述(可选)';
6411
6465
  readonly 'myconfigs.upload.form.categories': '类别(可选,逗号分隔)';
6412
6466
  readonly 'myconfigs.upload.form.autoTitle': '自动生成';
@@ -6418,7 +6472,6 @@ declare const zh$2: {
6418
6472
  readonly 'myconfigs.update.title': '更新配置';
6419
6473
  readonly 'myconfigs.update.hint': '版本自动 +1';
6420
6474
  readonly 'myconfigs.update.run': '一键更新';
6421
- readonly 'myconfigs.update.zipHint': '选择新 zip 后自动校验,通过才能更新。';
6422
6475
  readonly 'myconfigs.update.selectZip': '选择新 ZIP…';
6423
6476
  readonly 'myconfigs.result.title': '上传/更新完成';
6424
6477
  readonly 'myconfigs.result.version': '版本 {version}';
@@ -6529,7 +6582,7 @@ declare const zh$1: {
6529
6582
  readonly 'recovery.environment.compatible': '环境匹配';
6530
6583
  readonly 'recovery.environment.incompatible': '环境不匹配(可能来自其他机器/安装)';
6531
6584
  readonly 'recovery.preview.title': '恢复预览';
6532
- readonly 'recovery.preview.hint': '以下为只读预览(零写入)。确认后才会执行恢复。';
6585
+ readonly 'recovery.preview.hint': '只读预览 · 零写入 · 确认后才执行恢复';
6533
6586
  readonly 'recovery.preview.loading': '正在生成预览…';
6534
6587
  readonly 'recovery.confirm.title': '确认恢复';
6535
6588
  readonly 'recovery.confirm.message': '恢复/回滚是危险操作。确认执行?系统会先把当前文件备份到一个安全位置。';
@@ -6572,6 +6625,8 @@ declare const zh$1: {
6572
6625
  readonly 'recovery.crash.advice.check-patch-tree': '进入救援模式后逐个禁用插件排查';
6573
6626
  readonly 'recovery.rescue.title': '救援模式';
6574
6627
  readonly 'recovery.rescue.desc': 'DSH 因插件起不来时,把插件挂载收窄到「DSH 核心 + 本插件」:改写两层 cordis.patch.yml,并把 dsh.profile.bundles 里的其它用户插件临时移出。不卸载任何包,退出时从备份完整还原。';
6628
+ readonly 'recovery.rescue.short': '停用依赖校验,仅在插件自身无法启动时使用';
6629
+ readonly 'recovery.refresh': '刷新';
6575
6630
  readonly 'recovery.rescue.inactive': '救援模式未开启';
6576
6631
  readonly 'recovery.rescue.activeBadge': '已开启';
6577
6632
  readonly 'recovery.rescue.active': '救援模式已开启({time})—— 请重启 DSH 使其生效。';
@@ -6819,7 +6874,7 @@ declare const zh$1: {
6819
6874
  readonly 'rollback.warn.unknown': '未识别的告警(技术细节见下方)';
6820
6875
  readonly 'rollback.preview': '预览回退';
6821
6876
  readonly 'rollback.preview.title': '回退预览';
6822
- readonly 'rollback.preview.hint': '以下为只读预览(零写入)。确认后才会执行回退。';
6877
+ readonly 'rollback.preview.hint': '只读预览 · 零写入 · 确认后才执行回退';
6823
6878
  readonly 'rollback.preview.loading': '正在生成预览…';
6824
6879
  readonly 'rollback.preview.empty': '该回滚点没有可回退的内容。';
6825
6880
  readonly 'rollback.preview.none': '该点没有可回退的内容';
@@ -6941,7 +6996,7 @@ declare const zh$1: {
6941
6996
  readonly 'sessions.layout.planEmpty': '计划里没有需要执行的动作。';
6942
6997
  readonly 'sessions.layout.apiMissing': '当前接口不支持布局归位(缺少 layoutRepairSessions);请更新插件后重试 —— 本机未做任何改动。';
6943
6998
  readonly 'sessions.layout.planTitle': '布局归位计划(只读,尚未改动任何文件)';
6944
- readonly 'sessions.layout.planReadOnly': '计划只读:确认前零写入。';
6999
+ readonly 'sessions.layout.planReadOnly': '只读预览 · 零写入';
6945
7000
  readonly 'sessions.layout.noCandidates': '本机没有需要归位或隔离的会话。';
6946
7001
  readonly 'sessions.layout.summary': '归位 {move} · 隔离 {quarantine}';
6947
7002
  readonly 'sessions.layout.planSkipped': '只报告 {count} 条';
@@ -6996,7 +7051,7 @@ type RecoveryKey = keyof typeof zh$1;
6996
7051
  type KindKey = `history.kind.${MigrationKind}`;
6997
7052
  type ResultKey = `history.result.${MigrationResult}`;
6998
7053
  type CommonKey = 'history.subtitle' | 'history.empty' | 'history.loading' | 'history.corruptedBanner' | 'history.corruptedCount' | 'history.stats.total' | 'history.stats.success' | 'history.stats.failed' | 'history.stats.skipped' | 'history.filter.kind' | 'history.filter.result' | 'history.filter.recent' | 'history.filter.recent.all' | 'history.filter.recent.50' | 'history.filter.recent.200' | 'history.search.placeholder' | 'history.export.json' | 'history.export.markdown' | 'history.exported' | 'history.exporting' | 'history.exportError' | 'history.refresh' | 'history.refreshError' | 'history.retention.label' | 'history.retention.hint' | 'history.retention.unlimited' | 'history.retention.units' | 'history.retention.current' | 'history.retention.runNow' | 'history.retention.running' | 'history.retention.cleaned' | 'history.retention.noop' | 'history.retention.saveError' |
6999
- /** ⓘ 说明按钮的可访问名(与主字典 / market / sync / recovery 同口径,见 info-hint-guard t6-4) */
7054
+ /** 说明按钮的可访问名(2026-11-14 起 ⓘ 已下线、代码不再消费;键与四本字典口径一并保留,免得下游按键取文案时缺项) */
7000
7055
  'common.infoHint';
7001
7056
  type HistoryKey = KindKey | ResultKey | CommonKey;
7002
7057
  /**