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
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
1e7aeeabbc
feat: add prompt generation templates for mercury-coder
2025-08-18 18:53:19 -07:00
Jacob Kim
db14da1cbe
fix: update test using the latest editDiffHistory
2025-08-12 13:54:35 -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
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
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
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
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
db87e89126
feat: use contextSnippets instead of recentlyViewedCodeSnippets
2025-08-08 10:30:01 -07:00
Jacob Kim
55f081c206
feat: edit template
2025-08-07 15:41:17 -07:00
Jacob Kim
9e94a3806c
feat: add utils for model-specific logic
2025-08-07 15:40:14 -07:00
Jacob Kim
2aae07efc3
refactor: move capabilities to the top
2025-08-06 18:24:43 -07:00
Jacob Kim
722bdbf97d
refactor: use next edit model enum
2025-08-06 18:24:17 -07:00
Jacob Kim
6b51f556a9
fix: remove test llm from prompt engine vitest
2025-08-06 16:26:56 -07:00
Jacob Kim
793c835f23
fix: remove test model for now
2025-08-06 16:20:43 -07:00
Jacob Kim
971eb861e6
Merge branch 'main' of github.com:continuedev/continue into jacob/con-3283
2025-08-06 16:00:43 -07:00
Jacob Kim
c70f5695dc
chore: add comments
2025-08-06 15:49:22 -07:00
Jacob Kim
1374574f30
fix: stale tests
2025-08-05 16:18:31 -07:00
Jacob Kim
8e79ce3587
refactor: rename constants to be model-specific
2025-08-04 09:53:07 -07:00
Jacob Kim
eba4e0b137
fix: update prompt template
2025-08-02 18:52:48 -07:00
Jacob Kim
1579375550
fix: remove the first two lines generated by createDiff
2025-08-02 18:52:16 -07:00
Jacob Kim
884bc7ef26
test: add vitest for NextEditPromptEngine
2025-07-30 10:16:00 -07:00
Jacob Kim
8e0811ac43
chore: delete comment
2025-07-30 10:15:48 -07:00
Jacob Kim
7a0d44a7ff
test: add vitest for utils
2025-07-30 10:00:39 -07:00
Jacob Kim
affe6abe1a
refactor: remove unused function
2025-07-30 10:00:29 -07:00
Jacob Kim
cdce820030
test: add vitest for mercuryCoderNextEdit
2025-07-30 09:56:53 -07:00
Jacob Kim
eddb7bf1f2
fix: add a newline accordingly
2025-07-30 09:56:39 -07:00
Jacob Kim
65ebc7b99e
feat: generate prompts for new mercury model
2025-07-29 18:52:55 -07:00
Jacob Kim
bded0d389c
feat: add mercury-specific functions
2025-07-29 18:52:36 -07:00
Jacob Kim
eba911ddc1
refactor: move util functions
2025-07-29 18:51:12 -07:00
Jacob Kim
4c94fd8446
refactor: cleanup
2025-07-28 15:42:16 -07:00
Jacob Kim
e5708fcb82
refactor: clean up
2025-07-28 15:08:54 -07:00
Jacob Kim
34ebf350c9
refactor: update to use RangeInFile[] instead of RangeInFile
2025-07-23 15:51:43 -07:00
Jacob Kim
f9c4baa91f
refactor: rename file and update imports
2025-07-21 16:07:30 -07:00
Jacob Kim
d3c250ff85
feat: await for other functions
2025-07-18 19:06:34 -07:00
Jacob Kim
0363bb63c1
feat: use strategies
2025-07-17 21:29:34 -07:00