@base44-preview/cli 0.0.15-pr.95.d246983 → 0.0.15-pr.96.cd454a5
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 +2 -18
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -38042,7 +38042,6 @@ async function createInteractive(options) {
|
|
|
38042
38042
|
description: result.description || void 0,
|
|
38043
38043
|
projectPath: result.projectPath,
|
|
38044
38044
|
deploy: options.deploy,
|
|
38045
|
-
skills: options.skills,
|
|
38046
38045
|
isInteractive: true
|
|
38047
38046
|
});
|
|
38048
38047
|
}
|
|
@@ -38053,11 +38052,10 @@ async function createNonInteractive(options) {
|
|
|
38053
38052
|
description: options.description,
|
|
38054
38053
|
projectPath: options.path,
|
|
38055
38054
|
deploy: options.deploy,
|
|
38056
|
-
skills: options.skills,
|
|
38057
38055
|
isInteractive: false
|
|
38058
38056
|
});
|
|
38059
38057
|
}
|
|
38060
|
-
async function executeCreate({ template, name: rawName, description, projectPath, deploy,
|
|
38058
|
+
async function executeCreate({ template, name: rawName, description, projectPath, deploy, isInteractive }) {
|
|
38061
38059
|
const name$1 = rawName.trim();
|
|
38062
38060
|
const resolvedPath = resolve(projectPath);
|
|
38063
38061
|
const { projectId } = await runTask("Setting up your project...", async () => {
|
|
@@ -38075,20 +38073,6 @@ async function executeCreate({ template, name: rawName, description, projectPath
|
|
|
38075
38073
|
id: projectId,
|
|
38076
38074
|
projectRoot: resolvedPath
|
|
38077
38075
|
});
|
|
38078
|
-
let shouldAddSkills;
|
|
38079
|
-
if (isInteractive) {
|
|
38080
|
-
const result = await ye({ message: "Add AI agent skills? (Helps AI assistants like Cursor, Claude Code work with Base44)" });
|
|
38081
|
-
shouldAddSkills = !pD(result) && result;
|
|
38082
|
-
} else shouldAddSkills = !!skills;
|
|
38083
|
-
if (shouldAddSkills) await runTask("Adding AI agent skills...", async () => {
|
|
38084
|
-
await execa({
|
|
38085
|
-
cwd: resolvedPath,
|
|
38086
|
-
shell: true
|
|
38087
|
-
})`npx -y add-skill base44/skills`;
|
|
38088
|
-
}, {
|
|
38089
|
-
successMessage: theme.colors.base44Orange("AI agent skills added successfully"),
|
|
38090
|
-
errorMessage: "Failed to add AI agent skills"
|
|
38091
|
-
});
|
|
38092
38076
|
const { project, entities } = await readProjectConfig(resolvedPath);
|
|
38093
38077
|
let finalAppUrl;
|
|
38094
38078
|
if (entities.length > 0) {
|
|
@@ -38136,7 +38120,7 @@ async function executeCreate({ template, name: rawName, description, projectPath
|
|
|
38136
38120
|
if (finalAppUrl) M.message(`${theme.styles.header("Site")}: ${theme.colors.links(finalAppUrl)}`);
|
|
38137
38121
|
return { outroMessage: "Your project is set up and ready to use" };
|
|
38138
38122
|
}
|
|
38139
|
-
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").
|
|
38123
|
+
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").hook("preAction", validateNonInteractiveFlags$1).action(async (options) => {
|
|
38140
38124
|
await chooseCreate(options);
|
|
38141
38125
|
});
|
|
38142
38126
|
|
package/package.json
CHANGED