Skip to content

armgit / Ix

Public Imported from GitHub
0

Understand any codebase instantly. System intelligence for codebases, built for humans and AI.

feat: add listByKind client method, remove stray console.log

riley02278c46c4d41e3a
diff --git a/ix-cli/src/client/api.ts b/ix-cli/src/client/api.ts
index 336c2dc8..4b987d05 100644
--- a/ix-cli/src/client/api.ts
+++ b/ix-cli/src/client/api.ts
@@ -16,7 +16,6 @@ export class IxClient {
question: string,
opts?: { asOfRev?: number; depth?: string }
): Promise<StructuredContext> {
- console.log("CLI depth:", opts?.depth);
return this.post("/v1/context", { query: question, ...opts });
}
@@ -55,6 +54,16 @@ export class IxClient {
});
}
+ async listByKind(
+ kind: string,
+ opts?: { limit?: number }
+ ): Promise<GraphNode[]> {
+ return this.post("/v1/list", {
+ kind,
+ limit: opts?.limit,
+ });
+ }
+
async listDecisions(opts?: { limit?: number; topic?: string }): Promise<GraphNode[]> {
return this.post("/v1/decisions", { limit: opts?.limit, topic: opts?.topic });
}