MCPcopy Create free account
hub / github.com/WJX20/claude-code / add

Method add

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

Source from the content-addressed store, hash-verified

439 }
440
441 add(uuid: string): void {
442 if (this.set.has(uuid)) return
443 // Evict the entry at the current write position (if occupied)
444 const evicted = this.ring[this.writeIdx]
445 if (evicted !== undefined) {
446 this.set.delete(evicted)
447 }
448 this.ring[this.writeIdx] = uuid
449 this.set.add(uuid)
450 this.writeIdx = (this.writeIdx + 1) % this.capacity
451 }
452
453 has(uuid: string): boolean {
454 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.80
hasMethod · 0.45

Tested by

no test coverage detected