From beefacbca90ca1b253ed50ffa27f7f9ffbf8476d Mon Sep 17 00:00:00 2001 From: David Snelling Date: Thu, 9 Apr 2026 16:28:54 -0700 Subject: [PATCH] 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. --- src/internals.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/internals.ts b/src/internals.ts index 50608915..90ae3d3a 100644 --- a/src/internals.ts +++ b/src/internals.ts @@ -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'