Skip to content

v1.3.0 - Professional Code Audit Fixes

Choose a tag to compare

@mkdelta221 mkdelta221 released this 27 Jan 21:57
· 85 commits to main since this release

Professional Code Audit

This release addresses findings from a comprehensive code audit.

Critical Fixes

  • Fixed npm security vulnerability (hono package)
  • Added React error boundary for dashboard crash handling
  • Set up Jest test infrastructure with 31 passing tests

High Priority Fixes

  • Fixed type safety in embeddings (replaced any with proper interface)
  • Fixed Three.js memory leaks in BrainMesh component
  • Fixed WebSocket dependency array to prevent reconnection loops
  • Added type-safe material casting in SynapseNodes
  • Added test, coverage, and audit npm scripts
  • Created .npmignore for cleaner npm package

Test Coverage

Tests now cover:

  • Memory type configurations
  • Deletion thresholds
  • Salience detection algorithms
  • Temporal decay calculations
  • Text similarity (Jaccard)
  • Content truncation

New npm Scripts

npm test              # Run tests
npm run test:watch    # Watch mode
npm run test:coverage # With coverage report
npm run audit:security # Security audit

Full Changelog: v1.2.1...v1.3.0