@soulcraft/brainy 3.25.1 → 3.25.2
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.
- package/CHANGELOG.md +7 -0
- package/dist/brainy.d.ts +21 -0
- package/dist/brainy.js +8 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [3.25.2](https://github.com/soulcraftlabs/brainy/compare/v3.25.1...v3.25.2) (2025-10-08)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🐛 Bug Fixes
|
|
9
|
+
|
|
10
|
+
* export ImportManager and add getStats() convenience method ([06b3bc7](https://github.com/soulcraftlabs/brainy/commit/06b3bc77e1fd4c5544dc61cccd4814bd7a26a1dd))
|
|
11
|
+
|
|
5
12
|
### [3.25.1](https://github.com/soulcraftlabs/brainy/compare/v3.25.0...v3.25.1) (2025-10-07)
|
|
6
13
|
|
|
7
14
|
|
package/dist/brainy.d.ts
CHANGED
|
@@ -809,6 +809,27 @@ export declare class Brainy<T = any> implements BrainyInterface<T> {
|
|
|
809
809
|
get: (name: string) => import("./augmentations/brainyAugmentation.js").BrainyAugmentation;
|
|
810
810
|
has: (name: string) => boolean;
|
|
811
811
|
};
|
|
812
|
+
/**
|
|
813
|
+
* Get complete statistics - convenience method
|
|
814
|
+
* For more granular counting, use brain.counts API
|
|
815
|
+
* @returns Complete statistics including entities, relationships, and density
|
|
816
|
+
*/
|
|
817
|
+
getStats(): {
|
|
818
|
+
entities: {
|
|
819
|
+
total: number;
|
|
820
|
+
byType: {
|
|
821
|
+
[k: string]: number;
|
|
822
|
+
};
|
|
823
|
+
};
|
|
824
|
+
relationships: {
|
|
825
|
+
totalRelationships: number;
|
|
826
|
+
relationshipsByType: Record<string, number>;
|
|
827
|
+
uniqueSourceNodes: number;
|
|
828
|
+
uniqueTargetNodes: number;
|
|
829
|
+
totalNodes: number;
|
|
830
|
+
};
|
|
831
|
+
density: number;
|
|
832
|
+
};
|
|
812
833
|
/**
|
|
813
834
|
* Parse natural language query using advanced NLP with 220+ patterns
|
|
814
835
|
* The embedding model is always available as it's core to Brainy's functionality
|
package/dist/brainy.js
CHANGED
|
@@ -1768,6 +1768,14 @@ export class Brainy {
|
|
|
1768
1768
|
has: (name) => this.augmentationRegistry.getAll().some(a => a.name === name)
|
|
1769
1769
|
};
|
|
1770
1770
|
}
|
|
1771
|
+
/**
|
|
1772
|
+
* Get complete statistics - convenience method
|
|
1773
|
+
* For more granular counting, use brain.counts API
|
|
1774
|
+
* @returns Complete statistics including entities, relationships, and density
|
|
1775
|
+
*/
|
|
1776
|
+
getStats() {
|
|
1777
|
+
return this.counts.getStats();
|
|
1778
|
+
}
|
|
1771
1779
|
// ============= HELPER METHODS =============
|
|
1772
1780
|
/**
|
|
1773
1781
|
* Parse natural language query using advanced NLP with 220+ patterns
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export { PresetName, ModelPrecision, StorageOption, FeatureSet, DistributedRole,
|
|
|
15
15
|
export { Cortex, cortex } from './cortex.js';
|
|
16
16
|
export { NeuralImport } from './cortex/neuralImport.js';
|
|
17
17
|
export type { NeuralAnalysisResult, DetectedEntity, DetectedRelationship, NeuralInsight, NeuralImportOptions } from './cortex/neuralImport.js';
|
|
18
|
+
export { ImportManager, createImportManager } from './importManager.js';
|
|
19
|
+
export type { ImportOptions, ImportResult } from './importManager.js';
|
|
18
20
|
import { euclideanDistance, cosineDistance, manhattanDistance, dotProductDistance } from './utils/index.js';
|
|
19
21
|
export { euclideanDistance, cosineDistance, manhattanDistance, dotProductDistance };
|
|
20
22
|
export { getBrainyVersion } from './utils/version.js';
|
package/dist/index.js
CHANGED
|
@@ -31,6 +31,8 @@ getPreset, isValidPreset, getPresetsByCategory, getAllPresetNames, getPresetDesc
|
|
|
31
31
|
export { Cortex, cortex } from './cortex.js';
|
|
32
32
|
// Export Neural Import (AI data understanding)
|
|
33
33
|
export { NeuralImport } from './cortex/neuralImport.js';
|
|
34
|
+
// Export Import Manager (comprehensive data import)
|
|
35
|
+
export { ImportManager, createImportManager } from './importManager.js';
|
|
34
36
|
// Augmentation types are already exported later in the file
|
|
35
37
|
// Export distance functions for convenience
|
|
36
38
|
import { euclideanDistance, cosineDistance, manhattanDistance, dotProductDistance } from './utils/index.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soulcraft/brainy",
|
|
3
|
-
"version": "3.25.
|
|
3
|
+
"version": "3.25.2",
|
|
4
4
|
"description": "Universal Knowledge Protocol™ - World's first Triple Intelligence database unifying vector, graph, and document search in one API. 31 nouns × 40 verbs for infinite expressiveness.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|