diff --git a/src/augmentations/conduitAugmentations.ts b/src/augmentations/conduitAugmentations.ts index d656760e..f2a31b85 100644 --- a/src/augmentations/conduitAugmentations.ts +++ b/src/augmentations/conduitAugmentations.ts @@ -46,6 +46,31 @@ abstract class BaseConduitAugmentation extends BaseAugmentation { ): Promise } +/** + * WebRTC Conduit Augmentation (placeholder for backwards compatibility) + * @deprecated Use WebSocketConduitAugmentation instead + */ +export class WebRTCConduitAugmentation extends BaseConduitAugmentation { + readonly name = 'webrtc-conduit' + + async execute( + operation: string, + params: any, + context?: AugmentationContext + ): Promise { + // Placeholder - WebRTC not yet implemented + this.log('WebRTC conduit not yet implemented, use WebSocket instead', 'warn') + } + + async establishConnection( + targetSystemId: string, + config?: Record + ): Promise { + this.log('WebRTC conduit not yet implemented, use WebSocket instead', 'warn') + return null + } +} + /** * WebSocket Conduit Augmentation * Syncs data between Brainy instances using WebSockets diff --git a/src/index.ts b/src/index.ts index fbf5c296..b6c22165 100644 --- a/src/index.ts +++ b/src/index.ts @@ -189,6 +189,27 @@ import { 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 +} + export { // Unified pipeline exports Pipeline, @@ -268,8 +289,7 @@ import { } from './augmentations/storageAugmentations.js' import { WebSocketConduitAugmentation, - WebRTCConduitAugmentation, - createConduitAugmentation + WebRTCConduitAugmentation } from './augmentations/conduitAugmentations.js' import { ServerSearchConduitAugmentation, diff --git a/src/neural/embeddedPatterns.ts b/src/neural/embeddedPatterns.ts index 32e1ddc5..8ca5f303 100644 --- a/src/neural/embeddedPatterns.ts +++ b/src/neural/embeddedPatterns.ts @@ -2,7 +2,7 @@ * 🧠 BRAINY EMBEDDED PATTERNS * * AUTO-GENERATED - DO NOT EDIT - * Generated: 2025-08-25T16:40:29.940Z + * Generated: 2025-08-25T17:15:55.893Z * Patterns: 220 * Coverage: 94-98% of all queries * diff --git a/src/types/augmentations.ts b/src/types/augmentations.ts index 9e17fb8f..7232a101 100644 --- a/src/types/augmentations.ts +++ b/src/types/augmentations.ts @@ -80,6 +80,25 @@ export namespace BrainyAugmentations { export interface ISynapseAugmentation extends BrainyAugmentation {} } +// Export deprecated interfaces directly for compatibility +export type ISenseAugmentation = BrainyAugmentations.ISenseAugmentation +export type IConduitAugmentation = BrainyAugmentations.IConduitAugmentation +export type ICognitionAugmentation = BrainyAugmentations.ICognitionAugmentation +export type IMemoryAugmentation = BrainyAugmentations.IMemoryAugmentation +export type IPerceptionAugmentation = BrainyAugmentations.IPerceptionAugmentation +export type IDialogAugmentation = BrainyAugmentations.IDialogAugmentation +export type IActivationAugmentation = BrainyAugmentations.IActivationAugmentation +export type ISynapseAugmentation = BrainyAugmentations.ISynapseAugmentation + +// WebSocket types for compatibility +export type IWebSocketCognitionAugmentation = ICognitionAugmentation & IWebSocketSupport +export type IWebSocketSenseAugmentation = ISenseAugmentation & IWebSocketSupport +export type IWebSocketPerceptionAugmentation = IPerceptionAugmentation & IWebSocketSupport +export type IWebSocketActivationAugmentation = IActivationAugmentation & IWebSocketSupport +export type IWebSocketDialogAugmentation = IDialogAugmentation & IWebSocketSupport +export type IWebSocketConduitAugmentation = IConduitAugmentation & IWebSocketSupport +export type IWebSocketMemoryAugmentation = IMemoryAugmentation & IWebSocketSupport + /** * @deprecated Use BrainyAugmentation instead */