- cordis.patch.yml now inserts five rows (dsh-brain-cloudsync / -memory /
-skills / -mcp / -settings-ui), each resolving to a package subpath
export; the host Settings -> Plugins page toggles them per row id.
- src/kernel.ts: process-level singleton holding every service object;
entries only register their own routes/tools/timers through ctx.effect,
so disabling one row tears down exactly its slice. Settings persist in
C:\Users\qyh15\.dsh/dsh-brain.json, so any row may seed the kernel.
- routes.ts: mcp flag gates the capability fragment; status payload and
core routes (status/capabilities/config/migrate) are exported for the
settings-ui entry; legacyAliases() lets each entry alias its own slice.
- src/entries/{cloudsync,memory,skills,mcp,settings-ui}.ts: per-bundle
appliers. src/index.ts becomes the compat root that applies all five
for older single-row profiles; /status reports which siblings are on.
- package.json: exports + ./cloudsync ./memory ./skills ./mcp
./settings-ui (lib/entries/*), version 0.9.11.
- verify-plugin-entry.mjs: per-entry route/tool slice checks plus
active-bundle gating and the compat root.
Re-implements the upstream features lost during the six-bundle rebase,
on top of the refactored SkillRepository/SkillSync seams:
- SkillRepositoryFile carries mtimeMs; walkSkillFiles collects it.
- DOWN pass: local drift and name collisions auto-resolve by content
and modification time (identical bytes adopt the cloud identity; a
clearly newer side wins, the losing local copy is backed up under
C:\Users\qyh15\.dsh/.dsh-brain-backups/sync/); equal or missing timestamps
stay human conflicts.
- UP pass: identical cloud bytes re-pin or adopt the revision without
an upload; revision drift picks the newer side; a conflict flagged
in the DOWN pass is not double-reported.
- resolveConflicts(action) resolves every current conflict with one
keep_local/take_cloud action, collecting per-item failures.
- POST /dsh-brain/sync/resolve-all serves the batch over the routes
bundle; verify-sync-resolve.mjs wires the second scenario through
the repository seam like the first (SkillSync now requires it).
The skill bundle now owns the directory format helpers (skills/shared.ts), the local skill file store (skills/repository.ts) and publishes the SkillRepository/SkillSyncGate contracts; the sync engine keeps the cloud protocol, sidecar state and conflict policy, touching the disk only through the repository. Format helpers stay re-exported from skill-sync.ts so existing import sites keep working.
Adds POST /dsh-brain/sync/resolve-all {action: keep_local|take_cloud} and 全部保留本地 / 全部采用云端 buttons with an inline confirmation step. Partial failures are reported per item (resolved / failed lists) instead of aborting the batch; per-item resolution stays available.
Same-name skills no longer always stop for a human: identical bytes adopt the delivery marker in place, differing bytes compare local file mtime with the center updated_at and the newer side wins (cloud overwrite backs the local folder up first). Equal or missing timestamps, unsupported upload layouts and script-review flags still surface as per-item conflicts, so there is no batch action.