Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/interractive_4 #16

Merged
merged 63 commits into from
Sep 7, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
9165a8c
first_phase_refactoring
raphaelmansuy Jul 28, 2024
9e8a038
add nice print help
raphaelmansuy Jul 28, 2024
c74960c
update
raphaelmansuy Jul 28, 2024
570a373
fix(code2prompt): r(code2prompt): improve token price display
raphaelmansuy Jul 28, 2024
b5fbaa3
update
raphaelmansuy Jul 28, 2024
42ae80c
fix(.): r: remove unused imports and variables
raphaelmansuy Jul 28, 2024
3ef9bfe
fix: Improve README.md
raphaelmansuy Aug 24, 2024
d1f9b71
docs: Improve documentation for code2prompt/main.py
raphaelmansuy Aug 24, 2024
72ce9c8
feat: Add improvements.md file with suggested enhancements
raphaelmansuy Aug 24, 2024
cfa13f5
feat: Implement logging in critical areas of the code
raphaelmansuy Aug 24, 2024
c91320e
fix: Add log_error function to logging_utils
raphaelmansuy Aug 24, 2024
b951687
fix: Add log_output_created function to logging_utils.py
raphaelmansuy Aug 24, 2024
d0227b5
feat: Add log_clipboard_copy and log_token_count functions to logging…
raphaelmansuy Aug 24, 2024
d557fcd
feat: Add colored logging to the terminal
raphaelmansuy Aug 24, 2024
f55647f
feat: Add log level configuration in command line
raphaelmansuy Aug 24, 2024
b1f8bd8
feat: Add logging level configuration to .code2promptrc and analyze-c…
raphaelmansuy Aug 24, 2024
e3c1205
feat: Improve log message formatting
raphaelmansuy Aug 24, 2024
5bb1013
fix: Add stderr logging for clipboard copy success and failure
raphaelmansuy Aug 24, 2024
85afefe
fix: Set default log level to WARNING
raphaelmansuy Aug 24, 2024
9f52995
feat: Add color and emoji to clipboard copy success message
raphaelmansuy Aug 24, 2024
ec47bd1
feat: Add header to token price estimation output
raphaelmansuy Aug 24, 2024
453a2ea
fix: Correct token price output formatting
raphaelmansuy Aug 24, 2024
39bdab1
fix: Correct the order of input and output prices in log_token_prices…
raphaelmansuy Aug 24, 2024
4b321af
fix: Correct the order of "In" and "Out" tokens in the log_token_pric…
raphaelmansuy Aug 24, 2024
7d4973d
fix: Correct the formatting of the token price table
raphaelmansuy Aug 24, 2024
1be2b52
fix/aider(.gitignore): add .aider* to ignore file
raphaelmansuy Aug 24, 2024
e95d273
fix(code2prompt): update main.py file
raphaelmansuy Aug 24, 2024
3d51b47
fix(gitignore): add .ruff_cache to gitignore
raphaelmansuy Sep 5, 2024
a41b786
first version
raphaelmansuy Sep 6, 2024
337052c
better version
raphaelmansuy Sep 6, 2024
054c3dd
fix(code2prompt): enhance interactive command with improved cursor na…
raphaelmansuy Sep 6, 2024
7ec488c
fix(code2prompt): add terminal resize handling and improve instructions
raphaelmansuy Sep 6, 2024
290bf28
fix(code2prompt): move interactive_command.py to commands directory
raphaelmansuy Sep 6, 2024
110dae2
fix(include_loader): import jinja2 to resolve undefined name error
raphaelmansuy Sep 6, 2024
6cc5b02
fix(code2prompt/utils): Improve logging and file processing criteria
raphaelmansuy Sep 6, 2024
2593772
fix(code2prompt/commands): improve `get_terminal_height`, `get_direct…
raphaelmansuy Sep 6, 2024
95d73cb
fix(code2prompt/commands): improve interactive command page up and do…
raphaelmansuy Sep 6, 2024
4c2baaa
fix(code2prompt): add interactive file selector for generate command
raphaelmansuy Sep 6, 2024
d57b53b
fix(code2prompt/commands): Refactored interactive file selector, adde…
raphaelmansuy Sep 6, 2024
65f5cbe
fix(code2prompt): Refactor InteractiveFileSelector to handle multiple…
raphaelmansuy Sep 6, 2024
bb8bdb1
fix(code2prompt/commands): improve interactive file selector responsi…
raphaelmansuy Sep 6, 2024
62ff5c0
fix(code2prompt): Introduce file_path_retriever module to handle file…
raphaelmansuy Sep 6, 2024
1313214
fix(code2prompt/commands): improve code organization and documentatio…
raphaelmansuy Sep 7, 2024
8167c27
fix(code2prompt): Improve performance of `_get_directory_tree` method…
raphaelmansuy Sep 7, 2024
8b910e0
fix(code2prompt/commands): handle invalid or missing paths in interac…
raphaelmansuy Sep 7, 2024
a8bb1b4
fix(code2prompt/commands): create and use private methods to handle k…
raphaelmansuy Sep 7, 2024
2bb7d41
fix(code2prompt/commands): update interactive file selector to use Pa…
raphaelmansuy Sep 7, 2024
9a97ed2
fix(code2prompt): improve interactive file selector behavior
raphaelmansuy Sep 7, 2024
78db749
fix(code2prompt/commands): improve directory tree generation and form…
raphaelmansuy Sep 7, 2024
ec83078
fix(code2prompt/commands): improve interactive file selector
raphaelmansuy Sep 7, 2024
3a52368
fix(code2prompt/commands): use set instead of list for selected_files…
raphaelmansuy Sep 7, 2024
97d5bf9
fix(code2prompt/commands): improve interactive file selector formatti…
raphaelmansuy Sep 7, 2024
99bb436
fix(code2prompt/core): Enhance file path retrieval logic
raphaelmansuy Sep 7, 2024
34313c0
fix(code2prompt): improve file selection functionality
raphaelmansuy Sep 7, 2024
897d29a
fix(code2prompt): add full paths to interactive file selector
raphaelmansuy Sep 7, 2024
cf26104
fix(code2prompt/commands): improve directory tree formatting and hand…
raphaelmansuy Sep 7, 2024
3472853
fix(code2prompt/commands): use the full path for the current item in …
raphaelmansuy Sep 7, 2024
d409d0f
fix(code2prompt/commands): improve interactive file selector
raphaelmansuy Sep 7, 2024
1c3b459
fix(code2prompt/commands): Improve interactive file selector function…
raphaelmansuy Sep 7, 2024
380d26a
fix(code2prompt/commands): improve file selector handling of director…
raphaelmansuy Sep 7, 2024
10dce48
fix(code2prompt): refactor file processing and add interactive file s…
raphaelmansuy Sep 7, 2024
d5860e8
fix(code2prompt/commands): display token count and price information …
raphaelmansuy Sep 7, 2024
d3d4c12
fix(code2prompt): add check for empty file paths before processing
raphaelmansuy Sep 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: Add logging level configuration to .code2promptrc and analyze-c…
…ode.j2
  • Loading branch information
raphaelmansuy committed Aug 24, 2024
commit b1f8bd8c8c4b3c375cd62e6300d8a1844b4e41c6
8 changes: 6 additions & 2 deletions .code2promptrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"suppress_comments": false,
"line_number": false
}
"line_number": false,
"log_level": "INFO",
"encoding": "cl100k_base",
"filter": "*.py,*.js",
"exclude": "tests/*,docs/*"
}
6 changes: 5 additions & 1 deletion code2prompt/templates/analyze-code.j2
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ You are a world-class software architect and code quality expert with decades of
- Suggest collaborative approaches and tools to facilitate the improvement process
- Consider the impact of proposed changes on the entire software development lifecycle

## Logging Level Configuration

To configure the log level in the command line, you can use the `--log-level` option when running the `code2prompt` command. This option allows you to specify the desired logging level, such as DEBUG, INFO, WARNING, ERROR, or CRITICAL.

## Reflection and Continuous Improvement

After completing the analysis and plan:
Expand Down Expand Up @@ -107,4 +111,4 @@ Remember, your goal is to provide a transformative yet pragmatic roadmap that el
{% endfor %}
</code>

</codebase>
</codebase>