dsh-config-manager 0.8.2 → 0.10.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.
- package/lib/adapters/mcp.js +51 -15
- package/lib/adapters/messages.d.ts +1 -0
- package/lib/adapters/messages.js +2 -0
- package/lib/adapters/patch-key-guard.d.ts +23 -0
- package/lib/adapters/patch-key-guard.js +13 -0
- package/lib/adapters/plugin-data.d.ts +19 -5
- package/lib/adapters/plugin-data.js +76 -22
- package/lib/adapters/plugins.d.ts +14 -1
- package/lib/adapters/plugins.js +204 -6
- package/lib/adapters/prompts.js +15 -4
- package/lib/adapters/test-helpers.d.ts +15 -1
- package/lib/adapters/test-helpers.js +11 -0
- package/lib/cli/actions.d.ts +7 -105
- package/lib/cli/actions.js +16 -172
- package/lib/cli/control-state.d.ts +54 -0
- package/lib/cli/control-state.js +107 -0
- package/lib/cli/help.d.ts +1 -1
- package/lib/cli/help.js +21 -14
- package/lib/cli/index.js +132 -104
- package/lib/cli/sessions-repair.js +58 -22
- package/lib/cli/web/client-script.d.ts +1 -1
- package/lib/cli/web/client-script.js +71 -5
- package/lib/cli/web/page.d.ts +9 -19
- package/lib/cli/web/page.js +277 -173
- package/lib/cli/web/routes.js +85 -25
- package/lib/cli/write-gates.d.ts +61 -0
- package/lib/cli/write-gates.js +110 -0
- package/lib/client.d.ts +196 -75
- package/lib/client.js +8139 -7487
- package/lib/core/backup.d.ts +0 -4
- package/lib/core/backup.js +21 -4
- package/lib/core/boot-rescue.d.ts +1 -1
- package/lib/core/boot-rescue.js +12 -1
- package/lib/core/boot-safety.js +37 -2
- package/lib/core/conflict-decisions.js +2 -1
- package/lib/core/exporter.js +22 -1
- package/lib/core/journal.d.ts +54 -4
- package/lib/core/journal.js +158 -35
- package/lib/core/local-plugin-host.d.ts +29 -0
- package/lib/core/local-plugin-host.js +55 -48
- package/lib/core/messages.d.ts +17 -0
- package/lib/core/messages.js +34 -0
- package/lib/core/migration-history.js +16 -9
- package/lib/core/model-tools.d.ts +2 -2
- package/lib/core/model-tools.js +20 -2
- package/lib/core/patch-chain.d.ts +65 -0
- package/lib/core/patch-chain.js +100 -0
- package/lib/core/patch-document.d.ts +32 -4
- package/lib/core/patch-document.js +48 -17
- package/lib/core/patch-secret-guard.d.ts +49 -0
- package/lib/core/patch-secret-guard.js +164 -0
- package/lib/core/reconcile.d.ts +8 -0
- package/lib/core/reconcile.js +18 -3
- package/lib/core/reinstall.d.ts +2 -0
- package/lib/core/reinstall.js +6 -2
- package/lib/core/restore.js +31 -6
- package/lib/core/section-sanitize.d.ts +32 -0
- package/lib/core/section-sanitize.js +13 -0
- package/lib/core/snapshot-diff.d.ts +30 -0
- package/lib/core/snapshot-diff.js +56 -20
- package/lib/core/startup-barrier.js +8 -2
- package/lib/core/types.d.ts +38 -1
- package/lib/core/update-check.js +51 -2
- package/lib/foreign/kernel.js +9 -2
- package/lib/foreign/read-claude-plugins.js +29 -11
- package/lib/foreign/read-dsh.js +31 -2
- package/lib/foreign/session-ir.js +50 -9
- package/lib/foreign/session-read.d.ts +8 -0
- package/lib/foreign/session-read.js +26 -0
- package/lib/index.d.ts +9 -4
- package/lib/index.js +42 -47
- package/lib/profiles/dsh-profile-io.d.ts +20 -0
- package/lib/profiles/dsh-profile-io.js +27 -0
- package/lib/profiles/dsh-profile-manager.d.ts +27 -0
- package/lib/profiles/dsh-profile-manager.js +45 -4
- package/lib/profiles/dsh-profile-runtime.d.ts +5 -1
- package/lib/profiles/dsh-profile-runtime.js +16 -3
- package/lib/profiles/process-control.d.ts +18 -1
- package/lib/profiles/process-control.js +25 -1
- package/lib/routes/profiles.js +2 -1
- package/lib/routes/sync.js +19 -1
- package/lib/schema/types.d.ts +11 -0
- package/lib/security/redaction.js +22 -6
- package/lib/sync/autosync-repeat.d.ts +27 -0
- package/lib/sync/autosync-repeat.js +23 -0
- package/lib/sync/autosync-scheduler.d.ts +47 -2
- package/lib/sync/autosync-scheduler.js +217 -53
- package/lib/sync/baseline-heal.js +7 -0
- package/lib/sync/baseline-record.d.ts +67 -0
- package/lib/sync/baseline-record.js +74 -0
- package/lib/sync/blob-store.js +13 -0
- package/lib/sync/content-diff.d.ts +39 -0
- package/lib/sync/content-diff.js +46 -0
- package/lib/sync/git/git-transport.d.ts +32 -1
- package/lib/sync/git/git-transport.js +146 -26
- package/lib/sync/github-auth.d.ts +17 -1
- package/lib/sync/github-auth.js +37 -1
- package/lib/sync/local-changes.d.ts +15 -0
- package/lib/sync/local-changes.js +39 -0
- package/lib/sync/merge-apply-plan.d.ts +38 -0
- package/lib/sync/merge-apply-plan.js +76 -0
- package/lib/sync/merge-keyed.d.ts +68 -0
- package/lib/sync/merge-keyed.js +124 -0
- package/lib/sync/messages.d.ts +1 -0
- package/lib/sync/messages.js +2 -0
- package/lib/sync/patch-line-identity.d.ts +19 -0
- package/lib/sync/patch-line-identity.js +99 -0
- package/lib/sync/pending-merge.d.ts +41 -0
- package/lib/sync/pending-merge.js +61 -0
- package/lib/sync/plugin-removals.d.ts +15 -15
- package/lib/sync/plugin-removals.js +134 -83
- package/lib/sync/push-skip.d.ts +55 -0
- package/lib/sync/push-skip.js +70 -0
- package/lib/sync/s3/s3-transport.d.ts +14 -2
- package/lib/sync/s3/s3-transport.js +72 -48
- package/lib/sync/sync-engine.d.ts +44 -51
- package/lib/sync/sync-engine.js +160 -194
- package/lib/sync/sync-history.d.ts +7 -0
- package/lib/sync/sync-state.d.ts +28 -0
- package/lib/sync/sync-state.js +20 -0
- package/lib/sync/transport.d.ts +12 -3
- package/lib/sync/transport.js +13 -4
- package/lib/sync/webdav/webdav-transport.d.ts +19 -2
- package/lib/sync/webdav/webdav-transport.js +81 -40
- package/lib/sync/workspace-merge.d.ts +8 -2
- package/lib/ui/artifact-view.d.ts +1 -1
- package/lib/ui/commands.js +5 -11
- package/lib/ui/dsh-profiles-view.d.ts +8 -3
- package/lib/ui/dsh-profiles-view.js +9 -5
- package/lib/ui/foreign-view.d.ts +14 -0
- package/lib/ui/foreign-view.js +34 -0
- package/lib/ui/i18n.d.ts +7 -1
- package/lib/ui/i18n.js +15 -2
- package/lib/ui/menu-placement.js +1 -1
- package/lib/ui/migration-consult-view.d.ts +11 -0
- package/lib/ui/migration-consult-view.js +15 -0
- package/lib/ui/overview-view.d.ts +7 -0
- package/lib/ui/overview-view.js +3 -0
- package/lib/ui/report.d.ts +9 -0
- package/lib/ui/report.js +17 -4
- package/lib/ui/selection-model.d.ts +10 -2
- package/lib/ui/selection-model.js +23 -3
- package/lib/utils/async-once.d.ts +11 -0
- package/lib/utils/async-once.js +15 -0
- package/lib/utils/patch-chain-read.d.ts +51 -0
- package/lib/utils/patch-chain-read.js +240 -0
- package/lib/utils/patch-yaml.d.ts +39 -1
- package/lib/utils/patch-yaml.js +82 -2
- package/lib/utils/paths.d.ts +13 -0
- package/lib/utils/paths.js +35 -0
- package/lib/utils/workdir-lock.js +18 -3
- package/package.json +3 -2
- package/src/adapters/mcp.test.ts +29 -0
- package/src/adapters/mcp.ts +52 -14
- package/src/adapters/messages.ts +2 -0
- package/src/adapters/patch-key-guard.ts +29 -0
- package/src/adapters/plugin-data.test.ts +126 -0
- package/src/adapters/plugin-data.ts +97 -26
- package/src/adapters/plugins.test.ts +403 -0
- package/src/adapters/plugins.ts +198 -8
- package/src/adapters/prompts.ts +15 -4
- package/src/adapters/test-helpers.ts +15 -1
- package/src/cli/actions.test.ts +74 -1
- package/src/cli/actions.ts +27 -246
- package/src/cli/control-state.ts +143 -0
- package/src/cli/help.ts +21 -14
- package/src/cli/index.ts +123 -107
- package/src/cli/sessions-repair.ts +55 -22
- package/src/cli/web/client-script.ts +71 -5
- package/src/cli/web/page.ts +327 -208
- package/src/cli/web/routes.ts +85 -25
- package/src/cli/web/web.test.ts +65 -0
- package/src/cli/write-gates.ts +149 -0
- package/src/client/ConfigManagerSection.tsx +8 -4
- package/src/client/about/AboutPanel.tsx +9 -12
- package/src/client/about/release-notes-view.test.ts +17 -0
- package/src/client/about/release-notes-view.ts +49 -24
- package/src/client/api.ts +2 -1
- package/src/client/chat/ChatEntryView.tsx +2 -2
- package/src/client/chat/rollback-entry-view.ts +6 -1
- package/src/client/common/CommandPalette.tsx +6 -3
- package/src/client/common/ConfirmDialog.tsx +29 -12
- package/src/client/common/ContentPicker.tsx +24 -24
- package/src/client/common/Modal.tsx +12 -5
- package/src/client/common/MoreMenu.tsx +4 -1
- package/src/client/common/RunsCenter.tsx +103 -32
- package/src/client/common/Select.tsx +2 -2
- package/src/client/common/floating-bounds.ts +1 -1
- package/src/client/common/floating-units.test.ts +1 -2
- package/src/client/common/plan-text-redaction.test.ts +190 -5
- package/src/client/common/runs-center-guard.test.ts +60 -0
- package/src/client/common/runs-center-view.test.ts +128 -0
- package/src/client/common/runs-center-view.ts +96 -0
- package/src/client/common/section-title-action.test.ts +66 -0
- package/src/client/common/ui.tsx +93 -30
- package/src/client/config-manager.module.css +1515 -270
- package/src/client/consult/ConsultCard.tsx +7 -6
- package/src/client/environment/EnvironmentPanel.tsx +22 -25
- package/src/client/environment/maintenance/DiskUsageCard.tsx +69 -96
- package/src/client/environment/profiles-incomplete-ui.test.ts +8 -8
- package/src/client/export/ExportView.tsx +7 -16
- package/src/client/history/HistoryPanel.tsx +88 -28
- package/src/client/history/history-locales.ts +3 -3
- package/src/client/home/BackupScheduleCard.tsx +77 -69
- package/src/client/home/HomePanel.tsx +47 -12
- package/src/client/import/ConflictList.tsx +13 -13
- package/src/client/import/ForeignImportView.tsx +67 -9
- package/src/client/import/ImportWizardView.tsx +4 -4
- package/src/client/import/PathMappingForm.tsx +36 -9
- package/src/client/import/PathPickerDialog.tsx +2 -1
- package/src/client/import/import-wizard-split.test.ts +1 -1
- package/src/client/import/import-wizard-steps.tsx +51 -39
- package/src/client/import/use-import-wizard-controller.test.ts +129 -0
- package/src/client/import/use-import-wizard-controller.ts +116 -22
- package/src/client/library/ArtifactRow.tsx +2 -2
- package/src/client/library/BackupInspectView.tsx +21 -15
- package/src/client/library/LibraryActions.tsx +116 -28
- package/src/client/library/LibraryPanel.tsx +14 -15
- package/src/client/library/RestorePlanView.tsx +13 -8
- package/src/client/locales/about.ts +0 -2
- package/src/client/locales/backup.ts +15 -12
- package/src/client/locales/common.ts +2 -0
- package/src/client/locales/export.ts +5 -12
- package/src/client/locales/foreign.ts +4 -2
- package/src/client/locales/import.ts +5 -2
- package/src/client/locales/overview.ts +4 -0
- package/src/client/locales/profiles.ts +32 -4
- package/src/client/locales/restore.ts +2 -2
- package/src/client/locales/sessions.ts +0 -2
- package/src/client/locales/shell.ts +2 -2
- package/src/client/market/MarketImportReview.tsx +4 -4
- package/src/client/market/MarketPanel.tsx +58 -56
- package/src/client/market/MyConfigsList.tsx +34 -32
- package/src/client/market/MyConfigsLoginCard.tsx +12 -15
- package/src/client/market/MyConfigsView.tsx +8 -15
- package/src/client/market/MyConfigsWizard.tsx +7 -12
- package/src/client/market/market-locales.ts +0 -6
- package/src/client/market/my-configs-split.test.ts +2 -1
- package/src/client/nav-menu-clip-guard.test.ts +52 -0
- package/src/client/recovery/IncompleteCopiesSection.tsx +1 -3
- package/src/client/recovery/RecoveryPanel.tsx +35 -22
- package/src/client/recovery/RollbackCard.tsx +132 -75
- package/src/client/recovery/RollbackFileChanges.tsx +40 -27
- package/src/client/recovery/SessionHealthCard.tsx +2 -2
- package/src/client/recovery/SessionHealthDialog.tsx +5 -7
- package/src/client/recovery/SessionLayoutSection.tsx +3 -5
- package/src/client/recovery/recovery-locales.ts +12 -8
- package/src/client/recovery/rollback-enabled.ts +29 -0
- package/src/client/recovery/use-recovery-write.ts +5 -0
- package/src/client/run-store.test.ts +30 -0
- package/src/client/run-store.ts +21 -1
- package/src/client/sync/AddChannelCard.tsx +65 -0
- package/src/client/sync/AutosyncCard.tsx +184 -108
- package/src/client/sync/ChannelClearConfirmDialog.tsx +5 -1
- package/src/client/sync/ChannelConfigDialog.tsx +27 -48
- package/src/client/sync/MergePreviewView.tsx +5 -7
- package/src/client/sync/PushPreviewCard.tsx +2 -1
- package/src/client/sync/PushReportSections.tsx +35 -0
- package/src/client/sync/SyncChannelEntryCard.tsx +33 -24
- package/src/client/sync/SyncConfirmView.tsx +130 -133
- package/src/client/sync/SyncLogList.tsx +29 -14
- package/src/client/sync/SyncPanel.tsx +188 -185
- package/src/client/sync/SyncProbeRow.tsx +5 -7
- package/src/client/sync/SyncRepositoryPicker.tsx +17 -4
- package/src/client/sync/SyncSecuritySection.tsx +157 -0
- package/src/client/sync/SyncSettingsDialog.tsx +293 -0
- package/src/client/sync/SyncSettingsView.test.ts +26 -8
- package/src/client/sync/WorkDirCard.tsx +2 -4
- package/src/client/sync/config-clear-guard.test.ts +94 -0
- package/src/client/sync/config-clear-guard.ts +98 -0
- package/src/client/sync/config-dirty.test.ts +91 -0
- package/src/client/sync/config-dirty.ts +88 -0
- package/src/client/sync/history-model.test.ts +2 -0
- package/src/client/sync/history-model.ts +5 -0
- package/src/client/sync/merge-request.ts +20 -0
- package/src/client/sync/sync-api.ts +13 -1
- package/src/client/sync/sync-locales.ts +95 -47
- package/src/client/sync/sync-panel-clear.test.ts +44 -0
- package/src/client/sync/sync-push-preview.test.ts +9 -0
- package/src/client/sync/sync-view.test.ts +20 -0
- package/src/client/sync/sync-view.ts +76 -4
- package/src/core/backup.test.ts +61 -1
- package/src/core/backup.ts +21 -4
- package/src/core/boot-rescue.test.ts +35 -0
- package/src/core/boot-rescue.ts +13 -2
- package/src/core/boot-safety.test.ts +25 -0
- package/src/core/boot-safety.ts +37 -2
- package/src/core/conflict-decisions.ts +2 -1
- package/src/core/exporter.ts +21 -1
- package/src/core/journal.test.ts +183 -0
- package/src/core/journal.ts +163 -25
- package/src/core/local-plugin-host.test.ts +68 -2
- package/src/core/local-plugin-host.ts +31 -4
- package/src/core/messages.ts +34 -0
- package/src/core/migration-history.test.ts +27 -0
- package/src/core/migration-history.ts +12 -4
- package/src/core/model-tools.test.ts +67 -0
- package/src/core/model-tools.ts +22 -4
- package/src/core/patch-chain.test.ts +83 -0
- package/src/core/patch-chain.ts +150 -0
- package/src/core/patch-document.test.ts +48 -1
- package/src/core/patch-document.ts +66 -15
- package/src/core/patch-layers.test.ts +1 -1
- package/src/core/patch-secret-guard.test.ts +110 -0
- package/src/core/patch-secret-guard.ts +176 -0
- package/src/core/reconcile.ts +32 -4
- package/src/core/reinstall.ts +8 -2
- package/src/core/restore.ts +32 -7
- package/src/core/section-sanitize.ts +37 -0
- package/src/core/smoke.test.ts +2 -1
- package/src/core/snapshot-diff.test.ts +73 -1
- package/src/core/snapshot-diff.ts +66 -21
- package/src/core/startup-barrier.test.ts +64 -0
- package/src/core/startup-barrier.ts +8 -2
- package/src/core/types.ts +43 -2
- package/src/core/update-check.test.ts +40 -0
- package/src/core/update-check.ts +53 -2
- package/src/foreign/claude-code.test.ts +5 -0
- package/src/foreign/claude-plugins.test.ts +57 -0
- package/src/foreign/claude-sessions-bytes.test.ts +7 -1
- package/src/foreign/dsh.test.ts +23 -0
- package/src/foreign/kernel.ts +9 -2
- package/src/foreign/read-claude-plugins.ts +32 -11
- package/src/foreign/read-dsh.ts +33 -2
- package/src/foreign/session-ir.test.ts +67 -0
- package/src/foreign/session-ir.ts +54 -14
- package/src/foreign/session-read.ts +23 -0
- package/src/index.facade.test.ts +186 -6
- package/src/index.ts +53 -47
- package/src/profiles/dsh-profile-copy-rollback.test.ts +58 -4
- package/src/profiles/dsh-profile-io.ts +29 -0
- package/src/profiles/dsh-profile-manager.test.ts +30 -0
- package/src/profiles/dsh-profile-manager.ts +53 -5
- package/src/profiles/dsh-profile-runtime.test.ts +29 -7
- package/src/profiles/dsh-profile-runtime.ts +17 -3
- package/src/profiles/process-control.test.ts +97 -0
- package/src/profiles/process-control.ts +28 -1
- package/src/routes/profiles.ts +2 -1
- package/src/routes/sync.ts +19 -1
- package/src/schema/types.ts +16 -1
- package/src/security/redaction.test.ts +31 -0
- package/src/security/redaction.ts +23 -6
- package/src/security/security.test.ts +1 -1
- package/src/sync/autosync-repeat.test.ts +58 -0
- package/src/sync/autosync-repeat.ts +55 -0
- package/src/sync/autosync-scheduler.test.ts +515 -0
- package/src/sync/autosync-scheduler.ts +225 -51
- package/src/sync/baseline-heal.ts +6 -0
- package/src/sync/baseline-record.ts +135 -0
- package/src/sync/blob-store.test.ts +16 -0
- package/src/sync/blob-store.ts +13 -0
- package/src/sync/content-diff.test.ts +95 -0
- package/src/sync/content-diff.ts +79 -0
- package/src/sync/git/git-transport.test.ts +151 -4
- package/src/sync/git/git-transport.ts +143 -27
- package/src/sync/github-auth.test.ts +26 -1
- package/src/sync/github-auth.ts +37 -1
- package/src/sync/local-changes.ts +40 -0
- package/src/sync/merge-apply-plan.ts +117 -0
- package/src/sync/merge-keyed.test.ts +167 -0
- package/src/sync/merge-keyed.ts +160 -0
- package/src/sync/messages.ts +3 -0
- package/src/sync/patch-line-identity.test.ts +73 -0
- package/src/sync/patch-line-identity.ts +105 -0
- package/src/sync/pending-merge.test.ts +41 -0
- package/src/sync/pending-merge.ts +85 -0
- package/src/sync/plugin-removals.test.ts +199 -39
- package/src/sync/plugin-removals.ts +150 -64
- package/src/sync/push-skip.test.ts +326 -0
- package/src/sync/push-skip.ts +102 -0
- package/src/sync/s3/s3-delete-and-blob-index.test.ts +249 -0
- package/src/sync/s3/s3-transport.ts +76 -42
- package/src/sync/sync-config.test.ts +39 -12
- package/src/sync/sync-device-identity.test.ts +3 -0
- package/src/sync/sync-engine.test.ts +465 -12
- package/src/sync/sync-engine.ts +189 -193
- package/src/sync/sync-history.ts +7 -0
- package/src/sync/sync-state.ts +48 -0
- package/src/sync/transport.test.ts +13 -1
- package/src/sync/transport.ts +12 -4
- package/src/sync/webdav/webdav-delete-and-blob-index.test.ts +249 -0
- package/src/sync/webdav/webdav-transport.ts +86 -34
- package/src/sync/workspace-merge.ts +9 -2
- package/src/ui/artifact-view.ts +1 -1
- package/src/ui/commands.test.ts +11 -0
- package/src/ui/commands.ts +5 -14
- package/src/ui/dsh-profiles-view.test.ts +16 -0
- package/src/ui/dsh-profiles-view.ts +11 -5
- package/src/ui/foreign-view.test.ts +49 -0
- package/src/ui/foreign-view.ts +47 -0
- package/src/ui/i18n.ts +15 -2
- package/src/ui/menu-placement.ts +1 -1
- package/src/ui/migration-consult-view.test.ts +20 -1
- package/src/ui/migration-consult-view.ts +17 -0
- package/src/ui/overview-view.ts +10 -0
- package/src/ui/report.test.ts +25 -1
- package/src/ui/report.ts +15 -4
- package/src/ui/selection-model.test.ts +29 -1
- package/src/ui/selection-model.ts +25 -4
- package/src/utils/async-once.ts +14 -0
- package/src/utils/js-yaml4.d.ts +35 -0
- package/src/utils/patch-chain-read.test.ts +171 -0
- package/src/utils/patch-chain-read.ts +259 -0
- package/src/utils/patch-yaml.test.ts +215 -3
- package/src/utils/patch-yaml.ts +98 -2
- package/src/utils/paths.test.ts +14 -1
- package/src/utils/paths.ts +35 -0
- package/src/utils/workdir-lock.test.ts +69 -0
- package/src/utils/workdir-lock.ts +17 -3
- package/lib/ui/path-mapping.d.ts +0 -38
- package/lib/ui/path-mapping.js +0 -75
- package/src/client/common/InfoHint.tsx +0 -289
- package/src/client/common/info-hint-guard.test.ts +0 -1119
- package/src/client/sync/DecryptPasswordCard.tsx +0 -48
- package/src/client/sync/SecurityOptionsCard.tsx +0 -97
- package/src/client/sync/SyncSectionPickerDialog.tsx +0 -213
- package/src/ui/path-mapping.test.ts +0 -67
- package/src/ui/path-mapping.ts +0 -103
|
@@ -176,12 +176,14 @@ export function RestorePlanView({ api, t, snapshotId, plan, changeSummary }: Res
|
|
|
176
176
|
return (
|
|
177
177
|
<div className={css.restorePlan}>
|
|
178
178
|
<div className={css.statRow}>
|
|
179
|
-
{
|
|
180
|
-
|
|
181
|
-
{stats.
|
|
182
|
-
{stats.
|
|
183
|
-
{stats.
|
|
184
|
-
{stats.
|
|
179
|
+
{/* 摘要徽章:稿上是 4px 方角 + 同色细描边。只叠屏私有修饰类(.restorePlanStatBadge),
|
|
180
|
+
.badge 本体的药丸形态是全站基线,不在这里改。 */}
|
|
181
|
+
{stats.changed > 0 && <Badge kind="info" className={css.restorePlanStatBadge}>{t('snapshots.plan.changed', { count: String(stats.changed) })}</Badge>}
|
|
182
|
+
{stats.added > 0 && <Badge kind="ok" className={css.restorePlanStatBadge}>{t('snapshots.plan.added', { count: String(stats.added) })}</Badge>}
|
|
183
|
+
{stats.deleted > 0 && <Badge kind="error" className={css.restorePlanStatBadge}>{t('snapshots.plan.deleted', { count: String(stats.deleted) })}</Badge>}
|
|
184
|
+
{stats.plugins > 0 && <Badge kind="warn" className={css.restorePlanStatBadge}>{t('snapshots.plan.plugins', { count: String(stats.plugins) })}</Badge>}
|
|
185
|
+
{stats.hints > 0 && <Badge kind="warn" className={css.restorePlanStatBadge}>{t('snapshots.plan.hints', { count: String(stats.hints) })}</Badge>}
|
|
186
|
+
{stats.skips > 0 && <Badge kind="info" className={css.restorePlanStatBadge}>{t('snapshots.plan.skips', { count: String(stats.skips) })}</Badge>}
|
|
185
187
|
{(stats.addedLines > 0 || stats.removedLines > 0) && (
|
|
186
188
|
<span className={css.diffStatTotal}>
|
|
187
189
|
<span className={css.diffStatAdd}>+{stats.addedLines}</span>
|
|
@@ -206,7 +208,9 @@ export function RestorePlanView({ api, t, snapshotId, plan, changeSummary }: Res
|
|
|
206
208
|
}
|
|
207
209
|
})()
|
|
208
210
|
return (
|
|
209
|
-
|
|
211
|
+
// 分组卡片化:每组一张描边卡(.restorePlanCard 私有),30px 组头由 .restorePlanGroupHead 提供;
|
|
212
|
+
// 不用 :has 修圆角 —— 组头背景直接铺到卡片顶边,overflow: hidden 负责裁切。
|
|
213
|
+
<div key={group.key} className={css.restorePlanCard}>
|
|
210
214
|
<div className={css.restorePlanGroupHead}>
|
|
211
215
|
{collapsible ? (
|
|
212
216
|
<button type="button" className={css.diffGroupToggle} aria-expanded={skipsOpen} onClick={() => { setSkipsOpen(!skipsOpen) }}>
|
|
@@ -216,7 +220,8 @@ export function RestorePlanView({ api, t, snapshotId, plan, changeSummary }: Res
|
|
|
216
220
|
) : (
|
|
217
221
|
<span className={css.groupLabel}>{t(groupLabelKey)}</span>
|
|
218
222
|
)}
|
|
219
|
-
|
|
223
|
+
{/* 组头计数是「分类」不是「状态」:用中性 Chip(与跳过行的灰片同语义),不再借 info 蓝 */}
|
|
224
|
+
<Chip>{String(group.rows.length)}</Chip>
|
|
220
225
|
{group.counted > 0 && (
|
|
221
226
|
<span className={css.diffStatTotal}>
|
|
222
227
|
<span className={css.diffStatAdd}>+{group.added}</span>
|
|
@@ -21,7 +21,6 @@ export const zh = {
|
|
|
21
21
|
'about.repo': 'GitHub 仓库',
|
|
22
22
|
'about.docs': '使用文档',
|
|
23
23
|
'about.issues': '反馈问题',
|
|
24
|
-
'about.feedbackHint': '遇到界面问题?复制环境信息,粘进 issue 就行',
|
|
25
24
|
'about.copyEnv': '复制环境信息',
|
|
26
25
|
'about.authorLabel': '作者',
|
|
27
26
|
'about.loading': '正在获取版本信息…',
|
|
@@ -69,7 +68,6 @@ export const en: Record<keyof typeof zh, string> = {
|
|
|
69
68
|
'about.repo': 'GitHub Repository',
|
|
70
69
|
'about.docs': 'Documentation',
|
|
71
70
|
'about.issues': 'Report an issue',
|
|
72
|
-
'about.feedbackHint': 'Hit a UI problem? Copy the environment info and paste it into your issue.',
|
|
73
71
|
'about.copyEnv': 'Copy environment info',
|
|
74
72
|
'about.authorLabel': 'Author',
|
|
75
73
|
'about.loading': 'Loading version info…',
|
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
export const zh = {
|
|
9
9
|
// —— 定时全量备份(快照 tab)——
|
|
10
10
|
'backupSchedule.title': '定时全量备份',
|
|
11
|
-
'backupSchedule.hint': '
|
|
11
|
+
'backupSchedule.hint': '恒不含 secret、不加密;要加密的备份请手动导出。',
|
|
12
12
|
'backupSchedule.enabled': '启用定时备份',
|
|
13
|
-
'backupSchedule.enabledHint': '
|
|
13
|
+
'backupSchedule.enabledHint': '每次启动先跑一次(距上次运行不足 1 小时则跳过)。',
|
|
14
14
|
'backupSchedule.interval': '备份间隔',
|
|
15
15
|
'backupSchedule.interval.6h': '每 6 小时',
|
|
16
16
|
'backupSchedule.interval.12h': '每 12 小时',
|
|
17
17
|
'backupSchedule.interval.24h': '每 24 小时',
|
|
18
18
|
'backupSchedule.interval.7d': '每 7 天',
|
|
19
19
|
'backupSchedule.interval.custom': '自定义(每周固定时刻)',
|
|
20
|
-
'backupSchedule.customHint': '
|
|
20
|
+
'backupSchedule.customHint': '错过的时间点不补跑。',
|
|
21
21
|
// 自定义档三个下拉的无障碍名(无可见 label:它们与「启用定时备份」复选框同排)
|
|
22
22
|
'backupSchedule.weekday': '星期',
|
|
23
23
|
'backupSchedule.hour': '小时',
|
|
@@ -42,7 +42,9 @@ export const zh = {
|
|
|
42
42
|
'backupSchedule.error': '定时备份设置加载失败',
|
|
43
43
|
// —— 保留策略(m-retention:GFS 分层)——
|
|
44
44
|
'retention.title': '保留策略',
|
|
45
|
-
|
|
45
|
+
// issue #143:标题本身说出覆盖面(快照 + 定时备份),豁免细则仍只在 retention.hint 的悬停里
|
|
46
|
+
'retention.titleScoped': '保留策略(快照 + 定时备份)',
|
|
47
|
+
'retention.hint': '快照与定时备份共用;置顶快照与未收敛的恢复点恒豁免自动清理。',
|
|
46
48
|
'retention.keepLast': '最近保留',
|
|
47
49
|
'retention.keepLastHint': '按时间保留最近 N 份;0 = 不按「最近」保留',
|
|
48
50
|
'retention.keepMonthly': '每月保留',
|
|
@@ -53,8 +55,9 @@ export const zh = {
|
|
|
53
55
|
'retention.months': '个月',
|
|
54
56
|
'retention.years': '年',
|
|
55
57
|
'retention.tiersOff': '仅保留最近 N 份',
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
// 已停用(issue #143):这句写死了旧默认值 10,且此前挂在产物库「导出」按钮上,与导出无关。
|
|
59
|
+
// 键因 engine-locale 冻结基线(372 键)不得删除,但没有消费点;保留策略的覆盖面由 retention.titleScoped 承担。
|
|
60
|
+
'backupFiles.hint': '定时备份自动保留最近 10 个,更早的会被删除。',
|
|
58
61
|
'backupFiles.empty': '暂无备份文件',
|
|
59
62
|
'backupFiles.delete': '删除',
|
|
60
63
|
'backupFiles.deleteConfirmTitle': '删除备份文件',
|
|
@@ -76,16 +79,16 @@ export const zh = {
|
|
|
76
79
|
export const en: Record<keyof typeof zh, string> = {
|
|
77
80
|
// —— Scheduled full backups (snapshots tab) ——
|
|
78
81
|
'backupSchedule.title': 'Scheduled Full Backups',
|
|
79
|
-
'backupSchedule.hint': '
|
|
82
|
+
'backupSchedule.hint': 'Never includes secrets and is never encrypted; use manual export when you need encryption.',
|
|
80
83
|
'backupSchedule.enabled': 'Enable scheduled backups',
|
|
81
|
-
'backupSchedule.enabledHint': '
|
|
84
|
+
'backupSchedule.enabledHint': 'Fires once on every startup (skipped if under 1h since the last run).',
|
|
82
85
|
'backupSchedule.interval': 'Backup interval',
|
|
83
86
|
'backupSchedule.interval.6h': 'Every 6 hours',
|
|
84
87
|
'backupSchedule.interval.12h': 'Every 12 hours',
|
|
85
88
|
'backupSchedule.interval.24h': 'Every 24 hours',
|
|
86
89
|
'backupSchedule.interval.7d': 'Every 7 days',
|
|
87
90
|
'backupSchedule.interval.custom': 'Custom (weekly at a fixed time)',
|
|
88
|
-
'backupSchedule.customHint': '
|
|
91
|
+
'backupSchedule.customHint': 'Missed triggers are not backfilled.',
|
|
89
92
|
'backupSchedule.weekday': 'Weekday',
|
|
90
93
|
'backupSchedule.hour': 'Hour',
|
|
91
94
|
'backupSchedule.minute': 'Minute',
|
|
@@ -109,7 +112,8 @@ export const en: Record<keyof typeof zh, string> = {
|
|
|
109
112
|
'backupSchedule.error': 'Failed to load scheduled backup settings',
|
|
110
113
|
// —— Retention policy (m-retention: GFS tiers) ——
|
|
111
114
|
'retention.title': 'Retention policy',
|
|
112
|
-
'retention.
|
|
115
|
+
'retention.titleScoped': 'Retention policy (snapshots + backups)',
|
|
116
|
+
'retention.hint': 'Shared by snapshots and scheduled backups; pinned snapshots and unsettled recovery points are always exempt.',
|
|
113
117
|
'retention.keepLast': 'Keep last',
|
|
114
118
|
'retention.keepLastHint': 'Keep the newest N by time; 0 disables the "recent" tier',
|
|
115
119
|
'retention.keepMonthly': 'Keep monthly',
|
|
@@ -120,8 +124,7 @@ export const en: Record<keyof typeof zh, string> = {
|
|
|
120
124
|
'retention.months': 'months',
|
|
121
125
|
'retention.years': 'years',
|
|
122
126
|
'retention.tiersOff': 'Newest N copies only',
|
|
123
|
-
'
|
|
124
|
-
'backupFiles.hint': 'All export artifacts (manual exports and scheduled backups) are managed here: download to your machine, import to restore, or delete. Scheduled backups auto-keep the latest 10.',
|
|
127
|
+
'backupFiles.hint': 'Scheduled backups auto-keep the latest 10; older ones are deleted.',
|
|
125
128
|
'backupFiles.empty': 'No backup files yet',
|
|
126
129
|
'backupFiles.delete': 'Delete',
|
|
127
130
|
'backupFiles.deleteConfirmTitle': 'Delete backup file',
|
|
@@ -34,6 +34,7 @@ export const zh = {
|
|
|
34
34
|
// 更新内容拉取失败(GitHub API):错误对象里也必须是当前语言
|
|
35
35
|
'about.releaseNotes.rateLimited': 'GitHub API 速率限制(Rate limit exceeded),请稍后再试或直接在 GitHub 上查看。',
|
|
36
36
|
'about.releaseNotes.fetchFailed': 'GitHub API 请求失败 ({status} {statusText})',
|
|
37
|
+
'about.releaseNotes.timeout': 'GitHub API 请求超时({seconds} 秒无响应),请检查网络或代理后重试。',
|
|
37
38
|
'about.snippet.plugin': '- 插件版本 / Plugin: {version}',
|
|
38
39
|
'about.snippet.dsh': '- DSH 版本 / DSH: {version}',
|
|
39
40
|
'about.snippet.platform': '- 平台 / Platform: {platform}',
|
|
@@ -88,6 +89,7 @@ export const en: Record<keyof typeof zh, string> = {
|
|
|
88
89
|
'about.snippet.environment': '### Environment',
|
|
89
90
|
'about.releaseNotes.rateLimited': 'GitHub API rate limit exceeded — please try again later, or view the release notes directly on GitHub.',
|
|
90
91
|
'about.releaseNotes.fetchFailed': 'GitHub API request failed ({status} {statusText})',
|
|
92
|
+
'about.releaseNotes.timeout': 'GitHub API request timed out after {seconds}s — check your network or proxy and try again.',
|
|
91
93
|
'about.snippet.plugin': '- Plugin version: {version}',
|
|
92
94
|
'about.snippet.dsh': '- DSH version: {version}',
|
|
93
95
|
'about.snippet.platform': '- Platform: {platform}',
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export const zh = {
|
|
9
9
|
// —— 导出 ——
|
|
10
|
-
'export.hint': '默认导出推荐分区(可迁移、不含设备专属数据)。',
|
|
11
10
|
'export.encrypt': '加密备份',
|
|
12
11
|
'export.encryptHint': '用密码加密整个备份文件(AES-256-GCM)。密码仅用于本次加密,不会写入备份或任何配置文件;导入时必须输入该密码才能解锁。',
|
|
13
12
|
'export.password': '备份加密密码',
|
|
@@ -25,9 +24,7 @@ export const zh = {
|
|
|
25
24
|
'export.fileNameInvalid': '文件名不合法:仅允许字母数字、空格、- _ .,不能包含路径分隔符。',
|
|
26
25
|
'export.note': '备注',
|
|
27
26
|
'export.notePlaceholder': '例如:迁移前的完整备份 / 2026-08 存档',
|
|
28
|
-
'export.noteHint': '备注保存在本机备份列表中(随配置备份迁移),便于区分多个导出产物。',
|
|
29
27
|
'export.compositionTitle': '本次将导出',
|
|
30
|
-
'export.compositionHint': '按当前勾选估算(只读预览,零写入)',
|
|
31
28
|
'export.compositionPartial': '将导出 {sections} 个分区 · 已读取 {units} 个条目 · 约 {size}(含未读取分区,实际不少于该值)',
|
|
32
29
|
'export.compositionEmpty': '没有勾选任何可导出的内容',
|
|
33
30
|
// —— 内容选择器(Phase 1 条目级导出选择)——
|
|
@@ -50,7 +47,6 @@ export const zh = {
|
|
|
50
47
|
'picker.loadingItems': '正在读取条目…',
|
|
51
48
|
'picker.loadingSection': '读取中…',
|
|
52
49
|
'picker.empty': '没有匹配的分区或条目',
|
|
53
|
-
'picker.sessionWorkspaceLinked': '会话与工作区联动勾选:勾上会话会自动勾上它所属的工作区;取消工作区会取消它的会话',
|
|
54
50
|
'picker.unitsUnavailable': '部分分区的条目清单读取失败,这些分区将整体导出。',
|
|
55
51
|
'picker.sectionLoadFailed': '读取失败 · 将整体导出',
|
|
56
52
|
'picker.deviceSpecific': '设备相关',
|
|
@@ -66,8 +62,7 @@ export const zh = {
|
|
|
66
62
|
'picker.pluginAreaAbsent': '无内容',
|
|
67
63
|
'picker.bucketPlugins': '插件分区的其他条目(补丁行 / pnpm-workspace.yaml)',
|
|
68
64
|
'picker.bucketLooseFiles': '未归属到插件的配置(~/.dsh 根)',
|
|
69
|
-
'picker.
|
|
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.
|
|
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': '来源已变化:上一次的产包结果作废,请重新「开始导入」。',
|
|
@@ -102,6 +102,7 @@ export const zh = {
|
|
|
102
102
|
'foreign.skip.trae-db-schema-mismatch': 'Trae 加密会话库解密成功但表结构不符(缺 chat_session / history_v2 或必需列):不猜字段,本次未读出任何会话',
|
|
103
103
|
// 冲突语义(用户决策:同 id 不覆盖、跳过并报码)
|
|
104
104
|
'foreign.conflict.policy': '同 id 冲突不覆盖本机内容:跳过并逐条报告',
|
|
105
|
+
'foreign.copyAgentPrompt': '复制转换提示词',
|
|
105
106
|
} as const;
|
|
106
107
|
|
|
107
108
|
export const en: Record<keyof typeof zh, string> = {
|
|
@@ -147,7 +148,7 @@ export const en: Record<keyof typeof zh, string> = {
|
|
|
147
148
|
'foreign.importFailed': 'Import failed: {reason}',
|
|
148
149
|
'foreign.previewTitle': 'What will be imported',
|
|
149
150
|
'foreign.previewSections': 'Sections included: {sections}',
|
|
150
|
-
'foreign.previewDryRun': 'Read-only preview
|
|
151
|
+
'foreign.previewDryRun': 'Read-only preview · zero writes',
|
|
151
152
|
'foreign.previewReset': 'The source changed: the last preview was discarded — start the import again.',
|
|
152
153
|
'foreign.lossy.title': 'Known lossy behaviour',
|
|
153
154
|
'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.',
|
|
@@ -190,4 +191,5 @@ export const en: Record<keyof typeof zh, string> = {
|
|
|
190
191
|
'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
192
|
'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',
|
|
192
193
|
'foreign.conflict.policy': 'Same-id conflicts never overwrite local content: skipped and listed in the report',
|
|
194
|
+
'foreign.copyAgentPrompt': 'Copy conversion prompt',
|
|
193
195
|
};
|
|
@@ -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': '稍后决定',
|
|
@@ -86,6 +87,7 @@ export const zh = {
|
|
|
86
87
|
'import.paths.kind.homeMismatch': '基础路径不同',
|
|
87
88
|
'import.paths.unresolved': '还有 {count} 条路径未映射(留空将跳过该路径,可以继续)',
|
|
88
89
|
'import.paths.empty': '无需映射路径',
|
|
90
|
+
'import.paths.applySuggested': '填入建议路径',
|
|
89
91
|
// 「选择本机路径」弹窗(第③项):浏览器拿不到本机真实路径,目录列举走宿主只读端点
|
|
90
92
|
'import.paths.browse': '选择本机路径',
|
|
91
93
|
'import.paths.picker.title': '选择本机路径',
|
|
@@ -117,6 +119,7 @@ export const en: Record<keyof typeof zh, string> = {
|
|
|
117
119
|
'import.select.file': 'Selected: {name}',
|
|
118
120
|
'import.compatibility.title': 'Compatibility',
|
|
119
121
|
'import.compatibility.score': 'Compatibility score: {score}',
|
|
122
|
+
'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
123
|
'import.preview.title': 'Import Preview',
|
|
121
124
|
'import.preview.willChange': '{count} {count, plural, item|items} will change',
|
|
122
125
|
'import.preview.unchanged': '{count} {count, plural, item|items} already identical (skipped)',
|
|
@@ -157,7 +160,6 @@ export const en: Record<keyof typeof zh, string> = {
|
|
|
157
160
|
'import.decryptArchive.unlock': 'Unlock & Continue',
|
|
158
161
|
'import.decrypt.previewHint': 'Encrypted backup: credentials are restored automatically by the unlock password — no further password prompt.',
|
|
159
162
|
'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
163
|
'import.conflicts.keepCurrent': 'Keep current',
|
|
162
164
|
'import.conflicts.useImported': 'Use backup',
|
|
163
165
|
'import.conflicts.review': 'Decide later',
|
|
@@ -177,6 +179,7 @@ export const en: Record<keyof typeof zh, string> = {
|
|
|
177
179
|
'import.paths.kind.homeMismatch': 'Different base path',
|
|
178
180
|
'import.paths.unresolved': '{count} {count, plural, path|paths} unmapped (blank = skip that path, you can continue)',
|
|
179
181
|
'import.paths.empty': 'No paths to map',
|
|
182
|
+
'import.paths.applySuggested': 'Apply suggested paths',
|
|
180
183
|
'import.paths.browse': 'Choose a local path',
|
|
181
184
|
'import.paths.picker.title': 'Choose a local path',
|
|
182
185
|
'import.paths.picker.up': 'Up one level',
|
|
@@ -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': '已删除快照',
|
|
@@ -31,6 +30,7 @@ export const zh = {
|
|
|
31
30
|
'snapshots.manualHints': '需人工处理',
|
|
32
31
|
'snapshots.failed': '失败',
|
|
33
32
|
'snapshots.skipped': '跳过',
|
|
33
|
+
'snapshots.preRestoreDir': '恢复前安全备份目录:{dir}',
|
|
34
34
|
// 恢复计划动作 kind 标签(原硬编码中文字符串,改走字典)
|
|
35
35
|
// —— git 风格恢复预览(快照改动逐行对照) ——
|
|
36
36
|
'snapshots.plan.changed': '将被还原 {count}',
|
|
@@ -71,7 +71,6 @@ export const zh = {
|
|
|
71
71
|
|
|
72
72
|
export const en: Record<keyof typeof zh, string> = {
|
|
73
73
|
'home.schedule.title': 'Schedule',
|
|
74
|
-
'snapshots.selectHint': 'Select a snapshot to preview its restore plan (read-only preview, changes nothing):',
|
|
75
74
|
'snapshots.status': 'Status',
|
|
76
75
|
'snapshots.delete': 'Delete',
|
|
77
76
|
'snapshots.deleted': 'Snapshot deleted',
|
|
@@ -94,6 +93,7 @@ export const en: Record<keyof typeof zh, string> = {
|
|
|
94
93
|
'snapshots.manualHints': 'Manual action needed',
|
|
95
94
|
'snapshots.failed': 'Failed',
|
|
96
95
|
'snapshots.skipped': 'Skipped',
|
|
96
|
+
'snapshots.preRestoreDir': 'Pre-restore safety backup: {dir}',
|
|
97
97
|
// —— git-style restore preview (line-by-line) ——
|
|
98
98
|
'snapshots.plan.changed': '{count} {count, plural, file|files} to restore',
|
|
99
99
|
'snapshots.plan.added': '{count} added',
|
|
@@ -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': '
|
|
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': '
|
|
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',
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
type MarketPickerFilter, type MarketReviewStep,
|
|
38
38
|
} from '../../ui/market-import.ts'
|
|
39
39
|
import { redact } from '../../security/redaction.ts'
|
|
40
|
-
import { Badge, Banner, Button, Chip, Segmented, Stepper } from '../common/ui.tsx'
|
|
40
|
+
import { Badge, Banner, Button, Chip, Empty, Segmented, Stepper } from '../common/ui.tsx'
|
|
41
41
|
import { ContentPicker } from '../common/ContentPicker.tsx'
|
|
42
42
|
import { ConflictList } from '../import/ConflictList.tsx'
|
|
43
43
|
import { ConfirmDialog } from '../common/ConfirmDialog.tsx'
|
|
@@ -273,7 +273,7 @@ export function MarketImportReview({
|
|
|
273
273
|
{countBadges}
|
|
274
274
|
{/* 步骤名由顶部 Stepper 承担:这里再写一遍「本次将改动的内容」是同屏第二次说同一步叫什么 */}
|
|
275
275
|
{sectionSummaries.length === 0
|
|
276
|
-
? <
|
|
276
|
+
? <Empty>{t('review.changeEmpty')}</Empty>
|
|
277
277
|
: renderSectionRows(false)}
|
|
278
278
|
</div>
|
|
279
279
|
<div className={css.actionRow}>
|
|
@@ -291,7 +291,7 @@ export function MarketImportReview({
|
|
|
291
291
|
ariaLabel={t('review.filterAria')}
|
|
292
292
|
/>
|
|
293
293
|
{visibleNodes.length === 0
|
|
294
|
-
? <
|
|
294
|
+
? <Empty>{t('review.filterEmpty')}</Empty>
|
|
295
295
|
: (
|
|
296
296
|
<ContentPicker
|
|
297
297
|
nodes={visibleNodes}
|
|
@@ -353,7 +353,7 @@ export function MarketImportReview({
|
|
|
353
353
|
<>
|
|
354
354
|
<div className={css.marketReviewScroll}>
|
|
355
355
|
{result === null
|
|
356
|
-
? <
|
|
356
|
+
? <Empty>{t('review.changeEmpty')}</Empty>
|
|
357
357
|
: (
|
|
358
358
|
<>
|
|
359
359
|
{(() => {
|