Skip to content

feat: streamline signup flow - #34

Merged
skvark merged 9 commits into
mainfrom
feat/signup-flow
May 5, 2026
Merged

feat: streamline signup flow#34
skvark merged 9 commits into
mainfrom
feat/signup-flow

Conversation

@skvark

@skvark skvark commented Apr 24, 2026

Copy link
Copy Markdown
Member

Summary

  • add CLI-boundary auto-login for the advertised onboarding path: npx -y githits@latest init
  • extend the same interactive signup flow to auth-required user commands: example, languages, feedback, search, search-status, code, docs, and pkg subcommands
  • preserve explicit opt-outs and host/recovery surfaces: init --skip-login, login, logout, auth status, mcp, and mcp start do not auto-launch browser login
  • reuse the existing login flow and send login progress/continuation messages to stderr so command stdout stays clean
  • keep package/source surfaces on the mainline URL/config-based registration path; they do not use the removed code-navigation capability gate
  • update implementation docs and signup-flow checklist to match the final behavior after rebasing onto main

Testing

  • bun test src/shared/auto-login.test.ts src/cli.test.ts src/commands/search-registration.test.ts src/commands/code/index.test.ts src/commands/pkg/index.test.ts
  • bun run build
  • pre-commit: biome check --write --no-errors-on-unmatched, biome format --write --no-errors-on-unmatched, bun run typecheck
  • doc-only follow-up: pre-commit biome format --write --no-errors-on-unmatched

Notes

  • Full bun test on Windows still has known environment-sensitive failures unrelated to this PR path unless run with normalized/colorless expectations.

@skvark
skvark force-pushed the feat/signup-flow branch from 612a942 to feda3c1 Compare April 24, 2026 12:40
@skvark
skvark requested a review from jlitola April 24, 2026 12:44
@skvark
skvark force-pushed the feat/signup-flow branch 2 times, most recently from 72a0bf5 to 5742751 Compare May 4, 2026 10:52
skvark added 9 commits May 5, 2026 09:40
Add interactive auto-login bootstrap for example, languages, and feedback.
Refactor login output to support stderr-safe JSON flows and fix the build script on Windows.
Extract the root CLI preAction so auto-login behavior can be tested directly.
Keep example, languages, and feedback on the interactive auto-login path while restoring strict startup gating for search, code, and pkg based on resolved capability or local override.
Update CLI/docs coverage to verify help output and registration stay aligned with the stricter gated surface.
Pass injectable TTY flags through the root CLI preAction helper and use them in the CLI test seam so auto-login tests no longer depend on the runner's real stdio state.
This keeps the CI root preAction coverage deterministic without changing production behavior.
Keeps the rebased signup flow aligned with the mainline behavior where package/source CLI surfaces register from package-service configuration instead of JWT capability checks. Removes the obsolete startup capability parser and updates registration tests and docs accordingly.
Expands the interactive auto-login policy to cover the advertised init onboarding path and auth-required package/source commands, while preserving explicit opt-outs such as init --skip-login and host-driven MCP commands.
Removes stale gated-command wording from the signup-flow implementation notes now that package/source commands use URL-configured registration and participate in the interactive signup bootstrap.
@skvark
skvark force-pushed the feat/signup-flow branch from 5742751 to 5a9b148 Compare May 5, 2026 06:41
@skvark
skvark merged commit db3ab6d into main May 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant