feat: implement branch-aware context switching and integrate tantivy fuzzy search index

This commit is contained in:
Riz Ashraf committed 2026-09-08 11:44:25 +01:00
1 parent e4ff476b6d
commit 3239e32866
6 files changed
+797 -2

No files matched your search

+4 -1
View File
@@ -95,6 +95,7 @@ pub struct CondenseEntityTool {
pub struct AddTaskTool {
pub title: String,
pub description: String,
pub git_branch: Option<String>,
}
#[macros::mcp_tool(name = "update_task_status", description = "Update task status")]
#[derive(Debug, Deserialize, Serialize, macros::JsonSchema)]
@@ -104,7 +105,7 @@ pub struct UpdateTaskStatusTool {
}
#[macros::mcp_tool(name = "list_active_tasks", description = "List active tasks")]
#[derive(Debug, Deserialize, Serialize, macros::JsonSchema)]
pub struct ListActiveTasksTool {}
pub struct ListActiveTasksTool { pub git_branch: Option<String>, }
#[macros::mcp_tool(name = "store_snippet", description = "Store code snippet")]
#[derive(Debug, Deserialize, Serialize, macros::JsonSchema)]
pub struct StoreSnippetTool {
@@ -186,6 +187,7 @@ pub struct SearchErrorFixesTool {
pub struct PinFileTool {
pub namespace: String,
pub file_path: String,
pub git_branch: Option<String>,
}
#[macros::mcp_tool(name = "unpin_file", description = "Unpin a file")]
#[derive(Debug, Deserialize, Serialize, macros::JsonSchema)]
@@ -197,6 +199,7 @@ pub struct UnpinFileTool {
#[derive(Debug, Deserialize, Serialize, macros::JsonSchema)]
pub struct ListPinnedFilesTool {
pub namespace: Option<String>,
pub git_branch: Option<String>,
}
#[macros::mcp_tool(name = "add_session_summary", description = "Add a session summary")]
#[derive(Debug, Deserialize, Serialize, macros::JsonSchema)]