Add Markdown Formatting

Nucleic-Session: 23936B4B-52E9-43F5-908B-C7919A5BD6DD
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-06-27 20:23:30 -07:00
co-authored by Nucleic
parent 05883d6a91
commit 13d4b302b9
@@ -177,18 +177,22 @@ struct HostCommandBreakdown: View {
/// The deterministic, command-derived purpose — labeled so the user knows it's *Nucleic's*
/// reading of the command, not the agent's claim about it.
private var purposeRow: some View {
HStack(alignment: .top, spacing: 9) {
Image(systemName: "sparkles").font(.callout).foregroundStyle(accent).frame(width: 16)
VStack(alignment: .leading, spacing: 2) {
Text("Likely purpose · inferred from the command")
.font(.caption2.weight(.semibold)).foregroundStyle(.secondary)
HStack(alignment: .top, spacing: 10) {
Image(systemName: "sparkles").font(.title3).foregroundStyle(accent).frame(width: 22)
VStack(alignment: .leading, spacing: 3) {
Text(MessageBubble.markdown(summary.purpose))
.font(.callout.weight(.semibold))
.font(.title3.weight(.semibold))
.fixedSize(horizontal: false, vertical: true)
.textSelection(.enabled)
Text("Likely purpose · inferred from the command")
.font(.caption2.weight(.medium)).foregroundStyle(.secondary)
}
Spacer(minLength: 0)
}
.padding(.horizontal, 11).padding(.vertical, 9)
.frame(maxWidth: .infinity, alignment: .leading)
.background(accent.opacity(0.12), in: RoundedRectangle(cornerRadius: 8))
.overlay(RoundedRectangle(cornerRadius: 8).strokeBorder(accent.opacity(0.22), lineWidth: 1))
}
/// A red banner for the two things a host command most needs flagged before "Allow": running