-
v4.3.2 Stable
released this
2025-10-24 01:54:50 +02:00 | 723 commits to main since this releaseCritical Bug Fix: createEntities Default Behavior
CRITICAL FIX for Workshop Team: The
createEntitiesoption now correctly defaults totruewhen not specified, fixing a bug that caused imports to skip graph entity creation entirely.The Bug
In v4.3.0-v4.3.1, calling
brain.import()without explicitly settingcreateEntities: truewould only create VFS file wrappers (type: "document") and skip creating semantic graph entities (type: "person", "location", etc.). This broke type filtering functionality.Impact: Type filtering returned 0 results despite entities appearing in HNSW index.
The Fix
- Explicit false check:
createEntitiesnow only skips entity creation when explicitly set tofalse, not whenundefined - Correct option spreading: Fixed option merging to preserve defaults properly
- AI features enabled:
enableRelationshipInferenceandenableNeuralExtractionnow default totrue
Workshop Team Resolution
If you experienced type filtering issues in v4.3.0 or v4.3.1:
- Upgrade to v4.3.2:
npm install @soulcraft/brainy@latest - Clear your data directory:
rm -rf ./brainy-data - Re-import your data (no code changes needed!)
- Type filtering will now work correctly
Additional Improvements
- Smarter relationships: SmartRelationshipExtractor now enabled by default
- Neural extraction: Entity and concept extraction enabled by default
- Better defaults: Most import options now have intelligent defaults
Test Coverage
Added comprehensive test coverage to prevent regression:
- 26 new test assertions across 4 test files
- End-to-end VFS + graph entity verification
- Type filtering regression tests
- Relationship intelligence verification
Breaking Changes
None - this restores the intended default behavior.
Files Changed
src/import/ImportCoordinator.ts- Fix createEntities default and option spreadingtests/unit/create-entities-default.test.ts- NEWtests/integration/vfs-and-graph-entities.test.ts- NEWtests/integration/relationship-intelligence.test.ts- NEWtests/unit/type-filtering.unit.test.ts- NEW
All tests passing ✅
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
1 download
- Explicit false check: