feat: export resolveEntityField + STANDARD_ENTITY_FIELDS from internals
Cortex and other first-party plugins need a shared contract for reading fields off HNSWNounWithMetadata. Exporting from /internals keeps a single source of truth and prevents the shape contract from drifting between packages.
This commit is contained in:
parent
75141ef400
commit
beefacbca9
1 changed files with 4 additions and 0 deletions
|
|
@ -11,3 +11,7 @@ export { EntityIdMapper } 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 (Cortex) use this to stay in
|
||||
// lockstep with the entity shape contract.
|
||||
export { resolveEntityField, STANDARD_ENTITY_FIELDS } from './coreTypes.js'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue