MCPcopy
hub / github.com/CodebuffAI/codebuff / subscribeToActivity

Function subscribeToActivity

cli/src/utils/activity-tracker.ts:53–58  ·  view source on GitHub ↗
(callback: ActivityListener)

Source from the content-addressed store, hash-verified

51 * @returns Unsubscribe function
52 */
53export function subscribeToActivity(callback: ActivityListener): () => void {
54 listeners.add(callback)
55 return () => {
56 listeners.delete(callback)
57 }
58}
59
60/**
61 * Reset the activity tracker (mainly for testing).

Callers 3

useGravityAdFunction · 0.90
useActivityQueryFunction · 0.90

Calls 1

deleteMethod · 0.80

Tested by

no test coverage detected