dsh-config-sync-plugin 0.4.8 → 0.4.10
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/README.en.md +2 -2
- package/README.en.md.bak-0410 +830 -0
- package/README.md +2 -2
- package/README.md.bak-0410 +822 -0
- package/client.js +3790 -3790
- package/index.js +5055 -5041
- package/package.json +1 -1
- package/runtime/apply.ps1 +9 -16
- package/runtime/apply.ps1.bak-0410 +1646 -0
- package/runtime/sync.ps1 +1117 -1029
- package/runtime/sync.ps1.bak-0410 +1117 -0
- package/tools/selftest.mjs +42 -0
- package/tools/selftest.mjs.bak-0410 +2045 -0
package/README.en.md
CHANGED
|
@@ -43,7 +43,7 @@ Source A Remote (Gitee / GitHub / …) Target B
|
|
|
43
43
|
|
|
44
44
|
| Item | Requirement | When missing |
|
|
45
45
|
|---|---|---|
|
|
46
|
-
| Client version |
|
|
46
|
+
| Client version | Since 0.4.10 no need to match: version differences only show a notice, pull is not blocked (experimental bundles are still dropped) | `version mismatch` notice in the panel/log; configs still sync |
|
|
47
47
|
| Target `.dsh` | The client must have run at least once, so `profiles\<profile>` exists | `[X] target profile does not exist (DSH never installed here?)` → pull aborts |
|
|
48
48
|
| Node / Electron runner | Ships with the client (`<AppRoot>\node.exe` or `DeepSeek Harness.exe`) | `no usable built-in runtime`, session cwd is not rewritten → **the session list stays empty** |
|
|
49
49
|
| Repo skeleton | Written automatically by the source machine's initial push | A repo with only `settings\` and no `apply.ps1` cannot run on B; redo the initial push |
|
|
@@ -636,7 +636,7 @@ The panel has a "Sync content" card (placed at the very bottom of the page): the
|
|
|
636
636
|
- Skipping applies to **both directions**: `capture.ps1` stops capturing (nothing new lands in the repo) and `apply.ps1` stops restoring (your machine is untouched). `-PruneSkills` also stops treating "a skill you unchecked" as an extra to delete.
|
|
637
637
|
- The card carries one more switch, "Also delete the cloud copy when unchecked", **off by default**: while off, unchecking just means "this machine stops caring" and the cloud copy stays, so re-ticking resumes immediately; when on, unchecking really deletes the matching folder/sub-path from the repo on the next push (the other machine can no longer pull it) and **that deletion cannot be undone**.
|
|
638
638
|
- Items you cannot tick (the five profile files, mnemon) are deliberately group-level switches: the lockfile specifiers must match package.json, and excluding one alone breaks installation.
|
|
639
|
-
- **The "Local profile" group is required and cannot be unchecked** (the panel shows "required" and greys the checkbox out). It is not an optional extra but a precondition of `apply.ps1`: when `profile\package.json` or `profile\cordis.patch.yml` is missing from the repo, a pull stops with `[X] 仓库内容不完整`; and `profile\host-contract.json` in the same group
|
|
639
|
+
- **The "Local profile" group is required and cannot be unchecked** (the panel shows "required" and greys the checkbox out). It is not an optional extra but a precondition of `apply.ps1`: when `profile\package.json` or `profile\cordis.patch.yml` is missing from the repo, a pull stops with `[X] 仓库内容不完整`; and `profile\host-contract.json` in the same group since 0.4.10 only feeds the "App / contract" info strip — version differences no longer block pull. Editing `config-sync-scope.json` to `false` does not help either: `capture.ps1`, `apply.ps1` and the panel all treat it as on (`Test-SyncGroupEnabled` pins it).
|
|
640
640
|
|
|
641
641
|
## Plugin data & extra paths (0.3.51)
|
|
642
642
|
|