#!/usr/bin/env python3
"""
Voice PRD Processor (Stub)

This script takes a text file (transcript), puts it through the
"Claude Clarification" prompt (template), and outputs a draft
`tasks.json` or PRD markdown.
"""

import argparse
import json
import os

# Template for Claude Clarification prompt.  This can/should be
# externalized to a file, but for simplicity, it's inline here.
CLAUDE_PROMPT_TEMPLATE = """
You are a product manager assistant, helping to refine and structure Product Requirements Documents (PRDs)
from voice transcriptions. Your task is to clarify ambiguities, identify missing information, and
organize the information into a structured format.

Here is a transcript of a product discussion:

--- TRANSCRIPT ---
{transcript}
--- END TRANSCRIPT ---

Based on the transcript, please provide the following:

1.  **Clarifying Questions:** List any questions that need to be answered to fully understand the requirements.  Be specific.  For example, instead of "What is the user?", ask "What specific user persona are we targeting with this feature, e.g., new users, power users, administrators?"

2.  **Assumptions:** List any assumptions made while interpreting the transcript.

3.  **Proposed Task List (tasks.json format):**  Generate a `tasks.json` file structure representing the tasks needed to implement the discussed features.  Each task should include:
    *   `task_name`: A concise name for the task.
    *   `description`: A brief description of the task.
    *   `priority`: A priority level (High, Medium, Low).
    *   `status`: Initial status (To Do, In Progress, Blocked, Done).
    *   `assignee`: (Optional) Suggested assignee.

    Example: