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,75 @@
/**
* Test fixtures - Sample configurations
*/
export const defaultConfig = {
api: {
baseUrl: 'https://api.test.com',
apiKey: 'test-key-123',
timeout: 5000,
retries: 3
},
cache: {
maxSize: 100,
ttl: 3600000
},
generator: {
seed: 12345,
format: 'json'
},
router: {
strategy: 'round-robin',
models: []
}
};
export const productionConfig = {
api: {
baseUrl: 'https://api.production.com',
apiKey: process.env.API_KEY || '',
timeout: 10000,
retries: 5
},
cache: {
maxSize: 1000,
ttl: 7200000
},
generator: {
seed: Date.now(),
format: 'json'
},
router: {
strategy: 'least-latency',
models: [
{ id: 'model-1', endpoint: 'https://model1.com' },
{ id: 'model-2', endpoint: 'https://model2.com' }
]
}
};
export const testConfig = {
api: {
baseUrl: 'http://localhost:3000',
apiKey: 'test',
timeout: 1000,
retries: 1
},
cache: {
maxSize: 10,
ttl: 1000
},
generator: {
seed: 12345,
format: 'json'
},
router: {
strategy: 'round-robin',
models: []
}
};
export const minimalConfig = {
api: {
baseUrl: 'https://api.example.com'
}
};

View File

@@ -0,0 +1,44 @@
/**
* Test fixtures - Sample schemas
*/
export const basicSchema = {
name: { type: 'string', length: 10 },
value: { type: 'number', min: 0, max: 100 }
};
export const complexSchema = {
id: { type: 'string', length: 8 },
title: { type: 'string', length: 50 },
description: { type: 'string', length: 200 },
priority: { type: 'number', min: 1, max: 5 },
active: { type: 'boolean' },
tags: { type: 'array', items: 10 },
metadata: {
created: { type: 'number' },
updated: { type: 'number' }
}
};
export const vectorSchema = {
document_id: { type: 'string', length: 16 },
text: { type: 'string', length: 100 },
embedding: { type: 'vector', dimensions: 128 },
score: { type: 'number', min: 0, max: 1 }
};
export const roboticsSchema = {
command: { type: 'string', length: 16 },
x: { type: 'number', min: -100, max: 100 },
y: { type: 'number', min: -100, max: 100 },
z: { type: 'number', min: 0, max: 50 },
velocity: { type: 'number', min: 0, max: 10 }
};
export const streamingSchema = {
event_id: { type: 'string', length: 12 },
timestamp: { type: 'number' },
event_type: { type: 'string', length: 20 },
payload: { type: 'string', length: 500 },
priority: { type: 'number', min: 1, max: 10 }
};