devbox/cmd/devbox
shoemoney 11fe999ca2 feat(transfer): opt-in gzip blob compression for WAN sync 🌐🗜️
The "changed my mind" feature: deferred as YAGNI on a LAN, but the hub is now
WAN-reachable (port-forwarded), so over-the-internet sync is a real path and
compression earns its keep.

- client (settings.transfer.compress, default off): gzip a blob upload only
  when it actually shrinks — incompressible chunks (media, encrypted) go raw so
  we never inflate the wire. Sets Content-Encoding: gzip. Wired into the daemon
  sync loop and the initial `publish` upload.
- hub: decompresses gzip uploads before hashing, so dedup + content-address
  integrity are unchanged. Bomb-safe — caps BOTH the compressed stream
  (MaxBytesReader) and the decompressed size (LimitReader), rejecting a gzip
  header over a non-gzip body.

Tests: client gzip-when-smaller / raw-when-not, hub decompress round-trip +
bad-gzip rejection. go test ./... -race clean, go vet clean.
2026-06-30 12:34:27 -05:00
..
control.go feat(device): --json output, streaming chunker, pause --for, per-mount exclude, rescan knob ✨ 2026-06-30 12:29:02 -05:00
fda_darwin.go chore: prep for public release — MIT license + github.com module path 🌍⚖️ 2026-06-23 19:19:09 -05:00
fda_other.go chore: prep for public release — MIT license + github.com module path 🌍⚖️ 2026-06-23 19:19:09 -05:00
fda_test.go chore: prep for public release — MIT license + github.com module path 🌍⚖️ 2026-06-23 19:19:09 -05:00
main.go feat(transfer): opt-in gzip blob compression for WAN sync 🌐🗜️ 2026-06-30 12:34:27 -05:00
main_test.go feat(device): --json output, streaming chunker, pause --for, per-mount exclude, rescan knob ✨ 2026-06-30 12:29:02 -05:00
pidfile.go harden: domain-separate the join challenge + inline pidfile wrapper (ponytail) 🪪♻️ 2026-06-23 03:25:28 -05:00
pidfile_test.go harden: domain-separate the join challenge + inline pidfile wrapper (ponytail) 🪪♻️ 2026-06-23 03:25:28 -05:00
wizard.go chore: prep for public release — MIT license + github.com module path 🌍⚖️ 2026-06-23 19:19:09 -05:00
wizard_test.go feat: optional first-run setup wizard 🧭 2026-06-23 12:21:56 -05:00