Expand description
Front-end-agnostic reporting-structure shape for a team.
Computes the “You → managers → workers” reporting tree as structured
data — no ANSI, no ratatui — so both the CLI init preview and the
TUI detail panel can render it from a single source of truth. The
grouping and ordering mirror teamctl init’s team-structure preview
exactly (managers id-sorted via the BTreeMap key order, then orphan
workers at the top level, workers nested under the manager they
reports_to); the only thing dropped here is the color.
Structs§
- Shape
Row - One row of a team’s reporting tree — depth-indented, front-end-agnostic.
Enums§
Functions§
- agent_
descriptor - One-line descriptor for an agent: runtime label, model label (only
when pinned), then
N×a N×s N×h N×mcounts (subagents/skills/hooks/ mcps). Identical output toinit.rs::agent_descriptor. - team_
shape - Walk the given projects into one “You → managers → workers” tree.