gizzi connect all read the same entry.
The contract is in Connections API.
1. Add the catalog entry
The client catalog issrc/components/connect-kit/registry.ts in allternit-ai. It holds only what does not change per account.
iOS and Gizzi Code keep the same ids and copy. Add the entry to the iOS list and to
gizzi connect in the same change.
2. Add the server row
Account rows come from cloud-api (connections.rs). Rows about a computer come from allternit-api on that computer.
Rules for the row:
- Return
stateas one ofoff,connecting,onorneeds, and nothing else. - When it needs you, set
reason_codefrom the list in Connections API. - If the account can’t use the row now, set
available: false, a plainunavailable_reason, and up to twofallbacksthat are other row ids. - Never return a key or token. Return only a masked tail.
- Keep the kit’s routes free of
require_compute. - A
runnerrow also needs: adisclosureobject,person_only: true, andplan/<vendor>/<model>ids inmodels.connectwithout an accepted disclosure version returns409 disclosure_requiredwith the text. Clients show that text as given. - Only clients that send
caps=runnerget the row as available. Others getavailable: falsewithupdate_app. - A plan model answers messages a person sends in chat. Keep any model with
person_onlyout of bot, routine, schedule, mission and sub-agent pickers, and never send tools with it. - ChatGPT on the person’s own device (Desktop, iOS, Gizzi Code) uses OpenAI’s Sign in with ChatGPT and keeps its tokens on the device. It does not use a runner row.
3. Write the copy
Use plain words and the four status words only. Say what the row needs from a person, not how it works inside. Do not promise a date, a result or a limit for a vendor plan. Use the reason texts in the contract; add a new reason code only by changing the contract first.4. Check it
- Run the registry through the client with the server row off, on and needs, and read each state on the page.
- Confirm a missing server row falls back to the catalog entry with
state: off. - Smoke-boot allternit-api after a runtime route change.
design_connector_routes.rsalready matches a/connectionspath. - For a runner row, check
connectwith and withoutaccept_disclosure, a device token and a missingX-Allternit-Turnheader (bothplan_person_only), and that disconnect deletes the sign-in. - Run
python3 surfaces/docs/scripts/check_links.pyand update the Connections guide if the new row changes what a person sees.
Regenerating the apps snapshot
The apps in More come from a committed snapshot of the connector directory,cmd/allternit-cloud-api/src/services/connections_catalog_apps.json. Regenerate it when the directory changes:
src/ because scripts/deploy-cloud-api.sh syncs only src, tests and migrations. The route that serves it is GET /api/v1/connections/catalog (see Connections API); catalog is a reserved connection id.