safari-mcp 2.5.2 → 2.5.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/safari.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "safari-mcp",
3
- "version": "2.5.2",
3
+ "version": "2.5.3",
4
4
  "mcpName": "io.github.achiya-automation/safari-mcp",
5
5
  "description": "Safari browser automation for AI agents — native macOS, zero Chrome overhead. 80 tools via AppleScript + JavaScript.",
6
6
  "type": "module",
package/safari.js CHANGED
@@ -97,7 +97,7 @@ process.on("uncaughtException", (err) => { console.error("Uncaught:", err); clea
97
97
  let _activeTabIndex = null; // null = use front document (default)
98
98
  let _activeTabURL = null; // URL-based tracking (stable even when tabs shift)
99
99
  let _lastResolveTime = 0; // Cache: skip resolve if verified recently
100
- const RESOLVE_CACHE_MS = 1500; // Re-verify tab every 1.5 seconds (was 5s — too stale)
100
+ const RESOLVE_CACHE_MS = 0; // Always re-verify — cached indices go stale when tabs open/close
101
101
 
102
102
  // ========== DIAGNOSTIC LOG ==========
103
103
  // File-based log for profile/focus issues — survives MCP restart, visible to user