Merged
Conversation
This commit delivers a comprehensive set of fixes and enhancements to the `codesage` CLI tool, addressing multiple bugs and improving overall usability and maintainability.
Key improvements include:
- **Repaired All CLI Commands:** Systematically tested and fixed runtime errors in all commands, including `snapshot`, `diff`, `report`, `governance-plan`, `history-*`, `org-report`, and `web-console`.
- **Robust Snapshot Management:**
- The `snapshot cleanup` command is now timezone-aware, preventing `TypeError` crashes.
- The `snapshot create --output` flag is fully functional and the command's internal logic has been refactored to remove duplication.
- **Enhanced `diff` Command:** The `diff` command can now compare snapshots directly from file paths, in addition to version names.
- **Improved Configuration:**
- Shared constants have been centralized to `codesage/config/defaults.py`, resolving a circular dependency that crashed the `web-console`.
- The `.gitignore` file has been updated to exclude all generated artifacts.
- **Code Quality:**
- Refactored command handler functions for consistency and fixed all registration issues in `codesage/cli/main.py`.
- Removed dead and duplicated code from the `snapshot create` command.
This commit ensures that the entire `codesage` CLI suite is functional, stable, and ready for use.
This commit resolves an `ImportError` that occurred on Python 3.10 due to the use of `datetime.UTC`. The `datetime.UTC` constant was introduced in Python 3.11. To ensure backwards compatibility with Python 3.10 and earlier, this commit replaces all instances of `datetime.UTC` with the recommended `datetime.timezone.utc`. This change fixes the crash in the `codesage` CLI tool when running on older Python versions and has been verified by running the full test suite.
CodeSnapAI Scan ResultsFound 22 high severity issues.
...and 12 more. |
This commit reverts the `.codesage.yaml` file to its original state, removing the temporary modifications made for testing purposes.
CodeSnapAI Scan ResultsFound 22 high severity issues.
...and 12 more. |
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.