MCPcopy
hub / github.com/codeaashu/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

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected