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

Function onDivergence

src/tools/BashTool/bashPermissions.ts:2352–2354  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2350 // via process.memoryUsage()). Aggregate count preserves the signal.
2351 let divergenceCount = 0
2352 const onDivergence = () => {
2353 divergenceCount++
2354 }
2355 const results = await Promise.all(
2356 subcommands.map(c => bashCommandIsSafeAsync(c, onDivergence)),
2357 )

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected