MCPcopy Create free account
hub / github.com/callstack/agent-device / extractNodeText

Function extractNodeText

src/snapshot/snapshot-processing.ts:162–167  ·  view source on GitHub ↗
(node: SnapshotState['nodes'][number])

Source from the content-addressed store, hash-verified

160}
161
162export function extractNodeText(node: SnapshotState['nodes'][number]): string {
163 const candidates = [node.label, node.value, node.identifier]
164 .map((value) => (typeof value === 'string' ? value.trim() : ''))
165 .filter((value) => value.length > 0);
166 return candidates[0] ?? '';
167}
168
169export function extractNodeReadText(node: SnapshotState['nodes'][number]): string {
170 return extractReadableText(node);

Callers 7

readMaestroTextTermValueFunction · 0.90
evaluateIsPredicateFunction · 0.90
matchesTermFunction · 0.90
buildAmbiguousMatchErrorFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…