23 Commits

Author SHA1 Message Date
76ff6af6d5
Improve diff truncation for LLM integration
- Adds smart diff truncation to preserve file headers and context.
- Implements per-file budget for truncation to avoid losing important information.
- Reports the original and truncated diff sizes to the user.
- Adds a summary of changed files when truncating.
- Improves the truncation message to be more informative.
2025-03-26 14:45:44 -03:00
1cb2d03f35
Merge branch 'master' of gitlab.com:rogs/forge-llm 2025-03-26 14:33:12 -03:00
12d78dac85
Add configurable git diff truncation size
- Adds `forge-llm-max-diff-size` to control diff truncation.
- Truncation now uses the new variable instead of a hardcoded limit.
- Adds a message to the truncated diff indicating the size limit.
- Provides a helpful message to the user if truncation occurs.
2025-03-26 14:32:43 -03:00
9fa2b4c242
Refine LLM PR description prompt
- Clarify instructions for the LLM to generate PR descriptions.
- Emphasize adherence to the PR template structure.
- Remove unnecessary constraints on the LLM's response.
- Improve clarity regarding handling of inapplicable sections.
2025-03-26 14:27:04 -03:00
a0b339fc63
Returning back to normal 2025-03-16 19:32:37 -03:00
1f0fafe3e7
Testing the lint 2025-03-16 19:30:03 -03:00
2567a58e6f
Fixed complie error 2025-03-16 19:19:40 -03:00
db4cb45b58
Testing CI 2025-03-16 19:16:58 -03:00
dbc0deb924
Fixed reserved sequence keybinding 2025-03-16 17:43:24 -03:00
c3ec52f2ea
Fixed unescaped single quotes 2025-03-16 17:39:30 -03:00
dee374ed16
Update keybindings for PR description generation
- Added key bindings for generating PR descriptions in a separate buffer, at point, and inserting PR templates at point.
- Set up Doom Emacs keybindings if Doom is detected.
- Updated key bindings for localleader style in Doom Emacs.
- Removed unnecessary key binding.
- Enhanced the functionality of the key bindings for easier access and use.
2025-03-14 16:03:20 -03:00
b5532bc445
Added better docs to the forge-llm package 2025-03-12 20:28:01 -03:00
5df6d5deda
Removed code duplication and improved code 2025-03-12 16:41:00 -03:00
1b9389d5d5
Removed debug functions forge-llm-hello and forge-llm-debug 2025-03-12 16:24:33 -03:00
9331725d2f
Added Copyright and GNU GPLv3 license 2025-03-12 16:22:55 -03:00
f7813bd2bd
Added function to generate PR description at point 2025-03-12 16:20:58 -03:00
51e1c259d8
Correctly picking up the PR description now, it's working! 2025-03-12 16:07:33 -03:00
3207ebd80c
Added LLM generation for PRs 2025-03-12 15:57:46 -03:00
48dd6f3aee
Add PR template handling
- Added a custom variable for storing the PR template path.
- Implemented a function to find the PR template path in the repository.
- Implemented a function to insert the PR template at the current point in the buffer.
- Updated the default mode for Forge pull request buffers to 'forge-post-mode'.
2025-03-12 15:38:49 -03:00
c6fe9d097d
Add streaming LLM support for story generation 2025-03-12 15:08:33 -03:00
98b33276ba
Add LLM integration for generating short stories in Forge pull request buffers, as test 2025-03-12 14:51:32 -03:00
b768e207db
Display pull request branch information and show git diff in a Forge PR buffer
- Added a buffer with the git diff in a Forge PR buffer.
2025-03-12 14:06:58 -03:00
7a7fc2e09d
Initial commit 2025-03-12 13:58:35 -03:00