@base44-preview/cli 0.0.33-pr.383.4cb51a6 → 0.0.33-pr.384.14f67f4
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 +17 -8
- package/dist/cli/index.js.map +4 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -186538,10 +186538,13 @@ function hasResourcesToDeploy(projectData) {
|
|
|
186538
186538
|
const hasConnectors = connectors.length > 0;
|
|
186539
186539
|
return hasEntities || hasFunctions || hasAgents || hasConnectors || hasSite;
|
|
186540
186540
|
}
|
|
186541
|
-
async function deployAll(projectData) {
|
|
186541
|
+
async function deployAll(projectData, options) {
|
|
186542
186542
|
const { project, entities, functions, agents, connectors } = projectData;
|
|
186543
186543
|
await entityResource.push(entities);
|
|
186544
|
-
await
|
|
186544
|
+
await deployFunctionsSequentially(functions, {
|
|
186545
|
+
onStart: options?.onFunctionStart,
|
|
186546
|
+
onResult: options?.onFunctionResult
|
|
186547
|
+
});
|
|
186545
186548
|
await agentResource.push(agents);
|
|
186546
186549
|
const { results: connectorResults } = await pushConnectors(connectors);
|
|
186547
186550
|
if (project.site?.outputDirectory) {
|
|
@@ -195478,11 +195481,17 @@ ${summaryLines.join(`
|
|
|
195478
195481
|
${summaryLines.join(`
|
|
195479
195482
|
`)}`);
|
|
195480
195483
|
}
|
|
195481
|
-
|
|
195482
|
-
|
|
195483
|
-
|
|
195484
|
-
|
|
195485
|
-
|
|
195484
|
+
let functionCompleted = 0;
|
|
195485
|
+
const functionTotal = functions.length;
|
|
195486
|
+
const result = await deployAll(projectData, {
|
|
195487
|
+
onFunctionStart: (names) => {
|
|
195488
|
+
const label = names.length === 1 ? names[0] : `${names.length} functions`;
|
|
195489
|
+
R2.step(theme.styles.dim(`[${functionCompleted + 1}/${functionTotal}] Deploying ${label}...`));
|
|
195490
|
+
},
|
|
195491
|
+
onFunctionResult: (r) => {
|
|
195492
|
+
functionCompleted++;
|
|
195493
|
+
formatDeployResult(r);
|
|
195494
|
+
}
|
|
195486
195495
|
});
|
|
195487
195496
|
const needsOAuth = filterPendingOAuth(result.connectorResults ?? []);
|
|
195488
195497
|
if (needsOAuth.length > 0) {
|
|
@@ -200640,4 +200649,4 @@ export {
|
|
|
200640
200649
|
CLIExitError
|
|
200641
200650
|
};
|
|
200642
200651
|
|
|
200643
|
-
//# debugId=
|
|
200652
|
+
//# debugId=3E7C5C117F7AC17164756E2164756E21
|