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
40
//! `agents` subcommand - a session's subagent TOPOLOGY, with time-window filters.
//!
//! For each in-scope top-level session, build the toolUseId-linked topology (see
//! [`crate::subagent::build_topology`]): discover its subagent transcripts (built-in
//! Task/Agent-tool + workflow / OMC agents), join each back to the parent tool_use that
//! spawned it, and emit one [`SubagentNode`] per subagent carrying its id, kind,
//! `agentType`, TRUE trigger time (the parent tool_use ts), start + completion
//! timestamps, status, the 3-way-resolved returned message (on demand), and the
//! files-changed list (on demand). The output is ALWAYS the parent->child tree: workflow
//! RUN nodes (from the top-level `workflows/wf_*.json` manifests) parent their workflow
//! agents, and a nested sub-subagent renders under its spawning agent.
//!
//! `--since`/`--until` (ISO8601 or relative, system-local) filter by TRIGGER time by
//! default; `--order-by start|completion` switch the ordering/window axis. Files are
//! processed in parallel across sessions, then sorted for deterministic output.
use Path;
use ;
use *;
use crate;
use cratepath;
use crate;
use crateTimeWindow;
use crate;
pub use *;
pub use *;
pub use *;