agentdb 1.0.8 → 1.0.10

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.
Files changed (2) hide show
  1. package/bin/agentdb.js +27 -27
  2. package/package.json +1 -1
package/bin/agentdb.js CHANGED
@@ -429,33 +429,33 @@ function runBenchmark() {
429
429
  process.exit(1);
430
430
  });
431
431
  } catch (error) {
432
- // If compiled version doesn't exist, try TypeScript version with ts-node
433
- try {
434
- console.error('⚠️ Compiled benchmarks not found, trying TypeScript version...');
435
- console.error('');
436
-
437
- const { spawn } = require('child_process');
438
- const benchmarkProcess = spawn('npx', ['ts-node', 'benchmarks/comprehensive-performance.bench.ts'], {
439
- stdio: 'inherit',
440
- cwd: require('path').resolve(__dirname, '..')
441
- });
442
-
443
- benchmarkProcess.on('close', (code) => {
444
- process.exit(code);
445
- });
446
- } catch (tsError) {
447
- console.error('❌ Benchmarks not available');
448
- console.error('');
449
- console.error('To run benchmarks:');
450
- console.error(' 1. Build the project: npm run build');
451
- console.error(' 2. Run benchmarks: npx agentdb benchmark');
452
- console.error('');
453
- console.error('Or run directly:');
454
- console.error(' npm run bench');
455
- console.error(' npm run bench:comprehensive');
456
- console.error('');
457
- process.exit(1);
458
- }
432
+ // Benchmarks are not included in npm package
433
+ console.error('');
434
+ console.error(' Benchmarks not available in npm package');
435
+ console.error('');
436
+ console.error('To run benchmarks, clone the source repository:');
437
+ console.error('');
438
+ console.error(' git clone https://github.com/ruvnet/agentic-flow.git');
439
+ console.error(' cd agentic-flow/packages/agentdb');
440
+ console.error(' npm install');
441
+ console.error(' npm run bench:comprehensive');
442
+ console.error('');
443
+ console.error('Or create a custom benchmark script:');
444
+ console.error('');
445
+ console.error(' const { SQLiteVectorDB } = require("agentdb");');
446
+ console.error(' const db = new SQLiteVectorDB({ memoryMode: true });');
447
+ console.error(' ');
448
+ console.error(' // Insert test vectors');
449
+ console.error(' const vectors = Array.from({ length: 1000 }, () => ({');
450
+ console.error(' embedding: Array(128).fill(0).map(() => Math.random()),');
451
+ console.error(' metadata: { test: true }');
452
+ console.error(' }));');
453
+ console.error(' ');
454
+ console.error(' const start = Date.now();');
455
+ console.error(' vectors.forEach(v => db.insert(v));');
456
+ console.error(' console.log(`Inserted 1000 vectors in ${Date.now() - start}ms`);');
457
+ console.error('');
458
+ process.exit(1);
459
459
  }
460
460
  }
461
461
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentdb",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Ultra-fast agent memory and vector database with ReasoningBank for AI agents. Built on SQLite with QUIC sync. From ruv.io - Advanced AI Infrastructure.",
5
5
  "keywords": [
6
6
  "agent",