MCPcopy Create free account
hub / github.com/anus-dev/ANUS / load

Function load

packages/cli/src/ui/hooks/slashCommandProcessor.ts:214–225  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212 useEffect(() => {
213 const controller = new AbortController();
214 const load = async () => {
215 const loaders = [
216 new McpPromptLoader(config),
217 new BuiltinCommandLoader(config),
218 new FileCommandLoader(config),
219 ];
220 const commandService = await CommandService.create(
221 loaders,
222 controller.signal,
223 );
224 setCommands(commandService.getCommands());
225 };
226
227 load();
228

Callers 1

useSlashCommandProcessorFunction · 0.85

Calls 2

getCommandsMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected