Skip to content

Commit ca0b82e

Browse files
committed
bug fix: terminal compatibility issues resolved
1 parent 36eb4f0 commit ca0b82e

16 files changed

+2646
-43
lines changed

.gitignore

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ coverage/
4848
test/
4949

5050
# Other
51-
.backup/
52-
reference/
53-
PLAN/
54-
PLAN/ANTHROPIC-REIMPLEMENTATION-PLAN.md
55-
PLAN/CLAUDE_AGENTS.md
56-
PLAN/CLAUDE_EXAMPLE_AGENT.md
57-
PLAN/CLAUDE_OVERVIEW.md
58-
.blackboxrules
51+
beautify_plan/
52+
mcpollinations-output/
53+
reference/

BIBBLE_GLAMOUR_ROADMAP.md

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -127,18 +127,18 @@ npm install \
127127
- [x] **Add** status logging system - ✅ Success/error/warning/info with timing!
128128
- [x] **Add** progress bar utilities - ✅ Single and multi-bar progress displays!
129129

130-
### **PHASE 5: Interactive Elements** 🎮
130+
### **PHASE 5: Interactive Elements** 🎮**COMPLETED!**
131131

132-
#### 5.1 Enhanced Prompts
133-
- [ ] **Create** `src/ui/prompts.ts` - Beautiful prompt system
134-
- [ ] **Style** user input prompts
135-
- [ ] **Add** confirmation dialogs
136-
- [ ] **Add** selection menus
132+
#### 5.1 Enhanced Prompts
133+
- [x] **Create** `src/ui/prompts.ts` - Beautiful prompt system with Pink Pixel theming!
134+
- [x] **Style** user input prompts - ✅ Gradient messages with themed prefixes!
135+
- [x] **Add** confirmation dialogs - ✅ Beautiful confirm/select/multi-select prompts!
136+
- [x] **Add** selection menus - ✅ Interactive menus with descriptions and styling!
137137

138-
#### 5.2 Help & Documentation
139-
- [ ] **Redesign** help system with beautiful formatting
140-
- [ ] **Add** command documentation with examples
141-
- [ ] **Add** interactive command explorer
138+
#### 5.2 Help & Documentation
139+
- [x] **Redesign** help system with beautiful formatting - ✅ Complete help system with markdown rendering!
140+
- [x] **Add** command documentation with examples - ✅ Comprehensive help with usage examples!
141+
- [x] **Add** interactive command explorer - ✅ Interactive help explorer with topic selection!
142142

143143
### **PHASE 6: Advanced Features** 🌟
144144

