MCPcopy Index your code
hub / github.com/codeaashu/claude-code / setClassifierApproval

Function setClassifierApproval

src/utils/classifierApprovals.ts:19–30  ·  view source on GitHub ↗
(
  toolUseID: string,
  matchedRule: string,
)

Source from the content-addressed store, hash-verified

17const classifierChecking = createSignal()
18
19export function setClassifierApproval(
20 toolUseID: string,
21 matchedRule: string,
22): void {
23 if (!feature('BASH_CLASSIFIER')) {
24 return
25 }
26 CLASSIFIER_APPROVALS.set(toolUseID, {
27 classifier: 'bash',
28 matchedRule,
29 })
30}
31
32export function getClassifierApproval(toolUseID: string): string | undefined {
33 if (!feature('BASH_CLASSIFIER')) {

Callers 3

useCanUseToolFunction · 0.85
tryClassifierFunction · 0.85

Calls 2

featureFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected