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

Function getModeDescription

webview-ui/src/utils/context-mentions.ts:13–15  ·  view source on GitHub ↗

* Gets the description for a mode, prioritizing description > whenToUse > roleDefinition * and taking only the first line

(mode: ModeConfig)

Source from the content-addressed store, hash-verified

11 * and taking only the first line
12 */
13function getModeDescription(mode: ModeConfig): string {
14 return (mode.description || mode.whenToUse || mode.roleDefinition).split("\n")[0]
15}
16
17export interface SearchResult {
18 path: string

Callers 1

getContextMenuOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected