Skip to content

Commit d257245

Browse files
committed
Yet another rename
Demo conversion to gif script Added discord link to high level output
1 parent dc97770 commit d257245

File tree

13 files changed

+72
-14
lines changed

13 files changed

+72
-14
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
- **Fast**: Applies patches instead of regenerating entire file contents
66
- **Fix compile errors**: Fix trivial errors in bulk resulting from a refactor
77

8-
[Demo](https://github.com/bra1nDump/ai-task-vscode/assets/12608159/6079c043-4fe2-437f-8070-c45a5ffb64b3)
8+
![](docs/demo-videos/with-loading-bar.gif)
99

1010
# How it works
1111

docs/backlog.md

+7-9
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,14 @@
55

66
# Next milestones
77

8-
- [done] Published extension
9-
- [done] Have a novel feature - probably working multi file edits
10-
- [done] Recorded demo video showing basic usage + gif for readme
11-
- [done] Release project on GitHub
128
- Found a single demo user
139
- Reached out to 5 potential collaborators
1410
- Replaced continue on the current project
1511

1612
# Next up
1713

18-
## Record gifs for new file + cmd 3 more takes on the main video [2hr + 2hr editing] NO DAVINCI RESOLVE ?
19-
20-
- Switch to mp4 - no looping needed
2114
- Pretty up readme
22-
- Fix the name: ai-task coding assistant
23-
- Have a task alias - ai-task? for demo / brand purposes
15+
- Fix gif in marketplace
2416

2517
# Bugs
2618

@@ -52,6 +44,9 @@
5244
- Provide token count on the input and provide approximate price
5345
- Add discord server link to hight level output
5446

47+
## Demo
48+
- Have a task alias - ai-task? for demo / brand purposes
49+
5550
## Developer experience working on ai-task
5651

5752
- Create issues for some of my todos here
@@ -82,3 +77,6 @@ Will function calling help me getter faster? I would not need to deal with Xml p
8277

8378
- @ completions popup everywhere, even when @is not typed. This is annoying and should be fixed
8479

80+
## Record gifs for new file + cmd 3 more takes on the main video [2hr + 2hr editing] NO DAVINCI RESOLVE ?
81+
82+
- Switch to mp4 - no looping needed

docs/demo-videos/demo.gif

18 MB
Loading
6.26 MB
Loading

docs/demo-videos/with-loading-bar.gif

18.2 MB
Loading

docs/go-to-market/marketing-copy.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Copy in YouTube video description https://youtu.be/wD8ZdIJ9p0Y:
2+
3+
Let GPT-4 based on your comments figure out all the changes that need to be performed in your code:
4+
* Automatically finds code pieces to update
5+
* Updates multiple files at a time
6+
* Provides visual feedback on what changes it is making / planning to make in real time
7+
8+
Github Copilot is great, but it is limited to tab auto complete or replacing a single location in code.
9+
10+
Let me know if you are interested to try this extension or want to help with its development. I plan to open source the code within this week. Thanks for watching!

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "ai-task",
3-
"displayName": " AI Coding Assistant: multi-file edits",
3+
"displayName": " AI-Task: Multi-File edit coding assistant",
44
"publisher": "bra1nDump",
5-
"description": "Leave comments across your codebase with @task mentions and have AI address them, even if it requires multi-file changes",
6-
"version": "0.0.17",
5+
"description": "Use comments with @task to perform multi-file changes, fix your bugs with @errors and more!",
6+
"version": "0.0.19",
77
"license": "Business Source License 1.1",
88
"icon": "icon.png",
99
"repository": {

scripts/convert-to-gif.sh

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/bin/bash
2+
3+
# Check if an argument was provided
4+
if [ "$#" -ne 1 ]; then
5+
echo "Usage: $0 /path/to/input.mov"
6+
exit 1
7+
fi
8+
9+
# Get the input file path
10+
INPUT_PATH="$1"
11+
# Get the directory, filename without extension, and extension
12+
DIRNAME=$(dirname "$INPUT_PATH")
13+
BASENAME=$(basename "$INPUT_PATH")
14+
FILENAME="${BASENAME%.*}"
15+
EXT="${BASENAME##*.}"
16+
17+
# Check if the file extension is 'mov'
18+
if [ "$EXT" != "mov" ]; then
19+
echo "Please provide a .mov file"
20+
exit 1
21+
fi
22+
23+
# Output path with .gif extension
24+
OUTPUT_PATH="$DIRNAME/$FILENAME.gif"
25+
OUTPUT_PATH_NO_PALETTE="$DIRNAME/$FILENAME-no-palatte.gif"
26+
27+
FPS=24
28+
WIDTH=1280
29+
30+
# (Has weird dots, the effect is called dithering) First perform conversion without using a palette
31+
ffmpeg -i "$INPUT_PATH" -vf "fps=$FPS,scale=$WIDTH:-1:flags=lanczos" "$OUTPUT_PATH_NO_PALETTE"
32+
33+
# Generate a palette, there's a warning here but it's fine, the result is still better than without a palette
34+
ffmpeg -i "$INPUT_PATH" -vf "fps=$FPS,scale=$WIDTH:-1:flags=lanczos,palettegen" "$DIRNAME/palette.png"
35+
36+
# Convert the .mov file to .gif using the generated palette
37+
ffmpeg -i "$INPUT_PATH" -i "$DIRNAME/palette.png" -filter_complex "fps=$FPS,scale=$WIDTH:-1:flags=lanczos[x];[x][1:v]paletteuse" "$OUTPUT_PATH"
38+
39+
# Remove the palette
40+
rm "$DIRNAME/palette.png"
41+
42+
echo "GIF saved to $OUTPUT_PATH"

src/commands/completeInlineTasks.ts

+5
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ export async function completeInlineTasksCommand(this: {
3939
'> Running ai-task\n',
4040
)
4141

42+
void queueAnAppendToDocument(
43+
sessionContext.markdownHighLevelFeedbackDocument,
44+
'[Discord to submit feedback](https://discord.gg/D8V6Rc63wQ)\n',
45+
)
46+
4247
// Functionality specific to bread mentions
4348
const breadIdentifier = getBreadIdentifier()
4449
const fileUrisWithBreadMentions =

src/session/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ export async function startSession(
7777

7878
const cachedActiveEditor = vscode.window.activeTextEditor
7979

80-
// Since we're opening to the side the focus is not taken
80+
/*
81+
* Since we're opening to the side the focus is not taken.
82+
* Remove for recording simple demo
83+
*/
8184
await vscode.commands.executeCommand(
8285
'markdown.showPreviewToSide',
8386
sessionMarkdownHighLevelFeedbackDocument.uri,

0 commit comments

Comments
 (0)