Peekaboo/peekaboo-cli/Package.swift
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

37 lines
967 B
Swift

// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "peekaboo",
platforms: [
.macOS(.v14)
],
products: [
.executable(
name: "peekaboo",
targets: ["peekaboo"]
)
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.0")
],
targets: [
.executableTarget(
name: "peekaboo",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser")
],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency"),
.unsafeFlags(["-parse-as-library"])
]
),
.testTarget(
name: "peekabooTests",
dependencies: ["peekaboo"],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
]
)
]
)