Skip to content

Conversation

@gonengar
Copy link

Add new CLI commands for managing OAuth integrations:

  • connectors:add [type] - Connect an OAuth integration (Slack, Google, etc.)
  • connectors:list - List all connected integrations
  • connectors:remove [type] - Disconnect an integration

The implementation uses the existing base44 external-auth API endpoints and stores tokens via Composio (the backend OAuth token storage vendor).

Supported integrations: Slack, Google Calendar, Google Drive, Gmail, Google Sheets, Google Docs, Google Slides, Notion, Salesforce, HubSpot, LinkedIn, and TikTok.

https://claude.ai/code/session_013jLN9iB2EPcrwsWaUNovsJ

Description

Related Issue

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Other (please describe):

Changes Made

Testing

  • I have tested these changes locally
  • I have added/updated tests as needed
  • All tests pass (npm test)

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (if applicable)
  • My changes generate no new warnings
  • I have updated AGENTS.md if I made architectural changes

Additional Notes

Add new CLI commands for managing OAuth integrations:
- `connectors:add [type]` - Connect an OAuth integration (Slack, Google, etc.)
- `connectors:list` - List all connected integrations
- `connectors:remove [type]` - Disconnect an integration

The implementation uses the existing base44 external-auth API endpoints
and stores tokens via Composio (the backend OAuth token storage vendor).

Supported integrations: Slack, Google Calendar, Google Drive, Gmail,
Google Sheets, Google Docs, Google Slides, Notion, Salesforce, HubSpot,
LinkedIn, and TikTok.

https://claude.ai/code/session_013jLN9iB2EPcrwsWaUNovsJ
@github-actions
Copy link
Contributor

github-actions bot commented Jan 23, 2026

🚀 Package Preview Available!


Install this PR's preview build with npm:

npm i @base44-preview/cli@0.0.15-pr.99.a90e72b

Prefer not to change any import paths? Install using npm alias so your code still imports base44:

npm i "base44@npm:@base44-preview/cli@0.0.15-pr.99.a90e72b"

Or add it to your package.json dependencies:

{
  "dependencies": {
    "base44": "npm:@base44-preview/cli@0.0.15-pr.99.a90e72b"
  }
}

Preview published to npm registry — try new features instantly!

- Transform StatusResponseSchema to camelCase for consistency with other schemas
- Remove unused removeConnector function (hard delete not needed for CLI)

https://claude.ai/code/session_013jLN9iB2EPcrwsWaUNovsJ
- Re-add removeConnector function for hard delete
- Add --hard option to connectors:remove command
- Soft delete (disconnect) remains the default behavior
- Hard delete permanently removes the connector

Usage:
  base44 connectors:remove slack        # Soft delete (disconnect)
  base44 connectors:remove slack --hard # Hard delete (permanent)

https://claude.ai/code/session_013jLN9iB2EPcrwsWaUNovsJ
Replace table format with simple list:
- ● Slack - user@example.com
- ○ Notion (disconnected)

This removes column width calculations and ANSI padding complexity.

https://claude.ai/code/session_013jLN9iB2EPcrwsWaUNovsJ
Document the new OAuth connectors management commands:
- connectors:add - Connect integrations via OAuth
- connectors:list - List connected integrations
- connectors:remove - Disconnect/remove integrations

https://claude.ai/code/session_013jLN9iB2EPcrwsWaUNovsJ
Connectors are now tracked in a local `base44/connectors.jsonc` file,
similar to how entities are managed. This enables:

- Team collaboration: commit connector config to git
- Declarative setup: define required integrations in code
- Status tracking: see which connectors need to be connected

Changes:
- Add connectors config module for reading/writing local file
- connectors:add now saves to connectors.jsonc after OAuth
- connectors:list shows both local and backend state
- connectors:remove updates both local file and backend
- New connectors:push command to connect pending integrations

Example connectors.jsonc:
```json
{
  "slack": {},
  "googlecalendar": { "scopes": ["calendar.readonly"] }
}
```

https://claude.ai/code/session_013jLN9iB2EPcrwsWaUNovsJ
@gonengar gonengar closed this Jan 24, 2026
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.

3 participants