feat: refactor augmentation interface exports for improved structure

Replaced type aliases with interface extensions to enhance type compatibility and readability. Reorganized exports in `index.ts` to streamline imports.
This commit is contained in:
David Snelling 2025-05-28 11:48:24 -07:00
parent 6b88b53056
commit aa4a76352f
2 changed files with 12 additions and 9 deletions

View file

@ -109,7 +109,11 @@ import { AugmentationType, BrainyAugmentations } from './types/augmentations.js'
export type { export type {
IAugmentation, IAugmentation,
AugmentationResponse, AugmentationResponse,
IWebSocketSupport, IWebSocketSupport
}
export {
AugmentationType,
BrainyAugmentations,
ISenseAugmentation, ISenseAugmentation,
IConduitAugmentation, IConduitAugmentation,
ICognitionAugmentation, ICognitionAugmentation,
@ -118,7 +122,6 @@ export type {
IDialogAugmentation, IDialogAugmentation,
IActivationAugmentation IActivationAugmentation
} }
export { AugmentationType, BrainyAugmentations }
// Export combined WebSocket augmentation interfaces // Export combined WebSocket augmentation interfaces
export type { export type {

View file

@ -349,13 +349,13 @@ export namespace BrainyAugmentations {
} }
/** Direct exports of augmentation interfaces for easier imports */ /** Direct exports of augmentation interfaces for easier imports */
export type ISenseAugmentation = BrainyAugmentations.ISenseAugmentation export interface ISenseAugmentation extends BrainyAugmentations.ISenseAugmentation {}
export type IConduitAugmentation = BrainyAugmentations.IConduitAugmentation export interface IConduitAugmentation extends BrainyAugmentations.IConduitAugmentation {}
export type ICognitionAugmentation = BrainyAugmentations.ICognitionAugmentation export interface ICognitionAugmentation extends BrainyAugmentations.ICognitionAugmentation {}
export type IMemoryAugmentation = BrainyAugmentations.IMemoryAugmentation export interface IMemoryAugmentation extends BrainyAugmentations.IMemoryAugmentation {}
export type IPerceptionAugmentation = BrainyAugmentations.IPerceptionAugmentation export interface IPerceptionAugmentation extends BrainyAugmentations.IPerceptionAugmentation {}
export type IDialogAugmentation = BrainyAugmentations.IDialogAugmentation export interface IDialogAugmentation extends BrainyAugmentations.IDialogAugmentation {}
export type IActivationAugmentation = BrainyAugmentations.IActivationAugmentation export interface IActivationAugmentation extends BrainyAugmentations.IActivationAugmentation {}
/** WebSocket-enabled augmentation interfaces */ /** WebSocket-enabled augmentation interfaces */
export type IWebSocketSenseAugmentation = BrainyAugmentations.ISenseAugmentation & IWebSocketSupport export type IWebSocketSenseAugmentation = BrainyAugmentations.ISenseAugmentation & IWebSocketSupport