@soulcraft/brainy 1.4.0 → 2.0.0
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.
- package/CHANGELOG.md +188 -0
- package/LICENSE +2 -2
- package/README.md +201 -596
- package/bin/brainy-interactive.js +564 -0
- package/bin/brainy-ts.js +18 -0
- package/bin/brainy.js +672 -81
- package/dist/augmentationPipeline.d.ts +48 -220
- package/dist/augmentationPipeline.js +60 -508
- package/dist/augmentationRegistry.d.ts +22 -31
- package/dist/augmentationRegistry.js +28 -79
- package/dist/augmentations/apiServerAugmentation.d.ts +108 -0
- package/dist/augmentations/apiServerAugmentation.js +502 -0
- package/dist/augmentations/batchProcessingAugmentation.d.ts +95 -0
- package/dist/augmentations/batchProcessingAugmentation.js +567 -0
- package/dist/augmentations/brainyAugmentation.d.ts +153 -0
- package/dist/augmentations/brainyAugmentation.js +145 -0
- package/dist/augmentations/cacheAugmentation.d.ts +105 -0
- package/dist/augmentations/cacheAugmentation.js +238 -0
- package/dist/augmentations/conduitAugmentations.d.ts +54 -156
- package/dist/augmentations/conduitAugmentations.js +156 -1082
- package/dist/augmentations/connectionPoolAugmentation.d.ts +62 -0
- package/dist/augmentations/connectionPoolAugmentation.js +316 -0
- package/dist/augmentations/defaultAugmentations.d.ts +53 -0
- package/dist/augmentations/defaultAugmentations.js +88 -0
- package/dist/augmentations/entityRegistryAugmentation.d.ts +126 -0
- package/dist/augmentations/entityRegistryAugmentation.js +386 -0
- package/dist/augmentations/indexAugmentation.d.ts +117 -0
- package/dist/augmentations/indexAugmentation.js +284 -0
- package/dist/augmentations/intelligentVerbScoringAugmentation.d.ts +152 -0
- package/dist/augmentations/intelligentVerbScoringAugmentation.js +554 -0
- package/dist/augmentations/metricsAugmentation.d.ts +202 -0
- package/dist/augmentations/metricsAugmentation.js +291 -0
- package/dist/augmentations/monitoringAugmentation.d.ts +94 -0
- package/dist/augmentations/monitoringAugmentation.js +227 -0
- package/dist/augmentations/neuralImport.d.ts +50 -117
- package/dist/augmentations/neuralImport.js +255 -629
- package/dist/augmentations/requestDeduplicatorAugmentation.d.ts +52 -0
- package/dist/augmentations/requestDeduplicatorAugmentation.js +162 -0
- package/dist/augmentations/serverSearchAugmentations.d.ts +43 -22
- package/dist/augmentations/serverSearchAugmentations.js +125 -72
- package/dist/augmentations/storageAugmentation.d.ts +54 -0
- package/dist/augmentations/storageAugmentation.js +93 -0
- package/dist/augmentations/storageAugmentations.d.ts +96 -0
- package/dist/augmentations/storageAugmentations.js +182 -0
- package/dist/augmentations/synapseAugmentation.d.ts +156 -0
- package/dist/augmentations/synapseAugmentation.js +312 -0
- package/dist/augmentations/walAugmentation.d.ts +108 -0
- package/dist/augmentations/walAugmentation.js +515 -0
- package/dist/brainyData.d.ts +404 -130
- package/dist/brainyData.js +1336 -855
- package/dist/chat/BrainyChat.d.ts +16 -8
- package/dist/chat/BrainyChat.js +60 -32
- package/dist/chat/ChatCLI.d.ts +1 -1
- package/dist/chat/ChatCLI.js +6 -6
- package/dist/cli/catalog.d.ts +3 -3
- package/dist/cli/catalog.js +116 -70
- package/dist/cli/commands/core.d.ts +61 -0
- package/dist/cli/commands/core.js +348 -0
- package/dist/cli/commands/neural.d.ts +25 -0
- package/dist/cli/commands/neural.js +508 -0
- package/dist/cli/commands/utility.d.ts +37 -0
- package/dist/cli/commands/utility.js +276 -0
- package/dist/cli/index.d.ts +7 -0
- package/dist/cli/index.js +167 -0
- package/dist/cli/interactive.d.ts +164 -0
- package/dist/cli/interactive.js +542 -0
- package/dist/cortex/neuralImport.js +5 -5
- package/dist/critical/model-guardian.js +11 -4
- package/dist/embeddings/lightweight-embedder.d.ts +23 -0
- package/dist/embeddings/lightweight-embedder.js +136 -0
- package/dist/embeddings/universal-memory-manager.d.ts +38 -0
- package/dist/embeddings/universal-memory-manager.js +206 -0
- package/dist/embeddings/worker-embedding.d.ts +7 -0
- package/dist/embeddings/worker-embedding.js +77 -0
- package/dist/embeddings/worker-manager.d.ts +28 -0
- package/dist/embeddings/worker-manager.js +162 -0
- package/dist/examples/basicUsage.js +7 -7
- package/dist/graph/pathfinding.d.ts +78 -0
- package/dist/graph/pathfinding.js +393 -0
- package/dist/hnsw/hnswIndex.d.ts +13 -0
- package/dist/hnsw/hnswIndex.js +35 -0
- package/dist/hnsw/hnswIndexOptimized.d.ts +1 -0
- package/dist/hnsw/hnswIndexOptimized.js +3 -0
- package/dist/index.d.ts +9 -11
- package/dist/index.js +21 -11
- package/dist/indices/fieldIndex.d.ts +76 -0
- package/dist/indices/fieldIndex.js +357 -0
- package/dist/mcp/brainyMCPAdapter.js +3 -2
- package/dist/mcp/mcpAugmentationToolset.js +11 -17
- package/dist/neural/embeddedPatterns.d.ts +41 -0
- package/dist/neural/embeddedPatterns.js +4044 -0
- package/dist/neural/naturalLanguageProcessor.d.ts +94 -0
- package/dist/neural/naturalLanguageProcessor.js +317 -0
- package/dist/neural/naturalLanguageProcessorStatic.d.ts +64 -0
- package/dist/neural/naturalLanguageProcessorStatic.js +151 -0
- package/dist/neural/neuralAPI.d.ts +255 -0
- package/dist/neural/neuralAPI.js +612 -0
- package/dist/neural/patternLibrary.d.ts +101 -0
- package/dist/neural/patternLibrary.js +313 -0
- package/dist/neural/patterns.d.ts +27 -0
- package/dist/neural/patterns.js +68 -0
- package/dist/neural/staticPatternMatcher.d.ts +35 -0
- package/dist/neural/staticPatternMatcher.js +153 -0
- package/dist/scripts/precomputePatternEmbeddings.d.ts +19 -0
- package/dist/scripts/precomputePatternEmbeddings.js +100 -0
- package/dist/storage/adapters/fileSystemStorage.d.ts +5 -0
- package/dist/storage/adapters/fileSystemStorage.js +20 -0
- package/dist/storage/adapters/s3CompatibleStorage.d.ts +5 -0
- package/dist/storage/adapters/s3CompatibleStorage.js +16 -0
- package/dist/storage/enhancedClearOperations.d.ts +83 -0
- package/dist/storage/enhancedClearOperations.js +345 -0
- package/dist/storage/storageFactory.js +31 -27
- package/dist/triple/TripleIntelligence.d.ts +134 -0
- package/dist/triple/TripleIntelligence.js +548 -0
- package/dist/types/augmentations.d.ts +45 -344
- package/dist/types/augmentations.js +5 -2
- package/dist/types/brainyDataInterface.d.ts +20 -10
- package/dist/types/graphTypes.d.ts +46 -0
- package/dist/types/graphTypes.js +16 -2
- package/dist/utils/BoundedRegistry.d.ts +29 -0
- package/dist/utils/BoundedRegistry.js +54 -0
- package/dist/utils/embedding.js +20 -3
- package/dist/utils/hybridModelManager.js +10 -5
- package/dist/utils/metadataFilter.d.ts +33 -19
- package/dist/utils/metadataFilter.js +58 -23
- package/dist/utils/metadataIndex.d.ts +37 -6
- package/dist/utils/metadataIndex.js +427 -64
- package/dist/utils/requestDeduplicator.d.ts +10 -0
- package/dist/utils/requestDeduplicator.js +24 -0
- package/dist/utils/unifiedCache.d.ts +103 -0
- package/dist/utils/unifiedCache.js +311 -0
- package/package.json +43 -128
- package/scripts/ensure-models.js +108 -0
- package/scripts/prepare-models.js +387 -0
- package/OFFLINE_MODELS.md +0 -56
- package/dist/intelligence/neuralEngine.d.ts +0 -207
- package/dist/intelligence/neuralEngine.js +0 -706
- package/dist/utils/modelLoader.d.ts +0 -32
- package/dist/utils/modelLoader.js +0 -219
- package/dist/utils/modelManager.d.ts +0 -77
- package/dist/utils/modelManager.js +0 -219
|
@@ -1,30 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Augmentation Pipeline (Compatibility Layer)
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* @deprecated This file provides backward compatibility for code that imports
|
|
5
|
+
* from augmentationPipeline. All new code should use AugmentationRegistry directly.
|
|
5
6
|
*
|
|
6
|
-
* This
|
|
7
|
-
* augmentations across all categories. Like the brain's cortex, it orchestrates
|
|
8
|
-
* different capabilities (augmentations) in sequence or parallel.
|
|
9
|
-
*
|
|
10
|
-
* @deprecated AugmentationPipeline - Use Cortex instead
|
|
11
|
-
*/
|
|
12
|
-
import { BrainyAugmentations, IAugmentation, IWebSocketSupport, AugmentationResponse, AugmentationType } from './types/augmentations.js';
|
|
13
|
-
/**
|
|
14
|
-
* Type definitions for the augmentation registry
|
|
7
|
+
* This minimal implementation redirects to the new AugmentationRegistry system.
|
|
15
8
|
*/
|
|
16
|
-
|
|
17
|
-
sense: BrainyAugmentations.ISenseAugmentation[];
|
|
18
|
-
conduit: BrainyAugmentations.IConduitAugmentation[];
|
|
19
|
-
cognition: BrainyAugmentations.ICognitionAugmentation[];
|
|
20
|
-
memory: BrainyAugmentations.IMemoryAugmentation[];
|
|
21
|
-
perception: BrainyAugmentations.IPerceptionAugmentation[];
|
|
22
|
-
dialog: BrainyAugmentations.IDialogAugmentation[];
|
|
23
|
-
activation: BrainyAugmentations.IActivationAugmentation[];
|
|
24
|
-
webSocket: IWebSocketSupport[];
|
|
25
|
-
};
|
|
9
|
+
import { BrainyAugmentation } from './types/augmentations.js';
|
|
26
10
|
/**
|
|
27
|
-
* Execution mode for
|
|
11
|
+
* Execution mode for pipeline operations
|
|
28
12
|
*/
|
|
29
13
|
export declare enum ExecutionMode {
|
|
30
14
|
SEQUENTIAL = "sequential",
|
|
@@ -39,233 +23,77 @@ export declare enum ExecutionMode {
|
|
|
39
23
|
export interface PipelineOptions {
|
|
40
24
|
mode?: ExecutionMode;
|
|
41
25
|
timeout?: number;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
disableThreading?: boolean;
|
|
26
|
+
retries?: number;
|
|
27
|
+
throwOnError?: boolean;
|
|
45
28
|
}
|
|
46
29
|
/**
|
|
47
|
-
* Cortex class
|
|
48
|
-
*
|
|
49
|
-
* Manages all augmentations like the cerebral cortex coordinates different brain regions.
|
|
50
|
-
* This is the central pipeline that orchestrates all augmentation execution.
|
|
30
|
+
* Minimal Cortex class for backward compatibility
|
|
31
|
+
* Redirects all operations to the new AugmentationRegistry system
|
|
51
32
|
*/
|
|
52
33
|
export declare class Cortex {
|
|
53
|
-
private
|
|
54
|
-
|
|
55
|
-
* Register an augmentation with the cortex
|
|
56
|
-
*
|
|
57
|
-
* @param augmentation The augmentation to register
|
|
58
|
-
* @returns The cortex instance for chaining
|
|
59
|
-
*/
|
|
60
|
-
register<T extends IAugmentation>(augmentation: T): Cortex;
|
|
61
|
-
/**
|
|
62
|
-
* Unregister an augmentation from the pipeline
|
|
63
|
-
*
|
|
64
|
-
* @param augmentationName The name of the augmentation to unregister
|
|
65
|
-
* @returns The pipeline instance for chaining
|
|
66
|
-
*/
|
|
67
|
-
unregister(augmentationName: string): Cortex;
|
|
68
|
-
/**
|
|
69
|
-
* Initialize all registered augmentations
|
|
70
|
-
*
|
|
71
|
-
* @returns A promise that resolves when all augmentations are initialized
|
|
72
|
-
*/
|
|
73
|
-
initialize(): Promise<void>;
|
|
74
|
-
/**
|
|
75
|
-
* Shut down all registered augmentations
|
|
76
|
-
*
|
|
77
|
-
* @returns A promise that resolves when all augmentations are shut down
|
|
78
|
-
*/
|
|
79
|
-
shutDown(): Promise<void>;
|
|
80
|
-
/**
|
|
81
|
-
* Execute a sense pipeline
|
|
82
|
-
*
|
|
83
|
-
* @param method The method to execute on each sense augmentation
|
|
84
|
-
* @param args The arguments to pass to the method
|
|
85
|
-
* @param options The pipeline execution options
|
|
86
|
-
* @returns A promise that resolves with the results from all augmentations
|
|
87
|
-
*/
|
|
88
|
-
executeSensePipeline<M extends keyof BrainyAugmentations.ISenseAugmentation & string, R extends BrainyAugmentations.ISenseAugmentation[M] extends (...args: any[]) => AugmentationResponse<infer U> ? U : never>(method: M & (BrainyAugmentations.ISenseAugmentation[M] extends (...args: any[]) => any ? M : never), args: Parameters<Extract<BrainyAugmentations.ISenseAugmentation[M], (...args: any[]) => any>>, options?: PipelineOptions): Promise<Promise<{
|
|
89
|
-
success: boolean;
|
|
90
|
-
data: R;
|
|
91
|
-
error?: string;
|
|
92
|
-
}>[]>;
|
|
93
|
-
/**
|
|
94
|
-
* Execute a conduit pipeline
|
|
95
|
-
*
|
|
96
|
-
* @param method The method to execute on each conduit augmentation
|
|
97
|
-
* @param args The arguments to pass to the method
|
|
98
|
-
* @param options The pipeline execution options
|
|
99
|
-
* @returns A promise that resolves with the results from all augmentations
|
|
100
|
-
*/
|
|
101
|
-
executeConduitPipeline<M extends keyof BrainyAugmentations.IConduitAugmentation & string, R extends BrainyAugmentations.IConduitAugmentation[M] extends (...args: any[]) => AugmentationResponse<infer U> ? U : never>(method: M & (BrainyAugmentations.IConduitAugmentation[M] extends (...args: any[]) => any ? M : never), args: Parameters<Extract<BrainyAugmentations.IConduitAugmentation[M], (...args: any[]) => any>>, options?: PipelineOptions): Promise<Promise<{
|
|
102
|
-
success: boolean;
|
|
103
|
-
data: R;
|
|
104
|
-
error?: string;
|
|
105
|
-
}>[]>;
|
|
106
|
-
/**
|
|
107
|
-
* Execute a cognition pipeline
|
|
108
|
-
*
|
|
109
|
-
* @param method The method to execute on each cognition augmentation
|
|
110
|
-
* @param args The arguments to pass to the method
|
|
111
|
-
* @param options The pipeline execution options
|
|
112
|
-
* @returns A promise that resolves with the results from all augmentations
|
|
113
|
-
*/
|
|
114
|
-
executeCognitionPipeline<M extends keyof BrainyAugmentations.ICognitionAugmentation & string, R extends BrainyAugmentations.ICognitionAugmentation[M] extends (...args: any[]) => AugmentationResponse<infer U> ? U : never>(method: M & (BrainyAugmentations.ICognitionAugmentation[M] extends (...args: any[]) => any ? M : never), args: Parameters<Extract<BrainyAugmentations.ICognitionAugmentation[M], (...args: any[]) => any>>, options?: PipelineOptions): Promise<Promise<{
|
|
115
|
-
success: boolean;
|
|
116
|
-
data: R;
|
|
117
|
-
error?: string;
|
|
118
|
-
}>[]>;
|
|
119
|
-
/**
|
|
120
|
-
* Execute a memory pipeline
|
|
121
|
-
*
|
|
122
|
-
* @param method The method to execute on each memory augmentation
|
|
123
|
-
* @param args The arguments to pass to the method
|
|
124
|
-
* @param options The pipeline execution options
|
|
125
|
-
* @returns A promise that resolves with the results from all augmentations
|
|
126
|
-
*/
|
|
127
|
-
executeMemoryPipeline<M extends keyof BrainyAugmentations.IMemoryAugmentation & string, R extends BrainyAugmentations.IMemoryAugmentation[M] extends (...args: any[]) => AugmentationResponse<infer U> ? U : never>(method: M & (BrainyAugmentations.IMemoryAugmentation[M] extends (...args: any[]) => any ? M : never), args: Parameters<Extract<BrainyAugmentations.IMemoryAugmentation[M], (...args: any[]) => any>>, options?: PipelineOptions): Promise<Promise<{
|
|
128
|
-
success: boolean;
|
|
129
|
-
data: R;
|
|
130
|
-
error?: string;
|
|
131
|
-
}>[]>;
|
|
132
|
-
/**
|
|
133
|
-
* Execute a perception pipeline
|
|
134
|
-
*
|
|
135
|
-
* @param method The method to execute on each perception augmentation
|
|
136
|
-
* @param args The arguments to pass to the method
|
|
137
|
-
* @param options The pipeline execution options
|
|
138
|
-
* @returns A promise that resolves with the results from all augmentations
|
|
139
|
-
*/
|
|
140
|
-
executePerceptionPipeline<M extends keyof BrainyAugmentations.IPerceptionAugmentation & string, R extends BrainyAugmentations.IPerceptionAugmentation[M] extends (...args: any[]) => AugmentationResponse<infer U> ? U : never>(method: M & (BrainyAugmentations.IPerceptionAugmentation[M] extends (...args: any[]) => any ? M : never), args: Parameters<Extract<BrainyAugmentations.IPerceptionAugmentation[M], (...args: any[]) => any>>, options?: PipelineOptions): Promise<Promise<{
|
|
141
|
-
success: boolean;
|
|
142
|
-
data: R;
|
|
143
|
-
error?: string;
|
|
144
|
-
}>[]>;
|
|
145
|
-
/**
|
|
146
|
-
* Execute a dialog pipeline
|
|
147
|
-
*
|
|
148
|
-
* @param method The method to execute on each dialog augmentation
|
|
149
|
-
* @param args The arguments to pass to the method
|
|
150
|
-
* @param options The pipeline execution options
|
|
151
|
-
* @returns A promise that resolves with the results from all augmentations
|
|
152
|
-
*/
|
|
153
|
-
executeDialogPipeline<M extends keyof BrainyAugmentations.IDialogAugmentation & string, R extends BrainyAugmentations.IDialogAugmentation[M] extends (...args: any[]) => AugmentationResponse<infer U> ? U : never>(method: M & (BrainyAugmentations.IDialogAugmentation[M] extends (...args: any[]) => any ? M : never), args: Parameters<Extract<BrainyAugmentations.IDialogAugmentation[M], (...args: any[]) => any>>, options?: PipelineOptions): Promise<Promise<{
|
|
154
|
-
success: boolean;
|
|
155
|
-
data: R;
|
|
156
|
-
error?: string;
|
|
157
|
-
}>[]>;
|
|
34
|
+
private static instance?;
|
|
35
|
+
constructor();
|
|
158
36
|
/**
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
* @param method The method to execute on each activation augmentation
|
|
162
|
-
* @param args The arguments to pass to the method
|
|
163
|
-
* @param options The pipeline execution options
|
|
164
|
-
* @returns A promise that resolves with the results from all augmentations
|
|
37
|
+
* Get all available augmentation types (returns empty for compatibility)
|
|
38
|
+
* @deprecated Use brain.augmentations instead
|
|
165
39
|
*/
|
|
166
|
-
|
|
167
|
-
success: boolean;
|
|
168
|
-
data: R;
|
|
169
|
-
error?: string;
|
|
170
|
-
}>[]>;
|
|
40
|
+
getAvailableAugmentationTypes(): string[];
|
|
171
41
|
/**
|
|
172
|
-
* Get
|
|
173
|
-
*
|
|
174
|
-
* @returns An array of all registered augmentations
|
|
42
|
+
* Get augmentations by type (returns empty for compatibility)
|
|
43
|
+
* @deprecated Use brain.augmentations instead
|
|
175
44
|
*/
|
|
176
|
-
|
|
45
|
+
getAugmentationsByType(type: string): BrainyAugmentation[];
|
|
177
46
|
/**
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
* @param type The type of augmentation to get
|
|
181
|
-
* @returns An array of all augmentations of the specified type
|
|
47
|
+
* Check if augmentation is enabled (returns false for compatibility)
|
|
48
|
+
* @deprecated Use brain.augmentations instead
|
|
182
49
|
*/
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Get all available augmentation types
|
|
186
|
-
*
|
|
187
|
-
* @returns An array of all augmentation types that have at least one registered augmentation
|
|
188
|
-
*/
|
|
189
|
-
getAvailableAugmentationTypes(): AugmentationType[];
|
|
190
|
-
/**
|
|
191
|
-
* Get all WebSocket-supporting augmentations
|
|
192
|
-
*
|
|
193
|
-
* @returns An array of all augmentations that support WebSocket connections
|
|
194
|
-
*/
|
|
195
|
-
getWebSocketAugmentations(): IWebSocketSupport[];
|
|
196
|
-
/**
|
|
197
|
-
* Check if an augmentation is of a specific type
|
|
198
|
-
*
|
|
199
|
-
* @param augmentation The augmentation to check
|
|
200
|
-
* @param methods The methods that should be present on the augmentation
|
|
201
|
-
* @returns True if the augmentation is of the specified type
|
|
202
|
-
*/
|
|
203
|
-
private isAugmentationType;
|
|
50
|
+
isAugmentationEnabled(name: string): boolean;
|
|
204
51
|
/**
|
|
205
|
-
*
|
|
206
|
-
*
|
|
207
|
-
* @param options The pipeline options
|
|
208
|
-
* @returns True if threading should be used, false otherwise
|
|
52
|
+
* List augmentations with status (returns empty for compatibility)
|
|
53
|
+
* @deprecated Use brain.augmentations instead
|
|
209
54
|
*/
|
|
210
|
-
|
|
55
|
+
listAugmentationsWithStatus(): Array<{
|
|
56
|
+
name: string;
|
|
57
|
+
type: string;
|
|
58
|
+
enabled: boolean;
|
|
59
|
+
description: string;
|
|
60
|
+
}>;
|
|
211
61
|
/**
|
|
212
|
-
* Execute
|
|
213
|
-
*
|
|
214
|
-
* @param augmentations The augmentations to execute
|
|
215
|
-
* @param method The method to execute on each augmentation
|
|
216
|
-
* @param args The arguments to pass to the method
|
|
217
|
-
* @param options The pipeline execution options
|
|
218
|
-
* @returns A promise that resolves with the results from all augmentations
|
|
62
|
+
* Execute augmentations (compatibility method)
|
|
63
|
+
* @deprecated Use brain.augmentations.execute instead
|
|
219
64
|
*/
|
|
220
|
-
|
|
65
|
+
executeAugmentations<T>(operation: string, data: any, options?: PipelineOptions): Promise<T>;
|
|
221
66
|
/**
|
|
222
|
-
* Enable
|
|
223
|
-
*
|
|
224
|
-
* @param name The name of the augmentation to enable
|
|
225
|
-
* @returns True if augmentation was found and enabled
|
|
67
|
+
* Enable augmentation (compatibility method)
|
|
68
|
+
* @deprecated Use brain.augmentations instead
|
|
226
69
|
*/
|
|
227
70
|
enableAugmentation(name: string): boolean;
|
|
228
71
|
/**
|
|
229
|
-
* Disable
|
|
230
|
-
*
|
|
231
|
-
* @param name The name of the augmentation to disable
|
|
232
|
-
* @returns True if augmentation was found and disabled
|
|
72
|
+
* Disable augmentation (compatibility method)
|
|
73
|
+
* @deprecated Use brain.augmentations instead
|
|
233
74
|
*/
|
|
234
75
|
disableAugmentation(name: string): boolean;
|
|
235
76
|
/**
|
|
236
|
-
*
|
|
237
|
-
*
|
|
238
|
-
* @param name The name of the augmentation to check
|
|
239
|
-
* @returns True if augmentation is found and enabled, false otherwise
|
|
77
|
+
* Register augmentation (compatibility method)
|
|
78
|
+
* @deprecated Use brain.augmentations.register instead
|
|
240
79
|
*/
|
|
241
|
-
|
|
80
|
+
register(augmentation: BrainyAugmentation): void;
|
|
242
81
|
/**
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
* @returns Array of augmentations with name, type, and enabled status
|
|
82
|
+
* Unregister augmentation (compatibility method)
|
|
83
|
+
* @deprecated Use brain.augmentations instead
|
|
246
84
|
*/
|
|
247
|
-
|
|
248
|
-
name: string;
|
|
249
|
-
type: keyof AugmentationRegistry;
|
|
250
|
-
enabled: boolean;
|
|
251
|
-
description: string;
|
|
252
|
-
}>;
|
|
85
|
+
unregister(name: string): boolean;
|
|
253
86
|
/**
|
|
254
|
-
* Enable
|
|
255
|
-
*
|
|
256
|
-
* @param type The type of augmentations to enable
|
|
257
|
-
* @returns Number of augmentations enabled
|
|
87
|
+
* Enable augmentation type (compatibility method)
|
|
88
|
+
* @deprecated Use brain.augmentations instead
|
|
258
89
|
*/
|
|
259
|
-
enableAugmentationType(type:
|
|
90
|
+
enableAugmentationType(type: string): number;
|
|
260
91
|
/**
|
|
261
|
-
* Disable
|
|
262
|
-
*
|
|
263
|
-
* @param type The type of augmentations to disable
|
|
264
|
-
* @returns Number of augmentations disabled
|
|
92
|
+
* Disable augmentation type (compatibility method)
|
|
93
|
+
* @deprecated Use brain.augmentations instead
|
|
265
94
|
*/
|
|
266
|
-
disableAugmentationType(type:
|
|
95
|
+
disableAugmentationType(type: string): number;
|
|
267
96
|
}
|
|
268
97
|
export declare const cortex: Cortex;
|
|
269
98
|
export declare const AugmentationPipeline: typeof Cortex;
|
|
270
99
|
export declare const augmentationPipeline: Cortex;
|
|
271
|
-
export {};
|