@hemingweb/wordnook-mcp 1.0.32 → 1.0.33

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.
@@ -381,6 +381,9 @@ var SearchIndex = class {
381
381
  }
382
382
  this.words = Array.from(cleanSet).sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
383
383
  }
384
+ getAllWords() {
385
+ return this.words;
386
+ }
384
387
  binarySearch(target) {
385
388
  let low = 0;
386
389
  let high = this.words.length - 1;
@@ -511,6 +514,7 @@ var ACTIVE_PACK_KEY = "wordnook_active_pack";
511
514
  var THEME_KEY = "wordnook_theme";
512
515
  var FONT_SIZE_KEY = "wordnook_font_size";
513
516
  var READING_FONT_KEY = "wordnook_reading_font";
517
+ var SHAKE_TO_DISCOVER_KEY = "wordnook_shake_to_discover";
514
518
  var MAX_HISTORY_ITEMS = 50;
515
519
  var DEFAULT_CURATED_WOTD_WORDS = [
516
520
  "serendipity",
@@ -713,6 +717,20 @@ var LocalStorageService = class {
713
717
  }
714
718
  }
715
719
  }
720
+ getShakeToDiscover() {
721
+ try {
722
+ return localStorage.getItem(SHAKE_TO_DISCOVER_KEY) === "true";
723
+ } catch {
724
+ return false;
725
+ }
726
+ }
727
+ setShakeToDiscover(enabled) {
728
+ if (this.safeSetItem(SHAKE_TO_DISCOVER_KEY, enabled ? "true" : "false")) {
729
+ if (typeof window !== "undefined") {
730
+ window.dispatchEvent(new CustomEvent("wordnook_shake_preference_changed", { detail: { enabled } }));
731
+ }
732
+ }
733
+ }
716
734
  /**
717
735
  * Deterministic Word of the Day derived from the calendar date.
718
736
  * Completely client-side and identical for all users globally offline.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hemingweb/wordnook-mcp",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
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",