Skip to main content
Glama
CaptureLiveBehaviorTests.swift725 B
import CoreGraphics import Foundation import PeekabooCore import Testing @testable import PeekabooCLI @Suite("Capture live behavior (logic only)") struct CaptureLiveBehaviorTests { @Test("resolveMode defaults to window when targeting app/pid/title") func resolveModeWindow() async throws { var cmd = CaptureLiveCommand() cmd.app = "Safari" #expect(cmd.resolveMode() == .window) cmd.app = nil cmd.windowTitle = "Log" #expect(cmd.resolveMode() == .window) } @Test("resolveMode defaults to frontmost when no targeting") func resolveModeDefault() async throws { var cmd = CaptureLiveCommand() #expect(cmd.resolveMode() == .frontmost) } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/steipete/Peekaboo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server