Mark the lead's messages and answers as the lead's, not the human's

This commit is contained in:
Ian Gulliver
2026-10-20 12:20:51 -07:00
parent 181482e5d0
commit 0f33ad4524
14 changed files with 93 additions and 23 deletions
+7
View File
@@ -30,6 +30,13 @@ func dict(_ d: JSONDict, _ key: String) -> JSONDict? {
d[key] as? JSONDict
}
func actorName(_ actor: String) -> String {
guard actor.hasSuffix(" (lead)") else {
return actor
}
return "\(actor.dropLast(" (lead)".count))'s lead agent"
}
func jsString(_ v: (any Sendable)??) -> String {
switch v {
case .none, .some(.none):