@hemingweb/wordnook-mcp 1.0.25 → 1.0.26

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.
@@ -361,10 +361,16 @@ var LocalStorageService = class {
361
361
  list = list.slice(0, MAX_HISTORY_ITEMS);
362
362
  }
363
363
  this.safeSetItem(HISTORY_KEY, JSON.stringify(list));
364
+ if (typeof window !== "undefined") {
365
+ window.dispatchEvent(new Event("wordnook_history_changed"));
366
+ }
364
367
  }
365
368
  clearHistory() {
366
369
  try {
367
370
  localStorage.removeItem(HISTORY_KEY);
371
+ if (typeof window !== "undefined") {
372
+ window.dispatchEvent(new Event("wordnook_history_changed"));
373
+ }
368
374
  } catch (e) {
369
375
  console.warn("Could not clear history", e);
370
376
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hemingweb/wordnook-mcp",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "Offline-first linguistic Model Context Protocol (MCP) server providing dictionaries, thesauruses, and lemmatization for AI agents.",
5
5
  "type": "module",
6
6
  "license": "CC-BY-SA-4.0",