Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR performs a comprehensive cleanup of the codebase, focusing on renaming packages for better clarity and removing unused files. The changes rename the theme package to style to better reflect its styling/rendering purpose, and rename the ui package to tui (Terminal UI) to be more specific about its terminal-based interface implementation. Additionally, the Tool interface is consolidated from a separate file into registry.go, and several unused documentation and test files are removed.
Changes:
- Renamed
themepackage tostyleacross 7 files and updated all import references - Renamed
uipackage totuiacross 22 files and updated all import references - Consolidated Tool interface from
internal/tool/tool.gointointernal/tool/registry.go - Removed unused test scripts and documentation tape/gif files
- Simplified CLAUDE.md documentation to reflect the new package structure
- Inlined constants in
cmd/root.gofor better code organization
Reviewed changes
Copilot reviewed 41 out of 45 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| style/style.go | Package declaration updated from theme to style |
| style/render.go | Package declaration updated from theme to style |
| style/json.go | Package declaration updated from theme to style |
| style/glyph.go | Package declaration updated from theme to style |
| style/glamour.go | Package declaration updated from theme to style |
| style/fang.go | Package declaration updated from theme to style |
| style/color.go | Package declaration updated from theme to style |
| main.go | Import updated to use style package instead of theme |
| internal/tui/*.go | All 22 files updated with package name from ui to tui |
| internal/tui/stream.go | Import updated to use style package |
| internal/tui/chat_stream.go | Import updated to use style package |
| internal/tui/chat_stream_test.go | Import updated to use style package |
| internal/tui/chat_command.go | Import updated to use style package |
| internal/tui/chat_command_test.go | Import updated to use style package |
| internal/tui/chat.go | Import updated to use style package |
| internal/tool/tool.go | File deleted - interface moved to registry.go |
| internal/tool/registry.go | Tool interface definition added from deleted tool.go |
| cmd/root.go | Imports updated to use style and tui, constants inlined |
| cmd/chat.go | Import updated to use tui package |
| test_features.sh | Deleted unused test script |
| documentation/*.tape | Deleted unused VHS tape files for GIF generation |
| documentation/*.gif | Deleted generated GIF files |
| AGENTS.md | Deleted duplicate documentation file |
| CLAUDE.md | Simplified and updated to reflect new package names and structure |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.