From bcc3db9474bd6f71ce9e0852f61e57dad34f3543 Mon Sep 17 00:00:00 2001 From: "macroscopeapp[bot]" <170038800+macroscopeapp[bot]@users.noreply.github.com> Date: Sat, 10 Jan 2026 18:35:33 +0000 Subject: [PATCH] Append PRD source content to conversion prompt in convert_prd function (#68) Co-authored-by: macroscopeapp[bot] <170038800+macroscopeapp[bot]@users.noreply.github.com> --- ralph_import.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ralph_import.sh b/ralph_import.sh index 79b6b28..0b73165 100755 --- a/ralph_import.sh +++ b/ralph_import.sh @@ -336,6 +336,23 @@ Create detailed technical specifications: PROMPTEOF + # Append the PRD source content to the conversion prompt + local source_basename + source_basename=$(basename "$source_file") + + if [[ -f "$source_file" ]]; then + echo "" >> "$CONVERSION_PROMPT_FILE" + echo "---" >> "$CONVERSION_PROMPT_FILE" + echo "" >> "$CONVERSION_PROMPT_FILE" + echo "## Source PRD File: $source_basename" >> "$CONVERSION_PROMPT_FILE" + echo "" >> "$CONVERSION_PROMPT_FILE" + cat "$source_file" >> "$CONVERSION_PROMPT_FILE" + else + log "ERROR" "Source file not found: $source_file" + rm -f "$CONVERSION_PROMPT_FILE" + exit 1 + fi + # Build and execute Claude Code command # Modern CLI: Use --output-format json and --allowedTools for structured output # Fallback: Standard CLI invocation for older versions