MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / describeAuthMethodsForRow

Function describeAuthMethodsForRow

packages/core/sdk/src/executor.ts:1771–1782  ·  view source on GitHub ↗
(row: IntegrationRow)

Source from the content-addressed store, hash-verified

1769 // throw (malformed config it didn't guard) degrades to `[]` rather than
1770 // failing the catalog read.
1771 const describeAuthMethodsForRow = (row: IntegrationRow): readonly AuthMethodDescriptor[] => {
1772 const runtime = runtimes.get(row.plugin_id);
1773 const describe = runtime?.plugin.describeAuthMethods;
1774 if (!describe) return [];
1775 const record = rowToIntegrationRecord(row);
1776 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-authored projector must never fail the catalog read
1777 try {
1778 return describe(record);
1779 } catch {
1780 return [];
1781 }
1782 };
1783
1784 const describeDisplayForRow = (row: IntegrationRow): IntegrationDisplayDescriptor => {
1785 const runtime = runtimes.get(row.plugin_id);

Callers 8

integrationsListFunction · 0.85
integrationsGetFunction · 0.85
integrationsGetRecordFunction · 0.85
integrationsRemoveFunction · 0.85
connectionCheckHealthFunction · 0.85
connectionValidateFunction · 0.85
createExecutorFunction · 0.85

Calls 2

rowToIntegrationRecordFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected