Commit graph

94 commits

Author SHA1 Message Date
Saoud Rizwan
f555b83c7c Revert "Sonnet: Make Separate Thinking Model (#2031)"
This reverts commit 29c01eb7d3.
2025-02-28 23:04:20 -08:00
Evan
29c01eb7d3
Sonnet: Make Separate Thinking Model (#2031)
* make thinking model separate and remove UI slider

* use constant for min budget tokens

* changeset
2025-02-28 22:36:02 -08:00
Evan
df7b458229
Sonnet, Give Me a Reason (#1961)
* wip

* added slider for setting reasoning budget tokens

* refactor out generic slider component; improve styling; add debounce

* added setting validation

* styling and adding reasoning level

* changeset

* make change to trigger test rerun

* revert useless comment
2025-02-28 18:16:56 -08:00
Daniel Trugman
d6184e9dac
OpenAI & DeepSeek cost calculation (#1864)
* Add OpenAI compatible cost calculation

* Requesty: Prepare for correct price calculation

* Native OpenAI: Update model caching info

According to [OpenAI's
website](https://platform.openai.com/docs/guides/prompt-caching),
gpt-4o, gpt-4o-mini, o1-preview and o1-mini support caching.

For gpt-4o, even though gpt-4o-2024-05-13 and
chatgpt-4o-latest do no support caching, users will see there are no
cached tokens, which will help avoid confusion.

* Native OpenAI: Call getModel once

* Native OpenAI: Extract yield usage into method

* Native OpenAI: Add caching and cost info to task header

* DeepSeek: Add cost info to task header

* Add changeset
2025-02-28 11:25:17 -08:00
Saoud Rizwan
f14542d61f Revert "Everyone Gets a Timeout (#1889)"
This reverts commit 87670a37b8.
2025-02-24 18:13:59 -08:00
Evan
87670a37b8
Everyone Gets a Timeout (#1889)
* timeouts for individual servers

* changeset

* remove logger

* use const and descriptive function for time settings
2025-02-24 13:53:29 -08:00
Saoud Rizwan
d67c7e36da
Add git context mention (#1806)
* Add git context mention

* Fix context mention highlight

* Create long-guests-occur.md
2025-02-14 19:03:11 -08:00
Matt Rubens
10b8ee4f54
Fix bug when shell profile is not found (#1671) 2025-02-06 12:12:25 -08:00
canvrno
5fd60b7000
Refactor Shell Detection to Use VS Code Terminal Profiles and Fallback Hierarchy (#1543)
* Provide explicit command chaining instructions

* Added shell detection for powershell
The default-shell library being used only returns cmd for windows users. This change will utilize VS Code API calls to determine the user's shell/terminal settings. MacOS & Linux will, for now, continue to use the existing method. Still working on tests.

* Replaced default-shell, added tests
Replaced default-shell with local code that replicates the old behavior on macOS & Linux
Windows shell detection uses VS Code settings to get the user's default terminal profile
Adjusted prompt change

* One small change

* Removed & attributed old package + typo

* Added VSC load for other OSes, refactor, better tests

* Fixed system.ts explicit git lines

* Added back changes for terminal-command-chaining

* One minor, but important change
2025-02-01 16:32:06 -08:00
Saoud Rizwan
25cd7cc8e2 chore: Prettier fix formatting 2025-01-06 12:41:33 -08:00
Saoud Rizwan
9de7253998 refactor: code cleanup, formatting updates, improved workspace handling, checkpoints feature
Add instructions

Fix completion

Refactor

Rename reset to restore

add haschanges flag

Remove log

Better error handling

Better error handling

Fix wording

Fix

Fix

Fix

Comment

Add hash for only latest tool

Prepare for release

Fix

Fix delete

Format fix
2025-01-06 12:40:30 -08:00
Saoud Rizwan
f770487695 Improve diff editing prompts to avoid common deepseek issues 2024-12-28 13:21:12 -08:00
Saoud Rizwan
897de134f7 Add tests and fix configuration 2024-12-24 18:37:12 -08:00
Saoud Rizwan
06dab2c3df Use should for better test readability 2024-12-24 18:11:11 -08:00
Saoud Rizwan
d8080d7209 Fix test configuration and add basic tests 2024-12-24 17:34:18 -08:00
Mark Percival
93e70c62f1
Chore: Prettier for consistant formatting (#794)
* Chore: Pretier for consistant formatting

- TODO: This PR needs to be updated by Saoud after he runs `npm install` & `npm format:fix` and commits the results of the prettier changes.

* Revert prettier config

* Run npm install

* Fix prettier config and ignore package lock

* Run format

---------

Co-authored-by: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com>
2024-11-21 13:13:54 -08:00
Saoud Rizwan
c04dfc76cb Misc refactor cline 2024-10-09 01:49:59 -04:00
Saoud Rizwan
f6a14fdfb9 Add markdown rendering for model description; fixes 2024-10-09 01:49:57 -04:00
Saoud Rizwan
ab327e3bbf Refactor util functions out of claude dev 2024-10-09 01:49:55 -04:00
Saoud Rizwan
2b63b91bfb Refactor out file helpers into fs.ts 2024-10-09 01:49:55 -04:00
Saoud Rizwan
1cc3546b7e Initial streaming refactor 2024-10-09 01:49:54 -04:00
Saoud Rizwan
40f7942801 Refactor out of utils 2024-09-24 11:45:12 -04:00
Saoud Rizwan
7c21a4c833 Refactor out of utils 2024-09-24 11:36:37 -04:00
Saoud Rizwan
98441bf98c Refactor theme 2024-09-24 11:24:57 -04:00
Saoud Rizwan
24bad56785 Refactor services 2024-09-24 11:15:24 -04:00
Saoud Rizwan
a009c84597 Refactor API 2024-09-24 10:43:31 -04:00
Saoud Rizwan
fd2472de3b Add comments 2024-09-22 20:56:34 -04:00
Saoud Rizwan
b5ca470ebf Use safe path comparison 2024-09-22 20:05:38 -04:00
Saoud Rizwan
69e681ebce Normalize all file paths to posix format when presenting to AI or user 2024-09-22 19:20:10 -04:00
Saoud Rizwan
3bd09e4e1b Fallback to fullpage when page dimensions arent available 2024-09-22 08:18:02 -04:00
Saoud Rizwan
1528aeb3dd Fallback to body if documentElement not available 2024-09-22 07:42:50 -04:00
Saoud Rizwan
47d5902ef9 Fix screenshot options 2024-09-21 16:28:06 -04:00
Saoud Rizwan
46ceafa016 Close browser even if screenshot fails; handle case where webp screenshot fails 2024-09-21 16:24:59 -04:00
Saoud Rizwan
2e272a1ad3 Wait for html to stabilize before considering page loaded 2024-09-21 16:01:34 -04:00
Saoud Rizwan
99a82e5563 Use networkidle0 for inspect_site 2024-09-21 15:34:14 -04:00
Saoud Rizwan
2e865f32fe Prepare for release 2024-09-21 11:50:25 -04:00
Saoud Rizwan
f7d12a3e02 Add inspect_site tool 2024-09-21 10:54:20 -04:00
Saoud Rizwan
f282df604a Send only new errors to claude after he applies an edit 2024-09-20 16:23:43 -04:00
Saoud Rizwan
5fbb335bb6 Refactor 2024-09-19 16:49:31 -04:00
Saoud Rizwan
826ee28fc1 Minor fixes 2024-09-19 15:17:24 -04:00
Saoud Rizwan
73f082bf98 Use a single browser instance to scrape multiple sites 2024-09-19 12:44:11 -04:00
Saoud Rizwan
ccb5b9bf21 Minor fixes 2024-09-18 23:37:47 -04:00
Saoud Rizwan
b7617e5f2a use isbinaryfile to more safely read contents of folders and files 2024-09-18 22:32:38 -04:00
Saoud Rizwan
554da736d4 Show error message when url scraping fails; update mention regex to allow trailing punctuation 2024-09-18 22:06:27 -04:00
Saoud Rizwan
250882c4a2 Minor fixes 2024-09-18 21:16:28 -04:00
Saoud Rizwan
eec51ad270 Wait for domcontentloaded and networkidle2 to determine when page is loaded 2024-09-18 21:11:28 -04:00
Saoud Rizwan
a477eadd77 Minor fixes 2024-09-18 20:44:03 -04:00
Saoud Rizwan
b7dabb8d9e Implement parseMentions 2024-09-18 18:53:46 -04:00
Saoud Rizwan
ee8e64eece Only initialize puppeteer if user mentions url 2024-09-18 17:42:15 -04:00
Saoud Rizwan
e3144996fb Add URL scraping with puppeteer 2024-09-18 17:28:25 -04:00