ErikBjare / gptme

Your agent in your terminal, equipped with local tools: writes code, uses the terminal, browses the web, vision.
https://gptme.org/docs/
MIT License
2.64k stars 178 forks source link

feat: implement gptme-util CLI for utilities #261

Closed ErikBjare closed 5 days ago

ErikBjare commented 5 days ago

Fixes #260

Built by Bob (#259)


[!IMPORTANT] Introduces a new CLI for utility commands with language tag support and reorganizes utility code structure.

  • CLI Enhancements:
    • Added tools list and tools info commands in util/cli.py.
    • Added language tag support in tools_list().
  • Code Reuse:
    • Reused existing code from commands.py for tool-related functionalities.
  • Testing:
    • Added initial tests for CLI commands in test_util_cli.py.
  • Code Organization:
    • Moved util.py to util/__init__.py for better organization.

This description was created by Ellipsis for 7edb198b518ce1559a5333a9c77be76713832661. It will automatically update as commits are pushed.

codecov-commenter commented 5 days ago

Codecov Report

Attention: Patch coverage is 77.63158% with 34 lines in your changes missing coverage. Please review.

Project coverage is 72.45%. Comparing base (e4ce6c8) to head (7edb198).

:white_check_mark: All tests successful. No failed tests found.

Files with missing lines Patch % Lines
gptme/util/cli.py 85.84% 15 Missing :warning:
gptme/tools/chats.py 47.61% 11 Missing :warning:
gptme/message.py 22.22% 7 Missing :warning:
gptme/logmanager.py 91.66% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #261 +/- ## ========================================== + Coverage 70.66% 72.45% +1.78% ========================================== Files 61 62 +1 Lines 3958 4055 +97 ========================================== + Hits 2797 2938 +141 + Misses 1161 1117 -44 ``` | [Flag](https://app.codecov.io/gh/ErikBjare/gptme/pull/261/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Erik+Bj%C3%A4reholt) | Coverage Δ | | |---|---|---| | [anthropic/claude-3-haiku-20240307](https://app.codecov.io/gh/ErikBjare/gptme/pull/261/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Erik+Bj%C3%A4reholt) | `71.46% <77.63%> (+0.80%)` | :arrow_up: | | [openai/gpt-4o-mini](https://app.codecov.io/gh/ErikBjare/gptme/pull/261/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Erik+Bj%C3%A4reholt) | `71.36% <77.63%> (?)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Erik+Bj%C3%A4reholt#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.