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 4 commits into
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 |
eb66a40 to
11d18af
Compare
…ybrid pattern doc
fe80e78 to
9e7d738
Compare
|
Fix already landed in main via refactor in #397 (ttyOutput routes human-readable wallet list to stderr). Branch is 0 commits ahead of main. |
|
Reopening this line of work in #576. This PR was closed on the understanding that the fix had already landed via #397 — but #397's diff only extracted a |
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.