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

Function describeDisplayUrlForRow

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

Source from the content-addressed store, hash-verified

1760 };
1761
1762 const describeDisplayUrlForRow = (row: IntegrationRow): string | undefined => {
1763 const runtime = runtimes.get(row.plugin_id);
1764 const describe = runtime?.plugin.describeIntegrationDisplay;
1765 if (!describe) return undefined;
1766 const record = rowToIntegrationRecord(row);
1767 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-authored projector must never fail the catalog read
1768 try {
1769 const display = describe(record);
1770 return display.url && display.url.length > 0 ? display.url : undefined;
1771 } catch {
1772 return undefined;
1773 }
1774 };
1775
1776 // The declared health check off the integration row's own column. CORE
1777 // 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