feat(functions): add functions list command#380
Merged
yardend-wix merged 7 commits intofeature/functions-commandsfrom Mar 12, 2026
Merged
feat(functions): add functions list command#380yardend-wix merged 7 commits intofeature/functions-commandsfrom
functions list command#380yardend-wix merged 7 commits intofeature/functions-commandsfrom
Conversation
Contributor
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/cli@0.0.44-pr.380.ca88494Prefer 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.380.ca88494"Or add it to your {
"dependencies": {
"base44": "npm:@base44-preview/cli@0.0.44-pr.380.ca88494"
}
}
Preview published to npm registry — try new features instantly! |
Add a new `functions list` CLI command that lists all deployed functions on the remote, showing automation counts. Restructure the functions command group to use an index.ts that registers subcommands. - Add ListFunctionsResponseSchema and FunctionInfo types to schema - Add listDeployedFunctions API client function - Create functions/list.ts command with automation count display - Refactor functions/deploy.ts export to getDeployCommand - Create functions/index.ts to register deploy + list subcommands - Update program.ts to use getFunctionsCommand - Add test mocks and 5 tests for the list command Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
813293a to
5c77e60
Compare
kfirstri
reviewed
Mar 9, 2026
kfirstri
reviewed
Mar 9, 2026
kfirstri
reviewed
Mar 9, 2026
kfirstri
requested changes
Mar 9, 2026
Collaborator
kfirstri
left a comment
There was a problem hiding this comment.
some small changes. also, can you add a picture of how does the output looks like?
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Deleted Base44APIMock.ts (replaced by TestAPIServer.ts in main) and added mockFunctionsList / mockFunctionsListError methods to TestAPIServer so the functions-list tests work with the new test infrastructure. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace FunctionAutomationInfoSchema (3-field summary) with the existing full AutomationSchema so list response correctly parses all automation fields. Add entity automation to test mock alongside scheduled. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
kfirstri
reviewed
Mar 12, 2026
kfirstri
approved these changes
Mar 12, 2026
Collaborator
kfirstri
left a comment
There was a problem hiding this comment.
tiny comment about runTask messaging
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
Adds a
base44 functions listcommand that fetches and displays all deployed backend functions along with a count of attached automations for each. Thefunctions deploycommand was refactored to remove its own parentfunctionscommand wrapper, and a newindex.tsnow assembles the unifiedfunctionsparent command with bothdeployandlistsubcommands registered under it.Related Issue
None
Type of Change
Changes Made
functions listcommand (list.ts): Fetches all deployed backend functions via GET backend-functions and displays each function name with its automation countdeploy.ts: RenamedgetFunctionsDeployCommandtogetDeployCommandand stripped the parentfunctionscommand wrapper (now delegated toindex.ts)functions/index.ts: Assembles the unifiedfunctionsparent command, registering bothdeployandlistas subcommandsprogram.ts: Switched import fromgetFunctionsDeployCommandtogetFunctionsCommandfrom the new indexschema.ts): AddedFunctionInfoSchema(with snake_case to camelCase transform),ListFunctionsResponseSchema, andListFunctionsResponsetypeapi.ts): AddedlistDeployedFunctions()with proper error handling and schema validationfunctions_list.spec.ts): 5 integration tests covering empty list, multiple functions, automation count display, missing project config, and API error handlingmockFunctionsListandmockFunctionsListErrorhelpers for test mockingTesting
npm test)Checklist
docs/(AGENTS.md) if I made architectural changesAdditional Notes
The refactor of
deploy.tsis a prerequisite for this feature — it moves command composition up toindex.ts, enabling clean addition of furtherfunctionssubcommands in the future. TheFunctionInfoSchemareuses existingFunctionFileSchemaandAutomationSchematypes from the schema module.🤖 Generated by Claude | 2026-03-12 00:00 UTC