<?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">
<!--
  com.openclaw.ppt-cleanup.plist
  每日凌晨 03:15 清理 7 天前過期的 PPT 檔 + DB row。

  安裝（一次性）:
    bash scripts/install_ppt_cleanup.sh

  手動觸發（測試）:
    launchctl start com.openclaw.ppt-cleanup

  停用 / 解除:
    launchctl unload ~/Library/LaunchAgents/com.openclaw.ppt-cleanup.plist
    rm ~/Library/LaunchAgents/com.openclaw.ppt-cleanup.plist
-->
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.openclaw.ppt-cleanup</string>

    <key>ProgramArguments</key>
    <array>
        <string>/bin/bash</string>
        <string>__SCRIPT_PATH__</string>
    </array>

    <key>StartCalendarInterval</key>
    <dict>
        <key>Hour</key>
        <integer>3</integer>
        <key>Minute</key>
        <integer>15</integer>
    </dict>

    <key>StandardOutPath</key>
    <string>__LOG_DIR__/ppt_cleanup.stdout.log</string>

    <key>StandardErrorPath</key>
    <string>__LOG_DIR__/ppt_cleanup.stderr.log</string>

    <key>EnvironmentVariables</key>
    <dict>
        <key>PROJECT_DIR</key>
        <string>__PROJECT_DIR__</string>
        <key>DAYS_OLD</key>
        <string>7</string>
    </dict>

    <key>RunAtLoad</key>
    <false/>
</dict>
</plist>
