Peekaboo/peekaboo-cli
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
..
Sources/peekaboo feat: Implement proper frontmost window capture 2025-06-08 08:42:43 +01:00
TestHost Prepare for beta.14 release: comprehensive test improvements and code cleanup 2025-06-08 02:00:44 +01:00
Tests style: Apply SwiftFormat formatting 2025-06-08 07:29:37 +01:00
.swiftformat Add Swift 6.0 version to SwiftFormat config and apply formatting 2025-05-25 18:45:20 +02:00
.swiftlint.yml Add Swift linting and enhance image capture features 2025-05-25 18:02:39 +02:00
Package.swift Update Swift tools version to 5.9 for macOS v14 support 2025-05-26 23:47:16 +02:00
run-local-tests.sh chore: bump version to 1.0.0-beta.13 2025-06-08 01:28:12 +01:00