@soulcraft/brainy 0.63.0 → 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.
@@ -1,269 +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
- private generateResponse;
55
- chat(question?: string): Promise<void>;
56
- /**
57
- * Add data with beautiful prompts
58
- */
59
- add(data?: string, metadata?: any): Promise<void>;
60
- /**
61
- * Add data with AI processing enabled (Neural Import + entity detection)
62
- */
63
- addSmart(data?: string, metadata?: any): Promise<void>;
64
- /**
65
- * Search with beautiful results display and advanced options
66
- */
67
- search(query: string, options?: SearchOptions): Promise<void>;
68
- /**
69
- * Advanced search with interactive prompts
70
- */
71
- advancedSearch(): Promise<void>;
72
- /**
73
- * Add or update graph connections (verbs)
74
- */
75
- addVerb(subject: string, verb: string, object: string, metadata?: any): Promise<void>;
76
- /**
77
- * Interactive graph exploration
78
- */
79
- explore(startId?: string): Promise<void>;
80
- /**
81
- * Configuration management with encryption
82
- */
83
- configSet(key: string, value: string, options?: {
84
- encrypt?: boolean;
85
- }): Promise<void>;
86
- /**
87
- * Get configuration value
88
- */
89
- configGet(key: string): Promise<string | null>;
90
- /**
91
- * List all configuration
92
- */
93
- configList(): Promise<void>;
94
- /**
95
- * Storage migration with beautiful progress
96
- */
97
- migrate(options: MigrateOptions): Promise<void>;
98
- /**
99
- * Show comprehensive statistics and database info
100
- */
101
- stats(detailed?: boolean): Promise<void>;
102
- /**
103
- * List all searchable fields with statistics
104
- */
105
- listFields(): Promise<void>;
106
- /**
107
- * Setup LLM progressively with auto-download
108
- */
109
- setupLLM(provider?: string): Promise<void>;
110
- private setupLocalLLM;
111
- private setupClaudeLLM;
112
- private setupOpenAILLM;
113
- private setupOllamaLLM;
114
- private setupClaudeDesktop;
115
- /**
116
- * Use the embedding model for other tasks
117
- */
118
- embed(text: string): Promise<void>;
119
- /**
120
- * Calculate similarity between two texts
121
- */
122
- similarity(text1: string, text2: string): Promise<void>;
123
- private getSimilarityInterpretation;
124
- /**
125
- * Import .env file with automatic encryption of secrets
126
- */
127
- importEnv(filePath: string): Promise<void>;
128
- /**
129
- * Export configuration to .env file
130
- */
131
- exportEnv(filePath: string): Promise<void>;
132
- /**
133
- * Delete data by ID
134
- */
135
- delete(id: string): Promise<void>;
136
- /**
137
- * Update data by ID
138
- */
139
- update(id: string, data: string, metadata?: any): Promise<void>;
140
- /**
141
- * Helpers
142
- */
143
- private ensureInitialized;
144
- /**
145
- * Load master key from various sources
146
- */
147
- private loadMasterKey;
148
- private isInitialized;
149
- private initBrainy;
150
- private saveConfig;
151
- /**
152
- * Configuration categories for enhanced secret management
153
- */
154
- static readonly CONFIG_CATEGORIES: {
155
- readonly SECRET: "secret";
156
- readonly SENSITIVE: "sensitive";
157
- readonly CONFIG: "config";
158
- readonly PUBLIC: "public";
159
- };
160
- private customSecretPatterns;
161
- /**
162
- * Enhanced secret detection with custom patterns and categories
163
- */
164
- private isSecret;
165
- /**
166
- * Add custom secret detection patterns
167
- */
168
- addSecretPattern(pattern: string): Promise<void>;
169
- /**
170
- * Remove custom secret detection pattern
171
- */
172
- removeSecretPattern(pattern: string): Promise<void>;
173
- /**
174
- * List all secret detection patterns
175
- */
176
- listSecretPatterns(): Promise<void>;
177
- /**
178
- * Save custom patterns to disk
179
- */
180
- private saveCustomPatterns;
181
- /**
182
- * Load custom patterns from disk
183
- */
184
- private loadCustomPatterns;
185
- /**
186
- * Determine config category for enhanced management
187
- */
188
- private getConfigCategory;
189
- /**
190
- * Cortex Augmentation System - AI-Powered Data Understanding
191
- */
192
- neuralImport(filePath: string, options?: any): Promise<void>;
193
- neuralAnalyze(filePath: string): Promise<void>;
194
- neuralValidate(filePath: string): Promise<void>;
195
- neuralTypes(): Promise<void>;
196
- /**
197
- * Augmentation Pipeline Management - Control the Neural Enhancement System
198
- */
199
- listAugmentations(): Promise<void>;
200
- addAugmentation(type: string, position?: number, config?: any): Promise<void>;
201
- removeAugmentation(type: string): Promise<void>;
202
- configureAugmentation(type: string, config: any): Promise<void>;
203
- resetPipeline(): Promise<void>;
204
- executePipelineStep(step: string, data: any): Promise<void>;
205
- /**
206
- * Backup & Restore System - Atomic Data Preservation
207
- */
208
- backup(options?: any): Promise<void>;
209
- restore(file: string): Promise<void>;
210
- listBackups(directory?: string): Promise<void>;
211
- /**
212
- * Show augmentation status and management
213
- */
214
- augmentations(options?: any): Promise<void>;
215
- /**
216
- * Performance Monitoring & Health Check System - Atomic Age Intelligence Observatory
217
- */
218
- monitor(options?: any): Promise<void>;
219
- health(options?: any): Promise<void>;
220
- performance(options?: any): Promise<void>;
221
- /**
222
- * Premium Features - Redirect to Brain Cloud
223
- */
224
- licenseCatalog(): Promise<void>;
225
- licenseStatus(licenseId?: string): Promise<void>;
226
- licenseTrial(featureId: string, customerName?: string, customerEmail?: string): Promise<void>;
227
- licenseValidate(featureId: string): Promise<boolean>;
228
- /**
229
- * Check if a premium feature is available
230
- */
231
- requirePremiumFeature(featureId: string, silent?: boolean): Promise<boolean>;
232
- /**
233
- * Brain Jar AI Coordination Methods
234
- */
235
- brainJarInstall(mode: string): Promise<void>;
236
- brainJarStart(options: any): Promise<void>;
237
- brainJarDashboard(shouldOpen?: boolean): Promise<void>;
238
- brainJarStatus(): Promise<void>;
239
- brainJarStop(): Promise<void>;
240
- brainJarAgents(): Promise<void>;
241
- brainJarMessage(text: string): Promise<void>;
242
- brainJarSearch(query: string, limit: number): Promise<void>;
243
- /**
244
- * Brain Cloud Super Command - One command to rule them all
245
- */
246
- setupBrainCloud(options: any): Promise<void>;
247
- /**
248
- * Helper method to determine data type from file path
249
- */
250
- private getDataTypeFromPath;
251
- }
252
- interface InitOptions {
253
- storage?: string;
254
- encryption?: boolean;
255
- chat?: boolean;
256
- llm?: string;
257
- }
258
- interface MigrateOptions {
259
- to: string;
260
- bucket?: string;
261
- strategy?: 'immediate' | 'gradual';
262
- }
263
- interface SearchOptions {
264
- limit?: number;
265
- filter?: any;
266
- verbs?: string[];
267
- depth?: number;
268
- }
269
- export {};