feat: remove legacy ImportManager, standardize getStats() API
- Removed ImportManager class and exports (use brain.import() instead) - Fixed all documentation: getStatistics() → getStats() - Updated 41 files across codebase for consistency - Removed ImportManager section from API docs - Added v3.30.0 migration guide to CHANGELOG Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
68c989e4f7
commit
58daf09403
31 changed files with 87 additions and 481 deletions
|
|
@ -27,7 +27,7 @@ export class MyFirstAugmentation extends BaseAugmentation {
|
|||
if (operation === 'add') {
|
||||
console.log('Noun added:', params.noun)
|
||||
// You can access the brain instance
|
||||
const stats = await context?.brain.getStatistics()
|
||||
const stats = await context?.brain.getStats()
|
||||
console.log('Total nouns:', stats.totalNouns)
|
||||
}
|
||||
}
|
||||
|
|
@ -187,7 +187,7 @@ class ContextAwareAugmentation extends BaseAugmentation {
|
|||
if (!brain) return
|
||||
|
||||
// Use any brain method
|
||||
const stats = await brain.getStatistics()
|
||||
const stats = await brain.getStats()
|
||||
const size = await brain.size()
|
||||
const results = await brain.search('query')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue