@ruvector/rvf 0.1.6 → 0.1.8
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/dist/index.d.ts +3 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +22 -0
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -16,8 +16,10 @@
|
|
|
16
16
|
* await db.close();
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
export type { DistanceMetric, CompressionProfile, HardwareProfile, RvfOptions, RvfFilterValue, RvfFilterExpr, RvfQueryOptions, RvfSearchResult, RvfIngestResult, RvfIngestEntry, RvfDeleteResult, RvfCompactionResult, CompactionState, RvfStatus, DerivationType, RvfKernelData, RvfEbpfData, RvfSegmentInfo, BackendType, } from './types';
|
|
19
|
+
export type { DistanceMetric, CompressionProfile, HardwareProfile, RvfOptions, RvfFilterValue, RvfFilterExpr, RvfQueryOptions, RvfSearchResult, RvfIngestResult, RvfIngestEntry, RvfDeleteResult, RvfCompactionResult, CompactionState, RvfStatus, DerivationType, RvfKernelData, RvfEbpfData, RvfSegmentInfo, BackendType, RvfIndexStats, RvfWitnessResult, } from './types';
|
|
20
20
|
export { RvfError, RvfErrorCode } from './errors';
|
|
21
21
|
export type { RvfBackend } from './backend';
|
|
22
22
|
export { NodeBackend, WasmBackend, resolveBackend } from './backend';
|
|
23
23
|
export { RvfDatabase } from './database';
|
|
24
|
+
export { RvfSolver } from '@ruvector/rvf-solver';
|
|
25
|
+
export type { TrainOptions, TrainResult, AcceptanceOptions, AcceptanceManifest, AcceptanceModeResult, CycleMetrics, PolicyState, SkipMode, SkipModeStats, CompiledConfig, } from '@ruvector/rvf-solver';
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.RvfDatabase = exports.resolveBackend = exports.WasmBackend = exports.NodeBackend = exports.RvfErrorCode = exports.RvfError = void 0;
|
|
21
|
+
exports.RvfSolver = exports.RvfDatabase = exports.resolveBackend = exports.WasmBackend = exports.NodeBackend = exports.RvfErrorCode = exports.RvfError = void 0;
|
|
22
22
|
// Re-export error types
|
|
23
23
|
var errors_1 = require("./errors");
|
|
24
24
|
Object.defineProperty(exports, "RvfError", { enumerable: true, get: function () { return errors_1.RvfError; } });
|
|
@@ -30,4 +30,7 @@ Object.defineProperty(exports, "resolveBackend", { enumerable: true, get: functi
|
|
|
30
30
|
// Re-export the main database class
|
|
31
31
|
var database_1 = require("./database");
|
|
32
32
|
Object.defineProperty(exports, "RvfDatabase", { enumerable: true, get: function () { return database_1.RvfDatabase; } });
|
|
33
|
+
// Re-export solver (AGI components)
|
|
34
|
+
var rvf_solver_1 = require("@ruvector/rvf-solver");
|
|
35
|
+
Object.defineProperty(exports, "RvfSolver", { enumerable: true, get: function () { return rvf_solver_1.RvfSolver; } });
|
|
33
36
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AA2BH,wBAAwB;AACxB,mCAAkD;AAAzC,kGAAA,QAAQ,OAAA;AAAE,sGAAA,YAAY,OAAA;AAI/B,qCAAqE;AAA5D,sGAAA,WAAW,OAAA;AAAE,sGAAA,WAAW,OAAA;AAAE,yGAAA,cAAc,OAAA;AAEjD,oCAAoC;AACpC,uCAAyC;AAAhC,uGAAA,WAAW,OAAA;AAEpB,oCAAoC;AACpC,mDAAiD;AAAxC,uGAAA,SAAS,OAAA"}
|
package/dist/types.d.ts
CHANGED
|
@@ -188,3 +188,25 @@ export interface RvfSegmentInfo {
|
|
|
188
188
|
}
|
|
189
189
|
/** Identifies which backend implementation to use. */
|
|
190
190
|
export type BackendType = 'node' | 'wasm' | 'auto';
|
|
191
|
+
/** HNSW index statistics. */
|
|
192
|
+
export interface RvfIndexStats {
|
|
193
|
+
/** Number of indexed vectors. */
|
|
194
|
+
indexedVectors: number;
|
|
195
|
+
/** Number of HNSW layers. */
|
|
196
|
+
layers: number;
|
|
197
|
+
/** M parameter (max edges per node per layer). */
|
|
198
|
+
m: number;
|
|
199
|
+
/** ef_construction parameter. */
|
|
200
|
+
efConstruction: number;
|
|
201
|
+
/** Whether the index needs rebuilding. */
|
|
202
|
+
needsRebuild: boolean;
|
|
203
|
+
}
|
|
204
|
+
/** Result of witness chain verification. */
|
|
205
|
+
export interface RvfWitnessResult {
|
|
206
|
+
/** Whether the chain is valid. */
|
|
207
|
+
valid: boolean;
|
|
208
|
+
/** Number of entries in the chain. */
|
|
209
|
+
entries: number;
|
|
210
|
+
/** Error message if invalid. */
|
|
211
|
+
error?: string;
|
|
212
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ruvector/rvf",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "RuVector Format — unified TypeScript SDK for vector intelligence",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -23,10 +23,11 @@
|
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"repository": "https://github.com/ruvnet/ruvector",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ruvector/rvf-node": "^0.1.
|
|
26
|
+
"@ruvector/rvf-node": "^0.1.5"
|
|
27
27
|
},
|
|
28
28
|
"optionalDependencies": {
|
|
29
|
-
"@ruvector/rvf-wasm": "^0.1.
|
|
29
|
+
"@ruvector/rvf-wasm": "^0.1.5",
|
|
30
|
+
"@ruvector/rvf-solver": "^0.1.0"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
33
|
"typescript": "^5.0.0",
|