Conversation
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/cli@0.0.31-pr.214.d023fbbPrefer 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.d023fbb"Or add it to your {
"dependencies": {
"base44": "npm:@base44-preview/cli@0.0.31-pr.214.d023fbb"
}
}
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 |
| for (const entry of entries) { | ||
| if (typeToEntry.has(entry.data.type)) { | ||
| throw new InvalidInputError( | ||
| `Duplicate connector type "${connector.type}"`, | ||
| `Duplicate connector type "${entry.data.type}"`, | ||
| { | ||
| hints: [ | ||
| { | ||
| message: `Remove duplicate connectors with type "${connector.type}" - only one connector per type is allowed`, | ||
| message: `Remove duplicate connectors with type "${entry.data.type}" - only one connector per type is allowed`, | ||
| }, | ||
| ], | ||
| }, | ||
| } | ||
| ); | ||
| } | ||
| types.add(connector.type); | ||
| typeToEntry.set(entry.data.type, entry); | ||
| } |
There was a problem hiding this comment.
This check happens twice, once here and once in readAllconnectors()
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>
ffe1f67 to
d0530cc
Compare
|
README check ran. 6 issues found and applied: (1) Added missing |
Note
Description
Adds a new
connectors pullcommand that syncs connector configurations from the Base44 server to local files. This command fetches remote connectors via the API and intelligently writes/updates/deletes local connector files to match the server state, preserving custom file names and comments where possible.Related Issue
None
Type of Change
Changes Made
connectors pullCLI command that fetches connectors from Base44 and syncs to local fileswriteConnectors()function inconnector/config.tswith intelligent file management:my-slack.jsonc) when updating connectors by typereadAllConnectors()to track file paths alongside connector data for intelligent updatesfetchConnectors()API wrapper function as alias forlistConnectors()Testing
bun test)Checklist
Additional Notes
The
writeConnectors()function usesisDeepStrictEqual()from Node'sutilmodule to detect actual data changes, ensuring local files are only rewritten when the connector configuration differs. This preserves user comments and custom formatting in connector config files. The function performs type-based file matching rather than filename-based matching, allowing users to name their connector files however they prefer (e.g.,my-slack-integration.jsoncinstead ofslack.jsonc).Command usage:
🤖 Generated by Claude | 2026-02-12 14:29 UTC