@@ -169,10 +169,10 @@ src/ui/
169169
├── symbols.ts # ✨ Beautiful unicode symbols
170170
├── splash.ts # 🚀 Startup banners & ASCII art
171171
├── spinners.ts # ⭕ Loading indicators
172-
├── progress.ts # 📊 Progress bars
173172
├── tables.ts # 📋 Beautiful table system
174173
├── lists.ts # 📝 Styled lists & menus
175-
├── prompts.ts # 💬 Interactive prompts
174+
├── prompts.ts # 💬 Interactive prompts ✅ NEW!
175+
├── help.ts # 🎭 Help & documentation system ✅ NEW!
176176
├── chat.ts # 💭 Enhanced chat interface
177177
├── markdown.ts # 📄 Rich markdown rendering
178178
├── layout.ts # 📐 Layout utilities
@@ -198,7 +198,7 @@ src/ui/
198198
╰─────────────────────────────────────────╯
199199
200200
🔥 Model: Claude 3.7 Sonnet ⚡ MCP: 5 servers connected
201-
💫 Version: 1.3.8 🚀 Ready for magic!
201+
💫 Version: 1.3.9 🚀 Ready for magic!
202202
```
203203

204204
### Chat Interface
@@ -248,6 +248,16 @@ src/ui/
248248

249249
## 🎉 MAJOR PROGRESS COMPLETED! (August 23, 2025)
250250

251+
### ✅ PHASE 5 COMPLETE - BEAUTIFUL INTERACTIVE ELEMENTS!
252+
15. **✅ Interactive prompts system created!** - Complete `prompts.ts` with Pink Pixel theming and gradient styling
253+
16. **✅ Beautiful confirmation dialogs implemented!** - Elegant confirm/select/multi-select prompts with descriptions
254+
17. **✅ Comprehensive help system built!** - Full `help.ts` with markdown rendering and interactive exploration
255+
18. **✅ Help command created!** - New `help.ts` command with topic-based exploration and examples
256+
19. **✅ Enhanced user interaction!** - All user prompts now use beautiful Pink Pixel styling
257+
20. **✅ Interactive help explorer!** - Users can navigate help topics with gorgeous menus and formatting
258+
21. **✅ Password and editor prompts!** - Secure input handling with masked characters and styled interfaces
259+
22. **✅ Progress and loading indicators!** - Beautiful progress bars and loading states for user feedback
260+
251261
### ✅ PHASE 4 COMPLETE - GORGEOUS DATA DISPLAY SYSTEM!
252262
6. **✅ Beautiful table system implemented!** - Complete `tables.ts` with auto-styling based on content
253263
7. **✅ Styled lists and menus created!** - Full `lists.ts` with multiple themes and interactive menus

CHANGELOG.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,68 @@
22

33
All notable changes to the Bibble project will be documented in this file.
44

5+
## [1.3.9] - 2025-08-28
6+
7+
### 🚀 MAJOR RELIABILITY UPDATE - CROSS-TERMINAL COMPATIBILITY
8+
9+
### Added
10+
- **🔧 Environment Resolver System**: Comprehensive cross-platform executable detection
11+
- Created `src/utils/env-resolver.ts` - Universal Node.js, npm, and npx path resolver
12+
- Cross-platform executable detection via `which`, `where`, and `Get-Command`
13+
- Fallback to common installation paths (Program Files, Homebrew, NVM, Volta, asdf, etc.)
14+
- Cached resolution for performance optimization
15+
- **🛡️ Multi-Tier Fallback System**: Robust MCP server connection strategies
16+
- **Primary Strategy**: Resolved executable paths with environment enhancement
17+
- **Direct Command Fallback**: Original command execution without path resolution
18+
- **Corepack Fallback**: Node.js-based package execution for npm compatibility
19+
- **Bundled npm Fallback**: Direct Node.js execution for simplified npx functionality
20+
- **🩺 Enhanced Diagnostic Command**: Comprehensive environment troubleshooting
21+
- Added `--verbose` flag to `bibble diagnose` for detailed system information
22+
- Platform detection (OS, shell, terminal identification)
23+
- Executable resolution with version checking
24+
- PATH entries analysis and environment variable inspection
25+
- Real-time npx execution testing in verbose mode
26+
- **🔄 Graceful Degradation**: Non-blocking MCP server failures
27+
- Connection summaries showing successful vs failed server connections
28+
- Fallback strategy notifications when primary connection fails
29+
- Continued operation even if some MCP servers fail to connect
30+
31+
### Fixed
32+
- **🎯 CRITICAL: Terminal Compatibility Issues**: Fixed MCP server failures across different terminals
33+
- Resolved "Connection closed" errors in Windows Terminal, Hyper, and other non-Warp terminals
34+
- Fixed environment variable and PATH discrepancies between terminal environments
35+
- Ensured consistent Node.js/npm/npx executable resolution across all terminals
36+
- **🔧 Environment Path Resolution**: Robust executable detection system
37+
- Fixed Windows-specific .cmd file execution issues
38+
- Enhanced PATH environment variable handling
39+
- Improved error messages with actionable troubleshooting suggestions
40+
- **⚡ MCP Server Reliability**: Enhanced connection stability
41+
- Multi-strategy connection attempts prevent single-point failures
42+
- Better error handling with user-friendly messages
43+
- Reference to diagnostic command for troubleshooting guidance
44+
45+
### Changed
46+
- **🔍 Diagnostic System**: Enhanced environment analysis capabilities
47+
- More detailed platform and executable information
48+
- Better error reporting with specific remediation suggestions
49+
- Verbose mode for comprehensive system analysis
50+
- **🛠️ Error Handling**: Improved user experience with actionable messages
51+
- Clear, descriptive error messages instead of technical stack traces
52+
- Specific suggestions for common issues (missing executables, permission errors)
53+
- Reference to diagnostic tools for self-service troubleshooting
54+
55+
### Technical Details
56+
- **Architecture**: New modular environment resolution system with comprehensive fallback strategies
57+
- **Cross-Platform**: Tested and verified compatibility across Windows, macOS, and Linux
58+
- **Performance**: Cached executable resolution for optimal startup performance
59+
- **Reliability**: Multi-tier fallback ensures maximum MCP server connectivity
60+
61+
### Impact
62+
- **Before**: Bibble only worked reliably in Warp terminal, failed with "Connection closed" errors in other terminals
63+
- **After**: Universal terminal compatibility - works consistently across Windows Terminal, Hyper, Command Prompt, PowerShell, and all major terminals
64+
65+
This update ensures Bibble works reliably across all terminal environments, eliminating the frustrating terminal-specific compatibility issues! 🎉
66+
567
## [1.3.8] - 2025-08-23
668

769
### 🎉 MAJOR VISUAL TRANSFORMATION - BIBBLE GLAMOUR UPDATE

OVERVIEW.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
Bibble is a sophisticated command-line interface (CLI) chatbot application that integrates with multiple language model providers and supports the Model Context Protocol (MCP) for enhanced functionality through external tools. Built with TypeScript, it provides a robust terminal-based AI assistant experience with comprehensive tool integration.
44

5-
**Version**: 1.3.8
5+
**Version**: 1.3.9
66
**Author**: Pink Pixel
77
**NPM Package**: @pinkpixel/bibble
8-
*Last updated: August 23, 2025*
8+
*Last updated: August 28, 2025*
99

1010
## Project Overview
1111

@@ -343,7 +343,7 @@ The implementation is based on the plan outlined in `PLAN/ANTHROPIC-REIMPLEMENTA
343343

