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.
This commit is contained in:
parent
cf4673f259
commit
0d5060aee2
2 changed files with 25 additions and 2 deletions
18
src/index.ts
18
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 }
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue