dsh-config-manager 0.8.1 → 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 (368) 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 +122 -50
  18. package/lib/client.js +12676 -12091
  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/read-trae.d.ts +11 -0
  53. package/lib/foreign/read-trae.js +124 -4
  54. package/lib/foreign/session-ir.js +50 -9
  55. package/lib/foreign/session-read.d.ts +8 -0
  56. package/lib/foreign/session-read.js +26 -0
  57. package/lib/foreign/session-source.d.ts +12 -4
  58. package/lib/foreign/session-source.js +5 -3
  59. package/lib/foreign/trae-sqlcipher.d.ts +127 -0
  60. package/lib/foreign/trae-sqlcipher.js +519 -0
  61. package/lib/foreign/trae.js +3 -1
  62. package/lib/foreign/truth-table.js +3 -2
  63. package/lib/foreign/types.d.ts +9 -1
  64. package/lib/index.d.ts +1 -1
  65. package/lib/index.js +1 -1
  66. package/lib/profiles/dsh-profile-io.d.ts +20 -0
  67. package/lib/profiles/dsh-profile-io.js +27 -0
  68. package/lib/profiles/dsh-profile-manager.d.ts +27 -0
  69. package/lib/profiles/dsh-profile-manager.js +45 -4
  70. package/lib/profiles/dsh-profile-runtime.d.ts +5 -1
  71. package/lib/profiles/dsh-profile-runtime.js +16 -3
  72. package/lib/profiles/process-control.d.ts +18 -1
  73. package/lib/profiles/process-control.js +25 -1
  74. package/lib/routes/profiles.js +2 -1
  75. package/lib/routes/sync.js +13 -1
  76. package/lib/schema/types.d.ts +11 -0
  77. package/lib/security/redaction.js +22 -6
  78. package/lib/sync/autosync-repeat.d.ts +27 -0
  79. package/lib/sync/autosync-repeat.js +23 -0
  80. package/lib/sync/autosync-scheduler.d.ts +34 -1
  81. package/lib/sync/autosync-scheduler.js +151 -43
  82. package/lib/sync/baseline-heal.js +7 -0
  83. package/lib/sync/baseline-record.d.ts +67 -0
  84. package/lib/sync/baseline-record.js +74 -0
  85. package/lib/sync/blob-store.js +13 -0
  86. package/lib/sync/content-diff.d.ts +39 -0
  87. package/lib/sync/content-diff.js +46 -0
  88. package/lib/sync/git/git-transport.d.ts +32 -1
  89. package/lib/sync/git/git-transport.js +146 -26
  90. package/lib/sync/github-auth.d.ts +17 -1
  91. package/lib/sync/github-auth.js +37 -1
  92. package/lib/sync/merge-apply-plan.d.ts +38 -0
  93. package/lib/sync/merge-apply-plan.js +76 -0
  94. package/lib/sync/messages.d.ts +1 -0
  95. package/lib/sync/messages.js +2 -0
  96. package/lib/sync/pending-merge.d.ts +34 -0
  97. package/lib/sync/pending-merge.js +53 -0
  98. package/lib/sync/s3/s3-transport.d.ts +14 -2
  99. package/lib/sync/s3/s3-transport.js +72 -48
  100. package/lib/sync/sync-engine.d.ts +23 -40
  101. package/lib/sync/sync-engine.js +115 -132
  102. package/lib/sync/sync-history.d.ts +7 -0
  103. package/lib/sync/sync-state.d.ts +28 -0
  104. package/lib/sync/sync-state.js +20 -0
  105. package/lib/sync/transport.d.ts +12 -3
  106. package/lib/sync/transport.js +13 -4
  107. package/lib/sync/webdav/webdav-transport.d.ts +19 -2
  108. package/lib/sync/webdav/webdav-transport.js +81 -40
  109. package/lib/ui/commands.js +5 -11
  110. package/lib/ui/dsh-profiles-view.d.ts +8 -3
  111. package/lib/ui/dsh-profiles-view.js +9 -5
  112. package/lib/ui/foreign-view.d.ts +19 -0
  113. package/lib/ui/foreign-view.js +24 -0
  114. package/lib/ui/i18n.d.ts +7 -1
  115. package/lib/ui/i18n.js +17 -2
  116. package/lib/ui/menu-placement.js +1 -1
  117. package/lib/ui/migration-consult-view.d.ts +11 -0
  118. package/lib/ui/migration-consult-view.js +15 -0
  119. package/lib/ui/overview-view.d.ts +7 -0
  120. package/lib/ui/overview-view.js +3 -0
  121. package/lib/ui/report.d.ts +9 -0
  122. package/lib/ui/report.js +17 -4
  123. package/lib/ui/selection-model.d.ts +8 -0
  124. package/lib/ui/selection-model.js +16 -0
  125. package/lib/utils/patch-yaml.d.ts +39 -1
  126. package/lib/utils/patch-yaml.js +82 -2
  127. package/lib/utils/paths.d.ts +13 -0
  128. package/lib/utils/paths.js +35 -0
  129. package/lib/utils/workdir-lock.js +18 -3
  130. package/package.json +2 -1
  131. package/src/adapters/mcp.test.ts +29 -0
  132. package/src/adapters/mcp.ts +43 -12
  133. package/src/adapters/messages.ts +2 -0
  134. package/src/adapters/patch-key-guard.ts +29 -0
  135. package/src/adapters/plugin-data.test.ts +126 -0
  136. package/src/adapters/plugin-data.ts +97 -26
  137. package/src/adapters/plugins.test.ts +288 -0
  138. package/src/adapters/plugins.ts +141 -4
  139. package/src/cli/actions.test.ts +74 -1
  140. package/src/cli/actions.ts +27 -246
  141. package/src/cli/control-state.ts +143 -0
  142. package/src/cli/index.ts +18 -0
  143. package/src/cli/web/web.test.ts +27 -0
  144. package/src/cli/write-gates.ts +149 -0
  145. package/src/client/about/AboutPanel.tsx +7 -6
  146. package/src/client/about/release-notes-view.test.ts +17 -0
  147. package/src/client/about/release-notes-view.ts +49 -24
  148. package/src/client/chat/ChatEntryView.tsx +2 -2
  149. package/src/client/chat/rollback-entry-view.ts +6 -1
  150. package/src/client/common/CommandPalette.tsx +6 -3
  151. package/src/client/common/ConfirmDialog.tsx +29 -12
  152. package/src/client/common/ContentPicker.tsx +13 -12
  153. package/src/client/common/Modal.tsx +12 -5
  154. package/src/client/common/MoreMenu.tsx +4 -1
  155. package/src/client/common/RunsCenter.tsx +103 -32
  156. package/src/client/common/Select.tsx +2 -2
  157. package/src/client/common/floating-bounds.ts +1 -1
  158. package/src/client/common/floating-units.test.ts +1 -2
  159. package/src/client/common/plan-text-redaction.test.ts +188 -3
  160. package/src/client/common/runs-center-guard.test.ts +60 -0
  161. package/src/client/common/runs-center-view.test.ts +128 -0
  162. package/src/client/common/runs-center-view.ts +96 -0
  163. package/src/client/common/section-title-action.test.ts +66 -0
  164. package/src/client/common/ui.tsx +93 -30
  165. package/src/client/config-manager.module.css +1507 -272
  166. package/src/client/consult/ConsultCard.tsx +7 -6
  167. package/src/client/environment/EnvironmentPanel.tsx +20 -21
  168. package/src/client/environment/maintenance/DiskUsageCard.tsx +65 -91
  169. package/src/client/environment/profiles-incomplete-ui.test.ts +8 -8
  170. package/src/client/export/ExportView.tsx +7 -16
  171. package/src/client/history/HistoryPanel.tsx +88 -28
  172. package/src/client/history/history-locales.ts +3 -3
  173. package/src/client/home/BackupScheduleCard.tsx +35 -30
  174. package/src/client/home/HomePanel.tsx +45 -10
  175. package/src/client/import/ConflictList.tsx +13 -13
  176. package/src/client/import/ForeignImportView.tsx +32 -13
  177. package/src/client/import/ImportWizardView.tsx +2 -3
  178. package/src/client/import/PathMappingForm.tsx +4 -4
  179. package/src/client/import/PathPickerDialog.tsx +2 -1
  180. package/src/client/import/foreign-import-view-guard.test.ts +1 -1
  181. package/src/client/import/import-wizard-steps.tsx +51 -39
  182. package/src/client/import/use-import-wizard-controller.test.ts +129 -0
  183. package/src/client/import/use-import-wizard-controller.ts +116 -22
  184. package/src/client/library/ArtifactRow.tsx +2 -2
  185. package/src/client/library/BackupInspectView.tsx +19 -15
  186. package/src/client/library/LibraryActions.tsx +56 -16
  187. package/src/client/library/LibraryPanel.tsx +7 -7
  188. package/src/client/library/RestorePlanView.tsx +13 -8
  189. package/src/client/locales/about.ts +0 -2
  190. package/src/client/locales/backup.ts +10 -12
  191. package/src/client/locales/common.ts +2 -0
  192. package/src/client/locales/export.ts +5 -12
  193. package/src/client/locales/foreign.ts +11 -2
  194. package/src/client/locales/import.ts +3 -2
  195. package/src/client/locales/overview.ts +4 -0
  196. package/src/client/locales/profiles.ts +32 -4
  197. package/src/client/locales/restore.ts +0 -2
  198. package/src/client/locales/sessions.ts +0 -2
  199. package/src/client/locales/shell.ts +2 -2
  200. package/src/client/market/MarketPanel.tsx +38 -20
  201. package/src/client/market/MyConfigsList.tsx +34 -32
  202. package/src/client/market/MyConfigsLoginCard.tsx +12 -15
  203. package/src/client/market/MyConfigsView.tsx +5 -5
  204. package/src/client/market/MyConfigsWizard.tsx +7 -12
  205. package/src/client/market/market-locales.ts +0 -6
  206. package/src/client/market/my-configs-split.test.ts +2 -1
  207. package/src/client/nav-menu-clip-guard.test.ts +52 -0
  208. package/src/client/recovery/IncompleteCopiesSection.tsx +1 -3
  209. package/src/client/recovery/RecoveryPanel.tsx +31 -16
  210. package/src/client/recovery/RollbackCard.tsx +58 -16
  211. package/src/client/recovery/RollbackFileChanges.tsx +40 -27
  212. package/src/client/recovery/SessionHealthCard.tsx +2 -2
  213. package/src/client/recovery/SessionHealthDialog.tsx +5 -7
  214. package/src/client/recovery/SessionLayoutSection.tsx +3 -5
  215. package/src/client/recovery/recovery-locales.ts +12 -8
  216. package/src/client/run-store.test.ts +30 -0
  217. package/src/client/run-store.ts +21 -1
  218. package/src/client/sync/AddChannelCard.tsx +65 -0
  219. package/src/client/sync/AutosyncCard.tsx +182 -108
  220. package/src/client/sync/ChannelClearConfirmDialog.tsx +5 -1
  221. package/src/client/sync/ChannelConfigDialog.tsx +27 -48
  222. package/src/client/sync/MergePreviewView.tsx +3 -5
  223. package/src/client/sync/PushReportSections.tsx +35 -0
  224. package/src/client/sync/SyncChannelEntryCard.tsx +33 -24
  225. package/src/client/sync/SyncConfirmView.tsx +3 -3
  226. package/src/client/sync/SyncLogList.tsx +16 -5
  227. package/src/client/sync/SyncPanel.tsx +153 -159
  228. package/src/client/sync/SyncProbeRow.tsx +5 -7
  229. package/src/client/sync/SyncRepositoryPicker.tsx +17 -4
  230. package/src/client/sync/SyncSecuritySection.tsx +157 -0
  231. package/src/client/sync/SyncSettingsDialog.tsx +304 -0
  232. package/src/client/sync/SyncSettingsView.test.ts +26 -8
  233. package/src/client/sync/WorkDirCard.tsx +2 -4
  234. package/src/client/sync/config-clear-guard.test.ts +94 -0
  235. package/src/client/sync/config-clear-guard.ts +98 -0
  236. package/src/client/sync/config-dirty.test.ts +91 -0
  237. package/src/client/sync/config-dirty.ts +88 -0
  238. package/src/client/sync/history-model.test.ts +2 -0
  239. package/src/client/sync/history-model.ts +3 -0
  240. package/src/client/sync/merge-request.ts +20 -0
  241. package/src/client/sync/sync-api.ts +12 -0
  242. package/src/client/sync/sync-locales.ts +87 -47
  243. package/src/client/sync/sync-panel-clear.test.ts +44 -0
  244. package/src/client/sync/sync-view.test.ts +20 -0
  245. package/src/client/sync/sync-view.ts +42 -4
  246. package/src/core/backup.test.ts +61 -1
  247. package/src/core/backup.ts +21 -4
  248. package/src/core/boot-rescue.test.ts +35 -0
  249. package/src/core/boot-rescue.ts +13 -2
  250. package/src/core/boot-safety.test.ts +25 -0
  251. package/src/core/boot-safety.ts +37 -2
  252. package/src/core/conflict-decisions.ts +2 -1
  253. package/src/core/exporter.ts +21 -1
  254. package/src/core/journal.test.ts +183 -0
  255. package/src/core/journal.ts +163 -25
  256. package/src/core/local-plugin-host.test.ts +68 -2
  257. package/src/core/local-plugin-host.ts +31 -4
  258. package/src/core/messages.ts +14 -0
  259. package/src/core/migration-history.test.ts +27 -0
  260. package/src/core/migration-history.ts +12 -4
  261. package/src/core/model-tools.test.ts +67 -0
  262. package/src/core/model-tools.ts +16 -4
  263. package/src/core/patch-secret-guard.test.ts +110 -0
  264. package/src/core/patch-secret-guard.ts +176 -0
  265. package/src/core/reconcile.ts +32 -4
  266. package/src/core/reinstall.ts +8 -2
  267. package/src/core/restore.ts +32 -7
  268. package/src/core/section-sanitize.ts +37 -0
  269. package/src/core/snapshot-diff.test.ts +73 -1
  270. package/src/core/snapshot-diff.ts +66 -21
  271. package/src/core/startup-barrier.test.ts +64 -0
  272. package/src/core/startup-barrier.ts +8 -2
  273. package/src/core/types.ts +27 -1
  274. package/src/core/update-check.test.ts +40 -0
  275. package/src/core/update-check.ts +53 -2
  276. package/src/foreign/claude-code.test.ts +5 -0
  277. package/src/foreign/claude-plugins.test.ts +57 -0
  278. package/src/foreign/claude-sessions-bytes.test.ts +7 -1
  279. package/src/foreign/dsh.test.ts +23 -0
  280. package/src/foreign/file-budget.test.ts +7 -1
  281. package/src/foreign/kernel.ts +9 -2
  282. package/src/foreign/read-claude-plugins.ts +32 -11
  283. package/src/foreign/read-dsh.ts +33 -2
  284. package/src/foreign/read-trae.ts +117 -5
  285. package/src/foreign/session-ir.test.ts +67 -0
  286. package/src/foreign/session-ir.ts +54 -14
  287. package/src/foreign/session-read.ts +23 -0
  288. package/src/foreign/session-source.ts +15 -5
  289. package/src/foreign/trae-sqlcipher.test.ts +360 -0
  290. package/src/foreign/trae-sqlcipher.ts +564 -0
  291. package/src/foreign/trae.test.ts +188 -0
  292. package/src/foreign/trae.ts +3 -1
  293. package/src/foreign/truth-table.ts +4 -2
  294. package/src/foreign/types.ts +10 -1
  295. package/src/index.ts +1 -1
  296. package/src/profiles/dsh-profile-copy-rollback.test.ts +58 -4
  297. package/src/profiles/dsh-profile-io.ts +29 -0
  298. package/src/profiles/dsh-profile-manager.test.ts +30 -0
  299. package/src/profiles/dsh-profile-manager.ts +53 -5
  300. package/src/profiles/dsh-profile-runtime.test.ts +29 -7
  301. package/src/profiles/dsh-profile-runtime.ts +17 -3
  302. package/src/profiles/process-control.test.ts +97 -0
  303. package/src/profiles/process-control.ts +28 -1
  304. package/src/routes/profiles.ts +2 -1
  305. package/src/routes/sync.ts +13 -1
  306. package/src/schema/types.ts +16 -1
  307. package/src/security/redaction.test.ts +31 -0
  308. package/src/security/redaction.ts +23 -6
  309. package/src/sync/autosync-repeat.test.ts +58 -0
  310. package/src/sync/autosync-repeat.ts +55 -0
  311. package/src/sync/autosync-scheduler.test.ts +417 -0
  312. package/src/sync/autosync-scheduler.ts +154 -41
  313. package/src/sync/baseline-heal.ts +6 -0
  314. package/src/sync/baseline-record.ts +135 -0
  315. package/src/sync/blob-store.test.ts +16 -0
  316. package/src/sync/blob-store.ts +13 -0
  317. package/src/sync/content-diff.test.ts +95 -0
  318. package/src/sync/content-diff.ts +79 -0
  319. package/src/sync/git/git-transport.test.ts +151 -4
  320. package/src/sync/git/git-transport.ts +143 -27
  321. package/src/sync/github-auth.test.ts +26 -1
  322. package/src/sync/github-auth.ts +37 -1
  323. package/src/sync/merge-apply-plan.ts +117 -0
  324. package/src/sync/messages.ts +2 -0
  325. package/src/sync/pending-merge.ts +77 -0
  326. package/src/sync/s3/s3-delete-and-blob-index.test.ts +249 -0
  327. package/src/sync/s3/s3-transport.ts +76 -42
  328. package/src/sync/sync-config.test.ts +39 -12
  329. package/src/sync/sync-device-identity.test.ts +3 -0
  330. package/src/sync/sync-engine.test.ts +465 -12
  331. package/src/sync/sync-engine.ts +130 -135
  332. package/src/sync/sync-history.ts +7 -0
  333. package/src/sync/sync-state.ts +48 -0
  334. package/src/sync/transport.test.ts +13 -1
  335. package/src/sync/transport.ts +12 -4
  336. package/src/sync/webdav/webdav-delete-and-blob-index.test.ts +249 -0
  337. package/src/sync/webdav/webdav-transport.ts +86 -34
  338. package/src/ui/commands.test.ts +11 -0
  339. package/src/ui/commands.ts +5 -14
  340. package/src/ui/dsh-profiles-view.test.ts +16 -0
  341. package/src/ui/dsh-profiles-view.ts +11 -5
  342. package/src/ui/foreign-view.test.ts +36 -0
  343. package/src/ui/foreign-view.ts +46 -0
  344. package/src/ui/i18n.ts +17 -2
  345. package/src/ui/menu-placement.ts +1 -1
  346. package/src/ui/migration-consult-view.test.ts +20 -1
  347. package/src/ui/migration-consult-view.ts +17 -0
  348. package/src/ui/overview-view.ts +10 -0
  349. package/src/ui/report.test.ts +25 -1
  350. package/src/ui/report.ts +15 -4
  351. package/src/ui/selection-model.test.ts +15 -1
  352. package/src/ui/selection-model.ts +18 -0
  353. package/src/utils/js-yaml4.d.ts +35 -0
  354. package/src/utils/patch-yaml.test.ts +207 -1
  355. package/src/utils/patch-yaml.ts +98 -2
  356. package/src/utils/paths.test.ts +14 -1
  357. package/src/utils/paths.ts +35 -0
  358. package/src/utils/workdir-lock.test.ts +69 -0
  359. package/src/utils/workdir-lock.ts +17 -3
  360. package/lib/ui/path-mapping.d.ts +0 -38
  361. package/lib/ui/path-mapping.js +0 -75
  362. package/src/client/common/InfoHint.tsx +0 -289
  363. package/src/client/common/info-hint-guard.test.ts +0 -1119
  364. package/src/client/sync/DecryptPasswordCard.tsx +0 -48
  365. package/src/client/sync/SecurityOptionsCard.tsx +0 -97
  366. package/src/client/sync/SyncSectionPickerDialog.tsx +0 -213
  367. package/src/ui/path-mapping.test.ts +0 -67
  368. package/src/ui/path-mapping.ts +0 -103
@@ -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': '来源已变化:上一次的产包结果作废,请重新「开始导入」。',
@@ -95,6 +95,11 @@ export const zh = {
95
95
  'foreign.skip.legacy-rules-file': '旧式规则文件:DSH 无对等结构,只报告',
96
96
  'foreign.skip.instructions-merged': '多份指令源被合并为一个全局指令文件',
97
97
  'foreign.skip.instructions-override-selected': '命中更高优先级的指令文件(override),按它导入',
98
+ // 2026-11-12(#134):Trae 2.3.x 加密会话库(SQLCipher)的可判定失败
99
+ 'foreign.skip.trae-db-key-invalid': 'Trae 加密会话库的密钥对不上(换版或密钥被覆盖):页面头校验不通过,本次未读出任何会话',
100
+ 'foreign.skip.trae-db-too-large': 'Trae 加密会话库超出本来源的体积上限:未解密,未读出任何会话(全局 1 GiB 上限未改动)',
101
+ 'foreign.skip.trae-db-decrypt-failed': 'Trae 加密会话库无法解密:文件被截断、不是 SQLCipher 形态或读取失败,本次未读出任何会话',
102
+ 'foreign.skip.trae-db-schema-mismatch': 'Trae 加密会话库解密成功但表结构不符(缺 chat_session / history_v2 或必需列):不猜字段,本次未读出任何会话',
98
103
  // 冲突语义(用户决策:同 id 不覆盖、跳过并报码)
99
104
  'foreign.conflict.policy': '同 id 冲突不覆盖本机内容:跳过并逐条报告',
100
105
  } as const;
