@base44-preview/cli 0.0.46-pr.428.699825a → 0.0.47-pr.370.b77da88
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 +28 -5
- package/dist/cli/index.js.map +7 -7
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -231030,11 +231030,15 @@ var SiteConfigSchema = exports_external.object({
|
|
|
231030
231030
|
outputDirectory: exports_external.string().optional(),
|
|
231031
231031
|
installCommand: exports_external.string().optional()
|
|
231032
231032
|
});
|
|
231033
|
+
var VisibilitySchema = exports_external.enum(["public", "private"], {
|
|
231034
|
+
error: 'Invalid visibility value. Allowed values: "public", "private"'
|
|
231035
|
+
});
|
|
231033
231036
|
var ProjectConfigSchema = exports_external.object({
|
|
231034
231037
|
name: exports_external.string({
|
|
231035
231038
|
error: "App name cannot be empty"
|
|
231036
231039
|
}).min(1, "App name cannot be empty"),
|
|
231037
231040
|
description: exports_external.string().optional(),
|
|
231041
|
+
visibility: VisibilitySchema.optional(),
|
|
231038
231042
|
site: SiteConfigSchema.optional(),
|
|
231039
231043
|
entitiesDir: exports_external.string().optional().default("entities"),
|
|
231040
231044
|
functionsDir: exports_external.string().optional().default("functions"),
|
|
@@ -238993,7 +238997,7 @@ async function fetchFunctionLogs(functionName, filters = {}) {
|
|
|
238993
238997
|
const searchParams = buildLogsQueryString(filters);
|
|
238994
238998
|
let response;
|
|
238995
238999
|
try {
|
|
238996
|
-
response = await appClient.get(`functions-mgmt/${functionName}/logs`, {
|
|
239000
|
+
response = await appClient.get(`functions-mgmt/${encodeURIComponent(functionName)}/logs`, {
|
|
238997
239001
|
searchParams
|
|
238998
239002
|
});
|
|
238999
239003
|
} catch (error48) {
|
|
@@ -239372,7 +239376,7 @@ async function createProject(projectName, description) {
|
|
|
239372
239376
|
name: projectName,
|
|
239373
239377
|
user_description: description ?? `Backend for '${projectName}'`,
|
|
239374
239378
|
is_managed_source_code: false,
|
|
239375
|
-
public_settings: "
|
|
239379
|
+
public_settings: "private_with_login"
|
|
239376
239380
|
}
|
|
239377
239381
|
});
|
|
239378
239382
|
} catch (error48) {
|
|
@@ -239386,6 +239390,22 @@ async function createProject(projectName, description) {
|
|
|
239386
239390
|
projectId: result.data.id
|
|
239387
239391
|
};
|
|
239388
239392
|
}
|
|
239393
|
+
var VISIBILITY_TO_PUBLIC_SETTINGS = {
|
|
239394
|
+
public: "public_without_login",
|
|
239395
|
+
private: "private_with_login"
|
|
239396
|
+
};
|
|
239397
|
+
async function updateProjectVisibility(visibility) {
|
|
239398
|
+
const { id } = getAppConfig();
|
|
239399
|
+
try {
|
|
239400
|
+
await base44Client.put(`api/apps/${id}`, {
|
|
239401
|
+
json: {
|
|
239402
|
+
public_settings: VISIBILITY_TO_PUBLIC_SETTINGS[visibility]
|
|
239403
|
+
}
|
|
239404
|
+
});
|
|
239405
|
+
} catch (error48) {
|
|
239406
|
+
throw await ApiError.fromHttpError(error48, "updating project visibility");
|
|
239407
|
+
}
|
|
239408
|
+
}
|
|
239389
239409
|
async function listProjects() {
|
|
239390
239410
|
let response;
|
|
239391
239411
|
try {
|
|
@@ -239452,7 +239472,7 @@ import { join as join8 } from "node:path";
|
|
|
239452
239472
|
// package.json
|
|
239453
239473
|
var package_default = {
|
|
239454
239474
|
name: "base44",
|
|
239455
|
-
version: "0.0.
|
|
239475
|
+
version: "0.0.47",
|
|
239456
239476
|
description: "Base44 CLI - Unified interface for managing Base44 applications",
|
|
239457
239477
|
type: "module",
|
|
239458
239478
|
bin: {
|
|
@@ -239715,6 +239735,9 @@ async function deployAll(projectData, options) {
|
|
|
239715
239735
|
});
|
|
239716
239736
|
await agentResource.push(agents);
|
|
239717
239737
|
const { results: connectorResults } = await pushConnectors(connectors);
|
|
239738
|
+
if (project.visibility) {
|
|
239739
|
+
await updateProjectVisibility(project.visibility);
|
|
239740
|
+
}
|
|
239718
239741
|
if (project.site?.outputDirectory) {
|
|
239719
239742
|
const outputDir = resolve(project.root, project.site.outputDirectory);
|
|
239720
239743
|
const { appUrl } = await deploySite(outputDir);
|
|
@@ -251918,7 +251941,7 @@ function createProgram(context) {
|
|
|
251918
251941
|
program2.addCommand(getTypesCommand());
|
|
251919
251942
|
program2.addCommand(getExecCommand());
|
|
251920
251943
|
program2.addCommand(getDevCommand(), { hidden: true });
|
|
251921
|
-
program2.addCommand(getLogsCommand()
|
|
251944
|
+
program2.addCommand(getLogsCommand());
|
|
251922
251945
|
return program2;
|
|
251923
251946
|
}
|
|
251924
251947
|
|
|
@@ -256160,4 +256183,4 @@ export {
|
|
|
256160
256183
|
CLIExitError
|
|
256161
256184
|
};
|
|
256162
256185
|
|
|
256163
|
-
//# debugId=
|
|
256186
|
+
//# debugId=1A07E0BD1CCB37CD64756E2164756E21
|