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

Function addMod

apps/webuiapps/src/lib/modManager.ts:285–293  ·  view source on GitHub ↗
(collection: ModCollection, config: ModConfig)

Source from the content-addressed store, hash-verified

283}
284
285export function addMod(collection: ModCollection, config: ModConfig): ModCollection {
286 return {
287 ...collection,
288 items: {
289 ...collection.items,
290 [config.id]: { config, state: defaultState(config) },
291 },
292 };
293}
294
295export function updateModEntry(collection: ModCollection, entry: ModEntry): ModCollection {
296 return {

Callers 1

ShellFunction · 0.90

Calls 1

defaultStateFunction · 0.85

Tested by

no test coverage detected