Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
test: add coverage reporting and new library tests
Adam Eivy3687f3ac4f95
diff --git a/server/lib/errorHandler.test.js b/server/lib/errorHandler.test.jsnew file mode 100644index 0000000000..b556d26683--- /dev/null+++ b/server/lib/errorHandler.test.js@@ -0,0 +1,139 @@+import { describe, it, expect, vi, beforeEach } from 'vitest';+import {+ ServerError,+ normalizeError,+ emitErrorEvent,+ errorEvents+} from './errorHandler.js';++describe('errorHandler.js', () => {+ describe('ServerError', () => {+ it('should create error with default options', () => {+ const error = new ServerError('Test error');+ expect(error.message).toBe('Test error');+ expect(error.name).toBe('ServerError');+ expect(error.status).toBe(500);+ expect(error.code).toBe('INTERNAL_ERROR');+ expect(error.severity).toBe('error');+ expect(error.canAutoFix).toBe(false);+ expect(error.timestamp).toBeDefined();+ expect(error.context).toEqual({});+ });++ it('should create error with custom options', () => {+ const error = new ServerError('Not found', {+ status: 404,+ code: 'NOT_FOUND',+ severity: 'warning',+ canAutoFix: true,+ context: { resource: 'user' }+ });+ expect(error.status).toBe(404);+ expect(error.code).toBe('NOT_FOUND');+ expect(error.severity).toBe('warning');+ expect(error.canAutoFix).toBe(true);+ expect(error.context).toEqual({ resource: 'user' });+ });++ it('should be an instance of Error', () => {+ const error = new ServerError('Test');+ expect(error instanceof Error).toBe(true);+ expect(error instanceof ServerError).toBe(true);+ });++ it('should have stack trace', () => {+ const error = new ServerError('Test');+ expect(error.stack).toBeDefined();+ expect(error.stack).toContain('ServerError');+ });+ });++ describe('normalizeError', () => {+ it('should return ServerError as-is', () => {+ const serverError = new ServerError('Original', { status: 400 });+ const normalized = normalizeError(serverError);+ expect(normalized).toBe(serverError);+ });++ it('should convert regular Error to ServerError', () => {+ const error = new Error('Regular error');+ const normalized = normalizeError(error);+ expect(normalized instanceof ServerError).toBe(true);+ expect(normalized.message).toBe('Regular error');+ expect(normalized.status).toBe(500);+ expect(normalized.context.originalError).toBe('Error');+ });++ it('should preserve status from Error if present', () => {+ const error = new Error('Not found');+ error.status = 404;+ const normalized = normalizeError(error);+ expect(normalized.status).toBe(404);+ expect(normalized.code).toBe('NOT_FOUND');+ });++ it('should preserve code from Error if present', () => {+ const error = new Error('Conflict');+ error.code = 'DUPLICATE_ENTRY';+ const normalized = normalizeError(error);+ expect(normalized.code).toBe('DUPLICATE_ENTRY');+ });++ it('should convert string to ServerError', () => {+ const normalized = normalizeError('String error');+ expect(normalized instanceof ServerError).toBe(true);+ expect(normalized.message).toBe('String error');+ expect(normalized.status).toBe(500);+ });++ it('should convert other types to ServerError', () => {+ const normalized = normalizeError({ someObject: true });+ expect(normalized instanceof ServerError).toBe(true);+ expect(normalized.message).toBe('[object Object]');+ });++ it('should map status codes to error codes', () => {+ const testCases = [+ { status: 400, code: 'BAD_REQUEST' },+ { status: 401, code: 'UNAUTHORIZED' },+ { status: 403, code: 'FORBIDDEN' },+ { status: 404, code: 'NOT_FOUND' },+ { status: 409, code: 'CONFLICT' },+ { status: 422, code: 'VALIDATION_ERROR' },+ { status: 502, code: 'BAD_GATEWAY' },+ { status: 503, code: 'SERVICE_UNAVAILABLE' }+ ];++ for (const tc of testCases) {+ const error = new Error('Test');+ error.status = tc.status;+ const normalized = normalizeError(error);+ expect(normalized.code).toBe(tc.code);+ }+ });++ it('should default to INTERNAL_ERROR for unknown status', () => {+ const error = new Error('Test');+ error.status = 418; // I'm a teapot+ const normalized = normalizeError(error);+ expect(normalized.code).toBe('INTERNAL_ERROR');+ });+ });++ describe('emitErrorEvent', () => {+ it('should emit error event to errorEvents', () => {+ const listener = vi.fn();+ errorEvents.on('error', listener);++ const mockIo = {+ emit: vi.fn()+ };+ const error = new ServerError('Test error');++ emitErrorEvent(mockIo, error);++ expect(listener).toHaveBeenCalledWith(error);+ errorEvents.off('error', listener);+ });+ });+});diff --git a/server/lib/validation.test.js b/server/lib/validation.test.jsnew file mode 100644index 0000000000..e51f8590e2--- /dev/null+++ b/server/lib/validation.test.js@@ -0,0 +1,326 @@+import { describe, it, expect } from 'vitest';+import {+ processSchema,+ appSchema,+ appUpdateSchema,+ providerSchema,+ runSchema,+ validate+} from './validation.js';++describe('validation.js', () => {+ describe('processSchema', () => {+ it('should validate a complete process object', () => {+ const process = {+ name: 'test-process',+ port: 3000,+ description: 'A test process'+ };+ const result = processSchema.safeParse(process);+ expect(result.success).toBe(true);+ expect(result.data).toEqual(process);+ });++ it('should allow port to be null', () => {+ const process = { name: 'test-process', port: null };+ const result = processSchema.safeParse(process);+ expect(result.success).toBe(true);+ });++ it('should allow port to be omitted', () => {+ const process = { name: 'test-process' };+ const result = processSchema.safeParse(process);+ expect(result.success).toBe(true);+ });++ it('should reject empty name', () => {+ const process = { name: '' };+ const result = processSchema.safeParse(process);+ expect(result.success).toBe(false);+ });++ it('should reject invalid port (below 1)', () => {+ const process = { name: 'test', port: 0 };+ const result = processSchema.safeParse(process);+ expect(result.success).toBe(false);+ });++ it('should reject invalid port (above 65535)', () => {+ const process = { name: 'test', port: 70000 };+ const result = processSchema.safeParse(process);+ expect(result.success).toBe(false);+ });++ it('should reject non-integer port', () => {+ const process = { name: 'test', port: 3000.5 };+ const result = processSchema.safeParse(process);+ expect(result.success).toBe(false);+ });+ });++ describe('appSchema', () => {+ it('should validate a minimal app', () => {+ const app = {+ name: 'Test App',+ repoPath: '/path/to/repo'+ };+ const result = appSchema.safeParse(app);+ expect(result.success).toBe(true);+ expect(result.data.type).toBe('express'); // default+ });++ it('should validate a full app object', () => {+ const app = {+ name: 'Full App',+ repoPath: '/path/to/repo',+ type: 'react',+ uiPort: 3000,+ apiPort: 4000,+ uiUrl: 'http://localhost:3000',+ startCommands: ['npm run dev'],+ pm2ProcessNames: ['app-ui', 'app-api'],+ processes: [{ name: 'api', port: 4000 }],+ envFile: '.env',+ icon: 'icon.png',+ editorCommand: 'cursor',+ description: 'A full test app'+ };+ const result = appSchema.safeParse(app);+ expect(result.success).toBe(true);+ });++ it('should reject empty name', () => {+ const app = { name: '', repoPath: '/path' };+ const result = appSchema.safeParse(app);+ expect(result.success).toBe(false);+ });++ it('should reject name over 100 characters', () => {+ const app = { name: 'a'.repeat(101), repoPath: '/path' };+ const result = appSchema.safeParse(app);+ expect(result.success).toBe(false);+ });++ it('should reject empty repoPath', () => {+ const app = { name: 'Test', repoPath: '' };+ const result = appSchema.safeParse(app);+ expect(result.success).toBe(false);+ });++ it('should reject invalid uiUrl', () => {+ const app = { name: 'Test', repoPath: '/path', uiUrl: 'not-a-url' };+ const result = appSchema.safeParse(app);+ expect(result.success).toBe(false);+ });++ it('should allow icon to be null', () => {+ const app = { name: 'Test', repoPath: '/path', icon: null };+ const result = appSchema.safeParse(app);+ expect(result.success).toBe(true);+ });++ it('should allow ports to be null', () => {+ const app = { name: 'Test', repoPath: '/path', uiPort: null, apiPort: null };+ const result = appSchema.safeParse(app);+ expect(result.success).toBe(true);+ });+ });++ describe('appUpdateSchema', () => {+ it('should allow partial updates', () => {+ const update = { name: 'New Name' };+ const result = appUpdateSchema.safeParse(update);+ expect(result.success).toBe(true);+ });++ it('should allow empty object', () => {+ const update = {};+ const result = appUpdateSchema.safeParse(update);+ expect(result.success).toBe(true);+ });++ it('should still validate provided fields', () => {+ const update = { name: '' }; // empty name is invalid+ const result = appUpdateSchema.safeParse(update);+ expect(result.success).toBe(false);+ });++ it('should validate port ranges in updates', () => {+ const update = { uiPort: 70000 };+ const result = appUpdateSchema.safeParse(update);+ expect(result.success).toBe(false);+ });+ });++ describe('providerSchema', () => {+ it('should validate a CLI provider', () => {+ const provider = {+ name: 'Claude CLI',+ type: 'cli',+ command: 'claude',+ args: ['--model', 'opus']+ };+ const result = providerSchema.safeParse(provider);+ expect(result.success).toBe(true);+ });++ it('should validate an API provider', () => {+ const provider = {+ name: 'OpenAI',+ type: 'api',+ endpoint: 'https://api.openai.com/v1',+ apiKey: 'sk-test',+ models: ['gpt-4', 'gpt-3.5-turbo'],+ defaultModel: 'gpt-4'+ };+ const result = providerSchema.safeParse(provider);+ expect(result.success).toBe(true);+ });++ it('should reject invalid type', () => {+ const provider = { name: 'Test', type: 'invalid' };+ const result = providerSchema.safeParse(provider);+ expect(result.success).toBe(false);+ });++ it('should reject empty name', () => {+ const provider = { name: '', type: 'cli' };+ const result = providerSchema.safeParse(provider);+ expect(result.success).toBe(false);+ });++ it('should reject name over 100 characters', () => {+ const provider = { name: 'a'.repeat(101), type: 'cli' };+ const result = providerSchema.safeParse(provider);+ expect(result.success).toBe(false);+ });++ it('should reject invalid endpoint URL', () => {+ const provider = { name: 'Test', type: 'api', endpoint: 'not-a-url' };+ const result = providerSchema.safeParse(provider);+ expect(result.success).toBe(false);+ });++ it('should validate timeout within range', () => {+ const provider = { name: 'Test', type: 'cli', timeout: 60000 };+ const result = providerSchema.safeParse(provider);+ expect(result.success).toBe(true);+ });++ it('should reject timeout below 1000', () => {+ const provider = { name: 'Test', type: 'cli', timeout: 500 };+ const result = providerSchema.safeParse(provider);+ expect(result.success).toBe(false);+ });++ it('should reject timeout above 600000', () => {+ const provider = { name: 'Test', type: 'cli', timeout: 700000 };+ const result = providerSchema.safeParse(provider);+ expect(result.success).toBe(false);+ });++ it('should allow envVars as record', () => {+ const provider = {+ name: 'Test',+ type: 'cli',+ envVars: { API_KEY: 'test', DEBUG: 'true' }+ };+ const result = providerSchema.safeParse(provider);+ expect(result.success).toBe(true);+ });++ it('should allow defaultModel to be null', () => {+ const provider = { name: 'Test', type: 'cli', defaultModel: null };+ const result = providerSchema.safeParse(provider);+ expect(result.success).toBe(true);+ });+ });++ describe('runSchema', () => {+ it('should validate an AI run', () => {+ const run = {+ type: 'ai',+ providerId: 'provider-001',+ model: 'opus',+ workspaceId: 'workspace-001',+ prompt: 'Test prompt'+ };+ const result = runSchema.safeParse(run);+ expect(result.success).toBe(true);+ });++ it('should validate a command run', () => {+ const run = {+ type: 'command',+ workspaceId: 'workspace-001',+ command: 'npm test'+ };+ const result = runSchema.safeParse(run);+ expect(result.success).toBe(true);+ });++ it('should reject invalid type', () => {+ const run = { type: 'invalid', workspaceId: 'test' };+ const result = runSchema.safeParse(run);+ expect(result.success).toBe(false);+ });++ it('should require workspaceId', () => {+ const run = { type: 'ai' };+ const result = runSchema.safeParse(run);+ expect(result.success).toBe(false);+ });++ it('should validate timeout within range', () => {+ const run = { type: 'ai', workspaceId: 'test', timeout: 300000 };+ const result = runSchema.safeParse(run);+ expect(result.success).toBe(true);+ });++ it('should reject timeout below 1000', () => {+ const run = { type: 'ai', workspaceId: 'test', timeout: 100 };+ const result = runSchema.safeParse(run);+ expect(result.success).toBe(false);+ });+ });++ describe('validate function', () => {+ it('should return success:true with data for valid input', () => {+ const data = { name: 'Test', repoPath: '/path' };+ const result = validate(appSchema, data);+ expect(result.success).toBe(true);+ expect(result.data).toBeDefined();+ expect(result.data.name).toBe('Test');+ });++ it('should return success:false with errors for invalid input', () => {+ const data = { name: '', repoPath: '' };+ const result = validate(appSchema, data);+ expect(result.success).toBe(false);+ expect(result.errors).toBeDefined();+ expect(Array.isArray(result.errors)).toBe(true);+ expect(result.errors.length).toBeGreaterThan(0);+ });++ it('should format error paths correctly', () => {+ const data = { name: 'Test', repoPath: '/path', processes: [{ name: '' }] };+ const result = validate(appSchema, data);+ expect(result.success).toBe(false);+ expect(result.errors.some(e => e.path.includes('processes'))).toBe(true);+ });++ it('should include error messages', () => {+ const data = { name: 'Test' }; // missing repoPath+ const result = validate(appSchema, data);+ expect(result.success).toBe(false);+ expect(result.errors[0].message).toBeDefined();+ });++ it('should apply default values', () => {+ const data = { name: 'Test', repoPath: '/path' };+ const result = validate(appSchema, data);+ expect(result.success).toBe(true);+ expect(result.data.type).toBe('express'); // default value+ });+ });+});diff --git a/server/lib/vectorMath.test.js b/server/lib/vectorMath.test.jsnew file mode 100644index 0000000000..cef307b87a--- /dev/null+++ b/server/lib/vectorMath.test.js@@ -0,0 +1,362 @@+import { describe, it, expect } from 'vitest';+import {+ cosineSimilarity,+ euclideanDistance,+ normalize,+ findTopK,+ findAboveThreshold,+ averageVectors,+ clusterBySimilarity,+ similarityMatrix+} from './vectorMath.js';++describe('vectorMath.js', () => {+ describe('cosineSimilarity', () => {+ it('should return 1 for identical vectors', () => {+ const a = [1, 2, 3];+ const b = [1, 2, 3];+ expect(cosineSimilarity(a, b)).toBeCloseTo(1.0);+ });++ it('should return -1 for opposite vectors', () => {+ const a = [1, 0, 0];+ const b = [-1, 0, 0];+ expect(cosineSimilarity(a, b)).toBeCloseTo(-1.0);+ });++ it('should return 0 for orthogonal vectors', () => {+ const a = [1, 0, 0];+ const b = [0, 1, 0];+ expect(cosineSimilarity(a, b)).toBeCloseTo(0.0);+ });++ it('should return 0 for null inputs', () => {+ expect(cosineSimilarity(null, [1, 2])).toBe(0);+ expect(cosineSimilarity([1, 2], null)).toBe(0);+ expect(cosineSimilarity(null, null)).toBe(0);+ });++ it('should return 0 for undefined inputs', () => {+ expect(cosineSimilarity(undefined, [1, 2])).toBe(0);+ expect(cosineSimilarity([1, 2], undefined)).toBe(0);+ });++ it('should return 0 for vectors of different lengths', () => {+ expect(cosineSimilarity([1, 2], [1, 2, 3])).toBe(0);+ });++ it('should return 0 for empty vectors', () => {+ expect(cosineSimilarity([], [])).toBe(0);+ });++ it('should return 0 for zero vectors', () => {+ expect(cosineSimilarity([0, 0, 0], [1, 2, 3])).toBe(0);+ });++ it('should handle high-dimensional vectors', () => {+ const a = Array(768).fill(0.5);+ const b = Array(768).fill(0.5);+ expect(cosineSimilarity(a, b)).toBeCloseTo(1.0);+ });+ });++ describe('euclideanDistance', () => {+ it('should return 0 for identical vectors', () => {+ const a = [1, 2, 3];+ const b = [1, 2, 3];+ expect(euclideanDistance(a, b)).toBe(0);+ });++ it('should calculate distance correctly', () => {+ const a = [0, 0];+ const b = [3, 4];+ expect(euclideanDistance(a, b)).toBe(5); // 3-4-5 triangle+ });++ it('should return Infinity for null inputs', () => {+ expect(euclideanDistance(null, [1, 2])).toBe(Infinity);+ expect(euclideanDistance([1, 2], null)).toBe(Infinity);+ });++ it('should return Infinity for different length vectors', () => {+ expect(euclideanDistance([1, 2], [1, 2, 3])).toBe(Infinity);+ });++ it('should return Infinity for empty vectors', () => {+ expect(euclideanDistance([], [])).toBe(Infinity);+ });++ it('should be commutative', () => {+ const a = [1, 2, 3];+ const b = [4, 5, 6];+ expect(euclideanDistance(a, b)).toBe(euclideanDistance(b, a));+ });+ });++ describe('normalize', () => {+ it('should normalize a vector to unit length', () => {+ const v = [3, 4];+ const normalized = normalize(v);+ const length = Math.sqrt(normalized[0] ** 2 + normalized[1] ** 2);+ expect(length).toBeCloseTo(1.0);+ });++ it('should preserve direction', () => {+ const v = [3, 4];+ const normalized = normalize(v);+ expect(normalized[0] / normalized[1]).toBeCloseTo(3 / 4);+ });++ it('should return empty array for null/undefined', () => {+ expect(normalize(null)).toEqual([]);+ expect(normalize(undefined)).toEqual([]);+ });++ it('should return empty array for empty vector', () => {+ expect(normalize([])).toEqual([]);+ });++ it('should return zero vector for zero input', () => {+ const result = normalize([0, 0, 0]);+ expect(result).toEqual([0, 0, 0]);+ });++ it('should handle single-element vectors', () => {+ const result = normalize([5]);+ expect(result).toEqual([1]);+ });+ });++ describe('findTopK', () => {+ it('should find the top K most similar vectors', () => {+ const query = [1, 0, 0];+ const vectors = {+ 'a': [1, 0, 0], // similarity: 1.0+ 'b': [0.9, 0.1, 0], // similarity: ~0.99+ 'c': [0, 1, 0], // similarity: 0+ 'd': [-1, 0, 0] // similarity: -1.0+ };++ const results = findTopK(query, vectors, 2);++ expect(results).toHaveLength(2);+ expect(results[0].id).toBe('a');+ expect(results[0].similarity).toBeCloseTo(1.0);+ expect(results[1].id).toBe('b');+ });++ it('should return empty array for null query', () => {+ expect(findTopK(null, { a: [1, 2] }, 5)).toEqual([]);+ });++ it('should return empty array for null vectors', () => {+ expect(findTopK([1, 2], null, 5)).toEqual([]);+ });++ it('should return empty array for empty vectors', () => {+ expect(findTopK([1, 2], {}, 5)).toEqual([]);+ });++ it('should return all vectors if k > vector count', () => {+ const query = [1, 0];+ const vectors = { 'a': [1, 0], 'b': [0, 1] };+ const results = findTopK(query, vectors, 10);+ expect(results).toHaveLength(2);+ });++ it('should default k to 10', () => {+ const query = [1, 0];+ const vectors = {};+ for (let i = 0; i < 15; i++) {+ vectors[`v${i}`] = [1, 0];+ }+ const results = findTopK(query, vectors);+ expect(results).toHaveLength(10);+ });+ });++ describe('findAboveThreshold', () => {+ it('should find vectors above similarity threshold', () => {+ const query = [1, 0, 0];+ const vectors = {+ 'a': [1, 0, 0], // similarity: 1.0+ 'b': [0.9, 0.1, 0], // similarity: ~0.99+ 'c': [0.5, 0.5, 0], // similarity: ~0.71+ 'd': [0, 1, 0] // similarity: 0+ };++ const results = findAboveThreshold(query, vectors, 0.8);++ expect(results.length).toBe(2);+ expect(results.every(r => r.similarity >= 0.8)).toBe(true);+ });++ it('should return sorted by similarity descending', () => {+ const query = [1, 0];+ const vectors = {+ 'a': [0.8, 0.2],+ 'b': [1, 0],+ 'c': [0.9, 0.1]+ };++ const results = findAboveThreshold(query, vectors, 0.5);++ for (let i = 0; i < results.length - 1; i++) {+ expect(results[i].similarity).toBeGreaterThanOrEqual(results[i + 1].similarity);+ }+ });++ it('should return empty for null inputs', () => {+ expect(findAboveThreshold(null, { a: [1] }, 0.5)).toEqual([]);+ expect(findAboveThreshold([1], null, 0.5)).toEqual([]);+ });++ it('should return empty for empty vectors', () => {+ expect(findAboveThreshold([1, 2], {}, 0.5)).toEqual([]);+ });++ it('should default threshold to 0.7', () => {+ const query = [1, 0];+ const vectors = {+ 'a': [1, 0], // 1.0+ 'b': [0.6, 0.4] // ~0.83+ };+ const results = findAboveThreshold(query, vectors);+ expect(results.length).toBe(2);+ });+ });++ describe('averageVectors', () => {+ it('should calculate average of vectors', () => {+ const vectors = [+ [1, 2, 3],+ [3, 2, 1],+ [2, 2, 2]+ ];+ const avg = averageVectors(vectors);+ expect(avg).toEqual([2, 2, 2]);+ });++ it('should return empty for null input', () => {+ expect(averageVectors(null)).toEqual([]);+ });++ it('should return empty for empty array', () => {+ expect(averageVectors([])).toEqual([]);+ });++ it('should handle single vector', () => {+ const vectors = [[1, 2, 3]];+ const avg = averageVectors(vectors);+ expect(avg).toEqual([1, 2, 3]);+ });++ it('should handle decimal results', () => {+ const vectors = [+ [1, 0],+ [0, 1]+ ];+ const avg = averageVectors(vectors);+ expect(avg[0]).toBeCloseTo(0.5);+ expect(avg[1]).toBeCloseTo(0.5);+ });+ });++ describe('clusterBySimilarity', () => {+ it('should cluster similar items together', () => {+ const items = [+ { id: 'a', embedding: [1, 0, 0] },+ { id: 'b', embedding: [0.99, 0.01, 0] },+ { id: 'c', embedding: [0, 1, 0] },+ { id: 'd', embedding: [0.01, 0.99, 0] }+ ];++ const clusters = clusterBySimilarity(items, 0.95);++ expect(clusters.length).toBe(2);+ const clusterA = clusters.find(c => c.some(i => i.id === 'a'));+ const clusterC = clusters.find(c => c.some(i => i.id === 'c'));+ expect(clusterA.some(i => i.id === 'b')).toBe(true);+ expect(clusterC.some(i => i.id === 'd')).toBe(true);+ });++ it('should return empty for null input', () => {+ expect(clusterBySimilarity(null)).toEqual([]);+ });++ it('should return empty for empty array', () => {+ expect(clusterBySimilarity([])).toEqual([]);+ });++ it('should put each item in its own cluster if all dissimilar', () => {+ const items = [+ { id: 'a', embedding: [1, 0, 0] },+ { id: 'b', embedding: [0, 1, 0] },+ { id: 'c', embedding: [0, 0, 1] }+ ];++ const clusters = clusterBySimilarity(items, 0.99);+ expect(clusters.length).toBe(3);+ });++ it('should use default threshold of 0.9', () => {+ const items = [+ { id: 'a', embedding: [1, 0] },+ { id: 'b', embedding: [0.95, 0.05] }+ ];+ const clusters = clusterBySimilarity(items);+ expect(clusters.length).toBe(1);+ });+ });++ describe('similarityMatrix', () => {+ it('should compute pairwise similarity matrix', () => {+ const vectors = {+ 'a': [1, 0],+ 'b': [0, 1],+ 'c': [1, 0]+ };++ const { ids, matrix } = similarityMatrix(vectors);++ expect(ids).toHaveLength(3);+ expect(matrix).toHaveLength(3);+ expect(matrix[0]).toHaveLength(3);++ // Diagonal should be 1+ for (let i = 0; i < ids.length; i++) {+ expect(matrix[i][i]).toBe(1);+ }+ });++ it('should be symmetric', () => {+ const vectors = {+ 'a': [1, 0],+ 'b': [0.5, 0.5],+ 'c': [0, 1]+ };++ const { matrix } = similarityMatrix(vectors);++ for (let i = 0; i < matrix.length; i++) {+ for (let j = 0; j < matrix.length; j++) {+ expect(matrix[i][j]).toBeCloseTo(matrix[j][i]);+ }+ }+ });++ it('should handle single vector', () => {+ const vectors = { 'a': [1, 0] };+ const { ids, matrix } = similarityMatrix(vectors);++ expect(ids).toEqual(['a']);+ expect(matrix).toEqual([[1]]);+ });++ it('should handle empty vectors object', () => {+ const { ids, matrix } = similarityMatrix({});+ expect(ids).toEqual([]);+ expect(matrix).toEqual([]);+ });+ });+});diff --git a/server/package-lock.json b/server/package-lock.jsonindex 5eb07e61db..49af8b6bf1 100644--- a/server/package-lock.json+++ b/server/package-lock.json@@ -1,12 +1,12 @@{"name": "portos-server",- "version": "0.5.7",+ "version": "0.7.6","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "portos-server",- "version": "0.5.7",+ "version": "0.7.6","dependencies": {"cors": "^2.8.5","express": "^4.21.2",@@ -17,10 +17,82 @@"zod": "^3.24.1"},"devDependencies": {+ "@vitest/coverage-v8": "^2.1.8","supertest": "^7.1.4","vitest": "^2.1.8"}},+ "node_modules/@ampproject/remapping": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz",+ "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.5",+ "@jridgewell/trace-mapping": "^0.3.24"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/helper-string-parser": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",+ "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-identifier": {+ "version": "7.28.5",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",+ "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/parser": {+ "version": "7.28.5",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.5.tgz",+ "integrity": "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.28.5"+ },+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/types": {+ "version": "7.28.5",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.5.tgz",+ "integrity": "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-string-parser": "^7.27.1",+ "@babel/helper-validator-identifier": "^7.28.5"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@bcoe/v8-coverage": {+ "version": "0.2.3",+ "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz",+ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==",+ "dev": true,+ "license": "MIT"+ },"node_modules/@esbuild/aix-ppc64": {"version": "0.21.5","resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz",@@ -412,6 +484,55 @@"node": ">=12"}},+ "node_modules/@isaacs/cliui": {+ "version": "8.0.2",+ "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",+ "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "string-width": "^5.1.2",+ "string-width-cjs": "npm:string-width@^4.2.0",+ "strip-ansi": "^7.0.1",+ "strip-ansi-cjs": "npm:strip-ansi@^6.0.1",+ "wrap-ansi": "^8.1.0",+ "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@istanbuljs/schema": {+ "version": "0.1.3",+ "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz",+ "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/@jridgewell/gen-mapping": {+ "version": "0.3.13",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.0",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "node_modules/@jridgewell/resolve-uri": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.0.0"+ }+ },"node_modules/@jridgewell/sourcemap-codec": {"version": "1.5.5","resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",@@ -419,6 +540,17 @@"dev": true,"license": "MIT"},+ "node_modules/@jridgewell/trace-mapping": {+ "version": "0.3.31",+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/resolve-uri": "^3.1.0",+ "@jridgewell/sourcemap-codec": "^1.4.14"+ }+ },"node_modules/@noble/hashes": {"version": "1.8.0","resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",@@ -442,6 +574,17 @@"@noble/hashes": "^1.1.5"}},+ "node_modules/@pkgjs/parseargs": {+ "version": "0.11.0",+ "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz",+ "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">=14"+ }+ },"node_modules/@pm2/agent": {"version": "2.0.4","resolved": "https://registry.npmjs.org/@pm2/agent/-/agent-2.0.4.tgz",@@ -690,9 +833,9 @@"license": "MIT"},"node_modules/@rollup/rollup-android-arm-eabi": {- "version": "4.54.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.54.0.tgz",- "integrity": "sha512-OywsdRHrFvCdvsewAInDKCNyR3laPA2mc9bRYJ6LBp5IyvF3fvXbbNR0bSzHlZVFtn6E0xw2oZlyjg4rKCVcng==",+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.55.1.tgz",+ "integrity": "sha512-9R0DM/ykwfGIlNu6+2U09ga0WXeZ9MRC2Ter8jnz8415VbuIykVuc6bhdrbORFZANDmTDvq26mJrEVTl8TdnDg==","cpu": ["arm"],@@ -704,9 +847,9 @@]},"node_modules/@rollup/rollup-android-arm64": {- "version": "4.54.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.54.0.tgz",- "integrity": "sha512-Skx39Uv+u7H224Af+bDgNinitlmHyQX1K/atIA32JP3JQw6hVODX5tkbi2zof/E69M1qH2UoN3Xdxgs90mmNYw==",+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.55.1.tgz",+ "integrity": "sha512-eFZCb1YUqhTysgW3sj/55du5cG57S7UTNtdMjCW7LwVcj3dTTcowCsC8p7uBdzKsZYa8J7IDE8lhMI+HX1vQvg==","cpu": ["arm64"],@@ -718,9 +861,9 @@]},"node_modules/@rollup/rollup-darwin-arm64": {- "version": "4.54.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.54.0.tgz",- "integrity": "sha512-k43D4qta/+6Fq+nCDhhv9yP2HdeKeP56QrUUTW7E6PhZP1US6NDqpJj4MY0jBHlJivVJD5P8NxrjuobZBJTCRw==",+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.55.1.tgz",+ "integrity": "sha512-p3grE2PHcQm2e8PSGZdzIhCKbMCw/xi9XvMPErPhwO17vxtvCN5FEA2mSLgmKlCjHGMQTP6phuQTYWUnKewwGg==","cpu": ["arm64"],@@ -732,9 +875,9 @@]},"node_modules/@rollup/rollup-darwin-x64": {- "version": "4.54.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.54.0.tgz",- "integrity": "sha512-cOo7biqwkpawslEfox5Vs8/qj83M/aZCSSNIWpVzfU2CYHa2G3P1UN5WF01RdTHSgCkri7XOlTdtk17BezlV3A==",+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.55.1.tgz",+ "integrity": "sha512-rDUjG25C9qoTm+e02Esi+aqTKSBYwVTaoS1wxcN47/Luqef57Vgp96xNANwt5npq9GDxsH7kXxNkJVEsWEOEaQ==","cpu": ["x64"],@@ -746,9 +889,9 @@]},"node_modules/@rollup/rollup-freebsd-arm64": {- "version": "4.54.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.54.0.tgz",- "integrity": "sha512-miSvuFkmvFbgJ1BevMa4CPCFt5MPGw094knM64W9I0giUIMMmRYcGW/JWZDriaw/k1kOBtsWh1z6nIFV1vPNtA==",+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.55.1.tgz",+ "integrity": "sha512-+JiU7Jbp5cdxekIgdte0jfcu5oqw4GCKr6i3PJTlXTCU5H5Fvtkpbs4XJHRmWNXF+hKmn4v7ogI5OQPaupJgOg==","cpu": ["arm64"],@@ -760,9 +903,9 @@]},"node_modules/@rollup/rollup-freebsd-x64": {- "version": "4.54.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.54.0.tgz",- "integrity": "sha512-KGXIs55+b/ZfZsq9aR026tmr/+7tq6VG6MsnrvF4H8VhwflTIuYh+LFUlIsRdQSgrgmtM3fVATzEAj4hBQlaqQ==",+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.55.1.tgz",+ "integrity": "sha512-V5xC1tOVWtLLmr3YUk2f6EJK4qksksOYiz/TCsFHu/R+woubcLWdC9nZQmwjOAbmExBIVKsm1/wKmEy4z4u4Bw==","cpu": ["x64"],@@ -774,9 +917,9 @@]},"node_modules/@rollup/rollup-linux-arm-gnueabihf": {- "version": "4.54.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.54.0.tgz",- "integrity": "sha512-EHMUcDwhtdRGlXZsGSIuXSYwD5kOT9NVnx9sqzYiwAc91wfYOE1g1djOEDseZJKKqtHAHGwnGPQu3kytmfaXLQ==",+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.55.1.tgz",+ "integrity": "sha512-Rn3n+FUk2J5VWx+ywrG/HGPTD9jXNbicRtTM11e/uorplArnXZYsVifnPPqNNP5BsO3roI4n8332ukpY/zN7rQ==","cpu": ["arm"],@@ -788,9 +931,9 @@]},"node_modules/@rollup/rollup-linux-arm-musleabihf": {- "version": "4.54.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.54.0.tgz",- "integrity": "sha512-+pBrqEjaakN2ySv5RVrj/qLytYhPKEUwk+e3SFU5jTLHIcAtqh2rLrd/OkbNuHJpsBgxsD8ccJt5ga/SeG0JmA==",+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.55.1.tgz",+ "integrity": "sha512-grPNWydeKtc1aEdrJDWk4opD7nFtQbMmV7769hiAaYyUKCT1faPRm2av8CX1YJsZ4TLAZcg9gTR1KvEzoLjXkg==","cpu": ["arm"],@@ -802,9 +945,9 @@]},"node_modules/@rollup/rollup-linux-arm64-gnu": {- "version": "4.54.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.54.0.tgz",- "integrity": "sha512-NSqc7rE9wuUaRBsBp5ckQ5CVz5aIRKCwsoa6WMF7G01sX3/qHUw/z4pv+D+ahL1EIKy6Enpcnz1RY8pf7bjwng==",+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.55.1.tgz",+ "integrity": "sha512-a59mwd1k6x8tXKcUxSyISiquLwB5pX+fJW9TkWU46lCqD/GRDe9uDN31jrMmVP3feI3mhAdvcCClhV8V5MhJFQ==","cpu": ["arm64"],@@ -816,9 +959,9 @@]},"node_modules/@rollup/rollup-linux-arm64-musl": {- "version": "4.54.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.54.0.tgz",- "integrity": "sha512-gr5vDbg3Bakga5kbdpqx81m2n9IX8M6gIMlQQIXiLTNeQW6CucvuInJ91EuCJ/JYvc+rcLLsDFcfAD1K7fMofg==",+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.55.1.tgz",+ "integrity": "sha512-puS1MEgWX5GsHSoiAsF0TYrpomdvkaXm0CofIMG5uVkP6IBV+ZO9xhC5YEN49nsgYo1DuuMquF9+7EDBVYu4uA==","cpu": ["arm64"],@@ -830,9 +973,23 @@]},"node_modules/@rollup/rollup-linux-loong64-gnu": {- "version": "4.54.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.54.0.tgz",- "integrity": "sha512-gsrtB1NA3ZYj2vq0Rzkylo9ylCtW/PhpLEivlgWe0bpgtX5+9j9EZa0wtZiCjgu6zmSeZWyI/e2YRX1URozpIw==",+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.55.1.tgz",+ "integrity": "sha512-r3Wv40in+lTsULSb6nnoudVbARdOwb2u5fpeoOAZjFLznp6tDU8kd+GTHmJoqZ9lt6/Sys33KdIHUaQihFcu7g==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-musl": {+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.55.1.tgz",+ "integrity": "sha512-MR8c0+UxAlB22Fq4R+aQSPBayvYa3+9DrwG/i1TKQXFYEaoW3B5b/rkSRIypcZDdWjWnpcvxbNaAJDcSbJU3Lw==","cpu": ["loong64"],@@ -844,9 +1001,23 @@]},"node_modules/@rollup/rollup-linux-ppc64-gnu": {- "version": "4.54.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.54.0.tgz",- "integrity": "sha512-y3qNOfTBStmFNq+t4s7Tmc9hW2ENtPg8FeUD/VShI7rKxNW7O4fFeaYbMsd3tpFlIg1Q8IapFgy7Q9i2BqeBvA==",+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.55.1.tgz",+ "integrity": "sha512-3KhoECe1BRlSYpMTeVrD4sh2Pw2xgt4jzNSZIIPLFEsnQn9gAnZagW9+VqDqAHgm1Xc77LzJOo2LdigS5qZ+gw==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-musl": {+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.55.1.tgz",+ "integrity": "sha512-ziR1OuZx0vdYZZ30vueNZTg73alF59DicYrPViG0NEgDVN8/Jl87zkAPu4u6VjZST2llgEUjaiNl9JM6HH1Vdw==","cpu": ["ppc64"],@@ -858,9 +1029,9 @@]},"node_modules/@rollup/rollup-linux-riscv64-gnu": {- "version": "4.54.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.54.0.tgz",- "integrity": "sha512-89sepv7h2lIVPsFma8iwmccN7Yjjtgz0Rj/Ou6fEqg3HDhpCa+Et+YSufy27i6b0Wav69Qv4WBNl3Rs6pwhebQ==",+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.55.1.tgz",+ "integrity": "sha512-uW0Y12ih2XJRERZ4jAfKamTyIHVMPQnTZcQjme2HMVDAHY4amf5u414OqNYC+x+LzRdRcnIG1YodLrrtA8xsxw==","cpu": ["riscv64"],@@ -872,9 +1043,9 @@]},"node_modules/@rollup/rollup-linux-riscv64-musl": {- "version": "4.54.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.54.0.tgz",- "integrity": "sha512-ZcU77ieh0M2Q8Ur7D5X7KvK+UxbXeDHwiOt/CPSBTI1fBmeDMivW0dPkdqkT4rOgDjrDDBUed9x4EgraIKoR2A==",+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.55.1.tgz",+ "integrity": "sha512-u9yZ0jUkOED1BFrqu3BwMQoixvGHGZ+JhJNkNKY/hyoEgOwlqKb62qu+7UjbPSHYjiVy8kKJHvXKv5coH4wDeg==","cpu": ["riscv64"],@@ -886,9 +1057,9 @@]},"node_modules/@rollup/rollup-linux-s390x-gnu": {- "version": "4.54.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.54.0.tgz",- "integrity": "sha512-2AdWy5RdDF5+4YfG/YesGDDtbyJlC9LHmL6rZw6FurBJ5n4vFGupsOBGfwMRjBYH7qRQowT8D/U4LoSvVwOhSQ==",+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.55.1.tgz",+ "integrity": "sha512-/0PenBCmqM4ZUd0190j7J0UsQ/1nsi735iPRakO8iPciE7BQ495Y6msPzaOmvx0/pn+eJVVlZrNrSh4WSYLxNg==","cpu": ["s390x"],@@ -900,9 +1071,9 @@]},"node_modules/@rollup/rollup-linux-x64-gnu": {- "version": "4.54.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.54.0.tgz",- "integrity": "sha512-WGt5J8Ij/rvyqpFexxk3ffKqqbLf9AqrTBbWDk7ApGUzaIs6V+s2s84kAxklFwmMF/vBNGrVdYgbblCOFFezMQ==",+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.55.1.tgz",+ "integrity": "sha512-a8G4wiQxQG2BAvo+gU6XrReRRqj+pLS2NGXKm8io19goR+K8lw269eTrPkSdDTALwMmJp4th2Uh0D8J9bEV1vg==","cpu": ["x64"],@@ -914,9 +1085,9 @@]},"node_modules/@rollup/rollup-linux-x64-musl": {- "version": "4.54.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.54.0.tgz",- "integrity": "sha512-JzQmb38ATzHjxlPHuTH6tE7ojnMKM2kYNzt44LO/jJi8BpceEC8QuXYA908n8r3CNuG/B3BV8VR3Hi1rYtmPiw==",+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.55.1.tgz",+ "integrity": "sha512-bD+zjpFrMpP/hqkfEcnjXWHMw5BIghGisOKPj+2NaNDuVT+8Ds4mPf3XcPHuat1tz89WRL+1wbcxKY3WSbiT7w==","cpu": ["x64"],@@ -927,10 +1098,24 @@"linux"]},+ "node_modules/@rollup/rollup-openbsd-x64": {+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.55.1.tgz",+ "integrity": "sha512-eLXw0dOiqE4QmvikfQ6yjgkg/xDM+MdU9YJuP4ySTibXU0oAvnEWXt7UDJmD4UkYialMfOGFPJnIHSe/kdzPxg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ]+ },"node_modules/@rollup/rollup-openharmony-arm64": {- "version": "4.54.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.54.0.tgz",- "integrity": "sha512-huT3fd0iC7jigGh7n3q/+lfPcXxBi+om/Rs3yiFxjvSxbSB6aohDFXbWvlspaqjeOh+hx7DDHS+5Es5qRkWkZg==",+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.55.1.tgz",+ "integrity": "sha512-xzm44KgEP11te3S2HCSyYf5zIzWmx3n8HDCc7EE59+lTcswEWNpvMLfd9uJvVX8LCg9QWG67Xt75AuHn4vgsXw==","cpu": ["arm64"],@@ -942,9 +1127,9 @@]},"node_modules/@rollup/rollup-win32-arm64-msvc": {- "version": "4.54.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.54.0.tgz",- "integrity": "sha512-c2V0W1bsKIKfbLMBu/WGBz6Yci8nJ/ZJdheE0EwB73N3MvHYKiKGs3mVilX4Gs70eGeDaMqEob25Tw2Gb9Nqyw==",+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.55.1.tgz",+ "integrity": "sha512-yR6Bl3tMC/gBok5cz/Qi0xYnVbIxGx5Fcf/ca0eB6/6JwOY+SRUcJfI0OpeTpPls7f194as62thCt/2BjxYN8g==","cpu": ["arm64"],@@ -956,9 +1141,9 @@]},"node_modules/@rollup/rollup-win32-ia32-msvc": {- "version": "4.54.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.54.0.tgz",- "integrity": "sha512-woEHgqQqDCkAzrDhvDipnSirm5vxUXtSKDYTVpZG3nUdW/VVB5VdCYA2iReSj/u3yCZzXID4kuKG7OynPnB3WQ==",+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.55.1.tgz",+ "integrity": "sha512-3fZBidchE0eY0oFZBnekYCfg+5wAB0mbpCBuofh5mZuzIU/4jIVkbESmd2dOsFNS78b53CYv3OAtwqkZZmU5nA==","cpu": ["ia32"],@@ -970,9 +1155,9 @@]},"node_modules/@rollup/rollup-win32-x64-gnu": {- "version": "4.54.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.54.0.tgz",- "integrity": "sha512-dzAc53LOuFvHwbCEOS0rPbXp6SIhAf2txMP5p6mGyOXXw5mWY8NGGbPMPrs4P1WItkfApDathBj/NzMLUZ9rtQ==",+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.55.1.tgz",+ "integrity": "sha512-xGGY5pXj69IxKb4yv/POoocPy/qmEGhimy/FoTpTSVju3FYXUQQMFCaZZXJVidsmGxRioZAwpThl/4zX41gRKg==","cpu": ["x64"],@@ -984,9 +1169,9 @@]},"node_modules/@rollup/rollup-win32-x64-msvc": {- "version": "4.54.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.54.0.tgz",- "integrity": "sha512-hYT5d3YNdSh3mbCU1gwQyPgQd3T2ne0A3KG8KSBdav5TiBg6eInVmV+TeR5uHufiIgSFg0XsOWGW5/RhNcSvPg==",+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.55.1.tgz",+ "integrity": "sha512-SPEpaL6DX4rmcXtnhdrQYgzQ5W2uW3SCJch88lB2zImhJRhIIK44fkUrgIV/Q8yUNfw5oyZ5vkeQsZLhCb06lw==","cpu": ["x64"],@@ -1034,15 +1219,73 @@"undici-types": "~7.16.0"}},+ "node_modules/@vitest/coverage-v8": {+ "version": "2.1.8",+ "resolved": "https://registry.npmjs.org/@vitest/coverage-v8/-/coverage-v8-2.1.8.tgz",+ "integrity": "sha512-2Y7BPlKH18mAZYAW1tYByudlCYrQyl5RGvnnDYJKW5tCiO5qg3KSAy3XAxcxKz900a0ZXxWtKrMuZLe3lKBpJw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@ampproject/remapping": "^2.3.0",+ "@bcoe/v8-coverage": "^0.2.3",+ "debug": "^4.3.7",+ "istanbul-lib-coverage": "^3.2.2",+ "istanbul-lib-report": "^3.0.1",+ "istanbul-lib-source-maps": "^5.0.6",+ "istanbul-reports": "^3.1.7",+ "magic-string": "^0.30.12",+ "magicast": "^0.3.5",+ "std-env": "^3.8.0",+ "test-exclude": "^7.0.1",+ "tinyrainbow": "^1.2.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ },+ "peerDependencies": {+ "@vitest/browser": "2.1.8",+ "vitest": "2.1.8"+ },+ "peerDependenciesMeta": {+ "@vitest/browser": {+ "optional": true+ }+ }+ },+ "node_modules/@vitest/coverage-v8/node_modules/debug": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/@vitest/coverage-v8/node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",+ "dev": true,+ "license": "MIT"+ },"node_modules/@vitest/expect": {- "version": "2.1.9",- "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-2.1.9.tgz",- "integrity": "sha512-UJCIkTBenHeKT1TTlKMJWy1laZewsRIzYighyYiJKZreqtdxSos/S1t+ktRMQWu2CKqaarrkeszJx1cgC5tGZw==",+ "version": "2.1.8",+ "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-2.1.8.tgz",+ "integrity": "sha512-8ytZ/fFHq2g4PJVAtDX57mayemKgDR6X3Oa2Foro+EygiOJHUXhCqBAAKQYYajZpFoIfvBCF1j6R6IYRSIUFuw==","dev": true,"license": "MIT","dependencies": {- "@vitest/spy": "2.1.9",- "@vitest/utils": "2.1.9",+ "@vitest/spy": "2.1.8",+ "@vitest/utils": "2.1.8","chai": "^5.1.2","tinyrainbow": "^1.2.0"},@@ -1051,13 +1294,13 @@}},"node_modules/@vitest/mocker": {- "version": "2.1.9",- "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-2.1.9.tgz",- "integrity": "sha512-tVL6uJgoUdi6icpxmdrn5YNo3g3Dxv+IHJBr0GXHaEdTcw3F+cPKnsXFhli6nO+f/6SDKPHEK1UN+k+TQv0Ehg==",+ "version": "2.1.8",+ "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-2.1.8.tgz",+ "integrity": "sha512-7guJ/47I6uqfttp33mgo6ga5Gr1VnL58rcqYKyShoRK9ebu8T5Rs6HN3s1NABiBeVTdWNrwUMcHH54uXZBN4zA==","dev": true,"license": "MIT","dependencies": {- "@vitest/spy": "2.1.9",+ "@vitest/spy": "2.1.8","estree-walker": "^3.0.3","magic-string": "^0.30.12"},@@ -1091,13 +1334,13 @@}},"node_modules/@vitest/runner": {- "version": "2.1.9",- "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-2.1.9.tgz",- "integrity": "sha512-ZXSSqTFIrzduD63btIfEyOmNcBmQvgOVsPNPe0jYtESiXkhd8u2erDLnMxmGrDCwHCCHE7hxwRDCT3pt0esT4g==",+ "version": "2.1.8",+ "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-2.1.8.tgz",+ "integrity": "sha512-17ub8vQstRnRlIU5k50bG+QOMLHRhYPAna5tw8tYbj+jzjcspnwnwtPtiOlkuKC4+ixDPTuLZiqiWWQ2PSXHVg==","dev": true,"license": "MIT","dependencies": {- "@vitest/utils": "2.1.9",+ "@vitest/utils": "2.1.8","pathe": "^1.1.2"},"funding": {@@ -1105,13 +1348,13 @@}},"node_modules/@vitest/snapshot": {- "version": "2.1.9",- "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-2.1.9.tgz",- "integrity": "sha512-oBO82rEjsxLNJincVhLhaxxZdEtV0EFHMK5Kmx5sJ6H9L183dHECjiefOAdnqpIgT5eZwT04PoggUnW88vOBNQ==",+ "version": "2.1.8",+ "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-2.1.8.tgz",+ "integrity": "sha512-20T7xRFbmnkfcmgVEz+z3AU/3b0cEzZOt/zmnvZEctg64/QZbSDJEVm9fLnnlSi74KibmRsO9/Qabi+t0vCRPg==","dev": true,"license": "MIT","dependencies": {- "@vitest/pretty-format": "2.1.9",+ "@vitest/pretty-format": "2.1.8","magic-string": "^0.30.12","pathe": "^1.1.2"},@@ -1119,10 +1362,23 @@"url": "https://opencollective.com/vitest"}},+ "node_modules/@vitest/snapshot/node_modules/@vitest/pretty-format": {+ "version": "2.1.8",+ "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.1.8.tgz",+ "integrity": "sha512-9HiSZ9zpqNLKlbIDRWOnAWqgcA7xu+8YxXSekhr0Ykab7PAYFkhkwoqVArPOtJhPmYeE2YHgKZlj3CP36z2AJQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tinyrainbow": "^1.2.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },"node_modules/@vitest/spy": {- "version": "2.1.9",- "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-2.1.9.tgz",- "integrity": "sha512-E1B35FwzXXTs9FHNK6bDszs7mtydNi5MIfUWpceJ8Xbfb1gBMscAnwLbEu+B44ed6W3XjL9/ehLPHR1fkf1KLQ==",+ "version": "2.1.8",+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-2.1.8.tgz",+ "integrity": "sha512-5swjf2q95gXeYPevtW0BLk6H8+bPlMb4Vw/9Em4hFxDcaOxS+e0LOX4yqNxoHzMR2akEB2xfpnWUzkZokmgWDg==","dev": true,"license": "MIT","dependencies": {@@ -1133,13 +1389,13 @@}},"node_modules/@vitest/utils": {- "version": "2.1.9",- "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.1.9.tgz",- "integrity": "sha512-v0psaMSkNJ3A2NMrUEHFRzJtDPFn+/VWZ5WxImB21T9fjucJRmS7xCS3ppEnARb9y11OAzaD+P2Ps+b+BGX5iQ==",+ "version": "2.1.8",+ "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.1.8.tgz",+ "integrity": "sha512-dwSoui6djdwbfFmIgbIjX2ZhIoG7Ex/+xpxyiEgIGzjliY8xGkcpITKTlp6B4MgtGkF2ilvm97cPM96XZaAgcA==","dev": true,"license": "MIT","dependencies": {- "@vitest/pretty-format": "2.1.9",+ "@vitest/pretty-format": "2.1.8","loupe": "^3.1.2","tinyrainbow": "^1.2.0"},@@ -1147,6 +1403,19 @@"url": "https://opencollective.com/vitest"}},+ "node_modules/@vitest/utils/node_modules/@vitest/pretty-format": {+ "version": "2.1.8",+ "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.1.8.tgz",+ "integrity": "sha512-9HiSZ9zpqNLKlbIDRWOnAWqgcA7xu+8YxXSekhr0Ykab7PAYFkhkwoqVArPOtJhPmYeE2YHgKZlj3CP36z2AJQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tinyrainbow": "^1.2.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },"node_modules/accepts": {"version": "1.3.8","resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",@@ -1193,6 +1462,19 @@"node": ">=6"}},+ "node_modules/ansi-regex": {+ "version": "6.2.2",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"+ }+ },"node_modules/ansi-styles": {"version": "4.3.0","resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",@@ -1281,6 +1563,13 @@"dev": true,"license": "MIT"},+ "node_modules/balanced-match": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",+ "dev": true,+ "license": "MIT"+ },"node_modules/base64id": {"version": "2.0.0","resolved": "https://registry.npmjs.org/base64id/-/base64id-2.0.0.tgz",@@ -1353,6 +1642,16 @@"npm": "1.2.8000 || >= 1.4.16"}},+ "node_modules/brace-expansion": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",+ "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0"+ }+ },"node_modules/braces": {"version": "3.0.3","resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",@@ -1456,9 +1755,9 @@"license": "MIT/X11"},"node_modules/check-error": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz",- "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==",+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.3.tgz",+ "integrity": "sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==","dev": true,"license": "MIT","engines": {@@ -1609,6 +1908,21 @@"integrity": "sha512-/f6gpQuxDaqXu+1kwQYSckUglPaOrHdbIlBAu0YuW8/Cdb45XwXYNUBXg3r/9Mo6n540Kn/smKcZWko5x99KrQ==","license": "MIT"},+ "node_modules/cross-spawn": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "path-key": "^3.1.0",+ "shebang-command": "^2.0.0",+ "which": "^2.0.1"+ },+ "engines": {+ "node": ">= 8"+ }+ },"node_modules/culvert": {"version": "0.1.2","resolved": "https://registry.npmjs.org/culvert/-/culvert-0.1.2.tgz",@@ -1717,12 +2031,26 @@"node": ">= 0.4"}},+ "node_modules/eastasianwidth": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz",+ "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==",+ "dev": true,+ "license": "MIT"+ },"node_modules/ee-first": {"version": "1.1.1","resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz","integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==","license": "MIT"},+ "node_modules/emoji-regex": {+ "version": "9.2.2",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",+ "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",+ "dev": true,+ "license": "MIT"+ },"node_modules/encodeurl": {"version": "2.0.0","resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",@@ -2195,6 +2523,36 @@}}},+ "node_modules/foreground-child": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz",+ "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "cross-spawn": "^7.0.6",+ "signal-exit": "^4.0.1"+ },+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/foreground-child/node_modules/signal-exit": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",+ "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },"node_modules/form-data": {"version": "4.0.5","resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz",@@ -2357,6 +2715,27 @@"integrity": "sha512-2e/nZezdVlyCopOCYHeW0onkbZg7xP1Ad6pndPy1rCygeRykefUS6r7oA5cJRGEFvseiaz5a/qUHFVX1dd6Isg==","license": "MIT"},+ "node_modules/glob": {+ "version": "10.5.0",+ "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz",+ "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "foreground-child": "^3.1.0",+ "jackspeak": "^3.1.2",+ "minimatch": "^9.0.4",+ "minipass": "^7.1.2",+ "package-json-from-dist": "^1.0.0",+ "path-scurry": "^1.11.1"+ },+ "bin": {+ "glob": "dist/esm/bin.mjs"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },"node_modules/glob-parent": {"version": "5.1.2","resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",@@ -2430,6 +2809,13 @@"node": ">= 0.4"}},+ "node_modules/html-escaper": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz",+ "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==",+ "dev": true,+ "license": "MIT"+ },"node_modules/http-errors": {"version": "2.0.1","resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",@@ -2600,6 +2986,16 @@"node": ">=0.10.0"}},+ "node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },"node_modules/is-glob": {"version": "4.0.3","resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",@@ -2621,19 +3017,121 @@"node": ">=0.12.0"}},- "node_modules/js-git": {- "version": "0.7.8",- "resolved": "https://registry.npmjs.org/js-git/-/js-git-0.7.8.tgz",- "integrity": "sha512-+E5ZH/HeRnoc/LW0AmAyhU+mNcWBzAKE+30+IDMLSLbbK+Tdt02AdkOKq9u15rlJsDEGFqtgckc8ZM59LhhiUA==",- "license": "MIT",- "dependencies": {- "bodec": "^0.1.0",- "culvert": "^0.1.2",- "git-sha1": "^0.1.2",- "pako": "^0.2.5"- }+ "node_modules/isexe": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",+ "dev": true,+ "license": "ISC"},- "node_modules/js-yaml": {+ "node_modules/istanbul-lib-coverage": {+ "version": "3.2.2",+ "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz",+ "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/istanbul-lib-report": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz",+ "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==",+ "dev": true,+ "license": "BSD-3-Clause",+ "dependencies": {+ "istanbul-lib-coverage": "^3.0.0",+ "make-dir": "^4.0.0",+ "supports-color": "^7.1.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/istanbul-lib-source-maps": {+ "version": "5.0.6",+ "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-5.0.6.tgz",+ "integrity": "sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A==",+ "dev": true,+ "license": "BSD-3-Clause",+ "dependencies": {+ "@jridgewell/trace-mapping": "^0.3.23",+ "debug": "^4.1.1",+ "istanbul-lib-coverage": "^3.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/istanbul-lib-source-maps/node_modules/debug": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/istanbul-lib-source-maps/node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/istanbul-reports": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz",+ "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==",+ "dev": true,+ "license": "BSD-3-Clause",+ "dependencies": {+ "html-escaper": "^2.0.0",+ "istanbul-lib-report": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/jackspeak": {+ "version": "3.4.3",+ "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz",+ "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "@isaacs/cliui": "^8.0.2"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ },+ "optionalDependencies": {+ "@pkgjs/parseargs": "^0.11.0"+ }+ },+ "node_modules/js-git": {+ "version": "0.7.8",+ "resolved": "https://registry.npmjs.org/js-git/-/js-git-0.7.8.tgz",+ "integrity": "sha512-+E5ZH/HeRnoc/LW0AmAyhU+mNcWBzAKE+30+IDMLSLbbK+Tdt02AdkOKq9u15rlJsDEGFqtgckc8ZM59LhhiUA==",+ "license": "MIT",+ "dependencies": {+ "bodec": "^0.1.0",+ "culvert": "^0.1.2",+ "git-sha1": "^0.1.2",+ "pako": "^0.2.5"+ }+ },+ "node_modules/js-yaml": {"version": "4.1.1","resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz","integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",@@ -2693,6 +3191,34 @@"@jridgewell/sourcemap-codec": "^1.5.5"}},+ "node_modules/magicast": {+ "version": "0.3.5",+ "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.3.5.tgz",+ "integrity": "sha512-L0WhttDl+2BOsybvEOLK7fW3UA0OQ0IQ2d6Zl2x/a6vVRs3bAY0ECOSHHeL5jD+SbOpOCUEi0y1DgHEn9Qn1AQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.25.4",+ "@babel/types": "^7.25.4",+ "source-map-js": "^1.2.0"+ }+ },+ "node_modules/make-dir": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz",+ "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "semver": "^7.5.3"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/math-intrinsics": {"version": "1.1.0","resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",@@ -2762,6 +3288,32 @@"node": ">= 0.6"}},+ "node_modules/minimatch": {+ "version": "9.0.5",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",+ "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^2.0.1"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/minipass": {+ "version": "7.1.2",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz",+ "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=16 || 14 >=14.17"+ }+ },"node_modules/mkdirp": {"version": "1.0.4","resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",@@ -2987,6 +3539,13 @@"node": ">= 14"}},+ "node_modules/package-json-from-dist": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",+ "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==",+ "dev": true,+ "license": "BlueOak-1.0.0"+ },"node_modules/pako": {"version": "0.2.9","resolved": "https://registry.npmjs.org/pako/-/pako-0.2.9.tgz",@@ -3002,12 +3561,46 @@"node": ">= 0.8"}},+ "node_modules/path-key": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },"node_modules/path-parse": {"version": "1.0.7","resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz","integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==","license": "MIT"},+ "node_modules/path-scurry": {+ "version": "1.11.1",+ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz",+ "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "lru-cache": "^10.2.0",+ "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"+ },+ "engines": {+ "node": ">=16 || 14 >=14.18"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/path-scurry/node_modules/lru-cache": {+ "version": "10.4.3",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",+ "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",+ "dev": true,+ "license": "ISC"+ },"node_modules/path-to-regexp": {"version": "0.1.12","resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz",@@ -3501,9 +4094,9 @@}},"node_modules/rollup": {- "version": "4.54.0",- "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.54.0.tgz",- "integrity": "sha512-3nk8Y3a9Ea8szgKhinMlGMhGMw89mqule3KWczxhIzqudyHdCIOHw8WJlj/r329fACjKLEh13ZSk7oE22kyeIw==",+ "version": "4.55.1",+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.55.1.tgz",+ "integrity": "sha512-wDv/Ht1BNHB4upNbK74s9usvl7hObDnvVzknxqY/E/O3X6rW1U1rV1aENEfJ54eFZDTNo7zv1f5N4edCluH7+A==","dev": true,"license": "MIT","dependencies": {@@ -3517,28 +4110,31 @@"npm": ">=8.0.0"},"optionalDependencies": {- "@rollup/rollup-android-arm-eabi": "4.54.0",- "@rollup/rollup-android-arm64": "4.54.0",- "@rollup/rollup-darwin-arm64": "4.54.0",- "@rollup/rollup-darwin-x64": "4.54.0",- "@rollup/rollup-freebsd-arm64": "4.54.0",- "@rollup/rollup-freebsd-x64": "4.54.0",- "@rollup/rollup-linux-arm-gnueabihf": "4.54.0",- "@rollup/rollup-linux-arm-musleabihf": "4.54.0",- "@rollup/rollup-linux-arm64-gnu": "4.54.0",- "@rollup/rollup-linux-arm64-musl": "4.54.0",- "@rollup/rollup-linux-loong64-gnu": "4.54.0",- "@rollup/rollup-linux-ppc64-gnu": "4.54.0",- "@rollup/rollup-linux-riscv64-gnu": "4.54.0",- "@rollup/rollup-linux-riscv64-musl": "4.54.0",- "@rollup/rollup-linux-s390x-gnu": "4.54.0",- "@rollup/rollup-linux-x64-gnu": "4.54.0",- "@rollup/rollup-linux-x64-musl": "4.54.0",- "@rollup/rollup-openharmony-arm64": "4.54.0",- "@rollup/rollup-win32-arm64-msvc": "4.54.0",- "@rollup/rollup-win32-ia32-msvc": "4.54.0",- "@rollup/rollup-win32-x64-gnu": "4.54.0",- "@rollup/rollup-win32-x64-msvc": "4.54.0",+ "@rollup/rollup-android-arm-eabi": "4.55.1",+ "@rollup/rollup-android-arm64": "4.55.1",+ "@rollup/rollup-darwin-arm64": "4.55.1",+ "@rollup/rollup-darwin-x64": "4.55.1",+ "@rollup/rollup-freebsd-arm64": "4.55.1",+ "@rollup/rollup-freebsd-x64": "4.55.1",+ "@rollup/rollup-linux-arm-gnueabihf": "4.55.1",+ "@rollup/rollup-linux-arm-musleabihf": "4.55.1",+ "@rollup/rollup-linux-arm64-gnu": "4.55.1",+ "@rollup/rollup-linux-arm64-musl": "4.55.1",+ "@rollup/rollup-linux-loong64-gnu": "4.55.1",+ "@rollup/rollup-linux-loong64-musl": "4.55.1",+ "@rollup/rollup-linux-ppc64-gnu": "4.55.1",+ "@rollup/rollup-linux-ppc64-musl": "4.55.1",+ "@rollup/rollup-linux-riscv64-gnu": "4.55.1",+ "@rollup/rollup-linux-riscv64-musl": "4.55.1",+ "@rollup/rollup-linux-s390x-gnu": "4.55.1",+ "@rollup/rollup-linux-x64-gnu": "4.55.1",+ "@rollup/rollup-linux-x64-musl": "4.55.1",+ "@rollup/rollup-openbsd-x64": "4.55.1",+ "@rollup/rollup-openharmony-arm64": "4.55.1",+ "@rollup/rollup-win32-arm64-msvc": "4.55.1",+ "@rollup/rollup-win32-ia32-msvc": "4.55.1",+ "@rollup/rollup-win32-x64-gnu": "4.55.1",+ "@rollup/rollup-win32-x64-msvc": "4.55.1","fsevents": "~2.3.2"}},@@ -3657,6 +4253,29 @@"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==","license": "ISC"},+ "node_modules/shebang-command": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "shebang-regex": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/shebang-regex": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },"node_modules/shimmer": {"version": "1.2.1","resolved": "https://registry.npmjs.org/shimmer/-/shimmer-1.2.1.tgz",@@ -4036,6 +4655,110 @@"dev": true,"license": "MIT"},+ "node_modules/string-width": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz",+ "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "eastasianwidth": "^0.2.0",+ "emoji-regex": "^9.2.2",+ "strip-ansi": "^7.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/string-width-cjs": {+ "name": "string-width",+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/string-width-cjs/node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/string-width-cjs/node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/string-width-cjs/node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/strip-ansi": {+ "version": "7.1.2",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz",+ "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^6.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"+ }+ },+ "node_modules/strip-ansi-cjs": {+ "name": "strip-ansi",+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/strip-ansi-cjs/node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },"node_modules/superagent": {"version": "10.2.3","resolved": "https://registry.npmjs.org/superagent/-/superagent-10.2.3.tgz",@@ -4160,6 +4883,21 @@"url": "https://www.buymeacoffee.com/systeminfo"}},+ "node_modules/test-exclude": {+ "version": "7.0.1",+ "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-7.0.1.tgz",+ "integrity": "sha512-pFYqmTw68LXVjeWJMST4+borgQP2AyMNbg1BpZh9LbyhUeNkeaPF9gzfPGUAnSMV3qPYdWUwDIjjCLiSDOl7vg==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "@istanbuljs/schema": "^0.1.2",+ "glob": "^10.4.1",+ "minimatch": "^9.0.4"+ },+ "engines": {+ "node": ">=18"+ }+ },"node_modules/tinybench": {"version": "2.9.0","resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz",@@ -4324,7 +5062,6 @@"integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"esbuild": "^0.21.3","postcss": "^8.4.43",@@ -4380,9 +5117,9 @@}},"node_modules/vite-node": {- "version": "2.1.9",- "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-2.1.9.tgz",- "integrity": "sha512-AM9aQ/IPrW/6ENLQg3AGY4K1N2TGZdR5e4gu/MmmR2xR3Ll1+dib+nook92g4TV3PXVyeyxdWwtaCAiUL0hMxA==",+ "version": "2.1.8",+ "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-2.1.8.tgz",+ "integrity": "sha512-uPAwSr57kYjAUux+8E2j0q0Fxpn8M9VoyfGiRI8Kfktz9NcYMCenwY5RnZxnF1WTu3TGiYipirIzacLL3VVGFg==","dev": true,"license": "MIT","dependencies": {@@ -4428,19 +5165,19 @@"license": "MIT"},"node_modules/vitest": {- "version": "2.1.9",- "resolved": "https://registry.npmjs.org/vitest/-/vitest-2.1.9.tgz",- "integrity": "sha512-MSmPM9REYqDGBI8439mA4mWhV5sKmDlBKWIYbA3lRb2PTHACE0mgKwA8yQ2xq9vxDTuk4iPrECBAEW2aoFXY0Q==",+ "version": "2.1.8",+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-2.1.8.tgz",+ "integrity": "sha512-1vBKTZskHw/aosXqQUlVWWlGUxSJR8YtiyZDJAFeW2kPAeX6S3Sool0mjspO+kXLuxVWlEDDowBAeqeAQefqLQ==","dev": true,"license": "MIT","dependencies": {- "@vitest/expect": "2.1.9",- "@vitest/mocker": "2.1.9",- "@vitest/pretty-format": "^2.1.9",- "@vitest/runner": "2.1.9",- "@vitest/snapshot": "2.1.9",- "@vitest/spy": "2.1.9",- "@vitest/utils": "2.1.9",+ "@vitest/expect": "2.1.8",+ "@vitest/mocker": "2.1.8",+ "@vitest/pretty-format": "^2.1.8",+ "@vitest/runner": "2.1.8",+ "@vitest/snapshot": "2.1.8",+ "@vitest/spy": "2.1.8",+ "@vitest/utils": "2.1.8","chai": "^5.1.2","debug": "^4.3.7","expect-type": "^1.1.0",@@ -4452,7 +5189,7 @@"tinypool": "^1.0.1","tinyrainbow": "^1.2.0","vite": "^5.0.0",- "vite-node": "2.1.9",+ "vite-node": "2.1.8","why-is-node-running": "^2.3.0"},"bin": {@@ -4467,8 +5204,8 @@"peerDependencies": {"@edge-runtime/vm": "*","@types/node": "^18.0.0 || >=20.0.0",- "@vitest/browser": "2.1.9",- "@vitest/ui": "2.1.9",+ "@vitest/browser": "2.1.8",+ "@vitest/ui": "2.1.8","happy-dom": "*","jsdom": "*"},@@ -4542,6 +5279,22 @@"lodash": "^4.17.14"}},+ "node_modules/which": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "isexe": "^2.0.0"+ },+ "bin": {+ "node-which": "bin/node-which"+ },+ "engines": {+ "node": ">= 8"+ }+ },"node_modules/why-is-node-running": {"version": "2.3.0","resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz",@@ -4559,6 +5312,101 @@"node": ">=8"}},+ "node_modules/wrap-ansi": {+ "version": "8.1.0",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz",+ "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^6.1.0",+ "string-width": "^5.0.1",+ "strip-ansi": "^7.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "node_modules/wrap-ansi-cjs": {+ "name": "wrap-ansi",+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^4.0.0",+ "string-width": "^4.1.0",+ "strip-ansi": "^6.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/wrap-ansi-cjs/node_modules/string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/wrap-ansi/node_modules/ansi-styles": {+ "version": "6.2.3",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },"node_modules/wrappy": {"version": "1.0.2","resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",diff --git a/server/package.json b/server/package.jsonindex 73f051d017..9403e91a59 100644--- a/server/package.json+++ b/server/package.json@@ -7,7 +7,8 @@"dev": "node --watch index.js","start": "node index.js","test": "vitest run",- "test:watch": "vitest"+ "test:watch": "vitest",+ "test:coverage": "vitest run --coverage"},"dependencies": {"cors": "^2.8.5",@@ -19,6 +20,7 @@"zod": "^3.24.1"},"devDependencies": {+ "@vitest/coverage-v8": "^2.1.8","supertest": "^7.1.4","vitest": "^2.1.8"}diff --git a/server/vitest.config.js b/server/vitest.config.jsnew file mode 100644index 0000000000..c9f2740041--- /dev/null+++ b/server/vitest.config.js@@ -0,0 +1,24 @@+import { defineConfig } from 'vitest/config';++export default defineConfig({+ test: {+ coverage: {+ provider: 'v8',+ reporter: ['text', 'text-summary', 'html'],+ reportsDirectory: './coverage',+ include: ['lib/**/*.js', 'routes/**/*.js', 'services/**/*.js'],+ exclude: [+ '**/*.test.js',+ '**/index.js',+ '**/cos-runner/**'+ ],+ thresholds: {+ lines: 30,+ functions: 30,+ branches: 30,+ statements: 30+ }+ },+ globals: true+ }+});