Peekaboo/tests/unit/tools
Peter Steinberger 606290ec79 Lower macOS requirement from 15.0 to 14.0
Based on API usage analysis, Peekaboo only requires macOS 14.0 (Sonoma), not macOS 15.0 (Sequoia). The APIs we use:
- SCScreenshotManager.captureImage: macOS 14.0+
- configuration.shouldBeOpaque: macOS 14.0+
- Typed throws syntax: Works with macOS 14.0

This change makes Peekaboo available to more users who haven't upgraded to Sequoia yet.

Also fixed warning about undefined modelName in AI providers by using nullish coalescing.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-08 20:48:00 +01:00
..
analyze-edge-cases.test.ts Lower macOS requirement from 15.0 to 14.0 2025-06-08 20:48:00 +01:00
analyze.test.ts fix: Handle empty provider_config gracefully and improve case-insensitive targets 2025-06-08 08:20:30 +01:00
browser-helper-filtering.test.ts test: Add comprehensive tests for browser helper filtering 2025-06-08 08:48:29 +01:00
defensive-format-validation.test.ts fix: Add defensive validation for invalid image formats with automatic PNG fallback 2025-06-08 07:44:17 +01:00
edge-case-fixes.test.ts fix: Handle edge cases for invalid screen index and JSON null paths 2025-06-08 07:53:21 +01:00
image-edge-cases.test.ts Fix tests to match new executeSwiftCli signature with timeout parameter 2025-06-08 07:24:02 +01:00
image.test.ts feat: Implement proper frontmost window capture 2025-06-08 08:42:43 +01:00
improved-window-error-messages.test.ts feat: Improve window title matching and error messages for URLs with ports 2025-06-08 08:09:47 +01:00
invalid-format.test.ts fix: Add defensive validation for invalid image formats with automatic PNG fallback 2025-06-08 07:44:17 +01:00
list.test.ts fix: Handle empty string item_type parameter in list tool 2025-06-08 08:33:44 +01:00
multiple-app-matches.test.ts feat: Capture all windows from multiple exact app matches instead of erroring 2025-06-08 08:00:44 +01:00
path-traversal-error-handling.test.ts fix: Correct error handling for path traversal and file system errors 2025-06-08 08:05:03 +01:00
window-title-matching.test.ts feat: Improve window title matching and error messages for URLs with ports 2025-06-08 08:09:47 +01:00