feat: add Google code retrieval across desktop CLI and MCP
Core CI / core (macos-latest) (push) Canceled after 0s
Core CI / core (windows-latest) (push) Canceled after 0s
Core CI / desktop (macos-latest) (push) Canceled after 0s
Core CI / desktop (ubuntu-latest) (push) Canceled after 0s
Core CI / desktop (windows-latest) (push) Canceled after 0s
Core CI / core (ubuntu-latest) (push) Canceled after 2m23s
Core CI / core (macos-latest) (push) Canceled after 0s
Core CI / core (windows-latest) (push) Canceled after 0s
Core CI / desktop (macos-latest) (push) Canceled after 0s
Core CI / desktop (ubuntu-latest) (push) Canceled after 0s
Core CI / desktop (windows-latest) (push) Canceled after 0s
Core CI / core (ubuntu-latest) (push) Canceled after 2m23s
This commit is contained in:
1 parent
8b9b079469
commit
81846b3e98
32 files changed
+1303
-59
No files matched your search
@@ -68,6 +68,9 @@ enum Command {
|
||||
/// Restrict results to this folder and descendants.
|
||||
#[arg(long)]
|
||||
folder: Option<PathBuf>,
|
||||
/// Search indexed source-code files only; supports symbols and semantic code queries.
|
||||
#[arg(long)]
|
||||
code_only: bool,
|
||||
/// File extension, with or without the leading dot.
|
||||
#[arg(long)]
|
||||
extension: Option<String>,
|
||||
@@ -166,6 +169,7 @@ fn main() -> Result<()> {
|
||||
performance,
|
||||
debug_performance,
|
||||
folder,
|
||||
code_only,
|
||||
extension,
|
||||
min_size,
|
||||
max_size,
|
||||
@@ -183,6 +187,7 @@ fn main() -> Result<()> {
|
||||
require_existing_index(&db)?;
|
||||
let options = SearchOptions {
|
||||
folder,
|
||||
code_only,
|
||||
extension,
|
||||
min_size,
|
||||
max_size,
|
||||
|
||||
@@ -38,6 +38,9 @@ struct SearchInput {
|
||||
limit: u16,
|
||||
|
||||
folder: Option<String>,
|
||||
/// Restrict all retrieval lanes to indexed source-code files.
|
||||
#[serde(default)]
|
||||
code_only: bool,
|
||||
|
||||
extension: Option<String>,
|
||||
|
||||
@@ -168,6 +171,7 @@ impl AgentServer {
|
||||
let options = SearchOptions {
|
||||
|
||||
folder: input.folder.map(PathBuf::from),
|
||||
code_only: input.code_only,
|
||||
|
||||
extension: input.extension,
|
||||
|
||||
@@ -272,6 +276,7 @@ impl AgentServer {
|
||||
Ok(json!({
|
||||
|
||||
"mode": mode,
|
||||
"code_only": input.code_only,
|
||||
|
||||
"semantic_available": mode == "hybrid",
|
||||
|
||||
|
||||
Reference in new issue
Block a user