MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / f

Function f

restored-src/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 11

applyEditToFileFunction · 0.50
maybeFunction · 0.50
memoizedFunction · 0.50
REPLFunction · 0.50
withFixtureFunction · 0.50
withVCRFunction · 0.50
mapMessagesFunction · 0.50
mapValuesDeepFunction · 0.50
mapAssistantMessageFunction · 0.50
withStreamingVCRFunction · 0.50
withTokenCountVCRFunction · 0.50

Calls 4

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

Tested by

no test coverage detected