-
v5.6.1 Stable
released this
2025-11-11 18:10:11 +01:00 | 592 commits to main since this releaseBug Fixes
Fix clear() not deleting COW version control data
Resolves critical bug where
brain.clear()did not fully clear storage:Root Causes
_cow/directory contents deleted but directory not removed- In-memory counters (
totalNounCount,totalVerbCount) not reset - COW could auto-reinitialize on next operation
Fixes Applied
- FileSystemStorage: Delete entire
_cow/directory withfs.rm() - OPFSStorage: Delete
_cow/withremoveEntry({recursive: true}) - S3CompatibleStorage: Reset counters after clear
- BaseStorage: Guard
initializeCOW()against reinit whencowEnabled=false - All adapters: Reset
totalNounCountandtotalVerbCountto 0
Impact
Resolves Workshop bug report - storage now properly clears from 103MB to 0 bytes, entity counts correctly return to 0.
GCSStorage, R2Storage, and AzureBlobStorage already had correct implementations.
Full Changelog: https://github.com/soulcraftlabs/brainy/compare/v5.6.0...v5.6.1
Downloads
-
Source code (ZIP)
1 download
-
Source code (TAR.GZ)
1 download