Nate Sesti
8daf2c17ed
⚡ ️ improve /comment prompt
2024-05-10 09:07:27 -07:00
Nate Sesti
0c642b1b8b
🐛 fix content parsing regression in /edit
2024-05-05 23:25:40 -07:00
5eqn
ae180c6d16
🐛 fix #1237
2024-05-06 08:37:09 +08:00
小颚虫
aa2ea26bbd
🐛 fix undefined prefix, suffix and language for /edit ( #1216 )
2024-05-03 10:15:38 -07:00
Nate Sesti
ac0917024c
🎨 use node-fetch everywhere
2024-04-25 19:27:40 -07:00
Nate Sesti
b5b81b66dd
🚸 update inline tips language
2024-04-24 17:00:25 -07:00
Peter Zaback
d71f4f70d8
Aesthetic tweaks to output format
2024-04-19 14:29:30 -05:00
Peter Zaback
2565fa4f41
Ensure adjacent codeblocks separated by newline
2024-04-19 14:29:30 -05:00
Peter Zaback
b82ccb76ad
Tidy regex to capture filename
2024-04-19 14:29:30 -05:00
Peter Zaback
7e0b4e4fb7
Tidy regex to capture filename
2024-04-19 14:29:30 -05:00
Peter Zaback
338062016c
Reformat markdown code blocks
...
Currently, user-selected code blocks are formatted
with range in file (rif) info on the same line as
the triple backticks, which means that when
exported to markdown they don't have the language
info needed on that line for syntax highlighting.
This update moves the rif info to the following
line as a comment in the language of the file and
with the language info in the correct place.
Before:
```example.ts (3-6)
function fib(n) {
if (n <= 1) return n;
return fib(n - 2) + fib(n - 1);
}
```
After:
```ts
// example.ts (3-6)
function fib(n) {
if (n <= 1) return n;
return fib(n - 2) + fib(n - 1);
}
```
2024-04-19 14:29:30 -05:00
Peter Zaback
81103ff5f1
Consolidate to single replace regex
2024-04-19 14:29:30 -05:00
Peter Zaback
7d697d5bfe
Change "Continue" to "Assistant" in export
2024-04-19 14:29:30 -05:00
Peter Zaback
41b9ef0f75
Create user-specified directory if necessary
2024-04-19 14:29:30 -05:00
Peter Zaback
ca44dd4e23
Ensure replacement only at start of string
2024-04-19 14:29:30 -05:00
Peter Zaback
91d92ab40a
Use ., ./, or .\ for current workspace
2024-04-19 14:29:30 -05:00
Peter Zaback
e44ea2b391
Add datetimestamp to exported session filename
2024-04-19 14:29:30 -05:00
Peter Zaback
10b4701272
Add ability to specify workspace for /share
2024-04-19 14:29:30 -05:00
Peter Zaback
618906a2e1
Enable basic tilde expansion for /share outputDir
2024-04-19 14:29:30 -05:00
Peter Zaback
fadf70ed61
Add outputDir param to /share
2024-04-19 14:29:30 -05:00
Nate Sesti
6ff78fd8f3
✨ allow templating for custom commands
2024-04-14 16:00:30 -07:00
Nate Sesti
722dde1238
🩹 add stopAtLines filter to /edit
2024-04-10 13:54:31 -07:00
Jason Jacobs
34953757b2
Add a new slash command to review code. ( #1071 )
...
* Add a new slash command to review code.
* clean code
2024-04-04 13:04:07 -07:00
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