@soulcraft/brainy 0.62.3 → 1.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/README.md +3 -3
  2. package/bin/brainy.js +903 -1153
  3. package/dist/augmentationPipeline.d.ts +60 -0
  4. package/dist/augmentationPipeline.js +94 -0
  5. package/dist/augmentations/{cortexSense.d.ts → neuralImport.d.ts} +14 -11
  6. package/dist/augmentations/{cortexSense.js → neuralImport.js} +14 -11
  7. package/dist/brainyData.d.ts +199 -18
  8. package/dist/brainyData.js +601 -18
  9. package/dist/chat/BrainyChat.d.ts +113 -0
  10. package/dist/chat/BrainyChat.js +368 -0
  11. package/dist/chat/ChatCLI.d.ts +61 -0
  12. package/dist/chat/ChatCLI.js +351 -0
  13. package/dist/connectors/interfaces/IConnector.d.ts +3 -3
  14. package/dist/connectors/interfaces/IConnector.js +1 -1
  15. package/dist/cortex/neuralImport.js +1 -3
  16. package/dist/index.d.ts +4 -6
  17. package/dist/index.js +6 -7
  18. package/dist/pipeline.d.ts +15 -271
  19. package/dist/pipeline.js +25 -586
  20. package/dist/shared/default-augmentations.d.ts +3 -3
  21. package/dist/shared/default-augmentations.js +10 -10
  22. package/package.json +3 -1
  23. package/dist/chat/brainyChat.d.ts +0 -42
  24. package/dist/chat/brainyChat.js +0 -340
  25. package/dist/cortex/cliWrapper.d.ts +0 -32
  26. package/dist/cortex/cliWrapper.js +0 -209
  27. package/dist/cortex/cortex-legacy.d.ts +0 -264
  28. package/dist/cortex/cortex-legacy.js +0 -2463
  29. package/dist/cortex/cortex.d.ts +0 -264
  30. package/dist/cortex/cortex.js +0 -2463
  31. package/dist/cortex/serviceIntegration.d.ts +0 -156
  32. package/dist/cortex/serviceIntegration.js +0 -384
  33. package/dist/sequentialPipeline.d.ts +0 -113
  34. package/dist/sequentialPipeline.js +0 -417
  35. package/dist/utils/modelLoader.d.ts +0 -12
  36. package/dist/utils/modelLoader.js +0 -88
