Append PRD source content to conversion prompt in convert_prd function (#68)
Co-authored-by: macroscopeapp[bot] <170038800+macroscopeapp[bot]@users.noreply.github.com>
This commit is contained in:
parent
6dde9cbd26
commit
bcc3db9474
1 changed files with 17 additions and 0 deletions
|
|
@ -336,6 +336,23 @@ Create detailed technical specifications:
|
||||||
|
|
||||||
PROMPTEOF
|
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
|
# Build and execute Claude Code command
|
||||||
# Modern CLI: Use --output-format json and --allowedTools for structured output
|
# Modern CLI: Use --output-format json and --allowedTools for structured output
|
||||||
# Fallback: Standard CLI invocation for older versions
|
# Fallback: Standard CLI invocation for older versions
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue