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

Function setActiveMod

apps/webuiapps/src/lib/modManager.ts:314–317  ·  view source on GitHub ↗
(collection: ModCollection, id: string)

Source from the content-addressed store, hash-verified

312}
313
314export function setActiveMod(collection: ModCollection, id: string): ModCollection {
315 if (!collection.items[id]) return collection;
316 return { ...collection, activeId: id };
317}
318
319// ---------------------------------------------------------------------------
320// Backward compat wrappers

Callers 1

ShellFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected