MCPcopy
hub / github.com/chartbrew/chartbrew / requireSourceById

Function requireSourceById

server/modules/ai/orchestrator/sourceSupport.js:134–142  ·  view source on GitHub ↗
(sourceId)

Source from the content-addressed store, hash-verified

132}
133
134function requireSourceById(sourceId) {
135 const source = getSourceById(sourceId);
136
137 if (!sourceSupportsOrchestrator(source)) {
138 throw new Error(`Source '${sourceId}' is not supported by the AI orchestrator.`);
139 }
140
141 return source;
142}
143
144function formatSupportedSourceList() {
145 return getOrchestratorSources().map((source) => source.name).join(", ");

Callers 1

generateQueryFunction · 0.85

Calls 2

getSourceByIdFunction · 0.85

Tested by

no test coverage detected