The 3.0 native engine ships as @soulcraft/cor (brainy 8.x <-> cor 3.x are a version-matched pair); the old @soulcraft/cortex package stays on the 2.x/7.x line. Public docs and .d.ts-visible comments now name the correct package. Historical 2.x contract references (e.g. the 2.3.1 read-side fallback) keep the old name deliberately.
21 lines
1.1 KiB
TypeScript
21 lines
1.1 KiB
TypeScript
/**
|
|
* Internal utilities for first-party plugins.
|
|
* NOT part of the public API — may change between minor versions.
|
|
*/
|
|
export { getGlobalCache, setGlobalCache, clearGlobalCache, UnifiedCache } from './utils/unifiedCache.js'
|
|
export type { UnifiedCacheConfig, CacheItem } from './utils/unifiedCache.js'
|
|
export { prodLog, createModuleLogger } from './utils/logger.js'
|
|
export { FieldTypeInference, FieldType } from './utils/fieldTypeInference.js'
|
|
export type { FieldTypeInfo } from './utils/fieldTypeInference.js'
|
|
export {
|
|
EntityIdMapper,
|
|
EntityIdSpaceExceeded,
|
|
U32_ENTITY_ID_MAX,
|
|
} from './utils/entityIdMapper.js'
|
|
export type { EntityIdMapperOptions, EntityIdMapperData } from './utils/entityIdMapper.js'
|
|
export { getRecommendedCacheConfig, formatBytes, checkMemoryPressure } from './utils/memoryDetection.js'
|
|
export type { MemoryInfo, CacheAllocationStrategy } from './utils/memoryDetection.js'
|
|
// Entity field resolution — single source of truth for reading fields off
|
|
// HNSWNounWithMetadata. First-party plugins (Cor) use this to stay in
|
|
// lockstep with the entity shape contract.
|
|
export { resolveEntityField, STANDARD_ENTITY_FIELDS } from './coreTypes.js'
|