laminark 2.22.4 → 2.22.5

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.
@@ -110,5 +110,17 @@ if (startIdx >= 0 && endIdx >= 0) {
110
110
  fi
111
111
  fi
112
112
 
113
+ # Non-blocking background version check — stderr hint if update available
114
+ (
115
+ LATEST=$(timeout 5 npm view laminark version 2>/dev/null) || true
116
+ if [ -n "$LATEST" ] && [ "$LATEST" != "$CURRENT_VERSION" ]; then
117
+ # Simple version comparison: check if latest is newer
118
+ OLDER=$(printf '%s\n%s' "$CURRENT_VERSION" "$LATEST" | sort -V | head -n1)
119
+ if [ "$OLDER" = "$CURRENT_VERSION" ] && [ "$CURRENT_VERSION" != "$LATEST" ]; then
120
+ echo "[Laminark] Update available: v${CURRENT_VERSION} -> v${LATEST} — run: bash \"$PLUGIN_ROOT/scripts/update.sh\"" >&2
121
+ fi
122
+ fi
123
+ ) &
124
+
113
125
  cd "$PLUGIN_ROOT"
114
126
  exec "$@"