feat: seamless first-run onboarding with a clear managed vs BYOK choice#90
Merged
Merged
Conversation
openscience login/logout/status/sync/devices are now first-class commands; connect stays as a back-compat umbrella alias. Extract runAtlasLogin() so the setup wizard can reuse it, and have status report wallet balance and routing.
Managed-first fork (Atlas managed / your own keys / not now) that never blocks BYOK or account-free use, offers the Atlas CLI companion, and writes a marker so it only auto-runs once. init reruns it; doctor reports what is configured.
…d tree BYOK key management is now openscience keys add/rm/ls/signin (auth kept as an alias); wallet is openscience wallet (billing kept as an alias). Codex logout folds into keys rm. The default command launches the wizard on first run and no longer nags BYOK users to connect Atlas.
TTY-gated prompt that reads /dev/tty (curl|bash makes stdin the script). Skipped in CI, non-interactive shells, when atlas is already installed, or with --no-atlas / OPENSCIENCE_NO_ATLAS. Mirrored byte-for-byte to the served copy that CI checks.
share.ts no longer ships app.dev.syntheticsciences.ai in public builds; it routes through the endpoints resolver. ARCHITECTURE.md now states app.syntheticsciences.ai, matching src/endpoints.ts.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Rename connect/auth/billing references to login/keys/wallet across the command reference, Atlas, quickstart, models, and security pages, add the new init/status/wallet/doctor commands, and rebuild the served public/docs bundle.
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.
What & why
First-time users had no guided setup — bare
opensciencejust opened the workspace with a passive "not connected" warning — and two similarly-named auth systems (login/authfor provider keys vsconnect loginfor the Atlas account) made the mental model confusing. This adds a first-run wizard and unifies the command vocabulary so verbs map to intent, while keeping OpenScience fully usable with no account.Command surface
Verbs now map to intent. Old names remain as aliases, so nothing existing breaks.
openscience init(aliasonboard)openscience loginconnect loginopenscience logoutconnect logoutopenscience status(aliaswhoami)connect statusopenscience syncconnect syncopenscience devicesconnect devicesopenscience keys add/rm/ls/signinauth …openscience walletbillingopenscience doctoropenscience connect …,auth, andbillingstill resolve (aliased) so existing muscle memory and scripts keep working.First-run wizard
Managed-first, but BYOK and "not now" are one keystroke away — the "no account required" promise is preserved.
npm i -g @synsci/atlas) if absent. Since openscience seeds the atlas-cli config from the same session, the companion is already signed in.Triggered from the default command only when there is a TTY and nothing is configured; suppressed in CI / non-interactive / via
OPENSCIENCE_NO_ONBOARD=1; runs once (state marker), and on demand viaopenscience init.Installer
installnow offers the Atlas CLI companion — TTY-gated, reads/dev/tty(sincecurl | bashmakes stdin the script); skipped in CI, non-interactive shells, whenatlasis already installed, or with--no-atlas/OPENSCIENCE_NO_ATLAS. Mirrored byte-for-byte to the served copy that the CI smoke job diffs.Security / polish
share.tsno longer shipsapp.dev.syntheticsciences.aiin public builds; it routes through theendpoints.tsresolver (addresses the one LOW finding from the leak audit).ARCHITECTURE.mdcorrected toapp.syntheticsciences.aito match the code.Docs / landing
Testing
bun run typecheck— clean.bun test— 842 pass. The 10 failingprovider.test.tscases (claude-sonnet-4variants / capabilities) are pre-existing live models.dev catalog drift — identical onmainwith these changes stashed, so unrelated to this PR.doctor, and theauth/connectback-compat aliases end to end.