|
13 | 13 | from rich.prompt import Prompt |
14 | 14 |
|
15 | 15 | from paperbanana.core.config import Settings |
| 16 | +from paperbanana.core.logging import configure_logging |
16 | 17 | from paperbanana.core.types import DiagramType, GenerationInput |
17 | 18 |
|
18 | 19 | app = typer.Typer( |
@@ -42,8 +43,12 @@ def generate( |
42 | 43 | None, "--iterations", "-n", help="Refinement iterations" |
43 | 44 | ), |
44 | 45 | config: Optional[str] = typer.Option(None, "--config", help="Path to config YAML file"), |
| 46 | + verbose: bool = typer.Option( |
| 47 | + False, "--verbose", "-v", help="Show detailed agent progress and timing" |
| 48 | + ), |
45 | 49 | ): |
46 | 50 | """Generate a methodology diagram from a text description.""" |
| 51 | + configure_logging(verbose=verbose) |
47 | 52 | # Load source text |
48 | 53 | input_path = Path(input) |
49 | 54 | if not input_path.exists(): |
@@ -119,8 +124,12 @@ def plot( |
119 | 124 | output: Optional[str] = typer.Option(None, "--output", "-o", help="Output image path"), |
120 | 125 | vlm_provider: str = typer.Option("gemini", "--vlm-provider", help="VLM provider"), |
121 | 126 | iterations: int = typer.Option(3, "--iterations", "-n", help="Number of refinement iterations"), |
| 127 | + verbose: bool = typer.Option( |
| 128 | + False, "--verbose", "-v", help="Show detailed agent progress and timing" |
| 129 | + ), |
122 | 130 | ): |
123 | 131 | """Generate a statistical plot from data.""" |
| 132 | + configure_logging(verbose=verbose) |
124 | 133 | data_path = Path(data) |
125 | 134 | if not data_path.exists(): |
126 | 135 | console.print(f"[red]Error: Data file not found: {data}[/red]") |
@@ -228,8 +237,12 @@ def evaluate( |
228 | 237 | vlm_provider: str = typer.Option( |
229 | 238 | "gemini", "--vlm-provider", help="VLM provider for evaluation" |
230 | 239 | ), |
| 240 | + verbose: bool = typer.Option( |
| 241 | + False, "--verbose", "-v", help="Show detailed agent progress and timing" |
| 242 | + ), |
231 | 243 | ): |
232 | 244 | """Evaluate a generated diagram vs human reference (comparative).""" |
| 245 | + configure_logging(verbose=verbose) |
233 | 246 | from paperbanana.evaluation.judge import VLMJudge |
234 | 247 |
|
235 | 248 | generated_path = Path(generated) |
|
0 commit comments