()
| 405 | ) |
| 406 | |
| 407 | function 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 | |
| 419 | export class ClientDevtoolsBridge<TSnapshot extends object> { |
| 420 | protected readonly options: AIDevtoolsBridgeOptions<TSnapshot> |
no outgoing calls
no test coverage detected