Commit graph

2 commits

Author SHA1 Message Date
7fb34a0b1d feat: Add web UI mode to brainy chat CLI
- Added --ui flag for terminal vs web coordination interface
- Integrated Brain Cloud coordination server support
- Enhanced CLI with authentication checks for premium features
- Updated cortex legacy handler for better error handling
- Improved default augmentations configuration
- Version bump to support new features
2025-08-12 18:19:38 -07:00
93804be354 feat: add universal adapters for browser compatibility
- Create universal adapters for cross-platform support (browser/Node/serverless)
- Replace Node.js-specific imports with universal implementations
- Add OPFS support for browser persistent storage
- Maintain same BrainyData interface across all environments
- Enable real Brainy usage in browser console UI
- Keep package size optimized (no bloat)

Universal adapters in /src/universal/:
- uuid.ts: Cross-platform UUID generation
- crypto.ts: Browser/Node crypto operations
- fs.ts: OPFS/FileSystem/Memory storage adapter
- path.ts: Universal path operations
- events.ts: EventEmitter compatibility layer

This enables 'write once, run anywhere' for Brainy while maintaining
the exact same API. No breaking changes to existing code.
2025-08-08 15:22:38 -07:00