MCPcopy Create free account
hub / github.com/anomalyco/opencode / getHoveredLinkText

Function getHoveredLinkText

packages/app/src/utils/runtime-adapters.ts:25–31  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

23}
24
25export const getHoveredLinkText = (value: unknown) => {
26 if (!isRecord(value)) return
27 const link = value.currentHoveredLink
28 if (!isRecord(link)) return
29 if (typeof link.text !== "string") return
30 return link.text
31}
32
33export const getSpeechRecognitionCtor = <T>(value: unknown): (new () => T) | undefined => {
34 if (!isRecord(value)) return

Callers 2

handleLinkClickFunction · 0.90

Calls 1

isRecordFunction · 0.70

Tested by

no test coverage detected