ruvector 0.1.32 → 0.1.34
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"startTime":
|
|
3
|
-
"sessionId": "session-
|
|
4
|
-
"lastActivity":
|
|
2
|
+
"startTime": 1765249648027,
|
|
3
|
+
"sessionId": "session-1765249648027",
|
|
4
|
+
"lastActivity": 1765249648027,
|
|
5
5
|
"sessionDuration": 0,
|
|
6
6
|
"totalTasks": 1,
|
|
7
7
|
"successfulTasks": 1,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
-
"id": "cmd-hooks-
|
|
3
|
+
"id": "cmd-hooks-1765249648131",
|
|
4
4
|
"type": "hooks",
|
|
5
5
|
"success": true,
|
|
6
|
-
"duration": 7.
|
|
7
|
-
"timestamp":
|
|
6
|
+
"duration": 7.553539000000001,
|
|
7
|
+
"timestamp": 1765249648139,
|
|
8
8
|
"metadata": {}
|
|
9
9
|
}
|
|
10
10
|
]
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,cAAc,SAAS,CAAC;AAGxB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAE3B,QAAA,IAAI,cAAc,EAAE,GAAG,CAAC;AA0BxB;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,QAAQ,GAAG,MAAM,CAEzD;AAED;;GAEG;AACH,wBAAgB,QAAQ,IAAI,OAAO,CAElC;AAED;;GAEG;AACH,wBAAgB,MAAM,IAAI,OAAO,CAEhC;AAED;;GAEG;AACH,wBAAgB,UAAU,IAAI;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,MAAM,CAAA;CAAE,CAMxE;AAGD,eAAO,MAAM,QAAQ,KAA0B,CAAC;AAGhD,eAAe,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,cAAc,SAAS,CAAC;AAGxB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAE3B,QAAA,IAAI,cAAc,EAAE,GAAG,CAAC;AA0BxB;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,QAAQ,GAAG,MAAM,CAEzD;AAED;;GAEG;AACH,wBAAgB,QAAQ,IAAI,OAAO,CAElC;AAED;;GAEG;AACH,wBAAgB,MAAM,IAAI,OAAO,CAEhC;AAED;;GAEG;AACH,wBAAgB,UAAU,IAAI;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,MAAM,CAAA;CAAE,CAMxE;AAGD,eAAO,MAAM,QAAQ,KAA0B,CAAC;AAChD,eAAO,MAAM,QAAQ,KAA0B,CAAC;AAGhD,eAAe,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -24,7 +24,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
24
24
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
25
25
|
};
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.VectorDB = void 0;
|
|
27
|
+
exports.VectorDB = exports.VectorDb = void 0;
|
|
28
28
|
exports.getImplementationType = getImplementationType;
|
|
29
29
|
exports.isNative = isNative;
|
|
30
30
|
exports.isWasm = isWasm;
|
|
@@ -39,9 +39,9 @@ try {
|
|
|
39
39
|
// Try to load native module first
|
|
40
40
|
implementation = require('@ruvector/core');
|
|
41
41
|
implementationType = 'native';
|
|
42
|
-
// Verify it's actually working
|
|
43
|
-
if (typeof implementation.
|
|
44
|
-
throw new Error('Native module loaded but
|
|
42
|
+
// Verify it's actually working (native exports VectorDb, not VectorDB)
|
|
43
|
+
if (typeof implementation.VectorDb !== 'function') {
|
|
44
|
+
throw new Error('Native module loaded but VectorDb not found');
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
catch (e) {
|
|
@@ -83,7 +83,8 @@ function getVersion() {
|
|
|
83
83
|
implementation: implementationType
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
// Export the VectorDB
|
|
87
|
-
exports.
|
|
86
|
+
// Export the VectorDb class (aliased as VectorDB for backwards compatibility)
|
|
87
|
+
exports.VectorDb = implementation.VectorDb;
|
|
88
|
+
exports.VectorDB = implementation.VectorDb;
|
|
88
89
|
// Export everything from the implementation
|
|
89
90
|
exports.default = implementation;
|