@base44-preview/cli 0.3.5-pr.703.0e7d6f3 → 0.3.5-pr.704.9ebdc72

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/README.md CHANGED
@@ -83,6 +83,7 @@ These work with any command:
83
83
  | Flag | Description |
84
84
  | ---- | ----------- |
85
85
  | `--app-id <id>` | Target a Base44 app explicitly (overrides the linked project and `BASE44_APP_ID`) |
86
+ | `--hostname <host>` | Send every request to this Base44 host instead of `app.base44.com`, e.g. `base44 login --hostname acme.base44.com` (overrides `BASE44_API_URL`; a full URL also works). Pass it on every command, or set `BASE44_API_URL` once |
86
87
  | `--json` | Emit machine-readable JSON to stdout and run in silent mode |
87
88
 
88
89
  ### `--json`
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" ? join33(replacement, currentDoc.split(`
31563
+ return mapDoc(doc, (currentDoc) => typeof currentDoc === "string" ? join32(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 join33(separator, docs) {
31643
+ function join32(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: join33,
32354
+ join: join32,
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, 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) => {
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) => {
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: join35,
135222
+ join: join34,
135223
135223
  line: line22,
135224
135224
  lineSuffix: lineSuffix2
135225
135225
  } = builders);
@@ -228045,14 +228045,6 @@ function object(shape, params) {
228045
228045
  };
228046
228046
  return new ZodObject(def);
228047
228047
  }
228048
- function strictObject(shape, params) {
228049
- return new ZodObject({
228050
- type: "object",
228051
- shape,
228052
- catchall: never(),
228053
- ...normalizeParams(params)
228054
- });
228055
- }
228056
228048
  function looseObject(shape, params) {
228057
228049
  return new ZodObject({
228058
228050
  type: "object",
@@ -228894,10 +228886,23 @@ function normalizeBase44Env() {
228894
228886
  }
228895
228887
 
228896
228888
  // src/cli/bootstrap-env.ts
228889
+ function applyHostnameFlag(argv) {
228890
+ const i = argv.findIndex((arg) => arg === "--hostname" || arg.startsWith("--hostname="));
228891
+ if (i === -1) {
228892
+ return;
228893
+ }
228894
+ const value = argv[i].includes("=") ? argv[i].slice("--hostname=".length) : argv[i + 1];
228895
+ if (!value || value.startsWith("-")) {
228896
+ return;
228897
+ }
228898
+ const url = value.includes("://") ? value : `https://${value}`;
228899
+ process.env.BASE44_API_URL = url.replace(/\/+$/, "");
228900
+ }
228901
+ applyHostnameFlag(process.argv);
228897
228902
  loadProjectEnvFiles();
228898
228903
 
228899
228904
  // src/cli/index.ts
228900
- import { dirname as dirname31, join as join43 } from "node:path";
228905
+ import { dirname as dirname31, join as join42 } from "node:path";
228901
228906
  import { fileURLToPath as fileURLToPath7 } from "node:url";
228902
228907
 
228903
228908
  // ../../node_modules/@clack/core/dist/index.mjs
@@ -252877,33 +252882,6 @@ function declaredActor({
252877
252882
  static_egress: staticEgress
252878
252883
  };
252879
252884
  }
252880
- function declaredRoutes({
252881
- pages,
252882
- home,
252883
- entityPages,
252884
- entityFreePaths
252885
- }) {
252886
- return {
252887
- pages: pages.map(({ path, name, file, requiresAuth, binding, segmentValues }) => ({
252888
- path,
252889
- name,
252890
- file,
252891
- ...requiresAuth ? { requires_auth: true } : {},
252892
- ...binding ? {
252893
- binding: {
252894
- entity: binding.entity,
252895
- param: binding.param,
252896
- field: binding.field,
252897
- ...binding.extraParams ? { extra_params: binding.extraParams } : {}
252898
- }
252899
- } : {},
252900
- ...segmentValues ? { segment_values: segmentValues } : {}
252901
- })),
252902
- home,
252903
- ...entityPages ? { entity_pages: entityPages } : {},
252904
- ...entityFreePaths ? { entity_free_paths: entityFreePaths } : {}
252905
- };
252906
- }
252907
252885
  function actorUploadPath(actor) {
252908
252886
  return `actors/${actor.name}.mjs`;
252909
252887
  }
@@ -252966,7 +252944,6 @@ async function createVersion(artifacts, options = {}) {
252966
252944
  agents: artifacts.agents,
252967
252945
  mcp_config: artifacts.mcpConfig,
252968
252946
  agent_skills: artifacts.agentSkills,
252969
- ...artifacts.routes ? { routes: declaredRoutes(artifacts.routes) } : {},
252970
252947
  source_commit: options.sourceCommit
252971
252948
  }, "declaring a version")).json(), "declare");
252972
252949
  const declaredFiles = [
@@ -253012,7 +252989,7 @@ async function setEnvironmentVersion(environment, versionId, options = {}) {
253012
252989
  }
253013
252990
  // src/core/version/artifacts.ts
253014
252991
  import { createHash as createHash3 } from "node:crypto";
253015
- import { join as join31, resolve as resolve14 } from "node:path";
252992
+ import { join as join30, resolve as resolve14 } from "node:path";
253016
252993
 
253017
252994
  // src/core/version/actors.ts
253018
252995
  import { dirname as dirname22, relative as relative7, resolve as resolve13 } from "node:path";
@@ -264759,205 +264736,6 @@ async function publishVersion(artifacts, options = {}) {
264759
264736
  };
264760
264737
  }
264761
264738
 
264762
- // src/core/version/routes.ts
264763
- import { join as join30 } from "node:path";
264764
- var RoutesFileSchema = strictObject({
264765
- pages: array(strictObject({
264766
- path: string2().startsWith("/"),
264767
- name: string2().min(1),
264768
- file: string2().min(1),
264769
- requires_auth: boolean2().optional(),
264770
- binding: strictObject({
264771
- entity: string2().min(1),
264772
- param: string2().min(1),
264773
- field: string2().min(1),
264774
- extra_params: record(string2(), string2()).optional()
264775
- }).optional(),
264776
- segment_values: record(string2(), array(string2())).optional()
264777
- })),
264778
- home: string2().nullable().optional(),
264779
- entity_pages: record(string2(), array(string2())).optional(),
264780
- entity_free_paths: array(string2()).optional()
264781
- }).transform((data) => ({
264782
- pages: data.pages.map((page) => ({
264783
- path: page.path,
264784
- name: page.name,
264785
- file: page.file,
264786
- ...page.requires_auth ? { requiresAuth: true } : {},
264787
- ...page.binding ? {
264788
- binding: {
264789
- entity: page.binding.entity,
264790
- param: page.binding.param,
264791
- field: page.binding.field,
264792
- ...page.binding.extra_params ? { extraParams: page.binding.extra_params } : {}
264793
- }
264794
- } : {},
264795
- ...page.segment_values ? { segmentValues: page.segment_values } : {}
264796
- })),
264797
- home: data.home ?? null,
264798
- ...data.entity_pages ? { entityPages: data.entity_pages } : {},
264799
- ...data.entity_free_paths ? { entityFreePaths: data.entity_free_paths } : {}
264800
- }));
264801
- async function readRoutesFile(path) {
264802
- const parsed = RoutesFileSchema.safeParse(await readJsonFile(path));
264803
- if (!parsed.success) {
264804
- throw new SchemaValidationError("Invalid routes file", parsed.error, path);
264805
- }
264806
- return parsed.data;
264807
- }
264808
- async function collectRoutes(projectRoot, routesFile) {
264809
- if (routesFile) {
264810
- return await readRoutesFile(routesFile);
264811
- }
264812
- const pages = await collectPages(projectRoot);
264813
- return pages ? { pages, home: pages[0]?.name ?? null } : null;
264814
- }
264815
- var ROUTES_DIR = "src/routes";
264816
- var ROUTE_TREE = "src/routeTree.gen.ts";
264817
- var ROUTE_EXTENSIONS = [".tsx", ".ts", ".jsx", ".js"];
264818
- var DOT_SPLIT = /\.(?![^[]*\])/;
264819
- var BRACKETS = /\[([^\]]*)\]/g;
264820
- var BRACE_PARAM = /\{(-?)\$([^{}[\]]+)\}(?![^[]*\])/;
264821
- var COMPANION_SUFFIXES = new Set([
264822
- "component",
264823
- "errorComponent",
264824
- "notFoundComponent",
264825
- "pendingComponent",
264826
- "loader"
264827
- ]);
264828
- var SERVER_KEY = /\bserver\s*:\s*\{/;
264829
- var COMPONENT_KEY = /\bcomponent['"]?\s*[:,}(]/;
264830
-
264831
- class Segment {
264832
- text;
264833
- url;
264834
- leadEscaped;
264835
- literal;
264836
- constructor(raw) {
264837
- this.text = raw.replace(BRACKETS, "$1");
264838
- this.leadEscaped = raw.startsWith("[");
264839
- this.literal = raw === this.text;
264840
- const name = raw.length > 1 && raw.endsWith("_") ? raw.slice(0, -1) : raw;
264841
- const param = BRACE_PARAM.exec(name);
264842
- this.url = param ? `:${param[2]}${param[1] ? "?" : ""}` : name.replace(BRACKETS, "$1");
264843
- }
264844
- isToken(...tokens) {
264845
- return this.literal && tokens.includes(this.text);
264846
- }
264847
- isPathless() {
264848
- return !this.leadEscaped && this.text.startsWith("_");
264849
- }
264850
- isGroup() {
264851
- return !this.leadEscaped && this.text.startsWith("(") && this.text.endsWith(")");
264852
- }
264853
- }
264854
- function segmentsOf(relativePath) {
264855
- const segments = [];
264856
- for (const name of relativePath.split("/")) {
264857
- if (name.startsWith("-")) {
264858
- return null;
264859
- }
264860
- for (const raw of name.split(DOT_SPLIT)) {
264861
- if (!raw) {
264862
- continue;
264863
- }
264864
- const segment = new Segment(raw);
264865
- if (!segment.text || !segment.leadEscaped && segment.text.startsWith("__")) {
264866
- return null;
264867
- }
264868
- segments.push(segment);
264869
- }
264870
- }
264871
- return segments.length > 0 ? segments : null;
264872
- }
264873
- function pageName(parts) {
264874
- if (parts.length === 0) {
264875
- return "Home";
264876
- }
264877
- return parts.flatMap((part) => part.split(/[^A-Za-z0-9]/)).filter(Boolean).map((piece) => piece.charAt(0).toUpperCase() + piece.slice(1)).join("");
264878
- }
264879
- function pageOfRouteFile(relativePath) {
264880
- const segments = segmentsOf(relativePath);
264881
- if (segments === null || segments[0].isToken("api")) {
264882
- return null;
264883
- }
264884
- if (segments[segments.length - 1].isToken("lazy")) {
264885
- segments.pop();
264886
- }
264887
- const last = () => segments[segments.length - 1];
264888
- if (last()?.isToken(...COMPANION_SUFFIXES)) {
264889
- return null;
264890
- }
264891
- let poppedIndex = false;
264892
- while (last()?.isToken("index", "route")) {
264893
- poppedIndex ||= last()?.text === "index";
264894
- segments.pop();
264895
- }
264896
- const end = last();
264897
- if (end && !poppedIndex && (end.isPathless() || end.isGroup())) {
264898
- return null;
264899
- }
264900
- const urlSegments = [];
264901
- for (const segment of segments) {
264902
- if (segment.isPathless() || segment.isGroup()) {
264903
- continue;
264904
- }
264905
- let url = segment.url;
264906
- if (!segment.leadEscaped && url === "$") {
264907
- return null;
264908
- }
264909
- if (!segment.leadEscaped && url.startsWith("$")) {
264910
- url = `:${url.slice(1)}`;
264911
- }
264912
- urlSegments.push(url);
264913
- }
264914
- return { path: `/${urlSegments.join("/")}`, name: pageName(urlSegments) };
264915
- }
264916
- function isServerOnly(source) {
264917
- return SERVER_KEY.test(source) && !COMPONENT_KEY.test(source);
264918
- }
264919
- function byCodePoint2(a, b) {
264920
- return a < b ? -1 : a > b ? 1 : 0;
264921
- }
264922
- async function collectPages(projectRoot) {
264923
- if (!await pathExists(join30(projectRoot, ROUTE_TREE))) {
264924
- return null;
264925
- }
264926
- const routesDir = join30(projectRoot, ROUTES_DIR);
264927
- const files = await pathExists(routesDir) ? await globby("**/*", {
264928
- cwd: routesDir,
264929
- onlyFiles: true,
264930
- followSymbolicLinks: false
264931
- }) : [];
264932
- const byPath = new Map;
264933
- for (const relativeFile of files.sort(byCodePoint2)) {
264934
- const extension = ROUTE_EXTENSIONS.find((ext) => relativeFile.endsWith(ext));
264935
- if (!extension || relativeFile.endsWith(".d.ts")) {
264936
- continue;
264937
- }
264938
- const page = pageOfRouteFile(relativeFile.slice(0, -extension.length));
264939
- if (page === null || byPath.has(page.path)) {
264940
- continue;
264941
- }
264942
- if (isServerOnly(await readTextFile(join30(routesDir, relativeFile)))) {
264943
- continue;
264944
- }
264945
- byPath.set(page.path, {
264946
- name: page.name,
264947
- file: `${ROUTES_DIR}/${relativeFile}`
264948
- });
264949
- }
264950
- const taken = new Set;
264951
- return [...byPath].sort(([a], [b]) => a === "/" ? -1 : b === "/" ? 1 : byCodePoint2(a, b)).map(([path, { name, file }]) => {
264952
- let unique = name;
264953
- for (let n = 2;taken.has(unique); n++) {
264954
- unique = `${name}${n}`;
264955
- }
264956
- taken.add(unique);
264957
- return { path, name: unique, file };
264958
- });
264959
- }
264960
-
264961
264739
  // src/core/version/artifacts.ts
264962
264740
  var MAX_FILE_COUNT = 50000;
264963
264741
  var HASH_CONCURRENCY = 32;
@@ -265018,12 +264796,12 @@ async function readRawResources(dir) {
265018
264796
  const payloads = {};
265019
264797
  for (const relativePath of files.sort()) {
265020
264798
  const name = relativePath.replace(/\.jsonc?$/, "");
265021
- payloads[name] = await readJsonFile(join31(dir, ...relativePath.split("/")));
264799
+ payloads[name] = await readJsonFile(join30(dir, ...relativePath.split("/")));
265022
264800
  }
265023
264801
  return payloads;
265024
264802
  }
265025
264803
  async function readMcpConfig(configDir) {
265026
- const path = join31(configDir, "mcp", "config.json");
264804
+ const path = join30(configDir, "mcp", "config.json");
265027
264805
  return await pathExists(path) ? await readTextFile(path) : "";
265028
264806
  }
265029
264807
  async function readAgentSkillFiles(dir) {
@@ -265037,32 +264815,30 @@ async function readAgentSkillFiles(dir) {
265037
264815
  });
265038
264816
  const skills = {};
265039
264817
  for (const file of files.sort()) {
265040
- skills[file.replace(/\.md$/, "")] = await readTextFile(join31(dir, file));
264818
+ skills[file.replace(/\.md$/, "")] = await readTextFile(join30(dir, file));
265041
264819
  }
265042
264820
  return skills;
265043
264821
  }
265044
264822
  async function collectResources(configDir, dirs) {
265045
264823
  const [entities, agents, mcpConfig, agentSkills] = await Promise.all([
265046
- readRawResources(join31(configDir, dirs.entitiesDir)),
265047
- readRawResources(join31(configDir, dirs.agentsDir)),
264824
+ readRawResources(join30(configDir, dirs.entitiesDir)),
264825
+ readRawResources(join30(configDir, dirs.agentsDir)),
265048
264826
  readMcpConfig(configDir),
265049
- readAgentSkillFiles(join31(configDir, dirs.agentSkillsDir))
264827
+ readAgentSkillFiles(join30(configDir, dirs.agentSkillsDir))
265050
264828
  ]);
265051
264829
  return { entities, agents, mcpConfig, agentSkills };
265052
264830
  }
265053
- async function collectArtifacts(target, options = {}) {
264831
+ async function collectArtifacts(target) {
265054
264832
  const built = await resolveFullStackBuild(target.root);
265055
264833
  const siteWorker = built ? await describeSiteWorker(built) : null;
265056
- const routes = await collectRoutes(target.root, options.routesFile);
265057
264834
  return {
265058
264835
  assets: built ? built.assetsDir ? await collectBuildOutput(built.assetsDir) : [] : await collectBuildOutput(target.outputDir, {
265059
264836
  entryFile: ENTRY2
265060
264837
  }),
265061
264838
  ...siteWorker ? { siteWorker } : {},
265062
- backendBundles: await tagStep2("build", () => compileBackendBundles(target.root, join31(target.configDir, target.functionsDir))),
265063
- actors: await tagStep2("build", () => compileActors(join31(target.configDir, target.actorsDir))),
265064
- ...await collectResources(target.configDir, target),
265065
- ...routes ? { routes } : {}
264839
+ backendBundles: await tagStep2("build", () => compileBackendBundles(target.root, join30(target.configDir, target.functionsDir))),
264840
+ actors: await tagStep2("build", () => compileActors(join30(target.configDir, target.actorsDir))),
264841
+ ...await collectResources(target.configDir, target)
265066
264842
  };
265067
264843
  }
265068
264844
  // src/core/version/gate.ts
@@ -265081,9 +264857,6 @@ function targetOption() {
265081
264857
  function gitHashOption() {
265082
264858
  return new Option2("--git-hash <hash>", "Commit the build came from (defaults to the checkout's HEAD)").argParser(parseGitHash);
265083
264859
  }
265084
- function routesFileOption() {
265085
- return new Option2("--routes-file <path>", "The app's routes as JSON, instead of reading them from its route files");
265086
- }
265087
264860
  function concurrencyOption() {
265088
264861
  return new Option2("--concurrency <n>", "Parallel file uploads").default(DEFAULT_VERSION_UPLOAD_CONCURRENCY).argParser((value) => {
265089
264862
  const parsed = Number(value);
@@ -265108,7 +264881,7 @@ async function publishAction(ctx, options) {
265108
264881
  }
265109
264882
  const gitHash = await resolveProvenanceCommit(target.root, options.gitHash);
265110
264883
  const result = await runTask("Publishing...", async (updateMessage) => {
265111
- const artifacts = await tagStep2("create_version", () => collectArtifacts(target, { routesFile: options.routesFile }));
264884
+ const artifacts = await tagStep2("create_version", () => collectArtifacts(target));
265112
264885
  return await publishVersion(artifacts, {
265113
264886
  sourceCommit: gitHash,
265114
264887
  target: options.target,
@@ -265129,7 +264902,7 @@ async function publishAction(ctx, options) {
265129
264902
  };
265130
264903
  }
265131
264904
  function getPublishCommand() {
265132
- return new Base44Command("publish").description("Build the app, record it as a version, and serve that version").option("--no-build", "Publish the existing build output without rebuilding").addOption(outputDirOption()).addOption(targetOption()).addOption(gitHashOption()).addOption(concurrencyOption()).addOption(routesFileOption()).action(publishAction);
264905
+ return new Base44Command("publish").description("Build the app, record it as a version, and serve that version").option("--no-build", "Publish the existing build output without rebuilding").addOption(outputDirOption()).addOption(targetOption()).addOption(gitHashOption()).addOption(concurrencyOption()).action(publishAction);
265133
264906
  }
265134
264907
 
265135
264908
  // src/core/resources/sandbox/schema.ts
@@ -266037,7 +265810,7 @@ async function prepareSessionImages(content) {
266037
265810
  import { createReadStream as createReadStream3 } from "node:fs";
266038
265811
  import { realpath, rm as rm3, stat as stat6 } from "node:fs/promises";
266039
265812
  import { homedir as homedir4 } from "node:os";
266040
- import { dirname as dirname23, join as join32 } from "node:path";
265813
+ import { dirname as dirname23, join as join31 } from "node:path";
266041
265814
  import { createInterface as createInterface2 } from "node:readline";
266042
265815
 
266043
265816
  // ../../node_modules/tmp-promise/index.js
@@ -266050,8 +265823,8 @@ var $dir = async (options) => dirWithOptions(options);
266050
265823
  var $tmpName = promisify12(tmp.tmpName);
266051
265824
 
266052
265825
  // src/core/session-import/sessions.ts
266053
- var claudeDir = () => process.env.CLAUDE_CONFIG_DIR || join32(homedir4(), ".claude");
266054
- var codexDir = () => process.env.CODEX_HOME || join32(homedir4(), ".codex");
265826
+ var claudeDir = () => process.env.CLAUDE_CONFIG_DIR || join31(homedir4(), ".claude");
265827
+ var codexDir = () => process.env.CODEX_HOME || join31(homedir4(), ".codex");
266055
265828
  async function scanLines(path, pick, maxLines = Number.POSITIVE_INFINITY) {
266056
265829
  const lines = createInterface2({ input: createReadStream3(path) });
266057
265830
  let count = 0;
@@ -266207,7 +265980,7 @@ async function teleportSession(sessionId, cwd) {
266207
265980
  throw new InvalidInputError("Run this from a folder with the app's GitHub repository, so the session can be checked out.");
266208
265981
  }
266209
265982
  const tmp = await $dir({ unsafeCleanup: true });
266210
- const repo = join32(tmp.path, "repo");
265983
+ const repo = join31(tmp.path, "repo");
266211
265984
  let projectFolder;
266212
265985
  try {
266213
265986
  await execa("git", ["clone", "--quiet", origin.stdout, repo]);
@@ -266796,10 +266569,10 @@ function toPascalCase(name) {
266796
266569
  return name.split(/[-_\s]+/).map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join("");
266797
266570
  }
266798
266571
  // src/core/types/update-project.ts
266799
- import { join as join36 } from "node:path";
266572
+ import { join as join35 } from "node:path";
266800
266573
  var TYPES_INCLUDE_PATH = `${PROJECT_SUBDIR}/${TYPES_OUTPUT_SUBDIR}/*.d.ts`;
266801
266574
  async function updateProjectConfig(projectRoot) {
266802
- const tsconfigPath = join36(projectRoot, "tsconfig.json");
266575
+ const tsconfigPath = join35(projectRoot, "tsconfig.json");
266803
266576
  if (!await pathExists(tsconfigPath)) {
266804
266577
  return false;
266805
266578
  }
@@ -266855,7 +266628,7 @@ async function createAction2(ctx, options) {
266855
266628
  outputDir: options.outputDir
266856
266629
  });
266857
266630
  const gitHash = await resolveProvenanceCommit(target.root, options.gitHash);
266858
- const version = await runTask("Creating version...", async (updateMessage) => await createVersion(await collectArtifacts(target, { routesFile: options.routesFile }), {
266631
+ const version = await runTask("Creating version...", async (updateMessage) => await createVersion(await collectArtifacts(target), {
266859
266632
  sourceCommit: gitHash,
266860
266633
  concurrency: options.concurrency,
266861
266634
  progress: {
@@ -266873,7 +266646,7 @@ async function createAction2(ctx, options) {
266873
266646
  };
266874
266647
  }
266875
266648
  function getVersionCreateCommand() {
266876
- return new Base44Command("create").description("Record the built output as a version, without deploying it").addOption(outputDirOption()).addOption(gitHashOption()).addOption(concurrencyOption()).addOption(routesFileOption()).action(createAction2);
266649
+ return new Base44Command("create").description("Record the built output as a version, without deploying it").addOption(outputDirOption()).addOption(gitHashOption()).addOption(concurrencyOption()).action(createAction2);
266877
266650
  }
266878
266651
 
266879
266652
  // src/cli/commands/versions/deploy.ts
@@ -267280,7 +267053,7 @@ function getWorkspaceCommand() {
267280
267053
  // src/cli/dev/dev-server/main.ts
267281
267054
  var import_cors = __toESM(require_lib4(), 1);
267282
267055
  var import_express6 = __toESM(require_express(), 1);
267283
- import { dirname as dirname29, join as join41 } from "node:path";
267056
+ import { dirname as dirname29, join as join40 } from "node:path";
267284
267057
 
267285
267058
  // ../../node_modules/get-port/index.js
267286
267059
  import net from "node:net";
@@ -267401,7 +267174,7 @@ var import_http_proxy_middleware2 = __toESM(require_dist2(), 1);
267401
267174
 
267402
267175
  // src/cli/dev/dev-server/function-manager.ts
267403
267176
  import { spawn as spawn3 } from "node:child_process";
267404
- import { dirname as dirname26, join as join37 } from "node:path";
267177
+ import { dirname as dirname26, join as join36 } from "node:path";
267405
267178
  import { pathToFileURL as pathToFileURL6 } from "node:url";
267406
267179
 
267407
267180
  // src/cli/dev/dev-server/base-function-manager.ts
@@ -267506,7 +267279,7 @@ class FunctionManager extends BaseFunctionManager {
267506
267279
  }
267507
267280
  spawnFunction(func, port) {
267508
267281
  this.logger.log(`Spawning function "${func.name}" on port ${port}`);
267509
- const importMapPath = join37(dirname26(this.wrapperPath), "import-map.json");
267282
+ const importMapPath = join36(dirname26(this.wrapperPath), "import-map.json");
267510
267283
  const process2 = spawn3("deno", ["run", "--allow-all", "--import-map", importMapPath, this.wrapperPath], {
267511
267284
  env: {
267512
267285
  ...globalThis.process.env,
@@ -267580,7 +267353,7 @@ class FunctionManager extends BaseFunctionManager {
267580
267353
  import { mkdirSync as mkdirSync2, writeFileSync as writeFileSync2 } from "node:fs";
267581
267354
  import { isBuiltin as isBuiltin3 } from "node:module";
267582
267355
  import { homedir as homedir5 } from "node:os";
267583
- import { join as join38 } from "node:path";
267356
+ import { join as join37 } from "node:path";
267584
267357
  import { pathToFileURL as pathToFileURL7 } from "node:url";
267585
267358
  var depsPromise;
267586
267359
  function loadDeps() {
@@ -267701,9 +267474,9 @@ export default {
267701
267474
  };
267702
267475
  `;
267703
267476
  function ensureBundlerConfig() {
267704
- const dir = join38(homedir5(), ".base44", "function-bundler");
267477
+ const dir = join37(homedir5(), ".base44", "function-bundler");
267705
267478
  mkdirSync2(dir, { recursive: true });
267706
- const configPath = join38(dir, "deno.json");
267479
+ const configPath = join37(dir, "deno.json");
267707
267480
  writeFileSync2(configPath, `${JSON.stringify({ nodeModulesDir: "auto" }, null, 2)}
267708
267481
  `);
267709
267482
  return configPath;
@@ -271032,8 +270805,8 @@ async function createDevServer(options) {
271032
270805
  broadcastEntityEvent(io, appId, entityName, event);
271033
270806
  };
271034
270807
  const base44ConfigWatcher = new WatchBase44({
271035
- functions: join41(dirname29(project.configPath), project.functionsDir),
271036
- entities: join41(dirname29(project.configPath), project.entitiesDir)
270808
+ functions: join40(dirname29(project.configPath), project.functionsDir),
270809
+ entities: join40(dirname29(project.configPath), project.entitiesDir)
271037
270810
  }, devLogger);
271038
270811
  base44ConfigWatcher.on("change", async (name) => {
271039
270812
  try {
@@ -271236,7 +271009,7 @@ function readExecEnvTarget(env = process.env) {
271236
271009
  // src/core/exec/run-script.ts
271237
271010
  import { spawn as spawn4 } from "node:child_process";
271238
271011
  import { readFileSync as readFileSync4, writeFileSync as writeFileSync3 } from "node:fs";
271239
- import { join as join42 } from "node:path";
271012
+ import { join as join41 } from "node:path";
271240
271013
  var SDK_SPECIFIER = '"npm:@base44/sdk"';
271241
271014
  function wrapperSource(sdkVersion) {
271242
271015
  const source = readFileSync4(getExecWrapperPath(), "utf-8");
@@ -271283,7 +271056,7 @@ async function runScript(options) {
271283
271056
  writeFileSync3(tempWrapper.path, wrapperSource(sdkVersion), "utf-8");
271284
271057
  const configDir = await $dir({ unsafeCleanup: true });
271285
271058
  cleanupFns.push(configDir.cleanup);
271286
- const configPath = join42(configDir.path, "deno.json");
271059
+ const configPath = join41(configDir.path, "deno.json");
271287
271060
  writeFileSync3(configPath, JSON.stringify(DENO_CONFIG), "utf-8");
271288
271061
  try {
271289
271062
  const exitCode = await new Promise((resolvePromise) => {
@@ -271524,7 +271297,7 @@ function getEjectCommand() {
271524
271297
  // src/cli/program.ts
271525
271298
  function createProgram(context) {
271526
271299
  const program = new Command2;
271527
- program.name("base44").description("Base44 CLI - Unified interface for managing Base44 applications").version(package_default.version).option("--branch <name>", "Target an app branch by exact name (sandbox commands only)").addOption(new Option2("--app-id <id>", "Base44 app ID to use").env(BASE44_APP_ID_ENV_VAR)).addOption(new Option2("--json", "Output machine-readable JSON to stdout (status/logs go to stderr)"));
271300
+ program.name("base44").description("Base44 CLI - Unified interface for managing Base44 applications").version(package_default.version).option("--branch <name>", "Target an app branch by exact name (sandbox commands only)").addOption(new Option2("--app-id <id>", "Base44 app ID to use").env(BASE44_APP_ID_ENV_VAR)).option("--hostname <host>", "Base44 host to send every request to (overrides BASE44_API_URL)").addOption(new Option2("--json", "Output machine-readable JSON to stdout (status/logs go to stderr)"));
271528
271301
  program.configureHelp({
271529
271302
  sortSubcommands: true
271530
271303
  });
@@ -275575,7 +275348,7 @@ function addCommandInfoToErrorReporter(program, errorReporter) {
275575
275348
  // src/cli/index.ts
275576
275349
  var __dirname4 = dirname31(fileURLToPath7(import.meta.url));
275577
275350
  async function runCLI(options) {
275578
- ensureNpmAssets(join43(__dirname4, "../assets"));
275351
+ ensureNpmAssets(join42(__dirname4, "../assets"));
275579
275352
  const errorReporter = new ErrorReporter;
275580
275353
  errorReporter.registerProcessErrorHandlers();
275581
275354
  const jsonMode = process.argv.includes("--json");
@@ -275614,4 +275387,4 @@ export {
275614
275387
  runCLI
275615
275388
  };
275616
275389
 
275617
- //# debugId=E189FA51139F7E2864756E2164756E21
275390
+ //# debugId=3C0AE8361C6AA70364756E2164756E21