(row: IntegrationRow)
| 2243 | // throw (malformed config it didn't guard) degrades to `[]` rather than |
| 2244 | // failing the catalog read. |
| 2245 | const describeAuthMethodsForRow = (row: IntegrationRow): readonly AuthMethodDescriptor[] => { |
| 2246 | const runtime = runtimes.get(row.plugin_id); |
| 2247 | const describe = runtime?.plugin.describeAuthMethods; |
| 2248 | if (!describe) return []; |
| 2249 | const record = rowToIntegrationRecord(row); |
| 2250 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-authored projector must never fail the catalog read |
| 2251 | try { |
| 2252 | return describe(record); |
| 2253 | } catch { |
| 2254 | return []; |
| 2255 | } |
| 2256 | }; |
| 2257 | |
| 2258 | const describeDisplayForRow = (row: IntegrationRow): IntegrationDisplayDescriptor => { |
| 2259 | const runtime = runtimes.get(row.plugin_id); |
no test coverage detected