Files
reporting-governance-plugin/scripts/run_watchdog_auto_notify.sh

18 lines
960 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT="/home/alice/.openclaw/workspace/.worktrees/reporting-governance-plugin"
cd "$ROOT"
/usr/bin/env node "$ROOT/plugins/reporting-governance/scripts/watchdog_auto_notify_orchestrator.mjs" \
--write-state \
--state "$ROOT/memory/watchdog-state.json" \
--evidence-dir "$ROOT/state/long-task-watchdog" \
--event-dir "$ROOT/state/long-task-watchdog-events" \
--queue-dir "$ROOT/state/operator-notify-queue" \
--spool-dir "$ROOT/state/operator-notify-dispatch-spool" \
--receipt-dir "$ROOT/state/operator-notify-bridge-receipts" \
--watchdog-script "$ROOT/plugins/reporting-governance/scripts/long_task_watchdog.mjs" \
--dispatcher-script "$ROOT/plugins/reporting-governance/scripts/operator_notify_dispatcher.mjs" \
--supervisor-script "$ROOT/plugins/reporting-governance/scripts/operator_notify_bridge_supervisor.mjs" \
--sender-mode openclaw-cli \
>> "$ROOT/state/long-task-watchdog/cron.log" 2>&1