@base44-preview/cli 0.0.38-pr.362.74cb80f → 0.0.38-pr.362.c4dd5b1

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 CHANGED
@@ -8933,10 +8933,10 @@ var require_ejs = __commonJS((exports) => {
8933
8933
  exports.localsName = _DEFAULT_LOCALS_NAME;
8934
8934
  exports.promiseImpl = new Function("return this;")().Promise;
8935
8935
  exports.resolveInclude = function(name2, filename, isDir) {
8936
- var dirname7 = path11.dirname;
8936
+ var dirname6 = path11.dirname;
8937
8937
  var extname = path11.extname;
8938
8938
  var resolve = path11.resolve;
8939
- var includePath = resolve(isDir ? filename : dirname7(filename), name2);
8939
+ var includePath = resolve(isDir ? filename : dirname6(filename), name2);
8940
8940
  var ext = extname(name2);
8941
8941
  if (!ext) {
8942
8942
  includePath += ".ejs";
@@ -18040,7 +18040,7 @@ var require_lodash = __commonJS((exports, module) => {
18040
18040
  }
18041
18041
  return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, undefined2, comparator) : [];
18042
18042
  });
18043
- function join12(array2, separator) {
18043
+ function join13(array2, separator) {
18044
18044
  return array2 == null ? "" : nativeJoin.call(array2, separator);
18045
18045
  }
18046
18046
  function last(array2) {
@@ -19972,7 +19972,7 @@ __p += '`;
19972
19972
  lodash.isUndefined = isUndefined;
19973
19973
  lodash.isWeakMap = isWeakMap;
19974
19974
  lodash.isWeakSet = isWeakSet;
19975
- lodash.join = join12;
19975
+ lodash.join = join13;
19976
19976
  lodash.kebabCase = kebabCase2;
19977
19977
  lodash.last = last;
19978
19978
  lodash.lastIndexOf = lastIndexOf;
@@ -20601,7 +20601,7 @@ function cleanDoc(doc2) {
20601
20601
  return mapDoc(doc2, (currentDoc) => cleanDocFn(currentDoc));
20602
20602
  }
20603
20603
  function replaceEndOfLine(doc2, replacement = literalline) {
20604
- return mapDoc(doc2, (currentDoc) => typeof currentDoc === "string" ? join12(replacement, currentDoc.split(`
20604
+ return mapDoc(doc2, (currentDoc) => typeof currentDoc === "string" ? join13(replacement, currentDoc.split(`
20605
20605
  `)) : currentDoc);
20606
20606
  }
20607
20607
  function canBreakFn(doc2) {
@@ -20681,7 +20681,7 @@ function indentIfBreak(contents, options) {
20681
20681
  negate: options.negate
20682
20682
  };
20683
20683
  }
20684
- function join12(separator, docs) {
20684
+ function join13(separator, docs) {
20685
20685
  assertDoc(separator);
20686
20686
  assertDocArray(docs);
20687
20687
  const parts = [];
@@ -21392,7 +21392,7 @@ var init_doc = __esm(() => {
21392
21392
  MODE_FLAT = Symbol("MODE_FLAT");
21393
21393
  DOC_FILL_PRINTED_LENGTH = Symbol("DOC_FILL_PRINTED_LENGTH");
21394
21394
  builders = {
21395
- join: join12,
21395
+ join: join13,
21396
21396
  line,
21397
21397
  softline,
21398
21398
  hardline,
@@ -113630,7 +113630,7 @@ async function clearCache3() {
113630
113630
  clearCache();
113631
113631
  clearCache2();
113632
113632
  }
113633
- var require2, __filename2, __dirname4, __create2, __defProp3, __getOwnPropDesc, __getOwnPropNames2, __getProtoOf2, __hasOwnProp2, __require2, __commonJS2 = (cb2, mod) => function __require22() {
113633
+ var require2, __filename2, __dirname3, __create2, __defProp3, __getOwnPropDesc, __getOwnPropNames2, __getProtoOf2, __hasOwnProp2, __require2, __commonJS2 = (cb2, mod) => function __require22() {
113634
113634
  return mod || (0, cb2[__getOwnPropNames2(cb2)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
113635
113635
  }, __export3 = (target, all) => {
113636
113636
  for (var name2 in all)
@@ -114373,7 +114373,7 @@ var init_prettier = __esm(() => {
114373
114373
  init_doc();
114374
114374
  require2 = __prettierCreateRequire(import.meta.url);
114375
114375
  __filename2 = __prettierFileUrlToPath(import.meta.url);
114376
- __dirname4 = __prettierDirname(__filename2);
114376
+ __dirname3 = __prettierDirname(__filename2);
114377
114377
  __create2 = Object.create;
114378
114378
  __defProp3 = Object.defineProperty;
114379
114379
  __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -126306,7 +126306,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
126306
126306
  return mapDoc2(doc2, (currentDoc) => cleanDocFn2(currentDoc));
126307
126307
  }
126308
126308
  function replaceEndOfLine2(doc2, replacement = literalline2) {
126309
- return mapDoc2(doc2, (currentDoc) => typeof currentDoc === "string" ? join14(replacement, currentDoc.split(`
126309
+ return mapDoc2(doc2, (currentDoc) => typeof currentDoc === "string" ? join15(replacement, currentDoc.split(`
126310
126310
  `)) : currentDoc);
126311
126311
  }
126312
126312
  function canBreakFn2(doc2) {
@@ -126392,7 +126392,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
126392
126392
  negate: options8.negate
126393
126393
  };
126394
126394
  }
126395
- function join14(separator, docs) {
126395
+ function join15(separator, docs) {
126396
126396
  assertDoc2(separator);
126397
126397
  assertDocArray2(docs);
126398
126398
  const parts = [];
@@ -127057,7 +127057,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
127057
127057
  }
127058
127058
  }
127059
127059
  var builders2 = {
127060
- join: join14,
127060
+ join: join15,
127061
127061
  line: line3,
127062
127062
  softline: softline2,
127063
127063
  hardline: hardline4,
@@ -156272,10 +156272,10 @@ var require_view = __commonJS((exports, module) => {
156272
156272
  var debug = require_src4()("express:view");
156273
156273
  var path18 = __require("node:path");
156274
156274
  var fs28 = __require("node:fs");
156275
- var dirname12 = path18.dirname;
156275
+ var dirname11 = path18.dirname;
156276
156276
  var basename4 = path18.basename;
156277
156277
  var extname2 = path18.extname;
156278
- var join15 = path18.join;
156278
+ var join16 = path18.join;
156279
156279
  var resolve6 = path18.resolve;
156280
156280
  module.exports = View;
156281
156281
  function View(name2, options8) {
@@ -156311,7 +156311,7 @@ var require_view = __commonJS((exports, module) => {
156311
156311
  for (var i5 = 0;i5 < roots.length && !path19; i5++) {
156312
156312
  var root2 = roots[i5];
156313
156313
  var loc = resolve6(root2, name2);
156314
- var dir = dirname12(loc);
156314
+ var dir = dirname11(loc);
156315
156315
  var file2 = basename4(loc);
156316
156316
  path19 = this.resolve(dir, file2);
156317
156317
  }
@@ -156337,12 +156337,12 @@ var require_view = __commonJS((exports, module) => {
156337
156337
  };
156338
156338
  View.prototype.resolve = function resolve7(dir, file2) {
156339
156339
  var ext = this.ext;
156340
- var path19 = join15(dir, file2);
156340
+ var path19 = join16(dir, file2);
156341
156341
  var stat2 = tryStat(path19);
156342
156342
  if (stat2 && stat2.isFile()) {
156343
156343
  return path19;
156344
156344
  }
156345
- path19 = join15(dir, basename4(file2, ext), "index" + ext);
156345
+ path19 = join16(dir, basename4(file2, ext), "index" + ext);
156346
156346
  stat2 = tryStat(path19);
156347
156347
  if (stat2 && stat2.isFile()) {
156348
156348
  return path19;
@@ -160037,7 +160037,7 @@ var require_send = __commonJS((exports, module) => {
160037
160037
  var Stream2 = __require("stream");
160038
160038
  var util2 = __require("util");
160039
160039
  var extname2 = path18.extname;
160040
- var join15 = path18.join;
160040
+ var join16 = path18.join;
160041
160041
  var normalize = path18.normalize;
160042
160042
  var resolve6 = path18.resolve;
160043
160043
  var sep = path18.sep;
@@ -160209,7 +160209,7 @@ var require_send = __commonJS((exports, module) => {
160209
160209
  return res;
160210
160210
  }
160211
160211
  parts = path19.split(sep);
160212
- path19 = normalize(join15(root2, path19));
160212
+ path19 = normalize(join16(root2, path19));
160213
160213
  } else {
160214
160214
  if (UP_PATH_REGEXP.test(path19)) {
160215
160215
  debug('malicious path "%s"', path19);
@@ -160349,7 +160349,7 @@ var require_send = __commonJS((exports, module) => {
160349
160349
  return self2.onStatError(err);
160350
160350
  return self2.error(404);
160351
160351
  }
160352
- var p4 = join15(path19, self2._index[i5]);
160352
+ var p4 = join16(path19, self2._index[i5]);
160353
160353
  debug('stat "%s"', p4);
160354
160354
  fs28.stat(p4, function(err2, stat2) {
160355
160355
  if (err2)
@@ -206944,7 +206944,7 @@ var require_buffer_list = __commonJS((exports, module) => {
206944
206944
  }
206945
206945
  }, {
206946
206946
  key: "join",
206947
- value: function join15(s5) {
206947
+ value: function join16(s5) {
206948
206948
  if (this.length === 0)
206949
206949
  return "";
206950
206950
  var p4 = this.head;
@@ -210590,7 +210590,7 @@ var require_dist5 = __commonJS((exports, module) => {
210590
210590
  });
210591
210591
  module.exports = __toCommonJS(src_exports);
210592
210592
  var import_promises22 = __require("node:fs/promises");
210593
- var import_node_fs21 = __require("node:fs");
210593
+ var import_node_fs22 = __require("node:fs");
210594
210594
  var DEVIN_LOCAL_PATH = "/opt/.devin";
210595
210595
  var CURSOR2 = "cursor";
210596
210596
  var CURSOR_CLI = "cursor-cli";
@@ -210647,13 +210647,17 @@ var require_dist5 = __commonJS((exports, module) => {
210647
210647
  return { isAgent: true, agent: { name: REPLIT } };
210648
210648
  }
210649
210649
  try {
210650
- await (0, import_promises22.access)(DEVIN_LOCAL_PATH, import_node_fs21.constants.F_OK);
210650
+ await (0, import_promises22.access)(DEVIN_LOCAL_PATH, import_node_fs22.constants.F_OK);
210651
210651
  return { isAgent: true, agent: { name: DEVIN } };
210652
210652
  } catch (error48) {}
210653
210653
  return { isAgent: false, agent: undefined };
210654
210654
  }
210655
210655
  });
210656
210656
 
210657
+ // src/cli/index.ts
210658
+ import { dirname as dirname15, join as join19 } from "node:path";
210659
+ import { fileURLToPath as fileURLToPath6 } from "node:url";
210660
+
210657
210661
  // node_modules/commander/esm.mjs
210658
210662
  var import__ = __toESM(require_commander(), 1);
210659
210663
  var {
@@ -210671,7 +210675,7 @@ var {
210671
210675
  } = import__.default;
210672
210676
 
210673
210677
  // src/cli/commands/agents/pull.ts
210674
- import { dirname as dirname8, join as join9 } from "node:path";
210678
+ import { dirname as dirname7, join as join10 } from "node:path";
210675
210679
 
210676
210680
  // node_modules/@clack/core/dist/index.mjs
210677
210681
  var import_picocolors = __toESM(require_picocolors(), 1);
@@ -226137,8 +226141,7 @@ var distribution_default = ky;
226137
226141
 
226138
226142
  // src/core/config.ts
226139
226143
  import { homedir } from "node:os";
226140
- import { dirname, join } from "node:path";
226141
- import { fileURLToPath } from "node:url";
226144
+ import { join } from "node:path";
226142
226145
 
226143
226146
  // src/core/consts.ts
226144
226147
  var PROJECT_SUBDIR = "base44";
@@ -226210,26 +226213,12 @@ var TestOverridesSchema = exports_external.object({
226210
226213
  });
226211
226214
 
226212
226215
  // src/core/config.ts
226213
- var __dirname2 = dirname(fileURLToPath(import.meta.url));
226214
226216
  function getBase44GlobalDir() {
226215
226217
  return join(homedir(), ".base44");
226216
226218
  }
226217
226219
  function getAuthFilePath() {
226218
226220
  return join(getBase44GlobalDir(), "auth", "auth.json");
226219
226221
  }
226220
- function getTemplatesDir(assetsDir) {
226221
- if (assetsDir)
226222
- return join(assetsDir, "templates");
226223
- return join(__dirname2, "../assets/templates");
226224
- }
226225
- function getTemplatesIndexPath(assetsDir) {
226226
- return join(getTemplatesDir(assetsDir), "templates.json");
226227
- }
226228
- function getDenoWrapperPath(assetsDir) {
226229
- if (assetsDir)
226230
- return join(assetsDir, "deno-runtime", "main.js");
226231
- return join(__dirname2, "../assets/deno-runtime/main.js");
226232
- }
226233
226222
  function getAppConfigPath(projectRoot) {
226234
226223
  return join(projectRoot, PROJECT_SUBDIR, ".app.jsonc");
226235
226224
  }
@@ -226560,7 +226549,7 @@ import {
226560
226549
  readdir,
226561
226550
  unlink
226562
226551
  } from "node:fs/promises";
226563
- import { dirname as dirname2 } from "node:path";
226552
+ import { dirname } from "node:path";
226564
226553
  async function pathExists(path) {
226565
226554
  try {
226566
226555
  await access(path);
@@ -226570,14 +226559,14 @@ async function pathExists(path) {
226570
226559
  }
226571
226560
  }
226572
226561
  async function writeFile(filePath, content) {
226573
- const dir = dirname2(filePath);
226562
+ const dir = dirname(filePath);
226574
226563
  if (!await pathExists(dir)) {
226575
226564
  await mkdir(dir, { recursive: true });
226576
226565
  }
226577
226566
  await fsWriteFile(filePath, content, "utf-8");
226578
226567
  }
226579
226568
  async function copyFile(src, dest) {
226580
- const dir = dirname2(dest);
226569
+ const dir = dirname(dest);
226581
226570
  if (!await pathExists(dir)) {
226582
226571
  await mkdir(dir, { recursive: true });
226583
226572
  }
@@ -226618,7 +226607,7 @@ async function readJsonFile(filePath) {
226618
226607
  }
226619
226608
  }
226620
226609
  async function writeJsonFile(filePath, data) {
226621
- const dir = dirname2(filePath);
226610
+ const dir = dirname(filePath);
226622
226611
  if (!await pathExists(dir)) {
226623
226612
  await mkdir(dir, { recursive: true });
226624
226613
  }
@@ -227768,7 +227757,7 @@ import path3 from "node:path";
227768
227757
 
227769
227758
  // node_modules/tar/dist/esm/list.js
227770
227759
  import fs2 from "node:fs";
227771
- import { dirname as dirname3, parse as parse6 } from "path";
227760
+ import { dirname as dirname2, parse as parse6 } from "path";
227772
227761
 
227773
227762
  // node_modules/tar/dist/esm/options.js
227774
227763
  var argmap = new Map([
@@ -229344,7 +229333,7 @@ var filesFilter = (opt, files) => {
229344
229333
  if (m !== undefined) {
229345
229334
  ret = m;
229346
229335
  } else {
229347
- ret = mapHas(dirname3(file2), root);
229336
+ ret = mapHas(dirname2(file2), root);
229348
229337
  }
229349
229338
  }
229350
229339
  map2.set(file2, ret);
@@ -232505,10 +232494,10 @@ var import_fast_glob2 = __toESM(require_out4(), 1);
232505
232494
  // node_modules/unicorn-magic/node.js
232506
232495
  import { promisify } from "node:util";
232507
232496
  import { execFile as execFileCallback, execFileSync as execFileSyncOriginal } from "node:child_process";
232508
- import { fileURLToPath as fileURLToPath2 } from "node:url";
232497
+ import { fileURLToPath } from "node:url";
232509
232498
  var execFileOriginal = promisify(execFileCallback);
232510
232499
  function toPath(urlOrPath) {
232511
- return urlOrPath instanceof URL ? fileURLToPath2(urlOrPath) : urlOrPath;
232500
+ return urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
232512
232501
  }
232513
232502
  var TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
232514
232503
 
@@ -232923,9 +232912,9 @@ var shouldExpandGlobstarDirectory = (pattern) => {
232923
232912
  if (!match) {
232924
232913
  return false;
232925
232914
  }
232926
- const dirname4 = match[1];
232927
- const hasWildcards = /[*?[\]{}]/.test(dirname4);
232928
- const hasExtension = nodePath.extname(dirname4) && !dirname4.startsWith(".");
232915
+ const dirname3 = match[1];
232916
+ const hasWildcards = /[*?[\]{}]/.test(dirname3);
232917
+ const hasExtension = nodePath.extname(dirname3) && !dirname3.startsWith(".");
232929
232918
  return !hasWildcards && !hasExtension;
232930
232919
  };
232931
232920
  var getDirectoryGlob = ({ directoryPath, files, extensions }) => {
@@ -233182,7 +233171,7 @@ var generateGlobTasks = normalizeArguments(generateTasks);
233182
233171
  var generateGlobTasksSync = normalizeArgumentsSync(generateTasksSync);
233183
233172
 
233184
233173
  // src/core/project/config.ts
233185
- import { dirname as dirname6, join as join6 } from "node:path";
233174
+ import { dirname as dirname5, join as join6 } from "node:path";
233186
233175
 
233187
233176
  // src/core/resources/agent/schema.ts
233188
233177
  var EntityOperationSchema = exports_external.enum(["create", "update", "delete", "read"]);
@@ -233992,7 +233981,7 @@ async function fetchFunctionLogs(functionName, filters = {}) {
233992
233981
  return result.data;
233993
233982
  }
233994
233983
  // src/core/resources/function/config.ts
233995
- import { basename as basename2, dirname as dirname4, join as join5, relative } from "node:path";
233984
+ import { basename as basename2, dirname as dirname3, join as join5, relative } from "node:path";
233996
233985
  async function readFunctionConfig(configPath) {
233997
233986
  const parsed = await readJsonFile(configPath);
233998
233987
  const result = FunctionConfigSchema.safeParse(parsed);
@@ -234003,7 +233992,7 @@ async function readFunctionConfig(configPath) {
234003
233992
  }
234004
233993
  async function readFunction(configPath) {
234005
233994
  const config5 = await readFunctionConfig(configPath);
234006
- const functionDir = dirname4(configPath);
233995
+ const functionDir = dirname3(configPath);
234007
233996
  const entryPath = join5(functionDir, config5.entry);
234008
233997
  if (!await pathExists(entryPath)) {
234009
233998
  throw new InvalidInputError(`Function entry file not found: ${entryPath} (referenced in ${configPath})`, {
@@ -234030,11 +234019,11 @@ async function readAllFunctions(functionsDir) {
234030
234019
  absolute: true,
234031
234020
  ignore: ENTRY_IGNORE_DOT_PATHS
234032
234021
  });
234033
- const configFilesDirs = new Set(configFiles.map((f) => dirname4(f)));
234034
- const entryFilesWithoutConfig = entryFiles.filter((entryFile) => !configFilesDirs.has(dirname4(entryFile)));
234022
+ const configFilesDirs = new Set(configFiles.map((f) => dirname3(f)));
234023
+ const entryFilesWithoutConfig = entryFiles.filter((entryFile) => !configFilesDirs.has(dirname3(entryFile)));
234035
234024
  const functionsFromConfig = await Promise.all(configFiles.map((configPath) => readFunction(configPath)));
234036
234025
  const functionsWithoutConfig = await Promise.all(entryFilesWithoutConfig.map(async (entryFile) => {
234037
- const functionDir = dirname4(entryFile);
234026
+ const functionDir = dirname3(entryFile);
234038
234027
  const filePaths = await globby("**/*.{js,ts,json}", {
234039
234028
  cwd: functionDir,
234040
234029
  absolute: true
@@ -234069,9 +234058,9 @@ async function readAllFunctions(functionsDir) {
234069
234058
  return functions;
234070
234059
  }
234071
234060
  // src/core/resources/function/deploy.ts
234072
- import { dirname as dirname5, relative as relative2 } from "node:path";
234061
+ import { dirname as dirname4, relative as relative2 } from "node:path";
234073
234062
  async function loadFunctionCode(fn) {
234074
- const functionDir = dirname5(fn.entryPath);
234063
+ const functionDir = dirname4(fn.entryPath);
234075
234064
  const loadedFiles = await Promise.all(fn.filePaths.map(async (filePath) => {
234076
234065
  const content = await readTextFile(filePath);
234077
234066
  const path11 = relative2(functionDir, filePath).split(/[/\\]/).join("/");
@@ -234101,12 +234090,12 @@ async function findConfigInDir(dir) {
234101
234090
  }
234102
234091
  async function findProjectRoot(startPath) {
234103
234092
  let current = startPath || process.cwd();
234104
- while (current !== dirname6(current)) {
234093
+ while (current !== dirname5(current)) {
234105
234094
  const configPath = await findConfigInDir(current);
234106
234095
  if (configPath) {
234107
234096
  return { root: current, configPath };
234108
234097
  }
234109
- current = dirname6(current);
234098
+ current = dirname5(current);
234110
234099
  }
234111
234100
  return null;
234112
234101
  }
@@ -234128,7 +234117,7 @@ async function readProjectConfig(projectRoot) {
234128
234117
  throw new SchemaValidationError("Invalid project configuration", result.error, configPath);
234129
234118
  }
234130
234119
  const project = result.data;
234131
- const configDir = dirname6(configPath);
234120
+ const configDir = dirname5(configPath);
234132
234121
  const [entities, functions, agents, connectors] = await Promise.all([
234133
234122
  entityResource.readAll(join6(configDir, project.entitiesDir)),
234134
234123
  functionResource.readAll(join6(configDir, project.functionsDir)),
@@ -234230,9 +234219,126 @@ async function readAppConfig(projectRoot) {
234230
234219
  // src/core/project/template.ts
234231
234220
  var import_ejs = __toESM(require_ejs(), 1);
234232
234221
  var import_front_matter = __toESM(require_front_matter(), 1);
234233
- import { dirname as dirname7, join as join7 } from "node:path";
234234
- async function listTemplates(assetsDir) {
234235
- const indexPath = getTemplatesIndexPath(assetsDir);
234222
+ import { dirname as dirname6, join as join8 } from "node:path";
234223
+
234224
+ // src/core/assets.ts
234225
+ import { cpSync, existsSync } from "node:fs";
234226
+ import { homedir as homedir2 } from "node:os";
234227
+ import { join as join7 } from "node:path";
234228
+ // package.json
234229
+ var package_default = {
234230
+ name: "base44",
234231
+ version: "0.0.38",
234232
+ description: "Base44 CLI - Unified interface for managing Base44 applications",
234233
+ type: "module",
234234
+ bin: {
234235
+ base44: "./bin/run.js"
234236
+ },
234237
+ files: [
234238
+ "dist",
234239
+ "bin"
234240
+ ],
234241
+ scripts: {
234242
+ build: "bun run clean && mkdir -p dist/assets && cp -r templates dist/assets/ && bun run infra/build.ts",
234243
+ "build:watch": "bun run clean && mkdir -p dist/assets && cp -r templates dist/assets/ && bun run infra/build.ts --watch",
234244
+ typecheck: "tsc --noEmit",
234245
+ dev: "./bin/dev.ts",
234246
+ start: "./bin/run.js",
234247
+ clean: "rm -rf dist && mkdir -p dist",
234248
+ lint: "biome check src tests",
234249
+ "lint:fix": "biome check --write src tests",
234250
+ test: "vitest run",
234251
+ "test:watch": "vitest",
234252
+ "build:binaries": "bun run infra/build-binaries.ts",
234253
+ "package:binaries": "bun run infra/package-binaries.ts",
234254
+ knip: "knip",
234255
+ "knip:fix": "knip --fix"
234256
+ },
234257
+ keywords: [
234258
+ "base44",
234259
+ "cli",
234260
+ "command-line"
234261
+ ],
234262
+ author: "",
234263
+ license: "MIT",
234264
+ repository: {
234265
+ type: "git",
234266
+ url: "https://github.com/base44/cli"
234267
+ },
234268
+ devDependencies: {
234269
+ "@biomejs/biome": "^2.0.0",
234270
+ "@clack/prompts": "^1.0.1",
234271
+ "@seald-io/nedb": "^4.1.2",
234272
+ "@types/bun": "^1.2.15",
234273
+ "@types/common-tags": "^1.8.4",
234274
+ "@types/cors": "^2.8.19",
234275
+ "@types/deno": "^2.5.0",
234276
+ "@types/ejs": "^3.1.5",
234277
+ "@types/express": "^5.0.6",
234278
+ "@types/json-schema": "^7.0.15",
234279
+ "@types/lodash": "^4.17.24",
234280
+ "@types/multer": "^2.0.0",
234281
+ "@types/node": "^22.10.5",
234282
+ "@vercel/detect-agent": "^1.1.0",
234283
+ chalk: "^5.6.2",
234284
+ chokidar: "^5.0.0",
234285
+ commander: "^12.1.0",
234286
+ "common-tags": "^1.8.2",
234287
+ cors: "^2.8.5",
234288
+ dotenv: "17.3.1",
234289
+ ejs: "^3.1.10",
234290
+ execa: "^9.6.1",
234291
+ express: "^5.0.1",
234292
+ "front-matter": "^4.0.2",
234293
+ "get-port": "^7.1.0",
234294
+ globby: "^16.1.0",
234295
+ "http-proxy-middleware": "^3.0.5",
234296
+ "json-schema-to-typescript": "^15.0.4",
234297
+ json5: "^2.2.3",
234298
+ knip: "^5.83.1",
234299
+ ky: "^1.14.2",
234300
+ lodash: "^4.17.23",
234301
+ msw: "^2.12.10",
234302
+ multer: "^2.0.0",
234303
+ nanoid: "^5.1.6",
234304
+ open: "^11.0.0",
234305
+ "p-wait-for": "^6.0.0",
234306
+ "posthog-node": "5.21.2",
234307
+ "socket.io": "^4.8.3",
234308
+ "strip-ansi": "^7.1.2",
234309
+ tar: "^7.5.4",
234310
+ "tmp-promise": "^3.0.3",
234311
+ typescript: "^5.7.2",
234312
+ vitest: "^4.0.16",
234313
+ zod: "^4.3.5"
234314
+ },
234315
+ engines: {
234316
+ node: ">=20.19.0"
234317
+ }
234318
+ };
234319
+
234320
+ // src/core/assets.ts
234321
+ var ASSETS_DIR = join7(homedir2(), ".base44", "assets", package_default.version);
234322
+ function getTemplatesDir() {
234323
+ return join7(ASSETS_DIR, "templates");
234324
+ }
234325
+ function getTemplatesIndexPath() {
234326
+ return join7(ASSETS_DIR, "templates", "templates.json");
234327
+ }
234328
+ function getDenoWrapperPath() {
234329
+ return join7(ASSETS_DIR, "deno-runtime", "main.js");
234330
+ }
234331
+ function ensureNpmAssets(sourceDir) {
234332
+ if (existsSync(ASSETS_DIR))
234333
+ return;
234334
+ if (!existsSync(sourceDir))
234335
+ return;
234336
+ cpSync(sourceDir, ASSETS_DIR, { recursive: true });
234337
+ }
234338
+
234339
+ // src/core/project/template.ts
234340
+ async function listTemplates() {
234341
+ const indexPath = getTemplatesIndexPath();
234236
234342
  const parsed = await readJsonFile(indexPath);
234237
234343
  const result = TemplatesConfigSchema.safeParse(parsed);
234238
234344
  if (!result.success) {
@@ -234240,24 +234346,24 @@ async function listTemplates(assetsDir) {
234240
234346
  }
234241
234347
  return result.data.templates;
234242
234348
  }
234243
- async function renderTemplate(template, destPath, data, assetsDir) {
234244
- const templateDir = join7(getTemplatesDir(assetsDir), template.path);
234349
+ async function renderTemplate(template, destPath, data) {
234350
+ const templateDir = join8(getTemplatesDir(), template.path);
234245
234351
  const files = await globby("**/*", {
234246
234352
  cwd: templateDir,
234247
234353
  dot: true,
234248
234354
  onlyFiles: true
234249
234355
  });
234250
234356
  for (const file2 of files) {
234251
- const srcPath = join7(templateDir, file2);
234357
+ const srcPath = join8(templateDir, file2);
234252
234358
  try {
234253
234359
  if (file2.endsWith(".ejs")) {
234254
234360
  const rendered = await import_ejs.default.renderFile(srcPath, data);
234255
234361
  const { attributes, body } = import_front_matter.default(rendered);
234256
- const destFile = attributes.outputFileName ? join7(dirname7(file2), attributes.outputFileName) : file2.replace(/\.ejs$/, "");
234257
- const destFilePath = join7(destPath, destFile);
234362
+ const destFile = attributes.outputFileName ? join8(dirname6(file2), attributes.outputFileName) : file2.replace(/\.ejs$/, "");
234363
+ const destFilePath = join8(destPath, destFile);
234258
234364
  await writeFile(destFilePath, body);
234259
234365
  } else {
234260
- const destFilePath = join7(destPath, file2);
234366
+ const destFilePath = join8(destPath, file2);
234261
234367
  await copyFile(srcPath, destFilePath);
234262
234368
  }
234263
234369
  } catch (error48) {
@@ -234278,10 +234384,10 @@ async function assertProjectNotExists(dirPath) {
234278
234384
  }
234279
234385
  }
234280
234386
  async function createProjectFiles(options) {
234281
- const { name: name2, description, path: basePath, template, assetsDir } = options;
234387
+ const { name: name2, description, path: basePath, template } = options;
234282
234388
  await assertProjectNotExists(basePath);
234283
234389
  const { projectId } = await createProject(name2, description);
234284
- await renderTemplate(template, basePath, { name: name2, description, projectId }, assetsDir);
234390
+ await renderTemplate(template, basePath, { name: name2, description, projectId });
234285
234391
  return {
234286
234392
  projectId,
234287
234393
  projectDir: basePath
@@ -234356,7 +234462,7 @@ async function getSiteFilePaths(outputDir) {
234356
234462
  // src/core/site/deploy.ts
234357
234463
  import { randomUUID } from "node:crypto";
234358
234464
  import { tmpdir } from "node:os";
234359
- import { join as join8 } from "node:path";
234465
+ import { join as join9 } from "node:path";
234360
234466
  async function deploySite(siteOutputDir) {
234361
234467
  if (!await pathExists(siteOutputDir)) {
234362
234468
  throw new InvalidInputError(`Output directory does not exist: ${siteOutputDir}. Make sure to build your project first.`, {
@@ -234373,7 +234479,7 @@ async function deploySite(siteOutputDir) {
234373
234479
  ]
234374
234480
  });
234375
234481
  }
234376
- const archivePath = join8(tmpdir(), `base44-site-${randomUUID()}.tar.gz`);
234482
+ const archivePath = join9(tmpdir(), `base44-site-${randomUUID()}.tar.gz`);
234377
234483
  try {
234378
234484
  await createArchive(siteOutputDir, archivePath);
234379
234485
  return await uploadSite(archivePath);
@@ -235453,7 +235559,7 @@ function isPlainObject2(value) {
235453
235559
  }
235454
235560
 
235455
235561
  // node_modules/execa/lib/arguments/file-url.js
235456
- import { fileURLToPath as fileURLToPath3 } from "node:url";
235562
+ import { fileURLToPath as fileURLToPath2 } from "node:url";
235457
235563
  var safeNormalizeFileUrl = (file2, name2) => {
235458
235564
  const fileString = normalizeFileUrl(normalizeDenoExecPath(file2));
235459
235565
  if (typeof fileString !== "string") {
@@ -235463,7 +235569,7 @@ var safeNormalizeFileUrl = (file2, name2) => {
235463
235569
  };
235464
235570
  var normalizeDenoExecPath = (file2) => isDenoExecPath(file2) ? file2.toString() : file2;
235465
235571
  var isDenoExecPath = (file2) => typeof file2 !== "string" && file2 && Object.getPrototypeOf(file2) === String.prototype;
235466
- var normalizeFileUrl = (file2) => file2 instanceof URL ? fileURLToPath3(file2) : file2;
235572
+ var normalizeFileUrl = (file2) => file2 instanceof URL ? fileURLToPath2(file2) : file2;
235467
235573
 
235468
235574
  // node_modules/execa/lib/methods/parameters.js
235469
235575
  var normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
@@ -236317,10 +236423,10 @@ function pathKey(options = {}) {
236317
236423
  import { promisify as promisify3 } from "node:util";
236318
236424
  import { execFile as execFileCallback2, execFileSync as execFileSyncOriginal2 } from "node:child_process";
236319
236425
  import path11 from "node:path";
236320
- import { fileURLToPath as fileURLToPath4 } from "node:url";
236426
+ import { fileURLToPath as fileURLToPath3 } from "node:url";
236321
236427
  var execFileOriginal2 = promisify3(execFileCallback2);
236322
236428
  function toPath2(urlOrPath) {
236323
- return urlOrPath instanceof URL ? fileURLToPath4(urlOrPath) : urlOrPath;
236429
+ return urlOrPath instanceof URL ? fileURLToPath3(urlOrPath) : urlOrPath;
236324
236430
  }
236325
236431
  function traversePathUp(startPath) {
236326
236432
  return {
@@ -241938,97 +242044,6 @@ var {
241938
242044
  getEachMessage: getEachMessage2,
241939
242045
  getCancelSignal: getCancelSignal2
241940
242046
  } = getIpcExport();
241941
- // package.json
241942
- var package_default = {
241943
- name: "base44",
241944
- version: "0.0.38",
241945
- description: "Base44 CLI - Unified interface for managing Base44 applications",
241946
- type: "module",
241947
- bin: {
241948
- base44: "./bin/run.js"
241949
- },
241950
- files: [
241951
- "dist",
241952
- "bin"
241953
- ],
241954
- scripts: {
241955
- build: "bun run clean && mkdir -p dist/assets && cp -r templates dist/assets/ && bun run infra/build.ts",
241956
- "build:watch": "bun run clean && mkdir -p dist/assets && cp -r templates dist/assets/ && bun run infra/build.ts --watch",
241957
- typecheck: "tsc --noEmit",
241958
- dev: "./bin/dev.ts",
241959
- start: "./bin/run.js",
241960
- clean: "rm -rf dist && mkdir -p dist",
241961
- lint: "biome check src tests",
241962
- "lint:fix": "biome check --write src tests",
241963
- test: "vitest run",
241964
- "test:watch": "vitest",
241965
- "build:binaries": "bun run infra/build-binaries.ts",
241966
- "package:binaries": "bun run infra/package-binaries.ts",
241967
- knip: "knip",
241968
- "knip:fix": "knip --fix"
241969
- },
241970
- keywords: [
241971
- "base44",
241972
- "cli",
241973
- "command-line"
241974
- ],
241975
- author: "",
241976
- license: "MIT",
241977
- repository: {
241978
- type: "git",
241979
- url: "https://github.com/base44/cli"
241980
- },
241981
- devDependencies: {
241982
- "@biomejs/biome": "^2.0.0",
241983
- "@clack/prompts": "^1.0.1",
241984
- "@seald-io/nedb": "^4.1.2",
241985
- "@types/bun": "^1.2.15",
241986
- "@types/common-tags": "^1.8.4",
241987
- "@types/cors": "^2.8.19",
241988
- "@types/deno": "^2.5.0",
241989
- "@types/ejs": "^3.1.5",
241990
- "@types/express": "^5.0.6",
241991
- "@types/json-schema": "^7.0.15",
241992
- "@types/lodash": "^4.17.24",
241993
- "@types/multer": "^2.0.0",
241994
- "@types/node": "^22.10.5",
241995
- "@vercel/detect-agent": "^1.1.0",
241996
- chalk: "^5.6.2",
241997
- chokidar: "^5.0.0",
241998
- commander: "^12.1.0",
241999
- "common-tags": "^1.8.2",
242000
- cors: "^2.8.5",
242001
- dotenv: "17.3.1",
242002
- ejs: "^3.1.10",
242003
- execa: "^9.6.1",
242004
- express: "^5.0.1",
242005
- "front-matter": "^4.0.2",
242006
- "get-port": "^7.1.0",
242007
- globby: "^16.1.0",
242008
- "http-proxy-middleware": "^3.0.5",
242009
- "json-schema-to-typescript": "^15.0.4",
242010
- json5: "^2.2.3",
242011
- knip: "^5.83.1",
242012
- ky: "^1.14.2",
242013
- lodash: "^4.17.23",
242014
- msw: "^2.12.10",
242015
- multer: "^2.0.0",
242016
- nanoid: "^5.1.6",
242017
- open: "^11.0.0",
242018
- "p-wait-for": "^6.0.0",
242019
- "posthog-node": "5.21.2",
242020
- "socket.io": "^4.8.3",
242021
- "strip-ansi": "^7.1.2",
242022
- tar: "^7.5.4",
242023
- "tmp-promise": "^3.0.3",
242024
- typescript: "^5.7.2",
242025
- vitest: "^4.0.16",
242026
- zod: "^4.3.5"
242027
- },
242028
- engines: {
242029
- node: ">=20.19.0"
242030
- }
242031
- };
242032
242047
 
242033
242048
  // src/cli/utils/version-check.ts
242034
242049
  async function checkForUpgrade() {
@@ -242152,8 +242167,8 @@ function getDashboardUrl(projectId) {
242152
242167
  // src/cli/commands/agents/pull.ts
242153
242168
  async function pullAgentsAction() {
242154
242169
  const { project: project2 } = await readProjectConfig();
242155
- const configDir = dirname8(project2.configPath);
242156
- const agentsDir = join9(configDir, project2.agentsDir);
242170
+ const configDir = dirname7(project2.configPath);
242171
+ const agentsDir = join10(configDir, project2.agentsDir);
242157
242172
  const remoteAgents = await runTask("Fetching agents from Base44", async () => {
242158
242173
  return await fetchAgents();
242159
242174
  }, {
@@ -242247,11 +242262,11 @@ function getWhoamiCommand(context) {
242247
242262
  }
242248
242263
 
242249
242264
  // src/cli/commands/connectors/pull.ts
242250
- import { dirname as dirname9, join as join10 } from "node:path";
242265
+ import { dirname as dirname8, join as join11 } from "node:path";
242251
242266
  async function pullConnectorsAction() {
242252
242267
  const { project: project2 } = await readProjectConfig();
242253
- const configDir = dirname9(project2.configPath);
242254
- const connectorsDir = join10(configDir, project2.connectorsDir);
242268
+ const configDir = dirname8(project2.configPath);
242269
+ const connectorsDir = join11(configDir, project2.connectorsDir);
242255
242270
  const remoteConnectors = await runTask("Fetching connectors from Base44", async () => {
242256
242271
  return await listConnectors();
242257
242272
  }, {
@@ -242286,7 +242301,7 @@ function getConnectorsPullCommand(context) {
242286
242301
  // node_modules/open/index.js
242287
242302
  import process20 from "node:process";
242288
242303
  import path16 from "node:path";
242289
- import { fileURLToPath as fileURLToPath5 } from "node:url";
242304
+ import { fileURLToPath as fileURLToPath4 } from "node:url";
242290
242305
  import childProcess3 from "node:child_process";
242291
242306
  import fs19, { constants as fsConstants2 } from "node:fs/promises";
242292
242307
 
@@ -242612,8 +242627,8 @@ var is_in_ssh_default = isInSsh;
242612
242627
 
242613
242628
  // node_modules/open/index.js
242614
242629
  var fallbackAttemptSymbol = Symbol("fallbackAttempt");
242615
- var __dirname3 = import.meta.url ? path16.dirname(fileURLToPath5(import.meta.url)) : "";
242616
- var localXdgOpenPath = path16.join(__dirname3, "xdg-open");
242630
+ var __dirname2 = import.meta.url ? path16.dirname(fileURLToPath4(import.meta.url)) : "";
242631
+ var localXdgOpenPath = path16.join(__dirname2, "xdg-open");
242617
242632
  var { platform: platform6, arch } = process20;
242618
242633
  var tryEachApp = async (apps, opener) => {
242619
242634
  if (apps.length === 0) {
@@ -242757,7 +242772,7 @@ var baseOpen = async (options) => {
242757
242772
  if (app) {
242758
242773
  command = app;
242759
242774
  } else {
242760
- const isBundled = !__dirname3 || __dirname3 === "/";
242775
+ const isBundled = !__dirname2 || __dirname2 === "/";
242761
242776
  let exeLocalXdgOpen = false;
242762
242777
  try {
242763
242778
  await fs19.access(localXdgOpenPath, fsConstants2.X_OK);
@@ -243138,11 +243153,11 @@ function getFunctionsDeployCommand(context) {
243138
243153
  }
243139
243154
 
243140
243155
  // src/cli/commands/project/create.ts
243141
- import { basename as basename3, join as join11, resolve as resolve2 } from "node:path";
243156
+ import { basename as basename3, join as join12, resolve as resolve2 } from "node:path";
243142
243157
  var import_kebabCase = __toESM(require_kebabCase(), 1);
243143
243158
  var DEFAULT_TEMPLATE_ID = "backend-only";
243144
- async function getTemplateById(templateId, assetsDir) {
243145
- const templates = await listTemplates(assetsDir);
243159
+ async function getTemplateById(templateId) {
243160
+ const templates = await listTemplates();
243146
243161
  const template2 = templates.find((t) => t.id === templateId);
243147
243162
  if (!template2) {
243148
243163
  const validIds = templates.map((t) => t.id).join(", ");
@@ -243158,8 +243173,8 @@ function validateNonInteractiveFlags(command) {
243158
243173
  command.error("Non-interactive mode requires all flags: --name, --path");
243159
243174
  }
243160
243175
  }
243161
- async function createInteractive(options, assetsDir) {
243162
- const templates = await listTemplates(assetsDir);
243176
+ async function createInteractive(options) {
243177
+ const templates = await listTemplates();
243163
243178
  const templateOptions = templates.map((t) => ({
243164
243179
  value: t,
243165
243180
  label: t.name,
@@ -243200,10 +243215,10 @@ async function createInteractive(options, assetsDir) {
243200
243215
  deploy: options.deploy,
243201
243216
  skills: options.skills,
243202
243217
  isInteractive: true
243203
- }, assetsDir);
243218
+ });
243204
243219
  }
243205
- async function createNonInteractive(options, assetsDir) {
243206
- const template2 = await getTemplateById(options.template ?? DEFAULT_TEMPLATE_ID, assetsDir);
243220
+ async function createNonInteractive(options) {
243221
+ const template2 = await getTemplateById(options.template ?? DEFAULT_TEMPLATE_ID);
243207
243222
  return await executeCreate({
243208
243223
  template: template2,
243209
243224
  name: options.name,
@@ -243211,7 +243226,7 @@ async function createNonInteractive(options, assetsDir) {
243211
243226
  deploy: options.deploy,
243212
243227
  skills: options.skills,
243213
243228
  isInteractive: false
243214
- }, assetsDir);
243229
+ });
243215
243230
  }
243216
243231
  async function executeCreate({
243217
243232
  template: template2,
@@ -243221,7 +243236,7 @@ async function executeCreate({
243221
243236
  deploy: deploy5,
243222
243237
  skills,
243223
243238
  isInteractive
243224
- }, assetsDir) {
243239
+ }) {
243225
243240
  const name2 = rawName.trim();
243226
243241
  const resolvedPath = resolve2(projectPath);
243227
243242
  const { projectId } = await runTask("Setting up your project...", async () => {
@@ -243229,8 +243244,7 @@ async function executeCreate({
243229
243244
  name: name2,
243230
243245
  description: description?.trim(),
243231
243246
  path: resolvedPath,
243232
- template: template2,
243233
- assetsDir
243247
+ template: template2
243234
243248
  });
243235
243249
  }, {
243236
243250
  successMessage: theme.colors.base44Orange("Project created successfully"),
@@ -243275,7 +243289,7 @@ async function executeCreate({
243275
243289
  updateMessage("Building project...");
243276
243290
  await execa({ cwd: resolvedPath, shell: true })`${buildCommand}`;
243277
243291
  updateMessage("Deploying site...");
243278
- return await deploySite(join11(resolvedPath, outputDirectory));
243292
+ return await deploySite(join12(resolvedPath, outputDirectory));
243279
243293
  }, {
243280
243294
  successMessage: theme.colors.base44Orange("Site deployed successfully"),
243281
243295
  errorMessage: "Failed to deploy site"
@@ -243308,9 +243322,9 @@ function getCreateCommand(context) {
243308
243322
  return new Command("create").description("Create a new Base44 project").addArgument(new Argument("name", "Project name").argOptional()).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("--no-skills", "Skip AI agent skills installation").hook("preAction", validateNonInteractiveFlags).action(async (name2, options) => {
243309
243323
  const isNonInteractive = !!(options.name ?? name2) && !!options.path;
243310
243324
  if (isNonInteractive) {
243311
- await runCommand(() => createNonInteractive({ name: options.name ?? name2, ...options }, context.assetsDir), { requireAuth: true, requireAppConfig: false }, context);
243325
+ await runCommand(() => createNonInteractive({ name: options.name ?? name2, ...options }), { requireAuth: true, requireAppConfig: false }, context);
243312
243326
  } else {
243313
- await runCommand(() => createInteractive({ name: name2, ...options }, context.assetsDir), { fullBanner: true, requireAuth: true, requireAppConfig: false }, context);
243327
+ await runCommand(() => createInteractive({ name: name2, ...options }), { fullBanner: true, requireAuth: true, requireAppConfig: false }, context);
243314
243328
  }
243315
243329
  });
243316
243330
  }
@@ -243901,10 +243915,10 @@ function toPascalCase(name2) {
243901
243915
  return name2.split(/[-_\s]+/).map((w8) => w8.charAt(0).toUpperCase() + w8.slice(1)).join("");
243902
243916
  }
243903
243917
  // src/core/types/update-project.ts
243904
- import { join as join14 } from "node:path";
243918
+ import { join as join15 } from "node:path";
243905
243919
  var TYPES_INCLUDE_PATH = `${PROJECT_SUBDIR}/${TYPES_OUTPUT_SUBDIR}/*.d.ts`;
243906
243920
  async function updateProjectConfig(projectRoot) {
243907
- const tsconfigPath = join14(projectRoot, "tsconfig.json");
243921
+ const tsconfigPath = join15(projectRoot, "tsconfig.json");
243908
243922
  if (!await pathExists(tsconfigPath)) {
243909
243923
  return false;
243910
243924
  }
@@ -243947,7 +243961,7 @@ function getTypesCommand(context) {
243947
243961
  }
243948
243962
 
243949
243963
  // src/cli/dev/dev-server/main.ts
243950
- import { dirname as dirname14, join as join17 } from "node:path";
243964
+ import { dirname as dirname13, join as join18 } from "node:path";
243951
243965
  var import_cors = __toESM(require_lib4(), 1);
243952
243966
  var import_express4 = __toESM(require_express(), 1);
243953
243967
 
@@ -245411,9 +245425,9 @@ class NodeFsHandler {
245411
245425
  if (this.fsw.closed) {
245412
245426
  return;
245413
245427
  }
245414
- const dirname13 = sp2.dirname(file2);
245428
+ const dirname12 = sp2.dirname(file2);
245415
245429
  const basename5 = sp2.basename(file2);
245416
- const parent = this.fsw._getWatchedDir(dirname13);
245430
+ const parent = this.fsw._getWatchedDir(dirname12);
245417
245431
  let prevStats = stats;
245418
245432
  if (parent.has(basename5))
245419
245433
  return;
@@ -245440,7 +245454,7 @@ class NodeFsHandler {
245440
245454
  prevStats = newStats2;
245441
245455
  }
245442
245456
  } catch (error48) {
245443
- this.fsw._remove(dirname13, basename5);
245457
+ this.fsw._remove(dirname12, basename5);
245444
245458
  }
245445
245459
  } else if (parent.has(basename5)) {
245446
245460
  const at13 = newStats.atimeMs;
@@ -246443,8 +246457,8 @@ async function createDevServer(options8) {
246443
246457
  broadcastEntityEvent(io6, appId, entityName, event);
246444
246458
  };
246445
246459
  const base44ConfigWatcher = new WatchBase44({
246446
- functions: join17(dirname14(project2.configPath), project2.functionsDir),
246447
- entities: join17(dirname14(project2.configPath), project2.entitiesDir)
246460
+ functions: join18(dirname13(project2.configPath), project2.functionsDir),
246461
+ entities: join18(dirname13(project2.configPath), project2.entitiesDir)
246448
246462
  }, devLogger);
246449
246463
  base44ConfigWatcher.on("change", async (name2) => {
246450
246464
  try {
@@ -246488,11 +246502,11 @@ async function createDevServer(options8) {
246488
246502
  }
246489
246503
 
246490
246504
  // src/cli/commands/dev.ts
246491
- async function devAction(options8, context) {
246505
+ async function devAction(options8) {
246492
246506
  const port = options8.port ? Number(options8.port) : undefined;
246493
246507
  const { port: resolvedPort } = await createDevServer({
246494
246508
  port,
246495
- denoWrapperPath: getDenoWrapperPath(context.assetsDir),
246509
+ denoWrapperPath: getDenoWrapperPath(),
246496
246510
  loadResources: async () => {
246497
246511
  const { functions, entities, project: project2 } = await readProjectConfig();
246498
246512
  return { functions, entities, project: project2 };
@@ -246504,7 +246518,7 @@ async function devAction(options8, context) {
246504
246518
  }
246505
246519
  function getDevCommand(context) {
246506
246520
  return new Command("dev").description("Start the development server").option("-p, --port <number>", "Port for the development server").action(async (options8) => {
246507
- await runCommand(() => devAction(options8, context), { requireAuth: true }, context);
246521
+ await runCommand(() => devAction(options8), { requireAuth: true }, context);
246508
246522
  });
246509
246523
  }
246510
246524
 
@@ -246634,7 +246648,7 @@ var import_detect_agent = __toESM(require_dist5(), 1);
246634
246648
  import { release, type } from "node:os";
246635
246649
 
246636
246650
  // node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs
246637
- import { dirname as dirname15, posix, sep } from "path";
246651
+ import { dirname as dirname14, posix, sep } from "path";
246638
246652
  function createModulerModifier() {
246639
246653
  const getModuleFromFileName = createGetModuleFromFilename();
246640
246654
  return async (frames) => {
@@ -246643,7 +246657,7 @@ function createModulerModifier() {
246643
246657
  return frames;
246644
246658
  };
246645
246659
  }
246646
- function createGetModuleFromFilename(basePath = process.argv[1] ? dirname15(process.argv[1]) : process.cwd(), isWindows5 = sep === "\\") {
246660
+ function createGetModuleFromFilename(basePath = process.argv[1] ? dirname14(process.argv[1]) : process.cwd(), isWindows5 = sep === "\\") {
246647
246661
  const normalizedBase = isWindows5 ? normalizeWindowsPath2(basePath) : basePath;
246648
246662
  return (filename) => {
246649
246663
  if (!filename)
@@ -250832,14 +250846,15 @@ function addCommandInfoToErrorReporter(program2, errorReporter) {
250832
250846
  });
250833
250847
  }
250834
250848
  // src/cli/index.ts
250835
- async function runCLI(options8) {
250849
+ var __dirname4 = dirname15(fileURLToPath6(import.meta.url));
250850
+ async function runCLI() {
250851
+ ensureNpmAssets(join19(__dirname4, "../assets"));
250836
250852
  const errorReporter = new ErrorReporter;
250837
250853
  errorReporter.registerProcessErrorHandlers();
250838
250854
  const isNonInteractive = !process.stdin.isTTY || !process.stdout.isTTY;
250839
250855
  const context = {
250840
250856
  errorReporter,
250841
- isNonInteractive,
250842
- assetsDir: options8?.assetsDir
250857
+ isNonInteractive
250843
250858
  };
250844
250859
  const program2 = createProgram(context);
250845
250860
  try {
@@ -250865,4 +250880,4 @@ export {
250865
250880
  CLIExitError
250866
250881
  };
250867
250882
 
250868
- //# debugId=C8CB3FB0D3C9C07064756E2164756E21
250883
+ //# debugId=71F8E283DBF8745764756E2164756E21