MCPcopy Create free account
hub / github.com/bea4dev/ShojiWM / resolveComposition

Function resolveComposition

tools/decoration-runtime.ts:3311–3326  ·  view source on GitHub ↗
(
  loaded: Record<string, unknown>,
)

Source from the content-addressed store, hash-verified

3309 return undefined;
3310 }
3311 const node = tree as { nodeId?: unknown; children?: unknown[] };
3312 if (node.nodeId === nodeId) {
3313 return tree;
3314 }
3315 for (const child of node.children ?? []) {
3316 const found = findSerializedNode(child, nodeId);
3317 if (found !== undefined) {
3318 return found;
3319 }
3320 }
3321 return undefined;
3322}
3323
3324function summarizeSerializedLabels(node: unknown): unknown[] {
3325 const labels: unknown[] = [];
3326 collectSerializedLabels(node, labels);
3327 return labels;
3328}
3329

Callers 1

loadRuntimeConfigFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected