gabriel / muse public
fix patch task/cli-flag-audit-age #6 / 24
AI Agent gabriel · 157 days ago · Apr 20, 2026 · Diff

fix: agent list --json wraps in envelope with slots key

Restore _ListJson TypedDict and make_envelope call so agent list --json returns {slots: [...], muse_version, schema, timestamp, warnings, ...} instead of a bare array. Fix test_agent_json_schema.py to unpack data["slots"] — test_II1 now verifies envelope shape, not bare list. Restore test_cmd_agent.py ["slots"] accesses.

sha256:b2e36b60c352e46889e02deb72f5e348f845451a2cbe10085c579718b553865f sha
+4 ~15 −2 symbols
sha256:efc09392a3a7b128443bbc398ae6c99498b23b7fa36368fadd54ce20cf1a58f8 snapshot
+4
symbols added
~15
symbols modified
−2
symbols removed
0
dead code introduced
Semantic Changes 21 symbols
~ muse/cli/commands/agent.py .py 1 symbol added, 1 symbol modified
+ _ListJson class class _ListJson L133–136
~ tests/test_agent_json_schema.py .py 3 symbols added, 2 symbols removed, 5 symbols modified
test_II1_returns_json_array method method test_II1_returns_json_array L225–233
test_II2_empty_array_when_no_slots method method test_II2_empty_array_when_no_slots L235–243
+ _list_data method method _list_data L225–226
+ test_II1_returns_json_object_with_slots method method test_II1_returns_json_object_with_slots L228–237
+ test_II2_empty_slots_when_no_slots method method test_II2_empty_slots_when_no_slots L239–247

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:b2e36b60c352e46889e02deb72f5e348f845451a2cbe10085c579718b553865f --body "your comment"