File tree Expand file tree Collapse file tree
.devagent/plugins/ralph/tools Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22# E2E verification for --on-iteration and --on-complete: run ralph with both hooks
33# (same script appends all payloads to one file) and verify iteration + completion payloads.
44#
5- # Requires (run from repo root) :
5+ # Requires:
66# - Git repo with .git and branch feature/ralph-iteration-hooks
77# - Beads DB with epic devagent-iteration-hooks and at least one ready task
88# - RALPH_MAX_ITERATIONS=1 is used (env override) so one iteration + completion run
9- # Usage: from repo root: .devagent/plugins/ralph/tools/verify-hooks-e2e.sh
9+ # Usage: .devagent/plugins/ralph/tools/verify-hooks-e2e.sh
1010
1111set -e
1212SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
13- REPO_ROOT=" $( cd " ${SCRIPT_DIR} /../../../../.." && pwd) "
13+ if ! REPO_ROOT=" $( git -C " ${SCRIPT_DIR} /../../../../.." rev-parse --show-toplevel 2> /dev/null) " ; then
14+ echo " Error: Unable to resolve repo root from ${SCRIPT_DIR} " >&2
15+ exit 1
16+ fi
1417cd " $REPO_ROOT "
1518
1619OUT_FILE=" $( mktemp) "
You can’t perform that action at this time.
0 commit comments