Repository navigation
Conversation
…ly surfaced as a raw HTTP 428 body Signup may now ask one short question before it creates an account. The CLI reports it as SIGNUP_CHALLENGE with the question, keeps it in .zenrows/signup-challenge.json across runs, and adds zenrows signup --answer to answer it. A wrong answer shows the new question, and the per-network lock is SIGNUP_CHALLENGE_LOCKED.
… a question first, or which tool answers it
…s, and word problems are no longer asked
This branch has not been deployed
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.
Why
The agent signup endpoint can now ask one short question before it creates an account (HTTP 428,
challenge_required). The CLI only showed that as a raw body incause:, so an agent had no clear way to answer it, and every CLI run is a new process with no memory of the question.What changed
challenge_requiredbecomes the errorSIGNUP_CHALLENGE. The message carries the question,next_actionsays to runzenrows signup --answer "<your answer>"and then re-run the original command, and--jsonaddserror.challenge(id,question,expires_at)..zenrows/signup-challenge.json(no secret: id, question, expiry, and the signup URL that asked it). The file is added to the workspace.gitignorelist.zenrows signup --answer <text>posts{challenge_id, answer}to that URL with the usual signup headers. A right answer stores the key and account exactly like auto signup, prints the claim link and says to re-run the original command. A wrong or late answer stores and shows the new question. A 429challenge_lockedbecomesSIGNUP_CHALLENGE_LOCKEDwithretry_after. No pending or an expired question givesSIGNUP_CHALLENGE_MISSINGwithout a request.rate_limited, 503, network errors) behave as before.zenrows signupwithout--answeris unchanged. Help text, README and thezenrowsskill describe the question and how to answer it.How tested
npm run typecheckpasses.npm test: newtests/signup-challenge.test.tscovers 428 parsing and persistence,--jsonshape, ensureApiKey, right / wrong / locked / none pending / expired answers,signup --answer --json, and a non-challenge 428. Existing signup tests (201, fallback, 429 rate limited) pass unchanged.zenrows fetchshowed the question, a wrong answer showed a new one, the right answer stored the key and account, and a second--answerreported no pending question.