diff --git a/NucleicRemote/NucleicRemote/Views/Transcript/TranscriptProjection.swift b/NucleicRemote/NucleicRemote/Views/Transcript/TranscriptProjection.swift index 8682bdf..38e04fc 100644 --- a/NucleicRemote/NucleicRemote/Views/Transcript/TranscriptProjection.swift +++ b/NucleicRemote/NucleicRemote/Views/Transcript/TranscriptProjection.swift @@ -79,6 +79,13 @@ struct ToolGroup: Equatable { /// Subagent orchestration (`Task`/`Agent`) gets the gold card treatment, like the Mac. var isOrchestration: Bool { name == "Task" || name == "Agent" } var isAskUserQuestion: Bool { name == "AskUserQuestion" } + + /// The literal shell command a `Bash` call ran, if any (nil for every other tool). Used to + /// detect a git-commit pipeline that should read as a structured commit card at the row level, + /// exactly as the Mac promotes it out of the generic tool row. + var bashCommand: String? { + (name == "Bash" || name == "Shell") ? input["command"]?.stringValue : nil + } } enum TranscriptProjection {