docs: comprehensive v5.1.2 documentation update
This commit brings all documentation up to date with the current v5.1.2 codebase, addressing 12+ critical discrepancies and adding 2 major new documentation files. ## Files Modified (18 documentation files): ### Root Documentation: - README.md: Updated version badge (4.3.1 → 5.1.2), tool count (7 → 9), added viewer UI and theme toggle features, updated "What's New" section - CHANGELOG.md: Added 8 missing releases (v4.3.2 through v5.1.2) with comprehensive release notes - CLAUDE.md: Removed hardcoded personal paths, documented all 14 worker endpoints (was 8), added Chroma integration overview, updated v5.x releases ### Mintlify Documentation (docs/): - introduction.mdx: Updated search tool count to 9, added viewer UI and theme toggle to features - configuration.mdx: Added smart-install.js documentation, clarified data directory locations, added CLAUDE_CODE_PATH env var, explained observations vs sessions, updated hook configuration examples - development.mdx: Added comprehensive viewer UI development section (103 lines), updated build output filenames (search-server.mjs) - usage/search-tools.mdx: Added get_context_timeline and get_timeline_by_query documentation with examples, updated tool count to 9 - architecture/overview.mdx: Updated to 7 hook files, 9 search tools, added Chroma to tech stack, enhanced component details with viewer UI - architecture/hooks.mdx: Added smart-install.js and user-message-hook.js documentation, updated hook count to 7 - architecture/worker-service.mdx: Documented all 14 endpoints organized by category (Viewer & Health, Data Retrieval, Settings, Session Management) - architecture/mcp-search.mdx: Added timeline tools documentation, updated tool count to 9, fixed filename references (search-server.mjs) - architecture-evolution.mdx: Added complete v5.x release history (v5.0.0 through v5.1.2), updated title to "v3 to v5" - hooks-architecture.mdx: Updated to "Seven Hook Scripts", added smart-install and user-message-hook documentation - troubleshooting.mdx: Added v5.x specific issues section (viewer, theme toggle, SSE, Chroma, PM2 Windows fix) ### New Documentation Files: - docs/VIEWER.md: Complete 400+ line guide to web viewer UI including architecture, features, usage, development, API integration, performance considerations - docs/CHROMA.md: Complete 450+ line guide to vector database integration including hybrid search architecture, semantic search explanation, performance benchmarks, installation, configuration, troubleshooting ## Key Corrections Made: 1. ✅ Updated version badges and references: 4.3.1 → 5.1.2 2. ✅ Corrected search tool count: 7 → 9 (added get_context_timeline, get_timeline_by_query) 3. ✅ Fixed MCP server filename: search-server.js → search-server.mjs 4. ✅ Updated hook count: 5 → 7 (added smart-install.js, user-message-hook.js) 5. ✅ Documented all 14 worker endpoints (was 8, incorrectly claimed 6 were missing) 6. ✅ Removed hardcoded personal file paths 7. ✅ Added Chroma vector database documentation 8. ✅ Added viewer UI comprehensive documentation 9. ✅ Updated CHANGELOG with all missing v4.3.2-v5.1.2 releases 10. ✅ Clarified data directory locations (production vs development) 11. ✅ Added smart-install.js caching system documentation 12. ✅ Updated SessionStart hook configuration examples ## Documentation Statistics: - Total files modified: 18 - New files created: 2 - Lines added: ~2,000+ - Version mismatches fixed: 2 critical - Missing features documented: 5+ major - Missing tools documented: 2 MCP tools - Missing endpoints documented: 6 API endpoints ## Impact: Documentation now accurately reflects the current v5.1.2 codebase with: - Complete viewer UI documentation (v5.1.0) - Theme toggle feature (v5.1.2) - Hybrid search architecture with Chroma (v5.0.0) - Smart install caching (v5.0.3) - All 7 hook scripts documented - All 9 MCP search tools documented - All 14 worker service endpoints documented - Comprehensive troubleshooting for v5.x issues 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
+188
@@ -8,6 +8,194 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
## [Unreleased]
|
||||
|
||||
|
||||
## [5.1.2] - 2025-11-06
|
||||
|
||||
### Added
|
||||
- **Theme Toggle**: Light/dark mode support in viewer UI
|
||||
- User-selectable theme with persistent settings
|
||||
- Automatic system preference detection
|
||||
- Smooth transitions between themes
|
||||
- Updated viewer UI with theme toggle controls in header
|
||||
|
||||
### Changed
|
||||
- Version bumped from 5.1.1 to 5.1.2 across all metadata files
|
||||
- Rebuilt all plugin scripts with theme functionality
|
||||
|
||||
|
||||
## [5.1.1] - 2025-11-06
|
||||
|
||||
### Fixed
|
||||
- **PM2 ENOENT error on Windows**: Fixed PM2 process spawning by using full path to PM2 binary
|
||||
- Improved cross-platform compatibility for PM2 process management
|
||||
- Updated scripts/smart-install.js to use full PM2 binary path
|
||||
|
||||
|
||||
## [5.1.0] - 2025-11-05
|
||||
|
||||
### Added
|
||||
- **Web-Based Viewer UI**: Production-ready viewer accessible at http://localhost:37777
|
||||
- Real-time visualization via Server-Sent Events (SSE)
|
||||
- Infinite scroll pagination with automatic deduplication
|
||||
- Project filtering to focus on specific codebases
|
||||
- Settings persistence (sidebar state, selected project)
|
||||
- Auto-reconnection with exponential backoff
|
||||
- GPU-accelerated animations for smooth interactions
|
||||
- **New Worker Endpoints** (8 HTTP/SSE routes, +500 lines):
|
||||
- `/api/prompts` - Paginated user prompts with project filtering
|
||||
- `/api/observations` - Paginated observations with project filtering
|
||||
- `/api/summaries` - Paginated session summaries with project filtering
|
||||
- `/api/stats` - Database statistics (total counts by project)
|
||||
- `/api/projects` - List of unique project names
|
||||
- `/stream` - Server-Sent Events for real-time updates
|
||||
- `/` - Serves viewer HTML
|
||||
- **Database Enhancements** (+98 lines in SessionStore):
|
||||
- `getRecentPrompts()` - Paginated prompts with OFFSET/LIMIT
|
||||
- `getRecentObservations()` - Paginated observations with OFFSET/LIMIT
|
||||
- `getRecentSummaries()` - Paginated summaries with OFFSET/LIMIT
|
||||
- `getStats()` - Aggregated statistics by project
|
||||
- `getUniqueProjects()` - Distinct project names
|
||||
- **Complete React UI** (17 new files, 1,500+ lines):
|
||||
- Components: Header, Sidebar, Feed, Cards (Observation, Prompt, Summary, Skeleton)
|
||||
- Hooks: useSSE, usePagination, useSettings, useStats
|
||||
- Utils: Data merging, formatters, constants
|
||||
- Assets: Monaspace Radon font, logos (dark mode + logomark)
|
||||
- Build: esbuild pipeline for self-contained HTML bundle
|
||||
|
||||
|
||||
## [5.0.3] - 2025-11-05
|
||||
|
||||
### Added
|
||||
- **Smart Install Caching**: Eliminated redundant npm install on every SessionStart (2-5s → 10ms)
|
||||
- Caches version state in `.install-version` file
|
||||
- Only runs npm install when actually needed (first time, version change, missing deps)
|
||||
- 200x faster SessionStart for cached installations
|
||||
- Dynamic Python version detection in Windows error messages
|
||||
- Comprehensive Windows troubleshooting guidance
|
||||
|
||||
### Fixed
|
||||
- Fixed Windows installation issues with smart caching installer
|
||||
|
||||
### Changed
|
||||
- Enhanced rsync to respect gitignore rules
|
||||
- Better PM2 worker startup verification
|
||||
- Cross-platform compatible (pure Node.js)
|
||||
|
||||
### Technical Details
|
||||
- New: scripts/smart-install.js (smart caching installer)
|
||||
- Modified: plugin/hooks/hooks.json (use smart-install.js instead of inline npm install)
|
||||
- Modified: package.json (enhanced sync-marketplace script)
|
||||
|
||||
|
||||
## [5.0.2] - 2025-11-05
|
||||
|
||||
### Fixed
|
||||
- **Worker startup reliability**: Fixed async health checks with proper error handling
|
||||
- Added isWorkerHealthy() and waitForWorkerHealth() functions to src/shared/worker-utils.ts
|
||||
- Worker now verifies health before proceeding with hook operations
|
||||
- Improved handling of PM2 failures when not yet installed
|
||||
|
||||
### Changed
|
||||
- Changed ensureWorkerRunning() from synchronous to async with proper await
|
||||
- All hooks now await ensureWorkerRunning for reliable worker communication
|
||||
- Rebuilt all plugin executables with version 5.0.2
|
||||
|
||||
|
||||
## [5.0.1] - 2025-11-05
|
||||
|
||||
### Fixed
|
||||
- Fixed worker service stability issues
|
||||
- Enhanced worker process management and restart reliability
|
||||
- Improved session management and logging across all hooks
|
||||
- Better error handling throughout hook lifecycle
|
||||
|
||||
### Added
|
||||
- GitHub Actions workflows for automated code review
|
||||
|
||||
### Technical Details
|
||||
- Modified: src/services/worker-service.ts (stability improvements)
|
||||
- Modified: src/shared/worker-utils.ts (consistent formatting)
|
||||
- Modified: ecosystem.config.cjs (removed error/output redirection)
|
||||
- Modified: src/hooks/*-hook.ts (ensure worker running)
|
||||
- New: .github/workflows/claude-code-review.yml
|
||||
- New: .github/workflows/claude.yml
|
||||
|
||||
|
||||
## [5.0.0] - 2025-10-27
|
||||
|
||||
### BREAKING CHANGES
|
||||
- **Python dependency for optimal performance**: Semantic search requires Python for ChromaDB
|
||||
- **Search behavior prioritizes semantic relevance**: Chroma semantic search combined with SQLite temporal filtering
|
||||
- **Worker service now initializes ChromaSync on startup**: Automatic vector database synchronization
|
||||
|
||||
### Added
|
||||
- **Hybrid Search Architecture**: Combining ChromaDB semantic search with SQLite FTS5 keyword search
|
||||
- ChromaSync Service for automatic vector database synchronization (738 lines)
|
||||
- Vector embeddings for semantic similarity search
|
||||
- 90-day recency filtering for relevant results
|
||||
- Performance: Semantic search <200ms
|
||||
- **get_context_timeline** MCP tool: Get unified timeline of context around a specific point in time
|
||||
- Anchor by observation ID, session ID, or ISO timestamp
|
||||
- Configurable depth before/after anchor
|
||||
- **get_timeline_by_query** MCP tool: Search for observations and get timeline context around best match
|
||||
- Auto mode: Automatically use top search result as timeline anchor
|
||||
- Interactive mode: Show top N search results for manual anchor selection
|
||||
- **Enhanced MCP tools**: All 9 search tools now support hybrid semantic + keyword search
|
||||
|
||||
### Technical Details
|
||||
- New: src/services/sync/ChromaSync.ts (vector database sync)
|
||||
- Modified: src/servers/search-server.ts (+995 lines for hybrid search)
|
||||
- Modified: src/services/worker-service.ts (+136 lines for ChromaSync integration)
|
||||
- Modified: src/services/sqlite/SessionStore.ts (+276 lines for timeline queries)
|
||||
- Validation: 1,390 observations → 8,279 vector documents
|
||||
- Total MCP tools: 7 → 9 (added timeline tools)
|
||||
|
||||
|
||||
## [4.3.4] - 2025-10-26
|
||||
|
||||
### Fixed
|
||||
- **SessionStart hooks running on session resume**: Added matcher configuration to only run hooks on startup, clear, or compact events
|
||||
- Prevents unnecessary hook execution and improves performance
|
||||
|
||||
### Technical Details
|
||||
- Modified: plugin/hooks/hooks.json (added matcher configuration)
|
||||
|
||||
|
||||
## [4.3.3] - 2025-10-26
|
||||
|
||||
### Added
|
||||
- Made session display count configurable (DISPLAY_SESSION_COUNT = 8)
|
||||
- First-time setup detection with helpful user messaging
|
||||
- Improved UX: First install message clarifies Plugin Hook Error display
|
||||
|
||||
### Technical Details
|
||||
- Updated: src/hooks/context-hook.ts (configurable session count)
|
||||
- Updated: src/hooks/user-message-hook.ts (first-time setup detection)
|
||||
|
||||
|
||||
## [4.3.2] - 2025-10-26
|
||||
|
||||
### Added
|
||||
- **User-facing context display**: Added user-message-hook for displaying context to users via stderr
|
||||
- Hook fires simultaneously with context injection
|
||||
- Error messages don't get added to context, enabling user visibility
|
||||
- Temporary workaround until Claude Code adds ability to share messages with both user and context
|
||||
- **Comprehensive documentation** (4 new files, 2500+ lines total):
|
||||
- docs/architecture-evolution.mdx (801 lines)
|
||||
- docs/context-engineering.mdx (222 lines)
|
||||
- docs/hooks-architecture.mdx (784 lines)
|
||||
- docs/progressive-disclosure.mdx (655 lines)
|
||||
|
||||
### Fixed
|
||||
- Improved cross-platform path handling in context-hook
|
||||
|
||||
### Technical Details
|
||||
- New: src/hooks/user-message-hook.ts (stderr-based display mechanism)
|
||||
- New: plugin/scripts/user-message-hook.js (built executable)
|
||||
- Modified: plugin/hooks/hooks.json (hook configuration)
|
||||
- Modified: src/hooks/context-hook.ts (path handling)
|
||||
- Modified: scripts/build-hooks.js (build support)
|
||||
|
||||
|
||||
## [4.3.1] - 2025-10-26
|
||||
|
||||
### Fixed
|
||||
|
||||
Reference in New Issue
Block a user