MCPcopy
hub / github.com/codeaashu/claude-code / getLegacyToolNames

Function getLegacyToolNames

src/utils/permissions/permissionRuleParser.ts:35–41  ·  view source on GitHub ↗
(canonicalName: string)

Source from the content-addressed store, hash-verified

33}
34
35export function getLegacyToolNames(canonicalName: string): string[] {
36 const result: string[] = []
37 for (const [legacy, canonical] of Object.entries(LEGACY_TOOL_NAME_ALIASES)) {
38 if (canonical === canonicalName) result.push(legacy)
39 }
40 return result
41}
42
43/**
44 * Escapes special characters in rule content for safe storage in permission rules.

Callers 1

matchesPatternFunction · 0.85

Calls 2

entriesMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected