Whether a transcript file lives in a `subagents/` directory.
(path: &Path)
| 608 | |
| 609 | /// Whether a transcript file lives in a `subagents/` directory. |
| 610 | fn is_subagent_transcript(path: &Path) -> bool { |
| 611 | path.parent() |
| 612 | .and_then(Path::file_name) |
| 613 | .and_then(|name| name.to_str()) |
| 614 | == Some("subagents") |
| 615 | } |
| 616 | |
| 617 | /// Derive the parent-session id for a swept transcript file from its location: |
| 618 | /// `…/<parent>/subagents/<child>.jsonl` belongs to `<parent>`; anything else |
no outgoing calls
no test coverage detected