OpenRouter now rejects management keys from the browser on both
/api/v1/keys and /api/v1/analytics/query, so the management-key flow can
no longer work in the extension. Read the configured key's own usage from
GET /api/v1/key instead, which returns UTC daily, weekly, and monthly
buckets and works from the browser.
Drop the key-type selection, key listing/selection, pagination, and the
management/analytics endpoints. Validate the key against /key before
persisting, and write a fresh record so legacy keyType/keyIds fields are
dropped. Keep the browser-block hint for anyone still storing a
management key.
Add a per-user OpenRouter usage integration that reads the management key
and displays a single spend total next to the Bitcoin ticker.
The total is configurable to Today, This week or This month, defaulting to
Today. Analytics queries are widened to the previous UTC hour boundary and
then filtered locally so buckets in non-whole-hour timezones are not
clipped.
Add a 'days with events' preference (default 3, range 1-7) that drives the upcoming events widget, and extend the fetch window to 8 days so the largest window can populate.
Add a Calendar settings pane (moved under Integrations) that lists the connected CalDAV/ICS sources in a two-column grid with add/edit/remove, and remove calendars from Manage Integrations.
Turn the modal service into a stack so add/edit forms open on top of the settings dialog, with one dialog per level, per-entry title ids, and a softened stacked backdrop.
Move CALENDAR_ACTOR into its own config module to break the calendar/caldav/ics import cycle.
An all-day event was only listed on the day it started, so a holiday spanning several days disappeared after the first one. groupEvents now fans an all-day event out to every day it covers (its end is exclusive, per RFC 5545), clamped to the visible window so a long event cannot spread without bound.
The widget also now shows three day groups in total: today plus the next two days that have events when today has events, or the next three days that have events when today is empty.
Drop the duplicated inline day stepping in favor of a small addDays helper, and cover the new grouping with unit tests.