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> |
||
|---|---|---|
| .. | ||
| knowledge.unit.test.ts | ||
| tree-operations.test.ts | ||
| vfs-comprehensive.unit.test.ts | ||
| vfs-relationships.test.ts | ||
| vfs.unit.test.ts | ||