421 Commits

Author SHA1 Message Date
Christopher Brewin
8067cb0240
fix(file_selector): empty buffer and chat without file context. (#953) 2024-12-18 19:22:40 +08:00
yetone
dde035831a
fix(ci): lua lint (#960) 2024-12-17 20:47:52 +08:00
Michael Gendy
e98fa46bec
feat(tokens): add token count display to sidebar (#956)
* feat (tokens) add token count display to sidebar

* refactor: calculate the real tokens and reuse input hints to avoid occlusion

---------

Co-authored-by: yetone <yetoneful@gmail.com>
2024-12-17 20:43:25 +08:00
Christopher Brewin
e612ad7566
feat(file_selector): command for switching the file picker provider. (#958) 2024-12-17 19:29:28 +08:00
yetone
9e0b5bf8f1
fix(ci): lua style (#948) 2024-12-13 23:24:29 +08:00
yetone
4d1447b62f
fix: also filter out selected files when using fzf and telescope (#947) 2024-12-13 23:23:16 +08:00
yetone
1516ce093a
fix(ci): lua style (#946) 2024-12-13 23:05:44 +08:00
Alexander Muratov
eb1bc657a1
refactor & fix: improve libraries initialization (#921)
* refactor(libs): extract libraries initialization

Extract initialization logic into separate functions
for better error handling and reusability.

* fix(libs): improve core libraries init

This change helps prevent runtime errors from uninitialized libraries.
2024-12-13 23:00:43 +08:00
Maddison Hellstrom
b102f673c4
feat(AvanteClear): accept args to clear history, memory or cache (#930)
* chore: extract sidebar clear history/memory functions

* feat(AvanteClear): accept args to clear history, memory or cache

Usage:
```
:AvanteClear [history|memory|cache]
```

- changed default behavior from clearing the cache to clearing history.
- added args to clear history, memory or cache.
- added confirm dialog before clearing cache.
2024-12-13 22:59:09 +08:00
Fernando Freire
5c20cc1779
feat(context): add current buffer to selected file ctx (#941) 2024-12-13 22:57:42 +08:00
Aaron Lifton
a1da07097d
feat: allow configurable file select provider (#944)
- add file_selector config
- add providers for fzf and telescope
2024-12-13 22:55:36 +08:00
Christopher Brewin
4d6f8e65fb
feat (sidebar) nvim-web-devicons support files with multiple dots and use default for unknown file types. (#943) 2024-12-13 22:54:16 +08:00
Christopher Brewin
78dd9b0a6d
feat(context): add a ui for selecting and adding files to the sidebar as context (#912)
* feat(sidebar): supports select files

chore (context) update add type annotations to context functions

chore (sidebar) remove unused notify function call

refactor (sidebar) remove setting search file to file path

chore (sidebar) remove nvim_notify debugging api call

* feat (files) allow selecting a file by string via cmp suggestion menu

* chore (context) refactor to allow context using @file with a context view

* refactor (context) refactor seletected file types as an array of path and content

* refactor (config) remove unused configuration options

* refactor (sidebar) remove unused unbild key

* refactor (context) remove unused imports

* refactor (mentions) update mentions to support items with callback functions and removal of the underlying selection.

* fix (sidebar) add file context as a window that is visitable via the tab key

* refactor (file_content) remove file content as an input to llm

* feat (sidebar) support suggesting and applying code in all languages that are in the context

* feat (sidebar) configurable mapping for removing a file from the context.

* feat (context_view) configure hints for the context view for adding and deleting a file.

* feat (context) add hints for the context view.

* fix (sidebar) type when scrolling the results buffer.

* refactor (selected files) refactor llm stream to accept an array of selected file metadata

* refactor: context => selected_files

---------

Co-authored-by: yetone <yetoneful@gmail.com>
2024-12-12 01:29:10 +08:00
Zhéyuán Chén
a3447bd497
Add missing FILEPATH tag in planning.avanterules (#934) 2024-12-11 17:02:24 +08:00
yetone
4464b7f4ae
fix: load path (#926) 2024-12-06 01:35:33 +08:00
msvechla
6206998f24
chore: allow to pass raw curl args (#920)
This can be used to pass additional arguments to curl, which can be
helpful when working on new providers like bedrock, that can use curl
arguments for authorization.
2024-12-04 18:57:07 +08:00
Arkuna
57311bf8cd
fix: Get copilot refresh token asynchronously (#918) 2024-12-01 14:00:42 +08:00
Radosław Woźniak
97f04f87f5
fix(suggestions): cleanup response to ensure JSON (#900)
LLM is not always smart enough to follow the prompt
2024-11-25 20:26:59 +08:00
Jay Zhang
7413d5a508
fix: avoid ignorable error in ubuntu 22.04+ (#903) 2024-11-25 20:26:23 +08:00
Christopher Brewin
4c9dd65600
fix (prompt_input) limit the miximum row offset for hint text in floating prompt windows to the height of the window. (#904) 2024-11-25 20:24:59 +08:00
Radosław Woźniak
890fd92594
feat(repo_map): add elixir support (#894) 2024-11-24 17:29:30 +08:00
Aaron Batilo
e60ccd2db4
feat: enable streaming for o1 models (#896)
As of a few days ago, o1 models support streaming responses. Please see:
https://community.openai.com/t/openai-o1-streaming-now-available-api-access-for-tiers-1-5/1025430
2024-11-24 17:28:27 +08:00
yetone
c8e688a0ac
feat: format diagnostic (#895) 2024-11-24 06:02:34 +08:00
yetone
5e6d3368f7
fix: diff insert (#893) 2024-11-24 05:10:09 +08:00
yetone
67e946ef13
fix: diagnostics lnum starts with 1 (#892) 2024-11-23 23:08:10 +08:00
yetone
9042f5f202
feat: enable diagnostics (#891) 2024-11-23 21:49:33 +08:00
Christopher Brewin
d14b2290d1
fix(sidebar): apply windows.wrap setting to code split and input split (#789) 2024-11-23 20:27:00 +08:00
yetone
9d0e1cd4af
fix: align lua oop (#889) 2024-11-23 20:23:05 +08:00
Christopher Brewin
da41105fc8
fix (sidebar) only display apply ext marks for codeblocks that can be applied (#883) 2024-11-23 12:48:21 +08:00
Shourya Sharma
9d2599df4d
refactor: ♻️ Updated API parsing logic for vertex AI to throw specific error (#887)
Co-authored-by: Shourya Sharma <shourya.sharma@complyadvantage.com>
2024-11-23 12:47:29 +08:00
Will Lynas
341ecd2073
feat: minimal diff (#583)
* Add minimize_diff option and add dummy function

* fix: minimize snippets

---------

Co-authored-by: yetone <yetoneful@gmail.com>
2024-11-21 16:16:32 +08:00
yetone
2863473bbf
fix: do not ignore curl error (#877) 2024-11-20 01:33:28 +08:00
yetone
56ebcad7a8
fix: must not be called in a lua loop (#876) 2024-11-20 01:29:55 +08:00
yetone
5dd42548d4
fix: use relative path (#875) 2024-11-19 23:52:53 +08:00
yetone
3c010e38ac
feat: update copilot model version (#872) 2024-11-19 06:25:17 +08:00
yetone
3beed68157
fix: copilot url join (#871) 2024-11-19 06:20:42 +08:00
yetone
e65be50a0a
fix: claude parse response (#870) 2024-11-19 06:03:03 +08:00
yetone
c551bbe5b6
fix: cmp slash commands disappeared (#869) 2024-11-19 06:01:50 +08:00
yetone
cf2312abbc
fix: provider must be set (#868) 2024-11-19 05:14:04 +08:00
yetone
3b390040f5
refactor: chat history based on project (#867) 2024-11-18 18:07:33 +08:00
Xinyao(Alvin) Sun
87885a4530
fix(docs): correct typo in README and config.lua (#863) 2024-11-18 02:56:20 +08:00
yetone
0b1cd5509e
fix: incorrect filepath (#865) 2024-11-18 02:55:44 +08:00
Xinyao(Alvin) Sun
3051bfdf24
feat: add Dual Boost Mode for Enhanced LLM Responses with Multi-Provider Support (#854) 2024-11-17 15:54:01 +08:00
yetone
9891b03656
fix(openai): user and assistant roles should be alternating (#859) 2024-11-17 03:49:02 +08:00
yetone
ff85b9c1e2
refactor: remove redundant local field to facilitate provider configuration (#858) 2024-11-17 02:55:40 +08:00
yetone
4acdcb6e8b
fix: provider inherited_from (#857) 2024-11-17 01:09:33 +08:00
yetone
dfc51b3247
feat: add url_join (#856) 2024-11-17 00:39:03 +08:00
yetone
a3e5053d55
fix: preset vendors missing many fields (#851) 2024-11-16 02:09:14 +08:00
yetone
7bab283616
fix: auto_apply_diff_after_generation (#849) 2024-11-16 01:02:38 +08:00
Shourya Sharma
839a8ee25a
feat: Added vertex AI provider for orgs using gemini (#840)
Co-authored-by: Shourya Sharma <shourya.sharma@complyadvantage.com>
2024-11-15 00:34:58 +08:00