(row: IntegrationRow)
| 2565 | // throw (malformed config it didn't guard) degrades to `[]` rather than |
| 2566 | // failing the catalog read. |
| 2567 | const describeAuthMethodsForRow = (row: IntegrationRow): readonly AuthMethodDescriptor[] => { |
| 2568 | const runtime = runtimes.get(row.plugin_id); |
| 2569 | const describe = runtime?.plugin.describeAuthMethods; |
| 2570 | if (!describe) return []; |
| 2571 | const record = rowToIntegrationRecord(row); |
| 2572 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-authored projector must never fail the catalog read |
| 2573 | try { |
| 2574 | return describe(record); |
| 2575 | } catch { |
| 2576 | return []; |
| 2577 | } |
| 2578 | }; |
| 2579 | |
| 2580 | const describeDisplayForRow = (row: IntegrationRow): IntegrationDisplayDescriptor => { |
| 2581 | const runtime = runtimes.get(row.plugin_id); |
no test coverage detected