@base44-preview/cli 0.0.24-pr.146.e5ee77a → 0.0.25-pr.149.49cb3ba
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +11 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30612,25 +30612,27 @@ async function createArchive(pathToArchive, targetArchivePath) {
|
|
|
30612
30612
|
* Checks if there are any resources to deploy in the project.
|
|
30613
30613
|
*
|
|
30614
30614
|
* @param projectData - The project configuration and resources
|
|
30615
|
-
* @returns true if there are entities, functions, or a configured site to deploy
|
|
30615
|
+
* @returns true if there are entities, functions, agents, or a configured site to deploy
|
|
30616
30616
|
*/
|
|
30617
30617
|
function hasResourcesToDeploy(projectData) {
|
|
30618
|
-
const { project, entities, functions } = projectData;
|
|
30618
|
+
const { project, entities, functions, agents } = projectData;
|
|
30619
30619
|
const hasSite = Boolean(project.site?.outputDirectory);
|
|
30620
30620
|
const hasEntities = entities.length > 0;
|
|
30621
30621
|
const hasFunctions = functions.length > 0;
|
|
30622
|
-
|
|
30622
|
+
const hasAgents = agents.length > 0;
|
|
30623
|
+
return hasEntities || hasFunctions || hasAgents || hasSite;
|
|
30623
30624
|
}
|
|
30624
30625
|
/**
|
|
30625
|
-
* Deploys all project resources (entities, functions, and site) to Base44.
|
|
30626
|
+
* Deploys all project resources (entities, functions, agents, and site) to Base44.
|
|
30626
30627
|
*
|
|
30627
30628
|
* @param projectData - The project configuration and resources to deploy
|
|
30628
30629
|
* @returns The deployment result including app URL if site was deployed
|
|
30629
30630
|
*/
|
|
30630
30631
|
async function deployAll(projectData) {
|
|
30631
|
-
const { project, entities, functions } = projectData;
|
|
30632
|
+
const { project, entities, functions, agents } = projectData;
|
|
30632
30633
|
await entityResource.push(entities);
|
|
30633
30634
|
await functionResource.push(functions);
|
|
30635
|
+
await agentResource.push(agents);
|
|
30634
30636
|
if (project.site?.outputDirectory) {
|
|
30635
30637
|
const { appUrl } = await deploySite(resolve(project.root, project.site.outputDirectory));
|
|
30636
30638
|
return { appUrl };
|
|
@@ -39070,10 +39072,11 @@ const dashboardCommand = new Command("dashboard").description("Open the app dash
|
|
|
39070
39072
|
async function deployAction$1(options) {
|
|
39071
39073
|
const projectData = await readProjectConfig();
|
|
39072
39074
|
if (!hasResourcesToDeploy(projectData)) return { outroMessage: "No resources found to deploy" };
|
|
39073
|
-
const { project, entities, functions } = projectData;
|
|
39075
|
+
const { project, entities, functions, agents } = projectData;
|
|
39074
39076
|
const summaryLines = [];
|
|
39075
39077
|
if (entities.length > 0) summaryLines.push(` - ${entities.length} ${entities.length === 1 ? "entity" : "entities"}`);
|
|
39076
39078
|
if (functions.length > 0) summaryLines.push(` - ${functions.length} ${functions.length === 1 ? "function" : "functions"}`);
|
|
39079
|
+
if (agents.length > 0) summaryLines.push(` - ${agents.length} ${agents.length === 1 ? "agent" : "agents"}`);
|
|
39077
39080
|
if (project.site?.outputDirectory) summaryLines.push(` - Site from ${project.site.outputDirectory}`);
|
|
39078
39081
|
if (!options.yes) {
|
|
39079
39082
|
M.warn(`This will update your Base44 app with:\n${summaryLines.join("\n")}`);
|
|
@@ -39090,7 +39093,7 @@ async function deployAction$1(options) {
|
|
|
39090
39093
|
if (result.appUrl) M.message(`${theme.styles.header("App URL")}: ${theme.colors.links(result.appUrl)}`);
|
|
39091
39094
|
return { outroMessage: "App deployed successfully" };
|
|
39092
39095
|
}
|
|
39093
|
-
const deployCommand = new Command("deploy").description("Deploy all project resources (entities, functions, and site)").option("-y, --yes", "Skip confirmation prompt").action(async (options) => {
|
|
39096
|
+
const deployCommand = new Command("deploy").description("Deploy all project resources (entities, functions, agents, and site)").option("-y, --yes", "Skip confirmation prompt").action(async (options) => {
|
|
39094
39097
|
await runCommand(() => deployAction$1(options), { requireAuth: true });
|
|
39095
39098
|
});
|
|
39096
39099
|
|
|
@@ -39237,7 +39240,7 @@ const siteDeployCommand = new Command("site").description("Manage site deploymen
|
|
|
39237
39240
|
|
|
39238
39241
|
//#endregion
|
|
39239
39242
|
//#region package.json
|
|
39240
|
-
var version = "0.0.
|
|
39243
|
+
var version = "0.0.25";
|
|
39241
39244
|
|
|
39242
39245
|
//#endregion
|
|
39243
39246
|
//#region src/cli/program.ts
|