@base44-preview/cli 0.3.6-pr.704.e6240ba → 0.3.6-pr.707.41f83a6

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,9 +83,18 @@ 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). `login` saves the host with the login, so later commands use it without the flag; `whoami` shows it and `logout` clears it |
87
86
  | `--json` | Emit machine-readable JSON to stdout and run in silent mode |
88
87
 
88
+ ### Another Base44 host
89
+
90
+ To use a Base44 host other than `app.base44.com` (for example a dedicated tenant), log in with `--hostname`:
91
+
92
+ ```bash
93
+ base44 login --hostname acme.base44.com
94
+ ```
95
+
96
+ The host is saved with the login, so every later command goes there; `whoami` shows it and `logout` clears it. A hostname or a full URL both work. In CI, set `BASE44_API_URL` alongside the credential env vars instead.
97
+
89
98
  ### `--json`
90
99
 
91
100
  Use `--json` for scripting and agent automation:
package/dist/cli/index.js CHANGED
@@ -225898,6 +225898,7 @@ var ProjectConfigSchema = object({
225898
225898
  actorsDir: string2().optional().default("actors"),
225899
225899
  agentsDir: string2().optional().default("agents"),
225900
225900
  agentSkillsDir: string2().optional().default("agent-skills"),
225901
+ workflowsDir: string2().optional().default("workflows"),
225901
225902
  connectorsDir: string2().optional().default("connectors"),
225902
225903
  authDir: string2().optional().default("auth"),
225903
225904
  plugin: PluginMetadataSchema.optional(),
@@ -229062,19 +229063,21 @@ function loadSavedLoginApiUrl(authFilePath = getAuthFilePath()) {
229062
229063
  }
229063
229064
 
229064
229065
  // src/cli/bootstrap-env.ts
229065
- function applyHostnameFlag(argv) {
229066
- const i = argv.findIndex((arg) => arg === "--hostname" || arg.startsWith("--hostname="));
229067
- if (i === -1) {
229066
+ function applyLoginHostnameFlag(argv) {
229067
+ const args = argv.slice(2);
229068
+ const login = args.indexOf("login");
229069
+ const i = args.findIndex((arg) => arg === "--hostname" || arg.startsWith("--hostname="));
229070
+ if (login === -1 || i < login) {
229068
229071
  return;
229069
229072
  }
229070
- const value = argv[i].includes("=") ? argv[i].slice("--hostname=".length) : argv[i + 1];
229073
+ const value = args[i].includes("=") ? args[i].slice("--hostname=".length) : args[i + 1];
229071
229074
  if (!value || value.startsWith("-")) {
229072
229075
  return;
229073
229076
  }
229074
229077
  const url = value.includes("://") ? value : `https://${value}`;
229075
229078
  process.env.BASE44_API_URL = url.replace(/\/+$/, "");
229076
229079
  }
229077
- applyHostnameFlag(process.argv);
229080
+ applyLoginHostnameFlag(process.argv);
229078
229081
  loadProjectEnvFiles();
229079
229082
  loadSavedLoginApiUrl();
229080
229083
 
@@ -247171,6 +247174,7 @@ async function resolveBuildTarget(projectRoot, overrides = {}) {
247171
247174
  entitiesDir: project?.entitiesDir ?? "entities",
247172
247175
  agentsDir: project?.agentsDir ?? "agents",
247173
247176
  agentSkillsDir: project?.agentSkillsDir ?? "agent-skills",
247177
+ workflowsDir: project?.workflowsDir ?? "workflows",
247174
247178
  functionsDir: project?.functionsDir ?? "functions",
247175
247179
  actorsDir: project?.actorsDir ?? "actors"
247176
247180
  };
@@ -250554,7 +250558,7 @@ function getLoginCommand() {
250554
250558
  return new Base44Command("login", {
250555
250559
  requireAuth: false,
250556
250560
  requireAppContext: false
250557
- }).description("Authenticate with Base44").action(login);
250561
+ }).description("Authenticate with Base44").option("--hostname <host>", "Base44 host to log in to and use from then on (default: app.base44.com)").action(login);
250558
250562
  }
250559
250563
 
250560
250564
  // src/cli/commands/auth/logout.ts
@@ -253010,6 +253014,7 @@ async function createVersion(artifacts, options = {}) {
253010
253014
  agents: artifacts.agents,
253011
253015
  mcp_config: artifacts.mcpConfig,
253012
253016
  agent_skills: artifacts.agentSkills,
253017
+ workflows: artifacts.workflows,
253013
253018
  ...artifacts.routes ? { routes: declaredRoutes(artifacts.routes) } : {},
253014
253019
  source_commit: options.sourceCommit
253015
253020
  }, "declaring a version")).json(), "declare");
@@ -265066,6 +265071,22 @@ async function readRawResources(dir) {
265066
265071
  }
265067
265072
  return payloads;
265068
265073
  }
265074
+ async function readWorkflowFiles(dir) {
265075
+ if (!await pathExists(dir)) {
265076
+ return {};
265077
+ }
265078
+ const files = await globby(`*.${CONFIG_FILE_EXTENSION}`, {
265079
+ cwd: dir,
265080
+ onlyFiles: true,
265081
+ followSymbolicLinks: false,
265082
+ dot: true
265083
+ });
265084
+ const workflows = {};
265085
+ for (const file of files.sort()) {
265086
+ workflows[file.slice(0, -`.${CONFIG_FILE_EXTENSION}`.length)] = await readJsonFile(join31(dir, file));
265087
+ }
265088
+ return workflows;
265089
+ }
265069
265090
  async function readMcpConfig(configDir) {
265070
265091
  const path = join31(configDir, "mcp", "config.json");
265071
265092
  return await pathExists(path) ? await readTextFile(path) : "";
@@ -265086,13 +265107,14 @@ async function readAgentSkillFiles(dir) {
265086
265107
  return skills;
265087
265108
  }
265088
265109
  async function collectResources(configDir, dirs) {
265089
- const [entities, agents, mcpConfig, agentSkills] = await Promise.all([
265110
+ const [entities, agents, mcpConfig, agentSkills, workflows] = await Promise.all([
265090
265111
  readRawResources(join31(configDir, dirs.entitiesDir)),
265091
265112
  readRawResources(join31(configDir, dirs.agentsDir)),
265092
265113
  readMcpConfig(configDir),
265093
- readAgentSkillFiles(join31(configDir, dirs.agentSkillsDir))
265114
+ readAgentSkillFiles(join31(configDir, dirs.agentSkillsDir)),
265115
+ readWorkflowFiles(join31(configDir, dirs.workflowsDir))
265094
265116
  ]);
265095
- return { entities, agents, mcpConfig, agentSkills };
265117
+ return { entities, agents, mcpConfig, agentSkills, workflows };
265096
265118
  }
265097
265119
  async function collectArtifacts(target, options = {}) {
265098
265120
  const built = await resolveFullStackBuild(target.root);
@@ -271568,7 +271590,7 @@ function getEjectCommand() {
271568
271590
  // src/cli/program.ts
271569
271591
  function createProgram(context) {
271570
271592
  const program = new Command2;
271571
- 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)"));
271593
+ 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)"));
271572
271594
  program.configureHelp({
271573
271595
  sortSubcommands: true
271574
271596
  });
@@ -275658,4 +275680,4 @@ export {
275658
275680
  runCLI
275659
275681
  };
275660
275682
 
275661
- //# debugId=4071946F161FE21464756E2164756E21
275683
+ //# debugId=AB7FE5EE4631966564756E2164756E21