@base44-preview/cli 0.0.22-pr.139.f106d0c → 0.0.22-pr.142.ed13ece

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/bin/dev.js CHANGED
@@ -1,4 +1,11 @@
1
1
  #!/usr/bin/env tsx
2
+
3
+ // Disable Clack spinners and animations in non-interactive environments.
4
+ // Clack only checks the CI env var, so we set it when stdin/stdout aren't TTYs.
5
+ if (!process.stdin.isTTY || !process.stdout.isTTY) {
6
+ process.env.CI = 'true';
7
+ }
8
+
2
9
  import { program, CLIExitError } from "../src/cli/index.ts";
3
10
 
4
11
  try {
package/bin/run.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- // Detect non-interactive environment and disable animations
3
+ // Disable Clack spinners and animations in non-interactive environments.
4
+ // Clack only checks the CI env var, so we set it when stdin/stdout aren't TTYs.
4
5
  if (!process.stdin.isTTY || !process.stdout.isTTY) {
5
6
  process.env.CI = 'true';
6
7
  }
package/dist/index.js CHANGED
@@ -31410,6 +31410,7 @@ async function runCommand(commandFn, options) {
31410
31410
  const { outroMessage } = await commandFn();
31411
31411
  Se(outroMessage || "");
31412
31412
  } catch (e$1) {
31413
+ if (e$1 instanceof CLIExitError) throw e$1;
31413
31414
  if (e$1 instanceof Error) M.error(e$1.stack ?? e$1.message);
31414
31415
  else M.error(String(e$1));
31415
31416
  throw new CLIExitError(1);
@@ -31474,11 +31475,11 @@ async function runTask(startMessage, operation, options) {
31474
31475
  //#region src/cli/utils/prompts.ts
31475
31476
  /**
31476
31477
  * Standard onCancel handler for prompt groups.
31477
- * Exits the process gracefully when the user cancels.
31478
+ g * Throws CLIExitError(0) for graceful exit when the user cancels.
31478
31479
  */
31479
31480
  const onPromptCancel = () => {
31480
31481
  xe("Operation cancelled.");
31481
- process.exit(0);
31482
+ throw new CLIExitError(0);
31482
31483
  };
31483
31484
 
31484
31485
  //#endregion
@@ -38474,7 +38475,7 @@ async function executeCreate({ template, name: rawName, description, projectPath
38474
38475
  finalAppUrl = appUrl;
38475
38476
  }
38476
38477
  }
38477
- if (skills ?? true) try {
38478
+ if (skills) try {
38478
38479
  await runTask("Installing AI agent skills...", async () => {
38479
38480
  await execa("npx", [
38480
38481
  "-y",
@@ -38495,7 +38496,7 @@ async function executeCreate({ template, name: rawName, description, projectPath
38495
38496
  if (finalAppUrl) M.message(`${theme.styles.header("Site")}: ${theme.colors.links(finalAppUrl)}`);
38496
38497
  return { outroMessage: "Your project is set up and ready to use" };
38497
38498
  }
38498
- const createCommand = new Command("create").description("Create a new Base44 project").addArgument(new Argument("name", "Project name").argOptional()).option("-p, --path <path>", "Path where to create the project").option("-t, --template <id>", "Template ID (e.g., backend-only, backend-and-client)").option("--deploy", "Build and deploy the site").option("--skills", "Add AI agent skills").hook("preAction", validateNonInteractiveFlags$1).action(async (name$1, options) => {
38499
+ const createCommand = new Command("create").description("Create a new Base44 project").addArgument(new Argument("name", "Project name").argOptional()).option("-p, --path <path>", "Path where to create the project").option("-t, --template <id>", "Template ID (e.g., backend-only, backend-and-client)").option("--deploy", "Build and deploy the site").option("--no-skills", "Skip AI agent skills installation").hook("preAction", validateNonInteractiveFlags$1).action(async (name$1, options) => {
38499
38500
  await chooseCreate({
38500
38501
  name: name$1,
38501
38502
  ...options
@@ -39105,7 +39106,7 @@ async function promptForLinkAction() {
39105
39106
  });
39106
39107
  if (pD(action)) {
39107
39108
  xe("Operation cancelled.");
39108
- process.exit(0);
39109
+ throw new CLIExitError(0);
39109
39110
  }
39110
39111
  return action;
39111
39112
  }
@@ -39140,7 +39141,7 @@ async function promptForExistingProject(linkableProjects) {
39140
39141
  });
39141
39142
  if (pD(selectedProject)) {
39142
39143
  xe("Operation cancelled.");
39143
- process.exit(0);
39144
+ throw new CLIExitError(0);
39144
39145
  }
39145
39146
  return selectedProject;
39146
39147
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/cli",
3
- "version": "0.0.22-pr.139.f106d0c",
3
+ "version": "0.0.22-pr.142.ed13ece",
4
4
  "description": "Base44 CLI - Unified interface for managing Base44 applications",
5
5
  "type": "module",
6
6
  "bin": {