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:
parent
6b88b53056
commit
aa4a76352f
2 changed files with 12 additions and 9 deletions
|
|
@ -109,7 +109,11 @@ import { AugmentationType, BrainyAugmentations } from './types/augmentations.js'
|
|||
export type {
|
||||
IAugmentation,
|
||||
AugmentationResponse,
|
||||
IWebSocketSupport,
|
||||
IWebSocketSupport
|
||||
}
|
||||
export {
|
||||
AugmentationType,
|
||||
BrainyAugmentations,
|
||||
ISenseAugmentation,
|
||||
IConduitAugmentation,
|
||||
ICognitionAugmentation,
|
||||
|
|
@ -118,7 +122,6 @@ export type {
|
|||
IDialogAugmentation,
|
||||
IActivationAugmentation
|
||||
}
|
||||
export { AugmentationType, BrainyAugmentations }
|
||||
|
||||
// Export combined WebSocket augmentation interfaces
|
||||
export type {
|
||||
|
|
|
|||
|
|
@ -349,13 +349,13 @@ 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
|
||||
export interface ISenseAugmentation extends BrainyAugmentations.ISenseAugmentation {}
|
||||
export interface IConduitAugmentation extends BrainyAugmentations.IConduitAugmentation {}
|
||||
export interface ICognitionAugmentation extends BrainyAugmentations.ICognitionAugmentation {}
|
||||
export interface IMemoryAugmentation extends BrainyAugmentations.IMemoryAugmentation {}
|
||||
export interface IPerceptionAugmentation extends BrainyAugmentations.IPerceptionAugmentation {}
|
||||
export interface IDialogAugmentation extends BrainyAugmentations.IDialogAugmentation {}
|
||||
export interface IActivationAugmentation extends BrainyAugmentations.IActivationAugmentation {}
|
||||
|
||||
/** WebSocket-enabled augmentation interfaces */
|
||||
export type IWebSocketSenseAugmentation = BrainyAugmentations.ISenseAugmentation & IWebSocketSupport
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue