@soulcraft/brainy 4.3.1 → 4.3.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.
|
@@ -93,15 +93,22 @@ export class ImportCoordinator {
|
|
|
93
93
|
// Extract entities and relationships
|
|
94
94
|
const extractionResult = await this.extract(normalizedSource, detection.format, options);
|
|
95
95
|
// Set defaults
|
|
96
|
+
// CRITICAL FIX (v4.3.2): Spread options FIRST, then apply defaults
|
|
97
|
+
// Previously: ...options at the end overwrote normalized defaults with undefined
|
|
98
|
+
// Now: Defaults properly override undefined values
|
|
99
|
+
// v4.4.0: Enable AI features by default for smarter imports
|
|
96
100
|
const opts = {
|
|
101
|
+
...options, // Spread first to get all options
|
|
97
102
|
vfsPath: options.vfsPath || `/imports/${Date.now()}`,
|
|
98
103
|
groupBy: options.groupBy || 'type',
|
|
99
104
|
createEntities: options.createEntities !== false,
|
|
100
105
|
createRelationships: options.createRelationships !== false,
|
|
101
106
|
preserveSource: options.preserveSource !== false,
|
|
102
107
|
enableDeduplication: options.enableDeduplication !== false,
|
|
103
|
-
|
|
104
|
-
|
|
108
|
+
enableNeuralExtraction: options.enableNeuralExtraction !== false, // v4.4.0: Default true
|
|
109
|
+
enableRelationshipInference: options.enableRelationshipInference !== false, // v4.4.0: Default true
|
|
110
|
+
enableConceptExtraction: options.enableConceptExtraction !== false, // Already defaults to true
|
|
111
|
+
deduplicationThreshold: options.deduplicationThreshold || 0.85
|
|
105
112
|
};
|
|
106
113
|
// Report VFS storage stage
|
|
107
114
|
options.onProgress?.({
|
|
@@ -408,7 +415,10 @@ export class ImportCoordinator {
|
|
|
408
415
|
const relationships = [];
|
|
409
416
|
let mergedCount = 0;
|
|
410
417
|
let newCount = 0;
|
|
411
|
-
|
|
418
|
+
// CRITICAL FIX (v4.3.2): Default to true when undefined
|
|
419
|
+
// Previously: if (!options.createEntities) treated undefined as false
|
|
420
|
+
// Now: Only skip when explicitly set to false
|
|
421
|
+
if (options.createEntities === false) {
|
|
412
422
|
return { entities, relationships, merged: 0, newEntities: 0 };
|
|
413
423
|
}
|
|
414
424
|
// Extract rows/sections/entities from result (unified across formats)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soulcraft/brainy",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.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",
|