EU Parliament Monitor — API Documentation - v0.8.42
    Preparing search index...

    Function mergeManifestHistory

    • Merge a new run entry into the history[] array of the manifest file at manifestPath, creating the file if it doesn't exist.

      The merge is additive: existing history entries are preserved, and the new entry is appended. When manifestPath already has a manifest with top-level fields (runId, date, articleType, etc.), those fields are left untouched — only history[] is appended to and the top-level updatedAt timestamp is refreshed.

      This supports the stable same-day analysis folder layout (analysis/daily/${DATE}/${TYPE}/) where repeated analysis runs overwrite/upgrade artifacts but each attempt adds a history entry.

      Parameters

      Returns void