MCPcopy Create free account
hub / github.com/error311/FileRise / getSourcesConfig

Function getSourcesConfig

public/js/sourceManager.js:21–26  ·  view source on GitHub ↗
(cfg)

Source from the content-addressed store, hash-verified

19}
20
21function getSourcesConfig(cfg) {
22 if (!cfg || typeof cfg !== 'object') return {};
23 if (cfg.storageSources && typeof cfg.storageSources === 'object') return cfg.storageSources;
24 if (cfg.sources && typeof cfg.sources === 'object') return cfg.sources;
25 return {};
26}
27
28function hasSourceId(candidate, sources) {
29 const key = String(candidate || '').trim();

Callers 1

initSourceSelectorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected