Riksdagsmonitor Intelligence Platform - v0.7.19
    Preparing search index...
    • Calculate current-week activity metrics with CIA trend direction.

      Returns the count of documents, speeches, and distinct vote-points collected during the current week, together with the CIA trend comparison (30/90/365-day coalition stability trajectory) mapped to a simple increasing/stable/declining direction.

      NOTE: This is not a prior-week comparison — activityChange reflects the CIA coalition-stability trend direction, not a delta against last week.

      Parameters

      • documents: RawDocument[]

        Documents collected this week

      • speeches: unknown[]

        Speeches collected this week

      • votingRecords: VotingRecord[]

        Voting records collected this week (already date-filtered)

      • ciaContext: CIAContext

        CIA intelligence context for trend analysis

      Returns WeeklyActivityMetrics