Conversation
Contributor
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/cli@0.0.26-pr.169.a3a6068Prefer not to change any import paths? Install using npm alias so your code still imports npm i "base44@npm:@base44-preview/cli@0.0.26-pr.169.a3a6068"Or add it to your {
"dependencies": {
"base44": "npm:@base44-preview/cli@0.0.26-pr.169.a3a6068"
}
}
Preview published to npm registry — try new features instantly! |
614f1e9 to
0264429
Compare
ec459f8 to
23d1378
Compare
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
de6884f to
aa1fd44
Compare
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
aa1fd44 to
ca36c6e
Compare
kfirstri
approved these changes
Feb 2, 2026
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 a new
site opencommand that opens the published site URL in the user's browser. This PR also refactors the command structure by introducing parent commands (siteanddashboard) with subcommands (deploy/open), making the CLI more organized and following a consistent pattern with other command groups.Related Issue
None
Type of Change
Changes Made
site opencommand that fetches and opens the published site URL using the/api/apps/platform/{id}/published-urlendpointgetSiteUrl()utility function insrc/core/site/api.tswith proper error handling and schema validation using safeParse patternsrc/cli/commands/site/index.tsas parent commandsrc/cli/commands/dashboard/index.tsas parent, moved existing dashboard command todashboard opengetSiteDeployCommand()to return just the deploy subcommand instead of the entire site commandopenpackage to launch URLs in browser (skipped in CI environments viaprocess.env.CIcheck)tests/cli/site_open.spec.tsincluding success, auth, and error scenariosdashboard opencommand syntaxmockSiteUrl()andmockSiteUrlError()helpers for testingTesting
npm test)Checklist
Additional Notes
The
opencommand will not attempt to open a browser in CI environments (checksprocess.env.CI). The command uses the new/api/apps/platform/{id}/published-urlendpoint to fetch the live site URL dynamically. Bothsiteanddashboardcommands now follow a consistent parent-subcommand pattern, improving discoverability and organization. The command requires authentication and project context. This PR uses the safeParse pattern for consistent error handling in thegetSiteUrlfunction.🤖 Generated by Claude | 2026-02-02 13:29 UTC