Enable bridged request forwarding in AI Gateway proxy mode. Responses
are captured through `TeeBuffer`.
Proxies are created per-request reusing transports.
Handle `http.ErrAbortHandler` inside the circuit-breaker wrapper so
aborted responses are classified by HTTP status before the panic is
propagated.
Generated by Coder Agents on behalf of @pawbana.
Route centralized provider requests through the existing key-pool
failover transport. Retries replay a consumed request prefix and
continue the still-open source, discard rejected attempt responses, and
preserve client bytes and headers. BYOK requests do not fall back to
pooled credentials.
Generated by Coder Agents on behalf of @pawbana.
Adds HTTP body capture under `aibridge/x/proxy/replaybody`. `NewRequest`
and `NewResponse` replace the original body with an `io.ReadCloser` that
retains read bytes in the returned `TeeBuffer`.
Request retries replay the retained bytes through `r.GetBody()`.
`TeeBuffer.Wait` returns buffered bytes without reading the original
source.
Enables full duplex so Go’s HTTP/1 server can send an early upstream
response without first draining the client’s unfinished upload.
Generated by Coder Agents on behalf of @pawbana.
Extends the AI Gateway `forwardingHandler` with actor check, provider
credential resolution, and initial interception metadata.
Missing provider credentials return 403
Credential resolution failures return 500 with details kept in logs.
AWS-signed bridged credentials remain unsupported.
Generated by Coder Agents on behalf of @pawbana.
Adds `forwardingHandler` for "bridged" routes in proxy mode. Wires
provider snapshots to a shared mux and recorder, tracing, circuit
breakers, and the server-owned inflight gate.
Generated by Coder Agents on behalf of @pawbana.