(row: IntegrationRow)
| 2102 | // throw (malformed config it didn't guard) degrades to `[]` rather than |
| 2103 | // failing the catalog read. |
| 2104 | const describeAuthMethodsForRow = (row: IntegrationRow): readonly AuthMethodDescriptor[] => { |
| 2105 | const runtime = runtimes.get(row.plugin_id); |
| 2106 | const describe = runtime?.plugin.describeAuthMethods; |
| 2107 | if (!describe) return []; |
| 2108 | const record = rowToIntegrationRecord(row); |
| 2109 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-authored projector must never fail the catalog read |
| 2110 | try { |
| 2111 | return describe(record); |
| 2112 | } catch { |
| 2113 | return []; |
| 2114 | } |
| 2115 | }; |
| 2116 | |
| 2117 | const describeDisplayForRow = (row: IntegrationRow): IntegrationDisplayDescriptor => { |
| 2118 | const runtime = runtimes.get(row.plugin_id); |
no test coverage detected