ZIm/crates/assistant_slash_commands/src
Bennet Bo Fenner 95d78ff8d5
context server: Make requests type safe (#32254)
This changes the context server crate so that the input/output for a
request are encoded at the type level, similar to how it is done for LSP
requests.

This also makes it easier to write tests that mock context servers, e.g.
you can write something like this now when using the `test-support`
feature of the `context-server` crate:

```rust
create_fake_transport("mcp-1", cx.background_executor())
    .on_request::<context_server::types::request::PromptsList>(|_params| {
        PromptsListResponse {
            prompts: vec![/* some prompts */],
            ..
        }
    })
```

Release Notes:

- N/A
2025-06-06 17:47:21 +02:00
..
assistant_slash_commands.rs chore: Make terminal_view own the TerminalSlashCommand (#31070) 2025-05-21 09:27:54 +00:00
cargo_workspace_command.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
context_server_command.rs context server: Make requests type safe (#32254) 2025-06-06 17:47:21 +02:00
default_command.rs agent: Use default prompts from prompt library in system prompt (#28915) 2025-04-18 09:32:35 -06:00
delta_command.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
diagnostics_command.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
docs_command.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
fetch_command.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
file_command.rs zlog: Replace usages of env_logger in tests with zlog (#31436) 2025-05-26 11:48:50 -04:00
now_command.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
prompt_command.rs Add ability to attach rules as context (#29109) 2025-04-21 20:16:51 +00:00
selection_command.rs agent: Support adding selection as context (#28964) 2025-04-17 16:55:15 +02:00
streaming_example_command.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
symbols_command.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
tab_command.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00