MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / getSourceByDialect

Function getSourceByDialect

server/modules/ai/orchestrator/sourceSupport.js:123–132  ·  view source on GitHub ↗
(dialect)

Source from the content-addressed store, hash-verified

121}
122
123function getSourceByDialect(dialect) {
124 if (!dialect) {
125 return null;
126 }
127
128 const sources = getOrchestratorSources();
129 return sources.find((source) => {
130 return source.id === dialect || source.subType === dialect || source.type === dialect;
131 }) || null;
132}
133
134function requireSourceById(sourceId) {
135 const source = getSourceById(sourceId);

Callers 1

generateQueryFunction · 0.85

Calls 1

getOrchestratorSourcesFunction · 0.85

Tested by

no test coverage detected