Pick a file in Files to edit it here.
2 import PackageDescription
3
4 // Standalone screenshot helper β a SEPARATE package on purpose, so rebuilding the
5 // controller app never recompiles this binary (its Screen Recording grant is tied
6 // to the binary identity; a stable, never-rebuilt helper keeps the grant forever).
7 let package = Package(
8 name: "aiqshot",
9 platforms: [.macOS(.v14)],
10 targets: [
β¦ +3 lines
β Write(dashboard/macos/shooter/Sources/aiqshot/main.swift)
βΏ Β Wrote 67 lines to dashboard/macos/shooter/Sources/aiqshot/main.swift
1 import AppKit
2 import ScreenCaptureKit
3
4 // aiqshot β a tiny background agent that screenshots the frontmost app window (or the
5 // whole display) via ScreenCaptureKit and writes it to ~/.aiq/uploads, so a reactor
6 // box can `scp` a current shot and view it. It is granted Screen Recording ONCE; being
7 // a stable, never-rebuilt binary, that grant persists across all app rebuilds.
8 //
9 // Files:
10 // ~/.aiq/uploads/screen-latest.png refreshed every few seconds
β¦ +57 lines
β½ Ionizingβ¦ (7m 16s Β· β 31.3k tokens Β· thinking with max effort)
βΏ Β Tip: Use /btw to ask a quick side question without interrupting Claude's current work
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ continue-conversation ββ
β―Β
β΅β΅ bypass permissions on (shift+tab to cycle) Β· β for agents Β· esc to interrupt