Commit Graph

616 Commits

Author SHA1 Message Date
Matt Rubens
38f33de642 Fix bad matching bug with empty lines 2024-12-17 09:28:50 -05:00
Matt Rubens
800db618bb Strip line numbers from write_to_file 2024-12-17 09:28:37 -05:00
Matt Rubens
f5bd5fae09 Prompt tweak for gemini line numbers 2024-12-17 07:50:53 -05:00
Matt Rubens
7163b173e8 Fix test 2024-12-17 01:24:10 -05:00
Matt Rubens
792780e78d Go back to older prompt 2024-12-17 01:15:15 -05:00
Matt Rubens
7d6e04fbe8 Error formatting 2024-12-17 00:25:26 -05:00
Matt Rubens
85fd2fce4e Only output apply_diff error in chat if we fail to apply the diff to a file 2x in a row 2024-12-17 00:20:35 -05:00
Matt Rubens
eb56cac16b Do fuzzy match search from the middle out and expand window to 20 lines 2024-12-17 00:10:15 -05:00
Matt Rubens
06202be46f Remove debug checkbox 2024-12-16 22:58:04 -05:00
Matt Rubens
475776da98 Bugfix to strip line numbers with leading space 2024-12-16 17:45:00 -05:00
jquanton
8391111f7d Merge pull request #129 from RooVetGit/jq/sound-setting-improvements
Sound setting improvements
2024-12-16 14:30:02 -08:00
Matt Rubens
905c68dd9e Handle pure insertions and deletions with diffs 2024-12-16 16:50:45 -05:00
Justin Quan
bb5fababae Merge branch 'main' into jq/sound-setting-improvements 2024-12-16 11:00:17 -08:00
Matt Rubens
61b2104345 Fix bug where start/end line not passed to diff 2024-12-16 12:26:40 -05:00
Matt Rubens
c2b4b05459 Diff debugging 2024-12-16 12:19:44 -05:00
Justin Quan
42715c1db6 Merge branch 'main' into jq/sound-setting-improvements 2024-12-16 00:08:21 -08:00
Justin Quan
1adc36a292 add volume setting 2024-12-15 23:22:44 -08:00
Justin Quan
63c766f380 fix soundEnabled init bug 2024-12-15 19:47:13 -08:00
Matt Rubens
e6c79eff80 Instead of trusting the prompt, just strip line numbers from diff contents 2024-12-15 22:40:59 -05:00
Matt Rubens
4b27264a21 Revert "Merge pull request #125 from RooVetGit/search_replace_prompt_hotfix"
This reverts commit 7d7a8563b7, reversing
changes made to 868f4cddc9.
2024-12-15 22:38:21 -05:00
Matt Rubens
0c08c0fe96 Search/replace prompt hotfix for Gemini 2024-12-15 21:00:15 -05:00
Matt Rubens
24474683f4 Fix test 2024-12-15 19:56:11 -05:00
Matt Rubens
c1dfdeda22 Better error messages for diffs 2024-12-15 19:48:55 -05:00
Matt Rubens
25da0b1907 Negative indentation 2024-12-15 16:53:48 -05:00
Matt Rubens
8159c51b03 Update omission format and keywords 2024-12-15 15:42:37 -05:00
Matt Rubens
468d317f2f More indentation tests 2024-12-15 15:28:24 -05:00
Matt Rubens
e4c23fb61d Prioritize exact line matches in search/replace 2024-12-15 15:19:58 -05:00
Matt Rubens
2292372e42 Improvements to search/replace diff 2024-12-14 20:45:06 -05:00
Matt Rubens
f3b77c9c62 Support fuzzy matching for apply_diff 2024-12-14 13:52:47 -05:00
Matt Rubens
3d7ff32406 Allow enabling/disabling of MCP servers 2024-12-14 01:39:25 -05:00
Matt Rubens
b2c8805e5b Update the prompt to encourage diff edits when the box is checked 2024-12-13 23:31:01 -05:00
Matt Rubens
23efdeaf35 More safety around always allowing MCP 2024-12-13 17:32:26 -05:00
Matt Rubens
1346f1280c MCP checkbox for always allow 2024-12-13 16:14:13 -05:00
Matt Rubens
6ee118e0a2 Merge pull request #86 from RooVetGit/fix-openai-compatible-streaming
Add 'Include stream options' checkbox for OpenAI-compatible providers
2024-12-13 01:41:15 -05:00
Matt Rubens
77d7fc0a44 Fix indentation bug with diff replacing a single search line 2024-12-13 00:05:23 -05:00
Matt Rubens
be3d8a6166 Incorporate MCP changes (#93)
Co-authored-by: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com>
2024-12-12 23:16:39 -05:00
Matt Rubens
2cfd76c305 Add 'Include stream options' checkbox for OpenAI-compatible providers 2024-12-12 09:20:58 -05:00
Matt Rubens
156cab8cbc Fix: Add checkbox for stream_options in OpenAI-compatible providers 2024-12-12 08:58:38 -05:00
Matt Rubens
0e0c848a96 Fix Gemini 2.0 context window 2024-12-11 14:02:54 -05:00
Matt Rubens
38fe812995 Merge pull request #74 from RooVetGit/gemini_2
Add Gemini 2.0
2024-12-11 13:52:52 -05:00
Matt Rubens
65bbefed55 Add Gemini 2.0 2024-12-11 13:36:46 -05:00
Matt Rubens
20c7c575e2 Merge pull request #66 from RooVetGit/alert-autofix-1
Fix code scanning alert no. 1: Incomplete URL substring sanitization
2024-12-11 13:03:55 -05:00
Matt Rubens
6092a718fc Merge pull request #73 from RooVetGit/stop_appending_newline_with_diff
Stop appending newlines to files when applying diffs
2024-12-11 13:03:44 -05:00
Matt Rubens
413f10650f Stop appending newlines to files when applying diffs 2024-12-11 12:42:14 -05:00
Matt Rubens
355dc822dd Better error handling when unable to apply diffs (#71) 2024-12-11 11:20:01 -05:00
lloydchang
9abe3f6916 fix(openai.ts): default to an empty string if undefined
Change:

const urlHost = new URL(this.options.openAiBaseUrl).host;

To:

const urlHost = new URL(this.options.openAiBaseUrl ?? "").host;

because the nullish coalescing operator (??) to default to an empty string if this.options.openAiBaseUrl is undefined.

It ensures that the URL constructor always receives a valid string.
2024-12-11 02:37:26 -08:00
lloydchang
7c870733a1 Fix code scanning alert no. 1: Incomplete URL substring sanitization
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2024-12-11 02:18:04 -08:00
Matt Rubens
ba8bed90d8 Handle Windows line endings (#62) 2024-12-10 20:24:51 -05:00
Matt Rubens
6e1f6833b8 Add a search-and-replace diff strategy (#57) 2024-12-10 12:44:38 -05:00
Matt Rubens
da31a23499 Create a structure for different diff strategies, starting with unified (#55) 2024-12-09 11:04:40 -05:00