Commit graph

826 commits

Author SHA1 Message Date
Nate
7e2f038fbb chore: packge-lock again 2025-08-27 11:25:04 -07:00
Nate
f3e26d121f chore: package-lock.json update 2025-08-27 11:10:34 -07:00
Jacob Kim
f27e7c71de
feat: add user-friendly way to toggle between FIM and next edit (#7355)
* feat: don't format when model is not mercury

* chore: bump

* fix: remove mercury-coder-nextedit

* refactor: remove refs to mercury-coder-nextedit

* feat: add util function for converting model name to enum

* refactor: add new types

* refactor: create an abstract base class for providers

* refactor: add child provider for instinct

* refactor: add provider for mercury coder

* refactor: provider factory

* refactor: use factory to create model providers based on helper.modelName

* refactor: clean up redundant logic to be more provider-friendly

* add buildPromptMetadata as an abstract method

* refactor: use handlebars and provider-specific template renderers

* refactor: use this.modelProvider instead of prompt engine

* refactor: remove redundant helper

* fix: update vitest after refactor

* feat: add test for convertNextEditModelNameToEnum

* fix: add isSecurityConcern imports

* feat: add functions to return next edit menu items and update config

* fix: get rid of callbacks

* feat: render next edit menu items

* fix: get rid of redundant completion request

* feat: update next edit status on vscode workspace config update, refactor out common logic

* feat: add continue.enableNextEdit

* feat: add aborted field to check for false positives

* fix: remove zetaDataset suffix

* feat: make sure that we are tracking completions

* feat: log aborts and move id generation to the top

* feat: all requests are tracked. when request is aborted, log as aborted with zero-value data. else, graduate it from pending completion and set aborted to false

* feat: add aborted to schema

* feat: add a toggleNextEditEnabled command

* feat: show (NE) in the status bar when next edit is enabled, add keymap

* feat: add command definitions for toggleNextEditEnabled

* refactor: handle validation in VsCodeExtension

* feat: check if model does not support next edit

* feat: use better menu item labels

* fix: casing

* chore: bump

* feat: add a function to disable next edit

* feat: disable next edit before e2e tests

* chore: bump

* fix: add a small delay to wait for UI loading

* fix: NE is shown for all statuses

* fix: wait for the NE to pop up

* fix: wait longer for disableNextEdit, clear potential next edit notifications

* fix: roll back clearAllNotifications

* fix: try disabling next edit before each

* fix: revert

* feat: add sane defaults when no workspace settings are set

* fix: fall back to false

* fix: debugging

* chore: change name

* fix: try waiting for text

* debug: more debug logs

* fix: clear notifs

* fix: suppress warning

* fix: string matching

* fix: jump label overlapping with the inline tip label (#7399)

* feat: add methods to temporarily hide and show tooltip

* feat: hide the inline tooltip when the jumpmanager's tooltip is shown

* feat: focus on chat input after apply

* revert

* fix: HOTFIX local assistant loading (#7354)

* fix: local assistant loading

* fix: no need for excluding .continue/.continue

* test: cases for config.yml and config.yaml names

* feat: remove hide/show logic for creating a new svgbuilder instance

* feat: use a new svgBuilder istance

* chore: update package-lock.json

---------

Co-authored-by: uinstinct <61635505+uinstinct@users.noreply.github.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
Co-authored-by: Ting-Wai <40179554+tingwai@users.noreply.github.com>

---------

Co-authored-by: uinstinct <61635505+uinstinct@users.noreply.github.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
Co-authored-by: Ting-Wai <40179554+tingwai@users.noreply.github.com>
2025-08-26 21:54:29 -04:00
Nate Sesti
1ae96a63dd
Update packages/config-yaml/src/__tests__/index.test.ts
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-08-25 15:26:43 -07:00
Nate
e19a88b80b chore: format 2025-08-25 15:15:16 -07:00
Nate
246db3607f feat: allow/blocklisted blocks in unrollAssistant 2025-08-25 15:14:56 -07:00
Nate Sesti
3846c1fe36
Merge branch 'main' into small-improvements 2025-08-24 13:17:14 -07:00
Nate
6bad79645e feat: resource monitoring 2025-08-24 13:07:40 -07:00
dependabot[bot]
8e78a60a72
chore(deps): bump form-data in /packages/continue-sdk/typescript
Bumps [form-data](https://github.com/form-data/form-data) from 4.0.2 to 4.0.4.
- [Release notes](https://github.com/form-data/form-data/releases)
- [Changelog](https://github.com/form-data/form-data/blob/master/CHANGELOG.md)
- [Commits](https://github.com/form-data/form-data/compare/v4.0.2...v4.0.4)

---
updated-dependencies:
- dependency-name: form-data
  dependency-version: 4.0.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-23 18:15:43 +00:00
Dallin Romney
3d5c517760
Merge pull request #7320 from continuedev/dependabot/npm_and_yarn/packages/continue-sdk/form-data-4.0.4
chore(deps): bump form-data from 4.0.2 to 4.0.4 in /packages/continue-sdk
2025-08-22 12:43:07 -07:00
Dallin Romney
5187b787d3
Merge pull request #7250 from uinstinct/env-config
feat: support env section in config yaml
2025-08-22 11:52:15 -07:00
dependabot[bot]
1850586fee
chore(deps): bump form-data in /packages/continue-sdk
Bumps [form-data](https://github.com/form-data/form-data) from 4.0.2 to 4.0.4.
- [Release notes](https://github.com/form-data/form-data/releases)
- [Changelog](https://github.com/form-data/form-data/blob/master/CHANGELOG.md)
- [Commits](https://github.com/form-data/form-data/compare/v4.0.2...v4.0.4)

---
updated-dependencies:
- dependency-name: form-data
  dependency-version: 4.0.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-22 18:47:06 +00:00
Nate
c38b8611a9 fix: node types in oai adapters 2025-08-22 08:58:32 -07:00
Nate
e99d472339 fix: don't filter when empty type on tool 2025-08-21 08:36:01 -07:00
Nate Sesti
791529d39e
Update packages/openai-adapters/src/util/gemini-types.ts
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-08-21 07:57:12 -07:00
Nate
eaa9a61ed2 fix: oai Headers 2025-08-20 22:47:04 -07:00
Nate
5e35518f92 fix type errors 2025-08-20 22:24:40 -07:00
Nate
dde2489c73 chore: format 2025-08-20 21:12:31 -07:00
Nate
ccb01f6643 fix tests 2025-08-20 21:09:39 -07:00
Nate
8164429214 fix: type errors 2025-08-20 20:02:24 -07:00
Nate
7d7500e7ad fix: bump oai adapters 2025-08-20 20:01:24 -07:00
uinstinct
14e83a9455 feat: support env section in config yaml 2025-08-20 11:45:52 +05:30
Tomasz Stefaniak
4b51607595
Merge pull request #7245 from continuedev/dallin/anthropic-caching-fix
fix: HOTFIX anthropic optimized caching strategy
2025-08-19 15:12:03 -07:00
Dallin Romney
f1afd14202 fix: anthropic optimized caching strategy 2025-08-19 14:56:06 -07:00
Tomasz Stefaniak
8ead72e314 fix: openai adapters 2025-08-19 13:34:25 -07:00
Jacob Kim
f5a69ea945 Merge branch 'main' of github.com:continuedev/continue into jacob/con-3563 2025-08-18 21:55:51 -07:00
Jacob Kim
60d0056a12 feat: add a non-stream method 2025-08-18 21:55:33 -07:00
Jacob Kim
e45171f786 feat: add overrides to handle /edit/completions requests 2025-08-18 18:51:46 -07:00
Dallin Romney
73fdf19de8
feat: rebrand assistants as agents (#7227)
* feat: rebrand assistants as agents

* fix: assitant-agent cleanup part 1

* fix: file references

* fix: missing file reference in config yaml tests

* chore: assistant -> agent cleanup
2025-08-18 16:25:30 -07:00
Patrick Erichsen
c1a47858f3
fix: rule colocation uri logic (#7164)
* fix: rule colocation uri logic

* rename to `fileUri`

* fix: type errors

* fix test mocks

* Update slugs.test.ts
2025-08-15 10:00:17 -07:00
Patrick Erichsen
3253c11821 add modelProvider to PromptLog 2025-08-13 22:06:01 -07:00
Patrick Erichsen
217aa2d265 fix: add missing modelProvider and modelName to nextEditWithHistory event
Adds missing modelProvider and modelName fields to make the schema
consistent with other dev data events.

Fixes CON-3402

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-12 20:50:15 -07:00
Patrick Erichsen
4307010ab1 fix: standardize modelName and add missing modelProvider in dev data schemas
- Rename modelTitle to modelName across all dev data schemas for consistency
- Add missing modelProvider field to chatFeedback event schema
- Fixes CON-3401 and CON-3400

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-12 20:47:09 -07:00
Dallin Romney
56cf2abf20
feat: Respect Org Policies (#7087)
* fix: allow no selected org, respect policy

* feat: respect policies in extension

* fix: config handler test

* fix: context providers test
2025-08-11 19:20:07 -07:00
Keerthana Panyam
bbc200f283
Merge branch 'main' into panyamkeerthana/current_file_context 2025-08-08 11:51:33 -04:00
Keerthana Panyam
8fe5077e60 move context restriction properties to model level autocompleteOptions
- added context restriction properties to model autocompleteOptions schema
- discarded changes to add global tabAutocompleteOptions to config schema
- added experimental parameters to both config-types.
- added YAML alternative note to json reference.
- updated YAML configuration example with per-model options.
- added reference documentation with parameters for autocomplete options.
2025-08-08 11:50:14 -04:00
Dallin Romney
b6f3ede6e1
Merge pull request #6781 from Jazzcort/fix-block-duplication
Fix: Remove duplicate blocks and provide config warnings
2025-08-07 13:51:11 -07:00
Dallin Romney
01812e598f
feat: gpt-5 support (#7054)
* fix: gpt-5 support

* fix: gpt 5 context length

* fix: broken test file
2025-08-07 13:36:26 -07:00
Jazzcort
bc3375e818 Fix: Remove duplicate blocks and provide config warnings
This patch is to address the following cases that duplicate blocks appear in
the UI and confuse users:

  1. When users refer to a local block with "- uses", if the block is
     already in the default directories (e.g. ~/.continue/models or
     <workspacea>/.continue/models) and users don't override its name
     attribute, the duplicate block will appear in the UI.

  2. When users have duplicate block names among each block type in their
     assistant config.

  3. When the injected blocks have duplicate names with the assistant config
     for the corresponding block type.

The duplicate blocks in the UI is confusing, especially in the model
selection.

This patch add a blockDuplicationDetector to detect duplication. When a
duplication is detected, we remove the duplicate item and push a config
error to the result to warn the users that having duplicate names is not
the best practice to set up their config.

The detecting order: assistant config -> injected blocks

To detect duplication, all block types use "name" as the identifier except
for rules and context. For rules, if it's an rule object, we use the "name"
attribute. Otherwise, we use its string content as the identifier. For
context, the "provider" attribute is used as the identifier.

The detection only happens under assistant level, which means you can have
assistants with duplicate names.
2025-08-07 14:53:54 -04:00
Jacob Kim
6a31f985b0 feat: add next_edit z.literal 2025-08-06 15:51:57 -07:00
Dallin Romney
3c16e46cc9
Merge pull request #6722 from continuedev/nate/anthropic-stop-reason
fix: increase default max_tokens for Anthropic API to 32k
2025-08-05 15:30:51 -07:00
Dallin Romney
5b0902894b fix: anthropic openai adapters max tokens 2025-08-05 14:35:16 -07:00
Keerthana Panyam
f1a6c8eb0c changing import from config-types package
importing from the built config-types package instead of its src/
2025-08-05 17:34:48 -04:00
Keerthana Panyam
97d426bf68 restrict autocomplete context from other files in config.yaml
added schema properties and tabAutocompleteOptions schema to
to support in YAML config file, allowing proper
override of default values from parameters.ts.

added .optional() tags to tabAutocompleteOptions properties to enable
partial override from the config.yaml file.
2025-08-05 17:34:48 -04:00
Dallin Romney
725e607f4e Merge branch 'main' of https://github.com/continuedev/continue into dependabot/npm_and_yarn/packages/openai-adapters/form-data-4.0.4 2025-08-05 13:54:00 -07:00
Dallin Romney
d4198e76ec
Merge pull request #6769 from continuedev/dallin/catch-hub-loading-errors
fix: catch hub org loading errors, fallback to local
2025-08-05 13:15:58 -07:00
Dallin Romney
5fb9b5f601
Merge branch 'main' into nate/anthropic-stop-reason 2025-08-05 12:48:09 -07:00
Aditya Mitra
217b463ede
fix: add maximum 4 cache control blocks for anthropic (#6937)
* add max 5 cache controls

* add tests

* use MAX_CACHING_MESSAGES instead
2025-08-05 09:06:14 -07:00
Tomasz Stefaniak
07166fbd7e Merge branch 'main' into pr/5961 2025-08-04 08:40:11 -07:00
Tomasz Stefaniak
f7412ba627
Fetch CA certificate tests (#6803)
* test: certificates

* fix: failing tests

* test: e2e

* fix: prettier

* improv: clean up code

* chore: update dependencies

* fix: type errors

* fix: formatting
2025-07-31 15:37:36 -07:00