Conversation
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/cli@0.0.31-pr.214.27ce774Prefer not to change any import paths? Install using npm alias so your code still imports npm i "base44@npm:@base44-preview/cli@0.0.31-pr.214.27ce774"Or add it to your {
"dependencies": {
"base44": "npm:@base44-preview/cli@0.0.31-pr.214.27ce774"
}
}
Preview published to npm registry — try new features instantly! |
7bfb43f to
7b418ac
Compare
f4d2ac1 to
02d5fd7
Compare
3fc2e0c to
ec69f63
Compare
df772e3 to
ffe1f67
Compare
|
README check ran. 10 issue(s) found and applied: Added missing |
ffe1f67 to
d0530cc
Compare
|
README check ran. 6 issues found and applied: (1) Added missing |
|
README check ran. 7 issue(s) found and applied: added eject command, added connectors pull and push subcommands, updated 4 command descriptions to match CLI code. README.md has been updated in this branch. |
88009a8 to
e378393
Compare
|
README check ran. 3 issue(s) found and applied: Added missing 'eject' command, added 'connectors pull' command, and added 'connectors push' command. README.md has been updated in this branch. |
Implements fetchConnectors() API, writeConnectors() for file sync, and the CLI pull command following the agents pull pattern. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
e378393 to
6552c85
Compare
|
README check ran. Found discrepancies and applied fixes: added 3 missing commands (eject, connectors pull, connectors push) and updated 10 command descriptions to match actual CLI implementation. README.md has been committed locally (commit d1cfe36) but could not be automatically pushed - please manually push or merge this commit. |
| connectorsDir: string, | ||
| ): Promise<ConnectorResource[]> { | ||
| const entries = await readConnectorFiles(connectorsDir); | ||
| const typeToEntry = buildTypeToEntryMap(entries); |
There was a problem hiding this comment.
we don't really need this here, we can just grab the data form entries no?
Or is it here for validation there are no two of the same?
There was a problem hiding this comment.
yes exactly, we do validation here
There was a problem hiding this comment.
readConnectorFiles and buildTypeToEntryMap can be consolidated into one function but I thought it's nicer to separate the loading from the validation/indexation
Note
Description
Adds a new
base44 connectors pullcommand that syncs OAuth connector configurations from Base44 to local files. The command fetches remote integrations and intelligently updates local connector files - adding new ones, updating changed configurations while preserving comments/formatting, and deleting connectors that no longer exist remotely.Related Issue
None
Type of Change
Changes Made
connectors pullCLI command with authentication requirementwriteConnectors()function incore/resources/connector/config.tsfor file-based syncing:readAllConnectors()to use internal file-entry mapping system for better code reusewriteConnectors()covering edge cases (empty lists, custom filenames, unchanged data, directory creation)Testing
npm test)Checklist
Additional Notes
The implementation uses
isDeepStrictEqualto avoid unnecessary file rewrites, preserving user comments and custom formatting in JSONC files. The type-based resolution system allows users to rename connector files (e.g.,my-slack-integration.jsoncinstead ofslack.jsonc) without breaking functionality - the system matches bytypefield, not filename.This command complements the existing
connectors pushcommand, providing bidirectional sync capabilities for connector configurations.🤖 Generated by Claude | 2026-02-15 10:30 UTC