const L = (await eda.pcb_PrimitiveLine.getAll()); const l11 = L.filter(o=>o.layer===11); const o = l11[0]; const proto = Object.getPrototypeOf(o); const ms = Object.getOwnPropertyNames(proto).filter(n=>typeof o[n]==='function'); const vals = {}; for (const m of ms) { if (/^getState_/.test(m)) { try { const v = await o[m](); vals[m] = (typeof v==='object'? JSON.stringify(v).slice(0,80) : String(v)); } catch(e){ vals[m]='ERR'; } } } return {methods: ms.slice(0,40), vals};