Riksdagsmonitor Intelligence Platform โ€” API Documentation - v0.8.35
    Preparing search index...

    Interface ContentPipeline

    Contract that every article-type plugin must implement.

    Lifecycle:

    1. fetch โ€“ Retrieve raw data from MCP tools (may partially fail).
    2. transform โ€“ Convert raw data into article payloads per language.
    3. generate โ€“ Render HTML via generateArticleHTML.
    4. validate โ€“ Verify HTML structure before writing.
    5. write โ€“ Persist files to news/ directory.

    Implementations are responsible for graceful degradation: if the fetch stage partially fails they should log a warning and continue with whatever data is available rather than throwing.

    interface ContentPipeline {
    ย ย ย ย name: string;
    ย ย ย ย run(options?: PipelineOptions): Promise<PipelineResult>;
    }
    Index

    Properties

    Methods

    Properties

    name: string

    Human-readable name of this pipeline (e.g. 'motions'). Used for logging and metrics.

    Methods