feat(agent): JSON error responses + schema tests
- Add _emit_error() helper: prints {error, message} JSON to stdout (or plain text to stderr) before raising SystemExit(1) - _require_mnemonic, _resolve_hub_url now accept as_json kwarg and forward to _emit_error so agents get structured errors on every failure - run_keygen, run_list, run_register all pass as_json through from args - Add tests/test_agent_json_schema.py (24 tests covering I–IV): keygen schema invariants, list schema, register schema, JSON error paths (IV1–IV6: no_identity, no_mnemonic, invalid_account, no_hub)
sha256:eeff8965a8a5e09879261d0eb6b83c5cb3d2ba08752095b5d712c74ee9e44f41
sha
sha256:320123feb8bb8bd93c310d0f93b63890919fd88c4f5c161bd2f0587e2528d390
snapshot
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:eeff8965a8a5e09879261d0eb6b83c5cb3d2ba08752095b5d712c74ee9e44f41 --body "your comment"
No comments yet. Be the first to start the discussion.