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
package/lib/client.d.ts
CHANGED
|
@@ -258,6 +258,17 @@ type SessionFormatDisposition = 'abort' | 'skip' | 'guide';
|
|
|
258
258
|
interface ConflictDecision {
|
|
259
259
|
itemId: string;
|
|
260
260
|
resolution: ItemResolution;
|
|
261
|
+
/**
|
|
262
|
+
* 这条裁决是**谁**下的(issue #136 A):
|
|
263
|
+
* - `'item'`:用户对该计划项逐项决策(`decisions.resolutions[id]`,含导入页的逐行确认)——
|
|
264
|
+
* 适配器可把它当作「我确实要这一行按导入值写」的确认。
|
|
265
|
+
* - `'section'`:由**分区级**裁决换算而来(合并落地 `planMergeApply` 的 second pass 把
|
|
266
|
+
* 「该分区已裁决」逐项注入成 `useImported`)。分区级裁决决定「分区是否应用」,
|
|
267
|
+
* 不构成对某一行值的确认,写回守卫不得据此清空本机明文。
|
|
268
|
+
* - 缺省:未标注来源。写回守卫按**未确认**处理(默认拒绝清空)—— 忘了标注只会少清空,
|
|
269
|
+
* 不会误清空;确认必须显式写明来源。
|
|
270
|
+
*/
|
|
271
|
+
decidedBy?: 'item' | 'section';
|
|
261
272
|
}
|
|
262
273
|
interface PathMapping {
|
|
263
274
|
oldPrefix: string;
|
|
@@ -1613,7 +1624,6 @@ declare const uiZh: {
|
|
|
1613
1624
|
readonly 'snapshots.failed': '失败';
|
|
1614
1625
|
readonly 'snapshots.skipped': '跳过';
|
|
1615
1626
|
readonly 'snapshots.noActions': '该快照无可恢复动作(或全部跳过)。';
|
|
1616
|
-
readonly 'snapshots.selectHint': '选择一个快照预览其恢复计划(只读预览,不会改动任何设置):';
|
|
1617
1627
|
readonly 'snapshots.reportTitle': '恢复报告';
|
|
1618
1628
|
readonly 'sync.privateRepoHint': '安全要求:同步仓库必须为私有仓库(public 仓库会公开你的配置内容)。认证 token 仅用于仓库访问,绝不写入同步文件、提交内容或日志。';
|
|
1619
1629
|
readonly 'sync.kind.create': '新增';
|
|
@@ -1642,6 +1652,8 @@ declare const uiZh: {
|
|
|
1642
1652
|
readonly 'sync.neverSyncedShort': '从未同步';
|
|
1643
1653
|
readonly 'sync.pushFailed': '推送失败';
|
|
1644
1654
|
readonly 'sync.pushOk': '推送成功(快照 {id})';
|
|
1655
|
+
readonly 'sync.pushSkipped': '内容未变化,已跳过(沿用远端快照 {id})';
|
|
1656
|
+
readonly 'sync.pushAllConflicted': '未推送任何分区:还有分区待冲突裁决(远端与基线都未改动)';
|
|
1645
1657
|
readonly 'sync.conflictUnresolved': '冲突项 {id} 必须先选择解决方式(保留当前 / 使用导入)';
|
|
1646
1658
|
readonly 'sync.pushPreviewHeadline': '将推送 {total} 个分区({changed} 个有变化)';
|
|
1647
1659
|
readonly 'sync.pushPreviewEncrypted': '加密快照:载荷将整体加密,各分区相对基线的变化不可比对。';
|
|
@@ -1723,6 +1735,7 @@ declare const uiZh: {
|
|
|
1723
1735
|
readonly 'consult.loading': '正在生成咨询报告…';
|
|
1724
1736
|
readonly 'diskUsage.title': '磁盘占用';
|
|
1725
1737
|
readonly 'diskUsage.files': '{count} 个文件';
|
|
1738
|
+
readonly 'diskUsage.total': '合计 {size} · {files}';
|
|
1726
1739
|
readonly 'diskUsage.refresh': '重新体检';
|
|
1727
1740
|
readonly 'diskUsage.loading': '正在统计磁盘占用…';
|
|
1728
1741
|
readonly 'diskUsage.unreadable': '未统计';
|
|
@@ -1922,6 +1935,10 @@ declare const uiZh: {
|
|
|
1922
1935
|
readonly 'foreign.lossy.entry-backslash.detail': 'ZIP 条目名里出现在中段的反斜杠不会被拒绝:同一个包在 Windows 目标上会被当作路径分隔符(落成多级目录),在 POSIX 目标上只是一个普通字符。本实现刻意不改这一格式行为;界面无法逐条检查条目名,跨平台导入后请核对这类文件是否落在预期位置。';
|
|
1923
1936
|
readonly 'foreign.lossy.prompt-persona-reshape.title': 'prompts 的 systemPrompt 形状变化';
|
|
1924
1937
|
readonly 'foreign.lossy.prompt-persona-reshape.detail': '源里的 systemPrompt 是字符串,导入落盘时写成带 persona 字段的对象:persona 文本无损,字段形状改变。兼容性评分不会为这一条给出原因 —— 它不改变内容,只改变形态。';
|
|
1938
|
+
readonly 'foreign.prompt.header': '请帮我将以下 {source} 配置/会话转换为 DSH 可导入的格式:';
|
|
1939
|
+
readonly 'foreign.prompt.paths': '检测路径:{paths}';
|
|
1940
|
+
readonly 'foreign.prompt.skips': '未自动迁移项:';
|
|
1941
|
+
readonly 'foreign.prompt.failure': '失败原因:{reason}';
|
|
1925
1942
|
readonly 'export.category.settings': 'DSH 全局设置(namespace 分区,redacted)';
|
|
1926
1943
|
readonly 'export.category.providers': 'LLM Provider / Model / 默认模型 / BaseURL';
|
|
1927
1944
|
readonly 'export.category.plugins': '已安装插件清单与启用状态(不含二进制)';
|
|
@@ -2423,6 +2440,80 @@ type NativePickResult = {
|
|
|
2423
2440
|
reason: NativePickReason;
|
|
2424
2441
|
detail?: string;
|
|
2425
2442
|
};
|
|
2443
|
+
/** 同步通道类型(由 SYNC_CHANNELS 派生;host 侧与 client 半统一引用)。 */
|
|
2444
|
+
type SyncTransportType$1 = (typeof SYNC_CHANNELS)[number];
|
|
2445
|
+
/** S3 兼容系通道的回传视图:**只带 secretStored 标记,绝不带密钥值**。 */
|
|
2446
|
+
interface CloudS3ChannelView {
|
|
2447
|
+
provider: S3CompatProvider;
|
|
2448
|
+
endpoint: string;
|
|
2449
|
+
region: string;
|
|
2450
|
+
bucket: string;
|
|
2451
|
+
prefix: string;
|
|
2452
|
+
accessKeyId: string;
|
|
2453
|
+
pathStyle: boolean;
|
|
2454
|
+
/** 密钥已在 credentials 里(只回布尔) */
|
|
2455
|
+
secretStored: boolean;
|
|
2456
|
+
}
|
|
2457
|
+
/** Gist 通道的回传视图:**只带 secretStored 标记,绝不带 token 值**。 */
|
|
2458
|
+
interface CloudGistChannelView {
|
|
2459
|
+
provider: GistProvider;
|
|
2460
|
+
gistId: string;
|
|
2461
|
+
apiBaseUrl: string;
|
|
2462
|
+
filePrefix: string;
|
|
2463
|
+
secretStored: boolean;
|
|
2464
|
+
}
|
|
2465
|
+
/** 推/拉请求体(与 client 的 SyncPushPayload / SyncPullPayload 同形)。 */
|
|
2466
|
+
interface SyncPushBody {
|
|
2467
|
+
/**
|
|
2468
|
+
* 请求体 transport:**宿主可接受的通道全集**(`SYNC_CHANNELS` = git/webdav/s3/gist)。
|
|
2469
|
+
*
|
|
2470
|
+
* 为什么是宽集合而不是上面的 `SyncChannelName`:client 的 `SyncPushPayload.transport`
|
|
2471
|
+
* 已是宽集合(云端通道并入 `SYNC_CHANNELS` 后由 `SyncTransportType` 派生),t42 组装器
|
|
2472
|
+
* 的产物会直接喂给 `saveQueueOnRequest` 等以 `SyncPushBody` 为参的纯函数;写窄会让
|
|
2473
|
+
* 「client 宽 → ui 窄」在 typecheck 阶段失败(T0 合并 origin/main 实测 3 条)。
|
|
2474
|
+
* transport 是**线上形状**,宿主按 `isSyncTransportType` 校验,宽集合才是正确口径。
|
|
2475
|
+
*/
|
|
2476
|
+
transport?: SyncTransportType$1;
|
|
2477
|
+
repoUrl?: string;
|
|
2478
|
+
/** git:仓库内子目录前缀(issue #131;空 / 缺省 = 仓库根,旧配置读出来即空) */
|
|
2479
|
+
subdir?: string;
|
|
2480
|
+
token?: string;
|
|
2481
|
+
url?: string;
|
|
2482
|
+
username?: string;
|
|
2483
|
+
password?: string;
|
|
2484
|
+
sections?: SectionId[];
|
|
2485
|
+
/**
|
|
2486
|
+
* sessions(可选分区)选项:**只有显式提供它**,会话才被允许进入同步通道
|
|
2487
|
+
* (Host 侧安全默认:未提供则按非 portable 分区跳过)。绝不悄悄携带。
|
|
2488
|
+
*/
|
|
2489
|
+
sessions?: {
|
|
2490
|
+
limit?: number;
|
|
2491
|
+
include?: string[];
|
|
2492
|
+
};
|
|
2493
|
+
/** s3:具体兼容商 */
|
|
2494
|
+
provider?: string;
|
|
2495
|
+
endpoint?: string;
|
|
2496
|
+
region?: string;
|
|
2497
|
+
bucket?: string;
|
|
2498
|
+
prefix?: string;
|
|
2499
|
+
accessKeyId?: string;
|
|
2500
|
+
pathStyle?: boolean;
|
|
2501
|
+
/** 显式覆盖签名方言(高级覆盖;宿主忽略非法值,回落兼容商变体默认) */
|
|
2502
|
+
dialectId?: 'aws4' | 'oss4';
|
|
2503
|
+
/** gist:目标 gist id */
|
|
2504
|
+
gistId?: string;
|
|
2505
|
+
apiBaseUrl?: string;
|
|
2506
|
+
filePrefix?: string;
|
|
2507
|
+
/**
|
|
2508
|
+
* 云端点密钥(s3 的 AccessKey Secret / gist 的 token):**只写**。
|
|
2509
|
+
* 仅请求体内存传输 → 宿主写入 DSH credentials 槽位(cloudSecretRef)后即丢弃;
|
|
2510
|
+
* 绝不落配置文件 / 日志 / 响应(凭据铁律)。
|
|
2511
|
+
*/
|
|
2512
|
+
secret?: string;
|
|
2513
|
+
encrypt?: boolean;
|
|
2514
|
+
encryptPassword?: string;
|
|
2515
|
+
includeSecrets?: boolean;
|
|
2516
|
+
}
|
|
2426
2517
|
/** 超时文案键(全部已存在于 ui/i18n.ts;本模块只做选键,不新增文案口径)。 */
|
|
2427
2518
|
type TimeoutMessageKey = 'error.requestTimeout' | 'error.fallback' | 'error.exportTimeout' | 'error.syncTimeout' | 'error.recoveryTimeout';
|
|
2428
2519
|
/** 请求选项:超时档位、超时文案键、调用方取消信号。 */
|
|
@@ -2883,7 +2974,7 @@ declare class ConfigManagerApi {
|
|
|
2883
2974
|
*/
|
|
2884
2975
|
applyUpdate(version: string): Promise<PluginUpdateApplyResult>;
|
|
2885
2976
|
/** 迁移前咨询(只读健康评分 + 建议):对 4 种可迁移源生成统一咨询报告。 */
|
|
2886
|
-
consult(input: {
|
|
2977
|
+
consult(input: SyncPushBody & {
|
|
2887
2978
|
type: 'export-zip' | 'local-snapshot' | 'remote-snapshot' | 'profile';
|
|
2888
2979
|
id: string;
|
|
2889
2980
|
snapshotId?: string;
|
|
@@ -2966,6 +3057,17 @@ interface SyncPushReport {
|
|
|
2966
3057
|
* deviceId」,别的设备推进过就仍然按冲突返回,绝不越过。
|
|
2967
3058
|
*/
|
|
2968
3059
|
adoptedBase?: string;
|
|
3060
|
+
/**
|
|
3061
|
+
* issue #140:本次推送**没有产生新快照**(远端最新快照的分区内容与本次导出逐字相同)。
|
|
3062
|
+
*
|
|
3063
|
+
* 语义:`ok:true` + 本字段 = 「什么都没做,也不算失败」——未 upload、未建目录、未裁剪;
|
|
3064
|
+
* 只是把基线指针**收养**到远端最新快照(`adoptedSnapshotId`),让下一轮判定有正确起点。
|
|
3065
|
+
* GUI / 报告必须显式区分它(「内容未变化,已跳过」),不能显示成「已推送 xx」。
|
|
3066
|
+
* issue #146:`all-conflicted` = 一个分区都没推(`ok:true` + `snapshotId:''`,远端与基线都没动),不是失败,但绝不能显示成「已推送」。
|
|
3067
|
+
*/
|
|
3068
|
+
skipped?: 'unchanged' | 'all-conflicted';
|
|
3069
|
+
/** issue #140:`skipped='unchanged'` 时被收养的远端快照 id(= 本次报告里的 snapshotId) */
|
|
3070
|
+
adoptedSnapshotId?: string;
|
|
2969
3071
|
}
|
|
2970
3072
|
/** 差异报告中的单个变更项(PlanItem 摘要,不含敏感细节) */
|
|
2971
3073
|
interface PullChange {
|
|
@@ -3004,30 +3106,10 @@ interface SyncPushPreview {
|
|
|
3004
3106
|
encrypted: boolean;
|
|
3005
3107
|
/** 本次推送是否真的会带上凭据载荷(.credentials.yaml 可读且非空;issue #38) */
|
|
3006
3108
|
credentialsIncluded: boolean;
|
|
3109
|
+
/** issue #146:与 push 同口径的终态(全被冲突扣下 ⇒ 预览也是「什么都没得推」,不是错误) */
|
|
3110
|
+
skipped?: 'all-conflicted';
|
|
3007
3111
|
message?: string;
|
|
3008
3112
|
}
|
|
3009
|
-
/** 同步通道类型(由 SYNC_CHANNELS 派生;host 侧与 client 半统一引用)。 */
|
|
3010
|
-
type SyncTransportType$1 = (typeof SYNC_CHANNELS)[number];
|
|
3011
|
-
/** S3 兼容系通道的回传视图:**只带 secretStored 标记,绝不带密钥值**。 */
|
|
3012
|
-
interface CloudS3ChannelView {
|
|
3013
|
-
provider: S3CompatProvider;
|
|
3014
|
-
endpoint: string;
|
|
3015
|
-
region: string;
|
|
3016
|
-
bucket: string;
|
|
3017
|
-
prefix: string;
|
|
3018
|
-
accessKeyId: string;
|
|
3019
|
-
pathStyle: boolean;
|
|
3020
|
-
/** 密钥已在 credentials 里(只回布尔) */
|
|
3021
|
-
secretStored: boolean;
|
|
3022
|
-
}
|
|
3023
|
-
/** Gist 通道的回传视图:**只带 secretStored 标记,绝不带 token 值**。 */
|
|
3024
|
-
interface CloudGistChannelView {
|
|
3025
|
-
provider: GistProvider;
|
|
3026
|
-
gistId: string;
|
|
3027
|
-
apiBaseUrl: string;
|
|
3028
|
-
filePrefix: string;
|
|
3029
|
-
secretStored: boolean;
|
|
3030
|
-
}
|
|
3031
3113
|
/**
|
|
3032
3114
|
* 远程同步通道类型:git(默认)或 webdav。
|
|
3033
3115
|
* **唯一来源** = 宿主 src/sync/sync-config.ts 的 SYNC_CHANNELS(此处仅 type-only 别名:
|
|
@@ -3085,6 +3167,16 @@ interface SyncStatusResponse {
|
|
|
3085
3167
|
autosync?: AutosyncStatusResponse;
|
|
3086
3168
|
/** 全部通道的自动同步状态(git/webdav 各自独立;UI 按当前 tab 取对应通道) */
|
|
3087
3169
|
autosyncByChannel?: Record<SyncTransportType, AutosyncStatusResponse>;
|
|
3170
|
+
/**
|
|
3171
|
+
* P2(2026-11-14 真机事故):等人裁决的冲突分区。
|
|
3172
|
+
* 自动同步撞上「远端已推进 + 分区冲突」时,宿主把冲突分区落进 sync-state.pendingMerge;
|
|
3173
|
+
* 有值 = 同步并没有坏,只是有人在等你确认那几个分区(首页「待裁决」行据此跳同步页)。
|
|
3174
|
+
* **永不携带远端快照 id**(与 hasBaseline 同一纪律);since = 这件事第一次挂住的时刻。
|
|
3175
|
+
*/
|
|
3176
|
+
pendingMerge?: {
|
|
3177
|
+
sections: string[];
|
|
3178
|
+
since: string;
|
|
3179
|
+
};
|
|
3088
3180
|
/**
|
|
3089
3181
|
* issue #79:git 工作副本与配置地址的关系(host 只读自检)。
|
|
3090
3182
|
* - `{ facts }` = 自检成功(origin 是否已跟随 repoUrl)
|
|
@@ -3238,6 +3330,11 @@ interface SyncPushPayload {
|
|
|
3238
3330
|
encryptPassword?: string;
|
|
3239
3331
|
/** 导出真实凭据值(必须同时 encrypt=true,否则 Host 拒绝:密钥绝不明文进同步通道) */
|
|
3240
3332
|
includeSecrets?: boolean;
|
|
3333
|
+
/**
|
|
3334
|
+
* issue #140:强制推送 —— 内容与远端最新快照一致时**也**新建快照。
|
|
3335
|
+
* 缺省 false = 内容没变就跳过(不 upload、不建目录,报告 skipped:'unchanged')。
|
|
3336
|
+
*/
|
|
3337
|
+
force?: boolean;
|
|
3241
3338
|
/** s3:具体兼容商(s3 / oss / cos / minio / kodo) */
|
|
3242
3339
|
provider?: string;
|
|
3243
3340
|
endpoint?: string;
|
|
@@ -3871,7 +3968,7 @@ declare class SyncApi {
|
|
|
3871
3968
|
*/
|
|
3872
3969
|
applyMerge(payload: MergeApplyPayload): Promise<MergeApplyResponse>;
|
|
3873
3970
|
/** Phase 7 迁移前咨询(只读健康评分 + 建议):对远端快照生成咨询报告。 */
|
|
3874
|
-
consult(input: {
|
|
3971
|
+
consult(input: SyncPushPayload & {
|
|
3875
3972
|
type: 'remote-snapshot';
|
|
3876
3973
|
id: string;
|
|
3877
3974
|
snapshotId?: string;
|
|
@@ -5025,6 +5122,7 @@ declare const zh$4: {
|
|
|
5025
5122
|
readonly 'about.snippet.environment': '### 环境 / Environment';
|
|
5026
5123
|
readonly 'about.releaseNotes.rateLimited': 'GitHub API 速率限制(Rate limit exceeded),请稍后再试或直接在 GitHub 上查看。';
|
|
5027
5124
|
readonly 'about.releaseNotes.fetchFailed': 'GitHub API 请求失败 ({status} {statusText})';
|
|
5125
|
+
readonly 'about.releaseNotes.timeout': 'GitHub API 请求超时({seconds} 秒无响应),请检查网络或代理后重试。';
|
|
5028
5126
|
readonly 'about.snippet.plugin': '- 插件版本 / Plugin: {version}';
|
|
5029
5127
|
readonly 'about.snippet.dsh': '- DSH 版本 / DSH: {version}';
|
|
5030
5128
|
readonly 'about.snippet.platform': '- 平台 / Platform: {platform}';
|
|
@@ -5088,6 +5186,7 @@ declare const zh$4: {
|
|
|
5088
5186
|
readonly 'overview.activity.colDetail': '详情';
|
|
5089
5187
|
readonly 'overview.activity.colResult': '结果';
|
|
5090
5188
|
readonly 'overview.activity.empty': '暂无操作记录';
|
|
5189
|
+
readonly 'overview.activity.openMerge': '有冲突分区等你裁决:点这一行到同步页处理';
|
|
5091
5190
|
readonly 'overview.activity.unavailable': '活动记录读取失败(这不是「没有记录」)';
|
|
5092
5191
|
readonly 'overview.loadFailed': '有 {count} 项数据读取失败:{message} —— 下面的指标可能不完整';
|
|
5093
5192
|
readonly 'overview.accessMode.title': '当前访问方式不被允许读取本机数据。';
|
|
@@ -5115,7 +5214,6 @@ declare const zh$4: {
|
|
|
5115
5214
|
readonly 'overview.kind.snapshot-delete': '删除快照';
|
|
5116
5215
|
readonly 'overview.kind.snapshot-prune': '清理快照';
|
|
5117
5216
|
readonly 'overview.kind.other': '其他操作';
|
|
5118
|
-
readonly 'export.hint': '默认导出推荐分区(可迁移、不含设备专属数据)。';
|
|
5119
5217
|
readonly 'export.encrypt': '加密备份';
|
|
5120
5218
|
readonly 'export.encryptHint': '用密码加密整个备份文件(AES-256-GCM)。密码仅用于本次加密,不会写入备份或任何配置文件;导入时必须输入该密码才能解锁。';
|
|
5121
5219
|
readonly 'export.password': '备份加密密码';
|
|
@@ -5133,9 +5231,7 @@ declare const zh$4: {
|
|
|
5133
5231
|
readonly 'export.fileNameInvalid': '文件名不合法:仅允许字母数字、空格、- _ .,不能包含路径分隔符。';
|
|
5134
5232
|
readonly 'export.note': '备注';
|
|
5135
5233
|
readonly 'export.notePlaceholder': '例如:迁移前的完整备份 / 2026-08 存档';
|
|
5136
|
-
readonly 'export.noteHint': '备注保存在本机备份列表中(随配置备份迁移),便于区分多个导出产物。';
|
|
5137
5234
|
readonly 'export.compositionTitle': '本次将导出';
|
|
5138
|
-
readonly 'export.compositionHint': '按当前勾选估算(只读预览,零写入)';
|
|
5139
5235
|
readonly 'export.compositionPartial': '将导出 {sections} 个分区 · 已读取 {units} 个条目 · 约 {size}(含未读取分区,实际不少于该值)';
|
|
5140
5236
|
readonly 'export.compositionEmpty': '没有勾选任何可导出的内容';
|
|
5141
5237
|
readonly 'picker.title': '选择要导出的内容';
|
|
@@ -5157,7 +5253,6 @@ declare const zh$4: {
|
|
|
5157
5253
|
readonly 'picker.loadingItems': '正在读取条目…';
|
|
5158
5254
|
readonly 'picker.loadingSection': '读取中…';
|
|
5159
5255
|
readonly 'picker.empty': '没有匹配的分区或条目';
|
|
5160
|
-
readonly 'picker.sessionWorkspaceLinked': '会话与工作区联动勾选:勾上会话会自动勾上它所属的工作区;取消工作区会取消它的会话';
|
|
5161
5256
|
readonly 'picker.unitsUnavailable': '部分分区的条目清单读取失败,这些分区将整体导出。';
|
|
5162
5257
|
readonly 'picker.sectionLoadFailed': '读取失败 · 将整体导出';
|
|
5163
5258
|
readonly 'picker.deviceSpecific': '设备相关';
|
|
@@ -5172,8 +5267,7 @@ declare const zh$4: {
|
|
|
5172
5267
|
readonly 'picker.pluginAreaAbsent': '无内容';
|
|
5173
5268
|
readonly 'picker.bucketPlugins': '插件分区的其他条目(补丁行 / pnpm-workspace.yaml)';
|
|
5174
5269
|
readonly 'picker.bucketLooseFiles': '未归属到插件的配置(~/.dsh 根)';
|
|
5175
|
-
readonly 'picker.
|
|
5176
|
-
readonly 'picker.groupHint.extensions': '只列出能证明的归属(内置来源表 + 插件自述 dsh.dataDirs);没有包名信息的配置留在「未归属」。';
|
|
5270
|
+
readonly 'picker.groupHint.extensions': '只列出能证明归属的条目:某个插件不在这里,不代表本机没有它的配置。';
|
|
5177
5271
|
readonly 'group.general': '通用';
|
|
5178
5272
|
readonly 'group.ai': 'AI';
|
|
5179
5273
|
readonly 'group.extensions': '插件与扩展';
|
|
@@ -5191,6 +5285,7 @@ declare const zh$4: {
|
|
|
5191
5285
|
readonly 'library.pulling': '正在拉取并导入…';
|
|
5192
5286
|
readonly 'library.downloadTitle': '下载远端快照';
|
|
5193
5287
|
readonly 'library.downloading': '正在拉取并下载…';
|
|
5288
|
+
readonly 'library.pullBadge': '同步中';
|
|
5194
5289
|
readonly 'import.consult.unavailable': '暂时无法生成咨询报告(不影响继续导入)。';
|
|
5195
5290
|
readonly 'import.picker.title': '选择要导入的内容';
|
|
5196
5291
|
readonly 'import.picker.hint': '不勾选的条目不会被导入、也不会进快照;随时可以回到这一步修改。';
|
|
@@ -5209,6 +5304,7 @@ declare const zh$4: {
|
|
|
5209
5304
|
readonly 'import.select.file': '已选择:{name}';
|
|
5210
5305
|
readonly 'import.compatibility.title': '兼容性';
|
|
5211
5306
|
readonly 'import.compatibility.score': '兼容性评分:{score}';
|
|
5307
|
+
readonly 'import.compatibility.hint': '评分只看备份格式、DSH 版本方向、平台与包内缺失分区,不阻断导入;具体原因见下方逐条说明。';
|
|
5212
5308
|
readonly 'import.preview.title': '导入预览';
|
|
5213
5309
|
readonly 'import.preview.willChange': '将变更 {count} 项';
|
|
5214
5310
|
readonly 'import.preview.unchanged': '已一致跳过 {count} 项';
|
|
@@ -5249,7 +5345,6 @@ declare const zh$4: {
|
|
|
5249
5345
|
readonly 'import.decryptArchive.unlock': '解锁并继续';
|
|
5250
5346
|
readonly 'import.decrypt.previewHint': '加密备份:凭据已由解锁密码自动恢复,无需再次输入密码。';
|
|
5251
5347
|
readonly 'import.conflicts.title': '解决冲突';
|
|
5252
|
-
readonly 'import.conflicts.hint': '以下配置项在目标 DSH 已存在且与备份不同,请逐项决策。';
|
|
5253
5348
|
readonly 'import.conflicts.keepCurrent': '保留当前';
|
|
5254
5349
|
readonly 'import.conflicts.useImported': '使用备份';
|
|
5255
5350
|
readonly 'import.conflicts.review': '稍后决定';
|
|
@@ -5269,6 +5364,7 @@ declare const zh$4: {
|
|
|
5269
5364
|
readonly 'import.paths.kind.homeMismatch': '基础路径不同';
|
|
5270
5365
|
readonly 'import.paths.unresolved': '还有 {count} 条路径未映射(留空将跳过该路径,可以继续)';
|
|
5271
5366
|
readonly 'import.paths.empty': '无需映射路径';
|
|
5367
|
+
readonly 'import.paths.applySuggested': '填入建议路径';
|
|
5272
5368
|
readonly 'import.paths.browse': '选择本机路径';
|
|
5273
5369
|
readonly 'import.paths.picker.title': '选择本机路径';
|
|
5274
5370
|
readonly 'import.paths.picker.up': '上一层';
|
|
@@ -5282,7 +5378,6 @@ declare const zh$4: {
|
|
|
5282
5378
|
readonly 'import.paths.picker.notAbsolute': '请填绝对路径(如 D:\\ 或 /)';
|
|
5283
5379
|
readonly 'import.paths.picker.failed': '读取这个目录失败';
|
|
5284
5380
|
readonly 'home.schedule.title': '定时备份';
|
|
5285
|
-
readonly 'snapshots.selectHint': '选择快照以预览恢复计划(只读预览,不会改动任何设置):';
|
|
5286
5381
|
readonly 'snapshots.status': '状态';
|
|
5287
5382
|
readonly 'snapshots.delete': '删除';
|
|
5288
5383
|
readonly 'snapshots.deleted': '已删除快照';
|
|
@@ -5305,6 +5400,7 @@ declare const zh$4: {
|
|
|
5305
5400
|
readonly 'snapshots.manualHints': '需人工处理';
|
|
5306
5401
|
readonly 'snapshots.failed': '失败';
|
|
5307
5402
|
readonly 'snapshots.skipped': '跳过';
|
|
5403
|
+
readonly 'snapshots.preRestoreDir': '恢复前安全备份目录:{dir}';
|
|
5308
5404
|
readonly 'snapshots.plan.changed': '将被还原 {count}';
|
|
5309
5405
|
readonly 'snapshots.plan.added': '新增 {count}';
|
|
5310
5406
|
readonly 'snapshots.plan.deleted': '将被删除 {count}';
|
|
@@ -5340,16 +5436,16 @@ declare const zh$4: {
|
|
|
5340
5436
|
readonly 'snapshots.plan.statSkipped.budget': '超出数量上限';
|
|
5341
5437
|
readonly 'snapshots.plan.statSkipped.unreadable': '未统计';
|
|
5342
5438
|
readonly 'backupSchedule.title': '定时全量备份';
|
|
5343
|
-
readonly 'backupSchedule.hint': '
|
|
5439
|
+
readonly 'backupSchedule.hint': '恒不含 secret、不加密;要加密的备份请手动导出。';
|
|
5344
5440
|
readonly 'backupSchedule.enabled': '启用定时备份';
|
|
5345
|
-
readonly 'backupSchedule.enabledHint': '
|
|
5441
|
+
readonly 'backupSchedule.enabledHint': '每次启动先跑一次(距上次运行不足 1 小时则跳过)。';
|
|
5346
5442
|
readonly 'backupSchedule.interval': '备份间隔';
|
|
5347
5443
|
readonly 'backupSchedule.interval.6h': '每 6 小时';
|
|
5348
5444
|
readonly 'backupSchedule.interval.12h': '每 12 小时';
|
|
5349
5445
|
readonly 'backupSchedule.interval.24h': '每 24 小时';
|
|
5350
5446
|
readonly 'backupSchedule.interval.7d': '每 7 天';
|
|
5351
5447
|
readonly 'backupSchedule.interval.custom': '自定义(每周固定时刻)';
|
|
5352
|
-
readonly 'backupSchedule.customHint': '
|
|
5448
|
+
readonly 'backupSchedule.customHint': '错过的时间点不补跑。';
|
|
5353
5449
|
readonly 'backupSchedule.weekday': '星期';
|
|
5354
5450
|
readonly 'backupSchedule.hour': '小时';
|
|
5355
5451
|
readonly 'backupSchedule.minute': '分钟';
|
|
@@ -5372,7 +5468,8 @@ declare const zh$4: {
|
|
|
5372
5468
|
readonly 'backupSchedule.loading': '加载定时备份设置…';
|
|
5373
5469
|
readonly 'backupSchedule.error': '定时备份设置加载失败';
|
|
5374
5470
|
readonly 'retention.title': '保留策略';
|
|
5375
|
-
readonly 'retention.
|
|
5471
|
+
readonly 'retention.titleScoped': '保留策略(快照 + 定时备份)';
|
|
5472
|
+
readonly 'retention.hint': '快照与定时备份共用;置顶快照与未收敛的恢复点恒豁免自动清理。';
|
|
5376
5473
|
readonly 'retention.keepLast': '最近保留';
|
|
5377
5474
|
readonly 'retention.keepLastHint': '按时间保留最近 N 份;0 = 不按「最近」保留';
|
|
5378
5475
|
readonly 'retention.keepMonthly': '每月保留';
|
|
@@ -5383,8 +5480,7 @@ declare const zh$4: {
|
|
|
5383
5480
|
readonly 'retention.months': '个月';
|
|
5384
5481
|
readonly 'retention.years': '年';
|
|
5385
5482
|
readonly 'retention.tiersOff': '仅保留最近 N 份';
|
|
5386
|
-
readonly '
|
|
5387
|
-
readonly 'backupFiles.hint': '导出产物(手动导出与定时备份)统一在此管理:可下载到本机、直接导入恢复,或删除。定时备份自动保留最近 10 个。';
|
|
5483
|
+
readonly 'backupFiles.hint': '定时备份自动保留最近 10 个,更早的会被删除。';
|
|
5388
5484
|
readonly 'backupFiles.empty': '暂无备份文件';
|
|
5389
5485
|
readonly 'backupFiles.delete': '删除';
|
|
5390
5486
|
readonly 'backupFiles.deleteConfirmTitle': '删除备份文件';
|
|
@@ -5420,7 +5516,6 @@ declare const zh$4: {
|
|
|
5420
5516
|
readonly 'about.repo': 'GitHub 仓库';
|
|
5421
5517
|
readonly 'about.docs': '使用文档';
|
|
5422
5518
|
readonly 'about.issues': '反馈问题';
|
|
5423
|
-
readonly 'about.feedbackHint': '遇到界面问题?复制环境信息,粘进 issue 就行';
|
|
5424
5519
|
readonly 'about.copyEnv': '复制环境信息';
|
|
5425
5520
|
readonly 'about.authorLabel': '作者';
|
|
5426
5521
|
readonly 'about.loading': '正在获取版本信息…';
|
|
@@ -5455,6 +5550,21 @@ declare const zh$4: {
|
|
|
5455
5550
|
readonly 'profiles.loading': '加载档案中…';
|
|
5456
5551
|
readonly 'profiles.empty': '还没有任何档案';
|
|
5457
5552
|
readonly 'profiles.refresh': '刷新';
|
|
5553
|
+
readonly 'profiles.machine.title': '本机概况';
|
|
5554
|
+
readonly 'profiles.machine.dshVersion': 'DSH 版本';
|
|
5555
|
+
readonly 'profiles.machine.dataDir': '数据目录';
|
|
5556
|
+
readonly 'profiles.machine.plugins': '已装插件';
|
|
5557
|
+
readonly 'profiles.machine.disk': '磁盘占用';
|
|
5558
|
+
readonly 'profiles.machine.pluginsValue': '{count} 个';
|
|
5559
|
+
readonly 'profiles.machine.diskValue': '{size} · {files} 个文件';
|
|
5560
|
+
readonly 'profiles.machine.unknown': '未知';
|
|
5561
|
+
readonly 'profiles.dataDir.title': '数据目录';
|
|
5562
|
+
readonly 'profiles.dataDir.hint': '以下目录都在当前档案的数据目录下;清理入口在「维护与诊断」的磁盘占用卡。';
|
|
5563
|
+
readonly 'profiles.dataDir.exports': '备份文件';
|
|
5564
|
+
readonly 'profiles.dataDir.snapshots': '导入前快照';
|
|
5565
|
+
readonly 'profiles.dataDir.sync': '同步覆盖与工作副本';
|
|
5566
|
+
readonly 'profiles.dataDir.rollbackPoints': '工作区与会话回滚';
|
|
5567
|
+
readonly 'profiles.dataDir.rowValue': '{size} · {files} 个文件';
|
|
5458
5568
|
readonly 'profiles.current': '当前运行';
|
|
5459
5569
|
readonly 'profiles.running.title': '运行状态';
|
|
5460
5570
|
readonly 'profiles.running.none': '没有正在运行的实例';
|
|
@@ -5503,7 +5613,6 @@ declare const zh$4: {
|
|
|
5503
5613
|
readonly 'profiles.nameReserved': '「{name}」是 DSH 保留名(web / headless / sdk / sdk-minimal / acp / desktop),不能手动创建';
|
|
5504
5614
|
readonly 'profiles.list.title': '全部档案';
|
|
5505
5615
|
readonly 'profiles.list.count': '共 {count} 个';
|
|
5506
|
-
readonly 'profiles.list.hint': '点击档案行查看完整详情(bundle 层 / 依赖 / patch 原文)';
|
|
5507
5616
|
readonly 'profiles.row.summary': '{bundles} 个层 · patch {patch} 条 · 依赖 {deps}';
|
|
5508
5617
|
readonly 'profiles.detail.info': '档案信息';
|
|
5509
5618
|
readonly 'profiles.bundles.count': '{count} 个 bundle 层';
|
|
@@ -5546,7 +5655,6 @@ declare const zh$4: {
|
|
|
5546
5655
|
readonly 'profiles.deleteCurrentWarning': '这是当前运行中的档案:删除后本次运行仍可用,但重启会失败。';
|
|
5547
5656
|
readonly 'profiles.deleteCurrentConfirm': '仍要删除当前档案';
|
|
5548
5657
|
readonly 'profiles.duplicate': '复制';
|
|
5549
|
-
readonly 'profiles.duplicateHint': '把该档案整份复制成一份新档案(清单 / patch 层 / 依赖声明 / pnpm 锁文件;可连同已装的 node_modules 一起拷)';
|
|
5550
5658
|
readonly 'profiles.duplicateTitle': '复制档案';
|
|
5551
5659
|
readonly 'profiles.duplicateMessage': '把档案「{name}」复制成一份新档案:';
|
|
5552
5660
|
readonly 'profiles.duplicate.nameLabel': '副本档案名';
|
|
@@ -5594,7 +5702,7 @@ declare const zh$4: {
|
|
|
5594
5702
|
readonly 'runs.loading': '正在读取任务列表…';
|
|
5595
5703
|
readonly 'runs.loadFailed': '读取任务列表失败:{message}';
|
|
5596
5704
|
readonly 'runs.empty': '近期没有任何任务(运行中的任务会实时出现在这里)';
|
|
5597
|
-
readonly 'runs.retentionHint': '
|
|
5705
|
+
readonly 'runs.retentionHint': '刚结束的任务只保留 30 分钟。';
|
|
5598
5706
|
readonly 'runs.runningBadge': '{count} 个进行中';
|
|
5599
5707
|
readonly 'runs.awaitingBadge': '{count} 个等待你选择';
|
|
5600
5708
|
readonly 'runs.awaitingDecision': '等待你选择';
|
|
@@ -5739,7 +5847,6 @@ declare const zh$4: {
|
|
|
5739
5847
|
readonly 'library.moreActions': '更多操作';
|
|
5740
5848
|
readonly 'backupFiles.inspectEncrypted': '这是整包加密的备份,无法直接查看内容:请点「导入」——向导会先让你输入备份密码解锁,解锁后即可看到包含的分区与差异。';
|
|
5741
5849
|
readonly 'library.source.all': '全部';
|
|
5742
|
-
readonly 'library.origin.foreign': '来自他人档案';
|
|
5743
5850
|
readonly 'library.kind.snapshot': '本机快照';
|
|
5744
5851
|
readonly 'library.kind.backupFile': '备份文件';
|
|
5745
5852
|
readonly 'library.kind.remote': '远端快照';
|
|
@@ -5812,7 +5919,7 @@ declare const zh$4: {
|
|
|
5812
5919
|
readonly 'foreign.importFailed': '导入失败:{reason}';
|
|
5813
5920
|
readonly 'foreign.previewTitle': '将导入的内容';
|
|
5814
5921
|
readonly 'foreign.previewSections': '包含分区:{sections}';
|
|
5815
|
-
readonly 'foreign.previewDryRun': '
|
|
5922
|
+
readonly 'foreign.previewDryRun': '只读预览 · 零写入';
|
|
5816
5923
|
readonly 'foreign.previewReset': '来源已变化:上一次的产包结果作废,请重新「开始导入」。';
|
|
5817
5924
|
readonly 'foreign.lossy.title': '已知有损';
|
|
5818
5925
|
readonly 'foreign.lossy.hint': '下面三条是「外部配置 → bundle → 导入」这条流水线的既有行为:都不阻断导入,兼容性评分也不会为它们给出原因。';
|
|
@@ -5855,6 +5962,7 @@ declare const zh$4: {
|
|
|
5855
5962
|
readonly 'foreign.skip.trae-db-decrypt-failed': 'Trae 加密会话库无法解密:文件被截断、不是 SQLCipher 形态或读取失败,本次未读出任何会话';
|
|
5856
5963
|
readonly 'foreign.skip.trae-db-schema-mismatch': 'Trae 加密会话库解密成功但表结构不符(缺 chat_session / history_v2 或必需列):不猜字段,本次未读出任何会话';
|
|
5857
5964
|
readonly 'foreign.conflict.policy': '同 id 冲突不覆盖本机内容:跳过并逐条报告';
|
|
5965
|
+
readonly 'foreign.copyAgentPrompt': '复制转换提示词';
|
|
5858
5966
|
};
|
|
5859
5967
|
/** 字典键联合(注册处 compile-time 校验) */
|
|
5860
5968
|
type ConfigManagerKey = keyof typeof zh$4;
|
|
@@ -5878,27 +5986,29 @@ declare const zh$3: {
|
|
|
5878
5986
|
readonly 'config.tokenSaved': '凭据已配置';
|
|
5879
5987
|
readonly 'config.tokenMissing': '未配置令牌:可拉取公开仓库,无法推送';
|
|
5880
5988
|
readonly 'config.tokenPlaceholder': 'ghp_…(可选)';
|
|
5881
|
-
readonly 'config.save': '立即保存';
|
|
5882
|
-
readonly 'config.saveHint': '表单改动会自动保存:密码/token 安全写入 DSH credentials,不会写入同步文件或日志。';
|
|
5883
5989
|
readonly 'config.savedTick': '已保存';
|
|
5884
5990
|
readonly 'channel.title': '同步通道';
|
|
5885
5991
|
readonly 'channel.git': 'Git 私有仓库';
|
|
5886
5992
|
readonly 'channel.webdav': 'WebDAV 服务器';
|
|
5887
5993
|
readonly 'channel.s3': '对象存储(S3 兼容)';
|
|
5888
5994
|
readonly 'channel.gist': 'GitHub Gist';
|
|
5889
|
-
readonly 'channel.perChannelHint': '每条通道(Git / WebDAV / 对象存储 / Gist)的自动同步、同步模式、加密与远端快照各自独立配置。';
|
|
5890
5995
|
readonly 'channel.open': '配置';
|
|
5891
|
-
readonly 'channel.openHint': '远程同步通过「同步通道」进行:Git 私有仓库或 WebDAV 服务器。';
|
|
5892
5996
|
readonly 'channel.expand': '展开通道详情';
|
|
5893
5997
|
readonly 'channel.collapse': '收起通道详情';
|
|
5894
5998
|
readonly 'channel.clear': '断开配置';
|
|
5895
5999
|
readonly 'channel.clearConfirmTitle': '断开同步通道配置?';
|
|
5896
6000
|
readonly 'channel.clearConfirmMessage': '将删除「{channel}」的本机配置、已保存的凭据与自动同步开关。远端快照与本机备份不受影响;断开后可重新配置。';
|
|
5897
6001
|
readonly 'channel.clearConfirm': '断开配置';
|
|
6002
|
+
readonly 'channel.clearBusy': '还有保存请求没完成,稍后再点一次断开(最多等 5 秒)';
|
|
5898
6003
|
readonly 'channel.clearGitSignOut': 'Git 通道的访问令牌会被一并删除:GitHub 登录状态随之失效,需要重新登录(不会自动恢复)。';
|
|
5899
6004
|
readonly 'channel.configured': '已配置';
|
|
5900
6005
|
readonly 'channel.notConfigured': '未配置';
|
|
5901
6006
|
readonly 'channel.currentUrl': '当前地址';
|
|
6007
|
+
readonly 'addChannel.title': '添加通道';
|
|
6008
|
+
readonly 'addChannel.git': '把配置推进你自己的 Git 仓库(GitHub 仓库可在弹窗里直接登录)';
|
|
6009
|
+
readonly 'addChannel.webdav': '同步到 WebDAV 空间:坚果云、Nextcloud、ownCloud、Seafile、群晖、Box';
|
|
6010
|
+
readonly 'addChannel.s3': '同步到对象存储桶:AWS S3、阿里云 OSS、腾讯云 COS、MinIO、七牛 Kodo';
|
|
6011
|
+
readonly 'addChannel.gist': '用单个 GitHub Gist 存快照,不必新建仓库';
|
|
5902
6012
|
readonly 'workdir.title': '工作副本';
|
|
5903
6013
|
readonly 'workdir.hint': '同步使用的 Git 工作副本。每次同步都会让它的 origin 跟随当前仓库地址;改地址后若仍失败,可在这里重指向或重新克隆。';
|
|
5904
6014
|
readonly 'workdir.path': '路径';
|
|
@@ -5927,12 +6037,10 @@ declare const zh$3: {
|
|
|
5927
6037
|
readonly 'webdav.url': '服务器地址';
|
|
5928
6038
|
readonly 'webdav.urlHint': 'WebDAV 服务器根地址(https://…)。同步快照与索引存放于该地址的 dsh-config-manager/ 子目录下。请勿在地址中包含用户名/密码。';
|
|
5929
6039
|
readonly 'webdav.username': '用户名';
|
|
5930
|
-
readonly 'webdav.usernameHint': 'HTTP Basic 认证用户名(非敏感,可回显)。';
|
|
5931
6040
|
readonly 'webdav.password': '密码';
|
|
5932
6041
|
readonly 'webdav.passwordHint': '将安全写入 DSH credentials(引用名 {ref}),不会写入同步文件或日志。留空表示沿用已保存的凭据。';
|
|
5933
6042
|
readonly 'webdav.passwordSaved': '凭据已配置';
|
|
5934
6043
|
readonly 'webdav.passwordPlaceholder': '密码(可选)';
|
|
5935
|
-
readonly 'webdav.presetHint': '选择常见 WebDAV 服务器可快速填入地址;含 <占位符> 的模板请替换为你的真实服务器/用户名。';
|
|
5936
6044
|
readonly 'webdav.preset.custom': 'Custom URL';
|
|
5937
6045
|
readonly 'webdav.preset.jianguoyun': '坚果云 (Jianguoyun)';
|
|
5938
6046
|
readonly 'webdav.preset.nextcloud': 'Nextcloud';
|
|
@@ -5967,7 +6075,6 @@ declare const zh$3: {
|
|
|
5967
6075
|
readonly 'repoPicker.createFailed': '新建仓库失败';
|
|
5968
6076
|
readonly 'repoPicker.nameRequired': '请填写仓库名。';
|
|
5969
6077
|
readonly 'repoPicker.nameInvalid': '仓库名只能包含字母、数字、点、下划线、连字符(最长 100 字符,不能以点开头)。';
|
|
5970
|
-
readonly 'repoPicker.privateOnly': '新建的仓库固定为私有:公开仓库会公开你的配置内容。';
|
|
5971
6078
|
readonly 'push.title': '推送结果';
|
|
5972
6079
|
readonly 'sections.title': '同步分区';
|
|
5973
6080
|
readonly 'warnings.title': '分区告警';
|
|
@@ -5982,6 +6089,7 @@ declare const zh$3: {
|
|
|
5982
6089
|
readonly 'syncflow.refreshSnapshots': '刷新快照列表';
|
|
5983
6090
|
readonly 'syncflow.latestSnapshot': '最新快照';
|
|
5984
6091
|
readonly 'syncflow.noSnapshots': '远端暂无快照';
|
|
6092
|
+
readonly 'syncflow.snapshotDevice': '由 {device} 推送';
|
|
5985
6093
|
readonly 'syncflow.confirmImport': '确认导入';
|
|
5986
6094
|
readonly 'syncflow.cancel': '取消';
|
|
5987
6095
|
readonly 'syncflow.adoptRemote': '采用远端';
|
|
@@ -6013,19 +6121,18 @@ declare const zh$3: {
|
|
|
6013
6121
|
readonly 'syncflow.pushChanged': '有改动';
|
|
6014
6122
|
readonly 'syncflow.pushUnchanged': '无改动';
|
|
6015
6123
|
readonly 'syncflow.pushConfirm': '确认推送';
|
|
6124
|
+
readonly 'syncflow.pushForce': '内容未变化也新建快照(强制推送)';
|
|
6016
6125
|
readonly 'syncflow.pushFirstBaseline': '远端暂无快照:本次将创建首个同步基线';
|
|
6017
6126
|
readonly 'syncflow.remoteEmptyGuide': '远端还没有任何快照:这是首次同步,先点「推送到远端」把本机配置推上去(推送会创建第一个快照),之后才能拉取。';
|
|
6018
6127
|
readonly 'mode.title': '同步分区';
|
|
6019
|
-
readonly 'mode.hint': '同步范围 = 勾选的分区集合(默认已勾选推荐分区,可随时改)。';
|
|
6020
6128
|
readonly 'mode.selectedCount': '已勾选 {n} / {total}';
|
|
6021
|
-
readonly 'mode.sectionsHint': '默认可同步的是可移植分区;平台相关分区(MCP 服务器)与设备相关分区(插件文件、凭据状态、历史会话)只有你在这里主动勾选才参与同步。';
|
|
6022
6129
|
readonly 'mode.deletePlugins': '跟随远端删除插件';
|
|
6023
6130
|
readonly 'mode.deletePluginsHint': '远端快照里已经没有、本机也没改过的插件会被卸载(判断依据是共同祖先里还有它 —— 那只可能是别处删掉了)。卸载只发生在插件分区真正被应用的那一轮;失败逐项提示、其余同步照常完成。desktop 保留档案与宿主自己不会被删。';
|
|
6024
6131
|
readonly 'mode.atLeastOne': '请至少勾选一个同步分区';
|
|
6025
|
-
readonly 'mode.sectionPortable': '可移植';
|
|
6132
|
+
readonly 'mode.sectionPortable': '可移植 · 默认同步';
|
|
6026
6133
|
readonly 'mode.sectionRecommended': '推荐';
|
|
6027
|
-
readonly 'mode.sectionDeviceSpecific': '设备相关';
|
|
6028
|
-
readonly 'mode.sectionPlatformSpecific': '平台相关';
|
|
6134
|
+
readonly 'mode.sectionDeviceSpecific': '设备相关 · 默认不同步';
|
|
6135
|
+
readonly 'mode.sectionPlatformSpecific': '平台相关 · 默认不同步';
|
|
6029
6136
|
readonly 'mode.mcpHint': 'MCP 服务器按 patch 行写回(导入时落回原层)。按包安装的 stdio 服务器(npx / uvx / pipx)配置本身可跨机;若 command / args / cwd 里是绝对路径,或目标机没装对应运行时,导入分析会给出提示 —— 配置会照常写入,但服务器在目标机可能起不来。';
|
|
6030
6137
|
readonly 'mode.sessionsLimit': '同步最近多少个会话';
|
|
6031
6138
|
readonly 'mode.sessionsLimitHint': '历史会话内容敏感,默认只带最近的 5 个(0 = 只勾选不带会话);单位是一个会话目录,同一会话的全部日志一起走。';
|
|
@@ -6041,19 +6148,24 @@ declare const zh$3: {
|
|
|
6041
6148
|
readonly 'mode.pickerHint': '改动即时生效并保存(关闭弹窗即完成)。';
|
|
6042
6149
|
readonly 'mode.pickerBack': '返回分区列表';
|
|
6043
6150
|
readonly 'mode.pickerDone': '完成';
|
|
6044
|
-
readonly 'mode.
|
|
6151
|
+
readonly 'mode.settingsTitle': '同步设置';
|
|
6152
|
+
readonly 'mode.settingsOpen': '设置';
|
|
6153
|
+
readonly 'mode.tabContent': '同步内容';
|
|
6154
|
+
readonly 'mode.tabAutosync': '自动同步';
|
|
6155
|
+
readonly 'mode.tabSecurity': '加密与密码';
|
|
6156
|
+
readonly 'mode.encryptOn': '加密已开';
|
|
6157
|
+
readonly 'mode.encryptOff': '未加密';
|
|
6158
|
+
readonly 'mode.security': '加密与密钥导出';
|
|
6045
6159
|
readonly 'mode.encrypt': '加密备份';
|
|
6046
|
-
readonly 'mode.encryptHint': '用密码加密同步快照(AES-256-GCM
|
|
6160
|
+
readonly 'mode.encryptHint': '用密码加密同步快照(AES-256-GCM)。密码存在本机 DSH 凭据库(~/.dsh/.credentials.yaml)长期复用:不写进同步文件、日志或备份(除非同时勾选「导出密钥」)。自动同步没有密码,遇到加密快照会跳过并在同步历史提示。';
|
|
6047
6161
|
readonly 'mode.password': '加密密码';
|
|
6048
6162
|
readonly 'mode.passwordConfirm': '确认密码';
|
|
6049
6163
|
readonly 'mode.passwordMismatch': '两次输入的密码不一致';
|
|
6050
6164
|
readonly 'mode.passwordRequired': '加密必须设置密码';
|
|
6051
|
-
readonly 'mode.passwordSavedHint': '本机已保存密码:留空即沿用,输入新密码会覆盖已保存的密码。';
|
|
6052
6165
|
readonly 'mode.passwordPlaceholder': '已保存(留空即沿用)';
|
|
6053
6166
|
readonly 'mode.passwordClearNotice': '取消勾选会删除已保存的密码';
|
|
6054
6167
|
readonly 'mode.includeSecrets': '导出密钥';
|
|
6055
6168
|
readonly 'mode.includeSecretsHint': '把真实凭据值(~/.dsh/.credentials.yaml)写入加密快照,可在另一台机器上随同步一并写回本机凭据;勾选时自动选中加密,密钥绝不进入未加密快照。';
|
|
6056
|
-
readonly 'mode.encryptAutosyncNotice': '加密快照仅通过手动推送/拉取使用;自动同步无密码,遇到加密快照会跳过并在历史中提示。';
|
|
6057
6169
|
readonly 'mode.decryptPassword': '解密密码(加密快照拉取/同步用,可选)';
|
|
6058
6170
|
readonly 'mode.decryptPasswordHint': '输入后保存在本机凭据库,下次拉取自动使用;只有拉取的快照确实加密时才会用到 —— 未加密的备份不会使用密码。';
|
|
6059
6171
|
readonly 'mode.decryptPasswordSaved': '已保存到本机';
|
|
@@ -6061,6 +6173,7 @@ declare const zh$3: {
|
|
|
6061
6173
|
readonly 'mode.clearSavedPassword': '删除已保存密码';
|
|
6062
6174
|
readonly 'autosync.title': '自动同步';
|
|
6063
6175
|
readonly 'autosync.description': '开启后,DSH 在后台保持配置一致:本地配置有改动时自动上传,检测到远端有新快照时才自动拉取合并;定时器仅作兜底轮询,无变化不重复动作。仅在无冲突且无需人工干预时才自动写入本地。';
|
|
6176
|
+
readonly 'autosync.retentionNotice': '远端快照与定时备份共用同一份保留策略(会裁剪旧快照),在首页「定时备份」里设置。';
|
|
6064
6177
|
readonly 'autosync.enable': '启用';
|
|
6065
6178
|
readonly 'autosync.interval': '兜底轮询间隔';
|
|
6066
6179
|
readonly 'autosync.intervalHint': '兜底检查节奏:间隔到点 / DSH 启动时检查远端是否有新快照,有才拉取合并。启用「本地改动即时同步」后,保存配置会立刻触发一轮,不必等这里。';
|
|
@@ -6090,8 +6203,10 @@ declare const zh$3: {
|
|
|
6090
6203
|
readonly 'autosync.partial': '部分成功';
|
|
6091
6204
|
readonly 'autosync.skipReasonLabel': '跳过原因';
|
|
6092
6205
|
readonly 'autosync.skipReasonConflictCount': '{reason}(远端另有 {n} 个分区待确认,可在同步页手动处理)';
|
|
6206
|
+
readonly 'autosync.pendingMerge': '待裁决 {n} 个分区(自 {time})';
|
|
6093
6207
|
readonly 'autosync.lastMessage': '本轮消息';
|
|
6094
6208
|
readonly 'history.title': '同步历史';
|
|
6209
|
+
readonly 'history.refresh': '刷新';
|
|
6095
6210
|
readonly 'history.empty': '尚无同步历史';
|
|
6096
6211
|
readonly 'history.emptyHint': '完成首次推送 / 从远端合并 / 自动同步后,这里会显示记录。';
|
|
6097
6212
|
readonly 'history.colTime': '时间';
|
|
@@ -6115,12 +6230,16 @@ declare const zh$3: {
|
|
|
6115
6230
|
readonly 'history.autosyncReasonUnknown': '未知';
|
|
6116
6231
|
readonly 'history.autosyncReasonConflictKeptLocal': '已按策略保留本机并覆盖远端';
|
|
6117
6232
|
readonly 'history.autosyncReasonUpToDate': '无变化(本地与远端一致)';
|
|
6233
|
+
readonly 'history.autosyncReasonWarning': '部分内容未落地(详情见本轮告警)';
|
|
6118
6234
|
readonly 'history.autosyncReasonUnchanged': '远端无新快照,无需合并';
|
|
6235
|
+
readonly 'history.autosyncReasonAllConflicted': '有分区仍在等冲突裁决,本轮未上传(裁决后会照常推送)';
|
|
6119
6236
|
readonly 'history.autosyncConflicted': '跳过冲突分区:{sections}';
|
|
6120
6237
|
readonly 'history.autosyncApplied': '应用分区:{sections}';
|
|
6121
6238
|
readonly 'history.autosyncError': '错误:{error}';
|
|
6122
6239
|
readonly 'history.channelGit': 'GitHub';
|
|
6123
6240
|
readonly 'history.channelWebdav': 'WebDAV';
|
|
6241
|
+
readonly 'history.channelS3': 'S3';
|
|
6242
|
+
readonly 'history.channelGist': 'Gist';
|
|
6124
6243
|
readonly 'history.stats.total': '共 {count} 条';
|
|
6125
6244
|
readonly 'history.stats.autosync': '自动同步 {count}';
|
|
6126
6245
|
readonly 'history.stats.failed': '失败 {count}';
|
|
@@ -6128,8 +6247,6 @@ declare const zh$3: {
|
|
|
6128
6247
|
readonly 'history.stats.summary': '同步历史统计';
|
|
6129
6248
|
readonly 'toast.autosyncLoadFailed': '读取自动同步状态失败';
|
|
6130
6249
|
readonly 'toast.configSaveFailed': '保存通道配置失败';
|
|
6131
|
-
readonly 'toast.configSaved': '通道配置已保存';
|
|
6132
|
-
readonly 'toast.configNothingToSave': '请先填写通道地址再保存';
|
|
6133
6250
|
readonly 'toast.channelCleared': '{channel} 配置已断开';
|
|
6134
6251
|
readonly 'toast.githubCodeCopied': '已复制一次性授权代码 {code}';
|
|
6135
6252
|
readonly 'toast.githubCodeCopyFailed': '自动复制失败,请手动复制上面的一次性授权代码';
|
|
@@ -6138,6 +6255,8 @@ declare const zh$3: {
|
|
|
6138
6255
|
readonly 'toast.pushPreviewFailed': '推送预览失败';
|
|
6139
6256
|
readonly 'toast.pushFailed': '推送失败';
|
|
6140
6257
|
readonly 'toast.pushDone': '推送完成';
|
|
6258
|
+
readonly 'toast.pushSkipped': '内容未变化,已跳过';
|
|
6259
|
+
readonly 'toast.pushAllConflicted': '未推送任何分区:还有分区待冲突裁决';
|
|
6141
6260
|
readonly 'toast.syncStartFailed': '从远端合并失败';
|
|
6142
6261
|
readonly 'toast.autosyncUpdateFailed': '自动同步设置更新失败';
|
|
6143
6262
|
readonly 'toast.autosyncUpdated': '自动同步设置已更新';
|
|
@@ -6157,7 +6276,6 @@ declare const zh$3: {
|
|
|
6157
6276
|
readonly 'syncflow.importPartialToast': '部分成功:{n} 项未生效,请查看结果明细';
|
|
6158
6277
|
readonly 'syncflow.importPartial': '部分成功:{n} 项未生效(其余已写入,未整体回滚)';
|
|
6159
6278
|
readonly 'syncflow.ineffectiveItems': '未生效项';
|
|
6160
|
-
readonly 'history.remoteMovedAction': '在产物库查看远端快照';
|
|
6161
6279
|
readonly 'syncflow.compat.excellent': '兼容性:优秀';
|
|
6162
6280
|
readonly 'syncflow.compat.good': '兼容性:良好(备份来自更旧的 DSH)';
|
|
6163
6281
|
readonly 'syncflow.compat.partial': '兼容性:部分兼容(跨平台 / 分区缺失 / 版本超前,需人工确认)';
|
|
@@ -6165,7 +6283,6 @@ declare const zh$3: {
|
|
|
6165
6283
|
readonly 'cloud.s3Title': '对象存储(S3 兼容)';
|
|
6166
6284
|
readonly 'cloud.gistTitle': 'GitHub Gist';
|
|
6167
6285
|
readonly 'cloud.provider': '兼容商';
|
|
6168
|
-
readonly 'cloud.providerHint': '五家共用同一套 SigV4 签名实现;端点与寻址风格按兼容商取缺省。';
|
|
6169
6286
|
readonly 'cloud.provider.s3': 'AWS S3';
|
|
6170
6287
|
readonly 'cloud.provider.oss': '阿里云 OSS';
|
|
6171
6288
|
readonly 'cloud.provider.cos': '腾讯云 COS';
|
|
@@ -6281,7 +6398,13 @@ declare const zh$3: {
|
|
|
6281
6398
|
readonly 'probe.createdCollections': '已在远端自动创建目录:{list}';
|
|
6282
6399
|
readonly 'probe.snapshotCount': '远端现有快照:{count} 份';
|
|
6283
6400
|
readonly 'probe.unsupported': '该通道不提供连通性自检';
|
|
6284
|
-
readonly '
|
|
6401
|
+
readonly 'mode.tabAutosyncSecurity': '设置';
|
|
6402
|
+
readonly 'mode.pluginsGroup': '插件';
|
|
6403
|
+
readonly 'mode.decryptGroup': '解密密码';
|
|
6404
|
+
readonly 'mode.decryptPasswordShort': '解密密码';
|
|
6405
|
+
readonly 'mode.securityHint': '这一段管两件事:加密备份把同步快照上密码,导出密钥把本机真实凭据一起放进加密快照。两者都需要加密开启;密码与凭据都存本机凭据库,不进同步文件、日志或备份。';
|
|
6406
|
+
readonly 'mode.passwordHint': '两个框填一致才会保存;失焦即落库,之后留空表示沿用已保存的密码。取消勾选「加密备份」会删掉已存密码。';
|
|
6407
|
+
readonly 'mode.pluginsGroupHint': '这一段的设置只作用于「插件」分区:远端已删、本机没改过的插件会被卸载,失败逐项提示、其余同步照常完成。';
|
|
6285
6408
|
};
|
|
6286
6409
|
/** 字典键联合(注册处 compile-time 校验) */
|
|
6287
6410
|
type SyncKey = keyof typeof zh$3;
|
|
@@ -6319,7 +6442,6 @@ declare const zh$2: {
|
|
|
6319
6442
|
readonly 'list.sortStars': '⭐ 最多';
|
|
6320
6443
|
readonly 'list.sortName': '名称 A–Z';
|
|
6321
6444
|
readonly 'list.stars': '⭐ {count}';
|
|
6322
|
-
readonly 'list.starsHint': '来源仓库 star 数(仓库级,非本条目)';
|
|
6323
6445
|
readonly 'list.count': '共 {count} 个条目';
|
|
6324
6446
|
readonly 'list.filtered': '(筛选后 {count} 个)';
|
|
6325
6447
|
readonly 'list.cacheCached': '已缓存';
|
|
@@ -6406,7 +6528,6 @@ declare const zh$2: {
|
|
|
6406
6528
|
readonly 'myconfigs.upload.validateSecrets': '包含密钥:市场通道永不携带秘密,拒绝上传';
|
|
6407
6529
|
readonly 'myconfigs.upload.validateInvalid': '内容校验未通过,无法上传';
|
|
6408
6530
|
readonly 'myconfigs.upload.form.name': '名称';
|
|
6409
|
-
readonly 'myconfigs.upload.form.nameHint': '预填 zip 文件名,可修改';
|
|
6410
6531
|
readonly 'myconfigs.upload.form.description': '描述(可选)';
|
|
6411
6532
|
readonly 'myconfigs.upload.form.categories': '类别(可选,逗号分隔)';
|
|
6412
6533
|
readonly 'myconfigs.upload.form.autoTitle': '自动生成';
|
|
@@ -6418,7 +6539,6 @@ declare const zh$2: {
|
|
|
6418
6539
|
readonly 'myconfigs.update.title': '更新配置';
|
|
6419
6540
|
readonly 'myconfigs.update.hint': '版本自动 +1';
|
|
6420
6541
|
readonly 'myconfigs.update.run': '一键更新';
|
|
6421
|
-
readonly 'myconfigs.update.zipHint': '选择新 zip 后自动校验,通过才能更新。';
|
|
6422
6542
|
readonly 'myconfigs.update.selectZip': '选择新 ZIP…';
|
|
6423
6543
|
readonly 'myconfigs.result.title': '上传/更新完成';
|
|
6424
6544
|
readonly 'myconfigs.result.version': '版本 {version}';
|
|
@@ -6529,7 +6649,7 @@ declare const zh$1: {
|
|
|
6529
6649
|
readonly 'recovery.environment.compatible': '环境匹配';
|
|
6530
6650
|
readonly 'recovery.environment.incompatible': '环境不匹配(可能来自其他机器/安装)';
|
|
6531
6651
|
readonly 'recovery.preview.title': '恢复预览';
|
|
6532
|
-
readonly 'recovery.preview.hint': '
|
|
6652
|
+
readonly 'recovery.preview.hint': '只读预览 · 零写入 · 确认后才执行恢复';
|
|
6533
6653
|
readonly 'recovery.preview.loading': '正在生成预览…';
|
|
6534
6654
|
readonly 'recovery.confirm.title': '确认恢复';
|
|
6535
6655
|
readonly 'recovery.confirm.message': '恢复/回滚是危险操作。确认执行?系统会先把当前文件备份到一个安全位置。';
|
|
@@ -6572,6 +6692,8 @@ declare const zh$1: {
|
|
|
6572
6692
|
readonly 'recovery.crash.advice.check-patch-tree': '进入救援模式后逐个禁用插件排查';
|
|
6573
6693
|
readonly 'recovery.rescue.title': '救援模式';
|
|
6574
6694
|
readonly 'recovery.rescue.desc': 'DSH 因插件起不来时,把插件挂载收窄到「DSH 核心 + 本插件」:改写两层 cordis.patch.yml,并把 dsh.profile.bundles 里的其它用户插件临时移出。不卸载任何包,退出时从备份完整还原。';
|
|
6695
|
+
readonly 'recovery.rescue.short': '停用依赖校验,仅在插件自身无法启动时使用';
|
|
6696
|
+
readonly 'recovery.refresh': '刷新';
|
|
6575
6697
|
readonly 'recovery.rescue.inactive': '救援模式未开启';
|
|
6576
6698
|
readonly 'recovery.rescue.activeBadge': '已开启';
|
|
6577
6699
|
readonly 'recovery.rescue.active': '救援模式已开启({time})—— 请重启 DSH 使其生效。';
|
|
@@ -6819,7 +6941,7 @@ declare const zh$1: {
|
|
|
6819
6941
|
readonly 'rollback.warn.unknown': '未识别的告警(技术细节见下方)';
|
|
6820
6942
|
readonly 'rollback.preview': '预览回退';
|
|
6821
6943
|
readonly 'rollback.preview.title': '回退预览';
|
|
6822
|
-
readonly 'rollback.preview.hint': '
|
|
6944
|
+
readonly 'rollback.preview.hint': '只读预览 · 零写入 · 确认后才执行回退';
|
|
6823
6945
|
readonly 'rollback.preview.loading': '正在生成预览…';
|
|
6824
6946
|
readonly 'rollback.preview.empty': '该回滚点没有可回退的内容。';
|
|
6825
6947
|
readonly 'rollback.preview.none': '该点没有可回退的内容';
|
|
@@ -6941,7 +7063,7 @@ declare const zh$1: {
|
|
|
6941
7063
|
readonly 'sessions.layout.planEmpty': '计划里没有需要执行的动作。';
|
|
6942
7064
|
readonly 'sessions.layout.apiMissing': '当前接口不支持布局归位(缺少 layoutRepairSessions);请更新插件后重试 —— 本机未做任何改动。';
|
|
6943
7065
|
readonly 'sessions.layout.planTitle': '布局归位计划(只读,尚未改动任何文件)';
|
|
6944
|
-
readonly 'sessions.layout.planReadOnly': '
|
|
7066
|
+
readonly 'sessions.layout.planReadOnly': '只读预览 · 零写入';
|
|
6945
7067
|
readonly 'sessions.layout.noCandidates': '本机没有需要归位或隔离的会话。';
|
|
6946
7068
|
readonly 'sessions.layout.summary': '归位 {move} · 隔离 {quarantine}';
|
|
6947
7069
|
readonly 'sessions.layout.planSkipped': '只报告 {count} 条';
|
|
@@ -6996,7 +7118,7 @@ type RecoveryKey = keyof typeof zh$1;
|
|
|
6996
7118
|
type KindKey = `history.kind.${MigrationKind}`;
|
|
6997
7119
|
type ResultKey = `history.result.${MigrationResult}`;
|
|
6998
7120
|
type CommonKey = 'history.subtitle' | 'history.empty' | 'history.loading' | 'history.corruptedBanner' | 'history.corruptedCount' | 'history.stats.total' | 'history.stats.success' | 'history.stats.failed' | 'history.stats.skipped' | 'history.filter.kind' | 'history.filter.result' | 'history.filter.recent' | 'history.filter.recent.all' | 'history.filter.recent.50' | 'history.filter.recent.200' | 'history.search.placeholder' | 'history.export.json' | 'history.export.markdown' | 'history.exported' | 'history.exporting' | 'history.exportError' | 'history.refresh' | 'history.refreshError' | 'history.retention.label' | 'history.retention.hint' | 'history.retention.unlimited' | 'history.retention.units' | 'history.retention.current' | 'history.retention.runNow' | 'history.retention.running' | 'history.retention.cleaned' | 'history.retention.noop' | 'history.retention.saveError' |
|
|
6999
|
-
/**
|
|
7121
|
+
/** 说明按钮的可访问名(2026-11-14 起 ⓘ 已下线、代码不再消费;键与四本字典口径一并保留,免得下游按键取文案时缺项) */
|
|
7000
7122
|
'common.infoHint';
|
|
7001
7123
|
type HistoryKey = KindKey | ResultKey | CommonKey;
|
|
7002
7124
|
/**
|
|
@@ -7181,5 +7303,4 @@ export type { AboutPanelProps, ChatKey, ConfigManagerApiError, ConfigManagerKey,
|
|
|
7181
7303
|
|
|
7182
7304
|
return module.exports;
|
|
7183
7305
|
}
|
|
7184
|
-
});
|
|
7185
|
-
//# sourceMappingURL=client.d.ts.map
|
|
7306
|
+
});
|