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

Function getGroupName

src/shared/modes.ts:19–25  ·  view source on GitHub ↗
(group: GroupEntry)

Source from the content-addressed store, hash-verified

17
18// Helper to extract group name regardless of format
19export function getGroupName(group: GroupEntry): ToolGroup {
20 if (typeof group === "string") {
21 return group
22 }
23
24 return group[0]
25}
26
27// Helper to get all tools for a mode
28export function getToolsForMode(groups: readonly GroupEntry[]): string[] {

Callers 3

isToolAllowedForModeFunction · 0.90
generatePromptFunction · 0.90
getToolsForModeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected