Skip to content

feat: show verification code in all setup modes#85

Open
pcarranzav wants to merge 1 commit intomainfrom
feat/verification-code-all-modes
Open

feat: show verification code in all setup modes#85
pcarranzav wants to merge 1 commit intomainfrom
feat/verification-code-all-modes

Conversation

@pcarranzav
Copy link
Copy Markdown
Member

Summary

  • Restore verificationCode in the CLI output for all setup modes (create, connect, connect_choose). It was added in aa801c8 but accidentally dropped in the 2001d88 consolidation refactor.
  • Update SKILL.md to instruct agents to show the verification code alongside the approval URL so users can cross-check before approving.
  • Add test assertion that verificationCode is 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 pass
  • Manual: run ampersend setup start --name foo in create mode and confirm verificationCode is in output
  • Manual: run ampersend setup start --mode connect and confirm verificationCode is in output
  • Manual: run ampersend setup start --mode connect --agent 0x... and confirm verificationCode is in output

🤖 Generated with Claude Code

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>
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