feat(ai): added pi-native auth-gateway transport

- Added POST /v1/pi/stream endpoint that accepts canonical Context directly, skipping wire-format translation layers.
- Added client-side streamPiNative dispatch activated via Model.transport = "pi-native".
- Propagated transport field through model registry, provider overrides, and models.yml schema.
- Refactored deriveSessionId to accept explicit arguments instead of ParsedFormatRequest.
This commit is contained in:
can1357
2026-05-17 03:05:57 +02:00
parent dc3d39df9e
commit cb05764eac
11 changed files with 1285 additions and 12 deletions
@@ -121,6 +121,10 @@ export async function startCpuProfile(): Promise<ProfilerSession> {
session.connect();
await session.post("Profiler.enable");
// Default CDP interval is 1ms, which mis-attributes await-resumption samples
// to the line after `await` (one sparse sample inherits the entire wait). 100µs
// scatters samples enough to keep CPU vs. async-wait attribution honest.
await session.post("Profiler.setSamplingInterval", { interval: 100 });
await session.post("Profiler.start");
return {