feat: sunbeam reindex-code CLI verb + ReindexCode proto

Proto: ReindexCode RPC with org/repo/branch filters.
CLI: sunbeam reindex-code [--org studio] [--repo owner/name] [--endpoint ...]
Calls Sol's gRPC ReindexCode endpoint, prints indexed symbol count.
This commit is contained in:
2026-03-24 09:38:02 +00:00
parent 8726e8fbe7
commit 04f10d2794
3 changed files with 61 additions and 0 deletions

View File

@@ -72,6 +72,10 @@ impl CodeAgent for MockCodeAgent {
Ok(Response::new(Box::pin(ReceiverStream::new(rx))))
}
async fn reindex_code(&self, _req: Request<ReindexCodeRequest>) -> Result<Response<ReindexCodeResponse>, Status> {
Ok(Response::new(ReindexCodeResponse { repos_indexed: 0, symbols_indexed: 0, error: "mock".into() }))
}
}
#[tokio::test]