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

Function isPartHighlighted

packages/ai-devtools/src/components/hooks/preview-model.ts:59–68  ·  view source on GitHub ↗
(
  messageId: string,
  partId: string,
  target: HoverTarget | null,
)

Source from the content-addressed store, hash-verified

57}
58
59export function isPartHighlighted(
60 messageId: string,
61 partId: string,
62 target: HoverTarget | null,
63): boolean {
64 if (!target) return false
65 return (
66 target.partIds.includes(partId) || target.messageIds.includes(messageId)
67 )
68}
69
70export function isMessageOrPartHighlighted(
71 messageId: string,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected