@base44-preview/cli 0.0.38-pr.370.a181654 → 0.0.38-pr.375.23c5f77

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
@@ -226169,15 +226169,11 @@ var SiteConfigSchema = exports_external.object({
226169
226169
  outputDirectory: exports_external.string().optional(),
226170
226170
  installCommand: exports_external.string().optional()
226171
226171
  });
226172
- var VisibilitySchema = exports_external.enum(["public", "private"], {
226173
- error: 'Invalid visibility value. Allowed values: "public", "private"'
226174
- });
226175
226172
  var ProjectConfigSchema = exports_external.object({
226176
226173
  name: exports_external.string({
226177
226174
  error: "App name cannot be empty"
226178
226175
  }).min(1, "App name cannot be empty"),
226179
226176
  description: exports_external.string().optional(),
226180
- visibility: VisibilitySchema.optional(),
226181
226177
  site: SiteConfigSchema.optional(),
226182
226178
  entitiesDir: exports_external.string().optional().default("entities"),
226183
226179
  functionsDir: exports_external.string().optional().default("functions"),
@@ -232224,7 +232220,7 @@ async function createProject(projectName, description) {
232224
232220
  name: projectName,
232225
232221
  user_description: description ?? `Backend for '${projectName}'`,
232226
232222
  is_managed_source_code: false,
232227
- public_settings: "private"
232223
+ public_settings: "public_without_login"
232228
232224
  }
232229
232225
  });
232230
232226
  } catch (error48) {
@@ -232238,22 +232234,6 @@ async function createProject(projectName, description) {
232238
232234
  projectId: result.data.id
232239
232235
  };
232240
232236
  }
232241
- var VISIBILITY_TO_PUBLIC_SETTINGS = {
232242
- public: "public_without_login",
232243
- private: "private"
232244
- };
232245
- async function updateProjectVisibility(visibility) {
232246
- const appClient = getAppClient();
232247
- try {
232248
- await appClient.patch("", {
232249
- json: {
232250
- public_settings: VISIBILITY_TO_PUBLIC_SETTINGS[visibility]
232251
- }
232252
- });
232253
- } catch (error48) {
232254
- throw await ApiError.fromHttpError(error48, "updating project visibility");
232255
- }
232256
- }
232257
232237
  async function listProjects() {
232258
232238
  let response;
232259
232239
  try {
@@ -234417,9 +234397,6 @@ async function deployAll(projectData) {
234417
234397
  await functionResource.push(functions);
234418
234398
  await agentResource.push(agents);
234419
234399
  const { results: connectorResults } = await pushConnectors(connectors);
234420
- if (project.visibility) {
234421
- await updateProjectVisibility(project.visibility);
234422
- }
234423
234400
  if (project.site?.outputDirectory) {
234424
234401
  const outputDir = resolve(project.root, project.site.outputDirectory);
234425
234402
  const { appUrl } = await deploySite(outputDir);
@@ -234635,7 +234612,8 @@ async function deleteSecret(name2) {
234635
234612
  let response;
234636
234613
  try {
234637
234614
  response = await appClient.delete("secrets", {
234638
- searchParams: { secret_name: name2 }
234615
+ searchParams: { secret_name: name2 },
234616
+ timeout: false
234639
234617
  });
234640
234618
  } catch (error48) {
234641
234619
  throw await ApiError.fromHttpError(error48, "deleting secret");
@@ -250859,4 +250837,4 @@ export {
250859
250837
  CLIExitError
250860
250838
  };
250861
250839
 
250862
- //# debugId=6DBF3468B0B3316264756E2164756E21
250840
+ //# debugId=38726C4F5E4FF72564756E2164756E21