Skip to content

v0.1.3: Five correctness fixes across the tool surface

Choose a tag to compare

@cyanheads cyanheads released this 07 Jun 06:41
v0.1.3
bd74a4f

Five correctness fixes across the tool surface

Patches five bugs surfaced during field-testing:

Fixed:

  • get_alerts active_only now applies a max_age_hours recency window (default 48 h) before the product-type filter, returning currently-in-force alerts instead of weeks of history (#1)
  • get_conditions quiet summary walks the 3-day forecast when conditions are quiet and reports peak storm activity, e.g. 'Quiet now — G3 strong geomagnetic storm forecast for 2026-06-08.' (#2)
  • get_aurora_forecast high-latitude verdict no longer emits a nonsensical 'Kp≥0 needed' clause for geomagnetic lat ≥ 65° locations (minKpRequired === 0); verdict reflects actual aurora likelihood (#3)
  • get_solar_activity X-ray flux now formatted via formatFlux() — returns '1.5e-6 W/m²' (scientific notation + unit) instead of a raw float (#4)
  • get_conditions forecast None/none/empty normalized by a scaleText() helper in format() that maps all variants to '—', eliminating mixed-case inconsistency (#5)

43 tests pass; bun run devcheck clean.