MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / findModeBySlug

Function findModeBySlug

src/shared/modes.ts:101–103  ·  view source on GitHub ↗
(slug: string, modes: readonly ModeConfig[] | undefined)

Source from the content-addressed store, hash-verified

99 * Find a mode by its slug, don't fall back to built-in modes
100 */
101export function findModeBySlug(slug: string, modes: readonly ModeConfig[] | undefined): ModeConfig | undefined {
102 return modes?.find((mode) => mode.slug === slug)
103}
104
105/**
106 * Get the mode selection based on the provided mode slug, prompt component, and custom modes.

Callers 2

ModesViewFunction · 0.90
getModeSelectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected