MCPcopy Create free account
hub / github.com/MiniMax-AI/OpenRoom / addCharacter

Function addCharacter

apps/webuiapps/src/lib/characterManager.ts:252–257  ·  view source on GitHub ↗
(
  collection: CharacterCollection,
  char: CharacterConfig,
)

Source from the content-addressed store, hash-verified

250}
251
252export function addCharacter(
253 collection: CharacterCollection,
254 char: CharacterConfig,
255): CharacterCollection {
256 return { ...collection, items: { ...collection.items, [char.id]: char } };
257}
258
259export function updateCharacter(
260 collection: CharacterCollection,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected