/** * Brainy 2.0 Augmentation Types * * This file contains only the minimal types needed for augmentations. * The main augmentation interfaces are now in augmentations/brainyAugmentation.ts */ /** * WebSocket connection type for conduit augmentations */ export type WebSocketConnection = { connectionId: string url: string status: 'connected' | 'disconnected' | 'error' send?: (data: string | ArrayBufferLike | Blob | ArrayBufferView) => Promise close?: () => Promise _streamMessageHandler?: (event: { data: unknown }) => void _messageHandlerWrapper?: (data: unknown) => void } /** * Generic augmentation response type */ export type AugmentationResponse = { success: boolean data: T error?: string } /** * Data callback type for subscriptions */ export type DataCallback = (data: T) => void /** * Import types for re-export (avoiding circular dependencies) */ import type { BrainyAugmentation as BA, BaseAugmentation as BaseA, AugmentationContext as AC } from '../augmentations/brainyAugmentation.js' export type BrainyAugmentation = BA export type BaseAugmentation = BaseA export type AugmentationContext = AC // REMOVED: Old augmentation type system for 2.0 clean architecture // All augmentations now use the unified BrainyAugmentation interface from brainyAugmentation.ts // Temporary exports for compilation - TO BE REMOVED export type IAugmentation = BrainyAugmentation export enum AugmentationType { SENSE = 'sense', CONDUIT = 'conduit', COGNITION = 'cognition', MEMORY = 'memory', PERCEPTION = 'perception', DIALOG = 'dialog', ACTIVATION = 'activation', WEBSOCKET = 'webSocket', SYNAPSE = 'synapse' } export namespace BrainyAugmentations { export type ISenseAugmentation = BrainyAugmentation export type IConduitAugmentation = BrainyAugmentation export type ICognitionAugmentation = BrainyAugmentation export type IMemoryAugmentation = BrainyAugmentation export type IPerceptionAugmentation = BrainyAugmentation export type IDialogAugmentation = BrainyAugmentation export type IActivationAugmentation = BrainyAugmentation export type ISynapseAugmentation = BrainyAugmentation } export type ISenseAugmentation = BrainyAugmentation export type IConduitAugmentation = BrainyAugmentation export type ICognitionAugmentation = BrainyAugmentation export type IMemoryAugmentation = BrainyAugmentation export type IPerceptionAugmentation = BrainyAugmentation export type IDialogAugmentation = BrainyAugmentation export type IActivationAugmentation = BrainyAugmentation export type ISynapseAugmentation = BrainyAugmentation export interface IWebSocketSupport {}