const a = await eda.pcb_Primitive.getAll(); const by = {}; for (const o of a) { const k = (o.primitiveType||'?') + '@' + (o.layer!==undefined?o.layer:'-'); by[k]=(by[k]||0)+1; } const l11 = a.filter(o=>o.layer===11).map(o=>o.primitiveType); return {total: a.length, byType: by, l11count: l11.length, l11types: [...new Set(l11)]};