refactor: package-own long task watchdog entrypoint

This commit is contained in:
Eve
2026-05-08 17:38:22 +08:00
parent 6af759eec4
commit 61a32b0857
5 changed files with 199 additions and 276 deletions

View File

@@ -0,0 +1,17 @@
#!/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