(role)
| 344 | } |
| 345 | |
| 346 | function formatMemoryRole(role) { |
| 347 | const value = String(role || ""); |
| 348 | if (value === "assistant") return "assistant"; |
| 349 | if (value === "user") return "owner"; |
| 350 | return value || "消息"; |
| 351 | } |
| 352 | |
| 353 | function renderGroups(groups) { |
| 354 | els.groupCount.textContent = `${groups.length} 个`; |
no outgoing calls
no test coverage detected