@base44-preview/cli 0.2.6-pr.686.71ca09f → 0.2.7-pr.687.6373aad

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}`);
@@ -265213,7 +265215,7 @@ function lastCleanWrite(entries, path) {
265213
265215
  var readRegularFile = (path) => stat4(path).then((info) => info.isFile() ? readFile5(path) : undefined, () => {
265214
265216
  return;
265215
265217
  });
265216
- async function inlineImages(html, files) {
265218
+ async function inlineImages(html, files, missing) {
265217
265219
  const text = html.toString("utf8");
265218
265220
  const uris = new Map;
265219
265221
  for (const [, , , src = ""] of text.matchAll(IMG_SRC)) {
@@ -265222,6 +265224,8 @@ async function inlineImages(html, files) {
265222
265224
  const data = mediaType && await readRegularFile(local);
265223
265225
  if (data)
265224
265226
  uris.set(src, `data:${mediaType};base64,${data.toString("base64")}`);
265227
+ else if (local)
265228
+ missing.push(src);
265225
265229
  }
265226
265230
  if (!uris.size)
265227
265231
  return html;
@@ -265262,7 +265266,13 @@ async function collectArtifacts2(session, budget = MAX_REQUEST_BYTES - session.l
265262
265266
  continue;
265263
265267
  }
265264
265268
  if (found.files && /\.html?$/i.test(fileName)) {
265265
- data = await inlineImages(data, found.files);
265269
+ const missing = [];
265270
+ data = await inlineImages(data, found.files, missing);
265271
+ for (const src of new Set(missing))
265272
+ skipped.push({
265273
+ fileName: src,
265274
+ reason: `this image in ${fileName} isn't on disk anymore`
265275
+ });
265266
265276
  }
265267
265277
  if (data.length > MAX_BYTES) {
265268
265278
  skipped.push({ fileName, reason: "it's larger than 10 MB" });
@@ -274973,4 +274983,4 @@ export {
274973
274983
  runCLI
274974
274984
  };
274975
274985
 
274976
- //# debugId=4C7BDDBFD564720964756E2164756E21
274986
+ //# debugId=286ECC3B93B7320F64756E2164756E21