- internal/hub: HTTP server (join/publish/have/blob/push/head/metrics), bearer auth, blob hash-verify, hand-rolled Prometheus /metrics (no dep) - internal/transport: device HTTP client for the full wire contract - internal/syncer: device push engine (build manifest -> upload missing blobs -> commit snapshot) + .devignore loader; in-process e2e test (join->publish->push) - meta: idempotent AddSnapshot (content-addressed re-push advances head, no double refcount) + busy_timeout for multi-process CLI access - cmd/devbox-hub: serve/token/readonly/revoke; cmd/devbox: real join + publish/push - config: persist bearer + device id Verified end-to-end with real binaries: secret blocked, node_modules ignored, re-publish dedups to 0 uploads. |
||
|---|---|---|
| .. | ||
| blobstore | ||
| meta | ||
| server.go | ||
| server_test.go | ||