MCPcopy Create free account
hub / github.com/freecodexyz/free-code / constructor

Method constructor

src/utils/activityManager.ts:28–33  ·  view source on GitHub ↗
(options?: ActivityManagerOptions)

Source from the content-addressed store, hash-verified

26 private static instance: ActivityManager | null = null
27
28 constructor(options?: ActivityManagerOptions) {
29 this.getNow = options?.getNow ?? (() => Date.now())
30 this.getActiveTimeCounter =
31 options?.getActiveTimeCounter ?? getActiveTimeCounterImpl
32 this.lastCLIRecordedTime = this.getNow()
33 }
34
35 static getInstance(): ActivityManager {
36 if (!ActivityManager.instance) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected