v0.3.0
Minor Changes
-
dffb404: Refactor the Aperture routing implementation into focused modules and improve startup model discovery.
What changed
- Split the previous large
src/index.tsinto a clearer architecture:src/providers/aperture.tsfor routing/bootstrap/model refresh logicsrc/providers/model-config.tsfor model synthesis/merge helperssrc/lib/aperture-api.tsfor Aperture API discovery callssrc/state/provider-model-cache.tsfor in-memory model cache state
- Keep
src/index.tsas orchestration only (load config, register hooks/commands). - Preserve and explicitly inject provenance headers when routing through Aperture:
Referer: https://pi.devX-Title: npm:@aliou/pi-ts-aperture
- Fix active model refresh timing by awaiting model re-resolution before request execution.
- Improve OpenRouter CLI model selection reliability by bootstrapping discovered models from Aperture when needed.
Why minor
This release introduces observable behavior improvements (model availability/routing reliability and header behavior) in addition to internal refactoring.
- Split the previous large