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

Function findNodeByRef

src/kernel/snapshot.ts:147–149  ·  view source on GitHub ↗
(nodes: SnapshotNode[], ref: string)

Source from the content-addressed store, hash-verified

145}
146
147export function findNodeByRef(nodes: SnapshotNode[], ref: string): SnapshotNode | null {
148 return nodes.find((node) => node.ref === ref) ?? null;
149}
150
151export function buildSnapshotPresentationKey(flags: SnapshotOptions | undefined): string {
152 return JSON.stringify({

Callers 4

resolveRefNodeFunction · 0.90
tryResolveRefNodeFunction · 0.90
waitCommandFunction · 0.90
resolveSnapshotScopeFunction · 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…