open-brainy/src/import
David Snelling 5c84be0276 fix: createEntities defaults to true, enable AI features by default
CRITICAL FIX: createEntities was treating undefined as false, causing imports
to skip graph entity creation. Only VFS wrappers were created, breaking type filtering.

Fixes:
- createEntities now defaults to true when undefined (line 736)
- Fixed option spreading order (spread options first, then apply defaults) (line 357)
- Enabled enableRelationshipInference by default (AI relationships)
- Enabled enableNeuralExtraction by default (smart entity extraction)
- Enabled enableConceptExtraction by default (concept mining)

Root Cause:
1. Line 733: if (!options.createEntities) treated undefined as false
2. Line 361: ...options spread AFTER defaults, overwriting them with undefined
Result: Graph entities never created, only VFS wrappers

Impact:
- Workshop team: 0 results for brain.find({ type: 'person' })
- Type filtering completely broken
- HNSW showed entities (read from VFS) but storage had none

Tests Added:
- tests/unit/create-entities-default.test.ts (3 scenarios)
- tests/integration/vfs-and-graph-entities.test.ts (15 assertions, end-to-end)
- tests/integration/relationship-intelligence.test.ts (relationship verification)
- tests/unit/type-filtering.unit.test.ts (8 type filtering tests)

All tests pass 

Breaking Changes: None - this restores intended default behavior

Workshop Resolution: Clear ./brainy-data and re-import with v4.3.2.
Type filtering will work immediately.

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-23 16:54:40 -07:00
..
EntityDeduplicator.ts feat: add unified import system with auto-detection and dual storage 2025-10-08 16:55:30 -07:00
FormatDetector.ts feat: implement progressive flush intervals for streaming imports 2025-10-22 17:36:27 -07:00
ImportCoordinator.ts fix: createEntities defaults to true, enable AI features by default 2025-10-23 16:54:40 -07:00
ImportHistory.ts feat: add unified import system with auto-detection and dual storage 2025-10-08 16:55:30 -07:00
index.ts feat: add unified import system with auto-detection and dual storage 2025-10-08 16:55:30 -07:00
InstancePool.ts feat: implement progressive flush intervals for streaming imports 2025-10-22 17:36:27 -07:00