@soulcraft/brainy 6.2.3 → 6.2.4
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.
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
*/
|
|
30
30
|
import { BaseStorage } from '../baseStorage.js';
|
|
31
31
|
import { CommitLog } from '../cow/CommitLog.js';
|
|
32
|
-
import { TreeObject } from '../cow/TreeObject.js';
|
|
33
32
|
import { BlobStorage } from '../cow/BlobStorage.js';
|
|
34
33
|
import { HNSWNoun, HNSWVerb, NounMetadata, VerbMetadata, StatisticsData } from '../../coreTypes.js';
|
|
35
34
|
export interface HistoricalStorageAdapterOptions {
|
|
@@ -55,7 +54,6 @@ export declare class HistoricalStorageAdapter extends BaseStorage {
|
|
|
55
54
|
private cacheSize;
|
|
56
55
|
private cache;
|
|
57
56
|
commitLog?: CommitLog;
|
|
58
|
-
treeObject?: TreeObject;
|
|
59
57
|
blobStorage?: BlobStorage;
|
|
60
58
|
constructor(options: HistoricalStorageAdapterOptions);
|
|
61
59
|
/**
|
|
@@ -95,10 +95,10 @@ export class HistoricalStorageAdapter extends BaseStorage {
|
|
|
95
95
|
*/
|
|
96
96
|
async init() {
|
|
97
97
|
// Get COW components from underlying storage
|
|
98
|
-
|
|
99
|
-
this.
|
|
100
|
-
this.blobStorage = this.underlyingStorage.
|
|
101
|
-
if (!this.commitLog || !this.
|
|
98
|
+
// v6.2.4: Fixed property names - use public properties without underscore prefix
|
|
99
|
+
this.commitLog = this.underlyingStorage.commitLog;
|
|
100
|
+
this.blobStorage = this.underlyingStorage.blobStorage;
|
|
101
|
+
if (!this.commitLog || !this.blobStorage) {
|
|
102
102
|
throw new Error('Historical storage requires underlying storage to have COW enabled. ' +
|
|
103
103
|
'Call brain.init() first to initialize COW.');
|
|
104
104
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soulcraft/brainy",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.4",
|
|
4
4
|
"description": "Universal Knowledge Protocol™ - World's first Triple Intelligence database unifying vector, graph, and document search in one API. Stage 3 CANONICAL: 42 nouns × 127 verbs covering 96-97% of all human knowledge.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|