pi-ts-aperture: v0.15.1
Patch Changes
- f71bdbc: Fix
Mismatched api: anthropic-messages expected openai-completionswhen a proxy provider has anapioverride (e.g. routing neuralwatt models through the anthropic-messages surface). With an override the gateway owns the protocol translation, so proxy mode now streams through the pi-ai api registry (like dedicated mode) instead of delegating the rewritten model to the upstream provider, whose stream layer may be pinned to its own api. Delegation is unchanged without an override. The shared registry-dispatch helpers move fromextensions/aperture/dedicated/api-routing.tstoextensions/shared/api-routing.ts. - 1428aff: Fix a crash when another extension replaces the session at startup (
ctx.newSession()via pi-rig’s/spawn --parent) while the gateway catalog fetch inproxyRuntime.sync()/checkMissingModels()is still in flight. Pi invalidates the ctx aftersession_shutdown, so every deferred continuation on the stale ctx threwThis extension ctx is stale after session replacement or reload.and took down the process. Sync continuations now check aninvalidatedflag set bysession_shutdownand bail; the replacement session’ssession_startre-runs the sync with a fresh ctx.