@base44-preview/cli 0.0.46-pr.428.7615e53 → 0.0.47-pr.370.90b2fb6
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 +29 -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", "workspace"], {
|
|
231034
|
+
error: 'Invalid visibility value. Allowed values: "public", "private", "workspace"'
|
|
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,23 @@ 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
|
+
workspace: "workspace_with_login"
|
|
239397
|
+
};
|
|
239398
|
+
async function updateProjectVisibility(visibility) {
|
|
239399
|
+
const { id } = getAppConfig();
|
|
239400
|
+
try {
|
|
239401
|
+
await base44Client.put(`api/apps/${id}`, {
|
|
239402
|
+
json: {
|
|
239403
|
+
public_settings: VISIBILITY_TO_PUBLIC_SETTINGS[visibility]
|
|
239404
|
+
}
|
|
239405
|
+
});
|
|
239406
|
+
} catch (error48) {
|
|
239407
|
+
throw await ApiError.fromHttpError(error48, "updating project visibility");
|
|
239408
|
+
}
|
|
239409
|
+
}
|
|
239389
239410
|
async function listProjects() {
|
|
239390
239411
|
let response;
|
|
239391
239412
|
try {
|
|
@@ -239452,7 +239473,7 @@ import { join as join8 } from "node:path";
|
|
|
239452
239473
|
// package.json
|
|
239453
239474
|
var package_default = {
|
|
239454
239475
|
name: "base44",
|
|
239455
|
-
version: "0.0.
|
|
239476
|
+
version: "0.0.47",
|
|
239456
239477
|
description: "Base44 CLI - Unified interface for managing Base44 applications",
|
|
239457
239478
|
type: "module",
|
|
239458
239479
|
bin: {
|
|
@@ -239715,6 +239736,9 @@ async function deployAll(projectData, options) {
|
|
|
239715
239736
|
});
|
|
239716
239737
|
await agentResource.push(agents);
|
|
239717
239738
|
const { results: connectorResults } = await pushConnectors(connectors);
|
|
239739
|
+
if (project.visibility) {
|
|
239740
|
+
await updateProjectVisibility(project.visibility);
|
|
239741
|
+
}
|
|
239718
239742
|
if (project.site?.outputDirectory) {
|
|
239719
239743
|
const outputDir = resolve(project.root, project.site.outputDirectory);
|
|
239720
239744
|
const { appUrl } = await deploySite(outputDir);
|
|
@@ -251918,7 +251942,7 @@ function createProgram(context) {
|
|
|
251918
251942
|
program2.addCommand(getTypesCommand());
|
|
251919
251943
|
program2.addCommand(getExecCommand());
|
|
251920
251944
|
program2.addCommand(getDevCommand(), { hidden: true });
|
|
251921
|
-
program2.addCommand(getLogsCommand()
|
|
251945
|
+
program2.addCommand(getLogsCommand());
|
|
251922
251946
|
return program2;
|
|
251923
251947
|
}
|
|
251924
251948
|
|
|
@@ -256160,4 +256184,4 @@ export {
|
|
|
256160
256184
|
CLIExitError
|
|
256161
256185
|
};
|
|
256162
256186
|
|
|
256163
|
-
//# debugId=
|
|
256187
|
+
//# debugId=2431C70C733BE15064756E2164756E21
|