(row: IntegrationRow)
| 2183 | // throw (malformed config it didn't guard) degrades to `[]` rather than |
| 2184 | // failing the catalog read. |
| 2185 | const describeAuthMethodsForRow = (row: IntegrationRow): readonly AuthMethodDescriptor[] => { |
| 2186 | const runtime = runtimes.get(row.plugin_id); |
| 2187 | const describe = runtime?.plugin.describeAuthMethods; |
| 2188 | if (!describe) return []; |
| 2189 | const record = rowToIntegrationRecord(row); |
| 2190 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-authored projector must never fail the catalog read |
| 2191 | try { |
| 2192 | return describe(record); |
| 2193 | } catch { |
| 2194 | return []; |
| 2195 | } |
| 2196 | }; |
| 2197 | |
| 2198 | const describeDisplayForRow = (row: IntegrationRow): IntegrationDisplayDescriptor => { |
| 2199 | const runtime = runtimes.get(row.plugin_id); |
no test coverage detected