(map, key)
| 635 | // Commands and events link to their own prose section (`#command-*` / `#event-*`), |
| 636 | // keyed by the wire method; domains to their `#module-*` section. Present-only-when-known. |
| 637 | const link = (map, key) => (typeof key === 'string' ? map?.[key.toLowerCase()] : undefined) |
| 638 | for (const [domain, entry] of Object.entries(model)) { |
| 639 | for (const c of entry.commands ?? []) { |
| 640 | const cmd = { |