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

Function recordDenial

src/utils/permissions/denialTracking.ts:24–30  ·  view source on GitHub ↗
(state: DenialTrackingState)

Source from the content-addressed store, hash-verified

22}
23
24export function recordDenial(state: DenialTrackingState): DenialTrackingState {
25 return {
26 ...state,
27 consecutiveDenials: state.consecutiveDenials + 1,
28 totalDenials: state.totalDenials + 1,
29 }
30}
31
32export function recordSuccess(state: DenialTrackingState): DenialTrackingState {
33 if (state.consecutiveDenials === 0) return state // No change needed

Callers 1

hasPermissionsToUseToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected