euparliamentmonitor 0.8.28 → 0.8.30

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 CHANGED
@@ -124,7 +124,7 @@ import {
124
124
 
125
125
  **MCP Server Integration**: The project uses the
126
126
  [European-Parliament-MCP-Server](https://github.com/Hack23/European-Parliament-MCP-Server)
127
- v1.2.4 for accessing real EU Parliament data via the Model Context Protocol.
127
+ v1.2.6 for accessing real EU Parliament data via the Model Context Protocol.
128
128
 
129
129
  - **MCP Server Status**: ✅ Fully operational — 60+ EP data tools available
130
130
  (feeds, direct lookups, analytical tools, intelligence correlation)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "euparliamentmonitor",
3
- "version": "0.8.28",
3
+ "version": "0.8.30",
4
4
  "type": "module",
5
5
  "description": "European Parliament Intelligence Platform - Monitor political activity with systematic transparency",
6
6
  "main": "scripts/index.js",
@@ -141,8 +141,8 @@
141
141
  "@types/d3": "7.4.3",
142
142
  "@types/node": "25.6.0",
143
143
  "@types/papaparse": "5.5.2",
144
- "@typescript-eslint/eslint-plugin": "8.58.1",
145
- "@typescript-eslint/parser": "8.58.1",
144
+ "@typescript-eslint/eslint-plugin": "8.58.2",
145
+ "@typescript-eslint/parser": "8.58.2",
146
146
  "@vitest/coverage-v8": "4.1.4",
147
147
  "@vitest/ui": "4.1.4",
148
148
  "chart.js": "4.5.1",
@@ -153,7 +153,7 @@
153
153
  "eslint-plugin-jsdoc": "62.9.0",
154
154
  "eslint-plugin-security": "4.0.0",
155
155
  "eslint-plugin-sonarjs": "4.0.2",
156
- "happy-dom": "20.8.9",
156
+ "happy-dom": "20.9.0",
157
157
  "htmlhint": "1.9.2",
158
158
  "husky": "9.1.7",
159
159
  "jscpd": "4.0.9",
@@ -170,7 +170,7 @@
170
170
  "node": ">=25"
171
171
  },
172
172
  "dependencies": {
173
- "european-parliament-mcp-server": "1.2.4"
173
+ "european-parliament-mcp-server": "1.2.6"
174
174
  },
175
175
  "optionalDependencies": {
176
176
  "worldbank-mcp": "1.0.1"
@@ -116,7 +116,9 @@ function filterFeedItemsByDateRange(items, dateRange, label) {
116
116
  return [...items];
117
117
  const filtered = items.filter((item) => {
118
118
  const normalized = normalizeFeedItemDate(item.date);
119
- return normalized !== undefined && normalized >= dateRange.start && normalized <= dateRange.end;
119
+ if (normalized === undefined)
120
+ return false;
121
+ return normalized >= dateRange.start && normalized <= dateRange.end;
120
122
  });
121
123
  if (filtered.length !== items.length) {
122
124
  console.log(`${INFO_PREFIX} Filtered ${label} to ${filtered.length}/${items.length} items within ` +
@@ -29,7 +29,7 @@ const SERVER_HEALTH_FALLBACK = '{"server": null, "feeds": []}';
29
29
  /**
30
30
  * Classify an error message into a diagnostic error category.
31
31
  *
32
- * Maps EP MCP Server v1.2.4 structured error codes and generic HTTP/network
32
+ * Maps EP MCP Server v1.2.6 structured error codes and generic HTTP/network
33
33
  * errors into one of six broad categories used for logging and retry decisions:
34
34
  *
35
35
  * Returned categories (priority order):
@@ -45,7 +45,7 @@ const SERVER_HEALTH_FALLBACK = '{"server": null, "feeds": []}';
45
45
  */
46
46
  function classifyToolError(message) {
47
47
  const lowerMsg = message.toLowerCase();
48
- // EP MCP Server v1.2.4 structured error codes (matched case-insensitively)
48
+ // EP MCP Server v1.2.6 structured error codes (matched case-insensitively)
49
49
  if (lowerMsg.includes('internal_error')) {
50
50
  return 'INTERNAL_ERROR';
51
51
  }
@@ -121,7 +121,7 @@ export interface PolicyRelevantIndicators {
121
121
  * Maps to the tool functions on the worldbank-mcp server.
122
122
  *
123
123
  * These type literals use **kebab-case** (e.g., `get-economic-data`) to match
124
- * the underlying tool registration names in worldbank-mcp@1.0.0
124
+ * the underlying tool registration names in worldbank-mcp@1.0.1
125
125
  * (`server.tool('get-economic-data', ...)`).
126
126
  * When called via the MCP gateway prefix in this repository's workflows, use
127
127
  * the corresponding **snake_case** form, for example