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

Function describeDisplayForRow

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

Source from the content-addressed store, hash-verified

3159 });
3160
3161 const describeDisplayForRow = (row: IntegrationRow): IntegrationDisplayDescriptor => {
3162 const runtime = runtimes.get(row.plugin_id);
3163 const describe = runtime?.plugin.describeIntegrationDisplay;
3164 if (!describe) return {};
3165 const record = rowToIntegrationRecord(row);
3166 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-authored projector must never fail the catalog read
3167 try {
3168 const display = describe(record);
3169 return {
3170 ...(display.url && display.url.length > 0 ? { url: display.url } : {}),
3171 ...(display.family && display.family.length > 0 ? { family: display.family } : {}),
3172 };
3173 } catch {
3174 return {};
3175 }
3176 };
3177
3178 // The declared health check off the integration row's own column. CORE
3179 // 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