(row: IntegrationRow)
| 2776 | }; |
| 2777 | |
| 2778 | const describeDisplayForRow = (row: IntegrationRow): IntegrationDisplayDescriptor => { |
| 2779 | const runtime = runtimes.get(row.plugin_id); |
| 2780 | const describe = runtime?.plugin.describeIntegrationDisplay; |
| 2781 | if (!describe) return {}; |
| 2782 | const record = rowToIntegrationRecord(row); |
| 2783 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-authored projector must never fail the catalog read |
| 2784 | try { |
| 2785 | const display = describe(record); |
| 2786 | return { |
| 2787 | ...(display.url && display.url.length > 0 ? { url: display.url } : {}), |
| 2788 | ...(display.family && display.family.length > 0 ? { family: display.family } : {}), |
| 2789 | }; |
| 2790 | } catch { |
| 2791 | return {}; |
| 2792 | } |
| 2793 | }; |
| 2794 | |
| 2795 | // The declared health check off the integration row's own column. CORE |
| 2796 | // owns this storage (never the plugin config blob), so a plugin config |
no test coverage detected