(ns)
| 806 | const vendor = {} |
| 807 | const anchors = new Set() |
| 808 | const section = (ns) => (vendor[ns] ??= { extends: {}, commands: [], events: [], types: {} }) |
| 809 | for (const kind of ['commands', 'events']) |
| 810 | for (const { vendor: ns, ...clean } of messages[kind]) section(ns)[kind].push(clean) |
| 811 | for (const [typeName, node] of Object.entries(types)) { |