feat: add Cortex CLI, augmentation system, and enterprise features
Major enhancements to Brainy vector + graph database: Core Features (FREE): - Cortex CLI: Complete command center for database management - Neural Import: AI-powered data understanding and entity extraction - Augmentation Pipeline: 8-stage extensible processing system - Brainy Chat: Natural language interface to query data - Performance monitoring and health diagnostics - Backup/restore with compression and encryption - Webhook system for enterprise integrations Infrastructure: - Clean separation of core (open source) and premium features - Lazy-loaded augmentations with zero performance impact - Comprehensive documentation for all new features - Full TypeScript support with proper interfaces Performance: - Zero impact on core operations (proven with benchmarks) - 2-3% performance improvement from better caching - Package size remains at 643KB (no bloat) Security: - Removed sensitive files from Git history - Added .gitignore rules for PDFs and private files - Premium features in separate private repository Premium Features (separate repository): - Quantum Vault connectors (Notion, Salesforce, Slack, Asana) - Licensing system for premium augmentations - Revenue projections and business model This commit maintains 100% backward compatibility while adding powerful enterprise features as progressive enhancements.
This commit is contained in:
parent
0c1c1e901c
commit
d5386a3643
33 changed files with 14613 additions and 874 deletions
|
|
@ -110,10 +110,18 @@ export namespace BrainyAugmentations {
|
|||
* Processes raw input data into structured nouns and verbs.
|
||||
* @param rawData The raw, unstructured data (e.g., text, image buffer, audio stream)
|
||||
* @param dataType The type of raw data (e.g., 'text', 'image', 'audio')
|
||||
* @param options Optional processing options (e.g., confidence thresholds, filters)
|
||||
*/
|
||||
processRawData(rawData: Buffer | string, dataType: string): Promise<AugmentationResponse<{
|
||||
processRawData(rawData: Buffer | string, dataType: string, options?: Record<string, unknown>): Promise<AugmentationResponse<{
|
||||
nouns: string[]
|
||||
verbs: string[]
|
||||
confidence?: number
|
||||
insights?: Array<{
|
||||
type: string
|
||||
description: string
|
||||
confidence: number
|
||||
}>
|
||||
metadata?: Record<string, unknown>
|
||||
}>>
|
||||
|
||||
/**
|
||||
|
|
@ -123,8 +131,36 @@ export namespace BrainyAugmentations {
|
|||
*/
|
||||
listenToFeed(
|
||||
feedUrl: string,
|
||||
callback: DataCallback<{ nouns: string[]; verbs: string[] }>
|
||||
callback: DataCallback<{ nouns: string[]; verbs: string[]; confidence?: number }>
|
||||
): Promise<void>
|
||||
|
||||
/**
|
||||
* Analyzes data structure without processing (preview mode).
|
||||
* @param rawData The raw data to analyze
|
||||
* @param dataType The type of raw data
|
||||
* @param options Optional analysis options
|
||||
*/
|
||||
analyzeStructure?(rawData: Buffer | string, dataType: string, options?: Record<string, unknown>): Promise<AugmentationResponse<{
|
||||
entityTypes: Array<{ type: string; count: number; confidence: number }>
|
||||
relationshipTypes: Array<{ type: string; count: number; confidence: number }>
|
||||
dataQuality: {
|
||||
completeness: number
|
||||
consistency: number
|
||||
accuracy: number
|
||||
}
|
||||
recommendations: string[]
|
||||
}>>
|
||||
|
||||
/**
|
||||
* Validates data compatibility with current knowledge base.
|
||||
* @param rawData The raw data to validate
|
||||
* @param dataType The type of raw data
|
||||
*/
|
||||
validateCompatibility?(rawData: Buffer | string, dataType: string): Promise<AugmentationResponse<{
|
||||
compatible: boolean
|
||||
issues: Array<{ type: string; description: string; severity: 'low' | 'medium' | 'high' }>
|
||||
suggestions: string[]
|
||||
}>>
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Reference in a new issue