Skip to content

fix(meta): support pi 0.87 (peer range + 0.87.1 devDeps + TranscriptContext test helper) - #21

Merged
BlockedPath merged 1 commit into
mainfrom
chore/pi-0.87-support
Sep 26, 2026
Merged

BlockedPath merged 1 commit into
mainfrom
chore/pi-0.87-support

Conversation

@BlockedPath

@BlockedPath BlockedPath commented Sep 26, 2026 •

Copy link
Copy Markdown
Owner

Static Badge

Scope

Compatibility-only update (same shape as #18). No provider runtime or request behavior changes.

  • Widen both Pi peer ranges to >=0.83.0 <0.88.0.
  • Use Pi 0.87.1 development dependencies.
  • Pi 0.86 changed pi-ai stream inputs from Context to a branded TranscriptContext built by normalizeContext(). The only affected code is the captureResponsesRequest test helper; it now normalizes when normalizeContext exists and passes the plain context on 0.83–0.85 (namespace import keeps the file loadable there).
  • CHANGELOG entry under Unreleased.

Verification

Hermetic runs (empty HOME, Meta env vars unset, no billable probes):

Pi typecheck bun test
0.87.1 ✅ 31 pass, 2 skip, 0 fail
0.86.1 ✅ 31 pass, 2 skip, 0 fail
0.85.1 ✅ 31 pass, 2 skip, 0 fail
0.83.0 ✅ 31 pass, 2 skip, 0 fail

Smoke test on Pi 0.87.1: pi --no-extensions -e ./extensions/meta.ts --list-models meta shows the extension's models (256K max output) replacing Pi's built-in meta provider (131.1K), so the override still works.

Note

Pi now ships a built-in meta provider with /login meta and META_API_KEY. This extension still overrides it; the remaining value-add is the dynamic catalog, Responses cache hints, and max effort mapping. Worth keeping in mind for the package's roadmap, out of scope here.

….87.1

Pi 0.86 changed pi-ai stream inputs from Context to a branded
TranscriptContext produced by normalizeContext(). The extension itself
does not call stream functions, but the wire-contract test helper does.

- Widen peerDependencies to <0.88.0
- Bump devDependencies to 0.87.1 so CI typechecks and tests current pi
- Normalize the test helper's context when normalizeContext exists,
  keeping the suite loadable on pi 0.83-0.85
- CHANGELOG entry
@coderabbitai

coderabbitai Bot commented Sep 26, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 7f0e856c-3079-4f61-af3d-b887afbb53b4


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​earendil-works/​pi-coding-agent@​0.85.1 ⏵ 0.87.16510094 -698 +2100
Updatednpm/​@​earendil-works/​pi-ai@​0.85.1 ⏵ 0.87.1100 +1100100 +198 +2100

View full report

@BlockedPath
BlockedPath merged commit a21d0f3 into main Sep 26, 2026
6 checks passed
@BlockedPath
BlockedPath deleted the chore/pi-0.87-support branch September 26, 2026 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant