dsh-config-manager 0.5.0 → 0.7.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/client.d.ts +8 -0
- package/lib/client.js +748 -602
- package/lib/core/local-plugin-host.d.ts +9 -0
- package/lib/core/local-plugin-host.js +174 -1
- package/lib/core/messages.d.ts +7 -0
- package/lib/core/messages.js +16 -0
- package/lib/core/migration-history.d.ts +40 -0
- package/lib/core/migration-history.js +55 -0
- package/lib/core/plugin-cli.d.ts +5 -0
- package/lib/core/plugin-cli.js +11 -3
- package/lib/core/run-registry.d.ts +10 -0
- package/lib/core/run-registry.js +17 -0
- package/lib/index.d.ts +7 -2
- package/lib/index.js +20 -19
- package/lib/profiles/dsh-profile-manager.d.ts +1 -1
- package/lib/profiles/dsh-profile-manager.js +26 -7
- package/lib/profiles/dsh-profile-shared.d.ts +3 -1
- package/lib/routes/import.js +6 -1
- package/lib/routes/route-support.d.ts +2 -1
- package/lib/routes/route-support.js +8 -3
- package/lib/routes/sync.js +5 -2
- package/lib/sync/autosync-config.d.ts +9 -1
- package/lib/sync/autosync-config.js +10 -2
- package/lib/sync/autosync-scheduler.js +18 -6
- package/lib/sync/git/git-transport.d.ts +31 -1
- package/lib/sync/git/git-transport.js +119 -23
- package/lib/sync/sync-config.d.ts +34 -3
- package/lib/sync/sync-config.js +38 -5
- package/lib/ui/sync-repository-picker.d.ts +21 -0
- package/lib/ui/sync-repository-picker.js +18 -0
- package/lib/ui/sync-settings-view.d.ts +4 -0
- package/lib/ui/sync-settings-view.js +3 -0
- package/lib/utils/remove-tree.d.ts +7 -0
- package/lib/utils/remove-tree.js +265 -0
- package/package.json +1 -1
- package/src/client/config-manager.module.css +21 -1
- package/src/client/environment/EnvironmentPanel.tsx +2 -2
- package/src/client/locales/profiles.ts +2 -0
- package/src/client/run-store.test.ts +1 -1
- package/src/client/run-store.ts +5 -0
- package/src/client/sync/ChannelConfigDialog.tsx +47 -2
- package/src/client/sync/SyncPanel.tsx +17 -30
- package/src/client/sync/SyncRepositoryPicker.tsx +34 -13
- package/src/client/sync/SyncSettingsView.test.ts +32 -0
- package/src/client/sync/config-save-state.test.ts +99 -0
- package/src/client/sync/config-save-state.ts +69 -0
- package/src/client/sync/sync-api.ts +2 -0
- package/src/client/sync/sync-locales.ts +10 -0
- package/src/core/engine-locale.test.ts +4 -0
- package/src/core/local-plugin-host.test.ts +31 -2
- package/src/core/local-plugin-host.ts +175 -2
- package/src/core/messages.ts +16 -0
- package/src/core/migration-history.test.ts +65 -0
- package/src/core/migration-history.ts +70 -0
- package/src/core/plugin-cli.fs.test.ts +30 -3
- package/src/core/plugin-cli.ts +11 -3
- package/src/core/run-registry-runs.test.ts +26 -1
- package/src/core/run-registry.ts +18 -0
- package/src/index.sync.test.ts +27 -0
- package/src/index.ts +21 -21
- package/src/profiles/dsh-profile-manager.test.ts +20 -0
- package/src/profiles/dsh-profile-manager.ts +25 -7
- package/src/profiles/dsh-profile-shared.ts +2 -0
- package/src/routes/import.ts +6 -1
- package/src/routes/route-support.ts +7 -3
- package/src/routes/sync.ts +5 -2
- package/src/sync/autosync-config.ts +10 -2
- package/src/sync/autosync-scheduler.test.ts +61 -1
- package/src/sync/autosync-scheduler.ts +17 -5
- package/src/sync/git/git-transport.test.ts +117 -0
- package/src/sync/git/git-transport.ts +131 -23
- package/src/sync/sync-config.test.ts +59 -1
- package/src/sync/sync-config.ts +51 -5
- package/src/ui/sync-repository-picker.test.ts +34 -1
- package/src/ui/sync-repository-picker.ts +24 -0
- package/src/ui/sync-settings-view.test.ts +1 -0
- package/src/ui/sync-settings-view.ts +7 -0
- package/src/utils/remove-tree.test.ts +120 -0
- package/src/utils/remove-tree.ts +239 -0
package/lib/client.d.ts
CHANGED
|
@@ -3028,6 +3028,8 @@ interface SyncStatusResponse {
|
|
|
3028
3028
|
configured: boolean;
|
|
3029
3029
|
/** git 通道:已配置的仓库地址(不含 token,可回显;与当前通道无关,配置过即返回) */
|
|
3030
3030
|
repoUrl?: string;
|
|
3031
|
+
/** git 通道:仓库内子目录前缀('' / 缺省 = 仓库根;issue 131,供表单回填) */
|
|
3032
|
+
subdir?: string;
|
|
3031
3033
|
/** git 通道:DSH credentials 中是否已存在 token(describe 只报状态,值永不返回) */
|
|
3032
3034
|
credentialConfigured: boolean;
|
|
3033
3035
|
credentialWritable: boolean;
|
|
@@ -5550,6 +5552,7 @@ declare const zh$4: {
|
|
|
5550
5552
|
readonly 'profiles.error.notRunning': '该档案没有正在运行的实例(可能已被手动关闭)';
|
|
5551
5553
|
readonly 'profiles.error.stopFailed': '停止实例失败';
|
|
5552
5554
|
readonly 'profiles.error.instanceRunning': '该档案的实例正在运行,请先停止再删除';
|
|
5555
|
+
readonly 'profiles.error.deleteFailed': '删除失败:档案目录被占用或权限不足,档案仍在磁盘上';
|
|
5553
5556
|
readonly 'profiles.error.generic': '操作失败:{message}';
|
|
5554
5557
|
readonly 'import.compatibility.sections': '{count} 个分区';
|
|
5555
5558
|
readonly 'import.compatibility.plugins': '已装 {installed} · 待装 {toInstall}';
|
|
@@ -5845,6 +5848,9 @@ declare const zh$3: {
|
|
|
5845
5848
|
readonly 'config.title': '仓库配置';
|
|
5846
5849
|
readonly 'config.repoUrl': '仓库地址';
|
|
5847
5850
|
readonly 'config.repoUrlHint': 'Git 私有仓库地址(https / ssh / 本地路径)。认证 token 请使用下方凭据字段,不要拼入地址。';
|
|
5851
|
+
readonly 'config.gitSubdir': '仓库内子目录';
|
|
5852
|
+
readonly 'config.gitSubdirHint': '留空 = 直接用仓库根目录(旧行为)。填了就把同步内容放进该子目录(如「DSH备份」或「tools/dsh」):多个工具共用一个私有仓库时各自独立。切换子目录不会搬动已有快照 —— 换前缀前先重建工作副本。';
|
|
5853
|
+
readonly 'config.gitSubdirPlaceholder': 'DSH备份(可选)';
|
|
5848
5854
|
readonly 'config.token': '认证 token';
|
|
5849
5855
|
readonly 'config.tokenHint': '将安全写入 DSH credentials(引用名 {ref}),不会写入同步文件或日志。留空表示沿用已保存的凭据。';
|
|
5850
5856
|
readonly 'config.tokenSaved': '凭据已配置';
|
|
@@ -5852,6 +5858,7 @@ declare const zh$3: {
|
|
|
5852
5858
|
readonly 'config.tokenPlaceholder': 'ghp_…(可选)';
|
|
5853
5859
|
readonly 'config.save': '立即保存';
|
|
5854
5860
|
readonly 'config.saveHint': '表单改动会自动保存:密码/token 安全写入 DSH credentials,不会写入同步文件或日志。';
|
|
5861
|
+
readonly 'config.savedTick': '已保存';
|
|
5855
5862
|
readonly 'channel.title': '同步通道';
|
|
5856
5863
|
readonly 'channel.git': 'Git 私有仓库';
|
|
5857
5864
|
readonly 'channel.webdav': 'WebDAV 服务器';
|
|
@@ -5921,6 +5928,7 @@ declare const zh$3: {
|
|
|
5921
5928
|
readonly 'repoPicker.hint': '列出你 GitHub 账号下已有的私有仓库(按最近更新排序),选中即填入下方仓库地址;也可以直接在下方手填地址(ssh / 本地路径 / 不在列表里的仓库)。列表需要先登录 GitHub;新建的仓库一律为私有 —— 公开仓库会公开你的配置内容。';
|
|
5922
5929
|
readonly 'repoPicker.placeholder': '手动填写地址(或从上方选择)';
|
|
5923
5930
|
readonly 'repoPicker.refresh': '刷新列表';
|
|
5931
|
+
readonly 'repoPicker.refreshed': '已刷新:{count} 个私有仓库';
|
|
5924
5932
|
readonly 'repoPicker.forkBadge': 'Fork';
|
|
5925
5933
|
readonly 'repoPicker.empty': '没有可用的私有仓库';
|
|
5926
5934
|
readonly 'repoPicker.loadFailed': '仓库列表加载失败,可重试或直接手填地址。';
|