@base44-preview/cli 0.2.6-pr.686.71ca09f → 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)}`);
@@ -265213,7 +265223,7 @@ function lastCleanWrite(entries, path) {
265213
265223
  var readRegularFile = (path) => stat4(path).then((info) => info.isFile() ? readFile5(path) : undefined, () => {
265214
265224
  return;
265215
265225
  });
265216
- async function inlineImages(html, files) {
265226
+ async function inlineImages(html, files, missing) {
265217
265227
  const text = html.toString("utf8");
265218
265228
  const uris = new Map;
265219
265229
  for (const [, , , src = ""] of text.matchAll(IMG_SRC)) {
@@ -265222,6 +265232,8 @@ async function inlineImages(html, files) {
265222
265232
  const data = mediaType && await readRegularFile(local);
265223
265233
  if (data)
265224
265234
  uris.set(src, `data:${mediaType};base64,${data.toString("base64")}`);
265235
+ else if (local)
265236
+ missing.push(src);
265225
265237
  }
265226
265238
  if (!uris.size)
265227
265239
  return html;
@@ -265262,7 +265274,13 @@ async function collectArtifacts2(session, budget = MAX_REQUEST_BYTES - session.l
265262
265274
  continue;
265263
265275
  }
265264
265276
  if (found.files && /\.html?$/i.test(fileName)) {
265265
- data = await inlineImages(data, found.files);
265277
+ const missing = [];
265278
+ data = await inlineImages(data, found.files, missing);
265279
+ for (const src of new Set(missing))
265280
+ skipped.push({
265281
+ fileName: src,
265282
+ reason: `this image in ${fileName} isn't on disk anymore`
265283
+ });
265266
265284
  }
265267
265285
  if (data.length > MAX_BYTES) {
265268
265286
  skipped.push({ fileName, reason: "it's larger than 10 MB" });
@@ -274973,4 +274991,4 @@ export {
274973
274991
  runCLI
274974
274992
  };
274975
274993
 
274976
- //# debugId=4C7BDDBFD564720964756E2164756E21
274994
+ //# debugId=71C07C8D113EFCAB64756E2164756E21