MCPcopy
hub / github.com/chartbrew/chartbrew / getSourceById

Function getSourceById

server/sources/index.js:57–65  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

55});
56
57function getSourceById(id) {
58 const source = sources.find((item) => item.id === id);
59
60 if (!source) {
61 throw new Error(`Unsupported source id: ${id}`);
62 }
63
64 return source;
65}
66
67function getSourceForConnection(connection) {
68 const sourceId = connection?.subType || connection?.type;

Callers 15

listMethod · 0.85
getMethod · 0.85
createFromTemplateMethod · 0.85
requireSourceByIdFunction · 0.85
getSourceTemplateConfigFunction · 0.85
apiAi.test.jsFile · 0.85

Calls

no outgoing calls

Tested by 1

planFixtureFunction · 0.68