@base44-preview/cli 0.0.15-pr.95.166452a → 0.0.15-pr.95.a2f5c85

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 +35 -15
  2. package/package.json +1 -1
package/dist/cli/index.js CHANGED
@@ -37980,6 +37980,13 @@ var require_lodash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37980
37980
  //#region src/cli/commands/project/create.ts
37981
37981
  var import_lodash = /* @__PURE__ */ __toESM(require_lodash(), 1);
37982
37982
  const DEFAULT_TEMPLATE_ID = "backend-only";
37983
+ const SUPPORTED_AGENTS = [{
37984
+ value: "cursor",
37985
+ label: "Cursor"
37986
+ }, {
37987
+ value: "claude-code",
37988
+ label: "Claude Code"
37989
+ }];
37983
37990
  async function getTemplateById(templateId) {
37984
37991
  const templates = await listTemplates();
37985
37992
  const template = templates.find((t) => t.id === templateId);
@@ -38080,7 +38087,7 @@ async function executeCreate({ template, name: rawName, description, projectPath
38080
38087
  if (entities.length > 0) {
38081
38088
  let shouldPushEntities;
38082
38089
  if (isInteractive) {
38083
- const result = await ye({ message: "Set up the backend data now? (This pushes the data models used by the template to Base44)" });
38090
+ const result = await confirm({ message: "Set up the backend data now? (This pushes the data models used by the template to Base44)" });
38084
38091
  shouldPushEntities = !pD(result) && result;
38085
38092
  } else shouldPushEntities = !!deploy;
38086
38093
  if (shouldPushEntities) await runTask(`Pushing ${entities.length} data models to Base44...`, async () => {
@@ -38094,7 +38101,7 @@ async function executeCreate({ template, name: rawName, description, projectPath
38094
38101
  const { installCommand, buildCommand, outputDirectory } = project.site;
38095
38102
  let shouldDeploy;
38096
38103
  if (isInteractive) {
38097
- const result = await ye({ message: "Would you like to deploy the site now? (Hosted on Base44)" });
38104
+ const result = await confirm({ message: "Would you like to deploy the site now? (Hosted on Base44)" });
38098
38105
  shouldDeploy = !pD(result) && result;
38099
38106
  } else shouldDeploy = !!deploy;
38100
38107
  if (shouldDeploy && installCommand && buildCommand && outputDirectory) {
@@ -38117,20 +38124,33 @@ async function executeCreate({ template, name: rawName, description, projectPath
38117
38124
  finalAppUrl = appUrl;
38118
38125
  }
38119
38126
  }
38120
- let shouldAddSkills;
38127
+ let selectedAgents = [];
38121
38128
  if (isInteractive) {
38122
- const result = await ye({ message: "Add AI agent skills? (Helps Cursor, Claude Code work with Base44)" });
38123
- shouldAddSkills = !pD(result) && result;
38124
- } else shouldAddSkills = !!skills;
38125
- if (shouldAddSkills) await runTask("Adding AI agent skills...", async () => {
38126
- await execa({
38127
- cwd: resolvedPath,
38128
- shell: true
38129
- })`npx -y add-skill base44/skills`;
38130
- }, {
38131
- successMessage: theme.colors.base44Orange("AI agent skills added successfully"),
38132
- errorMessage: "Failed to add AI agent skills"
38133
- });
38129
+ const result = await fe({
38130
+ message: "Add AI agent skills? (Select agents to configure)",
38131
+ options: SUPPORTED_AGENTS.map((agent) => ({
38132
+ value: agent.value,
38133
+ label: agent.label
38134
+ })),
38135
+ initialValues: SUPPORTED_AGENTS.map((agent) => agent.value),
38136
+ required: false
38137
+ });
38138
+ if (!pD(result)) selectedAgents = result;
38139
+ } else if (skills) selectedAgents = SUPPORTED_AGENTS.map((agent) => agent.value);
38140
+ if (selectedAgents.length > 0) {
38141
+ const agentArgs = selectedAgents.flatMap((agent) => ["-a", agent]);
38142
+ await runTask("Adding AI agent skills...", async () => {
38143
+ await execa("npx", [
38144
+ "-y",
38145
+ "add-skill",
38146
+ "base44/skills",
38147
+ ...agentArgs
38148
+ ], { cwd: resolvedPath });
38149
+ }, {
38150
+ successMessage: theme.colors.base44Orange("AI agent skills added successfully"),
38151
+ errorMessage: "Failed to add AI agent skills"
38152
+ });
38153
+ }
38134
38154
  M.message(`${theme.styles.header("Project")}: ${theme.colors.base44Orange(name$1)}`);
38135
38155
  M.message(`${theme.styles.header("Dashboard")}: ${theme.colors.links(getDashboardUrl(projectId))}`);
38136
38156
  if (finalAppUrl) M.message(`${theme.styles.header("Site")}: ${theme.colors.links(finalAppUrl)}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/cli",
3
- "version": "0.0.15-pr.95.166452a",
3
+ "version": "0.0.15-pr.95.a2f5c85",
4
4
  "description": "Base44 CLI - Unified interface for managing Base44 applications",
5
5
  "type": "module",
6
6
  "main": "./dist/cli/index.js",