Commit Graph

1 Commits

Author SHA1 Message Date
can1357 b7ee6bf656 feat(ai): added PI_REQ_DEBUG request/response recording for transports
- Added `wrapFetchForRequestDebug` to intercept fetch calls and write `rr-session-N.json` (request) and `rr-session-N.res.log` (response headers + raw body) when `PI_REQ_DEBUG=1`.
- Integrated debug fetch wrapping into `stream` and `streamSimple` entry points so all providers inherit recording automatically.
- Extended Cursor HTTP/2 and Codex WebSocket transports with explicit debug session hooks for non-fetch protocols.
- Added `fetch` field propagation through `mapOptionsForApi` and Bedrock options so the wrapped fetch reaches every provider.
2026-05-30 04:34:44 +02:00