Initial commit: Brainy - Multi-Dimensional AI Database
Open source vector database with HNSW indexing, graph relationships, and metadata facets. Features CLI with professional augmentation registry integration for discovering extensions and capabilities.
This commit is contained in:
commit
f8c45f2d8d
448 changed files with 103294 additions and 0 deletions
40
dist/utils/typeUtils.js
vendored
Normal file
40
dist/utils/typeUtils.js
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
/**
|
||||
* Type Utilities
|
||||
*
|
||||
* This module provides utility functions for working with the Brainy type system,
|
||||
* particularly for accessing lists of noun and verb types.
|
||||
*/
|
||||
import { NounType, VerbType } from '../types/graphTypes.js';
|
||||
/**
|
||||
* Returns an array of all available noun types
|
||||
*
|
||||
* @returns {string[]} Array of all noun type values
|
||||
*/
|
||||
export function getNounTypes() {
|
||||
return Object.values(NounType);
|
||||
}
|
||||
/**
|
||||
* Returns an array of all available verb types
|
||||
*
|
||||
* @returns {string[]} Array of all verb type values
|
||||
*/
|
||||
export function getVerbTypes() {
|
||||
return Object.values(VerbType);
|
||||
}
|
||||
/**
|
||||
* Returns a map of noun type keys to their string values
|
||||
*
|
||||
* @returns {Record<string, string>} Map of noun type keys to values
|
||||
*/
|
||||
export function getNounTypeMap() {
|
||||
return { ...NounType };
|
||||
}
|
||||
/**
|
||||
* Returns a map of verb type keys to their string values
|
||||
*
|
||||
* @returns {Record<string, string>} Map of verb type keys to values
|
||||
*/
|
||||
export function getVerbTypeMap() {
|
||||
return { ...VerbType };
|
||||
}
|
||||
//# sourceMappingURL=typeUtils.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue