docs: correct stale M2/M3 comments (SSE shipped, conflict handling live) 📝

This commit is contained in:
shoemoney 2026-06-23 01:45:50 -05:00
parent 552349104a
commit cfdd2f16a2
2 changed files with 5 additions and 5 deletions

View file

@ -155,7 +155,7 @@ func publishCmd() *cobra.Command {
return err
}
if res.Conflict {
return fmt.Errorf("share %q advanced on the hub (head %s) — pull/merge lands in M3", share, short(res.Head))
return fmt.Errorf("share %q already has content on the hub (head %s) — mount it for two-way sync: devbox mount %s <dir>", share, short(res.Head), share)
}
out := cmd.OutOrStdout()

View file

@ -1,6 +1,6 @@
// Package proto defines devbox's hub<->device wire types and endpoint paths.
// Transport is JSON over HTTP (blobs are raw bytes). One TLS endpoint, bearer
// auth. WebSocket change events arrive in M3.
// Transport is JSON over HTTP (blobs are raw bytes). One endpoint, bearer auth.
// Change events stream over SSE (GET /v1/events).
package proto
// Endpoint paths (all under the hub base URL).
@ -81,8 +81,8 @@ type PushRequest struct {
Chunks []ChunkRef `json:"chunks"` // every distinct chunk + size
}
// PushResponse reports the new snapshot id and head. Conflict handling is M3
// (Conflict is always false in M2's one-way push).
// PushResponse reports the new snapshot id and head. Conflict is true when the
// device pushed against a stale parent: it must pull + reconcile, then retry.
type PushResponse struct {
Snapshot string `json:"snapshot"`
Head string `json:"head"`