feat: reformat imports and exports for consistency and readability
- Updated all imports and exports in `src/index.ts` and `src/storage/storageFactory.ts` to use a consistent formatting style. - Enhanced readability by standardizing spacing, alignment, and indentation across the codebase. - Applied consistent import/export styling for structured comments and multi-line objects. **Purpose**: Improve code maintainability and readability by enforcing uniform formatting, aligning imports and exports for better clarity.
This commit is contained in:
parent
e3eebaf476
commit
17539244eb
2 changed files with 527 additions and 527 deletions
22
src/index.ts
22
src/index.ts
|
|
@ -13,10 +13,10 @@
|
|||
import './setup.js'
|
||||
|
||||
// Export main BrainyData class and related types
|
||||
import { BrainyData, BrainyDataConfig } from './brainyData.js'
|
||||
import {BrainyData, BrainyDataConfig} from './brainyData.js'
|
||||
|
||||
export { BrainyData }
|
||||
export type { BrainyDataConfig }
|
||||
export {BrainyData}
|
||||
export type {BrainyDataConfig}
|
||||
|
||||
// Export distance functions for convenience
|
||||
import {
|
||||
|
|
@ -43,7 +43,7 @@ import {
|
|||
} from './utils/embedding.js'
|
||||
|
||||
// Export worker utilities
|
||||
import { executeInThread, cleanupWorkerPools } from './utils/workerUtils.js'
|
||||
import {executeInThread, cleanupWorkerPools} from './utils/workerUtils.js'
|
||||
|
||||
// Export environment utilities
|
||||
import {
|
||||
|
|
@ -201,7 +201,7 @@ export {
|
|||
createAugmentationRegistryPlugin,
|
||||
createAugmentationRegistryRollupPlugin
|
||||
}
|
||||
export type { AugmentationRegistryLoaderOptions, AugmentationLoadResult }
|
||||
export type {AugmentationRegistryLoaderOptions, AugmentationLoadResult}
|
||||
|
||||
// Export augmentation implementations
|
||||
import {
|
||||
|
|
@ -254,13 +254,13 @@ import type {
|
|||
} from './coreTypes.js'
|
||||
|
||||
// Export HNSW index and optimized version
|
||||
import { HNSWIndex } from './hnsw/hnswIndex.js'
|
||||
import {HNSWIndex} from './hnsw/hnswIndex.js'
|
||||
import {
|
||||
HNSWIndexOptimized,
|
||||
HNSWOptimizedConfig
|
||||
} from './hnsw/hnswIndexOptimized.js'
|
||||
|
||||
export { HNSWIndex, HNSWIndexOptimized }
|
||||
export {HNSWIndex, HNSWIndexOptimized}
|
||||
|
||||
export type {
|
||||
Vector,
|
||||
|
|
@ -289,9 +289,9 @@ import type {
|
|||
IDialogAugmentation,
|
||||
IActivationAugmentation
|
||||
} from './types/augmentations.js'
|
||||
import { AugmentationType, BrainyAugmentations } from './types/augmentations.js'
|
||||
import {AugmentationType, BrainyAugmentations} from './types/augmentations.js'
|
||||
|
||||
export type { IAugmentation, AugmentationResponse, IWebSocketSupport }
|
||||
export type {IAugmentation, AugmentationResponse, IWebSocketSupport}
|
||||
export {
|
||||
AugmentationType,
|
||||
BrainyAugmentations,
|
||||
|
|
@ -326,7 +326,7 @@ import type {
|
|||
Concept,
|
||||
Content
|
||||
} from './types/graphTypes.js'
|
||||
import { NounType, VerbType } from './types/graphTypes.js'
|
||||
import {NounType, VerbType} from './types/graphTypes.js'
|
||||
|
||||
export type {
|
||||
GraphNoun,
|
||||
|
|
@ -338,7 +338,7 @@ export type {
|
|||
Concept,
|
||||
Content
|
||||
}
|
||||
export { NounType, VerbType }
|
||||
export {NounType, VerbType}
|
||||
|
||||
// Export MCP (Model Control Protocol) components
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@
|
|||
* Creates the appropriate storage adapter based on the environment and configuration
|
||||
*/
|
||||
|
||||
import { StorageAdapter } from '../coreTypes.js'
|
||||
import { MemoryStorage } from './adapters/memoryStorage.js'
|
||||
import { OPFSStorage } from './adapters/opfsStorage.js'
|
||||
import { FileSystemStorage } from './adapters/fileSystemStorage.js'
|
||||
import { S3CompatibleStorage, R2Storage } from './adapters/s3CompatibleStorage.js'
|
||||
import {StorageAdapter} from '../coreTypes.js'
|
||||
import {MemoryStorage} from './adapters/memoryStorage.js'
|
||||
import {OPFSStorage} from './adapters/opfsStorage.js'
|
||||
import {FileSystemStorage} from './adapters/fileSystemStorage.js'
|
||||
import {S3CompatibleStorage, R2Storage} from './adapters/s3CompatibleStorage.js'
|
||||
|
||||
/**
|
||||
* Options for creating a storage adapter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue