@base44-preview/cli 0.0.9-pr.74.2f7b0bf → 0.0.9-pr.74.8755bae

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.
Files changed (2) hide show
  1. package/dist/cli/index.js +23 -22
  2. package/package.json +1 -1
package/dist/cli/index.js CHANGED
@@ -26188,16 +26188,17 @@ async function getUserInfo(accessToken) {
26188
26188
  }
26189
26189
 
26190
26190
  //#endregion
26191
- //#region src/cli/utils/theme.ts
26191
+ //#region src/cli/utils/consts.ts
26192
26192
  /**
26193
- * Base44 theme configuration
26193
+ * Brand colors used throughout the CLI
26194
26194
  */
26195
- const theme = { colors: {
26196
- orange: source_default.hex("#E86B3C"),
26197
- cyan: source_default.hex("#00D4FF"),
26198
- gold: source_default.hex("#FFD700"),
26199
- base44Bg: source_default.bgHex("#E86B3C")
26200
- } };
26195
+ const ORANGE = source_default.hex("#E86B3C");
26196
+ const CYAN = source_default.hex("#00D4FF");
26197
+ const GOLD = source_default.hex("#FFD700");
26198
+ /**
26199
+ * Background color for the Base44 intro tag
26200
+ */
26201
+ const BASE44_BG = source_default.bgHex("#E86B3C");
26201
26202
 
26202
26203
  //#endregion
26203
26204
  //#region src/cli/utils/animate.ts
@@ -26217,13 +26218,13 @@ async function animateLineReveal(line, duration$2) {
26217
26218
  const progress = step / steps;
26218
26219
  const revealIndex = Math.floor(progress * line.length);
26219
26220
  let output = "";
26220
- for (let i$1 = 0; i$1 < line.length; i$1++) if (i$1 < revealIndex) output += theme.colors.orange(line[i$1]);
26221
- else if (i$1 === revealIndex) output += theme.colors.gold(line[i$1]);
26221
+ for (let i$1 = 0; i$1 < line.length; i$1++) if (i$1 < revealIndex) output += ORANGE(line[i$1]);
26222
+ else if (i$1 === revealIndex) output += GOLD(line[i$1]);
26222
26223
  else output += source_default.dim(line[i$1]);
26223
26224
  process.stdout.write(`\r${output}`);
26224
26225
  await sleep(stepDuration);
26225
26226
  }
26226
- process.stdout.write(`\r${theme.colors.orange(line)}\n`);
26227
+ process.stdout.write(`\r${ORANGE(line)}\n`);
26227
26228
  }
26228
26229
  /**
26229
26230
  * Quick shimmer pass over the entire banner.
@@ -26240,15 +26241,15 @@ async function shimmerPass(lines, duration$2) {
26240
26241
  let output = "";
26241
26242
  for (let i$1 = 0; i$1 < line.length; i$1++) {
26242
26243
  const dist = Math.abs(i$1 - shimmerPos);
26243
- if (dist < 3) output += dist === 0 ? source_default.white(line[i$1]) : theme.colors.gold(line[i$1]);
26244
- else output += theme.colors.orange(line[i$1]);
26244
+ if (dist < 3) output += dist === 0 ? source_default.white(line[i$1]) : GOLD(line[i$1]);
26245
+ else output += ORANGE(line[i$1]);
26245
26246
  }
26246
26247
  console.log(output);
26247
26248
  }
26248
26249
  await sleep(stepDuration);
26249
26250
  }
26250
26251
  process.stdout.write(moveUp);
26251
- for (const line of lines) console.log(theme.colors.orange(line));
26252
+ for (const line of lines) console.log(ORANGE(line));
26252
26253
  }
26253
26254
  /**
26254
26255
  * Animate the output with a smooth line-by-line reveal.
@@ -26282,7 +26283,7 @@ const BANNER_LINES = [
26282
26283
  */
26283
26284
  async function printBanner() {
26284
26285
  if (process.stdout.isTTY) await printAnimatedLines(BANNER_LINES);
26285
- else console.log(theme.colors.orange(BANNER_LINES.join("\n")));
26286
+ else console.log(ORANGE(BANNER_LINES.join("\n")));
26286
26287
  }
26287
26288
 
26288
26289
  //#endregion
@@ -26330,7 +26331,7 @@ async function runCommand(commandFn, options) {
26330
26331
  if (options?.fullBanner) {
26331
26332
  await printBanner();
26332
26333
  Ie("");
26333
- } else Ie(theme.colors.base44Bg(" Base 44 "));
26334
+ } else Ie(BASE44_BG(" Base 44 "));
26334
26335
  await loadProjectEnv();
26335
26336
  try {
26336
26337
  if (options?.requireAuth) {
@@ -38243,7 +38244,7 @@ async function executeCreate({ template, name: rawName, description, projectPath
38243
38244
  template
38244
38245
  });
38245
38246
  }, {
38246
- successMessage: theme.colors.orange("Project created successfully"),
38247
+ successMessage: ORANGE("Project created successfully"),
38247
38248
  errorMessage: "Failed to create project"
38248
38249
  });
38249
38250
  await loadProjectEnv(resolvedPath);
@@ -38258,7 +38259,7 @@ async function executeCreate({ template, name: rawName, description, projectPath
38258
38259
  if (shouldPushEntities) await runTask(`Pushing ${entities.length} entities to Base44...`, async () => {
38259
38260
  await pushEntities(entities);
38260
38261
  }, {
38261
- successMessage: theme.colors.orange("Entities pushed successfully"),
38262
+ successMessage: ORANGE("Entities pushed successfully"),
38262
38263
  errorMessage: "Failed to push entities"
38263
38264
  });
38264
38265
  }
@@ -38283,16 +38284,16 @@ async function executeCreate({ template, name: rawName, description, projectPath
38283
38284
  updateMessage("Deploying site...");
38284
38285
  return await deploySite(join(resolvedPath, outputDirectory));
38285
38286
  }, {
38286
- successMessage: theme.colors.orange("Site deployed successfully"),
38287
+ successMessage: ORANGE("Site deployed successfully"),
38287
38288
  errorMessage: "Failed to deploy site"
38288
38289
  });
38289
38290
  finalAppUrl = appUrl;
38290
38291
  }
38291
38292
  }
38292
38293
  const dashboardUrl = `${getBase44ApiUrl()}/apps/${projectId}/editor/preview`;
38293
- M.message(`${source_default.dim("Project")}: ${theme.colors.orange(name$1)}`);
38294
- M.message(`${source_default.dim("Dashboard")}: ${theme.colors.cyan(dashboardUrl)}`);
38295
- if (finalAppUrl) M.message(`${source_default.dim("Site")}: ${theme.colors.cyan(finalAppUrl)}`);
38294
+ M.message(`${source_default.dim("Project")}: ${ORANGE(name$1)}`);
38295
+ M.message(`${source_default.dim("Dashboard")}: ${CYAN(dashboardUrl)}`);
38296
+ if (finalAppUrl) M.message(`${source_default.dim("Site")}: ${CYAN(finalAppUrl)}`);
38296
38297
  return { outroMessage: "Your project is set and ready to use" };
38297
38298
  }
38298
38299
  const createCommand = new Command("create").description("Create a new Base44 project").option("-n, --name <name>", "Project name").option("-d, --description <description>", "Project description").option("-p, --path <path>", "Path where to create the project").option("--deploy", "Build and deploy the site").hook("preAction", validateNonInteractiveFlags).action(async (options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/cli",
3
- "version": "0.0.9-pr.74.2f7b0bf",
3
+ "version": "0.0.9-pr.74.8755bae",
4
4
  "description": "Base44 CLI - Unified interface for managing Base44 applications",
5
5
  "type": "module",
6
6
  "main": "./dist/cli/index.js",