Peekaboo/peekaboo-cli
Peter Steinberger 822ea1cce7 fix: Correct error handling for path traversal and file system errors
Previously, path traversal attempts like `../../../../../../../etc/passwd` were incorrectly
reported as screen recording permission errors instead of file system errors.

Changes:
- Modified ScreenCapture error handling to distinguish between CaptureError types and ScreenCaptureKit errors
- CaptureError.fileWriteError now bypasses screen recording permission detection
- Added path validation in OutputPathResolver to detect and log path traversal attempts
- Added logging for system-sensitive path access attempts
- Comprehensive test coverage for various path traversal patterns and error scenarios

This ensures users get accurate error messages that guide them to the actual problem
(invalid paths, missing directories, file permissions) rather than misleading
screen recording permission prompts.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-08 08:05:03 +01:00
..
Sources/peekaboo fix: Correct error handling for path traversal and file system errors 2025-06-08 08:05:03 +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