dsh-config-sync-plugin 0.4.22 → 0.4.23

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 CHANGED
@@ -257,6 +257,10 @@ Two display fixes on top of 0.3.77:
257
257
 
258
258
  The "Plugin update" card now shows an **npm download URL** line with the actual fallback addresses (domestic mirror `registry.npmmirror.com` + official `registry.npmjs.org`). When the GitHub release download is unreachable (common in mainland China), the update package automatically falls back to npm. It is still verified against the authoritative sha256 in `version.json` — switching source never relaxes verification. The two sources back each other up: the mirror can briefly 404 during its first-sync window, and the official source takes over. The npm tarball is byte-identical to the GitHub release tgz (same sha256).
259
259
 
260
+ ### 0.4.23 (2026-11-28)
261
+
262
+ - **Cross-machine hide alignment**: fixes "the other machine shows MnemonSkills sessions / untitled sessions after pulling". Mnemon background sessions (id prefix `mnemon-*`) and subagent sessions (bare uuid ids) are always registered in each machine's workspace.json and ride the sync to the peer. DSH view-collapses `origin=subagent` and blank sessions, but synced sessions may fall outside that boundary (e.g. mnemon-task carries turn/start; the first user message in the synced log defeats the blank check), so the peer workbench lists them. Pull now merges these ids into `global.archivedSessionIds` (the native DSH hide channel intercepting list/search/open): **session bodies still sync and stay, they are just hidden from the workbench**; main sessions (`session-` prefix) are untouched and locally hidden/archived sessions are preserved. Re-run "Pull now" after upgrading to align automatically.
263
+
260
264
  ### 0.4.22 (2026-11-28)
261
265
 
262
266
  - **Cross-machine default-workspace convergence**: fixes "after pulling on the other machine, the registry contains two default-workspace entries, one a ghost pointing to C:\Users\...\Documents\deepseek-harness\default-workspace which does not exist locally, with its 2 sessions having no landing directory". Legacy repo snapshots carry the default-workspace entry expanded from the obsolete `{{ROOT:userHome}}` token; when the local Documents folder is redirected (e.g. `D:\Backup\Documents\...`) the two paths differ, so the existing same-path convergence misses it. apply now merges the repo entry's session id sets into the local default-workspace entry by slot/title semantics and drops the ghost; the repo entry is kept when the machine has no default-workspace entry yet (first migration unaffected). After upgrading, click "Pull now" once and the ghost entry disappears automatically.
@@ -813,7 +817,8 @@ Release flow: change code → `pwsh -File tools\pack-plugin.ps1` to pack `releas
813
817
  | `POST /config-sync/settings` | `{repoPath?, remoteUrl?, sshKey?, autoPull?, autoPush?, autoRestart?, backupRoot?, clearBackupRoot?}`: validate → write settings → (touch git only when the URL changed); failure rolls back and returns 400; an empty `backupRoot` / `clearBackupRoot` resets it to the default `~\.dsh\backups`; an empty folder is accepted, only "holds other files yet not a repo" is refused |
814
818
  | `POST /config-sync/auto` | `{action:'check'\|'pull-now'\|'push-now'\|'restore-preview'\|'restore-now'\|'cancel', backupDir?, closeNow?, restart?}`; `check` is a read-only fetch comparison (short-circuits with `pendingPull: true` when the local repo is empty instead of failing), `pull-now`/`push-now`/`restore-now` close the client without `/F` (a normal exit, so config is saved), `push-now` returns 400 on an empty folder; `restore-preview` only computes the diff (`pluginsRemove` / `pluginsInstall` / `willRemove` / `willOverwrite` / `willWrite`), while `restore-now` queues the "restore to that point after exit" run; `auto.pending` in `status` carries `reason` (why it queued) |
815
819
  | `GET/POST /config-sync/update` | `{action:'check'\|'prepare'\|'install-restart'\|'install-live'\|'restart'\|'apply'}`: `check` re-reads the manifest (mirrors tried in order); `prepare` only downloads into `~\.dsh\update-staging\`; `install-restart` hands that local package to the post-exit installer and closes DSH; `install-live` / `apply` / `restart` remain for CLI and compatibility |
816
- | `GET/POST /config-sync/scope` | GET returns the twelve-group scope (`{id,title,desc,enabled,items:[{id,label,enabled,excludable}]}` per group, plus `deleteCloud` and the local file `path`); POST `{deleteCloud?, groups:{id:{enabled?,excluded?}}}` stores only what differs from the default (fully-checked groups are not written) and drops exclusions that no longer exist |
817
- | `GET/POST /config-sync/extra-config` | reads/writes the plugin-data rules (`{config:{pluginData:{enabled,maxFileBytes,exclude,skipDirs},extra:{enabled,paths[]}}}`; ids de-duplicated, paths must be absolute, the size cap is clamped to 100MB; GET also returns `defaults` for the "Restore defaults" button) |
820
+ | `GET/POST /config-sync/scope` | GET returns the twelve-group scope (`{id,title,desc,enabled,items:[{id,label,enabled,excludable}]}` per group, plus `deleteCloud` and the local file `path`); POST `{deleteCloud?, groups:{id:{enabled?,excluded?}}}` stores only what differs from the default (fully-checked groups are not written) and drops exclusions that no longer exist |
821
+ | `GET/POST /config-sync/extra-config` | reads/writes the plugin-data rules (`{config:{pluginData:{enabled,maxFileBytes,exclude,skipDirs},extra:{enabled,paths[]}}}`; ids de-duplicated, paths must be absolute, the size cap is clamped to 100MB; GET also returns `defaults` for the "Restore defaults" button) |
818
822
 
819
823
  Cross-origin requests get 403. The client only `fetch`es these routes, imports no `@deepseek-ai/dsh-client-*`, and styles with `--dsw-alias-*` tokens only. Every request carries `accept-language`, which the host turns into Chinese or English text (`node:async_hooks` `AsyncLocalStorage`, one language per request).
820
824
 
@@ -908,4 +913,4 @@ The log shows which path ran: `文件比较(快筛):比对 N 个,深哈
908
913
  | 2026-11-14 | — | Two machines from scratch (isolated); session log first-frame 4-byte leftover fix |
909
914
  | 2026-11-11 | — | Single-machine isolated end-to-end (install → pull → push → restore) |
910
915
 
911
- Detailed test data is in each version's Release Notes.
916
+ Detailed test data is in each version's Release Notes.