From b3da4cfcac5fe7b4dcf4681de82b3f80e3b08eeb Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Mon, 6 Jul 2026 18:27:29 -0700 Subject: [PATCH] Transcript Incremental Projection Nucleic-Session: 0FFD007B-0696-4517-9429-129C7B0FD5AC Co-authored-by: Nucleic --- .../NucleicRemote/Views/TranscriptRow.swift | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/NucleicRemote/NucleicRemote/Views/TranscriptRow.swift b/NucleicRemote/NucleicRemote/Views/TranscriptRow.swift index f492cec..ebe23b2 100644 --- a/NucleicRemote/NucleicRemote/Views/TranscriptRow.swift +++ b/NucleicRemote/NucleicRemote/Views/TranscriptRow.swift @@ -250,20 +250,8 @@ extension JSONValue { return canonical == "null" ? "" : canonical } - /// A one-line gist of a tool input/result for the collapsed row. - var compactSummary: String { - switch self { - case .string(let s): return s - case .object(let o): - if let cmd = o["command"]?.stringValue { return cmd } - if let path = o["file_path"]?.stringValue ?? o["path"]?.stringValue { return path } - return o.keys.sorted().joined(separator: ", ") - case .array(let a): return "[\(a.count) items]" - case .number(let n): return String(n) - case .bool(let b): return String(b) - case .null: return "null" - } - } + // (`compactSummary` — the one-line gist — lives in TranscriptProjection.swift, which builds + // standalone as the host-testable NucleicRemoteProjection SwiftPM target and needs it there.) /// The full, **untruncated** content of a tool input for the approval card — /// the user must see exactly what they are granting before allowing. Unlike