Merge commit 'd803bfe2b1fe7f5e219e50ac20d6801a0a58ac75' as 'vendor/ruvector'

This commit is contained in:
ruv
2026-02-28 14:39:40 -05:00
7854 changed files with 3522914 additions and 0 deletions

View File

@@ -0,0 +1,74 @@
{
"name": "@ruvector/node",
"version": "0.1.22",
"description": "Unified Ruvector package - High-performance vector database with GNN capabilities for Node.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./gnn": {
"import": "./dist/gnn.mjs",
"require": "./dist/gnn.js",
"types": "./dist/gnn.d.ts"
}
},
"engines": {
"node": ">= 18"
},
"scripts": {
"build": "npm run build:esm && npm run build:cjs",
"build:esm": "tsc --project tsconfig.esm.json",
"build:cjs": "tsc --project tsconfig.cjs.json",
"prepublishOnly": "npm run build",
"test": "node --test",
"clean": "rm -rf dist"
},
"dependencies": {
"@ruvector/core": "^0.1.15",
"@ruvector/gnn": "^0.1.15"
},
"devDependencies": {
"@types/node": "^20.19.25",
"typescript": "^5.9.3"
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"keywords": [
"vector",
"database",
"embeddings",
"similarity-search",
"hnsw",
"gnn",
"graph-neural-network",
"rust",
"napi",
"semantic-search",
"machine-learning",
"rag",
"simd",
"performance"
],
"author": "rUv",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/ruvnet/ruvector.git",
"directory": "npm/packages/node"
},
"homepage": "https://github.com/ruvnet/ruvector#readme",
"bugs": {
"url": "https://github.com/ruvnet/ruvector/issues"
},
"publishConfig": {
"access": "public"
}
}

View File

@@ -0,0 +1,10 @@
/**
* @ruvector/node/gnn - GNN-specific exports
*
* Import GNN capabilities directly:
* ```typescript
* import { RuvectorLayer, TensorCompress } from '@ruvector/node/gnn';
* ```
*/
export { RuvectorLayer, TensorCompress, differentiableSearch, hierarchicalForward, getCompressionLevel, init, type CompressionLevelConfig, type SearchResult } from '@ruvector/gnn';
//# sourceMappingURL=gnn.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"gnn.d.ts","sourceRoot":"","sources":["gnn.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,aAAa,EACb,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,IAAI,EACJ,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EAClB,MAAM,eAAe,CAAC"}

View File

@@ -0,0 +1,19 @@
"use strict";
/**
* @ruvector/node/gnn - GNN-specific exports
*
* Import GNN capabilities directly:
* ```typescript
* import { RuvectorLayer, TensorCompress } from '@ruvector/node/gnn';
* ```
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.init = exports.getCompressionLevel = exports.hierarchicalForward = exports.differentiableSearch = exports.TensorCompress = exports.RuvectorLayer = void 0;
var gnn_1 = require("@ruvector/gnn");
Object.defineProperty(exports, "RuvectorLayer", { enumerable: true, get: function () { return gnn_1.RuvectorLayer; } });
Object.defineProperty(exports, "TensorCompress", { enumerable: true, get: function () { return gnn_1.TensorCompress; } });
Object.defineProperty(exports, "differentiableSearch", { enumerable: true, get: function () { return gnn_1.differentiableSearch; } });
Object.defineProperty(exports, "hierarchicalForward", { enumerable: true, get: function () { return gnn_1.hierarchicalForward; } });
Object.defineProperty(exports, "getCompressionLevel", { enumerable: true, get: function () { return gnn_1.getCompressionLevel; } });
Object.defineProperty(exports, "init", { enumerable: true, get: function () { return gnn_1.init; } });
//# sourceMappingURL=gnn.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"gnn.js","sourceRoot":"","sources":["gnn.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEH,qCASuB;AARrB,oGAAA,aAAa,OAAA;AACb,qGAAA,cAAc,OAAA;AACd,2GAAA,oBAAoB,OAAA;AACpB,0GAAA,mBAAmB,OAAA;AACnB,0GAAA,mBAAmB,OAAA;AACnB,2FAAA,IAAI,OAAA"}

View File

@@ -0,0 +1,19 @@
/**
* @ruvector/node/gnn - GNN-specific exports
*
* Import GNN capabilities directly:
* ```typescript
* import { RuvectorLayer, TensorCompress } from '@ruvector/node/gnn';
* ```
*/
export {
RuvectorLayer,
TensorCompress,
differentiableSearch,
hierarchicalForward,
getCompressionLevel,
init,
type CompressionLevelConfig,
type SearchResult
} from '@ruvector/gnn';

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAGH,OAAO,EACL,QAAQ,EACR,iBAAiB,EACjB,OAAO,EACP,KAAK,EACL,UAAU,EACV,SAAS,EACT,cAAc,EACd,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,YAAY,IAAI,gBAAgB,EACrC,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,KAAK,EACV,KAAK,cAAc,EACnB,KAAK,MAAM,EACZ,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,aAAa,EACb,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,IAAI,IAAI,OAAO,EACf,KAAK,sBAAsB,EAC3B,KAAK,YAAY,IAAI,eAAe,EACrC,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,GAAG,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;AAErC,wBAiBE"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,2CAA2C;AAC3C,uCAmBwB;AAlBtB,gGAAA,QAAQ,OAAA;AACR,yGAAA,iBAAiB,OAAA;AACjB,+FAAA,OAAO,OAAA;AACP,6FAAA,KAAK,OAAA;AACL,kGAAA,UAAU,OAAA;AACV,iGAAA,SAAS,OAAA;AACT,sGAAA,cAAc,OAAA;AAchB,0CAA0C;AAC1C,qCASuB;AARrB,oGAAA,aAAa,OAAA;AACb,qGAAA,cAAc,OAAA;AACd,2GAAA,oBAAoB,OAAA;AACpB,0GAAA,mBAAmB,OAAA;AACnB,0GAAA,mBAAmB,OAAA;AACnB,8FAAA,IAAI,OAAW;AAKjB,6BAA6B;AAC7B,qDAAuC;AACvC,mDAAqC;AAErC,kBAAe;IACb,eAAe;IACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;IACvB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;IACzC,OAAO,EAAE,IAAI,CAAC,OAAO;IACrB,KAAK,EAAE,IAAI,CAAC,KAAK;IACjB,UAAU,EAAE,IAAI,CAAC,UAAU;IAC3B,SAAS,EAAE,IAAI,CAAC,SAAS;IACzB,cAAc,EAAE,IAAI,CAAC,cAAc;IAEnC,cAAc;IACd,aAAa,EAAE,GAAG,CAAC,aAAa;IAChC,cAAc,EAAE,GAAG,CAAC,cAAc;IAClC,oBAAoB,EAAE,GAAG,CAAC,oBAAoB;IAC9C,mBAAmB,EAAE,GAAG,CAAC,mBAAmB;IAC5C,mBAAmB,EAAE,GAAG,CAAC,mBAAmB;IAC5C,OAAO,EAAE,GAAG,CAAC,IAAI;CAClB,CAAC"}

