riksdagsmonitor 0.8.55 → 0.8.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -0
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -1108,3 +1108,35 @@ Riksdagsmonitor uses a **provider-tiered** data architecture, with each provider
|
|
|
1108
1108
|
**Why this split** — IMF uses uniform SNA 2008 / GFSM 2014 / BPM6 methodology across countries (essential for cross-country comparison), publishes T+5 projections (essential for look-ahead workflows), and has fresher data than World Bank's economic indicators. World Bank remains the canonical source for the classes IMF does not publish (WGI governance, environment).
|
|
1109
1109
|
|
|
1110
1110
|
Authority: [`.github/aw/ECONOMIC_DATA_CONTRACT.md`](.github/aw/ECONOMIC_DATA_CONTRACT.md) v2.1 · hub: [`analysis/imf/`](analysis/imf/) · agent guide: [`AGENTS.md`](AGENTS.md) §IMF.
|
|
1111
|
+
|
|
1112
|
+
---
|
|
1113
|
+
|
|
1114
|
+
## 🏛️ Statskontoret Swedish Administration Integration
|
|
1115
|
+
|
|
1116
|
+
Riksdagsmonitor now includes a pure-TypeScript Statskontoret integration for Swedish government-body and central-government budget-execution context.
|
|
1117
|
+
|
|
1118
|
+
| Dataset | Use |
|
|
1119
|
+
|---|---|
|
|
1120
|
+
| Myndighetsförteckning | Authority count, department grouping, leadership form and årsarbetskrafter/headcount over time. |
|
|
1121
|
+
| Årsutfall för statens budget | Annual central-government revenue and expenditure outturns. |
|
|
1122
|
+
| Månadsutfall för statens budget | Monthly budget execution from 2006 onward. |
|
|
1123
|
+
| Tidsserier, statens budget m.m. | Long-run Swedish budget context. |
|
|
1124
|
+
|
|
1125
|
+
Quick commands:
|
|
1126
|
+
|
|
1127
|
+
```bash
|
|
1128
|
+
tsx scripts/statskontoret-fetch.ts list-sources
|
|
1129
|
+
tsx scripts/statskontoret-fetch.ts discover --source arsutfall --persist
|
|
1130
|
+
tsx scripts/statskontoret-fetch.ts headcount --url "https://www.statskontoret.se/...xlsx" --persist
|
|
1131
|
+
```
|
|
1132
|
+
|
|
1133
|
+
Architecture and governance references:
|
|
1134
|
+
|
|
1135
|
+
- `analysis/statskontoret/README.md` — integration hub.
|
|
1136
|
+
- `analysis/statskontoret/indicators-inventory.json` — machine-readable source catalogue.
|
|
1137
|
+
- `analysis/statskontoret/data-dictionary.md` — field and freshness rules.
|
|
1138
|
+
- `scripts/statskontoret-client.ts` / `scripts/statskontoret-fetch.ts` — client and workflow CLI.
|
|
1139
|
+
- `tests/statskontoret-client.test.ts`, `tests/statskontoret-fetch.test.ts`, `tests/statskontoret-inventory.test.ts` — regression coverage.
|
|
1140
|
+
|
|
1141
|
+
Provider rule: IMF remains primary for macro/fiscal projections, SCB remains Swedish statistical ground truth, World Bank remains governance/environment/social residue, and Statskontoret is authoritative for Swedish agency structure and central-government budget execution.
|
|
1142
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "riksdagsmonitor",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.56",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Swedish Parliament (Riksdag) intelligence platform — TypeScript utilities for political data visualization, dashboards, and open data analysis with Chart.js and D3.js",
|
|
6
6
|
"main": "dist/lib/shared/index.js",
|
|
@@ -96,7 +96,8 @@
|
|
|
96
96
|
"prepack": "echo 'Prepack: build artifacts should already be generated (see prepublishOnly/CI)'",
|
|
97
97
|
"download-data": "npx tsx scripts/download-parliamentary-data.ts",
|
|
98
98
|
"download-data:today": "npx tsx scripts/download-parliamentary-data.ts --date today",
|
|
99
|
-
"download-data:weekly": "npx tsx scripts/download-parliamentary-data.ts --aggregate weekly"
|
|
99
|
+
"download-data:weekly": "npx tsx scripts/download-parliamentary-data.ts --aggregate weekly",
|
|
100
|
+
"backfill-metadata": "tsx scripts/backfill-article-metadata.ts"
|
|
100
101
|
},
|
|
101
102
|
"repository": {
|
|
102
103
|
"type": "git",
|
|
@@ -177,12 +178,14 @@
|
|
|
177
178
|
"htmlhint": "1.9.2",
|
|
178
179
|
"js-yaml": "4.1.1",
|
|
179
180
|
"json-schema-to-typescript": "15.0.4",
|
|
180
|
-
"
|
|
181
|
+
"jszip": "3.10.1",
|
|
182
|
+
"knip": "6.6.3",
|
|
181
183
|
"papaparse": "5.5.3",
|
|
182
184
|
"playwright": "1.59.1",
|
|
183
185
|
"rehype-autolink-headings": "^7.1.0",
|
|
184
186
|
"rehype-raw": "^7.0.0",
|
|
185
187
|
"rehype-sanitize": "^6.0.0",
|
|
188
|
+
"github-slugger": "^2.0.0",
|
|
186
189
|
"rehype-slug": "^6.0.0",
|
|
187
190
|
"rehype-stringify": "^10.0.1",
|
|
188
191
|
"remark-gfm": "^4.0.1",
|