/**
 * Instructions for agent retry scenarios
 */

export const MISSING_SIGNAL_INSTRUCTION = `

IMPORTANT: Your previous execution completed but did not generate the required signal.json file.

Please ensure you complete your task and create a signal.json file at .cw/output/signal.json with one of these formats:

For successful completion:
{"status": "done"}

For questions requiring user input:
{"status": "questions", "questions": [{"id": "q1", "question": "Your question here"}]}

For errors:
{"status": "error", "error": "Description of the error"}

Please retry your task and ensure the signal.json file is properly created.
`;

/**
 * Adds an instruction to the beginning of a prompt
 */
export function addInstructionToPrompt(originalPrompt: string, instruction: string): string {
  return `${instruction.trim()}\n\n${originalPrompt}`;
}