fix: restore listAugmentations() functionality and add metadata support

- Fix listAugmentations() to return actual augmentation data instead of empty array
- Add category and description metadata to BaseAugmentation class
- Add getInfo() method to AugmentationRegistry for detailed augmentation listing
- Update augmentation classes with proper categorization (internal/core/premium)
- Enhance augmentation discovery and management capabilities

This fixes the broken augmentation listing API and provides better visibility
into installed augmentations with their status and metadata.
This commit is contained in:
David Snelling 2025-08-28 14:50:23 -07:00
parent 55cf51b371
commit 8eed9da831
7 changed files with 59 additions and 6 deletions

View file

@ -72,11 +72,10 @@ export class IntelligentVerbScoringAugmentation extends BaseAugmentation {
} // Adds scoring metadata to verbs
operations = ['addVerb', 'relate'] as ('addVerb' | 'relate')[]
priority = 10 // Enhancement feature - runs after core operations
// Add enabled property for backward compatibility
get enabled(): boolean {
return this.config.enabled
}
// Augmentation metadata
readonly category = 'premium' as const
readonly description = 'AI-powered intelligent scoring for relationship strength analysis'
private config: Required<VerbScoringConfig>
private relationshipStats: Map<string, RelationshipMetrics> = new Map()
@ -121,6 +120,9 @@ export class IntelligentVerbScoringAugmentation extends BaseAugmentation {
maxWeight: config.maxWeight ?? 1.0,
baseWeight: config.baseWeight ?? 0.5
}
// Set enabled property based on config
this.enabled = this.config.enabled
}
protected async onInitialize(): Promise<void> {