🔧 Connector setup
Deploy target (optional)
Step A · Get branch head
Reads the current HEAD SHA of the default branch. Captured as expected_head_oid for the optimistic-lock push.
Step B · Push commit
Step C · Poll commit status
Polls GitHub commit statuses for the pushed SHA every 5s (up to 5 min), matching contexts with prefix vercel, and surfaces the live deploy URL.
🧭 Assembled payload state
Live view of the credentials / config envelopes assembled from each field's x-payload-path. The PAT is stored in localStorage for this dev harness only.
credentials + config
{}
📚 How this maps to the spec
Setup schema comes from POST /storage-adapters/{slug}/push-form — a connector-setup JSON Schema with a root-level oneOf (PAT vs GitHub App).
installation_id is widget: hidden + set_by: ca_callback in production (set by CA's verified OAuth callback). Here it is entered manually for simulation.
repo / default_branch are dynamic dropdowns backed by POST /dynamic-options (live GitHub calls; need a real PAT).
Publish = get-branch-head → push (optimistic lock) → poll commit-status until Vercel reports its deploy URL.