Add Markdown Formatting
Nucleic-Session: 23936B4B-52E9-43F5-908B-C7919A5BD6DD Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -177,18 +177,22 @@ struct HostCommandBreakdown: View {
|
|||||||
/// The deterministic, command-derived purpose — labeled so the user knows it's *Nucleic's*
|
/// 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.
|
/// reading of the command, not the agent's claim about it.
|
||||||
private var purposeRow: some View {
|
private var purposeRow: some View {
|
||||||
HStack(alignment: .top, spacing: 9) {
|
HStack(alignment: .top, spacing: 10) {
|
||||||
Image(systemName: "sparkles").font(.callout).foregroundStyle(accent).frame(width: 16)
|
Image(systemName: "sparkles").font(.title3).foregroundStyle(accent).frame(width: 22)
|
||||||
VStack(alignment: .leading, spacing: 2) {
|
VStack(alignment: .leading, spacing: 3) {
|
||||||
Text("Likely purpose · inferred from the command")
|
|
||||||
.font(.caption2.weight(.semibold)).foregroundStyle(.secondary)
|
|
||||||
Text(MessageBubble.markdown(summary.purpose))
|
Text(MessageBubble.markdown(summary.purpose))
|
||||||
.font(.callout.weight(.semibold))
|
.font(.title3.weight(.semibold))
|
||||||
.fixedSize(horizontal: false, vertical: true)
|
.fixedSize(horizontal: false, vertical: true)
|
||||||
.textSelection(.enabled)
|
.textSelection(.enabled)
|
||||||
|
Text("Likely purpose · inferred from the command")
|
||||||
|
.font(.caption2.weight(.medium)).foregroundStyle(.secondary)
|
||||||
}
|
}
|
||||||
Spacer(minLength: 0)
|
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
|
/// A red banner for the two things a host command most needs flagged before "Allow": running
|
||||||
|
|||||||
Reference in New Issue
Block a user