@@ -1,264 +0,0 @@
1
- /**
2
- * Cortex - Beautiful CLI Command Center for Brainy
3
- *
4
- * Configuration, data management, search, and chat - all in one place!
5
- */
6
- export declare class Cortex {
7
- private brainy?;
8
- private chatInstance?;
9
- private performanceMonitor?;
10
- private healthCheck?;
11
- private licensingSystem?;
12
- private configPath;
13
- private config;
14
- private encryptionKey?;
15
- private masterKeySource?;
16
- private emojis;
17
- private colors;
18
- constructor();
19
- /**
20
- * Load configuration
21
- */
22
- private loadConfig;
23
- /**
24
- * Ensure Brainy is initialized
25
- */
26
- private ensureBrainy;
27
- /**
28
- * Master Key Management - Atomic Age Security Protocols
29
- */
30
- private initializeMasterKey;
31
- /**
32
- * Load master key from stored salt + passphrase
33
- */
34
- private loadPassphraseKey;
35
- /**
36
- * Reset master key - for key rotation
37
- */
38
- resetMasterKey(): Promise<void>;
39
- /**
40
- * Get all decrypted secrets (for key rotation)
41
- */
42
- private getAllSecrets;
43
- /**
44
- * Initialize Cortex with beautiful prompts
45
- */
46
- init(options?: InitOptions): Promise<void>;
47
- /**
48
- * Beautiful welcome message
49
- */
50
- private showWelcome;
51
- /**
52
- * Chat with your data - beautiful interactive mode
53
- */
54
- chat(question?: string): Promise<void>;
55
- /**
56
- * Add data with beautiful prompts
57
- */
58
- add(data?: string, metadata?: any): Promise<void>;
59
- /**
60
- * Search with beautiful results display and advanced options
61
- */
62
- search(query: string, options?: SearchOptions): Promise<void>;
63
- /**
64
- * Advanced search with interactive prompts
65
- */
66
- advancedSearch(): Promise<void>;
67
- /**
68
- * Add or update graph connections (verbs)
69
- */
70
- addVerb(subject: string, verb: string, object: string, metadata?: any): Promise<void>;
71
- /**
72
- * Interactive graph exploration
73
- */
74
- explore(startId?: string): Promise<void>;
75
- /**
76
- * Configuration management with encryption
77
- */
78
- configSet(key: string, value: string, options?: {
79
- encrypt?: boolean;
80
- }): Promise<void>;
81
- /**
82
- * Get configuration value
83
- */
84
- configGet(key: string): Promise<string | null>;
85
- /**
86
- * List all configuration
87
- */
88
- configList(): Promise<void>;
89
- /**
90
- * Storage migration with beautiful progress
91
- */
92
- migrate(options: MigrateOptions): Promise<void>;
93
- /**
94
- * Show comprehensive statistics and database info
95
- */
96
- stats(detailed?: boolean): Promise<void>;
97
- /**
98
- * List all searchable fields with statistics
99
- */
100
- listFields(): Promise<void>;
101
- /**
102
- * Setup LLM progressively with auto-download
103
- */
104
- setupLLM(provider?: string): Promise<void>;
105
- private setupLocalLLM;
106
- private setupClaudeLLM;
107
- private setupOpenAILLM;
108
- private setupOllamaLLM;
109
- private setupClaudeDesktop;
110
- /**
111
- * Use the embedding model for other tasks
112
- */
113
- embed(text: string): Promise<void>;
114
- /**
115
- * Calculate similarity between two texts
116
- */
117
- similarity(text1: string, text2: string): Promise<void>;
118
- private getSimilarityInterpretation;
119
- /**
120
- * Import .env file with automatic encryption of secrets
121
- */
122
- importEnv(filePath: string): Promise<void>;
123
- /**
124
- * Export configuration to .env file
125
- */
126
- exportEnv(filePath: string): Promise<void>;
127
- /**
128
- * Delete data by ID
129
- */
130
- delete(id: string): Promise<void>;
131
- /**
132
- * Update data by ID
133
- */
134
- update(id: string, data: string, metadata?: any): Promise<void>;
135
- /**
136
- * Helpers
137
- */
138
- private ensureInitialized;
139
- /**
140
- * Load master key from various sources
141
- */
142
- private loadMasterKey;
143
- private isInitialized;
144
- private initBrainy;
145
- private saveConfig;
146
- /**
147
- * Configuration categories for enhanced secret management
148
- */
149
- static readonly CONFIG_CATEGORIES: {
150
- readonly SECRET: "secret";
151
- readonly SENSITIVE: "sensitive";
152
- readonly CONFIG: "config";
153
- readonly PUBLIC: "public";
154
- };
155
- private customSecretPatterns;
156
- /**
157
- * Enhanced secret detection with custom patterns and categories
158
- */
159
- private isSecret;
160
- /**
161
- * Add custom secret detection patterns
162
- */
163
- addSecretPattern(pattern: string): Promise<void>;
164
- /**
165
- * Remove custom secret detection pattern
166
- */
167
- removeSecretPattern(pattern: string): Promise<void>;
168
- /**
169
- * List all secret detection patterns
170
- */
171
- listSecretPatterns(): Promise<void>;
172
- /**
173
- * Save custom patterns to disk
174
- */
175
- private saveCustomPatterns;
176
- /**
177
- * Load custom patterns from disk
178
- */
179
- private loadCustomPatterns;
180
- /**
181
- * Determine config category for enhanced management
182
- */
183
- private getConfigCategory;
184
- /**
185
- * Cortex Augmentation System - AI-Powered Data Understanding
186
- */
187
- neuralImport(filePath: string, options?: any): Promise<void>;
188
- neuralAnalyze(filePath: string): Promise<void>;
189
- neuralValidate(filePath: string): Promise<void>;
190
- neuralTypes(): Promise<void>;
191
- /**
192
- * Augmentation Pipeline Management - Control the Neural Enhancement System
193
- */
194
- listAugmentations(): Promise<void>;
195
- addAugmentation(type: string, position?: number, config?: any): Promise<void>;
196
- removeAugmentation(type: string): Promise<void>;
197
- configureAugmentation(type: string, config: any): Promise<void>;
198
- resetPipeline(): Promise<void>;
199
- executePipelineStep(step: string, data: any): Promise<void>;
200
- /**
201
- * Backup & Restore System - Atomic Data Preservation
202
- */
203
- backup(options?: any): Promise<void>;
204
- restore(file: string): Promise<void>;
205
- listBackups(directory?: string): Promise<void>;
206
- /**
207
- * Show augmentation status and management
208
- */
209
- augmentations(options?: any): Promise<void>;
210
- /**
211
- * Performance Monitoring & Health Check System - Atomic Age Intelligence Observatory
212
- */
213
- monitor(options?: any): Promise<void>;
214
- health(options?: any): Promise<void>;
215
- performance(options?: any): Promise<void>;
216
- /**
217
- * Premium Features - Redirect to Brain Cloud
218
- */
219
- licenseCatalog(): Promise<void>;
220
- licenseStatus(licenseId?: string): Promise<void>;
221
- licenseTrial(featureId: string, customerName?: string, customerEmail?: string): Promise<void>;
222
- licenseValidate(featureId: string): Promise<boolean>;
223
- /**
224
- * Check if a premium feature is available
225
- */
226
- requirePremiumFeature(featureId: string, silent?: boolean): Promise<boolean>;
227
- /**
228
- * Brain Jar AI Coordination Methods
229
- */
230
- brainJarInstall(mode: string): Promise<void>;
231
- brainJarStart(options: any): Promise<void>;
232
- brainJarDashboard(shouldOpen?: boolean): Promise<void>;
233
- brainJarStatus(): Promise<void>;
234
- brainJarStop(): Promise<void>;
235
- brainJarAgents(): Promise<void>;
236
- brainJarMessage(text: string): Promise<void>;
237
- brainJarSearch(query: string, limit: number): Promise<void>;
238
- /**
239
- * Brain Cloud Super Command - One command to rule them all
240
- */
241
- setupBrainCloud(options: any): Promise<void>;
242
- /**
243
- * Helper method to determine data type from file path
244
- */
245
- private getDataTypeFromPath;
246
- }
247
- interface InitOptions {
248
- storage?: string;
249
- encryption?: boolean;
250
- chat?: boolean;
251
- llm?: string;
252
- }
253
- interface MigrateOptions {
254
- to: string;
255
- bucket?: string;
256
- strategy?: 'immediate' | 'gradual';
257
- }
258
- interface SearchOptions {
259
- limit?: number;
260
- filter?: any;
261
- verbs?: string[];
262
- depth?: number;
263
- }
264
- export {};