Feature: functions commands (list, delete, pull, deploy, unified deploy)#412
Merged
yardend-wix merged 9 commits intomainfrom Mar 16, 2026
Merged
Feature: functions commands (list, delete, pull, deploy, unified deploy)#412yardend-wix merged 9 commits intomainfrom
yardend-wix merged 9 commits intomainfrom
Conversation
…383) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/cli@0.0.44-pr.412.e4034f6Prefer not to change any import paths? Install using npm alias so your code still imports npm i "base44@npm:@base44-preview/cli@0.0.44-pr.412.e4034f6"Or add it to your {
"dependencies": {
"base44": "npm:@base44-preview/cli@0.0.44-pr.412.e4034f6"
}
}
Preview published to npm registry — try new features instantly! |
Replace narrow 3-field automation type with full discriminated union matching the schema (scheduled one-time, cron, simple, entity). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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 expands the
functionscommand group with three new subcommands (list,delete,pull) and significantly refactors thedeploysubcommand. Deployment now happens function-by-function sequentially with real-time per-function progress feedback, supports selective deployment by name, and adds a--forceflag to prune remote functions not present locally. The underlying API layer was also refactored from a single batch endpoint to individual per-function endpoints.Related Issue
None
Type of Change
Changes Made
functions list— new command that fetches and displays all deployed functions on the remote, including automation countsfunctions delete [names...]— new command to delete one or more functions by name (supports comma-separated and variadic args); gracefully handles 404sfunctions pull [name]— new command to pull deployed function code from Base44 to local disk; skips files already matching remote content; optionally scoped to a single function by namefunctions deployrefactor — now accepts optional[names...]to deploy a subset, shows step-by-step[n/total]progress per function, and adds--forceto delete remote-only functions after deployingcore/resources/function/api.ts) — replaced single-batchdeployFunctionswithdeploySingleFunction,deleteSingleFunction, andlistDeployedFunctionstargeting per-function REST endpointsschema.ts) — replacedDeployFunctionsResponseSchemawithDeploySingleFunctionResponseSchema, addedFunctionInfoSchemaandListFunctionsResponseSchemacore/resources/function/deploy.ts) — extracteddeployFunctionsSequentiallyandpruneRemovedFunctionswith callback hooks for live progress reportingcore/resources/function/pull.ts) —writeFunctionswrites remote function files locally and skips unchanged files via deep-equality checksfunctions_delete.spec.ts,functions_list.spec.ts,functions_pull.spec.ts; updatedfunctions_deploy.spec.tsandTestAPIServerwith new mock endpointsTesting
npm test)Checklist
docs/(AGENTS.md) if I made architectural changesAdditional Notes
The
pullcommand writes afunction.jsoncconfig file plus all source files into<functionsDir>/<name>/. It compares local file contents against the remote before writing, so re-runningpullon an already-synced repo produces no writes. The--forceflag ondeployis mutually exclusive with specifying function names by design.🤖 Generated by Claude | 2026-03-16 00:00 UTC