CLI Adapters exports - CLI integration with defensive parsing Split from index.ts for file size compliance (Issue #285)
Creates a CLI detection cache instance.
Optional
Optional cache configuration
CLI detection cache
const cache = createCliDetectionCache({ ttlMs: 60_000 }); // 1 minute TTLconst result = cache.get('claude');if (!result) { const health = await adapter.healthCheck(); cache.set('claude', CliDetectionCache.fromHealthStatus(health));} Copy
const cache = createCliDetectionCache({ ttlMs: 60_000 }); // 1 minute TTLconst result = cache.get('claude');if (!result) { const health = await adapter.healthCheck(); cache.set('claude', CliDetectionCache.fromHealthStatus(health));}
CLI Adapters exports - CLI integration with defensive parsing Split from index.ts for file size compliance (Issue #285)