deploy/launchd/com.example.steward.plist
2 KB - Ver o arquivo original
<?xml version="1.0" encoding="UTF-8"?>
<!--
Run Steward as a macOS login agent (lab 12).
1. Replace /Users/YOU with your home folder and check the node path (`which node`).
2. Credentials: run `ant auth login` once. The SDK reads that profile, so no API key is
written in this file. Set STEWARD_WEB_TOKEN below to a long random string.
3. cp com.example.steward.plist ~/Library/LaunchAgents/
launchctl load ~/Library/LaunchAgents/com.example.steward.plist
Logs go to ~/Library/Logs/steward.log. launchd sends SIGTERM on unload, which Steward
handles with a graceful shutdown.
-->
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.example.steward</string>
<key>ProgramArguments</key>
<array>
<string>/opt/homebrew/bin/node</string>
<string>/Users/YOU/persistent-ai-assistant/src/cli.ts</string>
<string>serve</string>
<string>--no-terminal</string>
</array>
<key>WorkingDirectory</key>
<string>/Users/YOU/persistent-ai-assistant</string>
<key>EnvironmentVariables</key>
<dict>
<key>STEWARD_WEB_TOKEN</key>
<string>REPLACE-WITH-A-LONG-RANDOM-STRING</string>
</dict>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>ThrottleInterval</key>
<integer>30</integer>
<key>StandardOutPath</key>
<string>/Users/YOU/Library/Logs/steward.log</string>
<key>StandardErrorPath</key>
<string>/Users/YOU/Library/Logs/steward.log</string>
</dict>
</plist>