Add functions pull#331
Merged
yardend-wix merged 3 commits intofeature/per-function-deploy-clifrom Feb 26, 2026
Merged
Conversation
Contributor
🚀 Package Preview Available!Install this PR's preview build with npm: Prefer not to change any import paths? Install using npm alias so your code still imports Or add it to your
Preview published to npm registry — try new features instantly! |
|
README check ran. 8 issue(s) found and applied: added missing commands to the command table (functions new, functions pull, functions list, functions delete, connectors pull, connectors push, types generate) and uncommented eject with corrected description. README.md has been updated in this branch. |
fbc1f56 to
df8220c
Compare
- `functions new <name>` — scaffold a new function with config and template index.ts - `functions pull [name]` — download function source from remote, optionally filtering by name. Skips unchanged files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove the scaffold command per PM feedback. Align pull command description with other functions subcommands. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Previously only compared source file contents, missing changes to entry point or automations in function.jsonc. Now reads and compares the local config before checking source files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
df8220c to
8e69301
Compare
42da2ec
into
feature/per-function-deploy-cli
4 of 5 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Description
This PR adds a
functions pullCLI command that downloads deployed backend functions from Base44 to the local filesystem. It createsfunction.jsoncconfig files and all source files for each pulled function, and intelligently skips functions whose local files already match the remote content to avoid unnecessary writes.Related Issue
None
Type of Change
Changes Made
src/core/resources/function/pull.tswithwriteFunctions()core logic that writes remote function data (config + source files) to local function directoriesisFunctionUnchanged()helper that compares local vs remote function config (entry,automations) and all source file contents to skip unchanged functionssrc/cli/commands/functions/pull.tswith thefunctions pull [name]command, supporting an optional name argument to pull a single function by namegetPullCommandinto thefunctionscommand group insrc/cli/commands/functions/index.tspull.tsfromsrc/core/resources/function/index.tsTesting
npm test)Checklist
docs/(AGENTS.md) if I made architectural changesAdditional Notes
The pull command follows the same
runCommand/runTaskpattern used by other function subcommands. The change-detection logic inisFunctionUnchangedcompares both the config fields and raw file contents, ensuring a clean idempotent pull operation.🤖 Generated by Claude | 2026-02-25 15:34 UTC