Extract slash commands to their own crate (#23261)

This PR extracts the slash command definitions out of the `assistant`
crate and into their own `assistant_slash_commands` crate.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers
2025-01-16 22:17:07 +00:00
committed by GitHub
parent 1a8303b020
commit 8030c0025a
33 changed files with 452 additions and 347 deletions
Generated
+43 -6
View File
@@ -375,9 +375,9 @@ dependencies = [
"anyhow",
"assistant_settings",
"assistant_slash_command",
"assistant_slash_commands",
"assistant_tool",
"async-watch",
"cargo_toml",
"chrono",
"client",
"clock",
@@ -392,10 +392,7 @@ dependencies = [
"fs",
"futures 0.3.31",
"fuzzy",
"globset",
"gpui",
"html_to_markdown",
"http_client",
"indexed_docs",
"indoc",
"language",
@@ -405,7 +402,6 @@ dependencies = [
"languages",
"log",
"lsp",
"markdown",
"menu",
"multi_buffer",
"open_ai",
@@ -439,7 +435,6 @@ dependencies = [
"terminal_view",
"text",
"theme",
"toml 0.8.19",
"tree-sitter-md",
"ui",
"unindent",
@@ -554,6 +549,48 @@ dependencies = [
"workspace",
]
[[package]]
name = "assistant_slash_commands"
version = "0.1.0"
dependencies = [
"anyhow",
"assistant_slash_command",
"cargo_toml",
"chrono",
"collections",
"context_server",
"editor",
"env_logger 0.11.6",
"feature_flags",
"fs",
"futures 0.3.31",
"fuzzy",
"globset",
"gpui",
"html_to_markdown",
"http_client",
"indexed_docs",
"language",
"language_model",
"log",
"pretty_assertions",
"project",
"prompt_library",
"rope",
"schemars",
"semantic_index",
"serde",
"serde_json",
"settings",
"smol",
"terminal_view",
"text",
"toml 0.8.19",
"ui",
"util",
"workspace",
]
[[package]]
name = "assistant_tool"
version = "0.1.0"