Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make slash command output streamable #19632

Merged
merged 60 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
98fc57e
context_servers: Fix protocol serialization
dsp-ant Oct 10, 2024
c330135
context_servers: Remove id from notifications
dsp-ant Sep 2, 2024
8fa202b
context_servers: Add a method to list resources similarly to list_pro…
dsp-ant Oct 10, 2024
525c838
context_servers: Pass prompt description as description/menu_text
dsp-ant Oct 10, 2024
9426903
context_servers: Show argument as a label
dsp-ant Oct 11, 2024
23e8842
context_servers: Make clippy happy
dsp-ant Oct 11, 2024
c9c7412
slash_commands: Introduce stream based slash commands
dsp-ant Oct 15, 2024
3ded3e4
assistant: Fix style
dsp-ant Oct 14, 2024
9156c3f
assistant: run_commands_in_output -> run_commands_in_ranges
dsp-ant Oct 14, 2024
3b93237
assistant: Fix context tests
dsp-ant Oct 14, 2024
d4ea37c
assistant: Merge roles when merge_same_roles true
dsp-ant Oct 15, 2024
f2e7d02
context_servers: Update protocol and return map of SamplingMessages f…
dsp-ant Oct 15, 2024
3b66a6f
assistant: Introduce a content type for slash commands
dsp-ant Oct 15, 2024
b04ef6a
assistant: remove ensure_newline from StartSection
dsp-ant Oct 16, 2024
6884ddb
assistant: Make file_command stream
dsp-ant Oct 16, 2024
dc80b1b
Don't reparse slash command when inserting a newline at the end of it
as-cii Oct 16, 2024
f2873f7
Always insert a trailing newline after a section ends
as-cii Oct 16, 2024
932b333
Show a block for invoked slash commands that haven't finished yet
as-cii Oct 23, 2024
813e106
Remove TODO
maxdeviant Oct 23, 2024
036b060
Merge branch 'main' into pr/19222
maxdeviant Oct 23, 2024
e8407f8
Remove image support
maxdeviant Oct 23, 2024
1963c81
Map extension slash command output to streaming interface
maxdeviant Oct 23, 2024
af73caa
WIP: Make slash commands return a stream of events
maxdeviant Oct 23, 2024
df0cf4d
Reassemble `SlashCommandOutput` from events
maxdeviant Oct 23, 2024
320af9c
Fix failing randomized test
maxdeviant Oct 23, 2024
ccca8bd
Merge branch 'streaming-return-type' into streaming-slash-commands
maxdeviant Oct 23, 2024
65d8048
Merge branch 'main' into streaming-slash-commands
maxdeviant Oct 24, 2024
2e182be
Remove unused struct
maxdeviant Oct 24, 2024
6642fc5
Remove some of the diff from `main`
maxdeviant Oct 24, 2024
a8bcb3d
Fixed streaming slash command output insertion
maxdeviant Oct 24, 2024
24cf9c4
Revert changes to parsing to fix slash command running
maxdeviant Oct 24, 2024
583fbf7
Pass command information to block renderer
maxdeviant Oct 24, 2024
2287f2f
Merge branch 'main' into streaming-slash-commands
maxdeviant Oct 24, 2024
673c3af
Style invoked slash commands a bit more
maxdeviant Oct 24, 2024
df50cbe
Add button to dismiss errors for slash commands
maxdeviant Oct 24, 2024
6a3a87a
Merge branch 'main' into streaming-slash-commands
maxdeviant Oct 25, 2024
6f1eafb
Merge branch 'main' into streaming-slash-commands
maxdeviant Oct 29, 2024
88a0975
Merge branch 'main' into streaming-slash-commands
maxdeviant Oct 29, 2024
55dd7d1
Merge branch 'main' into streaming-slash-commands
maxdeviant Oct 30, 2024
fd4bda0
Merge branch 'main' into streaming-slash-commands
maxdeviant Oct 31, 2024
25f6a1e
Fix error after merge
maxdeviant Oct 31, 2024
2da5290
WIP: Begin the switch to creases
maxdeviant Oct 31, 2024
d9a2289
WIP: Fix some issues with streaming in content into a crease
maxdeviant Oct 31, 2024
1406f5f
Remove extra newlines from example streaming command
maxdeviant Oct 31, 2024
8ddffd7
Leave the slash command text in until the end
maxdeviant Oct 31, 2024
382dd5a
Merge branch 'main' into streaming-slash-commands
maxdeviant Nov 5, 2024
5c10a5a
WIP: Add collaboration
maxdeviant Nov 5, 2024
6efa983
Remove unused arguments parameter, remove noisy log
maxbrunsfeld Nov 6, 2024
2f1c701
Add missing slash command update event when applying operation
maxbrunsfeld Nov 6, 2024
00123a6
Merge remote-tracking branch 'origin/main' into streaming-slash-commands
as-cii Nov 6, 2024
bcf95bb
Invalidate creases for sections that have been deleted
as-cii Nov 6, 2024
8346801
Restructure test for slash commands
as-cii Nov 6, 2024
a52bc59
Make the slash command test pass
as-cii Nov 6, 2024
332a679
Add APIs for removing folds with specific ranges, fix unfolding of pe…
maxbrunsfeld Nov 6, 2024
a527613
Ensure slash command output is contained in pending fold while comman…
maxbrunsfeld Nov 6, 2024
798568e
On slash command completion, remove pending output folds by its place…
maxbrunsfeld Nov 6, 2024
068d2d4
Remove unused expand_result parameters and fields
maxbrunsfeld Nov 6, 2024
1b6627b
Fix clippy warnings
maxbrunsfeld Nov 6, 2024
d4eac88
Fix spelling error
maxbrunsfeld Nov 6, 2024
f6eee03
Rename new slash command message to appease protobuf checker
maxbrunsfeld Nov 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

290 changes: 183 additions & 107 deletions crates/assistant/src/assistant_panel.rs

Large diffs are not rendered by default.

745 changes: 515 additions & 230 deletions crates/assistant/src/context.rs

Large diffs are not rendered by default.

Loading
Loading