@base44-preview/cli 0.0.40-pr.383.7fba6a4 → 0.0.40-pr.384.cb801ab
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
|
@@ -231795,10 +231795,13 @@ function hasResourcesToDeploy(projectData) {
|
|
|
231795
231795
|
const hasConnectors = connectors.length > 0;
|
|
231796
231796
|
return hasEntities || hasFunctions || hasAgents || hasConnectors || hasSite;
|
|
231797
231797
|
}
|
|
231798
|
-
async function deployAll(projectData) {
|
|
231798
|
+
async function deployAll(projectData, options) {
|
|
231799
231799
|
const { project, entities, functions, agents, connectors } = projectData;
|
|
231800
231800
|
await entityResource.push(entities);
|
|
231801
|
-
await
|
|
231801
|
+
await deployFunctionsSequentially(functions, {
|
|
231802
|
+
onStart: options?.onFunctionStart,
|
|
231803
|
+
onResult: options?.onFunctionResult
|
|
231804
|
+
});
|
|
231802
231805
|
await agentResource.push(agents);
|
|
231803
231806
|
const { results: connectorResults } = await pushConnectors(connectors);
|
|
231804
231807
|
if (project.site?.outputDirectory) {
|
|
@@ -240743,11 +240746,17 @@ ${summaryLines.join(`
|
|
|
240743
240746
|
${summaryLines.join(`
|
|
240744
240747
|
`)}`);
|
|
240745
240748
|
}
|
|
240746
|
-
|
|
240747
|
-
|
|
240748
|
-
|
|
240749
|
-
|
|
240750
|
-
|
|
240749
|
+
let functionCompleted = 0;
|
|
240750
|
+
const functionTotal = functions.length;
|
|
240751
|
+
const result = await deployAll(projectData, {
|
|
240752
|
+
onFunctionStart: (names) => {
|
|
240753
|
+
const label = names.length === 1 ? names[0] : `${names.length} functions`;
|
|
240754
|
+
R2.step(theme.styles.dim(`[${functionCompleted + 1}/${functionTotal}] Deploying ${label}...`));
|
|
240755
|
+
},
|
|
240756
|
+
onFunctionResult: (r) => {
|
|
240757
|
+
functionCompleted++;
|
|
240758
|
+
formatDeployResult(r);
|
|
240759
|
+
}
|
|
240751
240760
|
});
|
|
240752
240761
|
const needsOAuth = filterPendingOAuth(result.connectorResults ?? []);
|
|
240753
240762
|
if (needsOAuth.length > 0) {
|
|
@@ -248254,4 +248263,4 @@ export {
|
|
|
248254
248263
|
CLIExitError
|
|
248255
248264
|
};
|
|
248256
248265
|
|
|
248257
|
-
//# debugId=
|
|
248266
|
+
//# debugId=ABEE71342C9356C564756E2164756E21
|