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 timing and skip count to ingest CLI output
riley02270862e30802bd
diff --git a/ix-cli/src/cli/commands/ingest.ts b/ix-cli/src/cli/commands/ingest.tsindex d17b8fa5..6a4b0230 100644--- a/ix-cli/src/cli/commands/ingest.ts+++ b/ix-cli/src/cli/commands/ingest.ts@@ -10,11 +10,17 @@ export function registerIngestCommand(program: Command): void {.option("--format <fmt>", "Output format (text|json)", "text").action(async (path: string, opts: { recursive?: boolean; format: string }) => {const client = new IxClient(getEndpoint());+ const start = performance.now();const result = await client.ingest(path, opts.recursive);+ const elapsed = ((performance.now() - start) / 1000).toFixed(2);if (opts.format === "json") {- console.log(JSON.stringify(result, null, 2));+ console.log(JSON.stringify({ ...result, elapsedSeconds: parseFloat(elapsed) }, null, 2));} else {- console.log(`Ingested: ${(result as any).filesProcessed ?? 0} files, ${(result as any).patchesApplied ?? 0} patches (rev ${(result as any).latestRev ?? 0})`);+ console.log(`Ingested: ${result.filesProcessed} files, ${result.patchesApplied} patches applied (${elapsed}s)`);+ if (result.filesSkipped) {+ console.log(`Skipped: ${result.filesSkipped} unchanged files`);+ }+ console.log(`Rev: ${result.latestRev}`);}});}diff --git a/ix-cli/src/client/api.ts b/ix-cli/src/client/api.tsindex c44b03be..57d15f28 100644--- a/ix-cli/src/client/api.ts+++ b/ix-cli/src/client/api.ts@@ -1,5 +1,6 @@import type {CommitResult,+ IngestResult,StructuredContext,GraphNode,HealthResponse,@@ -17,7 +18,7 @@ export class IxClient {return this.post("/v1/context", { query: question, ...opts });}- async ingest(path: string, recursive?: boolean): Promise<CommitResult> {+ async ingest(path: string, recursive?: boolean): Promise<IngestResult> {return this.post("/v1/ingest", { path, recursive });}diff --git a/ix-cli/src/client/types.ts b/ix-cli/src/client/types.tsindex 23310349..20371a0a 100644--- a/ix-cli/src/client/types.ts+++ b/ix-cli/src/client/types.ts@@ -130,6 +130,14 @@ export interface PatchSummary {timestamp?: string;}+export interface IngestResult {+ filesProcessed: number;+ patchesApplied: number;+ filesSkipped?: number;+ entitiesCreated: number;+ latestRev: number;+}+export interface HealthResponse {status: string;}