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

Function mergeExcludeTools

packages/cli/src/config/config.ts:619–634  ·  view source on GitHub ↗
(
  settings: Settings,
  extensions: Extension[],
  extraExcludes?: string[] | undefined,
)

Source from the content-addressed store, hash-verified

617}
618
619function mergeExcludeTools(
620 settings: Settings,
621 extensions: Extension[],
622 extraExcludes?: string[] | undefined,
623): string[] {
624 const allExcludeTools = new Set([
625 ...(settings.excludeTools || []),
626 ...(extraExcludes || []),
627 ]);
628 for (const extension of extensions) {
629 for (const tool of extension.config.excludeTools || []) {
630 allExcludeTools.add(tool);
631 }
632 }
633 return [...allExcludeTools];
634}

Callers 1

loadCliConfigFunction · 0.85

Calls 1

addMethod · 0.80

Tested by

no test coverage detected