brainy/tests/vfs
David Snelling 72590d52b0 feat: add tree-aware VFS methods to prevent recursion in file explorers
Add safe tree operations that guarantee no directory appears as its own child:
- getDirectChildren() returns only immediate children
- getTreeStructure() builds safe tree with recursion protection
- getDescendants() gets all descendants efficiently
- inspect() provides comprehensive path information

Also includes VFSTreeUtils for building and validating tree structures.

This resolves the common infinite recursion issue when building file
explorers, as discovered by the Soulcraft Studio team.

Co-Authored-By: User <noreply@user.local>
2025-09-26 10:17:59 -07:00
..
knowledge.unit.test.ts feat: implement complete VFS with Knowledge Layer integration 2025-09-24 17:31:48 -07:00
tree-operations.test.ts feat: add tree-aware VFS methods to prevent recursion in file explorers 2025-09-26 10:17:59 -07:00
vfs-comprehensive.unit.test.ts feat: complete VFS with Knowledge Layer integration 2025-09-25 10:47:44 -07:00
vfs-relationships.test.ts feat: refactor VFS to use proper Brainy graph relationships 2025-09-25 14:51:08 -07:00
vfs.unit.test.ts feat: implement complete VFS with Knowledge Layer integration 2025-09-24 17:31:48 -07:00