Settings → Connections (user guide) is built from one registry. Adding a vendor is adding one catalog entry in the app and one source row on a server. Do not build a connect screen for it. The page, the sheet, the model picker, the first-run setup, iOS and gizzi connect all read the same entry. The contract is in Connections API.

1. Add the catalog entry

The client catalog is src/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 state as one of off, connecting, on or needs, and nothing else.
  • When it needs you, set reason_code from the list in Connections API.
  • If the account can’t use the row now, set available: false, a plain unavailable_reason, and up to two fallbacks that 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 runner row also needs: a disclosure object, person_only: true, and plan/<vendor>/<model> ids in models. connect without an accepted disclosure version returns 409 disclosure_required with the text. Clients show that text as given.
  • Only clients that send caps=runner get the row as available. Others get available: false with update_app.
  • A plan model answers messages a person sends in chat. Keep any model with person_only out 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.rs already matches a /connections path.
  • For a runner row, check connect with and without accept_disclosure, a device token and a missing X-Allternit-Turn header (both plan_person_only), and that disconnect deletes the sign-in.
  • Run python3 surfaces/docs/scripts/check_links.py and 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:
Commit the new snapshot with the change. The snapshot lives in 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.