Peekaboo/src
Peter Steinberger d5b40c1550 feat: Implement proper frontmost window capture
Adds support for capturing the frontmost window of the frontmost application
instead of falling back to screen capture mode.

Changes:
- Added 'frontmost' case to CaptureMode enum in Swift CLI
- Implemented captureFrontmostWindow() method using NSWorkspace.shared.frontmostApplication
- Updated TypeScript to use --mode frontmost instead of defaulting to screen mode
- Added comprehensive test coverage for frontmost functionality
- Updated existing tests to reflect new behavior

The frontmost mode now:
1. Detects the currently active application
2. Captures only its frontmost window (index 0)
3. Returns a single image file with proper metadata

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-08 08:42:43 +01:00
..
tools fix: Handle empty string item_type parameter in list tool 2025-06-08 08:33:44 +01:00
types fix: Handle edge cases for invalid screen index and JSON null paths 2025-06-08 07:53:21 +01:00
utils feat: Implement proper frontmost window capture 2025-06-08 08:42:43 +01:00
index.ts Fix TypeScript compilation errors 2025-05-27 01:10:35 +02:00