Peekaboo/src/utils
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
..
ai-providers.ts Prepare for v1.0.0-beta.3 release 2025-05-25 14:07:21 +02:00
image-analysis.ts Complete MCP best practices compliance and code cleanup 2025-05-27 00:32:54 +02:00
image-cli-args.ts feat: Implement proper frontmost window capture 2025-06-08 08:42:43 +01:00
image-summary.ts Fix ESLint errors in image-summary.ts 2025-05-27 00:43:34 +02:00
peekaboo-cli.ts style: Fix linting errors 2025-06-08 07:29:11 +01:00
server-status.ts Tweak tool text 2025-05-25 22:15:13 +02:00
zod-to-json-schema.ts Fix TypeScript compilation errors 2025-05-27 01:10:35 +02:00