MCPcopy
hub / github.com/claude-code-best/claude-code / f

Function f

src/costHook.ts:10–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8): void {
9 useEffect(() => {
10 const f = () => {
11 if (hasConsoleBillingAccess()) {
12 process.stdout.write('\n' + formatTotalCost() + '\n')
13 }
14
15 saveCurrentSessionCosts(getFpsMetrics?.())
16 }
17 process.on('exit', f)
18 return () => {
19 process.off('exit', f)

Callers 15

memoizedFunction · 0.85
applyEditToFileFunction · 0.85
maybeFunction · 0.85
memoizedFunction · 0.85
createSetAppStateFunction · 0.85
REPLFunction · 0.85
withFixtureFunction · 0.85
withVCRFunction · 0.85
mapMessagesFunction · 0.85
mapValuesDeepFunction · 0.85
mapAssistantMessageFunction · 0.85
withStreamingVCRFunction · 0.85

Calls 4

hasConsoleBillingAccessFunction · 0.85
formatTotalCostFunction · 0.85
saveCurrentSessionCostsFunction · 0.85
writeMethod · 0.45

Tested by 4

createSetAppStateFunction · 0.68
createSetStateFunction · 0.68
createSetAppStateFunction · 0.68
setAppStateFunction · 0.68