@base44-preview/cli 0.0.19-pr.122.292d0c9 → 0.0.19-pr.122.8946fef

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/index.js +22 -18
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -38058,9 +38058,8 @@ async function getTemplateById(templateId) {
38058
38058
  return template;
38059
38059
  }
38060
38060
  function validateNonInteractiveFlags$1(command) {
38061
- const { name: name$1, path: path$16 } = command.opts();
38062
- const providedCount = [name$1, path$16].filter(Boolean).length;
38063
- if (providedCount > 0 && providedCount < 2) command.error("Non-interactive mode requires all flags: --name, --path");
38061
+ const { path: path$16 } = command.opts();
38062
+ if (path$16 && !command.args.length) command.error("Non-interactive mode requires all flags: --name, --path");
38064
38063
  }
38065
38064
  async function chooseCreate(options) {
38066
38065
  if (!!(options.name && options.path)) await runCommand(() => createNonInteractive(options), {
@@ -38180,27 +38179,32 @@ async function executeCreate({ template, name: rawName, description, projectPath
38180
38179
  finalAppUrl = appUrl;
38181
38180
  }
38182
38181
  }
38183
- if (skills ?? true) await runTask("Installing AI agent skills...", async () => {
38184
- await execa("npx", [
38185
- "-y",
38186
- "add-skill",
38187
- "base44/skills",
38188
- "-y"
38189
- ], {
38190
- cwd: resolvedPath,
38191
- shell: true
38182
+ if (skills ?? true) try {
38183
+ await runTask("Installing AI agent skills...", async () => {
38184
+ await execa("npx", [
38185
+ "-y",
38186
+ "add-skill",
38187
+ "base44/skills",
38188
+ "-y"
38189
+ ], {
38190
+ cwd: resolvedPath,
38191
+ shell: true
38192
+ });
38193
+ }, {
38194
+ successMessage: theme.colors.base44Orange("AI agent skills added successfully"),
38195
+ errorMessage: "Failed to add AI agent skills - you can add them later with: npx add-skill base44/skills"
38192
38196
  });
38193
- }, {
38194
- successMessage: theme.colors.base44Orange("AI agent skills added successfully"),
38195
- errorMessage: "Failed to add AI agent skills - you can add them later with: npx add-skill base44/skills"
38196
- });
38197
+ } catch {}
38197
38198
  M.message(`${theme.styles.header("Project")}: ${theme.colors.base44Orange(name$1)}`);
38198
38199
  M.message(`${theme.styles.header("Dashboard")}: ${theme.colors.links(getDashboardUrl(projectId))}`);
38199
38200
  if (finalAppUrl) M.message(`${theme.styles.header("Site")}: ${theme.colors.links(finalAppUrl)}`);
38200
38201
  return { outroMessage: "Your project is set up and ready to use" };
38201
38202
  }
38202
- 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("-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 (options) => {
38203
- await chooseCreate(options);
38203
+ 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) => {
38204
+ await chooseCreate({
38205
+ name: name$1,
38206
+ ...options
38207
+ });
38204
38208
  });
38205
38209
 
38206
38210
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/cli",
3
- "version": "0.0.19-pr.122.292d0c9",
3
+ "version": "0.0.19-pr.122.8946fef",
4
4
  "description": "Base44 CLI - Unified interface for managing Base44 applications",
5
5
  "type": "module",
6
6
  "bin": {