@base44-preview/cli 0.0.17-pr.112.f3c3148 → 0.0.17-pr.112.f680ca6
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/index.js +20 -41
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31500,7 +31500,7 @@ async function pullAgentsAction() {
|
|
|
31500
31500
|
if (deleted.length > 0) M.warn(`Deleted: ${deleted.join(", ")}`);
|
|
31501
31501
|
return { outroMessage: `Pulled ${response.total} agents to ${agentsDir}` };
|
|
31502
31502
|
}
|
|
31503
|
-
const agentsPullCommand = new Command("pull").description("Pull agents from Base44 to local files").action(async () => {
|
|
31503
|
+
const agentsPullCommand = new Command("pull").description("Pull agents from Base44 to local files (replaces all local agent configs)").action(async () => {
|
|
31504
31504
|
await runCommand(pullAgentsAction, { requireAuth: true });
|
|
31505
31505
|
});
|
|
31506
31506
|
|
|
@@ -31521,7 +31521,7 @@ async function pushAgentsAction() {
|
|
|
31521
31521
|
if (result.deleted.length > 0) M.warn(`Deleted: ${result.deleted.join(", ")}`);
|
|
31522
31522
|
return {};
|
|
31523
31523
|
}
|
|
31524
|
-
const agentsCommand = new Command("agents").description("Manage project agents").addCommand(new Command("push").description("Push local agents to Base44").action(async () => {
|
|
31524
|
+
const agentsCommand = new Command("agents").description("Manage project agents").addCommand(new Command("push").description("Push local agents to Base44 (replaces all remote agent configs)").action(async () => {
|
|
31525
31525
|
await runCommand(pushAgentsAction, { requireAuth: true });
|
|
31526
31526
|
})).addCommand(agentsPullCommand);
|
|
31527
31527
|
|
|
@@ -38218,13 +38218,6 @@ var require_lodash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
38218
38218
|
//#region src/cli/commands/project/create.ts
|
|
38219
38219
|
var import_lodash = /* @__PURE__ */ __toESM(require_lodash(), 1);
|
|
38220
38220
|
const DEFAULT_TEMPLATE_ID = "backend-only";
|
|
38221
|
-
const SUPPORTED_AGENTS = [{
|
|
38222
|
-
value: "cursor",
|
|
38223
|
-
label: "Cursor"
|
|
38224
|
-
}, {
|
|
38225
|
-
value: "claude-code",
|
|
38226
|
-
label: "Claude Code"
|
|
38227
|
-
}];
|
|
38228
38221
|
async function getTemplateById(templateId) {
|
|
38229
38222
|
const templates = await listTemplates();
|
|
38230
38223
|
const template = templates.find((t) => t.id === templateId);
|
|
@@ -38362,45 +38355,31 @@ async function executeCreate({ template, name: rawName, description, projectPath
|
|
|
38362
38355
|
finalAppUrl = appUrl;
|
|
38363
38356
|
}
|
|
38364
38357
|
}
|
|
38365
|
-
let
|
|
38358
|
+
let shouldAddSkills = false;
|
|
38366
38359
|
if (isInteractive) {
|
|
38367
|
-
const result = await
|
|
38368
|
-
|
|
38369
|
-
|
|
38370
|
-
|
|
38371
|
-
|
|
38372
|
-
|
|
38373
|
-
|
|
38374
|
-
|
|
38375
|
-
|
|
38376
|
-
|
|
38377
|
-
|
|
38378
|
-
|
|
38379
|
-
await execa("npx", [
|
|
38380
|
-
"-y",
|
|
38381
|
-
"add-skill",
|
|
38382
|
-
"base44/skills",
|
|
38383
|
-
"-y",
|
|
38384
|
-
"-s",
|
|
38385
|
-
"base44-cli",
|
|
38386
|
-
"-s",
|
|
38387
|
-
"base44-sdk",
|
|
38388
|
-
...agentArgs
|
|
38389
|
-
], {
|
|
38390
|
-
cwd: resolvedPath,
|
|
38391
|
-
stdio: "inherit"
|
|
38392
|
-
});
|
|
38393
|
-
}, {
|
|
38394
|
-
successMessage: theme.colors.base44Orange("AI agent skills added successfully"),
|
|
38395
|
-
errorMessage: "Failed to add AI agent skills - you can add them later with: npx add-skill base44/skills"
|
|
38360
|
+
const result = await ye({ message: "Add AI agent skills?" });
|
|
38361
|
+
shouldAddSkills = !pD(result) && result;
|
|
38362
|
+
} else shouldAddSkills = !!skills;
|
|
38363
|
+
if (shouldAddSkills) await runTask("Installing AI agent skills...", async () => {
|
|
38364
|
+
await execa("npx", [
|
|
38365
|
+
"-y",
|
|
38366
|
+
"add-skill",
|
|
38367
|
+
"base44/skills",
|
|
38368
|
+
"-y"
|
|
38369
|
+
], {
|
|
38370
|
+
cwd: resolvedPath,
|
|
38371
|
+
stdio: "inherit"
|
|
38396
38372
|
});
|
|
38397
|
-
}
|
|
38373
|
+
}, {
|
|
38374
|
+
successMessage: theme.colors.base44Orange("AI agent skills added successfully"),
|
|
38375
|
+
errorMessage: "Failed to add AI agent skills - you can add them later with: npx add-skill base44/skills"
|
|
38376
|
+
});
|
|
38398
38377
|
M.message(`${theme.styles.header("Project")}: ${theme.colors.base44Orange(name$1)}`);
|
|
38399
38378
|
M.message(`${theme.styles.header("Dashboard")}: ${theme.colors.links(getDashboardUrl(projectId))}`);
|
|
38400
38379
|
if (finalAppUrl) M.message(`${theme.styles.header("Site")}: ${theme.colors.links(finalAppUrl)}`);
|
|
38401
38380
|
return { outroMessage: "Your project is set up and ready to use" };
|
|
38402
38381
|
}
|
|
38403
|
-
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
|
|
38382
|
+
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) => {
|
|
38404
38383
|
await chooseCreate(options);
|
|
38405
38384
|
});
|
|
38406
38385
|
|