@@ -142,7 +147,7 @@ export const en: Record<keyof typeof zh, string> = {
142
147
  'foreign.importFailed': 'Import failed: {reason}',
143
148
  'foreign.previewTitle': 'What will be imported',
144
149
  'foreign.previewSections': 'Sections included: {sections}',
145
- 'foreign.previewDryRun': 'Read-only preview: nothing is written.',
150
+ 'foreign.previewDryRun': 'Read-only preview · zero writes',
146
151
  'foreign.previewReset': 'The source changed: the last preview was discarded — start the import again.',
147
152
  'foreign.lossy.title': 'Known lossy behaviour',
148
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.',
@@ -180,5 +185,9 @@ export const en: Record<keyof typeof zh, string> = {
180
185
  'foreign.skip.legacy-rules-file': 'Legacy rules file: DSH has no equivalent, reported only',
181
186
  'foreign.skip.instructions-merged': 'Several instruction sources were merged into one global instruction file',
182
187
  'foreign.skip.instructions-override-selected': 'A higher-priority instruction file (override) was found and is the one imported',
188
+ 'foreign.skip.trae-db-key-invalid': 'The Trae encrypted session database key does not match (version change or an overridden key): the page-header checks failed, so no session was read',
189
+ 'foreign.skip.trae-db-too-large': 'The Trae encrypted session database exceeds this source size limit: it was not decrypted, so no session was read (the global 1 GiB limit is unchanged)',
190
+ 'foreign.skip.trae-db-decrypt-failed': 'The Trae encrypted session database cannot be decrypted: the file is truncated, not in SQLCipher form, or unreadable, so no session was read',
191
+ 'foreign.skip.trae-db-schema-mismatch': 'The Trae encrypted session database decrypted but its schema does not match (chat_session / history_v2 or a required column is missing): fields are never guessed, so no session was read',
183
192
  'foreign.conflict.policy': 'Same-id conflicts never overwrite local content: skipped and listed in the report',
184
193
  };
@@ -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',
@@ -93,7 +93,6 @@ export const zh = {
93
93
  'backupFiles.inspectEncrypted': '这是整包加密的备份,无法直接查看内容:请点「导入」——向导会先让你输入备份密码解锁,解锁后即可看到包含的分区与差异。',
94
94
  'library.source.all': '全部',
95
95
  // 来源档案(originProfile):快照行徽章 + 列表筛选。档案名本身不翻译,只有这三条通用文案需要。
96
- 'library.origin.foreign': '来自他人档案',
97
96
  'library.kind.snapshot': '本机快照',
98
97
  'library.kind.backupFile': '备份文件',
99
98
  'library.kind.remote': '远端快照',
@@ -220,7 +219,6 @@ export const en: Record<keyof typeof zh, string> = {
220
219
  'library.moreActions': 'More actions',
221
220
  'backupFiles.inspectEncrypted': 'This backup is fully encrypted, so its contents cannot be inspected directly. Use Import — the wizard asks for the backup password, unlocks the archive, and then shows its sections and diff.',
222
221
  'library.source.all': 'All',
223
- 'library.origin.foreign': 'From another profile',
224
222
  'library.kind.snapshot': 'Local snapshot',
225
223
  'library.kind.backupFile': 'Backup file',
226
224
  'library.kind.remote': 'Remote snapshot',
@@ -24,7 +24,7 @@ export const zh = {
24
24
  'runs.loading': '正在读取任务列表…',
25
25
  'runs.loadFailed': '读取任务列表失败:{message}',
26
26
  'runs.empty': '近期没有任何任务(运行中的任务会实时出现在这里)',
27
- 'runs.retentionHint': '刚结束的任务保留 30 分钟;完整操作审计见「迁移历史」',
27
+ 'runs.retentionHint': '刚结束的任务只保留 30 分钟。',
28
28
  'runs.runningBadge': '{count} 个进行中',
29
29
  'runs.awaitingBadge': '{count} 个等待你选择',
30
30
  'runs.awaitingDecision': '等待你选择',
@@ -95,7 +95,7 @@ export const en: Record<keyof typeof zh, string> = {
95
95
  'runs.loading': 'Loading tasks...',
96
96
  'runs.loadFailed': 'Failed to load tasks: {message}',
97
97
  'runs.empty': 'No recent tasks (running ones appear here live)',
98
- 'runs.retentionHint': 'Recently finished tasks are kept for 30 minutes; the full audit lives in Migration History',
98
+ 'runs.retentionHint': 'Finished tasks are kept for 30 minutes only.',
99
99
  'runs.runningBadge': '{count} running',
100
100
  'runs.awaitingBadge': '{count} waiting for you',
101
101
  'runs.awaitingDecision': 'Waiting for you',
@@ -26,7 +26,7 @@ import type { ConfigManagerApi } from '../api.ts'
26
26
  import type { ImportResult, ItemResolution } from '../../core/types.ts'
27
27
  import type { SectionId } from '../../schema/types.ts'
28
28
  import { Badge, Banner, Button, Card, Empty, SectionTitle } from '../common/ui.tsx'
29
- import { InfoHint } from '../common/InfoHint.tsx'
29
+ import { InspectIcon } from '../common/Icon.tsx'
30
30
  import { Skeleton, SkeletonList } from '../common/Skeleton.tsx'
31
31
  import { Select } from '../common/Select.tsx'
32
32
  import { effectiveImportSelection, type Selection } from '../../ui/selection-model.ts'
@@ -424,7 +424,15 @@ export function MarketPanel({ api, myConfigsApi, importApi, syncApi, t, cmT, ope
424
424
  }
425
425
 
426
426
  return (
427
- <div className={css.viewBody}>
427
+ /* 浏览列表模式整屏定高(.marketFill):筛选卡吃满剩余高度、条目在卡内滚动,
428
+ 整页不跟着条目数变长(视觉稿 T-04:筛选卡 flex-1)。详情页不套定高,保持整页滚动。 */
429
+ <div
430
+ className={
431
+ state.subView === 'browse' && !downloadOpen
432
+ ? `${css.viewBody} ${css.marketView} ${css.marketFill}`
433
+ : `${css.viewBody} ${css.marketView}`
434
+ }
435
+ >
428
436
  {/* 子视图切换(§4.6):浏览市场 / 我的配置(低频面板状态镜像 runStore,切 tab/刷新不丢) */}
429
437
  <div className={css.modeTabs} role="tablist">
430
438
  <button
@@ -471,7 +479,7 @@ export function MarketPanel({ api, myConfigsApi, importApi, syncApi, t, cmT, ope
471
479
  {/* 列表视图的表头与市场操作卡:进入条目向导页时整块让位(P2 起向导是**页面**,
472
480
  不再在列表之上叠弹窗) */}
473
481
  {!downloadOpen && (<>
474
- <SectionTitle title={t('section.label')} info={<InfoHint text={t('section.description')} label={t('common.infoHint')} />} />
482
+ <SectionTitle title={t('section.label')} tooltip={t('section.description')} />
475
483
 
476
484
  {/* 市场操作行(2026-11-01):原为一张卡,卡里只有标题 + 两个按钮,右侧四百多像素永远空着
477
485
  (app-screens §4.2 卡内死空间,白吃约 50px)。改成标题与动作同一行 —— 它本来就是
@@ -595,9 +603,15 @@ export function MarketPanel({ api, myConfigsApi, importApi, syncApi, t, cmT, ope
595
603
  </>
596
604
  )}
597
605
 
598
- {/* 条目列表(浏览) */}
606
+ {/* 条目列表(浏览):整卡吃满剩余高度(.marketListCard),条目在卡内滚动 */}
599
607
  {!downloadOpen && (
600
- <Card>
608
+ <Card
609
+ className={
610
+ !state.browsing && state.loadError === null && filtered.length > 0
611
+ ? `${css.marketListCard} ${css.marketListCardFill}`
612
+ : css.marketListCard
613
+ }
614
+ >
601
615
  {/* 加载失败必须说清原因并可就地重试:此前把 loadError 渲染成中性空态文案
602
616
  (「内置市场尚未加载,请先『拉取最新』」),错误原文被整个丢弃 ——
603
617
  用户只会反复点刷新,永远不知是宿主没就绪、网络不通还是本地 index 读不出来。 */}
@@ -615,13 +629,17 @@ export function MarketPanel({ api, myConfigsApi, importApi, syncApi, t, cmT, ope
615
629
  窄画布(宿主设置弹窗 564px)下 2 列优于 4 列。 */}
616
630
  <div className={css.marketFilterGrid}>
617
631
  {/* 搜索 + 类别过滤 + 来源筛选 + 排序(2026-08-21 新增;状态镜像 runStore) */}
618
- <input
619
- type="text"
620
- className={`${css.input} ${css.marketFilterSearch}`}
621
- value={state.search}
622
- placeholder={t('list.searchPlaceholder')}
623
- onChange={(e: ChangeEvent<HTMLInputElement>) => { patch({ search: e.target.value }) }}
624
- />
632
+ {/* 搜索框:12px 放大镜内嵌 + 无描边 input(描边归外壳,聚焦时整框变色) */}
633
+ <div className={`${css.marketSearchBox} ${css.marketFilterSearch}`}>
634
+ <InspectIcon size={12} />
635
+ <input
636
+ type="text"
637
+ className={css.marketSearchInput}
638
+ value={state.search}
639
+ placeholder={t('list.searchPlaceholder')}
640
+ onChange={(e: ChangeEvent<HTMLInputElement>) => { patch({ search: e.target.value }) }}
641
+ />
642
+ </div>
625
643
  <Select
626
644
  value={state.category}
627
645
  ariaLabel={t('list.categoriesAll')}
@@ -679,27 +697,27 @@ export function MarketPanel({ api, myConfigsApi, importApi, syncApi, t, cmT, ope
679
697
  </>)}
680
698
  {state.browsing && <SkeletonList label={t('list.loading')} />}
681
699
  {!state.browsing && state.loadError === null && state.items.length === 0 && <Empty>{t('list.noItems')}</Empty>}
682
- {/* 条目卡片列表 */}
700
+ {/* 条目列表(视觉稿 T-04):分隔线行 + 卡内滚动;名称/版本一行、作者·描述一行、徽章一行 */}
683
701
  {!state.browsing && state.loadError === null && filtered.length > 0 && (
684
- <div className={css.snapshotList}>
702
+ <div className={css.marketItemList}>
685
703
  {filtered.map((it) => {
686
704
  // 来源徽章(阶段 1:条目级来源仓库):官方 ok / 第三方 warn,文案走字典
687
705
  const sourceKind = sourceBadgeKind(it, marketUrl)
688
706
  return (
689
- <div key={it.id} className={css.statRow} style={{ paddingTop: 4 }}>
690
- <div style={{ flex: 1, minWidth: 0 }}>
691
- <div className={css.conflictHead}>
707
+ <div key={it.id} className={css.marketItem}>
708
+ <div className={css.marketItemMain}>
709
+ <div className={`${css.conflictHead} ${css.marketItemHead}`}>
692
710
  <span className={css.conflictId}>{it.name}</span>
693
711
  {it.version !== undefined && <Badge kind="info">{it.version}</Badge>}
694
712
  </div>
695
713
  {(it.author !== undefined || it.description !== undefined) && (
696
- <span className={css.hint}>
714
+ <span className={css.marketItemDesc}>
697
715
  {it.author !== undefined ? `${it.author}` : ''}
698
716
  {it.author !== undefined && it.description !== undefined ? ' · ' : ''}
699
717
  {it.description ?? ''}
700
718
  </span>
701
719
  )}
702
- <div className={css.statRow}>
720
+ <div className={css.marketItemMeta}>
703
721
  <Badge kind={sourceKind}>
704
722
  {sourceKind === 'ok' ? t('list.sourceOfficial') : t('list.sourcePersonal')}
705
723
  </Badge>
@@ -708,7 +726,7 @@ export function MarketPanel({ api, myConfigsApi, importApi, syncApi, t, cmT, ope
708
726
  {cacheLabel(it.cacheState)}
709
727
  </Badge>
710
728
  {it.stars !== undefined && (
711
- <Badge kind="info" title={t('list.starsHint')}>{t('list.stars', { count: String(it.stars) })}</Badge>
729
+ <Badge kind="info">{t('list.stars', { count: String(it.stars) })}</Badge>
712
730
  )}
713
731
  </div>
714
732
  </div>
@@ -50,8 +50,9 @@ export function MyConfigsList({
50
50
  onRefresh, onChangeDeleteConfirm, onOpenUpdate, onOpenInstall,
51
51
  }: MyConfigsListProps) {
52
52
  return (
53
- <Card>
54
- <div className={css.headRow}>
53
+ /* 视觉稿 T-05:卡片自带一条列表头(h34、下边框),行贴在卡内(p0 0 12),不再用 Card 的 12px 内边距 */
54
+ <Card className={css.marketMyListCard}>
55
+ <div className={css.marketMyListHead}>
55
56
  <span className={css.groupLabel}>{t('myconfigs.list.title')}</span>
56
57
  {/* 撑开剩余空间:Badge 与刷新按钮成组贴右,刷新按钮为该行最右元素 */}
57
58
  <span className={css.statusSpacer} />
@@ -72,45 +73,46 @@ export function MyConfigsList({
72
73
  {myItemsError !== null && <Banner kind="error">{redact(myItemsError)}</Banner>}
73
74
  {listLoading && myItems === null && <SkeletonList label={t('myconfigs.list.loading')} />}
74
75
  {!listLoading && myItems !== null && myItems.length === 0 && <Empty>{t('myconfigs.list.empty')}</Empty>}
76
+ {/* 视觉稿 T-05:每行「名称+版本 / 动作」一行,徽章行在下方;行间 1px 分隔,列表限高内滚 */}
75
77
  {!listLoading && itemViews.length > 0 && (
76
- <div className={css.snapshotList}>
78
+ <div className={css.marketMyItemList}>
77
79
  {itemViews.map(({ entry, view, badge }) => (
78
- <div key={view.id} className={css.statRow} style={{ paddingTop: 4 }}>
79
- <div style={{ flex: 1, minWidth: 0 }}>
80
- <div className={css.conflictHead}>
80
+ <div key={view.id} className={css.marketMyItem}>
81
+ <div className={css.marketMyItemTop}>
82
+ <div className={css.marketMyItemTitle}>
81
83
  <span className={css.conflictId}>{view.name}</span>
82
84
  {view.version !== '' && <Badge kind="info">{view.version}</Badge>}
83
85
  </div>
84
- <div className={css.statRow}>
85
- <Badge kind={badge.kind}>{badge.text}</Badge>
86
- {view.stars !== undefined && (
87
- <Badge kind="info" title={t('list.starsHint')}>{t('list.stars', { count: String(view.stars) })}</Badge>
86
+ <div className={css.marketMyItemActions}>
87
+ <Button onClick={() => { onOpenUpdate(entry) }}>{t('myconfigs.item.update')}</Button>
88
+ <Button
89
+ disabled={install !== null && install.detail === null}
90
+ onClick={() => { onOpenInstall(entry) }}
91
+ >
92
+ {t('myconfigs.item.install')}
93
+ </Button>
94
+ {entry.repoUrl !== '' && <Button href={entry.repoUrl}>{t('myconfigs.list.openRepo')}</Button>}
95
+ {badge.kind === 'warn' && badge.prUrl !== undefined && badge.prUrl !== '' && (
96
+ <Button href={badge.prUrl}>{t('myconfigs.item.openPr')}</Button>
88
97
  )}
89
- {view.author !== '' && <Badge kind="info">{view.author}</Badge>}
90
- {view.updatedAt !== '' && <Badge kind="info">{view.updatedAt}</Badge>}
91
- {view.categories.map((c) => <Badge key={c} kind="info">{c}</Badge>)}
98
+ {/* 删除:danger 按钮 → 弹窗二次确认(ConfirmDialog;不可恢复,已收录自动提交下架 PR) */}
99
+ <Button
100
+ variant="danger"
101
+ disabled={deletingId !== null}
102
+ onClick={() => { onChangeDeleteConfirm(view.id) }}
103
+ >
104
+ {t('myconfigs.delete.run')}
105
+ </Button>
92
106
  </div>
93
107
  </div>
94
- <div className={css.rowActions}>
95
- <Button onClick={() => { onOpenUpdate(entry) }}>{t('myconfigs.item.update')}</Button>
96
- <Button
97
- disabled={install !== null && install.detail === null}
98
- onClick={() => { onOpenInstall(entry) }}
99
- >
100
- {t('myconfigs.item.install')}
101
- </Button>
102
- {entry.repoUrl !== '' && <Button href={entry.repoUrl}>{t('myconfigs.list.openRepo')}</Button>}
103
- {badge.kind === 'warn' && badge.prUrl !== undefined && badge.prUrl !== '' && (
104
- <Button href={badge.prUrl}>{t('myconfigs.item.openPr')}</Button>
108
+ <div className={css.marketMyItemMeta}>
109
+ <Badge kind={badge.kind}>{badge.text}</Badge>
110
+ {view.stars !== undefined && (
111
+ <Badge kind="info">{t('list.stars', { count: String(view.stars) })}</Badge>
105
112
  )}
106
- {/* 删除:danger 按钮 → 弹窗二次确认(ConfirmDialog;不可恢复,已收录自动提交下架 PR) */}
107
- <Button
108
- variant="danger"
109
- disabled={deletingId !== null}
110
- onClick={() => { onChangeDeleteConfirm(view.id) }}
111
- >
112
- {t('myconfigs.delete.run')}
113
- </Button>
113
+ {view.author !== '' && <Badge kind="info">{view.author}</Badge>}
114
+ {view.updatedAt !== '' && <Badge kind="info">{view.updatedAt}</Badge>}
115
+ {view.categories.map((c) => <Badge key={c} kind="info">{c}</Badge>)}
114
116
  </div>
115
117
  </div>
116
118
  ))}
@@ -11,7 +11,6 @@ import { computeGithubLoginView } from '../sync/sync-view.ts'
11
11
  import type { UiT } from '../../ui/i18n.ts'
12
12
  import type { MyGithubFlowState } from '../../ui/my-configs-view.ts'
13
13
  import { Badge, Banner, Button, Card } from '../common/ui.tsx'
14
- import { InfoHint } from '../common/InfoHint.tsx'
15
14
  import { Skeleton } from '../common/Skeleton.tsx'
16
15
  import type { LoginView } from './my-configs-view.ts'
17
16
  import css from '../config-manager.module.css'
@@ -39,7 +38,7 @@ export function MyConfigsLoginCard({ loginView, github, t, uiT, onStart, onCance
39
38
 
40
39
  /** 设备码 + 授权页链接展示(waiting/polling 时) */
41
40
  const renderDeviceCode = (): ReactNode => (
42
- <div className={css.statRow}>
41
+ <div className={css.marketLoginRow}>
43
42
  <Badge kind="info">{t('myconfigs.login.userCode', { code: githubView.userCode })}</Badge>
44
43
  <a className={css.ghostButton} href={githubView.verificationUri} target="_blank" rel="noreferrer" style={{ textDecoration: 'none' }}>
45
44
  {t('myconfigs.login.openAuth')}
@@ -49,18 +48,16 @@ export function MyConfigsLoginCard({ loginView, github, t, uiT, onStart, onCance
49
48
 
50
49
  if (loginView.kind === 'loading') {
51
50
  return (
52
- <Card>
53
- <div className={css.statRow}>
54
- <Skeleton count={2} label={t('myconfigs.login.checking')} />
55
- </div>
51
+ <Card className={css.marketLoginCard}>
52
+ <Skeleton count={2} label={t('myconfigs.login.checking')} />
56
53
  </Card>
57
54
  )
58
55
  }
59
56
  if (loginView.kind === 'logged-out' || loginView.kind === 'token-invalid') {
60
57
  return (
61
- <Card>
62
- <div className={css.actionRow}>
63
- <Button variant="primary" disabled={!githubView.canStart} onClick={() => { onStart() }}>
58
+ <Card className={css.marketLoginCard}>
59
+ <div className={css.marketLoginRow}>
60
+ <Button variant="primary" disabled={!githubView.canStart} onClick={() => { onStart() }} title={t('myconfigs.login.hint')}>
64
61
  {githubView.startLabel}
65
62
  </Button>
66
63
  {githubView.canCancel && (
@@ -69,10 +66,9 @@ export function MyConfigsLoginCard({ loginView, github, t, uiT, onStart, onCance
69
66
  </Button>
70
67
  )}
71
68
  </div>
72
- <InfoHint text={t('myconfigs.login.hint')} label={t('common.infoHint')} />
73
69
  {loginView.kind === 'token-invalid' && <Banner kind="warn">{t('myconfigs.error.loadStatus')}</Banner>}
74
70
  {githubView.showCode && renderDeviceCode()}
75
- <div className={css.statRow}>
71
+ <div className={css.marketLoginRow}>
76
72
  <Badge kind={githubView.phase === 'error' ? 'error' : 'warn'}>{githubView.statusText}</Badge>
77
73
  </div>
78
74
  {/* R-18:失败详情已由 failGithub() 走全局 Toast;此处保留状态行 Badge(持续状态展示,非回执) */}
@@ -81,14 +77,15 @@ export function MyConfigsLoginCard({ loginView, github, t, uiT, onStart, onCance
81
77
  }
82
78
  // logged-in:@login + 固定目标仓库(只读)+ 配置仓库状态
83
79
  return (
84
- <Card>
85
- <div className={css.actionRow}>
80
+ /* 视觉稿 T-05:三行徽章等距(gap 6、px16 py12),不再借用 actionRow/statRow 的行距 */
81
+ <Card className={css.marketLoginCard}>
82
+ <div className={css.marketLoginRow}>
86
83
  <Badge kind="ok">{t('myconfigs.login.loggedInAs', { login: loginView.login })}</Badge>
87
84
  </div>
88
- <div className={css.statRow}>
85
+ <div className={css.marketLoginRow}>
89
86
  <Badge kind="info">{t('myconfigs.login.targetRepo', { repo: targetRepo })}</Badge>
90
87
  </div>
91
- <div className={css.statRow}>
88
+ <div className={css.marketLoginRow}>
92
89
  {loginView.repoExists
93
90
  ? <Badge kind="ok">{t('myconfigs.login.repoReady', { repo: loginView.repoUrl })}</Badge>
94
91
  : <Badge kind="warn">{t('myconfigs.login.repoMissing')}</Badge>}