feat: show verification code in all setup modes#85
Open
pcarranzav wants to merge 1 commit intomainfrom
Open
Conversation
The verification code was added in aa801c8 but accidentally dropped in the 2001d88 consolidation refactor. Restore it so agents can show the code to users for cross-checking in all setup modes (create, connect, connect_choose). - setup.ts: compute verificationCode from keccak256(agentKeyAddress) and include it in the CLI output - setup.test.ts: assert verificationCode is present in the output - SKILL.md: instruct agents to show verificationCode alongside the approval URL so users can confirm the code matches before approving Co-Authored-By: Claude Opus 4.6 (1M context) <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
verificationCodein the CLI output for all setup modes (create, connect, connect_choose). It was added in aa801c8 but accidentally dropped in the 2001d88 consolidation refactor.verificationCodeis present in the setup start output.Companion dashboard PR: edgeandnode/ampersend#feat/verification-code-all-modes shows the code in the UI for all modes so the cross-check actually works end-to-end.
Test plan
pnpm --filter ampersend-sdk test tests/cli/setup.test.ts— all 28 tests passampersend setup start --name fooin create mode and confirmverificationCodeis in outputampersend setup start --mode connectand confirmverificationCodeis in outputampersend setup start --mode connect --agent 0x...and confirmverificationCodeis in output🤖 Generated with Claude Code