(row: IntegrationRow)
| 2763 | // throw (malformed config it didn't guard) degrades to `[]` rather than |
| 2764 | // failing the catalog read. |
| 2765 | const describeAuthMethodsForRow = (row: IntegrationRow): readonly AuthMethodDescriptor[] => { |
| 2766 | const runtime = runtimes.get(row.plugin_id); |
| 2767 | const describe = runtime?.plugin.describeAuthMethods; |
| 2768 | if (!describe) return []; |
| 2769 | const record = rowToIntegrationRecord(row); |
| 2770 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-authored projector must never fail the catalog read |
| 2771 | try { |
| 2772 | return describe(record); |
| 2773 | } catch { |
| 2774 | return []; |
| 2775 | } |
| 2776 | }; |
| 2777 | |
| 2778 | const describeDisplayForRow = (row: IntegrationRow): IntegrationDisplayDescriptor => { |
| 2779 | const runtime = runtimes.get(row.plugin_id); |
no test coverage detected