@base44-preview/cli 0.0.44-pr.383.39531ce → 0.0.44-pr.384.4b98c80

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/cli/index.js CHANGED
@@ -238980,10 +238980,13 @@ function hasResourcesToDeploy(projectData) {
238980
238980
  const hasConnectors = connectors.length > 0;
238981
238981
  return hasEntities || hasFunctions || hasAgents || hasConnectors || hasSite;
238982
238982
  }
238983
- async function deployAll(projectData) {
238983
+ async function deployAll(projectData, options) {
238984
238984
  const { project, entities, functions, agents, connectors } = projectData;
238985
238985
  await entityResource.push(entities);
238986
- await functionResource.push(functions);
238986
+ await deployFunctionsSequentially(functions, {
238987
+ onStart: options?.onFunctionStart,
238988
+ onResult: options?.onFunctionResult
238989
+ });
238987
238990
  await agentResource.push(agents);
238988
238991
  const { results: connectorResults } = await pushConnectors(connectors);
238989
238992
  if (project.site?.outputDirectory) {
@@ -248181,11 +248184,17 @@ ${summaryLines.join(`
248181
248184
  ${summaryLines.join(`
248182
248185
  `)}`);
248183
248186
  }
248184
- const result = await runTask("Deploying your app...", async () => {
248185
- return await deployAll(projectData);
248186
- }, {
248187
- successMessage: theme.colors.base44Orange("Deployment completed"),
248188
- errorMessage: "Deployment failed"
248187
+ let functionCompleted = 0;
248188
+ const functionTotal = functions.length;
248189
+ const result = await deployAll(projectData, {
248190
+ onFunctionStart: (names) => {
248191
+ const label = names.length === 1 ? names[0] : `${names.length} functions`;
248192
+ R2.step(theme.styles.dim(`[${functionCompleted + 1}/${functionTotal}] Deploying ${label}...`));
248193
+ },
248194
+ onFunctionResult: (r) => {
248195
+ functionCompleted++;
248196
+ formatDeployResult(r);
248197
+ }
248189
248198
  });
248190
248199
  const connectorResults = result.connectorResults ?? [];
248191
248200
  await handleOAuthConnectors(connectorResults, options);
@@ -255744,4 +255753,4 @@ export {
255744
255753
  CLIExitError
255745
255754
  };
255746
255755
 
255747
- //# debugId=E5A92FA7C3FBB16864756E2164756E21
255756
+ //# debugId=8533D2C01A675ED464756E2164756E21