@base44-preview/cli 0.3.4-pr.702.1894d21 → 0.3.4-pr.703.4ec4bf2

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
@@ -31560,7 +31560,7 @@ function cleanDoc(doc) {
31560
31560
  return mapDoc(doc, (currentDoc) => cleanDocFn(currentDoc));
31561
31561
  }
31562
31562
  function replaceEndOfLine(doc, replacement = literalline) {
31563
- return mapDoc(doc, (currentDoc) => typeof currentDoc === "string" ? join32(replacement, currentDoc.split(`
31563
+ return mapDoc(doc, (currentDoc) => typeof currentDoc === "string" ? join33(replacement, currentDoc.split(`
31564
31564
  `)) : currentDoc);
31565
31565
  }
31566
31566
  function canBreakFn(doc) {
@@ -31640,7 +31640,7 @@ function indentIfBreak(contents, options) {
31640
31640
  negate: options.negate
31641
31641
  };
31642
31642
  }
31643
- function join32(separator, docs) {
31643
+ function join33(separator, docs) {
31644
31644
  assertDoc(separator);
31645
31645
  assertDocArray(docs);
31646
31646
  const parts = [];
@@ -32351,7 +32351,7 @@ var init_doc = __esm(() => {
32351
32351
  MODE_FLAT = Symbol("MODE_FLAT");
32352
32352
  DOC_FILL_PRINTED_LENGTH = Symbol("DOC_FILL_PRINTED_LENGTH");
32353
32353
  builders = {
32354
- join: join32,
32354
+ join: join33,
32355
32355
  line,
32356
32356
  softline,
32357
32357
  hardline,
@@ -125190,7 +125190,7 @@ var require2, __filename2, __dirname3, __create2, __defProp3, __getOwnPropDesc2,
125190
125190
  }
125191
125191
  }
125192
125192
  }, ast_path_default, is_object_default, skipWhitespace, skipSpaces, skipToLineEnd, skipEverythingButNewLine, isNewlineCharacter = (character) => character === `
125193
- ` || character === "\r" || character === "\u2028" || character === "\u2029", skip_newline_default, has_newline_default, is_non_empty_array_default, get_sorted_child_nodes_default, childNodesCache, returnFalse = () => false, isAllEmptyAndNoLineBreak = (text) => !/[\S\n\u2028\u2029]/u.test(text), is_previous_line_empty_default, breakParent2, hardline2, indent2, join34, line22, lineSuffix2, create_print_pre_check_function_default = () => noop_default2, core_options_evaluate_default, arrayToReversed, toReversed, method_to_reversed_default, import_n_readlines, get_interpreter_default, getFileBasename = (file) => {
125193
+ ` || character === "\r" || character === "\u2028" || character === "\u2029", skip_newline_default, has_newline_default, is_non_empty_array_default, get_sorted_child_nodes_default, childNodesCache, returnFalse = () => false, isAllEmptyAndNoLineBreak = (text) => !/[\S\n\u2028\u2029]/u.test(text), is_previous_line_empty_default, breakParent2, hardline2, indent2, join35, line22, lineSuffix2, create_print_pre_check_function_default = () => noop_default2, core_options_evaluate_default, arrayToReversed, toReversed, method_to_reversed_default, import_n_readlines, get_interpreter_default, getFileBasename = (file) => {
125194
125194
  try {
125195
125195
  return path112.basename(toPath3(file));
125196
125196
  } catch {
@@ -135219,7 +135219,7 @@ ${codeblock}`, options8);
135219
135219
  breakParent: breakParent2,
135220
135220
  hardline: hardline2,
135221
135221
  indent: indent2,
135222
- join: join34,
135222
+ join: join35,
135223
135223
  line: line22,
135224
135224
  lineSuffix: lineSuffix2
135225
135225
  } = builders);
@@ -228529,6 +228529,20 @@ class AppNotPublishedError extends UserError {
228529
228529
  });
228530
228530
  }
228531
228531
  }
228532
+
228533
+ class DeploymentExistsError extends UserError {
228534
+ code = "DEPLOYMENT_EXISTS";
228535
+ constructor(gitHash, options) {
228536
+ super(`Commit ${gitHash.slice(0, 12)} already has a different build, so this one was not deployed`, {
228537
+ hints: options?.hints ?? [
228538
+ {
228539
+ message: "Run the same command again with --overwrite to replace that build, or commit your changes and deploy the new commit"
228540
+ }
228541
+ ],
228542
+ cause: options?.cause
228543
+ });
228544
+ }
228545
+ }
228532
228546
  var MAX_RESPONSE_TEXT_CHARS = 500;
228533
228547
  async function readResponseText(response) {
228534
228548
  try {
@@ -228875,7 +228889,7 @@ function normalizeBase44Env() {
228875
228889
  loadProjectEnvFiles();
228876
228890
 
228877
228891
  // src/cli/index.ts
228878
- import { dirname as dirname31, join as join42 } from "node:path";
228892
+ import { dirname as dirname31, join as join43 } from "node:path";
228879
228893
  import { fileURLToPath as fileURLToPath7 } from "node:url";
228880
228894
 
228881
228895
  // ../../node_modules/@clack/core/dist/index.mjs
@@ -236614,6 +236628,9 @@ var DeployResponseSchema = object({
236614
236628
  var PublishedUrlResponseSchema = object({
236615
236629
  url: string2()
236616
236630
  });
236631
+ var DeploymentExistsRefusalSchema = object({
236632
+ error: object({ code: literal("deployment_already_exists") })
236633
+ });
236617
236634
  var CreateDeploymentResponseSchema = object({
236618
236635
  deployment_id: string2(),
236619
236636
  session_id: string2(),
@@ -239714,7 +239731,11 @@ async function createDeployment(request) {
239714
239731
  timeout: 120000
239715
239732
  });
239716
239733
  } catch (error) {
239717
- throw await ApiError.fromHttpError(error, "creating deployment");
239734
+ const apiError = await ApiError.fromHttpError(error, "creating deployment");
239735
+ if (apiError.statusCode === 409 && DeploymentExistsRefusalSchema.safeParse(apiError.responseBody).success) {
239736
+ throw new DeploymentExistsError(request.git_hash, { cause: apiError });
239737
+ }
239738
+ throw apiError;
239718
239739
  }
239719
239740
  const result = CreateDeploymentResponseSchema.safeParse(await response.json());
239720
239741
  if (!result.success) {
@@ -240351,7 +240372,7 @@ async function putPresignedBody(upload, body) {
240351
240372
  // src/core/site/deployment.ts
240352
240373
  var NO_ASSETS = { manifest: {}, filesByHash: new Map };
240353
240374
  async function deployToDeployments(options) {
240354
- const { projectRoot, outputDir, gitHash, concurrency, progress } = options;
240375
+ const { projectRoot, outputDir, gitHash, concurrency, overwrite, progress } = options;
240355
240376
  const worker = await resolveWorkerBuild(projectRoot, progress);
240356
240377
  const assetsDir = worker ? worker.assetsDir : outputDir;
240357
240378
  const assets = assetsDir ? await buildAssetManifest(assetsDir, getAppContext().id) : NO_ASSETS;
@@ -240361,7 +240382,8 @@ async function deployToDeployments(options) {
240361
240382
  const created = await createDeployment({
240362
240383
  git_hash: gitHash,
240363
240384
  config: worker?.config,
240364
- asset_manifest: assets.manifest
240385
+ asset_manifest: assets.manifest,
240386
+ overwrite
240365
240387
  });
240366
240388
  const completionJwt = await uploadDeploymentAssets(created.assetUploads, assets, { concurrency, progress });
240367
240389
  const completion = worker ? { kind: "worker", modules: worker.modules, completionJwt } : await resolveStaticCompletion(assetsDir, assets, created.indexHtmlStaged);
@@ -247064,6 +247086,7 @@ async function shipCommit(projectRoot, outputDir, gitHash, options) {
247064
247086
  projectRoot,
247065
247087
  outputDir,
247066
247088
  gitHash,
247089
+ overwrite: options?.overwrite,
247067
247090
  progress: {
247068
247091
  onWarning: (message) => options?.onSiteProgress?.(message),
247069
247092
  onAssets: ({ totalAssets, newAssets }) => options?.onSiteProgress?.(`Found ${totalAssets} static assets (${newAssets} new)`)
@@ -252184,6 +252207,7 @@ ${summaryLines.join(`
252184
252207
  let actorCompleted = 0;
252185
252208
  const result = await deployAll(projectData, {
252186
252209
  gitHash: options.gitHash,
252210
+ overwrite: options.overwrite,
252187
252211
  onSiteProgress: (message) => {
252188
252212
  log.message(theme.styles.dim(message));
252189
252213
  },
@@ -252225,7 +252249,7 @@ ${summaryLines.join(`
252225
252249
  return { outroMessage: "App deployed successfully" };
252226
252250
  }
252227
252251
  function getDeployCommand3() {
252228
- return new Base44Command("deploy").description("Deploy all project resources (entities, functions, actors, 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)").addOption(new Option2("--git-hash <hash>", "Deploy by the commit the build came from, through the deployments API").argParser(parseGitHash)).action(deployAction);
252252
+ return new Base44Command("deploy").description("Deploy all project resources (entities, functions, actors, 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)").addOption(new Option2("--git-hash <hash>", "Deploy by the commit the build came from, through the deployments API").argParser(parseGitHash)).option("--overwrite", "Replace the build the commit already has (with --git-hash)").action(deployAction);
252229
252253
  }
252230
252254
  async function handleOAuthConnectors(connectorResults, isNonInteractive, options, log) {
252231
252255
  const needsOAuth = filterPendingOAuth(connectorResults);
@@ -252907,6 +252931,7 @@ async function createVersion(artifacts, options = {}) {
252907
252931
  agents: artifacts.agents,
252908
252932
  mcp_config: artifacts.mcpConfig,
252909
252933
  agent_skills: artifacts.agentSkills,
252934
+ ...artifacts.pages ? { pages: artifacts.pages } : {},
252910
252935
  source_commit: options.sourceCommit
252911
252936
  }, "declaring a version")).json(), "declare");
252912
252937
  const declaredFiles = [
@@ -252952,7 +252977,7 @@ async function setEnvironmentVersion(environment, versionId, options = {}) {
252952
252977
  }
252953
252978
  // src/core/version/artifacts.ts
252954
252979
  import { createHash as createHash3 } from "node:crypto";
252955
- import { join as join30, resolve as resolve14 } from "node:path";
252980
+ import { join as join31, resolve as resolve14 } from "node:path";
252956
252981
 
252957
252982
  // src/core/version/actors.ts
252958
252983
  import { dirname as dirname22, relative as relative7, resolve as resolve13 } from "node:path";
@@ -264676,6 +264701,154 @@ function compiledModule(name, result) {
264676
264701
  return result.module;
264677
264702
  }
264678
264703
 
264704
+ // src/core/version/pages.ts
264705
+ import { join as join30 } from "node:path";
264706
+ var ROUTES_DIR = "src/routes";
264707
+ var ROUTE_TREE = "src/routeTree.gen.ts";
264708
+ var ROUTE_EXTENSIONS = [".tsx", ".ts", ".jsx", ".js"];
264709
+ var DOT_SPLIT = /\.(?![^[]*\])/;
264710
+ var BRACKETS = /\[([^\]]*)\]/g;
264711
+ var BRACE_PARAM = /\{(-?)\$([^{}[\]]+)\}(?![^[]*\])/;
264712
+ var COMPANION_SUFFIXES = new Set([
264713
+ "component",
264714
+ "errorComponent",
264715
+ "notFoundComponent",
264716
+ "pendingComponent",
264717
+ "loader"
264718
+ ]);
264719
+ var SERVER_KEY = /\bserver\s*:\s*\{/;
264720
+ var COMPONENT_KEY = /\bcomponent['"]?\s*[:,}(]/;
264721
+
264722
+ class Segment {
264723
+ text;
264724
+ url;
264725
+ leadEscaped;
264726
+ literal;
264727
+ constructor(raw) {
264728
+ this.text = raw.replace(BRACKETS, "$1");
264729
+ this.leadEscaped = raw.startsWith("[");
264730
+ this.literal = raw === this.text;
264731
+ const name = raw.length > 1 && raw.endsWith("_") ? raw.slice(0, -1) : raw;
264732
+ const param = BRACE_PARAM.exec(name);
264733
+ this.url = param ? `:${param[2]}${param[1] ? "?" : ""}` : name.replace(BRACKETS, "$1");
264734
+ }
264735
+ isToken(...tokens) {
264736
+ return this.literal && tokens.includes(this.text);
264737
+ }
264738
+ isPathless() {
264739
+ return !this.leadEscaped && this.text.startsWith("_");
264740
+ }
264741
+ isGroup() {
264742
+ return !this.leadEscaped && this.text.startsWith("(") && this.text.endsWith(")");
264743
+ }
264744
+ }
264745
+ function segmentsOf(relativePath) {
264746
+ const segments = [];
264747
+ for (const name of relativePath.split("/")) {
264748
+ if (name.startsWith("-")) {
264749
+ return null;
264750
+ }
264751
+ for (const raw of name.split(DOT_SPLIT)) {
264752
+ if (!raw) {
264753
+ continue;
264754
+ }
264755
+ const segment = new Segment(raw);
264756
+ if (!segment.text || !segment.leadEscaped && segment.text.startsWith("__")) {
264757
+ return null;
264758
+ }
264759
+ segments.push(segment);
264760
+ }
264761
+ }
264762
+ return segments.length > 0 ? segments : null;
264763
+ }
264764
+ function pageName(parts) {
264765
+ if (parts.length === 0) {
264766
+ return "Home";
264767
+ }
264768
+ return parts.flatMap((part) => part.split(/[^A-Za-z0-9]/)).filter(Boolean).map((piece) => piece.charAt(0).toUpperCase() + piece.slice(1)).join("");
264769
+ }
264770
+ function pageOfRouteFile(relativePath) {
264771
+ const segments = segmentsOf(relativePath);
264772
+ if (segments === null || segments[0].isToken("api")) {
264773
+ return null;
264774
+ }
264775
+ if (segments[segments.length - 1].isToken("lazy")) {
264776
+ segments.pop();
264777
+ }
264778
+ const last = () => segments[segments.length - 1];
264779
+ if (last()?.isToken(...COMPANION_SUFFIXES)) {
264780
+ return null;
264781
+ }
264782
+ let poppedIndex = false;
264783
+ while (last()?.isToken("index", "route")) {
264784
+ poppedIndex ||= last()?.text === "index";
264785
+ segments.pop();
264786
+ }
264787
+ const end = last();
264788
+ if (end && !poppedIndex && (end.isPathless() || end.isGroup())) {
264789
+ return null;
264790
+ }
264791
+ const urlSegments = [];
264792
+ for (const segment of segments) {
264793
+ if (segment.isPathless() || segment.isGroup()) {
264794
+ continue;
264795
+ }
264796
+ let url = segment.url;
264797
+ if (!segment.leadEscaped && url === "$") {
264798
+ return null;
264799
+ }
264800
+ if (!segment.leadEscaped && url.startsWith("$")) {
264801
+ url = `:${url.slice(1)}`;
264802
+ }
264803
+ urlSegments.push(url);
264804
+ }
264805
+ return { path: `/${urlSegments.join("/")}`, name: pageName(urlSegments) };
264806
+ }
264807
+ function isServerOnly(source) {
264808
+ return SERVER_KEY.test(source) && !COMPONENT_KEY.test(source);
264809
+ }
264810
+ function byCodePoint2(a, b) {
264811
+ return a < b ? -1 : a > b ? 1 : 0;
264812
+ }
264813
+ async function collectPages(projectRoot) {
264814
+ if (!await pathExists(join30(projectRoot, ROUTE_TREE))) {
264815
+ return null;
264816
+ }
264817
+ const routesDir = join30(projectRoot, ROUTES_DIR);
264818
+ const files = await pathExists(routesDir) ? await globby("**/*", {
264819
+ cwd: routesDir,
264820
+ onlyFiles: true,
264821
+ followSymbolicLinks: false
264822
+ }) : [];
264823
+ const byPath = new Map;
264824
+ for (const relativeFile of files.sort(byCodePoint2)) {
264825
+ const extension = ROUTE_EXTENSIONS.find((ext) => relativeFile.endsWith(ext));
264826
+ if (!extension || relativeFile.endsWith(".d.ts")) {
264827
+ continue;
264828
+ }
264829
+ const page = pageOfRouteFile(relativeFile.slice(0, -extension.length));
264830
+ if (page === null || byPath.has(page.path)) {
264831
+ continue;
264832
+ }
264833
+ if (isServerOnly(await readTextFile(join30(routesDir, relativeFile)))) {
264834
+ continue;
264835
+ }
264836
+ byPath.set(page.path, {
264837
+ name: page.name,
264838
+ file: `${ROUTES_DIR}/${relativeFile}`
264839
+ });
264840
+ }
264841
+ const taken = new Set;
264842
+ return [...byPath].sort(([a], [b]) => a === "/" ? -1 : b === "/" ? 1 : byCodePoint2(a, b)).map(([path, { name, file }]) => {
264843
+ let unique = name;
264844
+ for (let n = 2;taken.has(unique); n++) {
264845
+ unique = `${name}${n}`;
264846
+ }
264847
+ taken.add(unique);
264848
+ return { path, name: unique, file };
264849
+ });
264850
+ }
264851
+
264679
264852
  // src/core/version/publish.ts
264680
264853
  import { randomUUID as randomUUID4 } from "node:crypto";
264681
264854
  var DEFAULT_ENVIRONMENT = "production";
@@ -264759,12 +264932,12 @@ async function readRawResources(dir) {
264759
264932
  const payloads = {};
264760
264933
  for (const relativePath of files.sort()) {
264761
264934
  const name = relativePath.replace(/\.jsonc?$/, "");
264762
- payloads[name] = await readJsonFile(join30(dir, ...relativePath.split("/")));
264935
+ payloads[name] = await readJsonFile(join31(dir, ...relativePath.split("/")));
264763
264936
  }
264764
264937
  return payloads;
264765
264938
  }
264766
264939
  async function readMcpConfig(configDir) {
264767
- const path = join30(configDir, "mcp", "config.json");
264940
+ const path = join31(configDir, "mcp", "config.json");
264768
264941
  return await pathExists(path) ? await readTextFile(path) : "";
264769
264942
  }
264770
264943
  async function readAgentSkillFiles(dir) {
@@ -264778,30 +264951,32 @@ async function readAgentSkillFiles(dir) {
264778
264951
  });
264779
264952
  const skills = {};
264780
264953
  for (const file of files.sort()) {
264781
- skills[file.replace(/\.md$/, "")] = await readTextFile(join30(dir, file));
264954
+ skills[file.replace(/\.md$/, "")] = await readTextFile(join31(dir, file));
264782
264955
  }
264783
264956
  return skills;
264784
264957
  }
264785
264958
  async function collectResources(configDir, dirs) {
264786
264959
  const [entities, agents, mcpConfig, agentSkills] = await Promise.all([
264787
- readRawResources(join30(configDir, dirs.entitiesDir)),
264788
- readRawResources(join30(configDir, dirs.agentsDir)),
264960
+ readRawResources(join31(configDir, dirs.entitiesDir)),
264961
+ readRawResources(join31(configDir, dirs.agentsDir)),
264789
264962
  readMcpConfig(configDir),
264790
- readAgentSkillFiles(join30(configDir, dirs.agentSkillsDir))
264963
+ readAgentSkillFiles(join31(configDir, dirs.agentSkillsDir))
264791
264964
  ]);
264792
264965
  return { entities, agents, mcpConfig, agentSkills };
264793
264966
  }
264794
264967
  async function collectArtifacts(target) {
264795
264968
  const built = await resolveFullStackBuild(target.root);
264796
264969
  const siteWorker = built ? await describeSiteWorker(built) : null;
264970
+ const pages = await collectPages(target.root);
264797
264971
  return {
264798
264972
  assets: built ? built.assetsDir ? await collectBuildOutput(built.assetsDir) : [] : await collectBuildOutput(target.outputDir, {
264799
264973
  entryFile: ENTRY2
264800
264974
  }),
264801
264975
  ...siteWorker ? { siteWorker } : {},
264802
- backendBundles: await tagStep2("build", () => compileBackendBundles(target.root, join30(target.configDir, target.functionsDir))),
264803
- actors: await tagStep2("build", () => compileActors(join30(target.configDir, target.actorsDir))),
264804
- ...await collectResources(target.configDir, target)
264976
+ backendBundles: await tagStep2("build", () => compileBackendBundles(target.root, join31(target.configDir, target.functionsDir))),
264977
+ actors: await tagStep2("build", () => compileActors(join31(target.configDir, target.actorsDir))),
264978
+ ...await collectResources(target.configDir, target),
264979
+ ...pages ? { pages } : {}
264805
264980
  };
264806
264981
  }
264807
264982
  // src/core/version/gate.ts
@@ -265773,7 +265948,7 @@ async function prepareSessionImages(content) {
265773
265948
  import { createReadStream as createReadStream3 } from "node:fs";
265774
265949
  import { realpath, rm as rm3, stat as stat6 } from "node:fs/promises";
265775
265950
  import { homedir as homedir4 } from "node:os";
265776
- import { dirname as dirname23, join as join31 } from "node:path";
265951
+ import { dirname as dirname23, join as join32 } from "node:path";
265777
265952
  import { createInterface as createInterface2 } from "node:readline";
265778
265953
 
265779
265954
  // ../../node_modules/tmp-promise/index.js
@@ -265786,8 +265961,8 @@ var $dir = async (options) => dirWithOptions(options);
265786
265961
  var $tmpName = promisify12(tmp.tmpName);
265787
265962
 
265788
265963
  // src/core/session-import/sessions.ts
265789
- var claudeDir = () => process.env.CLAUDE_CONFIG_DIR || join31(homedir4(), ".claude");
265790
- var codexDir = () => process.env.CODEX_HOME || join31(homedir4(), ".codex");
265964
+ var claudeDir = () => process.env.CLAUDE_CONFIG_DIR || join32(homedir4(), ".claude");
265965
+ var codexDir = () => process.env.CODEX_HOME || join32(homedir4(), ".codex");
265791
265966
  async function scanLines(path, pick, maxLines = Number.POSITIVE_INFINITY) {
265792
265967
  const lines = createInterface2({ input: createReadStream3(path) });
265793
265968
  let count = 0;
@@ -265943,7 +266118,7 @@ async function teleportSession(sessionId, cwd) {
265943
266118
  throw new InvalidInputError("Run this from a folder with the app's GitHub repository, so the session can be checked out.");
265944
266119
  }
265945
266120
  const tmp = await $dir({ unsafeCleanup: true });
265946
- const repo = join31(tmp.path, "repo");
266121
+ const repo = join32(tmp.path, "repo");
265947
266122
  let projectFolder;
265948
266123
  try {
265949
266124
  await execa("git", ["clone", "--quiet", origin.stdout, repo]);
@@ -266142,6 +266317,7 @@ async function deployToDeploymentsApi(ctx, project, options) {
266142
266317
  outputDir,
266143
266318
  gitHash,
266144
266319
  concurrency: options.concurrency,
266320
+ overwrite: options.overwrite,
266145
266321
  progress: {
266146
266322
  onWarning: (message) => {
266147
266323
  warnings.push(message);
@@ -266193,7 +266369,7 @@ function siteOutputDir(project) {
266193
266369
  return resolve17(project.root, outputDirectory);
266194
266370
  }
266195
266371
  function getSiteDeployCommand() {
266196
- return new Base44Command("deploy").description("Deploy built site files to Base44 hosting").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)").option("--publish", "Serve this build in production once it is deployed").addOption(new Option2("--git-hash <hash>", "Deploy by the commit the build came from, through the deployments API").argParser(parseGitHash)).addOption(new Option2("--concurrency <n>", "Parallel asset uploads").default(DEFAULT_UPLOAD_CONCURRENCY).argParser(parseConcurrency)).action(deployAction2);
266372
+ return new Base44Command("deploy").description("Deploy built site files to Base44 hosting").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)").option("--publish", "Serve this build in production once it is deployed").option("--overwrite", "Replace the build the commit already has (with --git-hash)").addOption(new Option2("--git-hash <hash>", "Deploy by the commit the build came from, through the deployments API").argParser(parseGitHash)).addOption(new Option2("--concurrency <n>", "Parallel asset uploads").default(DEFAULT_UPLOAD_CONCURRENCY).argParser(parseConcurrency)).action(deployAction2);
266197
266373
  }
266198
266374
  function parseConcurrency(value) {
266199
266375
  const parsed = Number(value);
@@ -266531,10 +266707,10 @@ function toPascalCase(name) {
266531
266707
  return name.split(/[-_\s]+/).map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join("");
266532
266708
  }
266533
266709
  // src/core/types/update-project.ts
266534
- import { join as join35 } from "node:path";
266710
+ import { join as join36 } from "node:path";
266535
266711
  var TYPES_INCLUDE_PATH = `${PROJECT_SUBDIR}/${TYPES_OUTPUT_SUBDIR}/*.d.ts`;
266536
266712
  async function updateProjectConfig(projectRoot) {
266537
- const tsconfigPath = join35(projectRoot, "tsconfig.json");
266713
+ const tsconfigPath = join36(projectRoot, "tsconfig.json");
266538
266714
  if (!await pathExists(tsconfigPath)) {
266539
266715
  return false;
266540
266716
  }
@@ -267015,7 +267191,7 @@ function getWorkspaceCommand() {
267015
267191
  // src/cli/dev/dev-server/main.ts
267016
267192
  var import_cors = __toESM(require_lib4(), 1);
267017
267193
  var import_express6 = __toESM(require_express(), 1);
267018
- import { dirname as dirname29, join as join40 } from "node:path";
267194
+ import { dirname as dirname29, join as join41 } from "node:path";
267019
267195
 
267020
267196
  // ../../node_modules/get-port/index.js
267021
267197
  import net from "node:net";
@@ -267136,7 +267312,7 @@ var import_http_proxy_middleware2 = __toESM(require_dist2(), 1);
267136
267312
 
267137
267313
  // src/cli/dev/dev-server/function-manager.ts
267138
267314
  import { spawn as spawn3 } from "node:child_process";
267139
- import { dirname as dirname26, join as join36 } from "node:path";
267315
+ import { dirname as dirname26, join as join37 } from "node:path";
267140
267316
  import { pathToFileURL as pathToFileURL6 } from "node:url";
267141
267317
 
267142
267318
  // src/cli/dev/dev-server/base-function-manager.ts
@@ -267241,7 +267417,7 @@ class FunctionManager extends BaseFunctionManager {
267241
267417
  }
267242
267418
  spawnFunction(func, port) {
267243
267419
  this.logger.log(`Spawning function "${func.name}" on port ${port}`);
267244
- const importMapPath = join36(dirname26(this.wrapperPath), "import-map.json");
267420
+ const importMapPath = join37(dirname26(this.wrapperPath), "import-map.json");
267245
267421
  const process2 = spawn3("deno", ["run", "--allow-all", "--import-map", importMapPath, this.wrapperPath], {
267246
267422
  env: {
267247
267423
  ...globalThis.process.env,
@@ -267315,7 +267491,7 @@ class FunctionManager extends BaseFunctionManager {
267315
267491
  import { mkdirSync as mkdirSync2, writeFileSync as writeFileSync2 } from "node:fs";
267316
267492
  import { isBuiltin as isBuiltin3 } from "node:module";
267317
267493
  import { homedir as homedir5 } from "node:os";
267318
- import { join as join37 } from "node:path";
267494
+ import { join as join38 } from "node:path";
267319
267495
  import { pathToFileURL as pathToFileURL7 } from "node:url";
267320
267496
  var depsPromise;
267321
267497
  function loadDeps() {
@@ -267436,9 +267612,9 @@ export default {
267436
267612
  };
267437
267613
  `;
267438
267614
  function ensureBundlerConfig() {
267439
- const dir = join37(homedir5(), ".base44", "function-bundler");
267615
+ const dir = join38(homedir5(), ".base44", "function-bundler");
267440
267616
  mkdirSync2(dir, { recursive: true });
267441
- const configPath = join37(dir, "deno.json");
267617
+ const configPath = join38(dir, "deno.json");
267442
267618
  writeFileSync2(configPath, `${JSON.stringify({ nodeModulesDir: "auto" }, null, 2)}
267443
267619
  `);
267444
267620
  return configPath;
@@ -270767,8 +270943,8 @@ async function createDevServer(options) {
270767
270943
  broadcastEntityEvent(io, appId, entityName, event);
270768
270944
  };
270769
270945
  const base44ConfigWatcher = new WatchBase44({
270770
- functions: join40(dirname29(project.configPath), project.functionsDir),
270771
- entities: join40(dirname29(project.configPath), project.entitiesDir)
270946
+ functions: join41(dirname29(project.configPath), project.functionsDir),
270947
+ entities: join41(dirname29(project.configPath), project.entitiesDir)
270772
270948
  }, devLogger);
270773
270949
  base44ConfigWatcher.on("change", async (name) => {
270774
270950
  try {
@@ -270971,7 +271147,7 @@ function readExecEnvTarget(env = process.env) {
270971
271147
  // src/core/exec/run-script.ts
270972
271148
  import { spawn as spawn4 } from "node:child_process";
270973
271149
  import { readFileSync as readFileSync4, writeFileSync as writeFileSync3 } from "node:fs";
270974
- import { join as join41 } from "node:path";
271150
+ import { join as join42 } from "node:path";
270975
271151
  var SDK_SPECIFIER = '"npm:@base44/sdk"';
270976
271152
  function wrapperSource(sdkVersion) {
270977
271153
  const source = readFileSync4(getExecWrapperPath(), "utf-8");
@@ -271018,7 +271194,7 @@ async function runScript(options) {
271018
271194
  writeFileSync3(tempWrapper.path, wrapperSource(sdkVersion), "utf-8");
271019
271195
  const configDir = await $dir({ unsafeCleanup: true });
271020
271196
  cleanupFns.push(configDir.cleanup);
271021
- const configPath = join41(configDir.path, "deno.json");
271197
+ const configPath = join42(configDir.path, "deno.json");
271022
271198
  writeFileSync3(configPath, JSON.stringify(DENO_CONFIG), "utf-8");
271023
271199
  try {
271024
271200
  const exitCode = await new Promise((resolvePromise) => {
@@ -275310,7 +275486,7 @@ function addCommandInfoToErrorReporter(program, errorReporter) {
275310
275486
  // src/cli/index.ts
275311
275487
  var __dirname4 = dirname31(fileURLToPath7(import.meta.url));
275312
275488
  async function runCLI(options) {
275313
- ensureNpmAssets(join42(__dirname4, "../assets"));
275489
+ ensureNpmAssets(join43(__dirname4, "../assets"));
275314
275490
  const errorReporter = new ErrorReporter;
275315
275491
  errorReporter.registerProcessErrorHandlers();
275316
275492
  const jsonMode = process.argv.includes("--json");
@@ -275349,4 +275525,4 @@ export {
275349
275525
  runCLI
275350
275526
  };
275351
275527
 
275352
- //# debugId=9D8063E65A56942D64756E2164756E21
275528
+ //# debugId=FB9FF0E01E1A0F2F64756E2164756E21