(row: IntegrationRow)
| 2197 | // throw (malformed config it didn't guard) degrades to `[]` rather than |
| 2198 | // failing the catalog read. |
| 2199 | const describeAuthMethodsForRow = (row: IntegrationRow): readonly AuthMethodDescriptor[] => { |
| 2200 | const runtime = runtimes.get(row.plugin_id); |
| 2201 | const describe = runtime?.plugin.describeAuthMethods; |
| 2202 | if (!describe) return []; |
| 2203 | const record = rowToIntegrationRecord(row); |
| 2204 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-authored projector must never fail the catalog read |
| 2205 | try { |
| 2206 | return describe(record); |
| 2207 | } catch { |
| 2208 | return []; |
| 2209 | } |
| 2210 | }; |
| 2211 | |
| 2212 | const describeDisplayForRow = (row: IntegrationRow): IntegrationDisplayDescriptor => { |
| 2213 | const runtime = runtimes.get(row.plugin_id); |
no test coverage detected