From 6e4b177fe3c282a4b78d8a032a71e91b5883998c Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Fri, 12 Dec 2025 18:57:46 +0545 Subject: [PATCH] feat(commit-engine): Enhance console output with rich library The commit engine now leverages the `rich` library to provide a more visually appealing and informative console experience during various stages of the commit generation and execution process. * **New Features** * Integrate the `rich` library for enhanced and structured console output. * Introduce a custom `rich` theme for consistent styling of info, warning, and danger messages. * **Enhancements & Refinements** * Display visual feedback with `rich` status spinners during AI message generation and remote push operations. * Present generated commit messages in a formatted `rich` Panel with Markdown rendering for improved readability. * Provide clearer, color-coded `rich` console messages for staging files, dry run completion, overall process completion, and identifying failed groups. * Propagate the `debug` flag to the logger to control console output during debugging sessions, aligning logger and console behavior. --- devgen/modules/commit_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devgen/modules/commit_generator.py b/devgen/modules/commit_generator.py index 796fa38..ce97d85 100644 --- a/devgen/modules/commit_generator.py +++ b/devgen/modules/commit_generator.py @@ -156,7 +156,7 @@ class CommitEngine: template = self.template_env.get_template("commit_message.j2") prompt = template.render(group_name=group, diff_text=diff, use_emoji=use_emoji) - with self.console.status(f"[bold blue]Generating message for {group}...[/bold blue]"): + with self.console.status(f"[bold blue]Generating commit message...[/bold blue]"): raw = generate_with_ai( prompt, provider=provider,