Commit Graph

7 Commits

Author SHA1 Message Date
newbie cae5c08a80 fix(skill-sync): bind conflict resolution to the confirmed preview snapshot 2026-11-24 22:50:32 +08:00
newbie 1dfc7c7380 feat: complete local memory and Mnemon integration (0.10.1) 2026-11-24 20:27:22 +08:00
newbie 55a0e09df8 feat(skill-sync): port 0.9.9/0.9.10 auto-resolve and batch resolve onto the bundle seams
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).
2026-11-23 20:48:42 +08:00
newbie 19eb15b231 refactor(skills): split the skill/cloud-sync seam behind SkillRepository and SkillSyncGate
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.
2026-11-23 20:25:54 +08:00
newbie d2bd955aa9 feat(skills): batch resolve all sync conflicts (0.9.10)
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.
2026-11-14 16:05:09 +08:00
newbie 89af1f4c7c fix: keep skill source state mutually exclusive 2026-11-12 19:04:40 +08:00
QQ 6ea210898e 更新 verify-sync-resolve.mjs 2026-11-12 00:03:46 +08:00