Cloud Libraries verb family (library list/create/add/export/activate)
Cloud Libraries shipped to prod on the wiki today (docs/cloud-libraries.md in adom/wiki has the full contract). The CLI needs a verb family so agents and scripts can drive carts without the browser. Server routes are live and stable; hints ride every response, pass them through as usual.
Proposed verbs (mirror gh-style naming):
- library list: GET /api/libraries. Columns: ref (lib_), name, active marker, items, updated.
- library create [--accent ] [--description ]: POST /api/libraries. First library becomes active server-side; say so from the response.
- library show : GET /api/libraries/. Items with resolved title/MPN/manufacturer and unresolved rows flagged.
- library add ... : POST items, repeatable; page refs accept owner/slug, bare unambiguous slug, or pg_. Idempotent (existed:true rows reported, not errored).
- library remove <item-id|page-ref>: DELETE item (resolve a page-ref to its item first).
- library set [--name] [--accent] [--description] [--active]: PATCH. --active true is the exclusive switch.
- library activate : sugar for set --active true.
- library duplicate , library delete (confirm prompt; parts on the wiki are untouched, say so).
- library availability : GET availability; table part x kicad/fusion/altium with reasons on no.
- library export [--format kicad] [-o ]: POST export, print the report (included, skipped BY NAME with reasons, warnings, collision qualifications), then download the bundle (owner-gated route) to -o or ./.zip. Exit nonzero when included is 0.
Addressing: is the lib_ public id; also accept an exact library NAME when it resolves uniquely for the caller (names rename freely, so print the lib_ id back every time). Rate limits: library bucket 30/min, export 12/min; surface 429 hints verbatim.
Optional follow-up once the basics land: library install composing export + adom-bridge send_files + kicad_install_library_bundle (the composite bridge verb exists as of kicad-bridge 0.9.252, capture proof in 0.9.253) so a container-side agent can land a cart inside a desktop KiCad the way the web button does.
Known server hint codes: LIB_NOT_FOUND, LIB_CAP_REACHED, ITEM_CAP_REACHED, NOTHING_TO_UPDATE, LIB_EXPORT_PARTIAL. Uniform 404s across owners (no existence oracle), so never diagnose a 404 as 'exists but private'.