v0.1.12
Fix: subagent delegation outage
AuthStorage was removed from @earendil-works/pi-coding-agent in 0.80.x. The subagent executor imported it and called AuthStorage.create() unconditionally, throwing Cannot read properties of undefined (reading 'create') and breaking all subagent delegation regardless of the configured model.
Changes
- src/subagent/executor.ts — extract resilient, injectable
buildModelRegistry(). The cosmetic cost/context-window registry now degrades toundefinedinstead of crashing; downstream usage enrichment already tolerates a missing registry. - test/executor.test.ts — regression coverage (missing host symbols, throwing factory, happy path). CI-safe: skips when the optional
@earendil-workspeer dep is absent.
Compatibility
Backward compatible — identical behavior when AuthStorage is present.