feat(installer): offer CodeGraph Pro beta signup after install and upgrade (#1297)

One-time, strictly opt-in prompt at the end of codegraph install and
codegraph upgrade to join the CodeGraph Pro beta waitlist (same list as
the getcodegraph.com homepage form). Nothing is sent unless the user
answers yes AND enters an email; either answer is recorded machine-wide
so no later install or upgrade re-asks, and --yes / non-interactive / CI
runs never see the prompt.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Colby Mchenry
2026-07-15 19:11:06 -05:00
committed by GitHub
co-authored by Claude Fable 5
parent 2b0b4b587e
commit a66683d3eb
8 changed files with 430 additions and 0 deletions
+4
View File
@@ -2394,6 +2394,10 @@ program
warn: (m: string) => warn(m),
error: (m: string) => error(m),
platform: process.platform,
offerBetaSignup: async () => {
const { maybeOfferBetaSignup } = await import('../installer/beta-signup');
await maybeOfferBetaSignup({ source: 'cli-upgrade' });
},
}
);
process.exit(code);