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

Function getRoleDefinition

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

Source from the content-addressed store, hash-verified

218
219// Helper function to safely get role definition
220export function getRoleDefinition(modeSlug: string, customModes?: ModeConfig[]): string {
221 const mode = getModeBySlug(modeSlug, customModes)
222 if (!mode) {
223 console.warn(`No mode found for slug: ${modeSlug}`)
224 return ""
225 }
226 return mode.roleDefinition
227}
228
229// Helper function to safely get description
230export function getDescription(modeSlug: string, customModes?: ModeConfig[]): string {

Callers 1

ModesViewFunction · 0.90

Calls 2

getModeBySlugFunction · 0.85
warnMethod · 0.65

Tested by

no test coverage detected