Skip to main content

Module preview

Module preview 

Source
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§

ShapeRow
One row of a team’s reporting tree — depth-indented, front-end-agnostic.

Enums§

ShapeKind

Functions§

agent_descriptor
One-line descriptor for an agent: runtime label, model label (only when pinned), then N×a N×s N×h N×m counts (subagents/skills/hooks/ mcps). Identical output to init.rs::agent_descriptor.
team_shape
Walk the given projects into one “You → managers → workers” tree.