1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! `tm agent` — inspect the deployed agent roster's declared skills (DOC-42).
//!
//! Why: `docs/specs/agent-bundled-skills.md` §SPEC-AGENTSKILLS-04 requires
//! that `skills:` declarations and their 3-tier resolution be visible from
//! the CLI, so an operator debugging a missing-skill error can see, per
//! agent, which skills it declares and whether each one resolves.
//! What: [`AgentAction`] — `list` (every deployed agent, one line each) and
//! `show <name>` (one agent's full metadata plus per-skill resolution).
//! Test: `cli_parses_agent_list`, `cli_parses_agent_show` in `tests.rs`.
use Subcommand;
/// Actions for the `agent` subcommand.
///
/// Why: a roster-wide summary and a single-agent deep-dive are the two
/// distinct read shapes an operator needs — mirroring `tm catalog ls` (list)
/// versus a hypothetical per-item show.
/// What: `List` prints every deployed agent with its declared skills; `Show`
/// prints one agent's full frontmatter plus each declared skill's resolved
/// tier (or `NOT FOUND`).
/// Test: `cli_parses_agent_list`, `cli_parses_agent_show`,
/// `cli_parses_agent_list_json`.
pub