Expose client visibility at create time (Fixes #457)
Adds a --visible-to-clients flag to the create commands where Basecamp accepts a top-level client-visibility param, so an agent can post a client-visible recording in a single atomic create instead of a post-hoc recordings visibility toggle. Fixes #457.
What changed
- SDK bump
v0.8.0 → v0.8.1-0.20260724184307-e2c1abea4aea(basecamp/basecamp-sdk#401), which adds create-timevisible_to_clientsto the six create-request inputs (tri-state*bool) and repins bc3 provenance. - Four create commands wired:
messages create,todolists create,checkins question create,schedule createeach gain--visible-to-clients. The request field is set only when the flag was provided (Flags().Changed, matching--subscribe), so:- omitted → field absent on the wire → server applies its own context-dependent default: team-only when posting as a team member, but a client-authenticated caller always creates client-visible records (an explicit
falseis overridden server-side for client callers); --visible-to-clients→ sendstrue;--visible-to-clients=false→ sends an explicitfalse(tri-state*boolguarantees it isn't dropped).
- omitted → field absent on the wire → server applies its own context-dependent default: team-only when posting as a team member, but a client-authenticated caller always creates client-visible records (an explicit
- Tests: each command asserts the create body carries
visible_to_clientsfor the unset / true / false cases (16 tests total, incl. flag presence). .surfaceregenerated and the flag documented inskills/basecamp/SKILL.md.SDK-GAP-457.mddeleted — the handoff design doc is realized by this change.
Scope
- In scope (Fixes #457): messages, todolists, check-in questions, schedule entries — the four types where the server accepts a top-level create-time
visible_to_clientsunconditionally. - Deferred → #556:
docs create/uploads create— accept arbitrary folder IDs; a nested vault inherits folder visibility (silent no-op), so they need docked/root-vault gating before carrying the flag. The SDK already exposes their inputs; only the CLI flag waits. - Omitted:
cards,todos,comments— parent-inherited (create ignores the param; the toggle 403s).
Collateral
The SDK bundle (#401) also reshaped SearchMetadata (the Projects list was replaced by RecordingSearchTypes / FileSearchTypes filter options). runSearchMetadata's empty-check and summary are adapted to the new shape in a separate commit.
Verification
bin/ci green (build, vet, lint, unit + e2e, surface snapshot, skill drift, SDK provenance, go mod tidy). Manual check against a client-invited project, posting as a team member: a message created with --visible-to-clients is client-visible; omitting the flag leaves it team-only. (Client-authenticated callers are always forced client-visible — see the flag help and SKILL.md note.)