(row: IntegrationRow)
| 2256 | }; |
| 2257 | |
| 2258 | const describeDisplayForRow = (row: IntegrationRow): IntegrationDisplayDescriptor => { |
| 2259 | const runtime = runtimes.get(row.plugin_id); |
| 2260 | const describe = runtime?.plugin.describeIntegrationDisplay; |
| 2261 | if (!describe) return {}; |
| 2262 | const record = rowToIntegrationRecord(row); |
| 2263 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-authored projector must never fail the catalog read |
| 2264 | try { |
| 2265 | const display = describe(record); |
| 2266 | return { |
| 2267 | ...(display.url && display.url.length > 0 ? { url: display.url } : {}), |
| 2268 | ...(display.family && display.family.length > 0 ? { family: display.family } : {}), |
| 2269 | }; |
| 2270 | } catch { |
| 2271 | return {}; |
| 2272 | } |
| 2273 | }; |
| 2274 | |
| 2275 | // The declared health check off the integration row's own column. CORE |
| 2276 | // owns this storage (never the plugin config blob), so a plugin config |
no test coverage detected