Add signup command - #43
Draft
usiegl00 wants to merge 1 commit into
Draft
Conversation
Adds `bld signup -e user@example.com`, a fully CLI-driven signup so an agent can sign a user up on their behalf. It calls the SDK signup endpoint, which sends a verification link to that address; the user then clicks the link and runs `bld login` to authenticate (no auto-login). Output notes that region access is granted separately, so a new account may not have access to any region yet. DefaultApi#signup does not exist in the generated SDK yet — it is added by a follow-up buildio/sdk-crystal-lang PR referencing this one, so this branch does not compile until that SDK update is pinned. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Summary
Adds
bld signup -e user@example.com, a fully CLI-driven signup so an agent can sign a user up on their behalf with just an email address.Build::DefaultApi#signup(email), which sends a verification link to that addressbld loginto authenticateBuild::DefaultApidirectly rather than going throughBase#api(which exits when no token is stored)Build::ApiError, shows the response body'serrorJSON field (falling back to the raw message) and exits non-zerobuild_cli.crand documents it inbld skillsper AGENTS.mdDefaultApi#signupdoes not exist in the generated SDK yet. It is added by a follow-upbuildio/sdk-crystal-langPR that should reference this PR. Until that SDK update is pinned here, this branch fails to build — expected and intentional per the agreed workflow (CLI side first, SDK/server side after).Expected generated method (mirroring
oidc_login):DefaultApi#signup(email : String? = nil)— raisesBuild::ApiErroron non-2xx, where the error body may contain a JSON"error"message for display.Test plan
bld signup --helpand missing--emailerror path verified against a locally built binary (prior raw-HTTP iteration; command wiring unchanged)shards build/crystal speconce the SDK addssignup🤖 Generated with Claude Code