Pi version: 0.85.1 (current release)
The package declares peerDependencies: ">=0.83.0 <0.85.0" for both @earendil-works/pi-ai and @earendil-works/pi-coding-agent, so installing on pi 0.85.x raises a peer-range warning — yet the extension already works there.
What I verified against pi 0.85.1 types:
- Every API surface the extension uses still exists in 0.85.1 with unchanged signatures:
pi.registerProvider(name, config), the before_provider_request hook, refreshModels with the publish({ persist }) catalog API, and OAuthLoginCallbacks (login/refreshToken/getApiKey).
extensions/meta.ts typechecks cleanly against 0.85.1 (tsc --noEmit, strict).
- The full test suite passes on 0.85.1 devDeps: 30 pass / 0 fail.
The only compile breakage on 0.85 is in the test fixtures: the four legacy store-shape contexts use satisfies RefreshModelsContext, and 0.85's RefreshModelsContext no longer has store (it is stored + required publish). Casting them the same way the existing 0.84-shape tests already do (as unknown as RefreshModelsContext) keeps the dual-shape runtime coverage.
Proposed fix is in PR #18: peer range <0.86.0, devDeps 0.85.1 so CI typechecks against the current pi, plus the four test casts.
Pi version: 0.85.1 (current release)
The package declares
peerDependencies: ">=0.83.0 <0.85.0"for both@earendil-works/pi-aiand@earendil-works/pi-coding-agent, so installing on pi 0.85.x raises a peer-range warning — yet the extension already works there.What I verified against pi 0.85.1 types:
pi.registerProvider(name, config), thebefore_provider_requesthook,refreshModelswith thepublish({ persist })catalog API, andOAuthLoginCallbacks(login/refreshToken/getApiKey).extensions/meta.tstypechecks cleanly against 0.85.1 (tsc --noEmit, strict).The only compile breakage on 0.85 is in the test fixtures: the four legacy
store-shape contexts usesatisfies RefreshModelsContext, and 0.85'sRefreshModelsContextno longer hasstore(it isstored+ requiredpublish). Casting them the same way the existing 0.84-shape tests already do (as unknown as RefreshModelsContext) keeps the dual-shape runtime coverage.Proposed fix is in PR #18: peer range
<0.86.0, devDeps 0.85.1 so CI typechecks against the current pi, plus the four test casts.