- Added `test-browser-worker.html` to demonstrate threading with Web Workers in browser environments.
- Added `test-fallback.html` to verify fallback functionality when threading is unavailable.
- Created `THREADING.md` to document unified threading implementation, including Node.js Worker Threads, Web Workers, and fallback mechanisms.
- Updated Node.js version requirement in `README.md` and `package.json` to `>=24.0.0` for compatibility with improved Worker Threads API.
- Enhanced `workerUtils.ts` to implement threading with a worker pool for Node.js and added Web Worker execution logic for browsers.
- Enabled environment-aware threading availability in `environment.ts`.
- Updated `rollup.config.js` to include CLI configurations for streamlined builds.
- Adjusted `.gitignore` to exclude test artifacts and package files.
These changes provide comprehensive testing and documentation of threading functionality, improve cross-environment compatibility, and enhance developer workflows.
- Updated sample data in `demo/index.html` to focus on advanced AI, technology, and environmental topics.
- Added detailed personas with updated descriptors in tags and content.
- Enhanced posts to include nuanced and technical insights into AI, robotics, cybersecurity, and more.
- Removed hover text-decoration for `.result-title` for a cleaner UI experience.
- Adjusted highlighting styles for `.highlight` and `.similar-highlight` to eliminate visual clutter.
- Updated input placeholders and help text to reflect AI-related topics like machine learning, computer vision, and robotics.
- Refined hostname detection logic for compatibility with `demo.soulcraft.com`.
- Improved database initialization workflow with asynchronous operations for dropdown population and visualization updates.
These changes elevate demo content quality, refine visual clarity, and improve backend workflows for a robust user experience.
- Updated `importPath` in `demo/index.html` to reference `unified.min.js` instead of `unified.js` for GitHub Pages, CodeSoulcraft, and local development environments.
- Enhanced content and tag information across demo personas and posts to include additional context and perspective-laden descriptors.
- Introduced new details in demo content to highlight advanced concepts and practices related to privacy, sustainability, and accessibility.
These changes improve load performance in the demo environment and enrich demo content for a more comprehensive and compelling user experience.
- Created `scripts/check-code-style.js` to enforce coding standards.
- Includes ESLint, Prettier checks, and custom semicolon rule validation.
- Outputs actionable feedback for style violations.
- Updated `CONTRIBUTING.md` to document new code style workflows and commands.
- Added style commands to `package.json`:
- `lint`, `lint:fix`, `format`, `check-format`, and `check-style`.
- Refactored `demo/index.html` to use `Object.defineProperty` for better global property management and prevent conflicts.
These changes enhance the automation of code quality checks, streamline developer workflows, and improve reliability in global property handling for the demo.
- Added `demo/CNAME` with domain `demo.soulcraft.com` for the demo environment.
- Added `CNAME` with domain `code.soulcraft.com` for the main codebase.
These changes establish domain configurations for hosting and proper DNS resolution.
- Added batch embedding support with `defaultBatchEmbeddingFunction`, leveraging shared model instances for optimized performance.
- Integrated `isInitializing` flag to prevent recursive initialization and ensure smooth concurrent operation handling during `BrainyData` initialization.
- Pre-loaded Universal Sentence Encoder in `BrainyData` to prevent delays during embedding.
- Introduced fallback mechanisms in embedding initialization for better error resiliency and model reusability.
- Updated `addBatch` with support for batchSize and refactored text/vector processing logic for clearer separation and memory management.
- Improved GPU and CPU backend selection in Universal Sentence Encoder for compatibility across environments.
- Enhanced memory management by cleaning tensors after embedding operations.
- Updated README with instructions for batch embedding, threading updates, and GPU/CPU optimizations.