brainy/src/transaction/operations/index.ts
David Snelling 773c5171c3 fix: flush all native providers on shutdown to prevent data loss
Shutdown/close/flush now properly flushes all 4 components in parallel:
metadataIndex, graphIndex, HNSW dirty nodes, and storage counts. Previously
only counts were flushed, causing native provider data loss on restart.

Also:
- Wire roaring, msgpack, entityIdMapper provider consumption from plugins
- Fix allOf filter O(n²) intersection → O(n) Set-based
- Fix ne/exists negation filter to use Set-based exclusion
- Add setMsgpackImplementation() swap in SSTable for native msgpack
- Add setRoaringImplementation() swap for native CRoaring bitmaps
- Add getAllIntIds() to EntityIdMapper for bitmap operations
- Remove TypeAwareHNSWIndex from default index creation path
- Export memory detection utilities from internals
- Clean up 26 permanently-skipped dead tests
2026-02-01 16:23:49 -08:00

32 lines
789 B
TypeScript

/**
* Transaction Operations
*
* Re-exports all transactional operations for storage and indexes.
* These operations provide atomicity with rollback support.
*
* @module transaction/operations
*/
// Storage Operations
export {
SaveNounMetadataOperation,
SaveNounOperation,
DeleteNounMetadataOperation,
SaveVerbMetadataOperation,
SaveVerbOperation,
DeleteVerbMetadataOperation,
UpdateNounMetadataOperation,
UpdateVerbMetadataOperation
} from './StorageOperations.js'
// Index Operations
export {
AddToHNSWOperation,
RemoveFromHNSWOperation,
AddToMetadataIndexOperation,
RemoveFromMetadataIndexOperation,
AddToGraphIndexOperation,
RemoveFromGraphIndexOperation,
BatchAddToHNSWOperation,
BatchAddToMetadataIndexOperation
} from './IndexOperations.js'