|
2 | 2 |
|
3 | 3 | All notable changes to the Bibble project will be documented in this file. |
4 | 4 |
|
| 5 | +## [1.4.0] - 2025-08-28 |
| 6 | + |
| 7 | +### 🎨 MAJOR UI ENHANCEMENT - ENHANCED TOOL CALLING DISPLAY |
| 8 | + |
| 9 | +### Added |
| 10 | +- **✨ Enhanced Tool Display System**: Revolutionary tool calling interface with Pink Pixel branding |
| 11 | + - Created `src/ui/tool-display.ts` - Comprehensive tool execution display system |
| 12 | + - Beautiful gradient headers with status badges (Running, Success, Error, Cancelled) |
| 13 | + - Boxed parameter sections with magenta borders and JSON syntax highlighting |
| 14 | + - Boxed result sections with cyan borders and intelligent content formatting |
| 15 | + - Dynamic status updates with timing information (start time, duration) |
| 16 | + - Support for progress indicators using Ora spinners during tool execution |
| 17 | +- **🎯 Smart Content Formatting**: Intelligent detection and display of different data types |
| 18 | + - **Arrays of objects** → Beautiful tables with proper column headers and data truncation |
| 19 | + - **Simple arrays** → Clean numbered lists with item formatting |
| 20 | + - **JSON objects** → Syntax-highlighted key-value displays with colored brackets |
| 21 | + - **URLs** → Clickable links with terminal-link integration where supported |
| 22 | + - **File paths** → Green highlighting for easy identification |
| 23 | + - **Text content** → Smart line wrapping and proper indentation |
| 24 | +- **🖼️ Interactive Features**: Clipboard integration and keyboard shortcuts |
| 25 | + - Copy tool results to clipboard with `c` key using clipboardy |
| 26 | + - Expand/collapse JSON sections with `space` key |
| 27 | + - Quit detailed view with `q` key |
| 28 | + - Interactive hints footer with keyboard shortcut guidance |
| 29 | +- **🎨 Pink Pixel Brand Integration**: Consistent theming throughout tool displays |
| 30 | + - Gradient "Tool Call" banners with fire gradient effect |
| 31 | + - Color-coded status badges (cyan for running, green for success, red for errors) |
| 32 | + - Pink pixel branded icons and symbols throughout the interface |
| 33 | + - Beautiful gradient separators between tool calls |
| 34 | +- **📊 Enhanced JSON Handling**: Professional JSON display with syntax highlighting |
| 35 | + - Integration with `cli-highlight` for beautiful JSON syntax coloring |
| 36 | + - `json-stringify-pretty-compact` for optimal JSON formatting |
| 37 | + - Type-based coloring: strings in green, numbers in cyan, booleans in orange |
| 38 | + - Proper bracket and indentation highlighting |
| 39 | +- **🔧 Backward Compatibility**: Feature flag system for smooth adoption |
| 40 | + - `BIBBLE_ENHANCED_TOOLS` environment variable for easy toggle |
| 41 | + - Legacy display system preserved as `displayToolCallLegacy` |
| 42 | + - Graceful fallback on any errors to maintain stability |
| 43 | + |
| 44 | +### Fixed |
| 45 | +- **🔧 CRITICAL: Duplicate Tool Display**: Eliminated double tool call rendering |
| 46 | + - Fixed Agent stream processing to prevent tool marker emission when enhanced display is active |
| 47 | + - Resolved duplicate display issue where both enhanced and legacy systems were triggering |
| 48 | + - Ensured single, beautiful tool display per execution |
| 49 | +- **🔧 CRITICAL: Object Serialization**: Fixed "[object Object]" display issues |
| 50 | + - Ensured tool result content is properly stringified before display processing |
| 51 | + - Fixed JSON parsing and formatting pipeline for consistent data handling |
| 52 | + - Resolved object-to-string conversion issues in tool result rendering |
| 53 | +- **🔧 CRITICAL: MCP Tools System Prompt**: Fixed empty tools list in system prompt |
| 54 | + - Resolved critical bug where tools list was generated before MCP servers were loaded |
| 55 | + - Fixed Agent constructor to defer system prompt generation until after tool loading |
| 56 | + - Updated Agent.initialize() to properly update system prompt with complete tools list |
| 57 | + - Enhanced `system-prompt` command to show actual loaded tools and descriptions |
| 58 | +- **🔧 Tool Discovery**: Models now properly recognize available MCP tools |
| 59 | + - Fixed Context7 documentation tools visibility in system prompt |
| 60 | + - Ensured all 51 MCP tools are properly described and accessible to the model |
| 61 | + - Restored proper tool selection behavior for documentation searches and other tasks |
| 62 | + |
| 63 | +### Changed |
| 64 | +- **🎨 Tool Display Architecture**: Complete overhaul of tool result rendering |
| 65 | + - Replaced basic console.log output with sophisticated boxed display system |
| 66 | + - Enhanced visual hierarchy with clear input/output separation |
| 67 | + - Improved readability with proper spacing, borders, and color coding |
| 68 | +- **📈 Dependencies**: Added essential UI enhancement packages |
| 69 | + - `cli-highlight` for JSON syntax highlighting |
| 70 | + - `clipboardy` for clipboard integration |
| 71 | + - `json-stringify-pretty-compact` for optimal JSON formatting |
| 72 | + |
| 73 | +### Technical Details |
| 74 | +- **Architecture**: New modular tool display system with extensible formatting options |
| 75 | +- **Performance**: Optimized rendering with efficient content detection and formatting |
| 76 | +- **Reliability**: Comprehensive error handling with graceful degradation |
| 77 | +- **Compatibility**: Works across all terminal environments with proper feature detection |
| 78 | + |
| 79 | +### Visual Impact |
| 80 | +- **Before**: Basic text output with minimal formatting and duplicate displays |
| 81 | +- **After**: Professional, branded tool interface with boxed sections, syntax highlighting, status badges, and interactive features |
| 82 | + |
| 83 | +### New Environment Variables |
| 84 | +- `BIBBLE_ENHANCED_TOOLS=true` (default) - Enable enhanced tool display |
| 85 | +- `BIBBLE_ENHANCED_TOOLS=false` - Use legacy tool display for compatibility |
| 86 | + |
| 87 | +This release transforms Bibble's tool calling interface from basic text output into a **professional, interactive, and beautifully designed system** that showcases tool execution results with Pink Pixel's signature style! ✨ |
| 88 | + |
5 | 89 | ## [1.3.10] - 2025-08-28 |
6 | 90 |
|
7 | 91 | ### 🚀 MAJOR RELIABILITY UPDATE - CROSS-TERMINAL COMPATIBILITY |
|
0 commit comments