MCPcopy Index your code
hub / github.com/TanStack/ai / getActiveBridgeRegistry

Function getActiveBridgeRegistry

packages/ai-client/src/devtools.ts:407–417  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

405)
406
407function getActiveBridgeRegistry(): Map<string, ActiveDevtoolsBridge> {
408 const global = globalThis as typeof globalThis & {
409 [activeBridgeRegistryKey]?: Map<string, ActiveDevtoolsBridge>
410 }
411 const existing = global[activeBridgeRegistryKey]
412 if (existing) return existing
413
414 const registry = new Map<string, ActiveDevtoolsBridge>()
415 global[activeBridgeRegistryKey] = registry
416 return registry
417}
418
419export class ClientDevtoolsBridge<TSnapshot extends object> {
420 protected readonly options: AIDevtoolsBridgeOptions<TSnapshot>

Callers 2

deactivateMethod · 0.85
activateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected