GetInitPrompt returns the PRD generator prompt with the PRD directory and optional context substituted.
(prdDir, context string)
| 32 | |
| 33 | // GetInitPrompt returns the PRD generator prompt with the PRD directory and optional context substituted. |
| 34 | func GetInitPrompt(prdDir, context string) string { |
| 35 | if context == "" { |
| 36 | context = "No additional context provided. Ask the user what they want to build." |
| 37 | } |
| 38 | result := strings.ReplaceAll(initPromptTemplate, "{{PRD_DIR}}", prdDir) |
| 39 | return strings.ReplaceAll(result, "{{CONTEXT}}", context) |
| 40 | } |
| 41 | |
| 42 | // GetEditPrompt returns the PRD editor prompt with the PRD directory substituted. |
| 43 | func GetEditPrompt(prdDir string) string { |
no outgoing calls