MCPcopy
hub / github.com/chartbrew/chartbrew / findSourceForConnection

Function findSourceForConnection

server/sources/index.js:79–84  ·  view source on GitHub ↗
(connection)

Source from the content-addressed store, hash-verified

77}
78
79function findSourceForConnection(connection) {
80 const sourceId = connection?.subType || connection?.type;
81 return sources.find((item) => item.id === sourceId)
82 || sources.find((item) => item.type === connection?.type && !item.subType)
83 || null;
84}
85
86function getSourceSummaries() {
87 return sources.map((source) => ({

Callers 8

applySourceVariablesFunction · 0.70
getBuilderMetadataMethod · 0.50
askAiMethod · 0.50
testQueryMethod · 0.50
getPreviewDataMethod · 0.50
ConnectionRoute.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected