Commit graph

46 commits

Author SHA1 Message Date
Nate Sesti
a5bfcfe27d
⚡️ Improved edit prompts for OS models (#1029)
* 💄 refresh codelens more frequently

* ⚡️ improved codellama edit prompt

* ⚡️ better codellama prompt

* ⚡️ use same improved prompt for most OS models

* 🎨 refactor chat templates

* 🎨 refactor llama2 prompt to allow ending assistant message

* ⚡️ separate os models prompt when no prefix/suffix

* 🎨 refactor to allow putting words in the model's mouth

* ⚡️ prune code around cmd/ctrl+I

* 🚚 rename to cmd/ctrl+I

* 🎨 make raw a base completion option

* 🩹 small improvements

* 🩹 use different prompt when completions not supported
2024-03-27 13:47:19 -07:00
Peter Zaback
8aa06607cc
Update message to match revised shortcut (#1002) 2024-03-21 17:51:43 -07:00
Bjørn Jørgensen
1d14eb46ef
Prefer using nullish coalescing operator (??) instead of a logical or (#922)
* Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator.

* index.ts

* more...

* more..

* indenting

* fix indenting
2024-03-08 22:41:04 -08:00
Nate Sesti
2eb647656b 🎨 format all files with .prettierrc 2024-03-02 20:02:33 -05:00
Nate Sesti
19282ccf55 🐛 add context items to /edit prompt 2024-02-27 10:35:20 -05:00
Nate Sesti
e8c76c7df7 🐛 fix /edit incorrect prompt 2024-02-25 23:39:55 -05:00
Nate Sesti
b43a63b6a4 Merge branch 'preview' into nate/merge-preview-to-atwood-p2 2024-02-19 15:17:45 -08:00
Nate Sesti
060431e0bb 🚧 dep injection (roughly) in vscode extension 2024-02-13 20:58:29 -08:00
Nate Sesti
20ba40a32b ⚡️ more improvements to /edit 2024-02-10 20:15:26 -08:00
Nate Sesti
b3bf8d9d25 ⚡️ improve reliability of diff generation, avoiding english explanation 2024-02-10 19:18:54 -08:00
Nate Sesti
ac1ebcd382 🩹 fix cancellation and other bugs for /edit 2024-02-10 18:32:49 -08:00
Nate Sesti
a5d37bacdb ⚡️ improvements to codebase retrieval with FTS5 2024-01-29 20:04:39 -08:00
Nate Sesti
2fc57ea57e 🩹 default to first selected range with /edit 2024-01-25 20:09:34 -08:00
Nate Sesti
88e81221f0 merge nate/doc-crawl 2024-01-24 22:25:26 -08:00
Nate Sesti
09e0c45352 🩹 strip images in /share slash command 2024-01-24 11:10:24 -08:00
Nate Sesti
a4bb1501c7 Merge branch 'nate/doc-crawl' into preview 2024-01-22 11:19:33 -08:00
Nate Sesti
8fa1eab4a6 🔥 remove token limitation on /edit 2024-01-21 21:38:01 -08:00
Nate Sesti
cbfb1314eb 🎨 setup proper types for image support 2024-01-19 17:59:37 -08:00
Nate Sesti
53d6b50aee 🐛 strip leading empty lines to remove magicoder garbage output 2024-01-17 08:52:40 -08:00
Nate Sesti
41046700d3
Nate/atwoods law (#753)
* 👷 basic skeleton for building with pkg

* ⚡️ first attempt at syncing in .ts

* 🎨 change lancedb storage format

* 🚧 add chunking to LanceDbIndex

* 🔥 move transformers.js from gui to core

* 🐛 fix tsc build

* 🐛 fix bugs loading native modules in vscode extension

* 👷 copy wasms and fix other syncing bugs

* 👷 esbuild modification to allow importMetaUrl for transformers.js

* 👷 add sharp as external module so transformers.js can be loade

* 🐛 more indexing fixes

* ✨ retrieve from lancedb

* 🎨 respect .gitignore when traversing file tree

* 🐛 fix logic bugs in indexing

* 🐛 fix prompt construction bug causing doubling of context items

* 🔥 remove legacy files

* 📌 vendor transformers.js to avoid dependency on sharp

* 👷 package necessary native modules

* 🎨 respect multi-root workspaces when indexing/retrieving

* 🔥 only ship onnxruntime-node binaries for current platform

* 🎨 trigger re-indexing on git branch change

* 🎨 make indexing resumable

* ✨ add folder context provider

* ✨ folders context provider in dropdown

* 🐛 polishing folders context provider
2024-01-16 00:33:02 -08:00
LangLangBart
014122957f
fix: handle optional params in EditSlashCommand (#745)
* fix: handle optional params in EditSlashCommand

* fix: handle undefined URL in http slash command
2024-01-12 11:36:45 -08:00
Nate Sesti
f6fb22a3b2 🐛 fix tokenLimit of undefined bug 2024-01-12 10:59:57 -08:00
Nate Sesti
78140e5f6c ✨ tokenLimit option for /edit slash command 2024-01-11 11:14:56 -08:00
Nate Sesti
97e54cf8e4 ✨ option to recap /edit changes 2024-01-08 09:19:17 -08:00
restlessronin
f0ed95d693
clarify the meaning of highlight (#718)
* clarify the meaning of highlight

* delete duplicated text
2024-01-05 12:25:48 -08:00
Nate Sesti
446942d09e 🐛 various fixes for slash commands and context providers 2024-01-02 16:24:09 -05:00
Nate Sesti
45e2b50b0a ⚡️ many adjustments to OS model output to clean it up 2024-01-02 12:48:08 -05:00
Nate Sesti
cbd2583901 ✨ allow setting promptTemplates in config.json 2024-01-02 11:07:46 -05:00
Nate Sesti
03350455e3 🐛 fix insertion at end of file bug 2024-01-01 16:00:35 -05:00
Nate Sesti
7250d85b73 ⚡️ always insert deleted lines above inserted 2024-01-01 12:15:37 -05:00
Nate Sesti
824e111efb 💄 more vertical diff improvements 2023-12-30 17:37:25 -05:00
Nate Sesti
078f078de9 🐛 fix diff highlighting 2023-12-30 12:39:38 -05:00
Nate Sesti
ce4d3ba8f1 🚧 WIP on vertical diff 2023-12-30 10:14:09 -05:00
Nate Sesti
4c4b15cb51 🚧 fully hooked up vertical diff 2023-12-30 00:46:32 -05:00
Nate Sesti
258f6471c2 🐛 streaming fixes 2023-12-17 14:10:19 -05:00
Nate Sesti
66dfb17b33 ✨ commit message slash command 2023-12-15 11:21:44 -08:00
Nate Sesti
f4cfb728bd ✨ http slash command 2023-12-14 23:05:26 -08:00
Nate Sesti
7cc4df9921 ✨ http context provider 2023-12-14 22:51:31 -08:00
Nate Sesti
e1ed7ed0a2 ✨ config.ts 2023-12-14 12:47:01 -08:00
Nate Sesti
59dbf7c885 ✨ comment slash command 2023-12-12 21:39:54 -08:00
Nate Sesti
4ddec0b6ad 🚧 cancel /edit generation 2023-12-11 15:04:42 -08:00
Nate Sesti
ffd4e6f046 🚧 /edit working 2023-12-11 10:33:19 -08:00
Nate Sesti
c7a7fdf3db 🚧 WIP /edit 2023-12-10 18:31:36 -08:00
Nate Sesti
56f6fea738 🚧 /edit WIP 2023-12-10 18:31:28 -08:00
Nate Sesti
9dff6f8859 🚧 load unserialized config 2023-12-09 14:40:40 -08:00
Nate Sesti
5168eaf4a4 🚧 slash commands and history 2023-12-08 23:05:23 -08:00