Commit graph

5 commits

Author SHA1 Message Date
Peter Steinberger
881880d533 🧪 Add comprehensive window capture tests & fix fallback messages
Added automated tests to verify window capture functionality:
- Window bounds capture verification (checks -R flag usage)
- Window vs fullscreen size comparison
- Multi-window bounds capture testing
- Fallback message format verification
- Window capture with AI analysis

Also fixed fallback message to use Peekaboo prefix when falling back
to fullscreen capture due to inability to get window bounds.

Test additions:
- New "window" test mode for focused testing
- Added to quick and all test suites
- Comprehensive coverage of window capture edge cases

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-22 21:47:54 +02:00
Peter Steinberger
0b37ec090d 🚀 Peekaboo v1.0 - Smart Multi-Window AI & Enhanced CLI
Major improvements:
• 🪟 Smart Multi-Window AI: Automatically analyzes ALL windows when app has multiple
•  Timeout Protection: 90-second timeout prevents hanging on slow AI models
• 🎯 Clean CLI Design: Consistent flags (-o, -f, -w, -m, -a, -q, -v) with logical defaults
• 📝 All Messages Prefixed: "Peekaboo 👀:" for clear AI tool integration
• 🔄 Auto-Detection: Enables multi-window mode automatically for AI analysis
• 🎛️ Override Control: Use -w flag to force single window analysis

Technical changes:
- Changed version to 1.0.0 (initial release)
- Added formatMultiWindowAnalysis for consolidated AI results
- Improved error messages with proper context
- Enhanced test suite with multi-window AI tests
- Updated README with comprehensive documentation

This release provides a production-ready screenshot tool with intelligent
multi-window handling and robust AI integration.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-22 21:15:25 +02:00
Peter Steinberger
6c3e96f51f 🧪 Added Comprehensive AI Vision Analysis Tests
Enhanced test suite with full AI testing capabilities:

Test Coverage:
• One-step workflow: Screenshot + AI analysis in single command
• Two-step workflow: Analyze existing images separately
• Custom model testing with available vision models
• Error handling: Invalid models, missing files, malformed commands
• Smart model auto-detection validation
• Complex questions with special characters

Features:
• Auto-detects available Ollama installation and vision models
• Gracefully skips AI tests if Ollama/models not available
• Provides setup instructions when missing dependencies
• New dedicated 'ai' test mode for focused AI testing
• Integrated into advanced and comprehensive test suites

Examples:
./test_peekaboo.sh ai           # AI tests only
./test_peekaboo.sh advanced     # Includes AI tests
./test_peekaboo.sh all          # Full suite with AI

Perfect for validating AI vision analysis functionality\!

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-22 19:06:14 +02:00
Peter Steinberger
b8dde8f824 🧪 Enhanced Test Suite v1.0.0 - Error Message Validation
 Updated test suite for enhanced error messaging system:

🔍 Enhanced Messaging Tests:
• Validates error messages contain specific troubleshooting guidance
• Checks for "Common issues:" sections in errors
• Verifies bundle ID vs app name specific advice
• Tests structured success message format with emojis
• Validates contextual suggestions and tips

📊 Improved Test Reporting:
• Shows error types for failed tests (e.g., "App Resolution Error:")
• Displays first line of results for context
• Enhanced command test feedback (app counts, help validation)
• Better success/failure detection for new message formats

🎯 New Test Categories:
• Enhanced messaging validation tests
• Window mode error testing
• Bundle ID vs app name error differentiation
• Success message structure validation

📸 README Updates:
• Added banner image (assets/banner.png)
• Visual branding for GitHub display

🎪 Test Coverage Now Includes:
• Error message content validation
• Troubleshooting guidance verification
• Success message structure testing
• Enhanced context reporting
• Multi-window error scenarios

The test suite now validates that AI models receive clear,
actionable error messages with specific guidance for resolution.

🤖💥 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-22 18:31:24 +02:00
Peter Steinberger
424ce8bd4c 🧪 Enhanced Test Suite - Comprehensive Peekaboo Testing
 Complete rewrite of test suite with 8 test categories:
• 🎯 Basic functionality (Classic & Pro versions)
• 🎨 Format support (PNG, JPG, PDF)
• 🎪 Advanced Pro features (multi-window, discovery)
• 🔍 App discovery and window enumeration
• ⚠️  Error handling and edge cases
• 💪 Performance and stress testing
• 🔗 Integration workflows
• 🖥  System app compatibility

🎯 Features:
• 70+ individual test cases across all scenarios
• Multiple test modes: all, basic, advanced, errors, stress, quick
• Comprehensive help system with examples
• Detailed success/failure reporting with statistics
• File size validation and directory analysis
• Rapid-fire stress testing
• Integration workflow testing (discovery → screenshot)
• Enhanced error validation for edge cases

📊 Test Coverage:
• Both Peekaboo Classic and Pro versions
• All command-line options and flags
• Bundle ID vs app name resolution
• Multi-window capture with descriptive naming
• Deep directory creation and special characters
• Performance under rapid succession
• Memory and resource usage patterns

🎪 Usage Examples:
./test_peekaboo.sh quick              # Essential tests
./test_peekaboo.sh stress --cleanup   # Performance + cleanup
./test_peekaboo.sh all                # Full comprehensive suite

This makes Peekaboo one of the most thoroughly tested screenshot
automation tools available\! 👀📸💾

🤖💥 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-22 18:23:50 +02:00