Commit graph

221 commits

Author SHA1 Message Date
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
Jacob Kim
c2231a9366
refactor: code cleanup for next edit (#7312)
* 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
2025-08-22 17:44:37 -04:00
Dallin Romney
400fefc1e3 fix: prevent security file reads cleanup 2025-08-21 14:18:53 -07:00
Dallin Romney
30c4cc1469 feat: prevent unsafe file reads 2025-08-21 13:40:03 -07:00
Jacob Kim
83b5a3c14f
feat: wrap each recently viewed code snippet inside a token block (#7269)
* feat: wrap each recently viewed code snippet inside a token block

* fix: update vitest

* fix: update test
2025-08-20 21:00:32 -04:00
Jacob Kim
c37c8111f7
feat: check for model before using full file diffs (#7222)
* fix: Excerpts -> Excerpt

* fix: test for Excerpt instead of Excerpts

* feat: add a public method to update usingFullFIleDiff

* feat: use full file diff for mercury only

* chore: remove console.log

* docs: add jsdocs

* refactor: use enums and const
2025-08-19 14:35:54 -04:00
Jacob Kim
c766bb060b
feat: fix the next edit provider to use the new edit endpoint (#7233)
* feat: handle new model output format

* feat: remove trailing user prompt
2025-08-19 03:22:35 -04: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
14e73dd6ad feat: only send user prompt 2025-08-18 21:53:53 -07:00
Jacob Kim
1e7aeeabbc feat: add prompt generation templates for mercury-coder 2025-08-18 18:53:19 -07:00
Jacob Kim
0358717d06 feat: use enums instead of strings 2025-08-18 18:52:56 -07:00
Jacob Kim
2efdf38a17 feat: add mercury-coder specific constants 2025-08-18 18:52:08 -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
Jacob Kim
6430a84c5c
fix: next edit renders that should render decorations will render them properly (#7160)
* fix: passing next edit requests will render things

* chore: remove comment

* feat: skip whitespace only deletions

* feat: add a utility function for checking if a diff is a whitespace only deletion

* feat: add test for next edit utils

* feat: move filtering to NextEditProvider

* fix: escape newline properly

* feat: make jump decoration more visible

* feat: remove redundant escapes

* fix: undo the escapeSVG

* fix: update tests

* fix: use proper line heights

* fix: place the SVG at the end of the line

* fix: handle cases where the completion is a single line

* feat: improve next edit UI (#7167)

* fix: use proper line heights

* fix: place the SVG at the end of the line

* fix: handle cases where the completion is a single line

* fix: allocate more memory for the GUI build step

* fix: set flag as node options

* fix: jump scrolls only after accepting

* fix: update jump manager vitest
2025-08-15 15:18:17 -04:00
Patrick Erichsen
3253c11821 add modelProvider to PromptLog 2025-08-13 22:06:01 -07:00
Patrick Erichsen
b8e4e95487 fix: resolve TypeScript errors after dev data schema changes
- Update test data to use modelName instead of modelTitle in log.vitest.ts
- Add missing modelProvider and modelName to nextEditWithHistory event logging

Resolves CI failures from schema standardization changes.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-12 21:00:51 -07:00
Jacob Kim
3606665992
feat: add more next edit endpoints to protocol (#7110)
* feat: add endpoint handlers in core

* feat: export interface

* feat: update protocol to support more next edit endpoints

* feat: add new next edit endpoints to passthrough

* feat: support new next edit endpoints to jetbrains
2025-08-12 21:25:01 -04:00
Jacob Kim
db14da1cbe fix: update test using the latest editDiffHistory 2025-08-12 13:54:35 -07:00
Jacob Kim
d5860296fb feat: add debugging log method to peek first three 2025-08-12 13:41:44 -07:00
Jacob Kim
f249c23f8a fix: skip redundant calculation 2025-08-11 19:19:30 -07:00
Jacob Kim
72399ca5cc feat: use a list of diffContexts instead of a single one 2025-08-11 18:20:05 -07:00
Jacob Kim
c34b1d82b1 feat: diffContext is now an array 2025-08-11 18:19:35 -07:00
Jacob Kim
3b878986c5 feat: sliding jump starts at the cursor line and expands outwards 2025-08-11 17:45:57 -07:00
Jacob Kim
10d4d4cda0 fix: editedCodeWithTokens uses the processed context block 2025-08-11 17:45:27 -07:00
Jacob Kim
d1f06da04e refactor: rename model 1 to instinct 2025-08-11 17:44:11 -07:00
Jacob Kim
ea02b4b446 test: update test 2025-08-08 15:16:45 -07:00
Jacob Kim
43dd4f622e fix: prompt and userEdits 2025-08-08 15:16:38 -07:00
Jacob Kim
15a78628f0 test: update test 2025-08-08 15:16:16 -07:00
Jacob Kim
3c5d91aaaa feat: add hunk to prompt 2025-08-08 15:16:09 -07:00
Jacob Kim
4cfe12f5e0 test: update test 2025-08-08 15:13:56 -07:00
Jacob Kim
9937209bb7 feat: add hunk details to metadata 2025-08-08 15:13:48 -07:00
Jacob Kim
5314fcbe25 test: update test 2025-08-08 12:30:02 -07:00
Jacob Kim
fc08da2c29 refactor: pass window range as well 2025-08-08 12:29:37 -07:00
Jacob Kim
7106c9dd15 feat: use 5 lines as context 2025-08-08 12:15:59 -07:00
Jacob Kim
345e90eb28 fix: use proper import aliases 2025-08-08 12:15:45 -07:00
Jacob Kim
4a6fe51fe2 feat: enrich model request with system and user prompt prefix 2025-08-08 12:10:44 -07:00
Jacob Kim
65cd7d47aa fix: recover from bad merge 2025-08-08 11:17:05 -07:00
Jacob Kim
3c0a9031e6 Merge branch 'main' of github.com:continuedev/continue into jacob/con-3231 2025-08-08 11:16:06 -07:00
Jacob Kim
59a37c9540 fix: handle cases where filename includes spaces 2025-08-08 11:10:39 -07:00
Jacob Kim
5918041cc0 test: add vitest for diffFormatting 2025-08-08 11:10:22 -07:00
Jacob Kim
109ef6e70d feat: add helper to get metadata from unified diff 2025-08-08 11:05:44 -07:00
Jacob Kim
5e38626a34 test: add vitest for templating 2025-08-08 11:05:26 -07:00
Jacob Kim
faa6c0f6c5 test: add vitest for helper functions 2025-08-08 11:04:56 -07:00
Jacob Kim
534e453184 feat: add a helper function to parse contextSnippets 2025-08-08 10:31:28 -07:00
Jacob Kim
b4c7df46cd feat: replace field 2025-08-08 10:30:30 -07:00
Jacob Kim
db87e89126 feat: use contextSnippets instead of recentlyViewedCodeSnippets 2025-08-08 10:30:01 -07:00
Jacob Kim
92f60e2d15 feat: add to autocomplete context on small edit 2025-08-08 10:29:05 -07:00
Jacob Kim
1c41a7fd70 feat: keep track of autocomplete context 2025-08-08 10:28:18 -07:00
Jacob Kim
55f081c206 feat: edit template 2025-08-07 15:41:17 -07:00
Jacob Kim
a736bcce0e feat: add more fields to template 2025-08-07 15:40:48 -07:00