// Analytics metadata helpers stripped of telemetry coupling. Sanitizers and
// extractors return their inputs (or empty objects) unchanged — no PII
// escape hatch is needed when nothing leaves the process.

import type { AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS } from './index.js'

export { AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS }

export function sanitizeToolNameForAnalytics(
  toolName: string,
): AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS {
  return toolName as unknown as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS
}

export function isToolDetailsLoggingEnabled(): boolean {
  return false
}

export function extractMcpToolDetails(_toolName: string): {
  mcpServerName?: string
  mcpToolName?: string
} {
  return {}
}

export function extractSkillName(_toolName: string): string | undefined {
  return undefined
}

export function extractToolInputForTelemetry(
  _toolName: string,
  _input: unknown,
): Record<string, never> {
  return {}
}

export function getFileExtensionForAnalytics(
  _filePath: string,
): AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS | undefined {
  return undefined
}

export function getFileExtensionsFromBashCommand(
  _command: string,
): AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS[] {
  return []
}

export function mcpToolDetailsForAnalytics(
  _toolName: string,
  _serverType?: string,
  _baseUrl?: string,
): Record<string, never> {
  return {}
}
