/** * GitMem Diagnostics Module * * Zero-overhead instrumentation using Node.js diagnostics_channel. * When no subscriber is attached, publish() calls are essentially no-ops. * * Usage: * import { diagnostics } from './diagnostics'; * * // In tool handler: * const event = diagnostics.publishToolCallStart('recall'); * // ... do work ... * diagnostics.publishToolCallEnd(event, true); * * For diagnostic collection: * import { getCollector } from './diagnostics'; * * const collector = getCollector(); * collector.start(); * // ... run operations ... * const metrics = collector.stop(); * * */ export { diagnostics, CHANNEL_NAMES, channel, type ToolCallEvent, type CacheEvent, type DbQueryEvent, type EmbeddingCallEvent, type ErrorEvent, } from "./channels.js"; export { DiagnosticsCollector, getCollector, resetCollector, runBenchmark, percentile, type DiagnosticMetrics, type DiagnosticReport, type HealthCheckResult, type BenchmarkResult, } from "./collector.js"; export { anonymizeSupabaseUrl, anonymizePath, anonymizeError, anonymizeString, anonymizeCacheKey, anonymizeToolParams, isApiKeyConfigured, getSafeEnvironmentInfo, } from "./anonymizer.js"; //# sourceMappingURL=index.d.ts.map