CHECKPOINT: Brainy 2.0 API refactor - pre-fixes state

Current state:
- Unified augmentation system to BrainyAugmentation interface
- Changed methods to specific noun/verb naming (addNoun, getNoun, etc)
- Made old methods private
- Combined getNouns into single unified method
- Neural API exists and is complete
- Triple Intelligence uses correct Brainy operators (not MongoDB)

Issues identified:
- Documentation incorrectly shows MongoDB operators (code is correct)
- Need to ensure all features are properly exposed
- Need to verify nothing was lost in simplification

This commit serves as a rollback point before applying fixes.
This commit is contained in:
David Snelling 2025-08-25 09:52:32 -07:00
commit 26c7d61185
279 changed files with 177945 additions and 0 deletions

44
src/pipeline.ts Normal file
View file

@ -0,0 +1,44 @@
/**
* Pipeline - Clean Re-export of Cortex
*
* After the Great Cleanup: Pipeline IS Cortex. No delegation, no complexity.
* ONE way to do everything.
*/
// Export the ONE consolidated Cortex class as Pipeline for those who prefer the name
export {
Cortex as Pipeline,
cortex as pipeline,
ExecutionMode,
PipelineOptions
} from './augmentationPipeline.js'
// Re-export for backward compatibility in imports
export {
cortex as augmentationPipeline,
Cortex
} from './augmentationPipeline.js'
// Simple factory functions
export const createPipeline = async () => {
const { Cortex } = await import('./augmentationPipeline.js')
return new Cortex()
}
export const createStreamingPipeline = async () => {
const { Cortex } = await import('./augmentationPipeline.js')
return new Cortex()
}
// Type aliases for consistency
export type { PipelineOptions as StreamlinedPipelineOptions } from './augmentationPipeline.js'
export type PipelineResult<T> = { success: boolean; data: T; error?: string }
export type StreamlinedPipelineResult<T> = PipelineResult<T>
// Execution mode alias
export enum StreamlinedExecutionMode {
SEQUENTIAL = 'sequential',
PARALLEL = 'parallel',
FIRST_SUCCESS = 'firstSuccess',
FIRST_RESULT = 'firstResult',
THREADED = 'threaded'
}