feat(pod): wire knowledge slugs into # completion

This commit is contained in:
2026-05-12 14:45:46 +09:00
parent df6ec428ca
commit 2f84bd32ba
6 changed files with 155 additions and 19 deletions
+9 -1
View File
@@ -102,7 +102,15 @@ async fn handle_connection(stream: tokio::net::UnixStream, handle: PodHandle) {
is_dir: c.is_dir,
})
.collect(),
protocol::CompletionKind::Knowledge => Vec::new(),
protocol::CompletionKind::Knowledge => handle
.shared_state
.list_knowledge_completions(&prefix)
.into_iter()
.map(|c| protocol::CompletionEntry {
value: c.slug,
is_dir: false,
})
.collect(),
protocol::CompletionKind::Workflow => handle
.shared_state
.list_workflow_completions(&prefix)