fix(mosaic): resumable gateway install + prominent admin token #393
Reference in New Issue
Block a user
Delete Branch "fix/gateway-install-ux"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
mosaic gateway installhad three UX problems the user called out:meta.jsonand never shown — no way to retrieve it short of reading the file.Reinstall? [y/N]and aborted on N, leaving a half-configured install with no resume path.mosaic gateway logs— user had to run a second command to see the actual error.Changes
gateway.logprinted automatically..env/mosaic.config.jsonexists, refuses to guess and directs the user tomosaic gateway uninstall.BETTER_AUTH_SECRETpreservation across config regeneration so Better Auth sessions aren't silently invalidated.@mosaic/mosaic0.0.19 → 0.0.20.Went through four rounds of Codex code review; all blockers addressed.
Known follow-ups
--port 14242as an explicit override can't be distinguished from commander's default value. Requires plumbing anexplicitflag from the parent command. Extremely rare in practice.Test plan
pnpm typecheckpassespnpm lintpassespnpm format:checkpassespnpm --filter @mosaic/mosaic test— 78 tests passebf9517dd0to7e95107ed5