@base44-preview/cli 0.1.14-pr.614.e34e90d → 0.1.14-pr.618.6b8b5cf

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
@@ -31177,7 +31177,7 @@ function cleanDoc(doc) {
31177
31177
  return mapDoc(doc, (currentDoc) => cleanDocFn(currentDoc));
31178
31178
  }
31179
31179
  function replaceEndOfLine(doc, replacement = literalline) {
31180
- return mapDoc(doc, (currentDoc) => typeof currentDoc === "string" ? join28(replacement, currentDoc.split(`
31180
+ return mapDoc(doc, (currentDoc) => typeof currentDoc === "string" ? join27(replacement, currentDoc.split(`
31181
31181
  `)) : currentDoc);
31182
31182
  }
31183
31183
  function canBreakFn(doc) {
@@ -31257,7 +31257,7 @@ function indentIfBreak(contents, options) {
31257
31257
  negate: options.negate
31258
31258
  };
31259
31259
  }
31260
- function join28(separator, docs) {
31260
+ function join27(separator, docs) {
31261
31261
  assertDoc(separator);
31262
31262
  assertDocArray(docs);
31263
31263
  const parts = [];
@@ -31968,7 +31968,7 @@ var init_doc = __esm(() => {
31968
31968
  MODE_FLAT = Symbol("MODE_FLAT");
31969
31969
  DOC_FILL_PRINTED_LENGTH = Symbol("DOC_FILL_PRINTED_LENGTH");
31970
31970
  builders = {
31971
- join: join28,
31971
+ join: join27,
31972
31972
  line,
31973
31973
  softline,
31974
31974
  hardline,
@@ -120869,7 +120869,7 @@ async function filter({ name, path: file }) {
120869
120869
  function getSearcher(stopDirectory) {
120870
120870
  return new FileSearcher(CONFIG_FILE_NAMES, { filter, stopDirectory });
120871
120871
  }
120872
- function formatList2(array2, type = "and") {
120872
+ function formatList(array2, type = "and") {
120873
120873
  return array2.length < 3 ? array2.join(` ${type} `) : `${array2.slice(0, -1).join(", ")}, ${type} ${array2[array2.length - 1]}`;
120874
120874
  }
120875
120875
  function createError(sym, value, constructor) {
@@ -134665,18 +134665,18 @@ ${codeblock}`, options8);
134665
134665
  }
134666
134666
  }
134667
134667
  if (types.length > 0) {
134668
- message += `${types.length > 1 ? "one of type" : "of type"} ${formatList2(types, "or")}`;
134668
+ message += `${types.length > 1 ? "one of type" : "of type"} ${formatList(types, "or")}`;
134669
134669
  if (instances.length > 0 || other.length > 0)
134670
134670
  message += " or ";
134671
134671
  }
134672
134672
  if (instances.length > 0) {
134673
- message += `an instance of ${formatList2(instances, "or")}`;
134673
+ message += `an instance of ${formatList(instances, "or")}`;
134674
134674
  if (other.length > 0)
134675
134675
  message += " or ";
134676
134676
  }
134677
134677
  if (other.length > 0) {
134678
134678
  if (other.length > 1) {
134679
- message += `one of ${formatList2(other, "or")}`;
134679
+ message += `one of ${formatList(other, "or")}`;
134680
134680
  } else {
134681
134681
  if (other[0].toLowerCase() !== other[0])
134682
134682
  message += "an ";
@@ -228779,7 +228779,7 @@ function normalizeBase44Env() {
228779
228779
  loadProjectEnvFiles();
228780
228780
 
228781
228781
  // src/cli/index.ts
228782
- import { dirname as dirname27, join as join37 } from "node:path";
228782
+ import { dirname as dirname26, join as join36 } from "node:path";
228783
228783
  import { fileURLToPath as fileURLToPath6 } from "node:url";
228784
228784
 
228785
228785
  // ../../node_modules/@clack/core/dist/index.mjs
@@ -236754,6 +236754,9 @@ var ListAgentsResponseSchema = object({
236754
236754
 
236755
236755
  // src/core/resources/agent/api.ts
236756
236756
  async function pushAgents(agents) {
236757
+ if (agents.length === 0) {
236758
+ return { created: [], updated: [], deleted: [] };
236759
+ }
236757
236760
  const appClient = getAppClient();
236758
236761
  let response;
236759
236762
  try {
@@ -246525,25 +246528,22 @@ async function deployAll(projectData, options) {
246525
246528
  if (project.visibility) {
246526
246529
  options?.onVisibilitySet?.(project.visibility);
246527
246530
  }
246528
- const syncResults = {};
246529
- syncResults.entities = await pushEntities(entities);
246530
- await deployFunctionsSequentially(functions, {
246531
+ await entityResource.push(entities);
246532
+ const functionResults = await deployFunctionsSequentially(functions, {
246531
246533
  onStart: options?.onFunctionStart,
246532
246534
  onResult: options?.onFunctionResult
246533
246535
  });
246534
- syncResults.agentSkills = await pushAgentSkills(agentSkills);
246535
- if (agents.length > 0) {
246536
- syncResults.agents = await pushAgents(agents);
246537
- }
246536
+ await agentSkillResource.push(agentSkills);
246537
+ await agentResource.push(agents);
246538
246538
  await authConfigResource.push(authConfig);
246539
246539
  const skipConnectorSync = connectors.length === 0 && hasWorkspaceApiKeyAuth();
246540
246540
  const connectorResults = skipConnectorSync ? [] : (await pushConnectors(connectors)).results;
246541
246541
  if (project.site?.outputDirectory) {
246542
246542
  const outputDir = resolve5(project.root, project.site.outputDirectory);
246543
246543
  const { appUrl } = await deploySite(outputDir);
246544
- return { appUrl, connectorResults, syncResults };
246544
+ return { appUrl, connectorResults, functionResults };
246545
246545
  }
246546
- return { connectorResults, syncResults };
246546
+ return { connectorResults, functionResults };
246547
246547
  }
246548
246548
  // src/core/clients/base44-client.ts
246549
246549
  var retriedRequests = new WeakSet;
@@ -247407,21 +247407,8 @@ function getAgentsPullCommand() {
247407
247407
  }
247408
247408
 
247409
247409
  // src/cli/commands/agents/push.ts
247410
- import { dirname as dirname13, join as join20 } from "node:path";
247411
- async function pushAgentsAction({ isNonInteractive, jsonMode, log, runTask }, options) {
247412
- const { project, agents } = await readProjectConfig();
247413
- if (agents.length === 0) {
247414
- const agentsDir = join20(dirname13(project.configPath), project.agentsDir);
247415
- if (!await pathExists(agentsDir)) {
247416
- throw new InvalidInputError(`No agents directory found at "${project.agentsDir}"`, {
247417
- hints: [
247418
- {
247419
- message: `Run 'base44 agents pull' to fetch the app's agents, or create an empty "${project.agentsDir}" directory to confirm you want every remote agent deleted`
247420
- }
247421
- ]
247422
- });
247423
- }
247424
- }
247410
+ async function pushAgentsAction({ isNonInteractive, log, runTask }, options) {
247411
+ const { agents } = await readProjectConfig();
247425
247412
  log.info(agents.length === 0 ? "No local agents found - this will delete all remote agents" : `Found ${agents.length} agents to push`);
247426
247413
  const proceed = await confirmPush({
247427
247414
  isNonInteractive,
@@ -247447,12 +247434,6 @@ async function pushAgentsAction({ isNonInteractive, jsonMode, log, runTask }, op
247447
247434
  if (result.deleted.length > 0) {
247448
247435
  log.warn(`Deleted: ${result.deleted.join(", ")}`);
247449
247436
  }
247450
- if (jsonMode) {
247451
- return {
247452
- outroMessage: "Agents pushed to Base44",
247453
- stdout: toJsonStdout(result)
247454
- };
247455
- }
247456
247437
  return { outroMessage: "Agents pushed to Base44" };
247457
247438
  }
247458
247439
  function getAgentsPushCommand() {
@@ -247465,12 +247446,12 @@ function getAgentsCommand() {
247465
247446
  }
247466
247447
 
247467
247448
  // src/cli/commands/auth/password-login.ts
247468
- import { dirname as dirname14, join as join21 } from "node:path";
247449
+ import { dirname as dirname13, join as join20 } from "node:path";
247469
247450
  async function passwordLoginAction({ log, runTask }, action) {
247470
247451
  const shouldEnable = action === "enable";
247471
247452
  const { project } = await readProjectConfig();
247472
- const configDir = dirname14(project.configPath);
247473
- const authDir = join21(configDir, project.authDir);
247453
+ const configDir = dirname13(project.configPath);
247454
+ const authDir = join20(configDir, project.authDir);
247474
247455
  const updated = await runTask("Updating local auth config", async () => {
247475
247456
  const current = await readAuthConfig(authDir) ?? DEFAULT_AUTH_CONFIG;
247476
247457
  const merged = { ...current, enableUsernamePassword: shouldEnable };
@@ -247490,14 +247471,14 @@ function getPasswordLoginCommand() {
247490
247471
  }
247491
247472
 
247492
247473
  // src/cli/commands/auth/pull.ts
247493
- import { dirname as dirname15, join as join22 } from "node:path";
247474
+ import { dirname as dirname14, join as join21 } from "node:path";
247494
247475
  async function pullAuthAction({
247495
247476
  log,
247496
247477
  runTask
247497
247478
  }) {
247498
247479
  const { project } = await readProjectConfig();
247499
- const configDir = dirname15(project.configPath);
247500
- const authDir = join22(configDir, project.authDir);
247480
+ const configDir = dirname14(project.configPath);
247481
+ const authDir = join21(configDir, project.authDir);
247501
247482
  const remoteConfig = await runTask("Fetching auth config from Base44", async () => {
247502
247483
  return await pullAuthConfig();
247503
247484
  }, {
@@ -247561,7 +247542,7 @@ function getAuthPushCommand() {
247561
247542
  }
247562
247543
 
247563
247544
  // src/cli/commands/auth/social-login.ts
247564
- import { dirname as dirname16, join as join23, resolve as resolve6 } from "node:path";
247545
+ import { dirname as dirname15, join as join22, resolve as resolve6 } from "node:path";
247565
247546
  var PROVIDER_LABELS = {
247566
247547
  google: "Google",
247567
247548
  microsoft: "Microsoft",
@@ -247631,8 +247612,8 @@ async function socialLoginAction({ log, isNonInteractive, runTask }, provider, a
247631
247612
  }
247632
247613
  }
247633
247614
  const { project } = await readProjectConfig();
247634
- const configDir = dirname16(project.configPath);
247635
- const authDir = join23(configDir, project.authDir);
247615
+ const configDir = dirname15(project.configPath);
247616
+ const authDir = join22(configDir, project.authDir);
247636
247617
  const { config: updated } = await runTask("Updating local auth config", async () => updateSocialLoginConfig(authDir, provider, shouldEnable, useCustomOAuth && options.clientId ? { clientId: options.clientId } : undefined));
247637
247618
  if (clientSecret) {
247638
247619
  await runTask("Saving client secret", async () => pushCustomOAuthSecret(provider, clientSecret));
@@ -247657,7 +247638,7 @@ function getSocialLoginCommand() {
247657
247638
  }
247658
247639
 
247659
247640
  // src/cli/commands/auth/sso.ts
247660
- import { dirname as dirname17, join as join24, resolve as resolve7 } from "node:path";
247641
+ import { dirname as dirname16, join as join23, resolve as resolve7 } from "node:path";
247661
247642
  var SSOConfigFileSchema = object({
247662
247643
  provider: _enum(Object.values(KNOWN_SSO_PROVIDERS)),
247663
247644
  clientId: string2(),
@@ -247820,8 +247801,8 @@ async function ssoEnableAction({ isNonInteractive, runTask }, options) {
247820
247801
  throw error;
247821
247802
  }
247822
247803
  const { project } = await readProjectConfig();
247823
- const configDir = dirname17(project.configPath);
247824
- const authDir = join24(configDir, project.authDir);
247804
+ const configDir = dirname16(project.configPath);
247805
+ const authDir = join23(configDir, project.authDir);
247825
247806
  await runTask("Updating local auth config", async () => updateSSOConfig(authDir, provider, true));
247826
247807
  await runTask("Saving SSO credentials", async () => pushSSOSecrets(secrets));
247827
247808
  return {
@@ -247836,8 +247817,8 @@ async function ssoDisableAction({ log, runTask }, options) {
247836
247817
  throw new InvalidInputError("Configuration options cannot be used with disable. To disable SSO: base44 auth sso disable");
247837
247818
  }
247838
247819
  const { project } = await readProjectConfig();
247839
- const configDir = dirname17(project.configPath);
247840
- const authDir = join24(configDir, project.authDir);
247820
+ const configDir = dirname16(project.configPath);
247821
+ const authDir = join23(configDir, project.authDir);
247841
247822
  const updated = await runTask("Updating local auth config", async () => updateSSOConfig(authDir, null, false));
247842
247823
  await runTask("Removing SSO credentials", async () => deleteSSOSecrets());
247843
247824
  if (!hasAnyLoginMethod(updated)) {
@@ -248694,13 +248675,13 @@ function getConnectorsListAvailableCommand() {
248694
248675
  }
248695
248676
 
248696
248677
  // src/cli/commands/connectors/pull.ts
248697
- import { dirname as dirname18, join as join25, resolve as resolve8 } from "node:path";
248678
+ import { dirname as dirname17, join as join24, resolve as resolve8 } from "node:path";
248698
248679
  async function resolveConnectorsDir(options) {
248699
248680
  if (!getAppContext().projectRoot) {
248700
248681
  return resolve8(options.dir ?? "connectors");
248701
248682
  }
248702
248683
  const { project } = await readProjectConfig();
248703
- return join25(dirname18(project.configPath), project.connectorsDir);
248684
+ return join24(dirname17(project.configPath), project.connectorsDir);
248704
248685
  }
248705
248686
  async function pullConnectorsAction({ log, runTask, jsonMode }, options) {
248706
248687
  const connectorsDir = await resolveConnectorsDir(options);
@@ -249108,11 +249089,11 @@ function getListCommand() {
249108
249089
  }
249109
249090
 
249110
249091
  // src/cli/commands/functions/pull.ts
249111
- import { dirname as dirname19, join as join26 } from "node:path";
249092
+ import { dirname as dirname18, join as join25 } from "node:path";
249112
249093
  async function pullFunctionsAction({ log, runTask }, name) {
249113
249094
  const { project, functions } = await readProjectConfig();
249114
- const configDir = dirname19(project.configPath);
249115
- const functionsDir = join26(configDir, project.functionsDir);
249095
+ const configDir = dirname18(project.configPath);
249096
+ const functionsDir = join25(configDir, project.functionsDir);
249116
249097
  const pluginFunctionNames = new Set(functions.filter((fn) => fn.source.type === "plugin").map((fn) => fn.name));
249117
249098
  const remoteFunctions = await runTask("Fetching functions from Base44", async () => {
249118
249099
  const { functions } = await listDeployedFunctions();
@@ -249238,7 +249219,7 @@ import { basename as basename5, resolve as resolve10 } from "node:path";
249238
249219
  var import_kebabCase = __toESM(require_kebabCase(), 1);
249239
249220
 
249240
249221
  // src/cli/commands/project/scaffold-shared.ts
249241
- import { join as join27 } from "node:path";
249222
+ import { join as join26 } from "node:path";
249242
249223
  var DEFAULT_TEMPLATE_ID = "backend-only";
249243
249224
  async function getTemplateById(templateId) {
249244
249225
  const templates = await listTemplates();
@@ -249301,7 +249282,7 @@ async function completeProjectSetup({
249301
249282
  env: { VITE_BASE44_APP_ID: projectId }
249302
249283
  })`${buildCommand}`;
249303
249284
  updateMessage("Deploying site...");
249304
- return await deploySite(join27(resolvedPath, outputDirectory));
249285
+ return await deploySite(join26(resolvedPath, outputDirectory));
249305
249286
  }, {
249306
249287
  successMessage: theme.colors.base44Orange("Site deployed successfully"),
249307
249288
  errorMessage: "Failed to deploy site"
@@ -249516,15 +249497,7 @@ async function deployAction(ctx, options = {}) {
249516
249497
  outroMessage: "No resources found to deploy"
249517
249498
  };
249518
249499
  }
249519
- const {
249520
- project,
249521
- entities,
249522
- functions,
249523
- agents,
249524
- agentSkills,
249525
- connectors,
249526
- authConfig
249527
- } = projectData;
249500
+ const { project, entities, functions, agents, connectors, authConfig } = projectData;
249528
249501
  const summaryLines = [];
249529
249502
  if (entities.length > 0) {
249530
249503
  summaryLines.push(` - ${entities.length} ${entities.length === 1 ? "entity" : "entities"}`);
@@ -249547,19 +249520,10 @@ async function deployAction(ctx, options = {}) {
249547
249520
  if (project.site?.outputDirectory) {
249548
249521
  summaryLines.push(` - Site from ${project.site.outputDirectory}`);
249549
249522
  }
249550
- const fullSyncLabels = [
249551
- entities.length > 0 && "entities",
249552
- agents.length > 0 && "agents",
249553
- agentSkills.length > 0 && "agent skills"
249554
- ].filter((label) => typeof label === "string");
249555
- const destructiveWarning = fullSyncLabels.length > 0 ? `This is a full sync: ${formatList(fullSyncLabels)} that exist in your app but not locally will be DELETED.` : undefined;
249556
249523
  if (!options.yes) {
249557
249524
  log.warn(`This will update your Base44 app with:
249558
249525
  ${summaryLines.join(`
249559
249526
  `)}`);
249560
- if (destructiveWarning) {
249561
- log.warn(destructiveWarning);
249562
- }
249563
249527
  const shouldDeploy = await Re({
249564
249528
  message: "Are you sure you want to continue?"
249565
249529
  });
@@ -249570,9 +249534,6 @@ ${summaryLines.join(`
249570
249534
  log.info(`Deploying:
249571
249535
  ${summaryLines.join(`
249572
249536
  `)}`);
249573
- if (destructiveWarning) {
249574
- log.warn(destructiveWarning);
249575
- }
249576
249537
  }
249577
249538
  await maybeBuildBeforeDeploy(ctx, project, options.build);
249578
249539
  let functionCompleted = 0;
@@ -249590,7 +249551,6 @@ ${summaryLines.join(`
249590
249551
  formatDeployResult(r, log);
249591
249552
  }
249592
249553
  });
249593
- reportSyncResults(result.syncResults, log);
249594
249554
  const connectorResults = result.connectorResults ?? [];
249595
249555
  await handleOAuthConnectors(connectorResults, isNonInteractive, options, log);
249596
249556
  const stripeResult = connectorResults.find((r) => r.type === "stripe");
@@ -249601,45 +249561,13 @@ ${summaryLines.join(`
249601
249561
  if (result.appUrl) {
249602
249562
  log.message(`${theme.styles.header("App URL")}: ${theme.colors.links(result.appUrl)}`);
249603
249563
  }
249604
- if (ctx.jsonMode) {
249605
- return {
249606
- outroMessage: "App deployed successfully",
249607
- stdout: toJsonStdout({
249608
- appUrl: result.appUrl,
249609
- sync: result.syncResults
249610
- })
249611
- };
249564
+ const failedFunctions = result.functionResults.filter((functionResult) => functionResult.status === "error").length;
249565
+ if (failedFunctions > 0) {
249566
+ log.warn(`${failedFunctions} ${failedFunctions === 1 ? "function" : "functions"} failed to deploy`);
249567
+ throw new CLIExitError(1);
249612
249568
  }
249613
249569
  return { outroMessage: "App deployed successfully" };
249614
249570
  }
249615
- function formatList(items) {
249616
- if (items.length <= 1) {
249617
- return items.join("");
249618
- }
249619
- return `${items.slice(0, -1).join(", ")} and ${items[items.length - 1]}`;
249620
- }
249621
- var SYNC_RESULT_LABELS = {
249622
- entities: "Entities",
249623
- agentSkills: "Agent skills",
249624
- agents: "Agents"
249625
- };
249626
- function reportSyncResults(syncResults, log) {
249627
- for (const [key, label] of Object.entries(SYNC_RESULT_LABELS)) {
249628
- const outcome = syncResults[key];
249629
- if (!outcome) {
249630
- continue;
249631
- }
249632
- if (outcome.created.length > 0) {
249633
- log.success(`${label} created: ${outcome.created.join(", ")}`);
249634
- }
249635
- if (outcome.updated.length > 0) {
249636
- log.success(`${label} updated: ${outcome.updated.join(", ")}`);
249637
- }
249638
- if (outcome.deleted.length > 0) {
249639
- log.warn(`${label} deleted: ${outcome.deleted.join(", ")}`);
249640
- }
249641
- }
249642
- }
249643
249571
  function getDeployCommand2() {
249644
249572
  return new Base44Command("deploy").description("Deploy all project resources (entities, functions, agents, connectors, and site)").option("-y, --yes", "Skip confirmation prompt").option("--build", "Build the site before deploying (skips the prompt)").option("--no-build", "Deploy without building (skips the prompt)").action(deployAction);
249645
249573
  }
@@ -250810,10 +250738,10 @@ function toPascalCase(name) {
250810
250738
  return name.split(/[-_\s]+/).map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join("");
250811
250739
  }
250812
250740
  // src/core/types/update-project.ts
250813
- import { join as join30 } from "node:path";
250741
+ import { join as join29 } from "node:path";
250814
250742
  var TYPES_INCLUDE_PATH = `${PROJECT_SUBDIR}/${TYPES_OUTPUT_SUBDIR}/*.d.ts`;
250815
250743
  async function updateProjectConfig(projectRoot) {
250816
- const tsconfigPath = join30(projectRoot, "tsconfig.json");
250744
+ const tsconfigPath = join29(projectRoot, "tsconfig.json");
250817
250745
  if (!await pathExists(tsconfigPath)) {
250818
250746
  return false;
250819
250747
  }
@@ -251277,7 +251205,7 @@ function createDevLogger(label, labelColor = theme.styles.dim) {
251277
251205
  // src/cli/dev/dev-server/main.ts
251278
251206
  var import_cors = __toESM(require_lib4(), 1);
251279
251207
  var import_express6 = __toESM(require_express(), 1);
251280
- import { dirname as dirname25, join as join36 } from "node:path";
251208
+ import { dirname as dirname24, join as join35 } from "node:path";
251281
251209
 
251282
251210
  // ../../node_modules/get-port/index.js
251283
251211
  import net from "node:net";
@@ -251407,7 +251335,7 @@ var $tmpName = promisify11(tmp.tmpName);
251407
251335
 
251408
251336
  // src/cli/dev/dev-server/function-manager.ts
251409
251337
  import { spawn as spawn2 } from "node:child_process";
251410
- import { dirname as dirname22, join as join31 } from "node:path";
251338
+ import { dirname as dirname21, join as join30 } from "node:path";
251411
251339
  import { pathToFileURL } from "node:url";
251412
251340
 
251413
251341
  // src/cli/dev/dev-server/base-function-manager.ts
@@ -251512,7 +251440,7 @@ class FunctionManager extends BaseFunctionManager {
251512
251440
  }
251513
251441
  spawnFunction(func, port) {
251514
251442
  this.logger.log(`Spawning function "${func.name}" on port ${port}`);
251515
- const importMapPath = join31(dirname22(this.wrapperPath), "import-map.json");
251443
+ const importMapPath = join30(dirname21(this.wrapperPath), "import-map.json");
251516
251444
  const process2 = spawn2("deno", ["run", "--allow-all", "--import-map", importMapPath, this.wrapperPath], {
251517
251445
  env: {
251518
251446
  ...globalThis.process.env,
@@ -251586,7 +251514,7 @@ class FunctionManager extends BaseFunctionManager {
251586
251514
  import { mkdirSync as mkdirSync2, writeFileSync as writeFileSync2 } from "node:fs";
251587
251515
  import { isBuiltin } from "node:module";
251588
251516
  import { homedir as homedir3 } from "node:os";
251589
- import { join as join33 } from "node:path";
251517
+ import { join as join31 } from "node:path";
251590
251518
  import { pathToFileURL as pathToFileURL6 } from "node:url";
251591
251519
  var depsPromise;
251592
251520
  function loadDeps() {
@@ -251707,9 +251635,9 @@ export default {
251707
251635
  };
251708
251636
  `;
251709
251637
  function ensureBundlerConfig() {
251710
- const dir = join33(homedir3(), ".base44", "function-bundler");
251638
+ const dir = join31(homedir3(), ".base44", "function-bundler");
251711
251639
  mkdirSync2(dir, { recursive: true });
251712
- const configPath = join33(dir, "deno.json");
251640
+ const configPath = join31(dir, "deno.json");
251713
251641
  writeFileSync2(configPath, `${JSON.stringify({ nodeModulesDir: "auto" }, null, 2)}
251714
251642
  `);
251715
251643
  return configPath;
@@ -254971,8 +254899,8 @@ async function createDevServer(options) {
254971
254899
  broadcastEntityEvent(io, appId, entityName, event);
254972
254900
  };
254973
254901
  const base44ConfigWatcher = new WatchBase44({
254974
- functions: join36(dirname25(project.configPath), project.functionsDir),
254975
- entities: join36(dirname25(project.configPath), project.entitiesDir)
254902
+ functions: join35(dirname24(project.configPath), project.functionsDir),
254903
+ entities: join35(dirname24(project.configPath), project.entitiesDir)
254976
254904
  }, devLogger);
254977
254905
  base44ConfigWatcher.on("change", async (name) => {
254978
254906
  try {
@@ -255527,7 +255455,7 @@ var import_detect_agent = __toESM(require_dist5(), 1);
255527
255455
  import { release, type } from "node:os";
255528
255456
 
255529
255457
  // ../../node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs
255530
- import { dirname as dirname26, posix, sep as sep2 } from "path";
255458
+ import { dirname as dirname25, posix, sep as sep2 } from "path";
255531
255459
  function createModulerModifier() {
255532
255460
  const getModuleFromFileName = createGetModuleFromFilename();
255533
255461
  return async (frames) => {
@@ -255536,7 +255464,7 @@ function createModulerModifier() {
255536
255464
  return frames;
255537
255465
  };
255538
255466
  }
255539
- function createGetModuleFromFilename(basePath = process.argv[1] ? dirname26(process.argv[1]) : process.cwd(), isWindows = sep2 === "\\") {
255467
+ function createGetModuleFromFilename(basePath = process.argv[1] ? dirname25(process.argv[1]) : process.cwd(), isWindows = sep2 === "\\") {
255540
255468
  const normalizedBase = isWindows ? normalizeWindowsPath2(basePath) : basePath;
255541
255469
  return (filename) => {
255542
255470
  if (!filename)
@@ -259525,9 +259453,9 @@ function addCommandInfoToErrorReporter(program, errorReporter) {
259525
259453
  });
259526
259454
  }
259527
259455
  // src/cli/index.ts
259528
- var __dirname4 = dirname27(fileURLToPath6(import.meta.url));
259456
+ var __dirname4 = dirname26(fileURLToPath6(import.meta.url));
259529
259457
  async function runCLI(options) {
259530
- ensureNpmAssets(join37(__dirname4, "../assets"));
259458
+ ensureNpmAssets(join36(__dirname4, "../assets"));
259531
259459
  const errorReporter = new ErrorReporter;
259532
259460
  errorReporter.registerProcessErrorHandlers();
259533
259461
  const jsonMode = process.argv.includes("--json");
@@ -259566,4 +259494,4 @@ export {
259566
259494
  runCLI
259567
259495
  };
259568
259496
 
259569
- //# debugId=B821E298EE7A5FD964756E2164756E21
259497
+ //# debugId=948085031B0FBD6764756E2164756E21