@base44-preview/cli 0.0.25-pr.153.369cb54 → 0.0.25-pr.153.cbfcf39

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 +5 -8
  2. package/package.json +1 -1
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$1 = (word, count$1) => count$1 === 1 || count$1 === 1n ? word : `${word}s`;
34803
+ const pluralize = (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$1(long, value) : short;
34835
+ } else valueString += options.verbose ? " " + pluralize(long, value) : short;
34836
34836
  result.push(valueString);
34837
34837
  };
34838
34838
  const parsed = parseMilliseconds(milliseconds);
@@ -38382,9 +38382,6 @@ 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
- }
38388
38385
  async function getTemplateById(templateId) {
38389
38386
  const templates = await listTemplates();
38390
38387
  const template = templates.find((t) => t.id === templateId);
@@ -38497,11 +38494,11 @@ async function executeCreate({ template, name: rawName, description, projectPath
38497
38494
  const result = await ye({ message: "Configure AI agent? (This sets up the AI assistant included in the template)" });
38498
38495
  shouldPushAgents = !pD(result) && result;
38499
38496
  } else shouldPushAgents = !!deploy;
38500
- if (shouldPushAgents) await runTask(`Configuring ${agents.length} AI ${pluralize(agents.length, "agent")}...`, async () => {
38497
+ if (shouldPushAgents) await runTask(`Configuring ${agents.length} AI agent${agents.length > 1 ? "s" : ""}...`, async () => {
38501
38498
  await pushAgents(agents);
38502
38499
  }, {
38503
- successMessage: theme.colors.base44Orange(`AI ${pluralize(agents.length, "agent")} configured successfully`),
38504
- errorMessage: `Failed to configure AI ${pluralize(agents.length, "agent")}`
38500
+ successMessage: theme.colors.base44Orange("AI agent configured successfully"),
38501
+ errorMessage: "Failed to configure AI agent"
38505
38502
  });
38506
38503
  }
38507
38504
  if (project.site) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/cli",
3
- "version": "0.0.25-pr.153.369cb54",
3
+ "version": "0.0.25-pr.153.cbfcf39",
4
4
  "description": "Base44 CLI - Unified interface for managing Base44 applications",
5
5
  "type": "module",
6
6
  "bin": {