Skip to content

agent: @U0AJM7X8FBR current: composio connections for limited tools. Expected: all major composio connections#337

Open
sweetmantech wants to merge 1 commit intotestfrom
feature/composio-more-connectors
Open

agent: @U0AJM7X8FBR current: composio connections for limited tools. Expected: all major composio connections#337
sweetmantech wants to merge 1 commit intotestfrom
feature/composio-more-connectors

Conversation

@sweetmantech
Copy link
Copy Markdown
Contributor

@sweetmantech sweetmantech commented Mar 24, 2026

Automated PR from coding agent.

Prompt: @U0AJM7X8FBR current: composio connections for limited tools. Expected: all major composio connections.Please review how composio currently connects and works and then add more tools that are important.

Changes:

  • Expanded SUPPORTED_TOOLKITS from 4 to 12 connectors
  • Added 8 new display names to CONNECTOR_DISPLAY_NAMES
  • Expanded ALLOWED_ARTIST_CONNECTORS to include spotify, instagram, twitter, youtube (in addition to tiktok)
  • Updated tests to match new connector lists (13 tests pass)

New connectors added:

  • Account-level: Gmail, Google Calendar, Spotify, Instagram, Twitter/X, YouTube, Slack, LinkedIn
  • Artist-level: Spotify, Instagram, Twitter, YouTube

Summary by CodeRabbit

  • New Features
    • Added support for 8 new integrations: Gmail, Google Calendar, Spotify, Instagram, Twitter/X, YouTube, Slack, and LinkedIn
    • Expanded artist platform options to include Spotify, Instagram, Twitter/X, and YouTube alongside TikTok

… productivity platforms

Adds Spotify, Instagram, Twitter/X, YouTube, Gmail, Google Calendar, Slack,
and LinkedIn as supported connectors. Artist connections now allow Spotify,
Instagram, Twitter, and YouTube in addition to TikTok.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
recoup-api Ready Ready Preview Mar 24, 2026 4:29am

Request Review

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 24, 2026

📝 Walkthrough

Walkthrough

The pull request expands the supported connectors across the Composio integration layer by adding eight new toolkit integrations (gmail, googlecalendar, spotify, instagram, twitter, youtube, slack, linkedin) to the existing four (googlesheets, googledrive, googledocs, tiktok). Display names and artist connector filtering are updated accordingly to reflect the broader toolkit support.

Changes

Cohort / File(s) Summary
Connector Support Expansion
lib/composio/connectors/getConnectors.ts, lib/composio/connectors/getConnectorsHandler.ts, lib/composio/connectors/isAllowedArtistConnector.ts
Expanded SUPPORTED_TOOLKITS and CONNECTOR_DISPLAY_NAMES to include gmail, googlecalendar, spotify, instagram, twitter, youtube, slack, and linkedin. Updated ALLOWED_ARTIST_CONNECTORS from ["tiktok"] to include spotify, instagram, twitter, and youtube alongside tiktok. All changes maintain existing API contracts without logic modifications.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🎵 Connectors multiply, a toolkit now vast,
Spotify, Gmail, and more—the die is cast,
Artists rejoice with YouTube and sound,
LinkedIn and Slack bring connections around! 🌐

🚥 Pre-merge checks | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Solid & Clean Code ⚠️ Warning PR violates SOLID principles: formatting exceeds 100-character limit, DRY principle violated with duplicate toolkit lists, and test mocks diverge from implementation constants. Reformat line 5 to comply with 100-character limit, centralize all toolkit configurations in a single source file, and update test mocks to import actual constants instead of hard-coding.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/composio-more-connectors

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
lib/composio/connectors/getConnectors.ts (1)

18-31: Centralize connector definitions to avoid cross-file slug drift.

These slugs are now duplicated across multiple files (toolkits list, display names, artist allowlist). A single shared connector registry would reduce update risk and keep behavior consistent.

💡 Refactor direction (shared source of truth)
+// Example shape in a shared module (e.g. lib/composio/connectors/catalog.ts)
+export const CONNECTOR_CATALOG = {
+  googlesheets: { displayName: "Google Sheets", artistAllowed: false },
+  googledrive: { displayName: "Google Drive", artistAllowed: false },
+  googledocs: { displayName: "Google Docs", artistAllowed: false },
+  gmail: { displayName: "Gmail", artistAllowed: false },
+  googlecalendar: { displayName: "Google Calendar", artistAllowed: false },
+  tiktok: { displayName: "TikTok", artistAllowed: true },
+  spotify: { displayName: "Spotify", artistAllowed: true },
+  instagram: { displayName: "Instagram", artistAllowed: true },
+  twitter: { displayName: "Twitter / X", artistAllowed: true },
+  youtube: { displayName: "YouTube", artistAllowed: true },
+  slack: { displayName: "Slack", artistAllowed: false },
+  linkedin: { displayName: "LinkedIn", artistAllowed: false },
+} as const;
-const SUPPORTED_TOOLKITS = [ ... ];
+const SUPPORTED_TOOLKITS = Object.keys(CONNECTOR_CATALOG);

