Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### feat: enhance agent message handling and add custom exceptions
- **agent.py**: Updated the message handling logic to recognize additional exit commands (`/bye` and `/exit`) alongside `/quit`. - **exceptions.py**: Introduced a new module to define custom exceptions for the CodyPy application: - `CodyPyError`: Base class for all CodyPy exceptions. - `AgentAuthenticationError`: Raised for errors in the authentication of the Cody agent. - `AgentBinaryDownloadError`: Raised when there is an error downloading the Cody Agent binary. - `AgentBinaryNotFoundError`: Raised when the Cody Agent binary is not found. - `ServerTCPConnectionError`: Raised when there is an error connecting to the server via TCP. - **main.py**: Removed an unused import (`YELLOW`) from the `codypy.config` module. These changes improve the robustness of the agent's message handling and introduce a structured way to handle specific errors in the application.
- Loading branch information