@base44-preview/cli 0.0.25-pr.152.43bb784 → 0.0.25-pr.153.369cb54
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
CHANGED
|
@@ -34800,7 +34800,7 @@ function parseMilliseconds(milliseconds) {
|
|
|
34800
34800
|
//#endregion
|
|
34801
34801
|
//#region node_modules/pretty-ms/index.js
|
|
34802
34802
|
const isZero = (value) => value === 0 || value === 0n;
|
|
34803
|
-
const pluralize = (word, count$1) => count$1 === 1 || count$1 === 1n ? word : `${word}s`;
|
|
34803
|
+
const pluralize$1 = (word, count$1) => count$1 === 1 || count$1 === 1n ? word : `${word}s`;
|
|
34804
34804
|
const SECOND_ROUNDING_EPSILON = 1e-7;
|
|
34805
34805
|
const ONE_DAY_IN_MILLISECONDS = 24n * 60n * 60n * 1000n;
|
|
34806
34806
|
function prettyMilliseconds(milliseconds, options) {
|
|
@@ -34832,7 +34832,7 @@ function prettyMilliseconds(milliseconds, options) {
|
|
|
34832
34832
|
const wholeDigits = valueString.includes(".") ? valueString.split(".")[0].length : valueString.length;
|
|
34833
34833
|
const minLength = result.length > 0 ? 2 : 1;
|
|
34834
34834
|
valueString = "0".repeat(Math.max(0, minLength - wholeDigits)) + valueString;
|
|
34835
|
-
} else valueString += options.verbose ? " " + pluralize(long, value) : short;
|
|
34835
|
+
} else valueString += options.verbose ? " " + pluralize$1(long, value) : short;
|
|
34836
34836
|
result.push(valueString);
|
|
34837
34837
|
};
|
|
34838
34838
|
const parsed = parseMilliseconds(milliseconds);
|
|
@@ -38382,6 +38382,9 @@ var require_lodash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
38382
38382
|
//#region src/cli/commands/project/create.ts
|
|
38383
38383
|
var import_lodash = /* @__PURE__ */ __toESM(require_lodash(), 1);
|
|
38384
38384
|
const DEFAULT_TEMPLATE_ID = "backend-only";
|
|
38385
|
+
function pluralize(count$1, singular, plural) {
|
|
38386
|
+
return count$1 === 1 ? singular : plural ?? `${singular}s`;
|
|
38387
|
+
}
|
|
38385
38388
|
async function getTemplateById(templateId) {
|
|
38386
38389
|
const templates = await listTemplates();
|
|
38387
38390
|
const template = templates.find((t) => t.id === templateId);
|
|
@@ -38473,7 +38476,7 @@ async function executeCreate({ template, name: rawName, description, projectPath
|
|
|
38473
38476
|
id: projectId,
|
|
38474
38477
|
projectRoot: resolvedPath
|
|
38475
38478
|
});
|
|
38476
|
-
const { project, entities } = await readProjectConfig(resolvedPath);
|
|
38479
|
+
const { project, entities, agents } = await readProjectConfig(resolvedPath);
|
|
38477
38480
|
let finalAppUrl;
|
|
38478
38481
|
if (entities.length > 0) {
|
|
38479
38482
|
let shouldPushEntities;
|
|
@@ -38488,6 +38491,19 @@ async function executeCreate({ template, name: rawName, description, projectPath
|
|
|
38488
38491
|
errorMessage: "Failed to push data models"
|
|
38489
38492
|
});
|
|
38490
38493
|
}
|
|
38494
|
+
if (agents.length > 0) {
|
|
38495
|
+
let shouldPushAgents;
|
|
38496
|
+
if (isInteractive) {
|
|
38497
|
+
const result = await ye({ message: "Configure AI agent? (This sets up the AI assistant included in the template)" });
|
|
38498
|
+
shouldPushAgents = !pD(result) && result;
|
|
38499
|
+
} else shouldPushAgents = !!deploy;
|
|
38500
|
+
if (shouldPushAgents) await runTask(`Configuring ${agents.length} AI ${pluralize(agents.length, "agent")}...`, async () => {
|
|
38501
|
+
await pushAgents(agents);
|
|
38502
|
+
}, {
|
|
38503
|
+
successMessage: theme.colors.base44Orange(`AI ${pluralize(agents.length, "agent")} configured successfully`),
|
|
38504
|
+
errorMessage: `Failed to configure AI ${pluralize(agents.length, "agent")}`
|
|
38505
|
+
});
|
|
38506
|
+
}
|
|
38491
38507
|
if (project.site) {
|
|
38492
38508
|
const { installCommand, buildCommand, outputDirectory } = project.site;
|
|
38493
38509
|
let shouldDeploy;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "task_manager",
|
|
3
|
+
"description": "An AI agent that helps you manage and change your tasks",
|
|
4
|
+
"instructions": "You are a helpful task management assistant. You can help users create, update, mark as completed, and delete tasks using the entity tool. When a user asks to change a task, help them modify it by updating the appropriate fields. Always be conversational and helpful.",
|
|
5
|
+
"tool_configs": [
|
|
6
|
+
{
|
|
7
|
+
"entity_name": "Task",
|
|
8
|
+
"allowed_operations": ["read", "create", "update", "delete"]
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|