MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getTotalInputTokens

Function getTotalInputTokens

source code/bootstrap/state.ts:706–708  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

704}
705
706export function getTotalInputTokens(): number {
707 return sumBy(Object.values(STATE.modelUsage), 'inputTokens')
708}
709
710export function getTotalOutputTokens(): number {
711 return sumBy(Object.values(STATE.modelUsage), 'outputTokens')

Callers 4

saveCurrentSessionCostsFunction · 0.85
hasPermissionsToUseToolFunction · 0.85
REPLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected