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

Function describeDisplayForRow

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

Source from the content-addressed store, hash-verified

1798 };
1799
1800 const describeDisplayForRow = (row: IntegrationRow): IntegrationDisplayDescriptor => {
1801 const runtime = runtimes.get(row.plugin_id);
1802 const describe = runtime?.plugin.describeIntegrationDisplay;
1803 if (!describe) return {};
1804 const record = rowToIntegrationRecord(row);
1805 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-authored projector must never fail the catalog read
1806 try {
1807 const display = describe(record);
1808 return {
1809 ...(display.url && display.url.length > 0 ? { url: display.url } : {}),
1810 ...(display.family && display.family.length > 0 ? { family: display.family } : {}),
1811 };
1812 } catch {
1813 return {};
1814 }
1815 };
1816
1817 // The declared health check off the integration row's own column. CORE
1818 // owns this storage (never the plugin config blob), so a plugin config

Callers 2

integrationsListFunction · 0.85
integrationsGetFunction · 0.85

Calls 2

rowToIntegrationRecordFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected