MCPcopy Create free account
hub / github.com/Ark0N/Codeman / recordDailyUsage

Method recordDailyUsage

src/state-store.ts:719–770  ·  view source on GitHub ↗

* Record token usage for today. * Accumulates tokens to today's entry, creating it if needed. * @param inputTokens Input tokens to add * @param outputTokens Output tokens to add * @param sessionId Optional session ID for unique session counting

(inputTokens: number, outputTokens: number, sessionId?: string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

_doCleanupSessionMethod · 0.80

Calls 7

getTokenStatsMethod · 0.95
getTodayDateStringMethod · 0.95
saveMethod · 0.95
clearMethod · 0.45
hasMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected