fix: wallet list routes human-readable summary to stderr, keeps only JSON on stdout#289
fix: wallet list routes human-readable summary to stderr, keeps only JSON on stdout#289yodablocks wants to merge 5 commits intonansen-ai:mainfrom
Conversation
pr-reviewer Summary✅ No issues found The code review completed successfully with no findings. Review effort: 2/5 (Simple) SummaryThis PR implements the "Hybrid command" pattern for Key changes are correct:
No bugs, security issues, or AGENTS.md violations found. Token usage: 837 input, 6,235 output, 178,042 cache read, 29,929 cache write |
|
Note for reviewers: the bot flagged that interactive users will see JSON on stdout alongside human-readable stderr output in a terminal. Happy to add a |
…ybrid pattern doc
eb66a40 to
11d18af
Compare
Closes #154
Problem
nansen wallet listwas outputting human-readable text only (no JSON),breaking agent pipelines that rely on
| jq .History
This PR completes that TODO
stderr(interactive users still see it)stdout(agent pipelines work:nansen wallet list | jq .)Changes
src/wallet.js— addedttyOutput = console.errordep, switched list handler to use itsrc/__tests__/wallet.test.js— added ttyOutput mock + explicit stderr/stdout separation test.changeset/fix-wallet-list-stderr.md— patch changesetTests
929 tests pass, lint clean.