(row: IntegrationRow)
| 2946 | }; |
| 2947 | |
| 2948 | const describeDisplayForRow = (row: IntegrationRow): IntegrationDisplayDescriptor => { |
| 2949 | const runtime = runtimes.get(row.plugin_id); |
| 2950 | const describe = runtime?.plugin.describeIntegrationDisplay; |
| 2951 | if (!describe) return {}; |
| 2952 | const record = rowToIntegrationRecord(row); |
| 2953 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-authored projector must never fail the catalog read |
| 2954 | try { |
| 2955 | const display = describe(record); |
| 2956 | return { |
| 2957 | ...(display.url && display.url.length > 0 ? { url: display.url } : {}), |
| 2958 | ...(display.family && display.family.length > 0 ? { family: display.family } : {}), |
| 2959 | }; |
| 2960 | } catch { |
| 2961 | return {}; |
| 2962 | } |
| 2963 | }; |
| 2964 | |
| 2965 | // The declared health check off the integration row's own column. CORE |
| 2966 | // owns this storage (never the plugin config blob), so a plugin config |
no test coverage detected