View File

@@ -0,0 +1,83 @@
/**
* @ruvector/node - Unified Ruvector Package
*
* High-performance Rust vector database with GNN capabilities for Node.js.
* This package re-exports both @ruvector/core and @ruvector/gnn for convenience.
*
* @example
* ```typescript
* import {
* // Core vector database
* VectorDB,
* CollectionManager,
* DistanceMetric,
* // GNN capabilities
* RuvectorLayer,
* TensorCompress,
* differentiableSearch
* } from '@ruvector/node';
*
* // Create vector database
* const db = new VectorDB({ dimensions: 384 });
*
* // Create GNN layer
* const layer = new RuvectorLayer(384, 256, 4, 0.1);
* ```
*/
// Re-export everything from @ruvector/core
export {
VectorDB,
CollectionManager,
version,
hello,
getMetrics,
getHealth,
DistanceMetric,
type DbOptions,
type HnswConfig,
type QuantizationConfig,
type VectorEntry,
type SearchQuery,
type SearchResult as CoreSearchResult,
type CollectionConfig,
type CollectionStats,
type Alias,
type HealthResponse,
type Filter
} from '@ruvector/core';
// Re-export everything from @ruvector/gnn
export {
RuvectorLayer,
TensorCompress,
differentiableSearch,
hierarchicalForward,
getCompressionLevel,
init as initGnn,
type CompressionLevelConfig,
type SearchResult as GnnSearchResult
} from '@ruvector/gnn';
// Convenience default export
import * as core from '@ruvector/core';
import * as gnn from '@ruvector/gnn';
export default {
// Core exports
VectorDB: core.VectorDB,
CollectionManager: core.CollectionManager,
version: core.version,
hello: core.hello,
getMetrics: core.getMetrics,
getHealth: core.getHealth,
DistanceMetric: core.DistanceMetric,
// GNN exports
RuvectorLayer: gnn.RuvectorLayer,
TensorCompress: gnn.TensorCompress,
differentiableSearch: gnn.differentiableSearch,
hierarchicalForward: gnn.hierarchicalForward,
getCompressionLevel: gnn.getCompressionLevel,
initGnn: gnn.init
};

View File

@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"moduleResolution": "Node",
"outDir": "./dist",
"declaration": false
},
"include": ["src/**/*"]
}

View File

@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Bundler",
"outDir": "./dist",
"declaration": true
},
"include": ["src/**/*"]
}

View File

@@ -0,0 +1,18 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"outDir": "./dist",
"rootDir": "./src"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}