@soulcraft/brainy 0.61.1 → 0.61.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  * Atomic Age Service Management Protocol
5
5
  */
6
6
  import { BrainyData } from '../brainyData.js';
7
- import { Cortex } from './cortex.js';
7
+ import { Cortex } from './cortex-legacy.js';
8
8
  export interface ServiceConfig {
9
9
  name: string;
10
10
  version?: string;
@@ -4,7 +4,7 @@
4
4
  * Atomic Age Service Management Protocol
5
5
  */
6
6
  import { BrainyData } from '../brainyData.js';
7
- import { Cortex } from './cortex.js';
7
+ import { Cortex } from './cortex-legacy.js';
8
8
  import * as fs from '../universal/fs.js';
9
9
  import * as path from '../universal/path.js';
10
10
  /**
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Cortex - The Brain's Central Orchestration System
3
+ *
4
+ * 🧠⚛️ The cerebral cortex that coordinates all augmentations
5
+ *
6
+ * This is the main export for the Cortex system. It provides the central
7
+ * coordination for all augmentations, managing their registration, execution,
8
+ * and pipeline orchestration.
9
+ */
10
+ export { Cortex, cortex, ExecutionMode, PipelineOptions, AugmentationPipeline, augmentationPipeline } from './augmentationPipeline.js';
11
+ export type { BrainyAugmentations, IAugmentation, ISenseAugmentation, IConduitAugmentation, ICognitionAugmentation, IMemoryAugmentation, IPerceptionAugmentation, IDialogAugmentation, IActivationAugmentation, IWebSocketSupport, AugmentationResponse, AugmentationType } from './types/augmentations.js';
package/dist/cortex.js ADDED
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Cortex - The Brain's Central Orchestration System
3
+ *
4
+ * 🧠⚛️ The cerebral cortex that coordinates all augmentations
5
+ *
6
+ * This is the main export for the Cortex system. It provides the central
7
+ * coordination for all augmentations, managing their registration, execution,
8
+ * and pipeline orchestration.
9
+ */
10
+ // Re-export from augmentationPipeline (which contains the Cortex class)
11
+ export { Cortex, cortex, ExecutionMode,
12
+ // Backward compatibility
13
+ AugmentationPipeline, augmentationPipeline } from './augmentationPipeline.js';
14
+ //# sourceMappingURL=cortex.js.map
package/dist/index.d.ts CHANGED
@@ -1,10 +1,19 @@
1
1
  /**
2
- * Brainy
3
- * A vector and graph database using HNSW
2
+ * Brainy - Your AI-Powered Second Brain
3
+ * 🧠⚛️ A multi-dimensional database with vector, graph, and facet storage
4
+ *
5
+ * Core Components:
6
+ * - BrainyData: The brain (core database)
7
+ * - Cortex: The orchestrator (manages augmentations)
8
+ * - NeuralImport: AI-powered data understanding
9
+ * - Augmentations: Brain capabilities (plugins)
4
10
  */
5
11
  import { BrainyData, BrainyDataConfig } from './brainyData.js';
6
12
  export { BrainyData };
7
13
  export type { BrainyDataConfig };
14
+ export { Cortex, cortex } from './cortex.js';
15
+ export { NeuralImport } from './cortex/neuralImport.js';
16
+ export type { NeuralAnalysisResult, DetectedEntity, DetectedRelationship, NeuralInsight, NeuralImportOptions } from './cortex/neuralImport.js';
8
17
  import { euclideanDistance, cosineDistance, manhattanDistance, dotProductDistance, getStatistics } from './utils/index.js';
9
18
  export { euclideanDistance, cosineDistance, manhattanDistance, dotProductDistance, getStatistics };
10
19
  import { UniversalSentenceEncoder, TransformerEmbedding, createEmbeddingFunction, defaultEmbeddingFunction, batchEmbed, embeddingFunctions } from './utils/embedding.js';
package/dist/index.js CHANGED
@@ -1,11 +1,21 @@
1
1
  /**
2
- * Brainy
3
- * A vector and graph database using HNSW
2
+ * Brainy - Your AI-Powered Second Brain
3
+ * 🧠⚛️ A multi-dimensional database with vector, graph, and facet storage
4
+ *
5
+ * Core Components:
6
+ * - BrainyData: The brain (core database)
7
+ * - Cortex: The orchestrator (manages augmentations)
8
+ * - NeuralImport: AI-powered data understanding
9
+ * - Augmentations: Brain capabilities (plugins)
4
10
  */
5
- // No setup needed - using clean ONNX Runtime with Transformers.js
6
11
  // Export main BrainyData class and related types
7
12
  import { BrainyData } from './brainyData.js';
8
13
  export { BrainyData };
14
+ // Export Cortex (the orchestrator)
15
+ export { Cortex, cortex } from './cortex.js';
16
+ // Export Neural Import (AI data understanding)
17
+ export { NeuralImport } from './cortex/neuralImport.js';
18
+ // Augmentation types are already exported later in the file
9
19
  // Export distance functions for convenience
10
20
  import { euclideanDistance, cosineDistance, manhattanDistance, dotProductDistance, getStatistics } from './utils/index.js';
11
21
  export { euclideanDistance, cosineDistance, manhattanDistance, dotProductDistance, getStatistics };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soulcraft/brainy",
3
- "version": "0.61.1",
3
+ "version": "0.61.3",
4
4
  "description": "Multi-Dimensional AI Database - Vector similarity, graph relationships, metadata facets with HNSW indexing and OPFS storage",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -91,7 +91,6 @@
91
91
  "build:browser": "npm run build && vite build --config vite.browser.config.ts",
92
92
  "build:framework": "tsc",
93
93
  "start": "node dist/framework.js",
94
- "demo": "npm run build && cd demo/brainy-angular-demo && npm run build && npm run serve",
95
94
  "prepare": "npm run build",
96
95
  "test": "vitest run",
97
96
  "test:memory": "node --max-old-space-size=4096 --expose-gc ./node_modules/vitest/vitest.mjs run",