PR #174 · pramaan-io/pramaan-app · merged 2026-05-23
sequenceDiagram autonumber participant browser as Browser participant diag as Diagnostics module participant kubb as Kubb client participant route as Internal route participant upstream as Upstream gateway browser->>diag: page load fires module diag->>browser: window.pramaan + console line browser->>kubb: generated API call kubb->>route: merge x-pramaan-* headers route-->>upstream: forward identity to gateway
src/lib/gateway.ts+17 −4The main gateway client now accepts an options field of type GatewayOptions, so upstream identity context can be threaded through gateway calls and the x-pramaan-* headers can be forwarded end-to-end.
options : GatewayOptions