Mark the lead's messages and answers as the lead's, not the human's
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user