fix: implement automatic version detection from package.json

- Replace hardcoded version string with dynamic reading from package.json
- Add version caching for performance
- Export getBrainyVersion function from main index
- Ensures version stays automatically synchronized with releases
This commit is contained in:
David Snelling 2025-08-28 16:58:35 -07:00
parent b01a9ea0e3
commit fe7158600a
2 changed files with 23 additions and 3 deletions

View file

@ -50,6 +50,9 @@ export {
getStatistics
}
// Export version utilities
export { getBrainyVersion } from './utils/version.js'
// Export embedding functionality
import {
UniversalSentenceEncoder,