(row: IntegrationRow)
| 2196 | }; |
| 2197 | |
| 2198 | const describeDisplayForRow = (row: IntegrationRow): IntegrationDisplayDescriptor => { |
| 2199 | const runtime = runtimes.get(row.plugin_id); |
| 2200 | const describe = runtime?.plugin.describeIntegrationDisplay; |
| 2201 | if (!describe) return {}; |
| 2202 | const record = rowToIntegrationRecord(row); |
| 2203 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-authored projector must never fail the catalog read |
| 2204 | try { |
| 2205 | const display = describe(record); |
| 2206 | return { |
| 2207 | ...(display.url && display.url.length > 0 ? { url: display.url } : {}), |
| 2208 | ...(display.family && display.family.length > 0 ? { family: display.family } : {}), |
| 2209 | }; |
| 2210 | } catch { |
| 2211 | return {}; |
| 2212 | } |
| 2213 | }; |
| 2214 | |
| 2215 | // The declared health check off the integration row's own column. CORE |
| 2216 | // owns this storage (never the plugin config blob), so a plugin config |
no test coverage detected