dsh-config-manager 0.1.35 → 0.1.37
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 +6 -0
- package/lib/client.js +932 -232
- package/lib/client.js.map +1 -1
- package/lib/core/messages.d.ts +1 -0
- package/lib/core/messages.js +2 -0
- package/lib/core/messages.js.map +1 -1
- package/lib/index.js +6 -2
- package/lib/index.js.map +1 -1
- package/lib/market/prepare.js +47 -1
- package/lib/market/prepare.js.map +1 -1
- package/lib/market/security.js +6 -1
- package/lib/market/security.js.map +1 -1
- package/lib/market/types.d.ts +8 -0
- package/lib/market/types.js +8 -0
- package/lib/market/types.js.map +1 -1
- package/lib/sync/autosync-scheduler.d.ts +2 -0
- package/lib/sync/autosync-scheduler.js +15 -11
- package/lib/sync/autosync-scheduler.js.map +1 -1
- package/lib/sync/git/git-transport.d.ts +15 -4
- package/lib/sync/git/git-transport.js +108 -22
- package/lib/sync/git/git-transport.js.map +1 -1
- package/lib/sync/snapshot-crypto.d.ts +5 -1
- package/lib/sync/snapshot-crypto.js +8 -3
- package/lib/sync/snapshot-crypto.js.map +1 -1
- package/lib/sync/snapshot-json.d.ts +9 -0
- package/lib/sync/snapshot-json.js +107 -0
- package/lib/sync/snapshot-json.js.map +1 -0
- package/lib/sync/sync-engine.js +4 -0
- package/lib/sync/sync-engine.js.map +1 -1
- package/lib/sync/sync-history.d.ts +3 -0
- package/lib/sync/sync-history.js.map +1 -1
- package/lib/sync/transport.d.ts +2 -0
- package/lib/sync/transport.js.map +1 -1
- package/lib/sync/webdav/webdav-transport.d.ts +2 -1
- package/lib/sync/webdav/webdav-transport.js +9 -15
- package/lib/sync/webdav/webdav-transport.js.map +1 -1
- package/package.json +1 -1
- package/src/client/market/MarketPanel.tsx +23 -11
- package/src/client/run-store.test.ts +7 -0
- package/src/client/run-store.ts +29 -6
- package/src/client/snapshots/SnapshotsPanel.tsx +28 -22
- package/src/client/sync/SyncHistoryView.tsx +9 -0
- package/src/client/sync/SyncSettingsView.tsx +63 -60
- package/src/client/sync/sync-api.ts +4 -0
- package/src/client/sync/sync-locales.ts +6 -0
- package/src/core/messages.ts +2 -0
- package/src/index.ts +8 -4
- package/src/market/market.test.ts +62 -0
- package/src/market/prepare.test.ts +76 -0
- package/src/market/prepare.ts +47 -1
- package/src/market/security.ts +6 -1
- package/src/market/types.ts +9 -0
- package/src/sync/autosync-scheduler.test.ts +18 -0
- package/src/sync/autosync-scheduler.ts +16 -11
- package/src/sync/git/git-transport.test.ts +135 -1
- package/src/sync/git/git-transport.ts +103 -21
- package/src/sync/snapshot-crypto.ts +8 -3
- package/src/sync/snapshot-json.test.ts +119 -0
- package/src/sync/snapshot-json.ts +128 -0
- package/src/sync/sync-engine.ts +4 -0
- package/src/sync/sync-history.test.ts +31 -0
- package/src/sync/sync-history.ts +3 -0
- package/src/sync/transport.ts +2 -0
- package/src/sync/webdav/webdav-transport.test.ts +50 -0
- package/src/sync/webdav/webdav-transport.ts +9 -15
package/lib/client.d.ts
CHANGED
|
@@ -901,6 +901,8 @@ interface AutosyncUpdatePayload {
|
|
|
901
901
|
}
|
|
902
902
|
/** 自动同步执行记录(§3.7 AutosyncHistoryEntry)。 */
|
|
903
903
|
interface AutosyncHistoryEntry {
|
|
904
|
+
/** 触发该次运行的同步通道(git / webdav;旧记录缺省 undefined) */
|
|
905
|
+
transport?: SyncTransportType;
|
|
904
906
|
direction: 'pull' | 'push' | 'both';
|
|
905
907
|
status: 'success' | 'skipped' | 'failed' | 'partial';
|
|
906
908
|
/** 跳过原因(冲突项 / 缺失依赖 / Install / 错误 / 无远端 / 网络) */
|
|
@@ -926,6 +928,8 @@ interface SyncHistoryEntry {
|
|
|
926
928
|
kind: 'push' | 'pull' | 'apply' | 'autosync' | 'rollback';
|
|
927
929
|
sectionCount?: number;
|
|
928
930
|
reviewCount?: number;
|
|
931
|
+
/** 快照类条目的触发通道(git / webdav;旧快照缺省 undefined) */
|
|
932
|
+
transport?: string;
|
|
929
933
|
autosync?: AutosyncHistoryEntry;
|
|
930
934
|
}
|
|
931
935
|
/** GET /sync/history 响应:{ entries }。 */
|
|
@@ -1497,6 +1501,8 @@ declare const zh$1: {
|
|
|
1497
1501
|
readonly 'history.autosyncNotified': "已通知(连续失败 3 次)";
|
|
1498
1502
|
readonly 'history.column.snapshot': "快照";
|
|
1499
1503
|
readonly 'history.column.autosync': "自动同步";
|
|
1504
|
+
readonly 'history.channelGit': "GitHub";
|
|
1505
|
+
readonly 'history.channelWebdav': "WebDAV";
|
|
1500
1506
|
readonly 'common.close': "关闭";
|
|
1501
1507
|
readonly 'common.retry': "重试";
|
|
1502
1508
|
readonly 'common.loading': "加载中…";
|