38 lines
1.1 KiB
Bash
Executable File
38 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
# Mock AI that returns a valid patch for testing
|
|
|
|
# Read the prompt from stdin and log it for verification
|
|
# Save to /tmp/mock_ai_prompts.log
|
|
PROMPT_LOG="/tmp/mock_ai_prompts.log"
|
|
echo "=== MOCK AI INVOCATION $(date) ===" >> "$PROMPT_LOG"
|
|
timeout 1 cat | tee -a "$PROMPT_LOG" > /dev/null 2>/dev/null || true
|
|
echo "" >> "$PROMPT_LOG"
|
|
|
|
# Extract output path from arguments if provided
|
|
OUTPUT_PATH="${1:-feature.discussion.md}"
|
|
|
|
# Return a valid unified diff wrapped in markers
|
|
cat <<'EOFPATCH'
|
|
<<<AI_DIFF_START>>>
|
|
diff --git a/Docs/features/FR_test/discussions/feature.discussion.md b/Docs/features/FR_test/discussions/feature.discussion.md
|
|
--- /dev/null
|
|
+++ b/Docs/features/FR_test/discussions/feature.discussion.md
|
|
@@ -0,0 +1,15 @@
|
|
+---
|
|
+type: feature-discussion
|
|
+stage: feature
|
|
+status: OPEN
|
|
+feature_id: FR_test
|
|
+created: 2025-10-30
|
|
+---
|
|
+
|
|
+## Summary
|
|
+Mock-generated discussion file for testing the automation pipeline.
|
|
+
|
|
+## Participation
|
|
+- AI_MockBot: This is a test discussion generated by the mock AI provider. VOTE: READY
|
|
+
|
|
+The automation pipeline is working correctly if you're reading this!
|
|
<<<AI_DIFF_END>>>
|
|
EOFPATCH
|