27 lines
749 B
Bash
27 lines
749 B
Bash
#!/usr/bin/env bash
|
||
set -euo pipefail
|
||
|
||
TARGET_DIR="${1:-.}"
|
||
OUTPUT_DIR="${2:-tests/reports/agents}"
|
||
mkdir -p "$OUTPUT_DIR"
|
||
SUMMARY_FILE="$OUTPUT_DIR/resolution_agent.md"
|
||
|
||
echo "# Agent Résolution" > "$SUMMARY_FILE"
|
||
echo >> "$SUMMARY_FILE"
|
||
|
||
pushd "$TARGET_DIR" >/dev/null
|
||
if [[ -d archive ]]; then
|
||
echo "- Dossier archive/ présent (pour REX)." >> "$SUMMARY_FILE"
|
||
else
|
||
echo "- Dossier archive/ manquant (recommandé pour REX)." >> "$SUMMARY_FILE"
|
||
fi
|
||
|
||
PROMPT=$(cat <<'P'
|
||
Décris la boucle de triage complète (repro minimale, logs, bissection, hypothèses, tests ciblés, correctif, non‑régression) et quand produire un REX.
|
||
P
|
||
)
|
||
"scripts/agents/ai_prompt.sh" "$PROMPT" >> "$SUMMARY_FILE" || true
|
||
|
||
echo "Rapport: $SUMMARY_FILE"
|
||
popd >/dev/null
|