As per coding guidelines, "Extract shared logic into reusable utilities following Don't Repeat Yourself (DRY) principle".

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@lib/composio/connectors/getConnectors.ts` around lines 18 - 31, The
SUPPORTED_TOOLKITS constant duplicates connector slugs across the codebase and
should be centralized; create a single shared connector registry utility (e.g.,
export a CONNECTORS object or array from a new module) that defines canonical
slugs, displayName, and any allowlist/metadata, replace the local
SUPPORTED_TOOLKITS usage with an import from that registry, and update other
files (toolkits list, display names, artist allowlist) to consume the shared
registry so slugs and metadata remain single source of truth (look for
references to SUPPORTED_TOOLKITS and any display name or allowlist variables to
update).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@lib/composio/connectors/isAllowedArtistConnector.ts`:
- Line 5: The exported constant ALLOWED_ARTIST_CONNECTORS is failing Prettier;
reformat its array literal to satisfy the formatter by breaking the items onto
separate lines and adding trailing comma(s) (e.g., each connector string on its
own line inside the array) while preserving the export and the as const
assertion so the symbol ALLOWED_ARTIST_CONNECTORS remains unchanged.

---

Nitpick comments:
In `@lib/composio/connectors/getConnectors.ts`:
- Around line 18-31: The SUPPORTED_TOOLKITS constant duplicates connector slugs
across the codebase and should be centralized; create a single shared connector
registry utility (e.g., export a CONNECTORS object or array from a new module)
that defines canonical slugs, displayName, and any allowlist/metadata, replace
the local SUPPORTED_TOOLKITS usage with an import from that registry, and update
other files (toolkits list, display names, artist allowlist) to consume the
shared registry so slugs and metadata remain single source of truth (look for
references to SUPPORTED_TOOLKITS and any display name or allowlist variables to
update).

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 8d352f9c-777b-4a52-a07f-e1ca78d2eb1f

📥 Commits

Reviewing files that changed from the base of the PR and between 8306a67 and d7788c9.

⛔ Files ignored due to path filters (3)
  • lib/composio/connectors/__tests__/getConnectors.test.ts is excluded by !**/*.test.*, !**/__tests__/** and included by lib/**
  • lib/composio/connectors/__tests__/getConnectorsHandler.test.ts is excluded by !**/*.test.*, !**/__tests__/** and included by lib/**
  • lib/composio/connectors/__tests__/isAllowedArtistConnector.test.ts is excluded by !**/*.test.*, !**/__tests__/** and included by lib/**
📒 Files selected for processing (3)
  • lib/composio/connectors/getConnectors.ts
  • lib/composio/connectors/getConnectorsHandler.ts
  • lib/composio/connectors/isAllowedArtistConnector.ts

* Only these connectors will be shown in the artist-connectors API.
*/
export const ALLOWED_ARTIST_CONNECTORS = ["tiktok"] as const;
export const ALLOWED_ARTIST_CONNECTORS = ["tiktok", "spotify", "instagram", "twitter", "youtube"] as const;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Fix formatting here to unblock CI.

This line is likely tripping the reported Prettier check; reformatting the array should clear the pipeline failure.

💡 Suggested formatting change
-export const ALLOWED_ARTIST_CONNECTORS = ["tiktok", "spotify", "instagram", "twitter", "youtube"] as const;
+export const ALLOWED_ARTIST_CONNECTORS = [
+  "tiktok",
+  "spotify",
+  "instagram",
+  "twitter",
+  "youtube",
+] as const;
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@lib/composio/connectors/isAllowedArtistConnector.ts` at line 5, The exported
constant ALLOWED_ARTIST_CONNECTORS is failing Prettier; reformat its array
literal to satisfy the formatter by breaking the items onto separate lines and
adding trailing comma(s) (e.g., each connector string on its own line inside the
array) while preserving the export and the as const assertion so the symbol
ALLOWED_ARTIST_CONNECTORS remains unchanged.

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.

1 participant