MCPcopy Create free account
hub / github.com/Noumena-Network/code / getSourceFamilies

Function getSourceFamilies

src/tools/toolImplementationInventory.ts:214–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212}
213
214function getSourceFamilies(): Array<{ sourceFamily: string; sourcePath: string }> {
215 const families = readdirSync(SRC_TOOLS_ROOT)
216 .filter(sourceFamily => {
217 if (sourceFamily === 'shared' || sourceFamily === 'testing') return false
218 return statSync(join(SRC_TOOLS_ROOT, sourceFamily)).isDirectory()
219 })
220 .sort()
221 .map(sourceFamily => ({
222 sourceFamily,
223 sourcePath: `src/tools/${sourceFamily}`,
224 }))
225
226 families.push({
227 sourceFamily: 'TestingPermissionTool',
228 sourcePath: 'src/tools/testing/TestingPermissionTool.tsx',
229 })
230
231 return families
232}
233
234function getSeedsForFamily(sourceFamily: string): ToolImplementationSeed[] {
235 const override = FAMILY_OVERRIDES[sourceFamily]

Callers 1

Calls 2

readdirSyncFunction · 0.85
statSyncFunction · 0.85

Tested by

no test coverage detected