@base44-preview/cli 0.2.6-pr.686.434aab7 → 0.2.7-pr.687.1d85c42

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
@@ -238254,6 +238254,9 @@ async function pullAllConnectors() {
238254
238254
  }
238255
238255
  // src/core/resources/connector/push.ts
238256
238256
  async function pushConnectors(connectors) {
238257
+ if (connectors.length === 0) {
238258
+ return { results: [] };
238259
+ }
238257
238260
  const stripeConnector = connectors.find((c) => c.type === STRIPE_CONNECTOR_TYPE);
238258
238261
  const oauthConnectors = connectors.filter((c) => c.type !== STRIPE_CONNECTOR_TYPE);
238259
238262
  const oauthResults = await syncOAuthConnectors(oauthConnectors);
@@ -239384,7 +239387,7 @@ import { join as join13 } from "node:path";
239384
239387
  // package.json
239385
239388
  var package_default = {
239386
239389
  name: "base44",
239387
- version: "0.2.6",
239390
+ version: "0.2.7",
239388
239391
  description: "Base44 CLI - Unified interface for managing Base44 applications",
239389
239392
  type: "module",
239390
239393
  bin: {
@@ -246979,8 +246982,7 @@ async function deployAll(projectData, options) {
246979
246982
  await agentSkillResource.push(agentSkills);
246980
246983
  await agentResource.push(agents);
246981
246984
  await authConfigResource.push(authConfig);
246982
- const skipConnectorSync = connectors.length === 0 && hasWorkspaceApiKeyAuth();
246983
- const connectorResults = skipConnectorSync ? [] : (await pushConnectors(connectors)).results;
246985
+ const { results: connectorResults } = await pushConnectors(connectors);
246984
246986
  const appUrl = await deployProjectSite(project, options);
246985
246987
  return appUrl ? { appUrl, connectorResults } : { connectorResults };
246986
246988
  }
@@ -251360,7 +251362,7 @@ async function pushConnectorsAction({ isNonInteractive, log, runTask, jsonMode }
251360
251362
  const connectors = await readConnectorsToPush(options);
251361
251363
  if (!jsonMode) {
251362
251364
  if (connectors.length === 0) {
251363
- log.info("No local connectors found - checking for remote connectors to remove");
251365
+ log.info("No local connectors found - nothing to push");
251364
251366
  } else {
251365
251367
  const connectorNames = connectors.map((c) => c.type).join(", ");
251366
251368
  log.info(`Found ${connectors.length} connectors to push: ${connectorNames}`);
@@ -252114,6 +252116,14 @@ ${summaryLines.join(`
252114
252116
  if (stripeResult?.action === "provisioned") {
252115
252117
  printStripeResult(stripeResult, log);
252116
252118
  }
252119
+ const removed = connectorResults.filter((r) => r.action === "removed");
252120
+ if (removed.length > 0) {
252121
+ log.warn(`Removed connectors: ${removed.map((r) => r.type).join(", ")}`);
252122
+ }
252123
+ for (const r of connectorResults) {
252124
+ if (r.action === "error")
252125
+ log.error(`Failed: ${r.type} - ${r.error}`);
252126
+ }
252117
252127
  log.message(`${theme.styles.header("Dashboard")}: ${theme.colors.links(getDashboardUrl())}`);
252118
252128
  if (result.appUrl) {
252119
252129
  log.message(`${theme.styles.header("App URL")}: ${theme.colors.links(result.appUrl)}`);
@@ -274981,4 +274991,4 @@ export {
274981
274991
  runCLI
274982
274992
  };
274983
274993
 
274984
- //# debugId=C068BFC2F2A8F3FB64756E2164756E21
274994
+ //# debugId=71C07C8D113EFCAB64756E2164756E21