diff --git a/README.md b/README.md index d1e3184..67d1c47 100644 --- a/README.md +++ b/README.md @@ -372,18 +372,19 @@ container automatically. πŸͺ„ | `devbox join ` | 🎟️ Enroll this device against a hub | | `devbox mount ` | πŸ”— Mount a share into a local dir (clone + sync) | | `devbox mount --ro` | πŸ”’ Mount **read-only** (pull only, never push) | +| `devbox mount … --exclude ` | πŸ™ˆ Device-local ignore (gitignore syntax, repeatable) layered on the shared `.devignore` β€” e.g. skip a local build dir | | `devbox publish ` | πŸ“‚ Create a share from a local folder + push it | | `devbox unmount ` | ⏏️ Stop syncing a mount (files stay on disk) | | `devbox start` / `stop` | ▢️⏹️ Run / stop the daemon | -| `devbox status` | πŸ“Š Device, hub, mounts (with `ro`/`pinned`) | -| `devbox log ` | πŸ•°οΈ Snapshot history (full ids) | +| `devbox status` `[--json]` | πŸ“Š Device, hub, mounts (with `ro`/`pinned`); `--json` for scripting (prefers live daemon state) | +| `devbox log ` `[--json]` | πŸ•°οΈ Snapshot history (full ids); `--json` for machine-readable output | | `devbox restore [path]` | ↩️ Roll back a file or a whole share | | `devbox deploy ` | πŸš€ Pin a mount to a snapshot β€” applies it without pushing (blue/green) | -| `devbox conflicts` | πŸ’₯ List conflict copies across all mounts | +| `devbox conflicts` `[--json]` | πŸ’₯ List conflict copies across all mounts; `--json` emits a JSON array | | `devbox ignore ` | πŸ™ˆ Append a pattern to `./.devignore` | | `devbox hook edit ` | πŸͺ Scaffold/open a hook in `$EDITOR`; `hook list ` shows installed | -| `devbox doctor` | 🩺 Diagnose watcher limits, perms, bash, hub connectivity + bearer | -| `devbox pause` / `resume` | ⏸️▢️ Suspend/resume the running daemon's syncing via its control socket (M8) | +| `devbox doctor` | 🩺 Diagnose watcher limits, perms, bash, hub connectivity + bearer (non-zero exit on ❌ β€” cron-friendly) | +| `devbox pause [--for ]` / `resume` | ⏸️▢️ Suspend/resume the running daemon's syncing via its control socket; `--for 2h` auto-resumes (M8) | | `devbox invite ` | βœ‰οΈ Mint an invite token granting a role (`--reshare` for `+s`); attenuation-enforced (M8a) | | `devbox invite revoke ` | πŸ—‘οΈ Kill a pending invite before it's redeemed (only a caller who could mint it) | | `devbox members ` | πŸ‘₯ Show who can access a share, or "legacy share" (M8a) | @@ -403,8 +404,10 @@ container automatically. πŸͺ„ | `devbox-hub readonly ` | πŸ”’ Mark a device read-only on a share | | `devbox-hub member set/rm/list` Β· `principal` | πŸ›‘οΈ Per-share roles + principals (M8a) | | `devbox-hub serve --dashboard` | πŸ“Š Serve the live web dashboard (loopback `:8099` by default) | +| `devbox-hub serve --dashboard-token ` | πŸ” Require a token to view the dashboard (recommended for any non-loopback bind) | | `devbox-hub serve --gc-every ` | 🧹 Opt-in in-process periodic GC (off by default; each sweep animates on the dashboard) | -| `devbox-hub gc` | 🧹 Garbage-collect unreferenced chunks | +| `devbox-hub gc [--dry-run]` | 🧹 Garbage-collect unreferenced chunks; `--dry-run` previews what would be pruned, deletes nothing | +| `GET /healthz` Β· `GET /readyz` | 🩺 Liveness / readiness probes (readyz pings the DB β†’ 503 if unreachable) for Docker/LB | @@ -518,6 +521,26 @@ Default-blocked: `.env` Β· `.env.*` (except `.env.example`) Β· `*.pem` Β· `*.key `*.p12` Β· `*.pfx` Β· `secrets/` Β· `*.kdbx` Β· common cloud-cred files. Blocked files show up in `devbox status`. Add your own via `[secrets].extra_patterns` in `config.toml`. +
+βš™οΈ config.toml β€” per-machine tunables + +```toml +[transfer] +max_kbps = 0 # blob transfer cap (KB/s); 0 = unlimited +compress = false # 🌐 gzip blob uploads β€” turn on for devices syncing over a WAN link + +[sync] +rescan_seconds = 60 # watcher-fallback rescan cadence; raise on a huge tree, lower for snappier convergence + +[secrets] +extra_patterns = ["*.secret", "vault-*"] # additional secret-guard deny patterns +``` + +> `compress` only gzips a chunk when it actually shrinks (incompressible blobs go raw), and the +> hub hashes the **decompressed** bytes so dedup + integrity are untouched. πŸ—œοΈ + +
+ --- ## πŸ•°οΈ Versioning & Deploy