gptme icon indicating copy to clipboard operation
gptme copied to clipboard

feat(util): added `gptme-util prompts workspace/git/journal` helper commands

Open ErikBjare opened this issue 1 year ago • 1 comments

The idea is to move the helper scripts for prompt generation in gptme-bob into gptme.


[!IMPORTANT] Adds new CLI commands to gptme for generating git, workspace, and journal prompts, enhancing context generation capabilities.

  • New CLI Commands:
    • Adds prompts git command in gptme/util/cli.py for generating git repository summaries with options like --branch, --since, --max-files, and --show-diff.
    • Adds prompts workspace command in gptme/util/cli_context.py to display directory structure as a tree, respecting .gitignore.
    • Adds prompts journal command in gptme/util/cli_context.py to generate prompts from journal entries.
  • Functionality:
    • context_git() in cli_context.py gathers git status, diffs, and recent commits.
    • context_workspace() in cli_context.py shows directory structure and file statistics.
    • context_journal() in cli_context.py retrieves journal entries from specified directories.
  • Integration:
    • Updates get_workspace_prompt() in gptme/prompts.py to include references to prompts_git and prompts_workspace.

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

ErikBjare avatar Nov 23 '24 12:11 ErikBjare

:x: 1 Tests Failed:

Tests completed Failed Passed Skipped
86 1 85 0
View the top 1 failed tests by shortest run time
::tests.test_util_cli
Stack Traces | 0s run time
No failure message available

To view more test analytics, go to the Test Analytics Dashboard Got feedback? Let us know on Github

codecov-commenter avatar Nov 23 '24 12:11 codecov-commenter