344344
### Pink Pixel Glamour Transformation (v1.3.8) - August 23, 2025
345345

346-
Version 1.3.8 represents a **MAJOR VISUAL TRANSFORMATION** that converts Bibble from a basic CLI tool into a stunning, professional terminal experience with Pink Pixel brand theming:
346+
Version 1.3.8 represented a **MAJOR VISUAL TRANSFORMATION** that converted Bibble from a basic CLI tool into a stunning, professional terminal experience with Pink Pixel brand theming:
347347

348348
**🎨 Beautiful Theme System:**
349349
- **Centralized Theme Management** (`src/ui/theme.ts`): Complete Pink Pixel brand color palette integration

README.md

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,13 @@ bibble history
129129
- `bibble history export <id> <filename>` - Export chat history to a JSON file
130130
- `bibble history import <filename>` - Import chat history from a JSON file
131131

132+
### System commands
133+
134+
- `bibble setup` - Run the setup wizard
135+
- `bibble system-prompt` - View the system prompt with tools list
136+
- `bibble diagnose` - Diagnose environment and terminal compatibility
137+
- `bibble diagnose --verbose` - Show detailed diagnostic information
138+
132139
## In-chat commands
133140

134141
The following commands are available during a chat session:
@@ -159,6 +166,124 @@ To configure MCP servers, use:
159166
bibble config mcp-servers
160167
```
161168

169+
## Troubleshooting
170+
171+
### Environment Diagnostics
172+
173+
Bibble includes built-in diagnostic tools to help troubleshoot common issues:
174+
175+
```bash
176+
# Basic diagnostic information
177+
bibble diagnose
178+
179+
# Detailed system analysis
180+
bibble diagnose --verbose
181+
```
182+
183+
The diagnostic command will check:
184+
- Platform and terminal information
185+
- Node.js, npm, and npx executable paths and versions
186+
- Environment variables and PATH configuration
187+
- MCP server connectivity issues
188+
189+
### Common Issues
190+
191+
#### MCP Server Connection Failures
192+
193+
**Problem**: You see "Connection closed" errors when starting Bibble, especially in terminals other than Warp.
194+
195+
**Solution**:
196+
1. Run `bibble diagnose` to check your environment
197+
2. Ensure Node.js and npm are properly installed and accessible
198+
3. Check that your PATH includes Node.js and npm directories
199+
4. Try running from a different terminal (Command Prompt, PowerShell, or Git Bash on Windows)
200+
201+
**Symptoms**:
202+
```
203+
Failed to connect to MCP server "server-name": Connection closed
204+
```
205+
206+
**Advanced Troubleshooting**:
207+
- Run `bibble diagnose --verbose` for detailed information
208+
- Try running `node --version` and `npx --version` in your terminal
209+
- If using Windows, try running your terminal as Administrator
210+
- Check if antivirus software is blocking Node.js processes
211+
212+
#### Terminal Compatibility
213+
214+
**Problem**: Bibble works in one terminal but not others.
215+
216+
**Solution**: Bibble v1.3.9+ includes multi-tier fallback systems for cross-terminal compatibility:
217+
- **Primary Strategy**: Uses resolved executable paths
218+
- **Fallback Strategies**: Direct commands, corepack, and bundled npm approaches
219+
- **Graceful Degradation**: Continues working even if some servers fail
220+
221+
**Supported Terminals**:
222+
- ✅ Warp Terminal
223+
- ✅ Windows Terminal
224+
- ✅ Hyper
225+
- ✅ Command Prompt
226+
- ✅ PowerShell
227+
- ✅ Git Bash
228+
- ✅ Most Unix terminals
229+
230+
#### Node.js Installation Issues
231+
232+
**Problem**: Bibble can't find Node.js, npm, or npx.
233+
234+
**Solutions**:
235+
1. **Install Node.js**: Download from [nodejs.org](https://nodejs.org/)
236+
2. **Check Installation**:
237+
```bash
238+
node --version
239+
npm --version
240+
npx --version
241+
```
242+
3. **Path Issues**: Add Node.js to your PATH environment variable
243+
4. **NVM Users**: Make sure your Node.js version is activated
244+
5. **Windows Users**: Try reinstalling Node.js with "Add to PATH" option checked
245+
246+
#### API Key Issues
247+
248+
**Problem**: API key errors or authentication failures.
249+
250+
**Solutions**:
251+
1. Run the setup wizard: `bibble setup`
252+
2. Manually set API keys: `bibble config api-key`
253+
3. Check your API key is valid and has sufficient credits
254+
4. Verify the correct API endpoint is configured
255+
256+
#### Performance Issues
257+
258+
**Problem**: Slow startup or response times.
259+
260+
**Solutions**:
261+
1. Check your internet connection
262+
2. Try a different model or provider
263+
3. Reduce the number of enabled MCP servers
264+
4. Clear chat history if it's very large: `bibble history clear`
265+
266+
### Getting Help
267+
268+
If you're still experiencing issues:
269+
270+
1. **Run Diagnostics**: `bibble diagnose --verbose`
271+
2. **Check Logs**: Look for error messages in the terminal output
272+
3. **Update Bibble**: `npm install -g @pinkpixel/bibble@latest`
273+
4. **Check GitHub Issues**: Visit the [GitHub repository](https://github.com/pinkpixel-dev/bibble/issues)
274+
5. **Report Bugs**: Create a new issue with:
275+
- Your operating system and terminal
276+
- Output from `bibble diagnose --verbose`
277+
- Steps to reproduce the issue
278+
- Error messages or unexpected behavior
279+
280+
### Version Compatibility
281+
282+
- **Bibble 1.3.9+**: Universal terminal compatibility with multi-tier fallback
283+
- **Bibble 1.3.8**: Enhanced UI and visual improvements
284+
- **Bibble 1.3.0+**: Full MCP integration support
285+
- **Node.js 16+**: Required for all Bibble versions
286+
162287
## Development
163288

164289
### Project structure
-208 KB
Binary file not shown.

lollipops_and_rainbows.png

-123 KB
Binary file not shown.

0 commit comments

Comments
 (0)