dsh-brain/lib/skills
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
..
contracts.js refactor(skills): split the skill/cloud-sync seam behind SkillRepository and SkillSyncGate 2026-11-23 20:25:54 +08:00
repository.js feat(skill-sync): port 0.9.9/0.9.10 auto-resolve and batch resolve onto the bundle seams 2026-11-23 20:48:42 +08:00
routes.js refactor(routes): extract bundle route modules behind the root aggregator 2026-11-23 20:26:43 +08:00
shared.js refactor(skills): split the skill/cloud-sync seam behind SkillRepository and SkillSyncGate 2026-11-23 20:25:54 +08:00