mirror of
https://github.com/samsonjs/Peekaboo.git
synced 2026-04-25 14:47:43 +00:00
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>
18 lines
565 B
Swift
18 lines
565 B
Swift
import ArgumentParser
|
|
import Foundation
|
|
|
|
@main
|
|
@available(macOS 14.0, *)
|
|
struct PeekabooCommand: AsyncParsableCommand {
|
|
static let configuration = CommandConfiguration(
|
|
commandName: "peekaboo",
|
|
abstract: "A macOS utility for screen capture, application listing, and window management",
|
|
version: Version.current,
|
|
subcommands: [ImageCommand.self, ListCommand.self],
|
|
defaultSubcommand: ImageCommand.self
|
|
)
|
|
|
|
func run() async throws {
|
|
// Root command doesn't do anything, subcommands handle everything
|
|
}
|
|
}
|