MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / reportActivity

Function reportActivity

cli/src/utils/activity-tracker.ts:20–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 * - User presses keyboard shortcuts
19 */
20export function reportActivity(): void {
21 lastActivityTime = Date.now()
22 for (const listener of listeners) {
23 listener(lastActivityTime)
24 }
25}
26
27/**
28 * Get the timestamp of the last user activity.

Callers 3

ChatFunction · 0.90
useChatKeyboardFunction · 0.90

Calls 1

listenerFunction · 0.85

Tested by

no test coverage detected