MCPcopy Create free account
hub / github.com/ZingerLittleBee/ServerBee / getFeaturedCommands

Function getFeaturedCommands

scripts/make-menu.ts:477–477  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

475export const getCommandByKey = (key: string): CommandDefinition | undefined => COMMANDS_BY_KEY.get(key)
476
477const getFeaturedCommands = (): CommandDefinition[] => COMMANDS.filter((command) => command.featured)
478
479export const getMenuColumnWidths = (commands: CommandDefinition[]): MenuColumnWidths => ({
480 categoryWidth: Math.max(...commands.map((command) => command.category.length)),

Callers 1

openMenuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected