<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<!-- LaunchAgent for NucleicVMAgent (docs/MACOS_VM_NATIVE_AGENT.md §11). Installed by
     scripts/provision-macos-guest.sh at /Library/LaunchAgents/ so it runs in the auto-login
     `agent` account's Aqua session — AX, ScreenCaptureKit and CGEvent all require an active
     WindowServer session, which is why this is a LaunchAgent, not a LaunchDaemon. -->
<dict>
    <key>Label</key>
    <string>xyz.blakeslee.nucleic.vmagent</string>
    <key>ProgramArguments</key>
    <array>
        <string>/Applications/NucleicVMAgent.app/Contents/MacOS/NucleicVMAgent</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>KeepAlive</key>
    <true/>
    <!-- Aqua only: never launch in the pre-login / background domains where the frameworks fail. -->
    <key>LimitLoadToSessionType</key>
    <string>Aqua</string>
    <key>AssociatedBundleIdentifiers</key>
    <string>xyz.blakeslee.nucleic.vmagent</string>
    <key>StandardOutPath</key>
    <string>/tmp/nucleic-vmagent.log</string>
    <key>StandardErrorPath</key>
    <string>/tmp/nucleic-vmagent.log</string>
</dict>
</plist>
