mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-23 21:25:02 +00:00
- Create @ruvector/tiny-dancer npm package with platform-specific bindings - Create @ruvector/router npm package with VectorDb for semantic search - Add NAPI-RS build configuration for both crates - Add GitHub Actions workflows for multi-platform builds (linux, darwin, windows) - Include TypeScript definitions and comprehensive tests - Support local .node file loading for development Platform support: - linux-x64-gnu - linux-arm64-gnu - darwin-x64 - darwin-arm64 - win32-x64-msvc 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
32 lines
749 B
JavaScript
32 lines
749 B
JavaScript
const tinyDancer = require('./index.js');
|
|
|
|
console.log('Testing @ruvector/tiny-dancer...');
|
|
|
|
// Test version function
|
|
try {
|
|
const ver = tinyDancer.version();
|
|
console.log(`✓ version(): ${ver}`);
|
|
} catch (e) {
|
|
console.error('✗ version() failed:', e.message);
|
|
}
|
|
|
|
// Test hello function
|
|
try {
|
|
const msg = tinyDancer.hello();
|
|
console.log(`✓ hello(): ${msg}`);
|
|
} catch (e) {
|
|
console.error('✗ hello() failed:', e.message);
|
|
}
|
|
|
|
// Test Router class exists
|
|
try {
|
|
if (typeof tinyDancer.Router === 'function') {
|
|
console.log('✓ Router class available');
|
|
} else {
|
|
console.log('✗ Router class not found');
|
|
}
|
|
} catch (e) {
|
|
console.error('✗ Router check failed:', e.message);
|
|
}
|
|
|
|
console.log('\nAll basic tests completed!');
|