Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several improvements and refactorings focused on logging consistency, code simplification, and enhanced debugging across multiple modules. The main changes include standardizing log message formatting using a new
indentutility, improving the clarity and structure of logs (especially for HTTP requests/responses and Gemini SDK interactions), and minor updates such as version bumps and new task registrations.Logging and Formatting Improvements:
Refactored log message formatting throughout
HttpClientManager,OpenAIClient,ChatClientBase, andEmbeddingClientBaseto use a unifiedindentutility, resulting in cleaner and more readable logs. This change also introduces Markdown and HTML details formatting for complex logs, especially for HTTP requests and responses, improving debugging and traceability. [1] [2] [3] [4] [5] [6] [7]Enhanced the Gemini SDK chat client to log both requests and responses in a detailed, Markdown-friendly format, including inline image previews (with resizing for large images) and base64 encoding for binary data. This significantly improves the ability to inspect and debug multi-modal interactions. [1] [2] [3]
Codebase Maintenance and Consistency:
Replaced repetitive and verbose line-by-line string formatting with the new
indentutility across multiple files, reducing boilerplate and improving maintainability. [1] [2] [3]Updated method signatures in logging functions to support the new formatting approach and to allow toggling formatting as needed. [1] [2]
Task Registration and Versioning:
Registered a new
ComicBookGenerationTaskin theTaskTyperegistry, enabling support for this new task type in the planning module.Bumped library and plugin versions from
2.0.30to2.0.31ingradle.properties.