(row: IntegrationRow)
| 2115 | }; |
| 2116 | |
| 2117 | const describeDisplayForRow = (row: IntegrationRow): IntegrationDisplayDescriptor => { |
| 2118 | const runtime = runtimes.get(row.plugin_id); |
| 2119 | const describe = runtime?.plugin.describeIntegrationDisplay; |
| 2120 | if (!describe) return {}; |
| 2121 | const record = rowToIntegrationRecord(row); |
| 2122 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-authored projector must never fail the catalog read |
| 2123 | try { |
| 2124 | const display = describe(record); |
| 2125 | return { |
| 2126 | ...(display.url && display.url.length > 0 ? { url: display.url } : {}), |
| 2127 | ...(display.family && display.family.length > 0 ? { family: display.family } : {}), |
| 2128 | }; |
| 2129 | } catch { |
| 2130 | return {}; |
| 2131 | } |
| 2132 | }; |
| 2133 | |
| 2134 | // The declared health check off the integration row's own column. CORE |
| 2135 | // owns this storage (never the plugin config blob), so a plugin config |
no test coverage detected