refactor: prepare augmentation system for 2.0 clean architecture

- Removed factory function exports from index.ts
- Removed unused augmentationFactory imports
- Added deprecated type definitions temporarily to maintain compilation
- Created REFACTOR-2.0-AUGMENTATIONS.md documenting cleanup plan
- All old types marked as @deprecated for removal before final 2.0

This is an intermediate state - full refactor documented in REFACTOR-2.0-AUGMENTATIONS.md
This commit is contained in:
David Snelling 2025-08-25 10:28:13 -07:00
parent a0dca5651f
commit 31720de34e
4 changed files with 93 additions and 114 deletions

View file

@ -180,35 +180,7 @@ import {
// Sequential pipeline removed - use unified pipeline instead
// Export augmentation factory
import {
createSenseAugmentation,
addWebSocketSupport,
executeAugmentation,
loadAugmentationModule,
AugmentationOptions
} from './augmentationFactory.js'
// Export factory functions for creating augmentations
import {
createSenseAugmentation,
createConduitAugmentation,
createCognitionAugmentation,
createMemoryAugmentation,
createPerceptionAugmentation,
createDialogAugmentation,
createActivationAugmentation
} from './augmentationFactory.js'
export {
createSenseAugmentation,
createConduitAugmentation,
createCognitionAugmentation,
createMemoryAugmentation,
createPerceptionAugmentation,
createDialogAugmentation,
createActivationAugmentation
}
// REMOVED: Old augmentation factory for 2.0 clean architecture
export {
// Unified pipeline exports
@ -288,8 +260,7 @@ import {
createAutoStorageAugmentation
} from './augmentations/storageAugmentations.js'
import {
WebSocketConduitAugmentation,
WebRTCConduitAugmentation
WebSocketConduitAugmentation
} from './augmentations/conduitAugmentations.js'
import {
ServerSearchConduitAugmentation,
@ -365,46 +336,23 @@ export type {
// Export augmentation types
import type {
IAugmentation,
AugmentationResponse,
IWebSocketSupport,
ISenseAugmentation,
IConduitAugmentation,
ICognitionAugmentation,
IMemoryAugmentation,
IPerceptionAugmentation,
IDialogAugmentation,
IActivationAugmentation
BrainyAugmentation,
BaseAugmentation,
AugmentationContext
} from './types/augmentations.js'
import { AugmentationType, BrainyAugmentations } from './types/augmentations.js'
// Export augmentation manager for type-safe augmentation management
export { AugmentationManager, type AugmentationInfo } from './augmentationManager.js'
export type { IAugmentation, AugmentationResponse, IWebSocketSupport }
export {
AugmentationType,
BrainyAugmentations,
ISenseAugmentation,
IConduitAugmentation,
ICognitionAugmentation,
IMemoryAugmentation,
IPerceptionAugmentation,
IDialogAugmentation,
IActivationAugmentation
// Export only the clean augmentation types for 2.0
export type {
AugmentationResponse,
BrainyAugmentation,
BaseAugmentation,
AugmentationContext
}
// Export combined WebSocket augmentation interfaces
export type {
IWebSocketCognitionAugmentation,
IWebSocketSenseAugmentation,
IWebSocketPerceptionAugmentation,
IWebSocketActivationAugmentation,
IWebSocketDialogAugmentation,
IWebSocketConduitAugmentation,
IWebSocketMemoryAugmentation
} from './types/augmentations.js'
// Export graph types
import type {
GraphNoun,