|
|
98bf98a228
|
feat: Complete the 9 Unified Methods with augment() and export()! 🎯
BREAKING CHANGE: Brainy 1.0 now has 9 unified methods (odd numbers FTW!)
THE 9 UNIFIED METHODS:
1. add() - Smart data addition
2. search() - Unified search
3. import() - Bulk import
4. addNoun() - Typed entities
5. addVerb() - Relationships
6. update() - Smart updates
7. delete() - Soft delete
8. augment() - Complete augmentation management ⭐
9. export() - Universal data export ⭐
Key improvements:
- Renamed register() to augment() for consistency
- Made augment() super flexible - handles ALL operations:
- augment(new MyAugmentation()) - Register
- augment('list') - List all with status
- augment('enable', 'name') - Enable
- augment('disable', 'name') - Disable
- augment('unregister', 'name') - Remove
- augment('enable-type', 'sense') - Bulk enable
- Added export() as 9th method for data portability:
- Export as JSON, CSV, Graph, or Embeddings
- Filter, limit, include/exclude options
- Perfect for backups, migrations, integrations
Documentation:
- Created AUGMENTATION-GUIDE.md - Super simple guide
- Updated UNIFIED-API.md for all 9 methods
- Fixed misleading community package references
- Updated README with 9 methods everywhere
CLI commands now perfectly mirror the API:
- brainy augment <action> - Matches augment() method
- brainy export - Matches export() method
From 40+ methods → 9 unified methods (78% reduction!)
'Make the simple things simple, and the complex things possible'
|
2025-08-14 12:29:47 -07:00 |
|