Skip to content

Rename connect provider to posit-connect, export integrations read - #85

Merged
wch merged 4 commits into
mainfrom
connect-fetch-helper
Aug 26, 2026
Merged

Rename connect provider to posit-connect, export integrations read#85
wch merged 4 commits into
mainfrom
connect-fetch-helper

Conversation

@wch

@wch wch commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Two problems with the built-in Connect provider that shipped in #81. First, its provider id connect collides with the generic "connect a provider" vocabulary in host UIs (notably Positron), so logs, schema keys, and model ids read ambiguously. Second, a host application that wants to validate a Connect configuration — for example Posit Assistant's Test button in the AI Providers dialog — had to re-implement the integrations-endpoint read (path, Authorization: Key convention, response validation), duplicating logic that must stay in sync with discovery.

This PR renames the provider id, client kind, schema key, env-mapping keys, and the minted model-id prefix from connect to posit-connect, so the product is named unambiguously everywhere (models now appear as posit-connect-<slug>-<guid>/<modelId>). It also promotes the private integrations fetch into an exported fetchConnectIntegrations helper that fetches, validates, and shapes allowlisted integrations, so discovery and host test probes share one canonical read of the endpoint instead of drifting apart. Regression tests now cover both env dispatch keys under the renamed id: CONNECT_API_KEY through the ai-credentials env resolver and POSIT_CONNECT_URL through ai-config's connection-env layer into the resolved catalog.

Compatibility is preserved where it matters: the provider is experimental and unreleased, so there are no stored credentials or stamped model ids to migrate, and the environment variable names stay CONNECT_API_KEY and POSIT_CONNECT_URL. Error reporting improves slightly — HTTP failures from the integrations endpoint now include the status text — and unsupported integration templates continue to be skipped with a warning rather than failing discovery.

Verification

  • connect-provider.test.ts covers the rename (minted prefixes, log tags) and the exported helper's validation and shaping.
  • New tests assert CONNECT_API_KEY resolves through the env credential resolver and POSIT_CONNECT_URL flows into the resolved catalog under the posit-connect id.
  • The Posit Assistant monorepo pins this branch and compiles, typechecks, and tests cleanly against it.

wch added 3 commits August 25, 2026 22:26
…t read

Promote the private fetchIntegrationRecords into an exported helper that
fetches, validates, and shapes allowlisted integrations, so host test
probes (e.g. Posit Assistant's provider:test) share the endpoint path,
auth convention, and response validation with discovery instead of
re-implementing them. HTTP errors now include the status text.
The bare `connect` id collides conceptually with Positron's generic
"connect a provider" UI vocabulary; `posit-connect` names the product
unambiguously. Renames the provider id / client kind / schema key /
env-mapping keys and the minted model-id prefix (now
`posit-connect-<slug>-<guid>/<modelId>`). The provider is experimental
and unreleased, so there are no stored credentials or stamped model ids
to migrate. Env vars stay CONNECT_API_KEY and POSIT_CONNECT_URL.
Add regression coverage for both canonical env dispatch keys under the
renamed provider id: CONNECT_API_KEY through the ai-credentials env
credential resolver, and POSIT_CONNECT_URL through ai-config's
connection-env layer into the resolved catalog. Also update the
SUPPORTED_CUSTOM_CLIENT_KIND_VALUES doc comment, which still named the
pre-rename `connect` kind.
@wch
wch merged commit 31a0b0c into main Aug 26, 2026
4 checks passed
@wch
wch deleted the connect-fetch-helper branch August 26, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants