From 0d5060aee28bf376d40b124ab17d9b2f4a4ad2f8 Mon Sep 17 00:00:00 2001 From: David Snelling Date: Wed, 28 May 2025 11:03:32 -0700 Subject: [PATCH] feat: add direct exports for augmentation interfaces Introduced direct exports for several augmentation interfaces (e.g., ISenseAugmentation, ICognitionAugmentation) to simplify imports and enhance type accessibility. Updated type imports and exports in relevant files. --- src/index.ts | 18 ++++++++++++++++-- src/types/augmentations.ts | 9 +++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 8fd10203..2cb1b1b6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -96,13 +96,27 @@ export type { import type { IAugmentation, AugmentationResponse, - IWebSocketSupport + IWebSocketSupport, + ISenseAugmentation, + IConduitAugmentation, + ICognitionAugmentation, + IMemoryAugmentation, + IPerceptionAugmentation, + IDialogAugmentation, + IActivationAugmentation } from './types/augmentations.js' import { AugmentationType, BrainyAugmentations } from './types/augmentations.js' export type { IAugmentation, AugmentationResponse, - IWebSocketSupport + IWebSocketSupport, + ISenseAugmentation, + IConduitAugmentation, + ICognitionAugmentation, + IMemoryAugmentation, + IPerceptionAugmentation, + IDialogAugmentation, + IActivationAugmentation } export { AugmentationType, BrainyAugmentations } diff --git a/src/types/augmentations.ts b/src/types/augmentations.ts index 1c4b9b69..bb1f1689 100644 --- a/src/types/augmentations.ts +++ b/src/types/augmentations.ts @@ -348,6 +348,15 @@ export namespace BrainyAugmentations { } } +/** Direct exports of augmentation interfaces for easier imports */ +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 + /** WebSocket-enabled augmentation interfaces */ export type IWebSocketSenseAugmentation = BrainyAugmentations.ISenseAugmentation & IWebSocketSupport export type IWebSocketConduitAugmentation = BrainyAugmentations.IConduitAugmentation & IWebSocketSupport