feat: add X (Twitter) + LinkedIn to the Composio connector whitelist (chat#1793)
What
Adds twitter and linkedin to the existing Composio connector whitelist — the minimal four-constant + env-var expansion described in recoupable/chat#1793. No architecture changes.
SUPPORTED_TOOLKITS(lib/composio/connectors/getConnectors.ts) +ENABLED_TOOLKITS(lib/composio/toolRouter/getComposioTools.ts)CONNECTOR_DISPLAY_NAMES(getConnectorsHandler.ts):twitter → "X (Twitter)",linkedin → "LinkedIn"buildAuthConfigs()readsCOMPOSIO_TWITTER_AUTH_CONFIG_ID+COMPOSIO_LINKEDIN_AUTH_CONFIG_ID.env.exampledocuments both new vars (env-var names only, no values)
TDD
RED → GREEN, one unit at a time:
- New
buildAuthConfigs.test.ts— asserts the two new env vars are read (isolated env snapshot/restore). - Expanded
getConnectors.test.ts(toolkit array),getConnectorsHandler.test.ts(display names), and a newENABLED_TOOLKITSmembership test. - Confirmed all 5 assertions failed before the constant/env edits, then passed after.
Verification
pnpm exec vitest run lib/composio→ 157 passed (30 files).pnpm exec tsc --noEmit→ no new errors from this change (the repo's pre-existing errors are all inlib/tasks/lib/trigger;lib/composiois clean).eslinton changed files → clean.
Full preview e2e (real test post to each platform via POST /api/connectors/actions) is tracked on chat#1793 and runs once the auth-config env vars are live in Vercel.
Merge order
docs#244 (contract) → this PR. Depends on docs#244 landing first.
Tracking issue: recoupable/chat#1793
Contract: recoupable/docs#244
🤖 Generated with Claude Code
Summary by cubic
Add X (Twitter) and LinkedIn to the Composio connector whitelist so users can authorize and run actions. Implements the minimal whitelist + env expansion from chat#1793 and aligns with docs#244; includes minor test/format cleanup.
-
New Features
- Added
twitterandlinkedintoSUPPORTED_TOOLKITSandENABLED_TOOLKITS. - Mapped display names:
twitter→ "X (Twitter)",linkedin→ "LinkedIn". buildAuthConfigs()now readsCOMPOSIO_TWITTER_AUTH_CONFIG_IDandCOMPOSIO_LINKEDIN_AUTH_CONFIG_ID(documented in.env.example).
- Added
-
Migration
- Set
COMPOSIO_TWITTER_AUTH_CONFIG_IDandCOMPOSIO_LINKEDIN_AUTH_CONFIG_IDin the environment to enable these connectors.
- Set