MCPcopy Create free account
hub / github.com/Epic0522/Codex-Remote-Contact / formatMemoryRole

Function formatMemoryRole

modules/mac-client/Resources/client.js:346–351  ·  view source on GitHub ↗
(role)

Source from the content-addressed store, hash-verified

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

Callers 1

renderMemoryEntriesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected