{"version":3,"file":"index.cjs","names":["BaseExporter","DeepEvalCoreExporter"],"sources":["../src/tracing.ts"],"sourcesContent":["import type { InitExporterOptions, TracingEvent } from '@mastra/core/observability';\nimport { BaseExporter } from '@mastra/observability';\nimport type { BaseExporterConfig } from '@mastra/observability';\nimport { DeepEvalExporter as DeepEvalCoreExporter } from 'deepeval/integrations/mastra';\nimport type { DeepEvalExporterConfig as DeepEvalCoreConfig } from 'deepeval/integrations/mastra';\n\nexport interface DeepEvalExporterConfig extends BaseExporterConfig, DeepEvalCoreConfig {}\n\nexport class DeepEvalExporter extends BaseExporter {\n  name = 'deepeval';\n\n  readonly #inner: DeepEvalCoreExporter;\n\n  constructor(config: DeepEvalExporterConfig = {}) {\n    super(config);\n    this.#inner = new DeepEvalCoreExporter(config);\n  }\n\n  override init(options: InitExporterOptions): void {\n    this.#inner.init?.(options);\n  }\n\n  protected async _exportTracingEvent(event: TracingEvent): Promise<void> {\n    await this.#inner.exportTracingEvent(event);\n  }\n\n  override async flush(): Promise<void> {\n    await this.#inner.flush();\n  }\n\n  override async shutdown(): Promise<void> {\n    await this.#inner.shutdown();\n  }\n}\n"],"mappings":";;;;AAQA,IAAa,mBAAb,cAAsCA,sBAAAA,aAAa;CACjD,OAAO;CAEP;CAEA,YAAY,SAAiC,CAAC,GAAG;EAC/C,MAAM,MAAM;EACZ,KAAK,SAAS,IAAIC,6BAAAA,iBAAqB,MAAM;CAC/C;CAEA,KAAc,SAAoC;EAChD,KAAK,OAAO,OAAO,OAAO;CAC5B;CAEA,MAAgB,oBAAoB,OAAoC;EACtE,MAAM,KAAK,OAAO,mBAAmB,KAAK;CAC5C;CAEA,MAAe,QAAuB;EACpC,MAAM,KAAK,OAAO,MAAM;CAC1B;CAEA,MAAe,WAA0B;EACvC,MAAM,KAAK,OAAO,SAAS;CAC7B;AACF"}