MCPcopy
hub / github.com/claude-code-best/claude-code / add

Method add

src/bridge/bridgeMessaging.ts:544–554  ·  view source on GitHub ↗
(uuid: string)

Source from the content-addressed store, hash-verified

542 }
543
544 add(uuid: string): void {
545 if (this.set.has(uuid)) return
546 // Evict the entry at the current write position (if occupied)
547 const evicted = this.ring[this.writeIdx]
548 if (evicted !== undefined) {
549 this.set.delete(evicted)
550 }
551 this.ring[this.writeIdx] = uuid
552 this.set.add(uuid)
553 this.writeIdx = (this.writeIdx + 1) % this.capacity
554 }
555
556 has(uuid: string): boolean {
557 return this.set.has(uuid)

Callers 14

initEnvLessBridgeCoreFunction · 0.95
initBridgeCoreFunction · 0.95
drainFlushGateFunction · 0.45
writeMessagesFunction · 0.45
writeSdkMessagesFunction · 0.45
handleIngressMessageFunction · 0.45
drainFlushGateFunction · 0.45
wireTransportFunction · 0.45
writeMessagesFunction · 0.45
writeSdkMessagesFunction · 0.45
trackCleanupFunction · 0.45
onSessionDoneFunction · 0.45

Calls 2

deleteMethod · 0.65
hasMethod · 0.45

Tested by

no test coverage detected