Commit Graph

3 Commits

Author SHA1 Message Date
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 cb7bc0c19b refactor(routes): extract bundle route modules behind the root aggregator 2026-11-23 20:26:43 +08:00