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

Function getDescription

src/shared/modes.ts:230–237  ·  view source on GitHub ↗
(modeSlug: string, customModes?: ModeConfig[])

Source from the content-addressed store, hash-verified

228
229// Helper function to safely get description
230export function getDescription(modeSlug: string, customModes?: ModeConfig[]): string {
231 const mode = getModeBySlug(modeSlug, customModes)
232 if (!mode) {
233 console.warn(`No mode found for slug: ${modeSlug}`)
234 return ""
235 }
236 return mode.description ?? ""
237}
238
239// Helper function to safely get whenToUse
240export function getWhenToUse(modeSlug: string, customModes?: ModeConfig[]): string {

Callers 1

ModesViewFunction · 0.90

Calls 2

getModeBySlugFunction · 0.85
warnMethod · 0.65

Tested by

no test coverage detected