(row: IntegrationRow)
| 1873 | }; |
| 1874 | |
| 1875 | const describeDisplayForRow = (row: IntegrationRow): IntegrationDisplayDescriptor => { |
| 1876 | const runtime = runtimes.get(row.plugin_id); |
| 1877 | const describe = runtime?.plugin.describeIntegrationDisplay; |
| 1878 | if (!describe) return {}; |
| 1879 | const record = rowToIntegrationRecord(row); |
| 1880 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-authored projector must never fail the catalog read |
| 1881 | try { |
| 1882 | const display = describe(record); |
| 1883 | return { |
| 1884 | ...(display.url && display.url.length > 0 ? { url: display.url } : {}), |
| 1885 | ...(display.family && display.family.length > 0 ? { family: display.family } : {}), |
| 1886 | }; |
| 1887 | } catch { |
| 1888 | return {}; |
| 1889 | } |
| 1890 | }; |
| 1891 | |
| 1892 | // The declared health check off the integration row's own column. CORE |
| 1893 | // owns this storage (never the plugin config blob), so a plugin config |
no test coverage detected