feat(cli): add app visibility command and config setting#550
Open
moranshe-max wants to merge 1 commit into
Open
feat(cli): add app visibility command and config setting#550moranshe-max wants to merge 1 commit into
moranshe-max wants to merge 1 commit into
Conversation
Contributor
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/cli@0.0.56-pr.550.763501ePrefer not to change any import paths? Install using npm alias so your code still imports npm i "base44@npm:@base44-preview/cli@0.0.56-pr.550.763501e"Or add it to your {
"dependencies": {
"base44": "npm:@base44-preview/cli@0.0.56-pr.550.763501e"
}
}
Preview published to npm registry — try new features instantly! |
073dae6 to
3911df5
Compare
Adds app visibility (public | private | workspace) two ways:
- `base44 visibility <level>` sets it on the server via PUT /api/apps/{id};
resolves the app from --app-id / BASE44_APP_ID / .app.jsonc, so it works
projectless across any app.
- a `visibility` field in config.jsonc that `base44 deploy` applies. New
projects scaffold "visibility": "public".
Also stop showing the "check your network connection" hint for 4xx API errors
that already carry a server message; reserve it for connection failures and 5xx.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
f5a89b4 to
50b9126
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Description
Adds app visibility support to the Base44 CLI. A new
base44 visibility <public|private|workspace>command sets an app's visibility directly on the server, and visibility can also be declared via"visibility"inconfig.jsoncso thatbase44 deployapplies it as part of a unified deploy. New projects now scaffold"visibility": "public"by default. Also refinesApiErrorhint behavior so non-connectivity 4xx errors (e.g. plan-gated 402s) no longer show a misleading network troubleshooting hint.Related Issue
None
Type of Change
Changes Made
base44 visibility <level>command (public|private|workspace) that sets visibility on the server, supporting both linked projects and projectless use via--app-id.setAppVisibility()incore/project/api.ts, mapping CLI levels to backendpublic_settingsvalues (public_without_login,private_with_login,workspace_with_login); no-ops when visibility is unset.visibilityfield toProjectConfigSchemaand a sharedVISIBILITY_LEVELS/Visibilitytype.deployAll,hasResourcesToDeploy) and surface it in the deploy summary."visibility": "public"in thebackend-onlyandbackend-and-clientconfig templates.ApiError.hints: suppress the "check your network connection" hint for non-5xx HTTP errors so server-side messages (e.g. plan-gating 402) aren't muddied.[Unreleased]entry.Testing
npm test)Checklist
docs/(AGENTS.md) if I made architectural changesAdditional Notes
New tests cover the
visibilitycommand (linked, projectless via--app-id, invalid/missing args, help), deploy applying visibility from config, and the updatedApiErrorhint behavior. Awith-visibilitytest fixture was added.🤖 Generated by Claude | 2026-06-23 11:14 UTC | 763501e