MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / validateDefinitionName

Function validateDefinitionName

src/compute-engine/library/library.ts:354–358  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

352 if (typeof categories === 'string') categories = [categories];
353
354 const filtered = categories.map((cat) => {
355 const lib = STANDARD_LIBRARIES.find((l) => l.name === cat);
356 if (!lib) throw new Error(`Unknown library category "${cat}"`);
357 return lib;
358 });
359
360 return Object.freeze(sortLibraries(filtered));
361}

Callers 1

setSymbolDefinitionsFunction · 0.85

Calls 3

isValidSymbolFunction · 0.90
validateSymbolFunction · 0.90
normalizeMethod · 0.80

Tested by

no test coverage detected