#!/usr/bin/env node import { _ as SchemaResult, a as GetSpansByIdsResult, b as TuskDriftConfig, c as QuerySpansResult, d as DistinctValue, f as GetSchemaInput, g as QuerySpansInput, h as ListDistinctValuesInput, i as DriftDataProvider, l as AggregateSpansInput, m as GetTraceInput, n as CreateMcpServerOptions, o as GetTraceResult, p as GetSpansByIdsInput, r as DriftAccessControl, s as ListDistinctValuesResult, t as AggregateSpansResult, u as AggregationRow, v as SpanRecording, y as TraceSpan } from "./provider-1q-9ZJV4.cjs"; import { i as createMcpServer, n as PACKAGE_NAME, r as PACKAGE_VERSION, t as DEFAULT_INSTRUCTIONS } from "./server-DyaebvDQ.cjs"; //#region src/serviceDiscovery.d.ts /** * Represents a discovered Tusk service from a .tusk/config.yaml file */ interface DiscoveredService { /** The service ID from the config */ id: string; /** The service name from the config */ name: string; /** Path to the .tusk/config.yaml file */ configPath: string; /** Root directory containing the .tusk folder */ rootPath: string; } /** * Service discovery context that manages discovered services * and provides the appropriate service ID for API calls. */ declare class ServiceDiscoveryContext { private discoveredServices; private defaultServiceId?; constructor(envServiceId?: string); /** * Discover services from the given workspace roots. */ discoverFromRoots(roots: string[]): void; /** * Get all discovered services. */ getServices(): DiscoveredService[]; /** * Get the service ID to use for an API call. * Priority: * 1. Explicitly provided serviceId * 2. Environment variable default * 3. Single discovered service (if only one) * 4. Error if multiple discovered and none specified */ resolveServiceId(providedServiceId?: string): string; /** * Check if we have any services available (discovered or default). */ hasServices(): boolean; /** * Get instructions text about available services. */ getServicesDescription(): string; } //#endregion //#region src/apiClient.d.ts /** * HTTP client for communicating with the Tusk Drift API. * Implements DriftDataProvider for use with the MCP server. * Supports multi-service queries via ServiceDiscoveryContext. */ declare class TuskDriftApiClient implements DriftDataProvider { private readonly baseUrl; private readonly apiToken; private serviceContext?; constructor(config: TuskDriftConfig); /** * Set the service discovery context for resolving service IDs. */ setServiceContext(context: ServiceDiscoveryContext): void; /** * Resolve the service ID to use for a request. * Uses the provided ID, or falls back to the service context. */ private resolveServiceId; private request; /** * Query span recordings with filters */ querySpans(input: QuerySpansInput): Promise; /** * Get schema information for a specific instrumentation */ getSchema(input: GetSchemaInput): Promise; /** * Get span recordings by IDs */ getSpansByIds(input: GetSpansByIdsInput): Promise; /** * List distinct values for a field */ listDistinctValues(input: ListDistinctValuesInput): Promise; /** * Aggregate spans with grouping and metrics */ aggregateSpans(input: AggregateSpansInput): Promise; /** * Get all spans in a trace as a tree */ getTrace(input: GetTraceInput): Promise; } //#endregion //#region src/index.d.ts declare function main(): Promise; //#endregion export { type AggregateSpansInput, type AggregateSpansResult, type AggregationRow, type CreateMcpServerOptions, DEFAULT_INSTRUCTIONS, type DistinctValue, type DriftAccessControl, type DriftDataProvider, type GetSchemaInput, type GetSpansByIdsInput, type GetSpansByIdsResult, type GetTraceInput, type GetTraceResult, type ListDistinctValuesInput, type ListDistinctValuesResult, PACKAGE_NAME, PACKAGE_VERSION, type QuerySpansInput, type QuerySpansResult, type SchemaResult, ServiceDiscoveryContext, type SpanRecording, type TraceSpan, TuskDriftApiClient, type TuskDriftConfig, createMcpServer, main }; //# sourceMappingURL=index.d.cts.map