Open
Conversation
Contributor
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/cli@0.0.28-pr.197.3dd0528Prefer not to change any import paths? Install using npm alias so your code still imports npm i "base44@npm:@base44-preview/cli@0.0.28-pr.197.3dd0528"Or add it to your {
"dependencies": {
"base44": "npm:@base44-preview/cli@0.0.28-pr.197.3dd0528"
}
}
Preview published to npm registry — try new features instantly! |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
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 comprehensive schema support for function automations in the Base44 CLI. It introduces Zod schemas for scheduled automations (one-time, cron, and simple recurring) and entity event-based automations, enabling functions to be triggered automatically on schedules or entity lifecycle events. The schemas validate automation configurations in function.jsonc files and include them in API payloads during deployment.
Related Issue
None
Type of Change
Changes Made
AutomationSchemawith four automation types: one-time scheduled, cron scheduled, simple recurring scheduled, and entity event-basedFunctionConfigSchemato include optionalautomationsarray fieldtoDeployPayloadItem()inapi.tsto include automations in API payloadskippedfield toDeployFunctionsResponseSchemafor functions not deployed due to validationFunctionDeploySchema(replaced by inline type in deployment logic)FunctionWithCodetype to correctly omitfilePathsinstead offilesTesting
npm test)Checklist
Additional Notes
Automation types supported:
The
automationsfield is optional, maintaining full backward compatibility with existing function configurations that don't use automations.🤖 Generated by Claude | 2026-02-05 08:17 UTC