Conversation
- Implemented TUI styles for better UI presentation in `internal/tui/styles.go`. - Added Turbo engine functionality in `internal/turbo/engine.go` to manage concurrent task execution with success rate and latency checks. - Created test cases for Turbo engine in `internal/turbo/engine_test.go` to ensure correct behavior under various conditions. - Introduced task definition structure in `internal/types/types.go` to encapsulate task-related data. - Added input normalization and endpoint resolution functions to improve protocol handling in `internal/types/types.go`. - Developed unit tests for task definition building in `internal/tui/model_test.go` to validate input processing.
…efinitions - Introduced a new color palette inspired by the Lip Gloss demo aesthetic. - Expanded the styles struct to include additional styles for headers, footers, table rows, badges, and more. - Updated the newStyles function to initialize the new styles with appropriate colors and formatting. - Improved visual hierarchy and consistency across the TUI components.
…d editing - Implemented task detail page to display task configurations and run history. - Created task list page to manage tasks with options for creating, editing, copying, and deleting tasks. - Developed a wizard interface for creating and editing tasks, including input validation and dynamic field handling. - Enhanced user experience with contextual navigation and feedback on task operations.
…ly interface - Implemented a multi-step wizard for task creation and editing in the TUI. - Introduced fields for basic information, testing parameters, and confirmation. - Added functionality to handle user input and navigation through the wizard. - Removed old styles file as styles are now integrated within the wizard implementation.
- Deleted the entire display package, including the main display logic and test cases. - Removed dependencies on tablewriter and progressbar libraries. - Updated the TUI model and pages to ensure proper rendering and layout adjustments. - Introduced a new wrapPanel function to handle panel rendering with borders. - Adjusted various TUI pages to utilize the new panel wrapping for consistent styling.
- Updated request detail page to simplify footer and header information. - Changed color palette for header background and text for better visibility. - Enhanced task detail page with improved navigation and selection handling. - Implemented dual-column layout for task details and history for better information display. - Refined task list rendering with improved selection indicators and result display. - Simplified turbo dashboard metrics display and improved level selection visibility. - General code cleanup and optimization for better readability and maintainability.
- Added RequestBody and ResponseBody fields to ResponseMetrics for detailed logging. - Updated AnthropicClient and OpenAIClient to populate new fields with raw request and response data. - Modified server event handling to include request and response details in metrics. - Implemented tests for event bus and request metrics mapping. - Improved UI to display request and response data in task and request detail views. - Refactored key bindings in task detail and dashboard pages for better user experience.
feat: 更新仪表板任务参数面板标题为“运行进度” feat: 优化报告生成逻辑,支持从磁盘快照加载历史运行状态
- Changed TaskStore to manage tasks in a directory instead of a single JSON file. - Implemented loading and saving of tasks as individual JSON files. - Removed the history management code and tests, as they are no longer needed. - Updated task-related types and methods to reflect the new structure. - Adjusted TUI components to work with the new task overview structure. - Added tests for task detail history entries to ensure correct behavior.
- Introduced ProxyURL field in Input struct to allow configuration of proxy settings. - Implemented newMeasuredTransport function to create HTTP transport with proxy support. - Updated OpenAIClient and other clients to utilize the new transport with proxy settings. - Modified tests to validate proxy functionality and ensure correct behavior with various configurations. - Enhanced TUI components to display proxy information and maintain navigation state. - Refactored dashboard and task detail pages to improve layout and user experience. - Adjusted wizard state to include proxy configuration and ensure proper defaults.
…yling - Introduced new test cases for page layouts in layout_test.go and reqdetail_test.go to ensure proper rendering and height consistency for success and failure scenarios. - Refactored reqdetail.go to streamline rendering logic and improve layout handling, including dynamic height calculations for panels. - Updated styles in styles.go to enhance visual consistency across the TUI, including new styles for hotkeys and panel headers. - Modified taskdetail.go and tasklist.go to utilize the new layout structure, ensuring proper rendering of task details and lists. - Enhanced turbodash.go and wizard.go to adopt the new layout framework, improving readability and maintainability of the code.
- Updated import paths from "github.com/charmbracelet/lipgloss" to "charm.land/lipgloss/v2" across multiple files. - Refactored progress line and request list rendering to use lipgloss.JoinHorizontal for better layout management. - Introduced tableCol helper function for consistent table cell rendering with automatic width handling. - Adjusted panel and field rendering to account for new width calculations in lipgloss v2. - Enhanced height calculations in layout functions to ensure correct rendering of components. - Added tests for height correctness in various components, including ReqDetail, Dashboard, and TaskList.
- Update `mapRequestMetrics` to set CacheHitRate to 1 when CachedInputTokens > 0. - Modify unit tests for `mapRequestMetrics` to reflect new CacheHitRate logic. - Refactor TUI dashboard and task detail pages to utilize `lgtable` for rendering tables, improving layout and readability. - Consolidate table rendering logic in task list and turbo request list, enhancing maintainability. - Remove redundant functions related to table rendering and selection markers. - Ensure consistent styling and formatting across various TUI components.
…or dynamic language switching - Introduced a new package `i18n` for managing translations. - Added support for Chinese (default) and English languages. - Implemented a translation key system for UI elements and messages. - Created a function `T` to retrieve translations based on the active language. - Included helper functions for display width calculations to accommodate CJK characters.
fix: 修复错误信息格式化,确保错误信息输出一致性 fix: 修正缓存命中率计算逻辑,避免除以零错误 feat: 添加 MockClient 的 RawRequest 方法,支持原始 JSON 请求体 test: 更新布局测试,增强对输出内容的验证
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11 +/- ##
===========================================
- Coverage 61.59% 41.18% -20.42%
===========================================
Files 15 40 +25
Lines 2130 7025 +4895
===========================================
+ Hits 1312 2893 +1581
- Misses 753 3851 +3098
- Partials 65 281 +216 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.