Skip to content

peerDependencies reject pi 0.85.x, which this extension already supports #17

Description

@antonioc-cl

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions