@base44-preview/cli 0.0.44-pr.419.4194a5c → 0.0.45-pr.370.7a9aac7

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
@@ -53,14 +53,10 @@ The CLI will guide you through project setup. For step-by-step tutorials, see th
53
53
  | [`whoami`](https://docs.base44.com/developers/references/cli/commands/whoami) | Display the current authenticated user |
54
54
  | [`agents pull`](https://docs.base44.com/developers/references/cli/commands/agents-pull) | Pull agents from Base44 to local files |
55
55
  | [`agents push`](https://docs.base44.com/developers/references/cli/commands/agents-push) | Push local agents to Base44 |
56
- | [`connectors list-available`](https://docs.base44.com/developers/references/cli/commands/connectors-list-available) | List all available integration types |
57
56
  | [`connectors pull`](https://docs.base44.com/developers/references/cli/commands/connectors-pull) | Pull connectors from Base44 to local files |
58
57
  | [`connectors push`](https://docs.base44.com/developers/references/cli/commands/connectors-push) | Push local connectors to Base44 |
59
58
  | [`entities push`](https://docs.base44.com/developers/references/cli/commands/entities-push) | Push local entities to Base44 |
60
- | `functions delete` | Delete deployed functions |
61
- | [`functions deploy`](https://docs.base44.com/developers/references/cli/commands/functions-deploy) | Deploy functions to Base44 |
62
- | `functions list` | List all deployed functions |
63
- | `functions pull` | Pull deployed functions from Base44 |
59
+ | [`functions deploy`](https://docs.base44.com/developers/references/cli/commands/functions-deploy) | Deploy local functions to Base44 |
64
60
  | [`secrets list`](https://docs.base44.com/developers/references/cli/commands/secrets-list) | List project secret names |
65
61
  | [`secrets set`](https://docs.base44.com/developers/references/cli/commands/secrets-set) | Set one or more project secrets |
66
62
  | [`secrets delete`](https://docs.base44.com/developers/references/cli/commands/secrets-delete) | Delete a project secret |
package/dist/cli/index.js CHANGED
@@ -230321,11 +230321,15 @@ var SiteConfigSchema = exports_external.object({
230321
230321
  outputDirectory: exports_external.string().optional(),
230322
230322
  installCommand: exports_external.string().optional()
230323
230323
  });
230324
+ var VisibilitySchema = exports_external.enum(["public", "private"], {
230325
+ error: 'Invalid visibility value. Allowed values: "public", "private"'
230326
+ });
230324
230327
  var ProjectConfigSchema = exports_external.object({
230325
230328
  name: exports_external.string({
230326
230329
  error: "App name cannot be empty"
230327
230330
  }).min(1, "App name cannot be empty"),
230328
230331
  description: exports_external.string().optional(),
230332
+ visibility: VisibilitySchema.optional(),
230329
230333
  site: SiteConfigSchema.optional(),
230330
230334
  entitiesDir: exports_external.string().optional().default("entities"),
230331
230335
  functionsDir: exports_external.string().optional().default("functions"),
@@ -236365,7 +236369,7 @@ async function createProject(projectName, description) {
236365
236369
  name: projectName,
236366
236370
  user_description: description ?? `Backend for '${projectName}'`,
236367
236371
  is_managed_source_code: false,
236368
- public_settings: "public_without_login"
236372
+ public_settings: "private"
236369
236373
  }
236370
236374
  });
236371
236375
  } catch (error48) {
@@ -236379,6 +236383,22 @@ async function createProject(projectName, description) {
236379
236383
  projectId: result.data.id
236380
236384
  };
236381
236385
  }
236386
+ var VISIBILITY_TO_PUBLIC_SETTINGS = {
236387
+ public: "public_without_login",
236388
+ private: "private"
236389
+ };
236390
+ async function updateProjectVisibility(visibility) {
236391
+ const appClient = getAppClient();
236392
+ try {
236393
+ await appClient.patch("", {
236394
+ json: {
236395
+ public_settings: VISIBILITY_TO_PUBLIC_SETTINGS[visibility]
236396
+ }
236397
+ });
236398
+ } catch (error48) {
236399
+ throw await ApiError.fromHttpError(error48, "updating project visibility");
236400
+ }
236401
+ }
236382
236402
  async function listProjects() {
236383
236403
  let response;
236384
236404
  try {
@@ -238710,7 +238730,7 @@ import { join as join8 } from "node:path";
238710
238730
  // package.json
238711
238731
  var package_default = {
238712
238732
  name: "base44",
238713
- version: "0.0.44",
238733
+ version: "0.0.45",
238714
238734
  description: "Base44 CLI - Unified interface for managing Base44 applications",
238715
238735
  type: "module",
238716
238736
  bin: {
@@ -238994,6 +239014,9 @@ async function deployAll(projectData, options) {
238994
239014
  });
238995
239015
  await agentResource.push(agents);
238996
239016
  const { results: connectorResults } = await pushConnectors(connectors);
239017
+ if (project.visibility) {
239018
+ await updateProjectVisibility(project.visibility);
239019
+ }
238997
239020
  if (project.site?.outputDirectory) {
238998
239021
  const outputDir = resolve(project.root, project.site.outputDirectory);
238999
239022
  const { appUrl } = await deploySite(outputDir);
@@ -255960,4 +255983,4 @@ export {
255960
255983
  CLIExitError
255961
255984
  };
255962
255985
 
255963
- //# debugId=CD060DA1B6F7116364756E2164756E21
255986
+ //# debugId=0547AD962333BF6464756E2164756E21