unrip/scripts/workflow/review_diff.sh
philipp 54dc05a94c Archive first live trade loop and open funding visibility turn
Proof: Preserve the completed first live BTC/EURe trade loop and establish the next approved implementation proof around pre-credit funding visibility and operator alerts.
Assumptions: The live-trade loop is sufficiently proven by the recorded deposits, withdrawals, durable command/result chain, and successful mainnet quote responses; the next highest-value slice is operational visibility rather than new execution breadth.
Still fake: The newly opened funding-visibility and alert turn is planning only; no pre-credit watcher or durable alert evaluator is implemented yet.
2026-04-03 01:07:02 +02:00

37 lines
557 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "$0")/../.." && pwd)"
PROMPT_FILE="$ROOT_DIR/workflow/REVIEW_PROMPT.md"
RANGE="${1:-HEAD~1}"
if [[ "${1:-}" == "--help" ]]; then
cat <<'EOF'
Usage: bash scripts/workflow/review_diff.sh [git-diff-range]
Examples:
bash scripts/workflow/review_diff.sh HEAD~1
bash scripts/workflow/review_diff.sh main...HEAD
EOF
exit 0
fi
cat <<EOF
# Review Bundle
## Diff range
\`$RANGE\`
## Diff
\`\`\`diff
EOF
git -C "$ROOT_DIR" diff "$RANGE"
cat <<'EOF'
```
## Prompt
EOF
cat "$PROMPT_FILE"