MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / is_subagent_transcript

Function is_subagent_transcript

src/sessions/cursor.rs:610–615  ·  view source on GitHub ↗

Whether a transcript file lives in a `subagents/` directory.

(path: &Path)

Source from the content-addressed store, hash-verified

608
609/// Whether a transcript file lives in a `subagents/` directory.
610fn 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

Callers 2

transcript_pathsMethod · 0.85
sweep_parent_session_idFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected