MCPcopy Create free account
hub / github.com/TanStack/ai / isForeignClientRuntimeEvent

Function isForeignClientRuntimeEvent

packages/ai-devtools/src/store/hook-registry.ts:512–518  ·  view source on GitHub ↗
(event: RuntimeScopedHookEvent)

Source from the content-addressed store, hash-verified

510}
511
512function isForeignClientRuntimeEvent(event: RuntimeScopedHookEvent): boolean {
513 return (
514 event.source === 'client' &&
515 typeof event.runtimeId === 'string' &&
516 event.runtimeId !== getLocalAIDevtoolsRuntimeId()
517 )
518}
519
520declare global {
521 var __TANSTACK_AI_DEVTOOLS_RUNTIME_ID__: string | undefined

Callers 1

applyHookEventFunction · 0.85

Calls 1

Tested by

no test coverage detected