Understand any codebase instantly. System intelligence for codebases, built for humans and AI.
TypeScript aiai-memoryclaude-codeclicode-analysiscode-mappingcode-memorycodebase-understandingcodexdeveloper-toolsllmopenclawpersistent-memoryprogram-analysissoftware-architecturesystem-intelligencesystem-mapping
feat: add --kind, --language, --as-of filters to ix search
riley02276964737da421
diff --git a/ix-cli/src/cli/commands/search.ts b/ix-cli/src/cli/commands/search.tsindex bcc5b9c0..dd385a0f 100644--- a/ix-cli/src/cli/commands/search.ts+++ b/ix-cli/src/cli/commands/search.ts@@ -8,10 +8,20 @@ export function registerSearchCommand(program: Command): void {.command("search <term>").description("Search the knowledge graph by term").option("--limit <n>", "Max results", "20")+ .option("--kind <kind>", "Filter by node kind (e.g. method, class, decision)")+ .option("--language <lang>", "Filter by language/file extension (e.g. scala, ts)")+ .option("--as-of <rev>", "Search as of a specific revision").option("--format <fmt>", "Output format (text|json)", "text")- .action(async (term: string, opts: { limit: string; format: string }) => {+ .action(async (term: string, opts: {+ limit: string; kind?: string; language?: string; asOf?: string; format: string+ }) => {const client = new IxClient(getEndpoint());- const nodes = await client.search(term, parseInt(opts.limit, 10));+ const nodes = await client.search(term, {+ limit: parseInt(opts.limit, 10),+ kind: opts.kind,+ language: opts.language,+ asOfRev: opts.asOf ? parseInt(opts.asOf, 10) : undefined,+ });formatNodes(nodes, opts.format);});}diff --git a/ix-cli/src/mcp/server.ts b/ix-cli/src/mcp/server.tsindex 5c6cec20..468bb3cc 100644--- a/ix-cli/src/mcp/server.ts+++ b/ix-cli/src/mcp/server.ts@@ -151,7 +151,7 @@ server.tool(},async ({ term, limit }) => {try {- const nodes = await client.search(term, limit);+ const nodes = await client.search(term, { limit });return {content: [{ type: "text" as const, text: JSON.stringify(nodes, null, 2) },