(row: IntegrationRow)
| 2210 | }; |
| 2211 | |
| 2212 | const describeDisplayForRow = (row: IntegrationRow): IntegrationDisplayDescriptor => { |
| 2213 | const runtime = runtimes.get(row.plugin_id); |
| 2214 | const describe = runtime?.plugin.describeIntegrationDisplay; |
| 2215 | if (!describe) return {}; |
| 2216 | const record = rowToIntegrationRecord(row); |
| 2217 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-authored projector must never fail the catalog read |
| 2218 | try { |
| 2219 | const display = describe(record); |
| 2220 | return { |
| 2221 | ...(display.url && display.url.length > 0 ? { url: display.url } : {}), |
| 2222 | ...(display.family && display.family.length > 0 ? { family: display.family } : {}), |
| 2223 | }; |
| 2224 | } catch { |
| 2225 | return {}; |
| 2226 | } |
| 2227 | }; |
| 2228 | |
| 2229 | // The declared health check off the integration row's own column. CORE |
| 2230 | // owns this storage (never the plugin config blob), so a plugin config |
no test coverage detected