EU Parliament Monitor — API Documentation - v0.8.6
    Preparing search index...
    • Run the full analysis pipeline stage.

      Executes all enabled analysis methods sequentially, writing markdown files to outputDir/{date}/ and a manifest.json summary. Individual method failures are isolated — other methods continue regardless.

      Parameters

      • fetchedData: Record<string, unknown>

        Raw EP data fetched by the fetch stage (keyed by data type)

      • options: AnalysisStageOptions

        Analysis stage configuration

      Returns Promise<AnalysisContext>

      Analysis context object for consumption by the generate stage

      const ctx = await runAnalysisStage(fetchedData, {
      articleTypes: [ArticleCategory.WEEK_AHEAD],
      date: '2026-03-26',
      outputDir: 'analysis-output',
      skipCompleted: true,
      verbose: true,
      });