MCPcopy Create free account
hub / github.com/codeaashu/claude-code / isDangerousTaskPermission

Function isDangerousTaskPermission

src/utils/permissions/permissionSetup.ts:240–245  ·  view source on GitHub ↗
(
  toolName: string,
  _ruleContent: string | undefined,
)

Source from the content-addressed store, hash-verified

238 * can evaluate the sub-agent's prompt, defeating delegation attack prevention.
239 */
240export function isDangerousTaskPermission(
241 toolName: string,
242 _ruleContent: string | undefined,
243): boolean {
244 return normalizeLegacyToolName(toolName) === AGENT_TOOL_NAME
245}
246
247function formatPermissionSource(source: PermissionRuleSource): string {
248 if ((SETTING_SOURCES as readonly string[]).includes(source)) {

Callers 1

Calls 1

normalizeLegacyToolNameFunction · 0.85

Tested by

no test coverage detected