# Lerma

## 0.16.0

### Minor Changes

- feat: add a client documentation widget with a source tree and live preview ([3054026](https://github.com/0xCAB0/fouria/commit/3054026c8cf891418c0041a8d0661761a68cadb6))
- Redesign the instance page around dedicated **Observability** and **Tools** sections.

  The instance page is now a full-width, single-page layout instead of a narrow
  two-column grid that squeezed every widget into a third of the screen:

  - **Overview** — instance details in a full-width definition grid (worker name,
  type, environment, deployed version, region, created, AI Gateway).
  - **Observability** — uptime (production) and worker telemetry side by side at
  roughly twice their previous width, plus a new **Health events** timeline
  (`LermaWeb.HealthEventsWidget`) listing the state transitions recorded by the
  background probes. The timeline works for every instance, not only production.
  The two uptime figures are now labelled for what they measure — **probe
  availability (time-weighted)** vs **invocation success (request-weighted)** —
  and the Uptime widget surfaces the window it actually observed, so a short
  probe history no longer reads as a 24 h outage.
  - **Health events** — a compact 24 h **time graph** (up / down / unknown) instead
  of an event list: hovering a segment animates it and reveals that window's log
  (probe OK, or the HTTP status and error message). The header **Inspect** action
  opens the Infrastructure health panel, which moved here from the Tools grid.
  - **Billable actions** — a new section embedding the client's Usage widget
  (credit spend per action, action log, stats) for **production** instances and
  for any instance whose client has an active billing plan. Paso4 instances are
  never billable and omit it. The widget is labelled _Production only_ with a
  two-tone environment legend: dev/staging are non-billable by contract and
  their cost lives in development expense, so the credits chart has no dev
  series.
  - **Tools** — a sticky Swiss-knife toolbar at the top of the page (Deploy,
  Start/Stop, Environment, Deployments, AI Gateway, Gateway token, Debug routes,
  Deprovision). Primary actions keep a label, the other blades are icons with a
  tooltip and state dot; **Unfold** opens the detailed tool cards in a scrollable
  drawer, and folding clears a revealed gateway token. The bar condenses to icons
  on mobile. The icon-only action row in the details header and the cramped
  "Ops" workbench/management cards are gone.

  Visually the page drops the nested bordered cards in favour of calmer
  `rounded-2xl` surfaces, quieter section headings with one-line descriptions, and
  soft secondary buttons.

  `LermaWeb.UptimeWidget` keeps only the aggregate uptime ratios; the recent
  changes list moved to the new widget. No backend changes. ([35f07eb](https://github.com/0xCAB0/fouria/commit/35f07ebfffc14a07cdc5f205d07c6c4b6a6ef12a))
- feat: price semantic billing actions (telegram_query, queue_reevaluation, signal_analysis, email_draft, review_analysis) with success-only consumption, business-unit action_key idempotency, and trace-level precedence ([85f8701](https://github.com/0xCAB0/fouria/commit/85f8701ecfe0fce2b92fadd24468c09d0633e337))

### Patch Changes

- fix: lazy-load client documentation on demand ([5fbcabe](https://github.com/0xCAB0/fouria/commit/5fbcabe7a5324db22be5e2783fc564a6b67e401e))
- fix(lerma): retry dispatch uploads that re-declare migrated DO classes (#516) ([d3c2f60](https://github.com/0xCAB0/fouria/commit/d3c2f60fe78bda2930ddf470840c3d69e0ce0b53))

## 0.15.2

### Patch Changes

- Decompress gzip OTLP/HTTP JSON batches before parsing so Cloudflare
  Observability destinations are accepted instead of retrying on a `400`. ([7bd792b](https://github.com/0xCAB0/fouria/commit/7bd792b461cfd4fdc0cf4de42bf7e88a71178816))
