#!/bin/bash # Regenerate CLI output fixtures from real commands # # Run this periodically to ensure fixtures match actual CLI output format. # CI can compare fresh fixtures against committed ones to detect schema drift. set -e FIXTURE_DIR="src-tauri/tests/fixtures" echo "Regenerating CLI fixtures..." # lore fixtures echo " Capturing lore --robot me..." lore --robot me > "${FIXTURE_DIR}/lore/me_with_activity.json" 2>/dev/null || { echo " Warning: lore command failed, skipping" } # br fixtures echo " Capturing br list..." br list --json > "${FIXTURE_DIR}/br/list_with_beads.json" 2>/dev/null || { echo " Warning: br command failed, skipping" } # bv fixtures echo " Capturing bv --robot-triage..." bv --robot-triage > "${FIXTURE_DIR}/br/bv_triage.json" 2>/dev/null || { echo " Warning: bv command failed, skipping" } echo "Done! Review changes with: git diff ${FIXTURE_DIR}"