devbox/internal
shoemoney abab3b5ff9 feat(M8): restore preserves uncommitted edits (never lose a byte) 🛟
Closes the audit's deferred #18 — the right way this time. An explicit
'devbox restore' no longer silently clobbers UNCOMMITTED local edits:

- captureUncommitted reads the bytes of any local file that differs from
  BOTH the snapshot being restored AND the current hub head (== an edit
  that was never pushed) BEFORE the restore overwrites/deletes it.
- After applySnapshot runs, those bytes are written back as .conflict-
  <host>-<ts> copies (discoverable via 'devbox conflicts', and they
  propagate like any conflict copy).

The head comparison is the key: a CLEAN restore (no uncommitted edits)
captures nothing and reproduces the snapshot exactly — TestRestoreWholeTree
still passes. Capture-before / write-after ordering means applySnapshot's
delete pass never eats the copy. Refactored the conflict-name probe into a
shared freeConflictName. Deploy stays as-is (read-only/pinned mounts have
no uncommitted edits to lose). New test: an uncommitted v3 survives a
revert to v1 as a conflict copy. 18 pkgs -race green; windows builds.
2026-06-23 11:44:45 -05:00
..
chunk feat(M3): live two-way sync — SSE fan-out + daemon + mount 🔄 2026-06-23 00:12:39 -05:00
config feat(M6.5): devbox deploy — pin a mount to a snapshot (no push) 🚀 2026-06-23 01:17:20 -05:00
control refactor: ponytail-audit cuts — dead Windows Publish stub + dedup Daemon iface 🧹 2026-06-23 11:13:38 -05:00
daemon refactor(M8): drop the control /events SSE stream — no consumer yet (ponytail) ✂️ 2026-06-23 10:50:45 -05:00
hooks refactor(M7): cmp.Or for editor env, share hooks.Executable (ponytail) ♻️ 2026-06-23 01:32:22 -05:00
hub feat(M8a): device-facing invites with privilege attenuation ✉️🔐 2026-06-23 11:31:29 -05:00
identity feat(M2): wire protocol foundation 🔌 2026-06-22 23:30:01 -05:00
ignore fix(sec): secret guard no longer leaks creds — case-insensitive + more patterns 🔑🛡️ 2026-06-23 02:15:28 -05:00
manifest feat(M4) + harden: bandwidth cap + M3 review fixes 🔒🛡️ 2026-06-23 00:29:50 -05:00
secret fix(sec): secret guard no longer leaks creds — case-insensitive + more patterns 🔑🛡️ 2026-06-23 02:15:28 -05:00
syncer feat(M8): restore preserves uncommitted edits (never lose a byte) 🛟 2026-06-23 11:44:45 -05:00
transport feat(M8a): device-facing invites with privilege attenuation ✉️🔐 2026-06-23 11:31:29 -05:00
watch fix: foundation hardening from review pass 🛡️ 2026-06-22 23:24:55 -05:00