Releases: ThirdKeyAI/symbiont-sdk-js
Releases · ThirdKeyAI/symbiont-sdk-js
v0.3.1
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
[0.3.1] - 2025-08-16
Added
Comprehensive Test Suite
- 940 test cases across 28 test files with 100% pass rate
- Complete test coverage for all core system components
- Authentication system tests (JWT, RBAC, security utilities)
- Configuration management tests (environment, auth, client config)
- Memory management tests (hierarchical memory, in-memory store)
- Security enhancement tests (crypto utils, input validation, secure logging)
- Vector operations tests (Qdrant integration, embeddings, search)
- HTTP endpoint management tests (metrics, middleware, lifecycle)
New Core Components
-
Authentication System
AuthManager.ts- Centralized authentication managementJWTHandler.ts- JWT token generation and validationRBACManager.ts- Role-based access controlSecurityUtils.ts- Timing-safe security operationsTokenValidator.ts- Token validation utilities
-
Configuration Management
AuthConfig.ts- Authentication configuration schemasClientConfig.ts- Client configuration managementDatabaseConfig.ts- Database connection configurationEnvManager.ts- Environment variable managementLoggingConfig.ts- Logging configurationVectorConfig.ts- Vector database configuration
-
Memory Management
HierarchicalMemory.ts- Multi-level memory storageInMemoryStore.ts- High-performance in-memory cachingMemoryManager.ts- Memory lifecycle managementMemoryStore.ts- Abstract memory store interface
-
Security Enhancements
CryptoUtils.ts- Cryptographic utilitiesInputValidator.ts- Input validation and sanitizationSecureLogger.ts- Security-aware loggingSecurityConfig.ts- Security configurationSecurityManager.ts- Centralized security management
-
Vector Operations
CollectionManager.ts- Qdrant collection lifecycleEmbeddingManager.ts- Embedding generation and managementQdrantManager.ts- Qdrant client managementSearchEngine.ts- Vector search operationsVectorOperations.ts- CRUD operations for vectors
-
HTTP Endpoint Management
EndpointMetrics.ts- Performance metrics collectionHttpEndpointManager.ts- HTTP endpoint lifecycle management
Type Definitions
http.ts- HTTP endpoint and metrics type definitionsmemory.ts- Memory management type definitionsvector.ts- Vector operations type definitions
Fixed
Critical Security Issues
- InputValidator: Fixed email validation to reject domains without dots and corrected SQL injection sanitization output format
- SecurityManager: Resolved nested sensitive data redaction in audit logs and fixed XSS validation regex state pollution through proper
lastIndexreset - SecureLogger: Fixed debug logging configuration, URL sanitization with double-encoding issues, hash regex pattern matching, empty user ID handling, and circular reference handling
- CollectionManager: Implemented error message nesting prevention with root error message extraction
Test Infrastructure Issues
- Resolved all 67 initial test failures across 12 test files
- Fixed mock configuration issues for Express and QdrantClient
- Resolved memory system circular reference issues
- Fixed configuration schema validation for OAuth, URL, and JWT schemas
- Corrected EnvManager number parsing for
tokenRefreshThreshold - Fixed HTTP EndpointMetrics RPM calculation issues
- Resolved HTTP EndpointManager authentication middleware integration
Changed
Test Coverage Improvements
- Achieved 67.8% statement coverage with comprehensive logic testing
- Achieved 86.98% branch coverage with excellent conditional path testing
- Achieved 81.15% function coverage with strong method-level testing
- Test execution time optimized to 6.69 seconds for entire suite
Development Infrastructure
- Enhanced test configuration with
test-config.js - Added debugging utilities with
debug-security.js - Updated project documentation with
update-plan.md
Performance
- Test Execution: 940 tests complete in 6.69 seconds
- Memory Management: Optimized hierarchical memory with TTL and size-based eviction
- Security Operations: Timing-safe operations implemented across authentication components
- Vector Operations: Batch processing optimized for large-scale embedding operations
Security
- Input Validation: Enhanced SQL injection and XSS protection
- Authentication: Secure JWT token lifecycle with proper refresh mechanisms
- Audit Logging: Comprehensive security event logging with sensitive data sanitization
- Cryptographic Operations: Secure key generation and management utilities
- Access Control: Role-based permission system with proper authorization checks