MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / getCategoryRegistry

Function getCategoryRegistry

src/services/commandAccessService.js:97–105  ·  view source on GitHub ↗
(client, categoryKey = null)

Source from the content-addressed store, hash-verified

95}
96
97export function getCategoryRegistry(client, categoryKey = null) {
98 const registry = buildCommandRegistry(client);
99
100 if (!categoryKey) {
101 return registry;
102 }
103
104 return registry.get(normalizeCategoryKey(categoryKey)) || null;
105}
106
107export function isProtectedCommand(commandName) {
108 return PROTECTED_COMMANDS.has(String(commandName || '').toLowerCase());

Callers 3

disableCategoryFunction · 0.85
enableCategoryFunction · 0.85
resetCategoryCommandsFunction · 0.85

Calls 3

normalizeCategoryKeyFunction · 0.90
buildCommandRegistryFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected